:root {
  --sidebar: 280px;
  --header: 72px;
  --blue: #1b13ff;
  --radius: 14px;
  --ease: 100ms ease-out;
}
.tool-support[hidden] { display:none; }
.tool-support { max-width:1440px;margin:32px auto 0;display:grid;grid-template-columns:1fr 1fr;gap:24px; }
.tool-support-panel { padding:28px;border:1px solid var(--border);border-radius:16px;background:var(--panel);scroll-margin-top:calc(var(--header) + 24px);transition:background-color 240ms ease-out,border-color 240ms ease-out; }
.support-kicker { color:var(--muted);font-size:10px;letter-spacing:.7px;text-transform:uppercase; }
.tool-support-panel h2 { font-size:23px;letter-spacing:-.5px;margin:9px 0 24px; }
.tool-support-panel ol { margin:0;padding-left:24px; }
.tool-support-panel li { padding-left:8px;margin-bottom:20px;font-size:13px;line-height:1.85;color:var(--muted); }
.tool-support-panel li::marker { color:var(--text);font-weight:600; }
.related-tool { display:flex;align-items:center;gap:12px;padding:10px;border-radius:9px;color:var(--text);text-decoration:none; }
.related-tool>a { color:inherit; }
a.related-tool:hover { background:var(--panel2); }
.related-tool>span:nth-child(2) { font-size:12px;flex:1; }
.related-tool small { font-size:10px;color:var(--muted); }
.related-tool img { display:block;width:100%;height:100%;object-fit:contain;mix-blend-mode:screen; }
.support-browse { display:inline-block;margin-top:20px;font-size:12px;color:var(--text);text-decoration:none; }
.support-browse:hover { text-decoration:underline; }
@media(max-width:850px) { .tool-support { grid-template-columns:1fr; }.tool-support-panel { padding:22px; } }
[data-theme="dark"] {
  --bg: #1f2023;
  --panel: #27282b;
  --panel2: #303135;
  --panel3: #38393e;
  --text: #f8f8f8;
  --muted: #999ba1;
  --border: #3b3d42;
  --shadow: rgba(0, 0, 0, 0.26);
  --logo-filter: invert(1) contrast(1.5);
}
[data-theme="light"] {
  --bg: #ffffff;
  --panel: #fff;
  --panel2: #f6f6f7;
  --panel3: #ececee;
  --text: #202124;
  --muted: #73767c;
  --border: #e5e5e7;
  --shadow: rgba(20, 22, 28, 0.11);
  --logo-filter: invert(0);
}
* {
  box-sizing: border-box;
}
html {
  color-scheme: light;
}
html[data-theme="dark"] {
  color-scheme: dark;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Rubik, system-ui, sans-serif;
  transition:
    background-color 240ms ease-out,
    color 240ms ease-out;
}
/* Animate painted colors, never layout or all properties. */
:where(.topbar, .sidebar, .sidebar-footer, .notification-panel,
  .notification-title, .top-search, .top-search-wrap, .tool-count,
  .runner-header, .tool-frame-wrap, #tool-frame, .runner-loading,
  .runner-error, .runner-actions button, .section-title::after) {
  transition: background-color 240ms ease-out, color 240ms ease-out,
    border-color 240ms ease-out;
}
.brand img { transition: filter 240ms ease-out; }
.tool-link {
  transition: background-color 90ms ease-out, color 90ms ease-out;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0s !important;
    animation-duration: 0s !important;
  }
}
button,
input {
  font: inherit;
}
button,
a {
  color: inherit;
}
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header);
  z-index: 30;
  display: flex;
  align-items: center;
  padding: 0 24px;
  background: color-mix(in srgb, var(--panel) 91%, transparent);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(22px) saturate(1.25);
  box-shadow: 0 3px 14px color-mix(in srgb, var(--shadow) 65%, transparent);
}
.topbar::after {
  content: none;
  position: absolute;
  left: var(--sidebar);
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(
    90deg,
    #f5b942,
    #98cf58,
    #5bbdea,
    #866abb,
    #ef4f87
  );
  opacity: 0.32;
}
.brand {
  flex-shrink: 0;
  width: calc(var(--sidebar) - 22px);
  display: flex;
  align-items: center;
  text-decoration: none;
}
.brand img {
  width: 142px;
  height: auto;
  filter: var(--logo-filter);
}
.top-search-wrap {
  flex: 1 1 0;
  min-width: 0;
  margin-right: 20px;
  height: 42px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 15px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel2) 72%, var(--panel));
  color: var(--muted);
}
.top-search-wrap:focus-within {
  border-color: color-mix(in srgb, #5bbdea 70%, var(--border));
  box-shadow: 0 0 0 4px color-mix(in srgb, #5bbdea 12%, transparent);
}
.top-search-wrap kbd { white-space:nowrap; }
@media(max-width:800px) {
  .top-search-wrap.shortcut-open { display:flex;position:fixed;top:calc(var(--header) + 8px);left:12px;right:12px;margin:0;background:var(--panel); }
}
.top-search-wrap kbd {
  min-width: 38px;
  padding: 4px 7px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--panel);
  color: var(--muted);
  font:
    9px/1 Rubik,
    sans-serif;
  text-align: center;
}
.top-search {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 13px;
}
.top-actions {
  flex-shrink: 0;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel2) 55%, transparent);
}
.top-link {
  padding: 10px 13px;
  color: var(--muted);
  font-size: 12px;
  text-decoration: none;
}
.top-link:hover {
  color: var(--text);
}
.icon-button {
  position: relative;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  text-decoration: none;
}
.profile-button {
  width: 34px;
  height: 34px;
  margin-left: 2px;
  border: 0;
  border-radius: 999px;
  background: #111214;
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.notification-wrap {
  position: relative;
}
.notification-badge {
  position: absolute;
  top: 1px;
  right: 0;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border: 2px solid var(--panel);
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 8px;
  font-weight: 700;
}
.notification-panel {
  position: absolute;
  top: 48px;
  right: 0;
  width: min(390px, calc(100vw - 24px));
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--panel);
  box-shadow: 0 18px 50px var(--shadow);
  overflow: hidden;
}
.notification-title {
  padding: 15px 17px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.notification-title strong {
  font-size: 13px;
}
.notification-title span {
  color: var(--muted);
  font-size: 9px;
}
.notification-panel a {
  position: relative;
  padding: 13px 72px 13px 17px;
  border-bottom: 1px solid var(--border);
  display: grid;
  gap: 4px;
  text-decoration: none;
}
.notification-panel a:last-child {
  border-bottom: 0;
}
.notification-panel a:hover {
  background: var(--panel2);
}
.notification-panel b {
  font-size: 11px;
}
.notification-panel small {
  color: var(--muted);
  font-size: 9px;
}
.notification-panel em {
  position: absolute;
  top: 15px;
  right: 16px;
  padding: 4px 6px;
  border-radius: 6px;
  background: var(--panel2);
  color: var(--text);
  font-size: 7px;
  font-style: normal;
  font-weight: 700;
}
.notification-panel { border-radius:18px; }
.notification-title .notification-controls { display:flex;align-items:center;gap:8px; }
#close-notifications { display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:var(--panel2);font-size:14px; }
.notification-message-icon { display:grid;place-items:center;width:38px;height:38px;flex:0 0 38px;border-radius:10px;background:#bbdbd2;color:#244e43;font-size:24px; }
.notification-panel .pxls-announcement { background:color-mix(in srgb,#80baa9 7%,var(--panel)); }
.notification-title { padding:20px;gap:14px; }
.notification-title>div { display:grid;gap:5px; }
.notification-title strong { font-size:15px; }
.notification-title button { border:0;background:none;color:var(--muted);font-size:10px;cursor:pointer;padding:6px; }
.notification-title button:hover { color:var(--text); }
.notification-feed { max-height:min(460px,65vh);overflow:auto;padding:6px; }
.notification-panel .notification-item { display:flex;align-items:center;gap:12px;padding:14px 12px;border:0;border-radius:10px;transition:background-color 90ms ease-out; }
.notification-app-icon { flex:0 0 38px;width:38px;height:38px;border-radius:9px;overflow:hidden; }
.notification-app-icon img { width:100%;height:100%;mix-blend-mode:screen; }
.notification-copy { display:grid;gap:5px;flex:1;min-width:0; }
.notification-copy small { line-height:1.6;font-size:10px; }
.notification-tag { font-size:8px;letter-spacing:.8px;font-weight:600;color:var(--muted); }
.notification-unread { width:5px;height:5px;flex-shrink:0;background:var(--text);border-radius:50%;opacity:.65; }
.notification-footer { border-top:1px solid var(--border);padding:12px;text-align:center;color:var(--muted);font-size:10px; }
.notification-unread[hidden],.notification-badge[hidden] { display:none; }
.notification-badge {
  box-sizing:border-box;
  width:18px;
  min-width:18px;
  height:18px;
  aspect-ratio:1;
  padding:0;
  border-radius:50%;
  line-height:1;
  flex:0 0 18px;
}
.icon-button:hover {
  background: var(--panel2);
  color: var(--text);
}
.account-button {
  height: 40px;
  padding: 0 9px 0 6px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel2);
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.account-button span {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
}
.account-button i {
  font-size: 9px;
  color: var(--muted);
}
.sidebar {
  position: fixed;
  left: 0;
  top: var(--header);
  bottom: 0;
  width: var(--sidebar);
  z-index: 20;
  overflow: auto;
  padding: 22px 16px 18px;
  background: var(--panel);
  border-right: 1px solid var(--border);
  scrollbar-width: thin;
}
.sidebar-heading {
  height: 32px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.sidebar-heading button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 9px;
  cursor: pointer;
}
.all-tools-link {
  color: var(--text);
  text-decoration: none;
  border-radius: 5px;
}
.all-tools-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.all-tools-link:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }
.sidebar-heading button i {
  color: var(--muted);
  opacity: 0.62;
}
.sidebar-heading button:hover i {
  color: var(--text);
  opacity: 1;
}
.sidebar-list {
  display: grid;
  gap: 2px;
}
.nav-category {
  width: 100%;
  height: 48px;
  padding: 0 10px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  cursor: pointer;
  text-align: left;
  transition: var(--ease);
}
.nav-category:hover,
.nav-group.is-open > .nav-category {
  background: var(--panel2);
  color: var(--text);
}
.category-icon {
  width: 27px;
  height: 27px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--cat) 17%, transparent);
  color: var(--cat);
  flex: 0 0 auto;
}
.category-icon i {
  font-size: 12px;
}
/* Dark glyph stays readable on the light transparency checkerboard. */
:is(.tool-link-icon,.tool-icon,.runner-icon-box) img[src$="BACKGROUND REMOVER.png"] {
  filter: invert(1);
  mix-blend-mode: multiply;
}
/* Texture only this app's tile, preserving the supplied pixel artwork. */
:is(.tool-link-icon,.tool-icon,.runner-icon-box):has(img[src$="NOISE GRADIENT GENERATOR.png"]) {
  position: relative;
  isolation: isolate;
}
:is(.tool-link-icon,.tool-icon,.runner-icon-box):has(img[src$="NOISE GRADIENT GENERATOR.png"])::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: .65;
  z-index: 2;
  mix-blend-mode: overlay;
  filter: grayscale(1) contrast(2.2);
  background-size: 48px 48px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23888' filter='url(%23n)' d='M0 0h100v100H0z'/%3E%3C/svg%3E");
}
.category-icon {
  background: color-mix(in srgb, var(--cat) 16%, var(--panel));
  color: color-mix(in srgb, var(--cat) 75%, white);
  transition: background-color 240ms ease-out, color 240ms ease-out;
}
[data-theme="light"] .category-icon {
  color: color-mix(in srgb, var(--cat) 85%, #202124);
}
.category-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}
.category-count {
  margin-left: auto;
  font-size: 9px;
  color: var(--muted);
}
.chevron {
  margin-left: auto;
  font-size: 9px;
  transition: transform var(--ease);
}
.nav-group.is-open .chevron {
  transform: rotate(90deg);
}
.nav-tools {
  display: none;
  padding: 2px 0 7px 9px;
}
.nav-group.is-open .nav-tools {
  display: grid;
}
.tool-link {
  min-height: 35px;
  padding: 4px 9px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 10px;
  text-decoration: none;
}
.tool-link-icon {
  width: 27px;
  height: 27px;
  border-radius: 7px;
  overflow: hidden;
  background: var(--app-color);
  flex: 0 0 auto;
}
.tool-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: screen;
  display: block;
}
.tool-link > span:not(.tool-link-icon) {
  flex: 1;
}
.tool-link:hover {
  background: var(--panel2);
  color: var(--text);
}
.tool-link small {
  font-size: 7px;
  opacity: 0.48;
}
.search-hidden {
  display: none !important;
}
.sidebar-footer {
  position: relative;
  margin-top: 18px;
  padding: 14px 13px 13px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 11px;
  overflow: hidden;
  text-decoration: none;
}
.sidebar-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(
    90deg,
    #f5b942,
    #98cf58,
    #5bbdea,
    #866abb,
    #ef4f87
  );
}
.sidebar-footer > i {
  color: var(--text);
  font-size: 10px;
}
.sidebar-footer div {
  display: grid;
  gap: 2px;
}
.sidebar-footer strong {
  font-size: 11px;
}
.sidebar-footer span {
  font-size: 8px;
  color: var(--muted);
}
.page {
  min-height: 100vh;
  margin-left: var(--sidebar);
  padding-top: var(--header);
}
.mobile-menu {
  display: none;
}
.sidebar-backdrop {
  display: none;
}
.tool-page {
  padding: 44px clamp(22px, 4vw, 64px);
}
.tool-heading {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 34px;
}
.tool-heading h1 {
  margin: 0;
  font-size: 30px;
}
.tool-heading .tool-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #163a48;
  color: #5bbdea;
  display: grid;
  place-items: center;
}
.tool-mount {
  min-height: 420px;
}
.tool-panel {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--panel);
}
@media (max-width: 800px) {
  :root {
    --sidebar: 0px;
  }
  .topbar {
    padding: 0 12px;
  }
  .brand {
    width: auto;
    margin: 0 14px 0 6px;
  }
  .brand img {
    width: 108px;
  }
  .top-search-wrap {
    display: none;
  }
  .top-link {
    display: none;
  }
  .mobile-menu {
    display: grid;
  }
  .sidebar {
    width: 280px;
    transform: translateX(-290px);
    transition: transform 0.22s;
  }
  .sidebar.open {
    transform: none;
  }
  .sidebar-backdrop.show {
    display: block;
    position: fixed;
    inset: var(--header) 0 0;
    z-index: 19;
    background: rgba(0, 0, 0, 0.48);
  }
  .page {
    margin-left: 0;
  }
}
@media (max-width: 520px) {
  .top-actions > a.icon-button,
  .top-actions > button[aria-label="Settings"] {
    display: none;
  }
}
.tool-page {
  padding-top: calc(var(--header) + 44px);
}
.tool-heading {
  justify-content: space-between;
}
.tool-title-group {
  display: flex;
  align-items: center;
  gap: 15px;
}
.tool-heading-actions {
  display: flex;
  gap: 9px;
}
.small-action {
  height: 38px;
  padding: 0 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel2);
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  cursor: pointer;
}
.small-action:hover {
  background: var(--panel3);
}
.tool-copy-section {
  max-width: 980px;
  margin: 34px auto 0;
  padding: 27px;
  border: 1px solid var(--border);
  border-radius: 17px;
  background: var(--panel);
}
.tool-copy-section h2 {
  margin: 0 0 15px;
  font-size: 19px;
}
.tool-copy-section p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.step-card {
  padding: 17px;
  border-radius: 13px;
  background: var(--panel2);
}
.step-card strong {
  width: 26px;
  height: 26px;
  margin-bottom: 12px;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 10px;
}
.step-card h3 {
  margin: 0 0 7px;
  font-size: 12px;
}
.step-card p {
  font-size: 10px;
  line-height: 1.5;
}
.similar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.similar-card {
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--panel2);
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.similar-card i {
  color: #5bbdea;
}
.similar-card span {
  font-size: 11px;
}
@media (max-width: 800px) {
  .tool-page {
    padding-top: calc(var(--header) + 28px);
  }
  .tool-heading {
    align-items: flex-start;
    gap: 18px;
  }
  .tool-heading-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .steps-grid,
  .similar-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 520px) {
  .tool-heading {
    display: grid;
  }
  .tool-heading-actions {
    justify-content: flex-start;
  }
  .steps-grid,
  .similar-grid {
    grid-template-columns: 1fr;
  }
}
