:root {
  color-scheme: dark;
  --bg: #0e0d14;
  --surface: #16151f;
  --card: #181720;
  --line: #ffffff12;
  --muted: #a8a4b7;
  --text: #f3f0fb;
  --purple: #bc8eff;
  --cyan: #64e5d6;
  --radius: 18px;
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(ellipse at 70% 10%, #29194338, transparent 42%), var(--bg);
  line-height: 1.55;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select,
summary {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  color: inherit;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
button[hidden],
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}
button {
  transition:
    background 0.18s,
    border-color 0.18s,
    transform 0.18s;
}
button:hover {
  border-color: #b891ff77;
}
::selection {
  background: #8e5fce88;
}
input,
textarea,
select {
  min-width: 0;
  color: var(--text);
  background: #101017;
  border: 1px solid #ffffff20;
  border-radius: 10px;
  padding: 11px 12px;
  width: 100%;
  font-size: 14px;
}
input[type="color"] {
  height: 45px;
  padding: 5px;
}
input[type="range"] {
  accent-color: var(--purple);
}
textarea {
  resize: vertical;
  line-height: 1.6;
}
select option {
  background: #181720;
}
label {
  font-size: 13px;
}
progress {
  width: 100%;
  height: 6px;
  accent-color: var(--cyan);
}
.skip-link {
  position: absolute;
  left: 10px;
  top: -100px;
  z-index: 100;
  background: var(--surface);
  padding: 10px;
}
.skip-link:focus {
  top: 10px;
}
.navbar {
  height: 83px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(24px, calc((100vw - 1320px) / 2));
  gap: 20px;
  background: #100f17dd;
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 5;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  white-space: nowrap;
}
.brand img {
  border-radius: 12px;
}
.brand > span {
  font-size: 24px;
  font-weight: 750;
  letter-spacing: -1px;
  line-height: 1.15;
}
.brand-accent {
  color: var(--purple);
}
.brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 2px;
  font-weight: 550;
  color: var(--muted);
  margin-top: 5px;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-button {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px 13px;
  background: #ffffff04;
  font-size: 12px;
  min-height: 38px;
}
.about-button {
  background: #281e3c;
  color: #d4b9ff;
  border-color: #bc8eff33;
}
.network {
  font-size: 11px;
  color: #a9b6af;
  white-space: nowrap;
}
.network:before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #70dbad;
  margin-right: 6px;
}
.network.is-offline:before {
  background: #f7c67a;
}
.lang-switch {
  display: flex;
  align-items: center;
  color: #6b6578;
  font-size: 12px;
}
.lang-switch button {
  background: none;
  border: 0;
  min-width: 33px;
  min-height: 40px;
  color: var(--muted);
  font-size: 11px;
}
.lang-switch button[aria-pressed="true"] {
  color: #f7f3ff;
  font-weight: 750;
}
.account-button {
  font-size: 11px;
}
.hero {
  max-width: 1320px;
  margin: auto;
  padding: 52px 24px 44px;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: stretch;
  gap: 36px;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  background: #201b2b;
  border: 1px solid #b98aff33;
  border-radius: 30px;
  padding: 6px 14px;
  color: #d6c3f2;
  font-size: 12px;
  font-weight: 560;
}
.hero-pill > span:first-child {
  height: 6px;
  width: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
}
h1 {
  font-size: clamp(36px, 3.8vw, 54px);
  line-height: 1.1;
  letter-spacing: -2.2px;
  margin: 18px 0 14px;
  font-weight: 760;
}
.gradient-text {
  background: linear-gradient(100deg, #c79eff 5%, #b392ff 48%, #64e5d6);
  color: transparent;
  background-clip: text;
}
.hero-subtitle {
  max-width: 620px;
  font-size: 15.5px;
  color: #b7b1c6;
  line-height: 1.65;
  margin: 0 0 22px;
}
.search-shell {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #bc8eff45;
  box-shadow:
    0 10px 36px #00000045,
    0 0 40px #8b4acc14;
  background: #171522;
  border-radius: 15px;
  padding: 6px 16px;
  transition:
    border-color 0.18s,
    box-shadow 0.18s;
}
.search-shell > .search-icon {
  font-size: 25px;
  color: var(--purple);
  line-height: 1;
}
.search-shell input {
  border: 0;
  background: none;
  font-size: 15px;
  padding: 12px 0;
}
.search-shell input:focus-visible {
  outline: none;
}
.search-shell:focus-within {
  border-color: var(--cyan);
  box-shadow:
    0 10px 36px #00000055,
    0 0 0 3px #64e5d620;
}
.search-clear {
  border: 0;
  background: #ffffff12;
  color: #ddd5ec;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 16px;
  line-height: 1;
  display: grid;
  place-items: center;
  padding: 0;
}
.search-clear:hover {
  background: #ffffff24;
}
kbd {
  font-family: inherit;
  border: 1px solid #ffffff24;
  color: #968fa7;
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 12px;
  background: #ffffff06;
}
.quick-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 14px 0 24px;
}
.quick-label {
  font-size: 12px;
  color: #8f88a0;
  font-weight: 560;
  margin-right: 2px;
}
.quick-tools button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #ffffff16;
  background: #1a1826;
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--purple);
  font-size: 12px;
  font-weight: 540;
}
.quick-tools button > span {
  color: #ded7ec;
}
.quick-tools button:hover {
  border-color: var(--cyan);
  background: #211e30;
  transform: translateY(-1px);
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: auto;
}
.stat-card {
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding: 10px 15px;
  border-radius: 12px;
  background: #15141f;
  border: 1px solid #ffffff10;
}
.hero-stats strong {
  font-size: 21px;
  font-weight: 720;
  letter-spacing: -0.5px;
  color: #f6f2ff;
}
.hero-stats span {
  font-size: 12px;
  color: #a9a2b8;
}
.hero-smart-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}
.hero-drop-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 22px;
  border: 1.5px solid #bc8eff55;
  background:
    radial-gradient(circle at 90% 10%, #64e5d61f, transparent 45%),
    radial-gradient(circle at 10% 90%, #bc8eff24, transparent 52%),
    linear-gradient(165deg, #1b1729 0%, #14131f 100%);
  padding: 22px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  cursor: pointer;
  transition:
    border-color 0.2s,
    transform 0.2s,
    box-shadow 0.2s;
  box-shadow:
    0 20px 52px #00000058,
    0 0 0 1px #ffffff08 inset;
}
.hero-drop-card:hover,
.hero-drop-card.dragover {
  border-color: var(--cyan);
  transform: translateY(-2px);
  box-shadow:
    0 24px 60px #00000070,
    0 0 38px #64e5d624;
}
.orb {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.22;
  z-index: -1;
  pointer-events: none;
}
.orb-one {
  background: #9344e9;
  left: -20px;
  top: -20px;
}
.orb-two {
  background: #1dbeaa;
  right: -20px;
  bottom: -20px;
}
.hero-drop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.hero-logo {
  width: 60px;
  height: 60px;
  border: 1px solid #c092ff4d;
  background: #1d1729;
  border-radius: 17px;
  box-shadow: 0 10px 26px #0006;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.hero-logo img {
  border-radius: 13px;
  width: 50px;
  height: 50px;
}
.hero-head-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}
.smart-badge {
  font-size: 10.5px;
  font-weight: 720;
  letter-spacing: 0.9px;
  color: var(--cyan);
  background: #64e5d618;
  border: 1px solid #64e5d645;
  padding: 5px 11px;
  border-radius: 999px;
}
.smart-shortcut {
  font-size: 11px;
  font-weight: 650;
  font-family: ui-monospace, monospace;
  color: #e4d4ff;
  background: #bc8eff22;
  border: 1px solid #bc8eff44;
  padding: 4px 9px;
  border-radius: 8px;
}
.hero-drop-title {
  font-size: 21px;
  font-weight: 740;
  margin: 2px 0 0;
  letter-spacing: -0.45px;
  line-height: 1.22;
  color: #f9f6ff;
}
.hero-drop-sub {
  font-size: 13px;
  line-height: 1.5;
  color: #b8b1c9;
  margin: 0;
}
.smart-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 8px 11px;
  border-radius: 12px;
  background: #0f0e17b8;
  border: 1px solid #ffffff12;
  font-size: 11.5px;
  color: #cfc8df;
}
.smart-step {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 560;
}
.smart-step b {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #bc8eff2b;
  color: #e2caff;
  font-size: 10.5px;
  display: inline-grid;
  place-items: center;
}
.smart-step.is-highlight {
  color: var(--cyan);
  font-weight: 680;
}
.smart-step.is-highlight b {
  background: #64e5d62b;
  color: var(--cyan);
}
.smart-step-arrow {
  color: #7c748e;
  font-size: 12px;
}
.smart-demo {
  border-radius: 14px;
  background: #11101acc;
  border: 1px solid #ffffff16;
  padding: 11px 12px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.smart-demo-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.smart-demo-label {
  font-size: 11px;
  font-weight: 600;
  color: #9e96b2;
}
.smart-demo-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.demo-tab {
  border: 1px solid #ffffff12;
  background: #1a1826;
  color: #b8b1c8;
  border-radius: 7px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 580;
}
.demo-tab.is-active {
  background: #bc8eff2b;
  border-color: #bc8eff66;
  color: #f4ecff;
}
.demo-file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 9px;
  background: #191826;
  border: 1px dashed #64e5d645;
  font-size: 12px;
}
.demo-file-pill {
  font-weight: 640;
  color: #f3effb;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.demo-file-pill small {
  color: #968ea8;
  font-weight: 500;
  margin-left: 4px;
}
.demo-unlocks {
  font-size: 11px;
  font-weight: 650;
  color: var(--cyan);
  white-space: nowrap;
}
.demo-chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.demo-chip {
  --cat: #c39bfd;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  border-radius: 8px;
  background: #1b1928;
  border: 1px solid #ffffff12;
  color: #ece6f8;
  font-size: 11.5px;
  font-weight: 560;
  text-align: left;
}
.demo-chip:hover {
  border-color: var(--cyan);
  background: #232034;
}
.demo-chip i {
  font-style: normal;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: inline-grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--cat);
  background: color-mix(in srgb, var(--cat) 14%, transparent);
  flex-shrink: 0;
}
.demo-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hero-drop-cta {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}
.hero-drop-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 18px;
  border-radius: 13px;
  background: linear-gradient(95deg, #9d5cff 0%, #7c5cff 48%, #26c6b8 100%);
  box-shadow: 0 10px 26px #7c5cff3d;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.15px;
  transition:
    transform 0.18s,
    box-shadow 0.18s,
    filter 0.18s;
}
.hero-drop-card:hover .hero-drop-btn {
  filter: brightness(1.08);
  box-shadow: 0 12px 30px #64e5d645;
}
.hero-drop-hint {
  font-size: 11.5px;
  color: #9e96b2;
}
.matched-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #64e5d624;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
}
.hero-drop-matched {
  border-radius: 16px;
  border: 1px solid #64e5d655;
  background: #151922;
  padding: 14px 16px;
  box-shadow: 0 14px 36px #00000050;
}
.matched-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}
.matched-file {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.matched-file strong {
  font-size: 13px;
  color: #f3effb;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.matched-file small {
  font-size: 11px;
  color: var(--cyan);
  flex-shrink: 0;
}
.matched-close {
  border: 0;
  background: #ffffff12;
  color: #d7d0e6;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 16px;
  line-height: 1;
}
.matched-sub {
  margin: 0 0 10px;
  font-size: 12px;
  color: #a9b8b6;
}
.matched-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}
.matched-tool {
  --cat: #c39bfd;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #ffffff16;
  background: #1b1a27;
  font-size: 12.5px;
  font-weight: 580;
  color: #f2edfb;
  text-align: left;
}
.matched-tool:hover {
  border-color: var(--cyan);
  background: #222032;
}
.matched-tool .tool-icon {
  width: 28px;
  height: 28px;
  font-size: 15px;
  border-radius: 8px;
  flex-shrink: 0;
}
.discovery {
  max-width: 1320px;
  margin: auto;
  padding: 0 24px 56px;
  scroll-margin-top: 83px;
}
.featured-section {
  margin-bottom: 34px;
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.featured-card {
  --cat: #c39bfd;
  border-radius: 15px;
  border: 1px solid #ffffff16;
  background:
    radial-gradient(circle at 100% 0%, color-mix(in srgb, var(--cat) 14%, transparent), transparent 65%),
    #191724;
  transition:
    transform 0.18s,
    border-color 0.18s,
    box-shadow 0.18s;
}
.featured-card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--cat) 55%, transparent);
  box-shadow: 0 12px 28px #00000045;
}
.featured-link {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 15px;
  height: 100%;
}
.featured-body {
  min-width: 0;
  flex: 1;
}
.featured-top {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 3px;
}
.featured-top strong {
  font-size: 14.5px;
  font-weight: 650;
  color: #f6f2ff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.featured-body p {
  margin: 0;
  font-size: 12px;
  color: #a9a2b8;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.featured-arrow {
  color: #9e95b0;
  font-size: 16px;
  flex-shrink: 0;
}
.eyebrow {
  font-size: 10.5px;
  color: #b799dc;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  font-weight: 680;
}
h2 {
  font-size: 24px;
  line-height: 1.28;
  font-weight: 680;
  letter-spacing: -0.5px;
  margin: 5px 0 0;
}
.command-bar {
  position: sticky;
  top: 83px;
  z-index: 4;
  background: #0e0d14eb;
  backdrop-filter: blur(16px);
  padding: 12px 0 4px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
#shownCount {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 540;
}
.category-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.category {
  background: #171522;
  border: 1px solid #ffffff12;
  color: #b8b2c6;
  border-radius: 10px;
  padding: 9px 13px;
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  font-weight: 540;
  min-height: 42px;
}
.category > span {
  font-size: 16px;
}
.category small {
  font-size: 11px;
  color: #8b829c;
  background: #ffffff09;
  padding: 2px 6px;
  border-radius: 6px;
}
.category.selected {
  border-color: #bc8eff66;
  background: #a371e822;
  color: #ead9ff;
}
.category.selected small {
  color: #dec6ff;
  background: #bc8eff28;
}
.filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.view-filters {
  display: flex;
  gap: 22px;
}
.view-filters button,
.text-button {
  background: transparent;
  border: 0;
  color: #968fa6;
  font-size: 13px;
  font-weight: 550;
  padding: 10px 0;
}
.view-filters button[aria-pressed="true"] {
  color: #f0e8ff;
  box-shadow: 0 2px 0 var(--purple);
}
.catalog-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}
.layout-switch {
  display: inline-flex;
  background: #161521;
  border: 1px solid #ffffff14;
  border-radius: 9px;
  padding: 2px;
  gap: 2px;
}
.layout-switch button {
  border: 0;
  background: transparent;
  color: #9790a8;
  font-size: 12px;
  font-weight: 550;
  padding: 5px 10px;
  border-radius: 7px;
}
.layout-switch button[aria-pressed="true"] {
  background: #bc8eff26;
  color: #efe6ff;
}
.tools-catalog.is-grouped {
  display: flex;
  flex-direction: column;
  gap: 34px;
}
.catalog-section {
  --cat: #c39bfd;
}
.catalog-section.image,
.featured-card.image,
.matched-tool.image,
.demo-chip.image,
.tool-card.image {
  --cat: #77d9c8;
}
.catalog-section.media,
.featured-card.media,
.matched-tool.media,
.demo-chip.media,
.tool-card.media {
  --cat: #e7a3c5;
}
.catalog-section.data,
.featured-card.data,
.matched-tool.data,
.demo-chip.data,
.tool-card.data {
  --cat: #e5be83;
}
.catalog-section.text,
.featured-card.text,
.matched-tool.text,
.demo-chip.text,
.tool-card.text {
  --cat: #94b6e8;
}
.catalog-section.dev,
.featured-card.dev,
.matched-tool.dev,
.demo-chip.dev,
.tool-card.dev {
  --cat: #a7b6bf;
}
.catalog-section.ai,
.featured-card.ai,
.matched-tool.ai,
.demo-chip.ai,
.tool-card.ai {
  --cat: #d1a1fa;
}
.catalog-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ffffff10;
}
.catalog-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cat-badge {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 16px;
  color: var(--cat);
  background: color-mix(in srgb, var(--cat) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--cat) 25%, transparent);
}
.catalog-section-title h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 670;
  letter-spacing: -0.3px;
  color: #f3effb;
}
.cat-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--cat);
  background: color-mix(in srgb, var(--cat) 12%, transparent);
  padding: 2px 8px;
  border-radius: 999px;
}
.section-more {
  border: 1px solid #ffffff14;
  background: #ffffff05;
  color: #cbc3dc;
  font-size: 12px;
  font-weight: 550;
  padding: 6px 12px;
  border-radius: 8px;
}
.section-more:hover {
  border-color: var(--cat);
  color: #fff;
}
.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.tool-card {
  --cat: #c39bfd;
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid #ffffff13;
  border-radius: 15px;
  padding: 18px;
  background:
    radial-gradient(
      circle at 100% 0%,
      color-mix(in srgb, var(--cat) 7%, transparent),
      transparent 55%
    ),
    var(--card);
  transition:
    transform 0.18s,
    border-color 0.18s,
    box-shadow 0.18s;
  min-height: 176px;
}
.tool-card:hover {
  border-color: color-mix(in srgb, var(--cat) 50%, transparent);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px #00000040;
}
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.card-top-right {
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 2;
}
.card-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 2px 7px;
  border-radius: 999px;
  text-transform: uppercase;
}
.tag-new {
  background: #64e5d61f;
  color: #79f2e4;
  border: 1px solid #64e5d644;
}
.tag-hot {
  background: #f59e0b1f;
  color: #fbbf24;
  border: 1px solid #f59e0b44;
}
.tag-ai {
  background: #bc8eff24;
  color: #d8b9ff;
  border: 1px solid #bc8eff44;
}
.tool-icon {
  color: var(--cat);
  font-size: 19px;
  font-weight: 700;
  background: color-mix(in srgb, var(--cat) 11%, transparent);
  border: 1px solid color-mix(in srgb, var(--cat) 22%, transparent);
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.favorite {
  background: none;
  border: 0;
  font-size: 19px;
  color: #7c728d;
  min-width: 30px;
  min-height: 30px;
  padding: 0;
}
.favorite.saved {
  color: #ebb963;
}
.card-category {
  font-size: 10px;
  font-weight: 620;
  letter-spacing: 0.9px;
  color: var(--cat);
  text-transform: uppercase;
  opacity: 0.9;
}
.tool-card h3 {
  font-size: 16px;
  font-weight: 650;
  line-height: 1.3;
  margin: 5px 0 6px;
  letter-spacing: -0.25px;
  color: #f6f3fc;
}
.tool-card h3 button,
.tool-card h3 a {
  background: none;
  border: 0;
  color: inherit;
  text-decoration: none;
  text-align: left;
  padding: 0;
  font-size: inherit;
  letter-spacing: inherit;
  font-weight: inherit;
}
.tool-card h3 button:after,
.tool-card h3 a:after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.tool-card h3 button:focus-visible:after,
.tool-card h3 a:focus-visible:after {
  outline: 2px solid var(--cyan);
  border-radius: 14px;
}
.tool-card p {
  font-size: 13px;
  color: #b4adc4;
  line-height: 1.55;
  margin: 0 0 12px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #ffffff0a;
  padding-top: 10px;
}
.local-badge {
  font-size: 11px;
  color: #958da6;
}
.local-badge:before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #70dbad;
  margin-right: 6px;
}
.card-open {
  border: 0;
  background: none;
  color: #b8add0;
  text-decoration: none;
  font-size: 17px;
  padding: 0 4px;
}
.tools-grid.is-compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.tools-grid.is-compact .tool-card {
  min-height: 0;
  padding: 12px 14px;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}
.tools-grid.is-compact .card-top {
  display: contents;
}
.tools-grid.is-compact .tool-icon {
  order: 0;
  width: 34px;
  height: 34px;
  font-size: 16px;
}
.tools-grid.is-compact .tool-card h3 {
  order: 1;
}
.tools-grid.is-compact .card-top-right {
  order: 2;
}
.tools-grid.is-compact .card-tag,
.tools-grid.is-compact .card-category,
.tools-grid.is-compact .tool-card p,
.tools-grid.is-compact .card-bottom {
  display: none;
}
.tools-grid.is-compact .tool-card h3 {
  margin: 0;
  font-size: 14px;
  flex: 1;
}
.catalog-empty {
  grid-column: 1/-1;
  text-align: center;
  padding: 50px;
  color: var(--muted);
}
.privacy-note {
  max-width: 1272px;
  margin: 0 auto 60px;
  background: linear-gradient(110deg, #291d3b55, #142c2a22);
  border: 1px solid #bb91f021;
  border-radius: 14px;
  padding: 26px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.privacy-icon {
  color: #b996e5;
  font-size: 32px;
  width: 50px;
}
.privacy-note h2 {
  font-size: 15px;
  letter-spacing: 0;
  margin: 0 0 5px;
}
.privacy-note p {
  font-size: 11px;
  color: #9e94ac;
  margin: 0;
  max-width: 760px;
}
.privacy-tag {
  margin-left: auto;
  white-space: nowrap;
  font-size: 8px;
  color: #a095ae;
  letter-spacing: 1.7px;
}
footer {
  border-top: 1px solid var(--line);
  max-width: 1320px;
  margin: auto;
  padding: 28px 24px 20px;
}
.footer-top {
  display: flex;
  gap: 20px;
  align-items: center;
}
.footer-top .brand > span {
  font-size: 18px;
}
.footer-top p {
  font-size: 11px;
  color: var(--muted);
}
.support-link {
  font-size: 11px;
  color: #c4a1e6;
  margin-left: auto;
}
.footer-bottom {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
  color: #766e84;
  font-size: 9px;
}
.footer-bottom nav {
  display: flex;
  gap: 20px;
}
dialog {
  color: var(--text);
  background: #17151f;
  border: 1px solid #c59bff33;
  border-radius: 20px;
  box-shadow: 0 35px 110px #000a;
  padding: 0;
}
dialog::backdrop {
  background: #05040bba;
  backdrop-filter: blur(8px);
}
.workspace {
  width: min(1200px, 96vw);
  max-height: 92dvh;
  overflow: auto;
}
.workspace-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0 16px;
  padding: 24px 28px 20px;
  border-bottom: 1px solid var(--line);
  background: #1b1724;
  position: sticky;
  top: 0;
  z-index: 3;
}
.workspace-header h2 {
  font-size: 23px;
  margin: 4px 0;
}
.workspace-icon {
  font-size: 30px;
  width: 52px;
  height: 55px;
  background: #a270df13;
  border: 1px solid #bc8eff22;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--purple);
}
.workspace-header p {
  grid-column: 2/3;
  font-size: 12px;
  color: var(--muted);
  margin: 5px 0 0;
}
.close-button {
  border: 1px solid #ffffff15;
  background: #ffffff05;
  border-radius: 10px;
  font-size: 23px;
  width: 38px;
  height: 38px;
  line-height: 1;
  display: grid;
  place-items: center;
  margin-left: auto;
}
.workspace-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 450px;
}
.workspace-input {
  padding: 25px;
  border-right: 1px solid var(--line);
}
.workspace-output {
  padding: 25px;
  background: #12101866;
  min-width: 0;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  border: 1px dashed #b397d455;
  background: #a174db07;
  border-radius: 12px;
  padding: 28px 15px;
  cursor: pointer;
}
.dropzone.dragover {
  border-color: var(--cyan);
  background: #64e5d611;
}
.drop-icon {
  font-size: 24px;
  color: var(--purple);
  border: 1px solid #bc8eff33;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
}
.dropzone strong {
  font-size: 12px;
  font-weight: 550;
}
.dropzone small {
  font-size: 9px;
  color: var(--muted);
}
.file-list {
  list-style: none;
  padding: 0;
  margin: 14px 0;
}
.file-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}
.file-grip {
  color: #71647e;
  cursor: grab;
}
.file-list li > div {
  min-width: 0;
  flex: 1;
}
.file-list strong {
  font-weight: 500;
  display: block;
  overflow-wrap: anywhere;
}
.file-list small {
  display: block;
  color: var(--muted);
  font-size: 9px;
}
.file-list button {
  background: none;
  border: 1px solid var(--line);
  border-radius: 5px;
  min-width: 25px;
  min-height: 28px;
  font-size: 12px;
  color: var(--muted);
}
.controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  margin-top: 18px;
}
.controls:empty {
  margin: 0;
}
.control {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
  color: #bcb1ce;
}
.control.wide {
  grid-column: 1/-1;
}
.control input[type="checkbox"] {
  width: 22px;
  height: 22px;
}
.execution-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}
.primary,
.secondary {
  border: 1px solid transparent;
  min-height: 41px;
  border-radius: 9px;
  font-size: 12px;
  padding: 10px 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  line-height: 1.2;
}
.primary {
  background: #b58be8;
  color: #1b1128;
  font-weight: 650;
}
.primary:hover {
  background: #c6a1f3;
  transform: translateY(-1px);
}
.secondary {
  background: #ffffff04;
  border-color: #ffffff18;
  color: #bdb1cc;
}
.primary.small {
  min-height: 34px;
  font-size: 11px;
  padding: 8px 12px;
}
.danger {
  color: #ffb0b0;
}
.help {
  margin: 17px 0 0;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.75;
}
.help summary {
  cursor: pointer;
  color: #b29bc9;
}
.help p {
  margin: 8px 0;
}
.progress-box {
  margin-top: 16px;
}
.progress-box p {
  font-size: 11px;
  color: var(--muted);
  overflow-wrap: anywhere;
  white-space: pre-line;
}
.progress-box p[data-state="error"] {
  color: #ff9fae;
}
.progress-box p[data-state="success"] {
  color: #81d6b1;
}
.output-heading {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  min-height: 32px;
  margin-bottom: 15px;
}
.empty-result {
  text-align: center;
  min-height: 310px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
  color: #8b7d9b;
  border: 1px dashed #ffffff10;
  border-radius: 12px;
}
.empty-result > span {
  font-size: 36px;
  color: #ad8bce;
  margin-bottom: 15px;
}
.empty-result h3 {
  font-size: 14px;
  font-weight: 550;
  color: #baaccc;
  margin: 0;
}
.empty-result p {
  font-size: 11px;
  max-width: 250px;
}
.result {
  padding: 14px;
  border: 1px solid #ffffff13;
  border-radius: 12px;
  margin-bottom: 14px;
  background: #ffffff02;
}
.result-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.result-heading > div {
  min-width: 0;
}
.result-heading strong {
  font-size: 11px;
  font-weight: 550;
  overflow-wrap: anywhere;
  display: block;
}
.result-heading small {
  font-size: 10px;
  color: var(--muted);
}
.result > img,
.result video,
.input-preview img,
.input-preview canvas {
  max-width: 100%;
  height: auto;
  display: block;
  margin: auto;
  border-radius: 7px;
}
.result > img {
  max-height: 400px;
  object-fit: contain;
  background: repeating-conic-gradient(#333 0% 25%, #29262f 0% 50%) 50%/16px
    16px;
}
.result audio,
.input-preview audio {
  width: 100%;
}
.result iframe {
  width: 100%;
  height: 400px;
  border: 0;
  border-radius: 7px;
}
.text-result {
  width: 100%;
  font-family: ui-monospace, monospace;
  font-size: 12px;
  white-space: pre;
  min-height: 190px;
  margin-bottom: 9px;
}
.chain-label {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 14px;
}
.chain-label select {
  font-size: 11px;
  margin-top: 5px;
}
.input-preview {
  margin-top: 20px;
}
.input-preview > video {
  max-width: 100%;
  max-height: 220px;
  border-radius: 8px;
}
.hint {
  font-size: 11px;
  color: var(--muted);
}
.draw-stage {
  position: relative;
  max-width: 100%;
  width: fit-content;
  margin: auto;
}
.draw-stage canvas {
  display: block;
  max-width: 100%;
  height: auto;
}
.draw-overlay {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: crosshair;
}
.page-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.page-tile {
  border: 1px solid #ffffff1c;
  background: #ffffff04;
  border-radius: 7px;
  padding: 6px;
  text-align: center;
  cursor: grab;
  min-height: 55px;
}
.page-tile span {
  font-size: 10px;
  color: var(--muted);
}
.page-tile canvas {
  width: 100%;
  height: auto;
  border-radius: 3px;
}
.page-buttons {
  display: flex;
  gap: 3px;
  justify-content: center;
}
.page-buttons button {
  background: #ffffff07;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  min-height: 26px;
  border-radius: 5px;
}
.model-notice {
  display: flex;
  gap: 10px;
  padding: 12px;
  background: #b58be80a;
  border: 1px solid #b58be820;
  border-radius: 8px;
  margin-top: 18px;
}
.model-notice > span {
  font-size: 20px;
  color: var(--purple);
}
.model-notice p {
  font-size: 10px;
  color: #ad9aba;
  margin: 0;
  line-height: 1.7;
}
.record-panel {
  text-align: center;
  padding: 25px 15px;
}
.record-panel > span {
  font-size: 45px;
  color: #df8fb5;
}
.record-panel p {
  font-size: 12px;
  color: var(--muted);
}
#recordClock {
  font-family: ui-monospace, monospace;
  font-size: 24px;
  letter-spacing: 3px;
}
.before-after {
  font-size: 11px;
  color: var(--muted);
  margin-top: 15px;
}
.before-after summary {
  cursor: pointer;
  margin-bottom: 10px;
}
.compare-stage {
  position: relative;
  background: repeating-conic-gradient(#333 0% 25%, #29262f 0% 50%) 50%/16px
    16px;
}
.compare-stage > img {
  width: 100%;
  height: auto;
  display: block;
}
.compare-stage .compare-after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  clip-path: inset(0 50% 0 0);
  background: repeating-conic-gradient(#333 0% 25%, #29262f 0% 50%) 50%/16px
    16px;
}
.markdown-result {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 15px;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.markdown-result pre {
  overflow: auto;
  padding: 12px;
  background: #0e0d14;
}
.markdown-result a {
  color: var(--cyan);
  text-decoration: underline;
}
.small-dialog {
  width: min(650px, 94vw);
  padding: 30px;
  max-height: 90dvh;
  overflow: auto;
}
.small-dialog > .close-button {
  float: right;
}
.small-dialog h2 {
  margin-top: 10px;
}
.small-dialog > p {
  font-size: 13px;
  color: var(--muted);
  margin: 18px 0;
  line-height: 1.8;
}
.community-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 20px 0;
}
.community-grid a {
  font-size: 12px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff03;
}
.community-grid a:hover {
  border-color: #bc8eff66;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 20px);
  max-width: 90vw;
  width: max-content;
  border: 1px solid #bd95ee55;
  background: #251e30;
  box-shadow: 0 10px 40px #0005;
  border-radius: 10px;
  padding: 13px 20px;
  font-size: 12px;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
}
.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (min-width: 1700px) {
  .hero,
  .discovery,
  footer {
    max-width: 1450px;
  }
  .navbar {
    padding-inline: max(24px, calc((100vw - 1400px) / 2));
  }
  .privacy-note {
    max-width: 1402px;
  }
  .tools-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
@media (max-width: 1100px) {
  .tools-grid,
  .tools-grid.is-compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .account-button {
    display: none;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  h1 {
    font-size: 46px;
  }
}
@media (max-width: 850px) {
  .offline-button,
  .network {
    display: none;
  }
  .hero {
    grid-template-columns: 1fr;
    padding-top: 38px;
    gap: 24px;
  }
  h1 {
    font-size: 40px;
    letter-spacing: -1.8px;
  }
  .tools-grid,
  .tools-grid.is-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .tool-card {
    padding: 16px;
  }
  .privacy-note {
    margin: 0 24px 40px;
  }
  .privacy-tag {
    display: none;
  }
  .workspace-body {
    grid-template-columns: 1fr;
  }
  .workspace-input {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .empty-result {
    min-height: 180px;
  }
  .workspace-header {
    padding: 20px;
  }
  .workspace-header p {
    grid-column: 1/-1;
    margin-top: 12px;
  }
  .workspace-header h2 {
    font-size: 20px;
  }
  .workspace {
    max-height: 94dvh;
  }
  .footer-top {
    flex-wrap: wrap;
  }
  .footer-top p {
    display: none;
  }
}
@media (max-width: 650px) {
  .navbar {
    height: 72px;
    padding: 0 16px;
    gap: 8px;
  }
  .command-bar {
    top: 72px;
  }
  .nav-actions {
    gap: 4px;
  }
  .nav-button {
    padding: 7px 9px;
    min-height: 38px;
    font-size: 10px;
  }
  .brand {
    gap: 7px;
  }
  .brand > span {
    font-size: 21px;
  }
  .brand img {
    width: 34px;
    height: 34px;
  }
  .brand small {
    font-size: 7px;
    letter-spacing: 1.5px;
  }
  .lang-switch button {
    min-width: 29px;
  }
  .hero {
    display: flex;
    flex-direction: column;
    padding: 28px 16px 26px;
    gap: 22px;
  }
  h1 {
    font-size: 36px;
    line-height: 1.12;
    letter-spacing: -1.7px;
    margin-top: 14px;
  }
  .hero-subtitle {
    font-size: 14px;
    line-height: 1.6;
  }
  .hero-pill {
    font-size: 11px;
  }
  .hero-stats {
    gap: 8px;
  }
  .stat-card {
    padding: 8px 11px;
  }
  .hero-stats strong {
    font-size: 18px;
  }
  .hero-stats span {
    font-size: 11px;
  }
  .hero-drop-card {
    padding: 16px 14px;
    border-radius: 18px;
  }
  .hero-logo {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }
  .hero-logo img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }
  .smart-badge {
    font-size: 9.5px;
    padding: 4px 9px;
  }
  .smart-shortcut {
    display: none;
  }
  .hero-drop-title {
    font-size: 18px;
  }
  .hero-drop-sub {
    font-size: 12.5px;
  }
  .smart-steps {
    font-size: 10.5px;
    padding: 7px 8px;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .smart-demo {
    padding: 10px;
  }
  .demo-file-row {
    flex-wrap: wrap;
    font-size: 11px;
    padding: 5px 8px;
  }
  .demo-chip {
    font-size: 11px;
    padding: 5px 7px;
  }
  .hero-drop-btn {
    font-size: 13px;
    padding: 12px 14px;
  }
  .matched-grid,
  .featured-grid {
    grid-template-columns: 1fr;
  }
  .discovery {
    padding: 0 16px 30px;
  }
  .search-shell {
    padding: 4px 12px;
    gap: 10px;
  }
  .search-shell input {
    font-size: 14px;
  }
  .quick-tools {
    gap: 6px;
    margin: 12px 0 18px;
  }
  .quick-tools button {
    font-size: 11px;
    padding: 6px 10px;
  }
  h2 {
    font-size: 20px;
  }
  #shownCount {
    font-size: 11px;
  }
  .category-nav {
    gap: 6px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
    margin-right: -16px;
    scrollbar-width: thin;
  }
  .category {
    flex-shrink: 0;
    font-size: 12px;
    padding: 8px 11px;
  }
  .filter-bar {
    gap: 8px;
    padding-bottom: 6px;
  }
  .view-filters {
    gap: 14px;
    width: 100%;
  }
  .view-filters button {
    font-size: 12px;
    padding: 6px 0;
  }
  .catalog-meta {
    width: 100%;
    justify-content: space-between;
  }
  .layout-switch button {
    font-size: 11px;
    padding: 4px 7px;
  }
  .catalog-section-head {
    flex-wrap: wrap;
  }
  .tools-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .tools-grid.is-compact {
    grid-template-columns: 1fr;
  }
  .tool-card {
    padding: 14px 13px;
    min-height: 164px;
    border-radius: 13px;
  }
  .tool-card h3 {
    font-size: 14px;
    margin-top: 5px;
  }
  .tool-card p {
    font-size: 12px;
  }
  .tool-icon {
    width: 36px;
    height: 36px;
    font-size: 17px;
    border-radius: 10px;
  }
  .card-top {
    margin-bottom: 10px;
  }
  .card-category {
    font-size: 9px;
  }
  .local-badge {
    font-size: 10px;
  }
  .privacy-note {
    margin: 0 16px 30px;
    padding: 20px 17px;
    gap: 10px;
  }
  .privacy-icon {
    font-size: 27px;
    min-width: 28px;
  }
  .privacy-note h2 {
    font-size: 13px;
  }
  .privacy-note p {
    font-size: 10px;
  }
  .footer-top .support-link {
    font-size: 10px;
  }
  .footer-bottom {
    align-items: start;
    flex-direction: column;
    gap: 12px;
  }
  .footer-bottom nav {
    flex-wrap: wrap;
    gap: 15px;
  }
  .workspace {
    width: 100%;
    max-height: 100dvh;
    height: 100dvh;
    border-radius: 0;
    border: 0;
  }
  .workspace-header {
    padding: 17px 16px;
  }
  .workspace-header h2 {
    font-size: 18px;
  }
  .workspace-icon {
    height: 46px;
    width: 42px;
    font-size: 26px;
  }
  .workspace-header .eyebrow {
    font-size: 8px;
  }
  .workspace-header p {
    font-size: 11px;
  }
  .workspace-input,
  .workspace-output {
    padding: 19px 16px;
  }
  .controls {
    gap: 12px;
  }
  .control {
    font-size: 10px;
  }
  .primary,
  .secondary {
    min-height: 44px;
  }
  .file-list button {
    min-width: 30px;
    min-height: 36px;
  }
  .page-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .execution-bar {
    position: sticky;
    bottom: 0;
    background: #17151ff2;
    padding: 12px 0;
    z-index: 2;
  }
  .small-dialog {
    padding: 24px 19px;
  }
  .community-grid a {
    font-size: 11px;
  }
  .result iframe {
    height: 330px;
  }
  .close-button {
    width: 40px;
    height: 40px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.nav-button {
  white-space: nowrap;
}
@media (max-width: 400px) {
  .about-button span {
    display: none;
  }
  .about-button {
    padding: 8px 11px;
  }
  .nav-actions {
    gap: 3px;
  }
  .navbar {
    padding-inline: 12px;
  }
}
#results {
  scroll-margin-top: 145px;
}
.input-preview > canvas {
  max-height: 420px;
  width: auto;
}
.nav-actions button {
  flex-shrink: 0;
}
.pdf-page-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 11px;
  color: var(--muted);
}
.pdf-page-bar button {
  min-width: 34px;
  padding: 5px 10px;
}
.sig-upload-bar {
  margin-bottom: 10px;
  display: flex;
  justify-content: center;
}
.file-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #ffffff08;
  font-size: 11px;
  cursor: pointer;
}
.stamp-overlay {
  cursor: grab;
}
.stamp-overlay:active {
  cursor: grabbing;
}
.refine-brush {
  margin-top: 12px;
  font-size: 11px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.refine-brush summary {
  cursor: pointer;
  margin-bottom: 10px;
}
.refine-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.refine-toolbar button.is-active {
  border-color: var(--cyan);
  color: var(--cyan);
  background: #64e5d614;
}
.refine-toolbar label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.refine-canvas {
  max-width: 100%;
  max-height: 420px;
  width: auto;
  height: auto;
  display: block;
  margin: auto;
  border-radius: 7px;
  cursor: crosshair;
  touch-action: none;
  background: repeating-conic-gradient(#333 0% 25%, #29262f 0% 50%) 50%/16px
    16px;
}
.ecosystem-shortcuts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  margin-bottom: 14px;
  border-radius: 10px;
  background: linear-gradient(120deg, #bc8eff12, #64e5d60d);
  border: 1px solid #bc8eff2b;
  font-size: 11px;
  color: var(--muted);
}
.ecosystem-shortcuts a {
  padding: 5px 10px;
  border-radius: 7px;
  background: #ffffff08;
  border: 1px solid var(--line);
  color: #e3d2ff;
  font-weight: 550;
}
.ecosystem-shortcuts a:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}
.paste-switch-bar {
  padding: 10px 12px;
  margin-bottom: 14px;
  border-radius: 10px;
  background: #64e5d60f;
  border: 1px solid #64e5d636;
  font-size: 11px;
  color: #c7f3ec;
}
.paste-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.paste-chips button {
  min-height: 30px;
  padding: 5px 10px;
  font-size: 11px;
}
.paste-chips button.is-active {
  border-color: var(--cyan);
  color: var(--cyan);
  background: #64e5d61c;
}
.mask-overlay {
  opacity: 0.56;
}
.camera-scanner {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.camera-stage {
  width: 100%;
  max-width: 440px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #64e5d644;
  background: #09080d;
}
.camera-stage video {
  width: 100%;
  display: block;
  max-height: 280px;
  object-fit: cover;
}
.record-wave {
  width: min(100%, 420px);
  height: 68px;
  margin: 14px auto 4px;
  display: block;
  border-radius: 10px;
  background: #100f18;
  border: 1px solid var(--line);
}
.trim-timeline {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 11px;
  background: #111019;
  border: 1px solid #bc8eff28;
}
.trim-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  margin-bottom: 10px;
}
.trim-head strong {
  color: var(--cyan);
  font-size: 11px;
}
.trim-badge {
  font-family: ui-monospace, monospace;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 5px;
  background: #ffffff08;
  color: #d4c9e6;
}
.trim-track-wrap {
  position: relative;
  height: 28px;
  display: flex;
  align-items: center;
}
.trim-track-bg {
  position: absolute;
  left: 0;
  right: 0;
  height: 6px;
  border-radius: 6px;
  background: #ffffff16;
}
.trim-track-fill {
  position: absolute;
  height: 6px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
}
.trim-range {
  position: absolute;
  left: 0;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
  height: 28px;
}
.trim-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  pointer-events: auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f5f0ff;
  border: 2px solid var(--purple);
  box-shadow: 0 2px 8px #0009;
  cursor: ew-resize;
}
.trim-range.trim-end::-webkit-slider-thumb {
  border-color: var(--cyan);
}
.trim-range::-moz-range-thumb {
  pointer-events: auto;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #f5f0ff;
  border: 2px solid var(--purple);
  box-shadow: 0 2px 8px #0009;
  cursor: ew-resize;
}
.trim-range.trim-end::-moz-range-thumb {
  border-color: var(--cyan);
}
.trim-actions {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
}
.diff-viewer,
.regex-viewer {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 14px;
  background: #0f0e16;
}
.diff-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 8px;
}
.diff-stat-add {
  color: #7ee2b8;
  font-weight: 600;
}
.diff-stat-del {
  color: #ff94a8;
  font-weight: 600;
}
.diff-scroll {
  max-height: 360px;
  overflow: auto;
  border-radius: 8px;
  border: 1px solid #ffffff10;
}
.diff-table {
  width: 100%;
  border-collapse: collapse;
  font-family: ui-monospace, monospace;
  font-size: 11px;
}
.diff-table td {
  padding: 3px 8px;
  vertical-align: top;
  white-space: pre-wrap;
  word-break: break-word;
  border-bottom: 1px solid #ffffff07;
}
.diff-table.split td:nth-child(2) {
  width: 50%;
  border-right: 1px solid #ffffff12;
}
.diff-table.split td:nth-child(4) {
  width: 50%;
}
.diff-ln {
  width: 34px;
  text-align: right;
  color: #6f6780;
  user-select: none;
}
.diff-sym {
  width: 18px;
  text-align: center;
  user-select: none;
}
.diff-add {
  background: #22c55e1c;
  color: #c8f7dc;
}
.diff-del {
  background: #f43f5e20;
  color: #ffd0d9;
}
.regex-highlight {
  margin: 0;
  padding: 12px;
  border-radius: 8px;
  background: #15131f;
  border: 1px solid #ffffff10;
  font-family: ui-monospace, monospace;
  font-size: 12px;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 240px;
  overflow: auto;
}
.regex-highlight mark {
  background: #bc8eff45;
  color: #f8f2ff;
  border-bottom: 2px solid var(--purple);
  border-radius: 3px;
  padding: 0 2px;
}
.regex-highlight mark.rx-alt {
  background: #64e5d638;
  border-bottom-color: var(--cyan);
}
.seo-tool-sheet {
  max-width: 1180px;
  margin: 0 auto 34px;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(135deg, #bc8eff08, transparent 60%), var(--card);
}
.seo-tool-sheet h2 {
  font-size: 19px;
  margin: 4px 0 10px;
  letter-spacing: -0.3px;
}
.seo-tool-sheet > p {
  color: #ada5bd;
  font-size: 13px;
  line-height: 1.7;
  margin: 0 0 16px;
}
.seo-faq {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}
.seo-faq details {
  border: 1px solid #ffffff10;
  border-radius: 10px;
  padding: 10px 14px;
  background: #100f18;
}
.seo-faq summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 560;
  color: #ece6f7;
}
.seo-faq details p {
  margin: 8px 0 2px;
  font-size: 12px;
  line-height: 1.65;
  color: #a69eb6;
}
.seo-related {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #968ea5;
}
.seo-related a {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #ffffff06;
  color: #dfd4f5;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}
.seo-related a:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}
.pixel-picker-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #13111c;
  font-size: 12px;
}
.pixel-swatch {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 1px solid #ffffff33;
  flex-shrink: 0;
}
.pixel-picker-bar small {
  color: var(--muted);
  font-family: ui-monospace, monospace;
}
.palette-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(125px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.palette-swatch {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #14121d;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, transform 0.15s;
}
.palette-swatch:hover {
  border-color: var(--cyan);
  transform: translateY(-1px);
}
.swatch-chip {
  width: 100%;
  height: 44px;
  border-radius: 6px;
  border: 1px solid #ffffff1a;
}
.palette-swatch strong {
  font-size: 12px;
  font-family: ui-monospace, monospace;
}
.palette-swatch small {
  font-size: 10px;
  color: var(--muted);
}
@media (max-width: 960px) {
  .seo-tool-sheet {
    margin: 0 24px 32px;
    padding: 18px 20px;
  }
}
