:root {
  color-scheme: light;
  --canvas: #f6f6f4;
  --canvas-2: #efefec;
  --canvas-3: #e6e6e1;
  --paper: #ffffff;
  --paper-tint: #fbfbf9;
  --ink: #14161c;
  --ink-strong: #0b0d12;
  --ink-2: #31353f;
  --muted: #5d626d;
  --faint: #6b707b;
  --ink-inverse: #f7f6f3;
  --line: #e7e7e3;
  --line-strong: #d8d8d2;
  --line-dark: #b3b3ab;
  --brand: #e8503a;
  --brand-strong: #c53d29;
  --brand-soft: #fdf1ee;
  --brand-tint: #f8ded7;
  --success: #0f8a5b;
  --success-soft: #e9f7f0;
  --warning: #a96a08;
  --warning-soft: #fbf3e4;
  --sky-soft: #edf2fa;
  --sans: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", "SF Mono", "Menlo", monospace;
  --page: 1440px;
  --pad: clamp(16px, 3.2vw, 44px);
  --section: clamp(44px, 5vw, 72px);
  --radius-media: 10px;
  --radius-control: 9px;
  --radius-panel: 14px;
  --radius-modal: 20px;
  --radius-pill: 999px;
  --shadow-card: 0 1px 2px rgba(20, 22, 28, .035);
  --shadow-hover: 0 2px 6px rgba(20, 22, 28, .045), 0 18px 36px -26px rgba(20, 22, 28, .24);
  --shadow-modal: 0 32px 96px -24px rgba(20, 22, 28, .3);
  --ease: cubic-bezier(.22, .8, .24, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--canvas); }
body {
  margin: 0;
  background:
    radial-gradient(56% 24% at 50% 0%, rgba(232, 80, 58, .035), transparent 70%),
    var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
button, input { font: inherit; }
button { color: inherit; }
a { color: inherit; }
img, svg { display: block; }
p, h1, h2, h3, h4, ol, ul, dl, dd, dt { margin: 0; }
ol, ul { padding: 0; }
::selection { background: var(--brand-tint); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.container, .header-inner, .page-body { width: min(100%, var(--page)); margin: 0 auto; padding-inline: var(--pad); }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1em; height: 1em; flex: 0 0 auto; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 100; padding: 10px 14px; border-radius: 8px; background: var(--ink); color: var(--ink-inverse); text-decoration: none; transition: top .2s var(--ease); }
.skip-link:focus { top: 12px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; border-bottom: 1px solid color-mix(in srgb, var(--line) 78%, transparent); background: color-mix(in srgb, var(--paper) 82%, transparent); backdrop-filter: blur(20px) saturate(140%); -webkit-backdrop-filter: blur(20px) saturate(140%); }
.header-inner { min-height: 72px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: 0 0 auto; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: var(--ink); color: var(--ink-inverse); font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: -.08em; }
.brand-mark.small { width: 30px; height: 30px; font-size: 10px; border-radius: 8px; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.1; gap: 3px; }
.brand-copy strong { font-size: 18px; font-weight: 650; letter-spacing: .01em; }
.brand-copy small { color: var(--muted); font-size: 10px; letter-spacing: .035em; }
.main-nav { display: flex; align-items: center; gap: 3px; min-width: 0; }
.nav-item { position: relative; min-height: 38px; padding: 0 13px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-size: 13px; cursor: pointer; transition: color .15s var(--ease), background .15s var(--ease); }
.nav-item:hover { background: color-mix(in srgb, var(--ink) 4%, transparent); color: var(--ink); }
.nav-item.active { color: var(--ink); }
.nav-item.active::after { position: absolute; right: 13px; bottom: 4px; left: 13px; height: 1.5px; background: var(--brand); content: ""; }
.header-search { display: flex; align-items: center; gap: 7px; width: clamp(210px, 22vw, 300px); height: 38px; margin-left: auto; padding: 0 11px; border: 1px solid transparent; border-radius: var(--radius-control); background: color-mix(in srgb, var(--ink) 4.5%, transparent); color: var(--muted); transition: background .15s var(--ease), border-color .15s var(--ease); }
.header-search:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); }
.header-search:focus-within { border-color: var(--ink); background: var(--paper); }
.header-search .icon { font-size: 15px; }
.header-search input { width: 0; flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 12px; }
.header-search input::placeholder { color: var(--faint); }
.header-actions { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.live-pill { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px color-mix(in srgb, var(--success) 12%, transparent); }
.header-cta { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border: 1px solid var(--ink); border-radius: var(--radius-pill); background: var(--ink); color: var(--ink-inverse); font-size: 12px; font-weight: 550; cursor: pointer; }
.header-cta:hover { background: var(--ink-2); }
.header-cta .icon { font-size: 13px; }

/* Shared */
.view { display: none; }
.view.active { display: block; }
.eyebrow { color: var(--brand); font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .09em; text-transform: uppercase; }
.mono { font-family: var(--mono); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 6vw, 82px) var(--pad) clamp(38px, 4.6vw, 58px); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #fbfbfa 0%, var(--canvas) 88%); }
.hero::before { position: absolute; inset: 0; background-image: radial-gradient(38% 52% at 8% 0%, rgba(232, 80, 58, .06), transparent 72%), radial-gradient(42% 58% at 92% 2%, rgba(70, 96, 130, .055), transparent 74%), linear-gradient(to right, color-mix(in srgb, var(--line) 62%, transparent) 1px, transparent 1px), linear-gradient(to bottom, color-mix(in srgb, var(--line) 62%, transparent) 1px, transparent 1px); background-size: auto, auto, 160px 160px, 160px 160px; content: ""; mask-image: linear-gradient(180deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.28) 58%, transparent 92%); pointer-events: none; }
.hero-inner { position: relative; z-index: 1; max-width: 880px; margin: 0 auto; text-align: center; }
.hero-kicker { display: inline-flex; align-items: center; justify-content: center; gap: 10px; color: var(--muted); font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; }
.hero-index { color: var(--brand); }
.hero-rule { width: 28px; height: 1px; background: var(--line-dark); }
.hero-note { color: var(--faint); font-family: var(--sans); font-size: 11.5px; letter-spacing: .02em; }
.hero h1 { margin-top: 18px; color: var(--ink); font-size: clamp(42px, 4.9vw, 64px); font-weight: 640; line-height: 1.08; letter-spacing: -.055em; text-wrap: balance; }
.hero-sub { max-width: 650px; margin: 18px auto 0; color: var(--muted); font-size: clamp(14px, 1vw, 15.5px); line-height: 1.8; text-wrap: pretty; }
.hero-search { display: flex; align-items: center; gap: 10px; width: min(100%, 720px); height: 58px; margin: 28px auto 0; padding: 7px 8px 7px 17px; border: 1px solid color-mix(in srgb, var(--line-dark) 62%, transparent); border-radius: 14px; background: color-mix(in srgb, var(--paper) 94%, transparent); box-shadow: 0 1px 0 rgba(255,255,255,.9) inset, 0 18px 44px -34px rgba(20,22,28,.55); transition: border-color .15s var(--ease), box-shadow .15s var(--ease); }
.hero-search:hover { border-color: var(--line-dark); }
.hero-search:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 6%, transparent), 0 22px 52px -34px rgba(20,22,28,.5); }
.hero-search > .icon { color: var(--muted); font-size: 19px; }
.hero-search input { flex: 1 1 0; width: 0; min-width: 0; height: 42px; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 14px; }
.hero-search input::placeholder { color: var(--faint); }
.hero-search button { display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 17px; border: 0; border-radius: var(--radius-pill); background: var(--ink); color: var(--ink-inverse); font-size: 12px; font-weight: 550; cursor: pointer; }
.hero-search button:hover { background: var(--ink-2); }
.hero-search button .icon { font-size: 14px; }
.hero-suggest { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 7px; margin-top: 13px; }
.hero-suggest > span { color: var(--faint); font-size: 11px; }
.quick-chip { min-height: 29px; padding: 0 10px; border: 1px solid color-mix(in srgb, var(--line) 82%, transparent); border-radius: var(--radius-pill); background: color-mix(in srgb, var(--paper) 52%, transparent); color: var(--muted); font-size: 11px; cursor: pointer; }
.quick-chip:hover { border-color: var(--line-dark); background: var(--paper); color: var(--ink); }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); width: min(100%, 720px); margin: 28px auto 0; padding-top: 16px; border-top: 1px solid var(--line); }
.hero-stats > div { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.hero-stats > div + div { border-left: 1px solid var(--line); }
.hero-stats dt { color: var(--faint); font-size: 11px; }
.hero-stats dd { color: var(--ink); font-size: 20px; font-weight: 620; letter-spacing: -.025em; }
.hero-stats dd.is-text { font-size: 13px; line-height: 1.7; }

/* Sections */
.page-body { padding-bottom: clamp(80px, 9vw, 130px); }
.content-section { padding-top: var(--section); }
.section-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px; padding-bottom: 17px; border-bottom: 1px solid var(--line-strong); }
.section-copy { display: grid; grid-template-columns: 54px minmax(0, 1fr); align-items: start; gap: 18px; min-width: 0; }
.section-index { padding-top: 3px; color: var(--faint); font-family: var(--mono); font-size: 11px; }
.section-copy h2 { color: var(--ink); font-size: clamp(27px, 2.65vw, 38px); font-weight: 580; line-height: 1.16; letter-spacing: -.045em; }
.section-copy p { max-width: 720px; margin-top: 9px; color: var(--muted); font-size: 13px; line-height: 1.75; }
.section-tools { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.filter-chips { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.filter-chip { min-height: 30px; padding: 0 10px; border: 1px solid transparent; border-radius: var(--radius-pill); background: transparent; color: var(--muted); font-size: 11px; cursor: pointer; }
.filter-chip:hover { background: var(--canvas-2); color: var(--ink); }
.filter-chip.active { border-color: var(--ink); background: var(--ink); color: var(--ink-inverse); }
.result-count { color: var(--faint); font-family: var(--mono); font-size: 10px; }
.section-link { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0; border: 0; background: transparent; color: var(--ink-2); font-size: 12px; font-weight: 550; cursor: pointer; white-space: nowrap; }
.section-link:hover { color: var(--brand); }
.section-link .icon { font-size: 14px; }

/* Service cards */
.tool-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.service-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-panel); background: var(--paper); box-shadow: var(--shadow-card); cursor: pointer; transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease); }
.service-card:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: var(--shadow-hover); }
.service-visual { position: relative; height: 132px; overflow: hidden; background: var(--tone, #f4eee9); }
.service-visual::before { position: absolute; inset: 0; background-image: linear-gradient(to right, rgba(20,22,28,.05) 1px, transparent 1px), linear-gradient(to bottom, rgba(20,22,28,.05) 1px, transparent 1px); background-size: 28px 28px; content: ""; opacity: .55; }
.service-visual::after { position: absolute; right: -30px; bottom: -60px; width: 160px; height: 160px; border: 1px solid rgba(20,22,28,.12); border-radius: 50%; content: ""; }
.service-visual .visual-mark { position: absolute; left: 16px; bottom: 15px; display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid rgba(20,22,28,.1); border-radius: 13px; background: rgba(255,255,255,.72); color: var(--ink); font-size: 18px; font-weight: 650; letter-spacing: -.04em; backdrop-filter: blur(8px); }
.visual-top { position: absolute; z-index: 1; top: 13px; right: 13px; left: 13px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.visual-category { color: rgba(20,22,28,.62); font-family: var(--mono); font-size: 9px; letter-spacing: .04em; }
.visual-status { display: inline-flex; align-items: center; gap: 4px; padding: 3px 7px; border: 1px solid rgba(20,22,28,.08); border-radius: var(--radius-pill); background: rgba(255,255,255,.62); color: var(--ink-2); font-size: 9px; backdrop-filter: blur(8px); }
.visual-status.warn { background: var(--warning-soft); color: var(--warning); }
.service-body { display: flex; flex: 1; flex-direction: column; padding: 15px 16px 12px; }
.service-title-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.service-title-row h3 { font-size: 18px; font-weight: 620; line-height: 1.2; letter-spacing: -.035em; }
.service-code { color: var(--faint); font-family: var(--mono); font-size: 8px; white-space: nowrap; }
.service-tagline { margin-top: 7px; color: var(--muted); font-size: 12px; line-height: 1.65; }
.service-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: auto; padding-top: 13px; }
.service-tag { padding: 3px 6px; border-radius: 4px; background: var(--canvas); color: var(--muted); font-size: 9px; }
.service-footer { display: grid; grid-template-columns: 1fr 1fr 28px; gap: 8px; align-items: center; padding: 11px 16px; border-top: 1px solid var(--line); }
.service-footer span { display: block; color: var(--faint); font-size: 9px; }
.service-footer strong { display: block; margin-top: 3px; color: var(--ink-2); font-size: 10px; font-weight: 550; }
.service-arrow { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 50%; color: var(--muted); }
.service-card:hover .service-arrow { border-color: var(--brand); background: var(--brand); color: var(--white); }
.service-arrow .icon { font-size: 13px; }
.empty-state { grid-column: 1 / -1; padding: 56px 20px; border: 1px dashed var(--line-strong); border-radius: var(--radius-panel); background: var(--paper-tint); text-align: center; color: var(--muted); }
.empty-state strong { display: block; color: var(--ink); font-size: 17px; font-weight: 600; }
.empty-state span { display: block; margin-top: 8px; font-size: 12px; }

/* Home workflow rows */
.home-workflow-list { margin-top: 8px; border-top: 1px solid var(--line); }
.home-workflow-row { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; align-items: center; gap: 18px; width: 100%; padding: 18px 10px; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; cursor: pointer; transition: background .15s var(--ease), padding .15s var(--ease); }
.home-workflow-row:hover { background: var(--paper); padding-inline: 15px; }
.home-workflow-index { color: var(--brand); font-family: var(--mono); font-size: 10px; }
.home-workflow-main h3 { font-size: 16px; font-weight: 600; letter-spacing: -.02em; }
.home-workflow-main p { margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.home-workflow-chain { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.home-workflow-chain span { padding: 3px 6px; border-radius: 4px; background: var(--canvas); color: var(--faint); font-size: 9px; }
.home-workflow-meta { display: flex; align-items: center; gap: 18px; color: var(--faint); font-family: var(--mono); font-size: 9px; white-space: nowrap; }
.home-workflow-meta .icon { font-size: 14px; color: var(--muted); }
.home-workflow-row:hover .home-workflow-meta .icon { color: var(--brand); }

/* Home prompts */
.home-prompt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.home-prompt-card { display: flex; flex-direction: column; min-height: 196px; padding: 17px; border: 1px solid var(--line); border-radius: var(--radius-panel); background: var(--paper); box-shadow: var(--shadow-card); cursor: pointer; transition: transform .18s var(--ease), box-shadow .18s var(--ease); }
.home-prompt-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.home-prompt-top { display: flex; justify-content: space-between; gap: 10px; color: var(--brand); font-family: var(--mono); font-size: 9px; }
.home-prompt-top span:last-child { color: var(--faint); }
.home-prompt-card h3 { margin-top: 17px; font-size: 17px; font-weight: 600; letter-spacing: -.03em; }
.home-prompt-card p { margin-top: 7px; color: var(--muted); font-size: 11px; line-height: 1.65; }
.home-prompt-preview { margin-top: 14px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper-tint); color: var(--ink-2); font-family: var(--mono); font-size: 9px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.home-prompt-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 13px; }
.home-prompt-footer button { display: inline-flex; align-items: center; gap: 5px; min-height: 30px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); background: var(--paper); color: var(--ink-2); font-size: 10px; cursor: pointer; }
.home-prompt-footer button:hover { border-color: var(--ink); color: var(--ink); }
.home-prompt-footer button .icon { font-size: 12px; }

/* Agent band */
.agent-band { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); margin-top: var(--section); padding: clamp(28px, 3.4vw, 46px); overflow: hidden; border-radius: 18px; background: var(--ink); color: var(--ink-inverse); }
.agent-band::before { position: absolute; right: -10%; top: -70%; width: 60%; height: 160%; background: radial-gradient(closest-side, rgba(232,80,58,.22), transparent); content: ""; pointer-events: none; }
.agent-band > * { position: relative; z-index: 1; }
.agent-band .eyebrow { color: #ff9b89; }
.agent-band h2 { margin-top: 14px; font-size: clamp(30px, 3.2vw, 44px); font-weight: 560; line-height: 1.16; letter-spacing: -.05em; }
.agent-band-copy > p:last-of-type { max-width: 480px; margin-top: 17px; color: #b6bac1; font-size: 13px; line-height: 1.8; }
.band-link { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; margin-top: 24px; padding: 0 14px; border: 1px solid rgba(247,246,243,.24); border-radius: var(--radius-pill); background: transparent; color: var(--ink-inverse); font-size: 11px; cursor: pointer; }
.band-link:hover { border-color: rgba(247,246,243,.5); background: rgba(255,255,255,.05); }
.band-link .icon { font-size: 14px; }
.agent-band-list { border-top: 1px solid rgba(247,246,243,.13); }
.agent-band-list li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid rgba(247,246,243,.13); list-style: none; }
.agent-band-list li > span { color: #ff9b89; font-family: var(--mono); font-size: 9px; }
.agent-band-list strong { display: block; font-size: 12px; font-weight: 550; }
.agent-band-list p { margin-top: 3px; color: #9299a0; font-size: 10px; line-height: 1.45; }
.agent-band-list em { color: #c9cdd2; font-family: var(--mono); font-size: 9px; font-style: normal; white-space: nowrap; }
.band-feed { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.band-feed-row { min-width: 0; padding: 9px 10px; border: 1px solid rgba(247,246,243,.1); border-radius: 8px; background: rgba(255,255,255,.03); }
.band-feed-row span { color: #858d95; font-family: var(--mono); font-size: 8px; }
.band-feed-row p { margin-top: 5px; color: #c7cbd0; font-size: 9px; line-height: 1.45; }

/* Page masthead */
.page-masthead { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .45fr); align-items: end; gap: clamp(48px, 8vw, 120px); padding: clamp(48px, 5.4vw, 72px) 0 clamp(36px, 4.2vw, 54px); border-bottom: 1px solid var(--line-strong); }
.page-masthead-copy h1 { max-width: 860px; margin-top: 15px; font-size: clamp(42px, 4.4vw, 62px); font-weight: 560; line-height: 1.1; letter-spacing: -.06em; text-wrap: balance; }
.page-masthead-copy > p:last-child { max-width: 670px; margin-top: 22px; color: var(--muted); font-size: 15px; line-height: 1.85; }
.page-masthead-note { align-self: end; min-width: 0; padding: 0 0 7px 26px; border-left: 1px solid var(--line-strong); color: var(--muted); font-size: 13px; line-height: 1.75; }
.page-masthead-note > span { display: block; color: var(--faint); font-size: 12px; line-height: 1.4; }
.page-masthead-note > strong { display: block; margin: 8px 0 3px; color: var(--ink); font-size: clamp(40px, 4vw, 52px); font-weight: 540; line-height: .95; letter-spacing: -.055em; }
.page-masthead-note > p { margin-top: 8px; }

/* Workflow */
.workflow-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding-top: 26px; }
.workflow-card { display: flex; flex-direction: column; min-height: 320px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-panel); background: var(--paper); box-shadow: var(--shadow-card); transition: box-shadow .18s var(--ease), transform .18s var(--ease); }
.workflow-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.workflow-card.featured { grid-column: span 2; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 36px; }
.workflow-header { display: flex; flex-direction: column; }
.workflow-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.workflow-code { color: var(--brand); font-family: var(--mono); font-size: 10px; }
.workflow-type { padding: 4px 8px; border-radius: var(--radius-pill); background: var(--brand-soft); color: var(--brand-strong); font-size: 9px; font-weight: 550; }
.workflow-card h3 { margin-top: 24px; font-size: clamp(24px, 2.6vw, 34px); font-weight: 600; line-height: 1.08; letter-spacing: -.05em; }
.workflow-sub { margin-top: 10px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.workflow-fit { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 18px; align-items: center; }
.workflow-fit span, .workflow-output span { margin-right: 2px; color: var(--faint); font-family: var(--mono); font-size: 8px; }
.workflow-fit b { padding: 3px 6px; border-radius: 4px; background: var(--canvas); color: var(--muted); font-size: 9px; font-weight: 500; }
.workflow-output { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 3px; padding-top: 12px; border-top: 1px solid var(--line); }
.workflow-output strong { font-size: 10px; font-weight: 550; }
.workflow-steps { display: flex; flex-direction: column; margin-top: 22px; border-top: 1px solid var(--line); list-style: none; }
.workflow-step { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--line); }
.workflow-step .step-no { color: var(--faint); font-family: var(--mono); font-size: 9px; }
.workflow-step .step-name { font-size: 11px; }
.workflow-step .step-tool { color: var(--faint); font-size: 9px; text-align: right; }
.workflow-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 18px; }
.workflow-meta { display: flex; flex-wrap: wrap; gap: 9px; color: var(--faint); font-family: var(--mono); font-size: 9px; }
.workflow-meta span + span::before { margin-right: 9px; color: var(--line-dark); content: "/"; }
.workflow-open { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 11px; border: 1px solid var(--ink); border-radius: var(--radius-pill); background: var(--ink); color: var(--ink-inverse); font-size: 10px; font-weight: 550; cursor: pointer; }
.workflow-open:hover { background: var(--ink-2); }
.workflow-open .icon { font-size: 13px; }
.featured .workflow-header { min-height: 100%; }
.featured .workflow-footer { margin-top: 24px; }

/* Prompts */
.prompt-layout { display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); gap: 20px; padding-top: 26px; align-items: start; }
.prompt-list { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-panel); background: var(--paper); box-shadow: var(--shadow-card); }
.prompt-item { display: block; width: 100%; padding: 15px 16px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: inherit; text-align: left; cursor: pointer; transition: background .15s var(--ease), padding .15s var(--ease); }
.prompt-item:last-child { border-bottom: 0; }
.prompt-item:hover { background: var(--paper-tint); }
.prompt-item.active { box-shadow: inset 2px 0 0 var(--brand); background: var(--brand-soft); padding-left: 18px; }
.prompt-item-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.prompt-item h3 { font-size: 13px; font-weight: 600; letter-spacing: -.02em; }
.prompt-model { color: var(--brand); font-family: var(--mono); font-size: 9px; white-space: nowrap; }
.prompt-item p { margin-top: 6px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.prompt-item-meta { display: flex; gap: 8px; margin-top: 9px; color: var(--faint); font-family: var(--mono); font-size: 8px; }
.prompt-detail { position: sticky; top: 92px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-panel); background: var(--paper); box-shadow: var(--shadow-card); }
.prompt-detail-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.prompt-detail h3 { margin-top: 8px; font-size: clamp(23px, 2.6vw, 32px); font-weight: 600; line-height: 1.12; letter-spacing: -.05em; }
.prompt-detail-note { max-width: 620px; margin-top: 10px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.prompt-vars { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 15px; }
.prompt-var { padding: 4px 7px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper-tint); color: var(--muted); font-family: var(--mono); font-size: 9px; }
.prompt-code { margin-top: 18px; padding: 17px; overflow-wrap: anywhere; border: 1px solid var(--line); border-radius: 10px; background: var(--paper-tint); color: var(--ink-2); font-family: var(--mono); font-size: 11px; line-height: 1.75; white-space: pre-wrap; }
.prompt-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.prompt-actions small { color: var(--faint); font-size: 9px; }
.copy-button { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 13px; border: 1px solid var(--ink); border-radius: var(--radius-pill); background: var(--ink); color: var(--ink-inverse); font-size: 10px; font-weight: 550; cursor: pointer; }
.copy-button:hover { background: var(--ink-2); }
.copy-button .icon { font-size: 13px; }
.prompt-example { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 17px; }
.example-box { padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper-tint); }
.example-box span { display: block; color: var(--faint); font-family: var(--mono); font-size: 8px; }
.example-box p { margin-top: 7px; color: var(--muted); font-size: 10px; line-height: 1.6; }

/* Ops */
.ops-masthead { grid-template-columns: minmax(0, 1fr) minmax(250px, .42fr); }
.ops-note { display: flex; flex-direction: column; gap: 0; }
.ops-note > p { margin-top: 5px; }
.run-button { display: inline-flex; align-items: center; gap: 7px; min-height: 38px; margin-top: 16px; padding: 0 14px; border: 1px solid var(--ink); border-radius: var(--radius-pill); background: var(--ink); color: var(--ink-inverse); font-size: 11px; font-weight: 550; cursor: pointer; align-self: flex-start; }
.run-button:hover { background: var(--ink-2); }
.run-button:disabled { opacity: .6; cursor: wait; }
.run-button .icon { font-size: 14px; }
.pipeline { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; padding-top: 24px; }
.agent-card { min-height: 145px; padding: 15px; border: 1px solid var(--line); border-radius: var(--radius-panel); background: var(--paper); box-shadow: var(--shadow-card); }
.agent-card.running { border-color: var(--brand); box-shadow: inset 0 2px 0 var(--brand), var(--shadow-card); }
.agent-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.agent-index { color: var(--faint); font-family: var(--mono); font-size: 9px; }
.agent-state { display: inline-flex; align-items: center; gap: 4px; color: var(--success); font-family: var(--mono); font-size: 8px; }
.agent-state::before { width: 5px; height: 5px; border-radius: 50%; background: var(--success); content: ""; }
.agent-card h3 { margin-top: 15px; font-size: 17px; font-weight: 600; letter-spacing: -.03em; }
.agent-role { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.agent-metric { display: flex; align-items: baseline; gap: 5px; margin-top: 17px; }
.agent-metric strong { font-family: var(--mono); font-size: 20px; font-weight: 500; letter-spacing: -.05em; }
.agent-metric span { color: var(--faint); font-size: 9px; }
.agent-last { margin-top: 6px; color: var(--faint); font-family: var(--mono); font-size: 8px; }
.ops-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr); gap: 16px; margin-top: 16px; }
.panel { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-panel); background: var(--paper); box-shadow: var(--shadow-card); }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.panel-head h3 { margin-top: 7px; font-size: 22px; font-weight: 600; letter-spacing: -.04em; }
.panel-count { color: var(--faint); font-family: var(--mono); font-size: 9px; white-space: nowrap; }
.table-wrap { margin-top: 17px; overflow-x: auto; }
.queue-table { width: 100%; border-collapse: collapse; font-size: 10px; }
.queue-table th { padding: 0 0 9px; border-bottom: 1px solid var(--line); color: var(--faint); font-family: var(--mono); font-size: 8px; font-weight: 400; text-align: left; white-space: nowrap; }
.queue-table td { padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.queue-table tr:last-child td { border-bottom: 0; }
.queue-entry { display: flex; flex-direction: column; gap: 3px; }
.queue-entry strong { font-size: 11px; font-weight: 550; }
.queue-entry span { color: var(--faint); font-size: 9px; }
.agent-name { color: var(--brand); font-family: var(--mono); font-size: 9px; }
.queue-state { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); white-space: nowrap; }
.queue-state::before { width: 5px; height: 5px; border-radius: 50%; background: var(--success); content: ""; }
.queue-state.review::before { background: var(--warning); }
.confidence { font-family: var(--mono); font-size: 9px; }
.queue-time { color: var(--faint); font-family: var(--mono); font-size: 8px; white-space: nowrap; }
.quality-list { margin-top: 17px; }
.quality-item { display: grid; grid-template-columns: 17px 1fr auto; gap: 8px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); font-size: 10px; }
.quality-item .icon { color: var(--success); font-size: 14px; }
.quality-item strong { color: var(--muted); font-family: var(--mono); font-size: 9px; font-weight: 400; }
.quality-dot { width: 6px; height: 6px; margin-left: 3px; border-radius: 50%; background: var(--warning); }
.quality-item.warn strong { color: var(--warning); }
.quality-panel .section-link { margin-top: 15px; }
.change-log { margin-top: 16px; }
.change-list { margin-top: 16px; border-top: 1px solid var(--line); }
.change-row { display: grid; grid-template-columns: 70px 100px minmax(0, 1fr) 100px; gap: 14px; align-items: center; padding: 12px 4px; border-bottom: 1px solid var(--line); font-size: 10px; }
.change-row:last-child { border-bottom: 0; }
.change-time { color: var(--faint); font-family: var(--mono); font-size: 8px; }
.change-action { color: var(--brand); font-family: var(--mono); font-size: 9px; }
.change-target { font-weight: 550; }
.change-source { color: var(--faint); font-size: 9px; text-align: right; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--paper-tint); }
.footer-inner { width: min(100%, var(--page)); margin: 0 auto; padding: 36px var(--pad) 52px; display: grid; grid-template-columns: 1fr auto 1.15fr; gap: 28px; align-items: start; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand strong { font-size: 14px; font-weight: 600; }
.footer-brand p { margin-top: 3px; color: var(--faint); font-size: 10px; }
.footer-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.footer-meta span { padding: 4px 7px; border: 1px solid var(--line); border-radius: var(--radius-pill); color: var(--faint); font-size: 9px; }
.footer-note { color: var(--faint); font-size: 10px; line-height: 1.7; text-align: right; }

/* Dialog */
dialog { width: min(700px, calc(100% - 32px)); max-height: 88vh; margin: auto; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-modal); background: var(--paper); color: var(--ink); box-shadow: var(--shadow-modal); }
dialog::backdrop { background: rgba(20,22,28,.34); backdrop-filter: blur(6px); }
.dialog-inner { position: relative; padding: 30px; overflow-y: auto; max-height: 88vh; }
.dialog-close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--muted); cursor: pointer; }
.dialog-close:hover { border-color: var(--ink); background: var(--ink); color: var(--ink-inverse); }
.dialog-kicker { color: var(--brand); font-family: var(--mono); font-size: 9px; }
.dialog-title { margin-top: 10px; padding-right: 36px; font-size: clamp(26px, 4vw, 38px); font-weight: 600; line-height: 1.08; letter-spacing: -.055em; }
.dialog-sub { margin-top: 10px; color: var(--muted); font-size: 12px; line-height: 1.75; }
.dialog-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 17px; }
.dialog-meta span { padding: 4px 8px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--paper-tint); color: var(--muted); font-family: var(--mono); font-size: 8px; }
.dialog-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 22px; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--line); }
.dialog-grid div { padding: 13px; background: var(--paper); }
.dialog-grid span { display: block; color: var(--faint); font-family: var(--mono); font-size: 8px; }
.dialog-grid strong { display: block; margin-top: 6px; font-size: 12px; font-weight: 550; }
.dialog-prompt { margin-top: 17px; padding: 15px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper-tint); color: var(--ink-2); font-family: var(--mono); font-size: 10px; line-height: 1.7; white-space: pre-wrap; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 19px; }
.dialog-action { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 13px; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); background: var(--paper); color: var(--ink); font-size: 10px; font-weight: 550; text-decoration: none; cursor: pointer; }
.dialog-action.primary { border-color: var(--ink); background: var(--ink); color: var(--ink-inverse); }
.dialog-action:hover { border-color: var(--ink); }
.dialog-action.primary:hover { background: var(--ink-2); }
.dialog-steps { margin-top: 19px; border-top: 1px solid var(--line); }
.dialog-step { display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.dialog-step .step-no { color: var(--brand); font-family: var(--mono); font-size: 9px; }
.dialog-step strong { display: block; font-size: 12px; font-weight: 550; }
.dialog-step p { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.65; }
.dialog-note { margin-top: 17px; padding: 12px 14px; border-left: 2px solid var(--brand); border-radius: 0 8px 8px 0; background: var(--brand-soft); color: #7e382d; font-size: 10px; line-height: 1.7; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 80; padding: 10px 15px; border-radius: var(--radius-pill); background: var(--ink); color: var(--ink-inverse); box-shadow: 0 12px 34px -12px rgba(20,22,28,.45); font-size: 11px; opacity: 0; pointer-events: none; transform: translate(-50%, 10px); transition: opacity .2s var(--ease), transform .2s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Responsive */
@media (max-width: 1180px) {
  .header-search { width: 220px; }
  .tool-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pipeline { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .live-pill { display: none; }
  .header-inner { gap: 18px; }
  .main-nav { gap: 1px; }
  .nav-item { padding-inline: 10px; }
  .header-search { width: min(230px, 28vw); }
  .workflow-card.featured { grid-column: span 2; }
  .ops-layout { grid-template-columns: 1fr; }
  .agent-band { grid-template-columns: 1fr; gap: 30px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-note { grid-column: span 2; text-align: left; }
}
@media (max-width: 820px) {
  .header-inner { flex-wrap: wrap; padding-block: 10px 0; gap: 10px 16px; }
  .header-search { order: 4; width: 100%; margin-left: 0; }
  .main-nav { order: 3; width: 100%; overflow-x: auto; }
  .header-actions { margin-left: auto; }
  .hero { padding-top: 42px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 14px 0; }
  .hero-stats > div:nth-child(3) { border-left: 0; }
  .hero-stats > div:nth-child(3), .hero-stats > div:nth-child(4) { padding-top: 10px; border-top: 1px solid var(--line); }
  .section-heading { grid-template-columns: 1fr; align-items: start; }
  .section-copy { grid-template-columns: 36px minmax(0, 1fr); gap: 12px; }
  .section-tools { align-items: flex-start; }
  .filter-chips { justify-content: flex-start; }
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-prompt-grid { grid-template-columns: 1fr; }
  .home-workflow-row { grid-template-columns: 40px minmax(0, 1fr); }
  .home-workflow-meta { grid-column: 2; justify-content: flex-start; }
  .page-masthead { grid-template-columns: 1fr; gap: 24px; }
  .page-masthead-note { padding: 18px 0 0; border-top: 1px solid var(--line-strong); border-left: 0; }
  .workflow-grid { grid-template-columns: 1fr; }
  .workflow-card.featured { grid-column: span 1; grid-template-columns: 1fr; }
  .prompt-layout { grid-template-columns: 1fr; }
  .prompt-detail { position: static; }
  .pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .band-feed { grid-template-columns: 1fr; }
}
@media (max-width: 580px) {
  .brand-copy small { display: none; }
  .header-cta { height: 36px; padding-inline: 12px; }
  .hero h1 { font-size: clamp(38px, 12vw, 52px); }
  .hero-kicker { flex-wrap: wrap; row-gap: 5px; }
  .hero-note { width: 100%; }
  .hero-search { height: auto; min-height: 54px; padding-left: 13px; }
  .hero-search input { font-size: 12px; }
  .hero-search button { height: 38px; padding-inline: 12px; }
  .hero-suggest > span { width: 100%; }
  .hero-stats dd { font-size: 18px; }
  .content-section { padding-top: 40px; }
  .section-copy h2 { font-size: 26px; }
  .tool-grid { grid-template-columns: 1fr; }
  .service-visual { height: 124px; }
  .agent-band { margin-top: 40px; padding: 24px 20px; border-radius: 14px; }
  .agent-band h2 { font-size: 30px; }
  .page-masthead-copy h1 { font-size: clamp(38px, 12vw, 52px); }
  .page-masthead-copy > p:last-child { font-size: 14px; }
  .workflow-card { padding: 18px; }
  .workflow-card h3 { font-size: 27px; }
  .workflow-step { grid-template-columns: 24px 1fr; }
  .workflow-step .step-tool { grid-column: 2; margin-top: -5px; text-align: left; }
  .prompt-detail { padding: 18px; }
  .prompt-example { grid-template-columns: 1fr; }
  .pipeline { grid-template-columns: 1fr; }
  .agent-card { min-height: 0; }
  .change-row { grid-template-columns: 60px minmax(0, 1fr); gap: 7px; }
  .change-source { grid-column: 2; text-align: left; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-note { grid-column: auto; }
  .dialog-inner { padding: 22px 18px; }
  .dialog-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* --------------------------------------------------------------------------
   v02 — compact public index, flat navigation, search-first header
   -------------------------------------------------------------------------- */

.header-inner { gap: 22px; }
.main-nav { overflow-x: auto; scrollbar-width: none; }
.main-nav::-webkit-scrollbar { display: none; }
.nav-item { padding-inline: 11px; font-size: 12px; white-space: nowrap; }
.nav-item.active::after { right: 11px; left: 11px; }
.header-search-wrap { position: relative; margin-left: auto; flex: 0 1 280px; min-width: 190px; }
.header-search { width: 100%; margin-left: 0; }
.header-search kbd { color: var(--faint); font-family: var(--mono); font-size: 9px; letter-spacing: -.05em; }
.submit-link { display: inline-flex; align-items: center; gap: 5px; min-height: 36px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); background: var(--paper); color: var(--ink-2); font-size: 11px; cursor: pointer; white-space: nowrap; }
.submit-link:hover { border-color: var(--ink); color: var(--ink); }
.submit-link .icon { font-size: 12px; }

.search-panel { position: absolute; z-index: 60; top: calc(100% + 10px); right: 0; width: min(440px, calc(100vw - 32px)); padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-panel); background: var(--paper); box-shadow: var(--shadow-hover); }
.search-panel[hidden] { display: none; }
.search-panel-head { display: flex; justify-content: space-between; gap: 12px; padding: 2px 4px 9px; border-bottom: 1px solid var(--line); color: var(--faint); font-family: var(--mono); font-size: 9px; }
.search-results { max-height: min(430px, 62vh); overflow-y: auto; }
.search-group + .search-group { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line); }
.search-group-title { display: block; padding: 7px 6px 4px; color: var(--faint); font-family: var(--mono); font-size: 8px; letter-spacing: .09em; text-transform: uppercase; }
.search-result { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 9px; align-items: center; width: 100%; padding: 9px 8px; border: 0; border-radius: 8px; background: transparent; text-align: left; cursor: pointer; }
.search-result:hover, .search-result.active { background: var(--canvas); }
.search-type { display: grid; place-items: center; width: 31px; height: 31px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper-tint); color: var(--brand); font-family: var(--mono); font-size: 8px; }
.search-result-main { min-width: 0; }
.search-result-main strong { display: block; overflow: hidden; color: var(--ink); font-size: 12px; font-weight: 550; text-overflow: ellipsis; white-space: nowrap; }
.search-result-main span { display: block; overflow: hidden; margin-top: 2px; color: var(--faint); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.search-result-kind { color: var(--faint); font-family: var(--mono); font-size: 8px; }
.search-empty { padding: 28px 14px; color: var(--muted); font-size: 11px; line-height: 1.7; text-align: center; }
.search-popular { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 6px 4px; }
.search-popular button { min-height: 28px; padding: 0 9px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--paper-tint); color: var(--muted); font-size: 10px; cursor: pointer; }
.search-popular button:hover { border-color: var(--line-dark); color: var(--ink); }
.search-panel-foot { display: flex; justify-content: space-between; gap: 12px; padding: 9px 4px 1px; border-top: 1px solid var(--line); color: var(--faint); font-family: var(--mono); font-size: 8px; }

.discovery-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(250px, 420px); gap: clamp(32px, 5vw, 76px); align-items: end; padding: 38px 0 26px; }
.discovery-copy h1 { max-width: 780px; margin-top: 9px; font-size: clamp(34px, 3.4vw, 48px); font-weight: 620; line-height: 1.1; letter-spacing: -.055em; text-wrap: balance; }
.discovery-copy > p:last-child { max-width: 720px; margin-top: 12px; color: var(--muted); font-size: 13px; line-height: 1.75; }
.discovery-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-panel); background: var(--line); }
.discovery-stats > div { padding: 11px 13px; background: var(--paper); }
.discovery-stats dt { color: var(--faint); font-size: 9px; }
.discovery-stats dd { margin-top: 5px; color: var(--ink); font-size: 18px; font-weight: 620; letter-spacing: -.025em; }
.discovery-stats dd.is-text { font-size: 12px; line-height: 1.75; }
.dimension-section { padding: 20px 0 0; border-top: 1px solid var(--line); }
.mini-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.mini-heading h2 { font-size: 15px; font-weight: 600; letter-spacing: -.02em; }
.mini-heading span { color: var(--faint); font-size: 10px; }
.dimension-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 11px; }
.dimension-card { display: flex; align-items: center; gap: 11px; min-width: 0; min-height: 74px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 11px; background: var(--paper); text-align: left; cursor: pointer; transition: border-color .15s var(--ease), box-shadow .15s var(--ease), transform .15s var(--ease); }
.dimension-card:hover { transform: translateY(-1px); border-color: var(--line-dark); box-shadow: var(--shadow-hover); }
.dimension-icon { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 auto; border-radius: 9px; background: var(--tone, var(--canvas)); color: var(--ink-2); font-size: 14px; font-weight: 650; }
.dimension-main { min-width: 0; flex: 1; }
.dimension-main strong { display: block; font-size: 12px; font-weight: 600; white-space: nowrap; }
.dimension-main small { display: block; margin-top: 4px; overflow: hidden; color: var(--faint); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.dimension-count { color: var(--faint); font-family: var(--mono); font-size: 9px; white-space: nowrap; }
.content-section { padding-top: 38px; }
.section-copy h2 { font-size: clamp(25px, 2.4vw, 34px); }
.update-strip { display: flex; flex-wrap: wrap; gap: 8px 22px; align-items: center; margin-top: 42px; padding: 13px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--faint); font-size: 10px; }
.update-strip > span:first-child { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.update-strip .live-dot { flex: 0 0 auto; }

.directory-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; padding: 38px 0 25px; border-bottom: 1px solid var(--line-strong); }
.directory-copy h1 { max-width: 900px; margin-top: 9px; font-size: clamp(34px, 3.5vw, 50px); font-weight: 620; line-height: 1.08; letter-spacing: -.055em; text-wrap: balance; }
.directory-copy > p:last-child { max-width: 760px; margin-top: 12px; color: var(--muted); font-size: 13px; line-height: 1.75; }
.directory-meta { display: flex; flex-direction: column; align-items: flex-start; min-width: 170px; padding: 0 0 5px 24px; border-left: 1px solid var(--line-strong); }
.directory-meta strong { color: var(--ink); font-size: 36px; font-weight: 560; line-height: 1; letter-spacing: -.05em; }
.directory-meta span { margin-top: 5px; color: var(--muted); font-size: 11px; }
.directory-meta small { margin-top: 6px; color: var(--faint); font-size: 9px; }
.directory-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.directory-toolbar .filter-chips { justify-content: flex-start; }
.directory-query { color: var(--faint); font-family: var(--mono); font-size: 9px; }
.directory-grid { margin-top: 18px; }
.knowledge-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding-top: 22px; }
.knowledge-card { display: flex; flex-direction: column; min-height: 180px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-panel); background: var(--paper); box-shadow: var(--shadow-card); transition: border-color .15s var(--ease), box-shadow .15s var(--ease), transform .15s var(--ease); }
.knowledge-card:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: var(--shadow-hover); }
.knowledge-card .knowledge-tag { color: var(--brand); font-family: var(--mono); font-size: 9px; }
.knowledge-card h3 { margin-top: 16px; font-size: 18px; font-weight: 600; line-height: 1.3; letter-spacing: -.035em; }
.knowledge-card p { margin-top: 8px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.knowledge-card footer { display: flex; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 16px; color: var(--faint); font-family: var(--mono); font-size: 8px; }
.knowledge-card.highlight { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }

@media (max-width: 1180px) {
  .main-nav { max-width: 48vw; }
  .submit-link { display: none; }
  .dimension-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .header-search-wrap { flex: 1 1 220px; }
  .main-nav { order: 3; width: 100%; max-width: none; }
  .header-inner { flex-wrap: wrap; padding-block: 10px 0; }
  .header-search-wrap { order: 2; min-width: 170px; }
  .discovery-top, .directory-head { grid-template-columns: 1fr; gap: 18px; }
  .discovery-stats { max-width: 420px; }
  .directory-meta { padding: 14px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .knowledge-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .header-search-wrap { width: 100%; flex-basis: 100%; order: 4; }
  .header-search kbd { display: none; }
  .search-panel { right: auto; left: 0; width: 100%; }
  .dimension-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .discovery-top { padding-top: 30px; }
  .discovery-copy h1 { font-size: 36px; }
  .mini-heading span { display: none; }
  .directory-toolbar { align-items: flex-start; }
  .directory-query { width: 100%; }
  .knowledge-grid { grid-template-columns: 1fr; }
}
@media (max-width: 580px) {
  .dimension-card { min-height: 68px; padding: 9px 10px; }
  .dimension-icon { width: 32px; height: 32px; }
  .dimension-count { display: none; }
  .discovery-stats { grid-template-columns: 1fr 1fr; }
  .directory-copy h1 { font-size: 34px; }
  .search-panel-foot span:last-child { display: none; }
}

/* Advertising */
.ad-slot { margin-top: 18px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper-tint); }
.ad-slot-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.ad-label { color: var(--faint); font-family: var(--mono); font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.ad-demo { color: var(--brand); font-family: var(--mono); font-size: 8px; }
.ad-slot-body { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 10px; }
.ad-slot-body strong { display: block; color: var(--ink-2); font-size: 13px; font-weight: 600; letter-spacing: -.02em; }
.ad-slot-body p { margin-top: 3px; color: var(--faint); font-size: 10px; line-height: 1.5; }
.ad-cta { display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 0 11px; flex: 0 0 auto; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); background: var(--paper); color: var(--ink-2); font-size: 10px; cursor: pointer; }
.ad-cta:hover { border-color: var(--ink); color: var(--ink); }
.ad-cta .icon { font-size: 12px; }
.ad-slot-leaderboard { margin-top: 20px; }
.ad-slot-inline { margin-top: 22px; }
.sponsor-card { border-style: dashed; background: var(--paper-tint); }
.sponsor-card .service-visual { background: #f1f1ed; }
.sponsor-card .service-visual::after { border-color: rgba(232, 80, 58, .2); }
.sponsor-card .visual-mark { color: var(--brand); }
.sponsor-card .service-title-row h3 { color: var(--ink); }
.sponsor-card .service-footer { grid-template-columns: 1fr 1fr auto; }
.sponsor-card .sponsor-action { display: inline-flex; align-items: center; gap: 5px; color: var(--brand); font-size: 10px; font-weight: 550; }
.footer-ad-link { padding: 4px 0; border: 0; background: transparent; color: var(--ink-2); font-size: 9px; cursor: pointer; }
.footer-ad-link:hover { color: var(--brand); }
@media (max-width: 580px) {
  .ad-slot-body { align-items: flex-start; flex-direction: column; gap: 10px; }
  .ad-cta { align-self: flex-start; }
}

/* Consent banner */
.consent-banner { position: fixed; z-index: 90; right: 20px; bottom: 20px; left: 20px; display: flex; align-items: center; justify-content: space-between; gap: 22px; max-width: 980px; margin: 0 auto; padding: 15px 17px; border: 1px solid var(--line-strong); border-radius: var(--radius-panel); background: var(--paper); box-shadow: var(--shadow-modal); }
.consent-copy strong { display: block; color: var(--ink); font-size: 12px; font-weight: 600; }
.consent-copy p { max-width: 620px; margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.consent-actions { display: flex; flex: 0 0 auto; gap: 8px; }
.consent-actions button { min-height: 34px; padding: 0 12px; border-radius: var(--radius-pill); font-size: 10px; cursor: pointer; }
.consent-secondary { border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink-2); }
.consent-primary { border: 1px solid var(--ink); background: var(--ink); color: var(--ink-inverse); }
.consent-secondary:hover { border-color: var(--ink); color: var(--ink); }
.consent-primary:hover { background: var(--ink-2); }
@media (max-width: 620px) {
  .consent-banner { right: 10px; bottom: 10px; left: 10px; flex-direction: column; align-items: flex-start; gap: 12px; padding: 13px; }
  .consent-actions { width: 100%; }
  .consent-actions button { flex: 1; }
}

/* Multi-dimensional service index */
.facet-layout { display: grid; grid-template-columns: 214px minmax(0, 1fr); gap: 28px; padding-top: 18px; align-items: start; }
.facet-rail { position: sticky; top: 92px; min-width: 0; padding-right: 18px; border-right: 1px solid var(--line); }
.facet-rail-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line-strong); }
.facet-rail-head strong { font-size: 12px; font-weight: 600; }
.facet-rail-head button { padding: 0; border: 0; background: transparent; color: var(--brand); font-size: 9px; cursor: pointer; }
.facet-toggle { display: none; }
.facet-group { border-bottom: 1px solid var(--line); }
.facet-group summary { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 11px 0; color: var(--ink-2); font-size: 10px; font-weight: 550; cursor: pointer; list-style: none; }
.facet-group summary::-webkit-details-marker { display: none; }
.facet-group summary::before { width: 8px; color: var(--faint); content: "+"; font-family: var(--mono); font-size: 9px; }
.facet-group[open] summary::before { content: "−"; }
.facet-group summary > span { margin-left: auto; padding: 2px 5px; border-radius: var(--radius-pill); background: var(--brand-soft); color: var(--brand); font-family: var(--mono); font-size: 8px; }
.facet-options { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 0 11px 16px; }
.facet-chip { min-height: 27px; padding: 0 8px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--paper); color: var(--muted); font-size: 9px; cursor: pointer; }
.facet-chip:hover { border-color: var(--line-dark); color: var(--ink); }
.facet-chip.active { border-color: var(--ink); background: var(--ink); color: var(--ink-inverse); }
.directory-results { min-width: 0; }
.directory-results .directory-toolbar { padding-top: 0; }
.active-filter-summary { display: flex; flex-wrap: wrap; gap: 5px; min-width: 0; }
.active-filter { min-height: 26px; padding: 0 8px; border: 1px solid var(--brand-tint); border-radius: var(--radius-pill); background: var(--brand-soft); color: var(--brand-strong); font-size: 9px; cursor: pointer; }
.filter-placeholder { color: var(--faint); font-size: 9px; }
.service-facets { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 11px; color: var(--faint); font-family: var(--mono); font-size: 8px; }
.service-facets span + span::before { margin-right: 4px; color: var(--line-dark); content: "·"; }
.prompt-model-fit { margin-top: 14px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper-tint); }
.prompt-model-fit > div { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.prompt-model-fit > div > span { margin-right: 3px; color: var(--faint); font-family: var(--mono); font-size: 8px; }
.prompt-model-fit b { padding: 3px 6px; border-radius: var(--radius-pill); background: var(--brand-soft); color: var(--brand-strong); font-size: 8px; font-weight: 550; }
.prompt-model-fit p { margin-top: 8px; color: var(--muted); font-size: 9px; line-height: 1.6; }
.dialog-facets { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper-tint); }
.dialog-facets div { min-width: 0; }
.dialog-facets span { display: block; color: var(--faint); font-family: var(--mono); font-size: 8px; }
.dialog-facets b { display: inline-block; margin: 5px 4px 0 0; padding: 3px 6px; border-radius: 4px; background: var(--canvas); color: var(--muted); font-size: 8px; font-weight: 500; }
@media (max-width: 980px) {
  .facet-layout { grid-template-columns: 180px minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 760px) {
  .facet-layout { grid-template-columns: 1fr; gap: 8px; }
  .facet-rail { position: static; padding-right: 0; border-right: 0; }
  .facet-toggle { display: block; width: 100%; min-height: 34px; margin-top: 8px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--paper); color: var(--ink-2); font-size: 10px; cursor: pointer; }
  .facet-groups { display: none; margin-top: 4px; }
  .facet-rail.open .facet-groups { display: block; }
  .facet-options { padding-left: 0; }
  .dialog-facets { grid-template-columns: 1fr; }
}
.home-prompt-models { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 10px; color: var(--faint); font-family: var(--mono); font-size: 8px; }
.home-prompt-models b { padding: 3px 6px; border-radius: var(--radius-pill); background: var(--brand-soft); color: var(--brand-strong); font-size: 8px; font-weight: 500; }

/* Comparisons */
.home-comparison-grid, .comparison-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 22px; }
.comparison-card { display: flex; flex-direction: column; min-height: 220px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-panel); background: var(--paper); box-shadow: var(--shadow-card); cursor: pointer; transition: transform .18s var(--ease), box-shadow .18s var(--ease); }
.comparison-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.comparison-top { display: flex; justify-content: space-between; gap: 10px; color: var(--faint); font-family: var(--mono); font-size: 8px; }
.comparison-card h3 { margin-top: 18px; font-size: 18px; font-weight: 600; line-height: 1.3; letter-spacing: -.035em; }
.comparison-card > p { margin-top: 8px; color: var(--muted); font-size: 11px; line-height: 1.65; }
.comparison-verdict { margin-top: 14px; padding: 10px 11px; border-left: 2px solid var(--brand); background: var(--brand-soft); color: #7e382d; font-size: 10px; line-height: 1.6; }
.comparison-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 16px; color: var(--faint); font-family: var(--mono); font-size: 8px; }
.comparison-card-foot span:last-child { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-2); }
.comparison-card-foot .icon { font-size: 12px; }
.dialog-compare-note { margin-top: 17px; padding: 12px 14px; border-left: 2px solid var(--brand); border-radius: 0 8px 8px 0; background: var(--brand-soft); color: #7e382d; font-size: 11px; line-height: 1.7; }
.compare-table-wrap { margin-top: 18px; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 10px; min-width: 560px; }
.compare-table th, .compare-table td { padding: 10px 11px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare-table th:last-child, .compare-table td:last-child { border-right: 0; }
.compare-table tr:last-child td { border-bottom: 0; }
.compare-table th { background: var(--paper-tint); color: var(--faint); font-family: var(--mono); font-size: 8px; font-weight: 400; }
.compare-table td:first-child { color: var(--muted); font-weight: 550; }
.compare-updated { margin-top: 12px; color: var(--faint); font-size: 8px; }
@media (max-width: 900px) {
  .home-comparison-grid, .comparison-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 580px) {
  .home-comparison-grid, .comparison-grid { grid-template-columns: 1fr; }
}
.dialog-source { margin-top: 14px; padding: 12px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dialog-source > div { display: grid; grid-template-columns: 80px 1fr; gap: 10px; padding: 3px 0; font-size: 10px; }
.dialog-source span { color: var(--faint); font-family: var(--mono); font-size: 8px; }
.dialog-source strong { font-weight: 550; }
.dialog-source a { color: var(--brand); text-decoration: none; }
.dialog-source a:hover { text-decoration: underline; }
.dialog-source p { margin-top: 7px; color: var(--faint); font-size: 9px; line-height: 1.6; }
.compare-sources { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; color: var(--faint); font-size: 8px; }
.compare-sources > span { font-family: var(--mono); }
.compare-sources a { padding: 3px 7px; border: 1px solid var(--line); border-radius: var(--radius-pill); color: var(--muted); text-decoration: none; }
.compare-sources a:hover { border-color: var(--line-dark); color: var(--ink); }

/* Prompt engineering library */
.prompt-category-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 20px; }
.prompt-category-card { display: flex; flex-direction: column; align-items: flex-start; min-height: 96px; padding: 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--paper); text-align: left; cursor: pointer; transition: border-color .15s var(--ease), background .15s var(--ease); }
.prompt-category-card:hover { border-color: var(--line-dark); }
.prompt-category-card.active { border-color: var(--ink); background: var(--paper-tint); box-shadow: inset 0 2px 0 var(--brand); }
.prompt-category-mark { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--canvas); color: var(--brand); font-size: 12px; font-weight: 650; }
.prompt-category-card strong { margin-top: 10px; color: var(--ink); font-size: 11px; font-weight: 600; }
.prompt-category-card small { margin-top: 3px; color: var(--faint); font-size: 8px; }
.prompt-library-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.prompt-filter-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.prompt-layout-rich { grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); }
.prompt-package-card { display: block; width: 100%; padding: 15px 16px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: inherit; text-align: left; cursor: pointer; }
.prompt-package-card:hover { background: var(--paper-tint); }
.prompt-package-card.active { background: var(--brand-soft); box-shadow: inset 2px 0 0 var(--brand); padding-left: 18px; }
.prompt-package-top { display: flex; justify-content: space-between; gap: 9px; color: var(--brand); font-family: var(--mono); font-size: 8px; }
.prompt-package-top span:last-child { color: var(--faint); }
.prompt-package-card h3 { margin-top: 9px; font-size: 14px; font-weight: 600; letter-spacing: -.025em; }
.prompt-package-card > p { margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.prompt-package-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; color: var(--faint); font-family: var(--mono); font-size: 8px; }
.prompt-package-platforms { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.prompt-package-platforms b, .home-prompt-models b { padding: 3px 6px; border-radius: var(--radius-pill); background: var(--canvas); color: var(--muted); font-size: 8px; font-weight: 500; }
.prompt-detail.rich { position: static; }
.prompt-goal { margin-top: 12px; color: var(--ink-2); font-size: 12px; line-height: 1.7; }
.prompt-engine-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 13px; }
.prompt-engine-meta span { padding: 4px 7px; border: 1px solid var(--line); border-radius: var(--radius-pill); color: var(--faint); font-family: var(--mono); font-size: 8px; }
.prompt-platform-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-top: 15px; }
.prompt-platform-grid div { padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper-tint); }
.prompt-platform-grid strong { display: block; font-size: 10px; font-weight: 600; }
.prompt-platform-grid span { display: block; margin-top: 3px; color: var(--faint); font-size: 8px; line-height: 1.5; }
.prompt-usage-note { margin-top: 13px; padding: 10px 12px; border-left: 2px solid var(--ink); background: var(--canvas); color: var(--muted); font-size: 9px; line-height: 1.65; }
.prompt-stage-list { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.prompt-stage { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.prompt-stage header { display: grid; grid-template-columns: 25px minmax(0, 1fr) auto; gap: 9px; align-items: start; padding: 12px; border-bottom: 1px solid var(--line); background: var(--paper-tint); }
.prompt-stage header > span { color: var(--brand); font-family: var(--mono); font-size: 9px; }
.prompt-stage header strong { display: block; font-size: 11px; font-weight: 600; }
.prompt-stage header p { margin-top: 3px; color: var(--faint); font-size: 8px; line-height: 1.5; }
.prompt-stage header button { display: inline-flex; align-items: center; gap: 4px; min-height: 27px; padding: 0 8px; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); background: var(--paper); color: var(--ink-2); font-size: 8px; cursor: pointer; }
.prompt-stage header button:hover { border-color: var(--ink); }
.prompt-stage header button .icon { font-size: 11px; }
.prompt-stage pre { margin: 0; padding: 14px; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink-2); font-family: var(--mono); font-size: 9px; line-height: 1.75; }
.prompt-stage footer { display: grid; grid-template-columns: 60px 1fr; gap: 8px; padding: 9px 13px; border-top: 1px solid var(--line); background: var(--paper-tint); }
.prompt-stage footer span { color: var(--faint); font-family: var(--mono); font-size: 8px; }
.prompt-stage footer p { color: var(--muted); font-size: 9px; line-height: 1.55; }
.prompt-quality-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 15px; }
.prompt-quality-grid > div { padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper-tint); }
.prompt-quality-grid span { color: var(--faint); font-family: var(--mono); font-size: 8px; }
.prompt-quality-grid ul { margin-top: 7px; padding-left: 14px; color: var(--muted); font-size: 9px; line-height: 1.65; }
.home-prompt-engine-meta { display: flex; flex-wrap: wrap; gap: 5px 9px; margin-top: 8px; color: var(--faint); font-family: var(--mono); font-size: 8px; }
@media (max-width: 1000px) {
  .prompt-category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .prompt-layout-rich { grid-template-columns: minmax(260px, 320px) minmax(0, 1fr); }
}
@media (max-width: 820px) {
  .prompt-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prompt-layout-rich { grid-template-columns: 1fr; }
  .prompt-quality-grid, .prompt-platform-grid { grid-template-columns: 1fr; }
}
@media (max-width: 580px) {
  .prompt-category-card { min-height: 84px; }
  .prompt-stage header { grid-template-columns: 22px minmax(0, 1fr); }
  .prompt-stage header button { grid-column: 2; justify-self: start; }
}

/* Open-source skills */
.skill-home-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.home-skill-card { display: flex; flex-direction: column; min-height: 230px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-panel); background: var(--paper); box-shadow: var(--shadow-card); cursor: pointer; transition: transform .18s var(--ease), box-shadow .18s var(--ease); }
.home-skill-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.home-skill-card h3 { margin-top: 8px; font-size: 17px; font-weight: 600; letter-spacing: -.03em; }
.home-skill-card > p { margin-top: 6px; color: var(--muted); font-size: 10px; line-height: 1.65; }
.skill-repo-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; color: var(--faint); font-family: var(--mono); font-size: 8px; }
.skill-repo-line code { overflow: hidden; color: var(--brand); text-overflow: ellipsis; white-space: nowrap; }
.skill-home-foot { display: flex; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 13px; border-top: 1px solid var(--line); color: var(--faint); font-size: 8px; }
.skill-home-foot a { color: var(--ink-2); text-decoration: none; }
.skill-home-foot a:hover { color: var(--brand); }
.skill-package-card .prompt-package-top span:last-child { color: var(--faint); }
.skill-detail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.skill-detail-grid { margin-top: 16px; }
.skill-install { margin-top: 16px; padding: 12px; border: 1px solid var(--line); border-radius: 9px; background: var(--paper-tint); }
.skill-install > span { display: block; color: var(--faint); font-family: var(--mono); font-size: 8px; }
.skill-install code { display: block; margin-top: 8px; padding: 9px 10px; overflow-x: auto; border-radius: 6px; background: var(--ink); color: var(--ink-inverse); font-family: var(--mono); font-size: 9px; white-space: nowrap; }
.skill-install p { margin-top: 8px; color: var(--faint); font-size: 8px; line-height: 1.55; }
@media (max-width: 1100px) { .skill-home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 580px) { .skill-home-grid { grid-template-columns: 1fr; } }

/* Compact taxonomy bars: categories are navigation, not cards */
.prompt-category-grid { display: flex; flex-wrap: nowrap; gap: 4px; margin-top: 12px; padding: 0 0 10px; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.prompt-category-grid::-webkit-scrollbar { display: none; }
.prompt-category-card { flex: 0 0 auto; flex-direction: row; align-items: center; gap: 5px; min-height: 31px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: transparent; box-shadow: none; }
.prompt-category-card:hover { background: var(--paper); }
.prompt-category-card.active { border-color: var(--ink); background: var(--ink); color: var(--ink-inverse); box-shadow: none; }
.prompt-category-mark { width: auto; height: auto; border-radius: 0; background: none; color: var(--brand); font-family: var(--mono); font-size: 8px; font-weight: 500; }
.prompt-category-card strong { margin: 0; font-size: 10px; font-weight: 550; white-space: nowrap; }
.prompt-category-card small { margin: 0; color: var(--faint); font-size: 8px; white-space: nowrap; }
.prompt-category-card.active .prompt-category-mark { color: #ff9b89; }
.prompt-category-card.active strong { color: var(--ink-inverse); }
.prompt-category-card.active small { color: #aeb8b1; }
@media (max-width: 820px) {
  .prompt-category-grid { margin-top: 10px; }
}

/* Brand VI — 好用AI */
.brand-mark.brand-index { display: flex; align-items: flex-end; justify-content: center; gap: 3px; padding: 8px 7px 7px; border-radius: 9px; background: var(--ink); color: transparent; }
.brand-index i { display: block; width: 4px; border-radius: 2px; background: var(--ink-inverse); }
.brand-index i:nth-child(1) { height: 9px; background: #f7f6f3; }
.brand-index i:nth-child(2) { height: 14px; background: var(--mint); }
.brand-index i:nth-child(3) { height: 19px; background: var(--brand); }
.brand-mark.brand-index.small { gap: 2px; padding: 6px 5px 5px; border-radius: 8px; }
.brand-index.small i { width: 3px; }
.brand-index.small i:nth-child(1) { height: 7px; }
.brand-index.small i:nth-child(2) { height: 11px; }
.brand-index.small i:nth-child(3) { height: 15px; }
.brand-name { white-space: nowrap; }

/* Language switch */
.language-switch { display: inline-flex; align-items: center; gap: 1px; padding: 2px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--paper); }
.language-switch button { min-width: 26px; height: 27px; padding: 0 6px; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--faint); font-size: 9px; cursor: pointer; }
.language-switch button:hover { color: var(--ink); }
.language-switch button.active { background: var(--ink); color: var(--ink-inverse); }
.language-note { position: fixed; left: 16px; bottom: 16px; z-index: 30; max-width: 360px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: color-mix(in srgb, var(--paper) 94%, transparent); color: var(--muted); box-shadow: var(--shadow-card); font-size: 9px; line-height: 1.5; }
@media (max-width: 820px) {
  .language-switch { order: 2; }
  .language-note { right: 10px; bottom: 80px; left: 10px; max-width: none; }
}

/* Final density and library grid refinements */
body::before { position: fixed; inset: 0; z-index: 9999; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E"); opacity: .026; content: ""; mix-blend-mode: multiply; }
.header-inner { min-height: 64px; gap: 18px; }
.header-search { height: 36px; }
.language-switch button { height: 25px; }
.hero { padding-top: clamp(42px, 4.5vw, 64px); padding-bottom: clamp(34px, 4vw, 48px); }
.content-section { padding-top: 34px; }
.library-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding-top: 18px; }
.library-grid .empty-state { grid-column: 1 / -1; }
.library-grid .prompt-package-card { display: flex; flex-direction: column; min-height: 216px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-panel); background: var(--paper); box-shadow: var(--shadow-card); }
.library-grid .prompt-package-card:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: var(--shadow-hover); }
.library-grid .prompt-package-card.active { box-shadow: inset 0 2px 0 var(--brand); }
.library-grid .prompt-package-card h3 { margin-top: 12px; font-size: 17px; line-height: 1.3; }
.library-grid .prompt-package-card > p { margin-top: 7px; font-size: 11px; line-height: 1.65; }
.library-grid .prompt-package-meta { margin-top: auto; padding-top: 14px; }
.library-grid .prompt-package-platforms { margin-top: 8px; }
.library-grid .skill-repo-line { margin-top: 12px; }
.dialog { width: min(860px, calc(100% - 32px)); }
@media (max-width: 1100px) { .library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .library-grid { grid-template-columns: 1fr; } .header-inner { min-height: 58px; } }
dialog { width: min(860px, calc(100% - 32px)); }

/* --------------------------------------------------------------------------
   v04 — compact editorial directory
   A field guide, not a dashboard: flatter cards, clearer typography,
   fewer decorative covers, and browsing controls that stay out of the way.
   -------------------------------------------------------------------------- */
:root {
  --canvas: #f4f3ef;
  --canvas-2: #ecebe6;
  --canvas-3: #e3e2dc;
  --paper: #ffffff;
  --paper-tint: #faf9f6;
  --ink: #12141a;
  --ink-strong: #0a0c10;
  --ink-2: #30343c;
  --muted: #525860;
  --faint: #656b73;
  --line: #e4e3de;
  --line-strong: #d5d4ce;
  --line-dark: #aeada6;
  --brand: #ee5a3f;
  --brand-strong: #bc3d27;
  --brand-soft: #fff0ec;
  --brand-tint: #f9d9d1;
  --mint: #cff3df;
  --white: #ffffff;
  --page: 1480px;
  --pad: clamp(18px, 2.8vw, 42px);
  --radius-media: 8px;
  --radius-control: 8px;
  --radius-panel: 11px;
  --radius-modal: 16px;
  --shadow-card: 0 1px 1px rgba(18, 20, 26, .025);
  --shadow-hover: 0 8px 24px -20px rgba(18, 20, 26, .32);
}

body {
  background:
    linear-gradient(180deg, rgba(255,255,255,.44) 0, rgba(255,255,255,0) 280px),
    var(--canvas);
}
body::before { opacity: .018; }

/* Header: one quiet instrument panel */
.site-header {
  border-bottom-color: color-mix(in srgb, var(--line-strong) 74%, transparent);
  background: color-mix(in srgb, #fbfaf7 91%, transparent);
  box-shadow: 0 1px 0 rgba(255,255,255,.7) inset;
}
.header-inner { min-height: 58px; gap: 22px; }
.brand { gap: 9px; }
.brand-mark.brand-index { width: 30px; height: 30px; gap: 2.5px; padding: 7px 6px 6px; border-radius: 8px; }
.brand-index i { width: 3.5px; }
.brand-index i:nth-child(1) { height: 8px; }
.brand-index i:nth-child(2) { height: 12px; }
.brand-index i:nth-child(3) { height: 17px; }
.brand-copy { gap: 0; }
.brand-copy strong { font-size: 16px; font-weight: 680; letter-spacing: -.015em; }
.brand-copy small { display: none; }
.main-nav { gap: 2px; }
.nav-item { min-height: 34px; padding-inline: 10px; border-radius: 5px; font-size: 12px; }
.nav-item.active::after { right: 10px; bottom: 0; left: 10px; height: 2px; }
.header-search-wrap { flex: 0 1 278px; min-width: 210px; }
.header-search { height: 34px; border: 1px solid var(--line); border-radius: 7px; background: rgba(255,255,255,.7); }
.header-search:hover { border-color: var(--line-strong); background: var(--paper); }
.header-search:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(18,20,26,.055); }
.header-search input { font-size: 11.5px; }
.header-search kbd { font-size: 8px; }
.language-switch { padding: 1px; background: transparent; }
.language-switch button { min-width: 24px; height: 24px; font-size: 8.5px; }

/* Discover: content enters in the first screen */
.discovery-top {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
  gap: clamp(28px, 4.5vw, 68px);
  align-items: end;
  padding: 30px 0 18px;
}
.discovery-copy h1 { max-width: 800px; margin-top: 6px; font-size: clamp(36px, 3.15vw, 46px); line-height: 1.04; letter-spacing: -.058em; }
.discovery-copy > p:last-child { max-width: 720px; margin-top: 9px; font-size: 12px; line-height: 1.65; }
.discovery-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); align-self: end; border: 0; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); border-radius: 0; background: transparent; }
.discovery-stats > div { padding: 10px 10px 11px; background: transparent; }
.discovery-stats > div + div { border-left: 1px solid var(--line); }
.discovery-stats dt { font-size: 8.5px; white-space: nowrap; }
.discovery-stats dd { margin-top: 4px; font-size: 20px; font-weight: 650; letter-spacing: -.04em; }
.dimension-section { padding: 14px 0 0; border-top: 0; }
.mini-heading h2 { font-size: 12px; font-weight: 650; letter-spacing: -.01em; }
.mini-heading span { font-size: 9px; }
.dimension-grid { gap: 6px; margin-top: 8px; }
.dimension-card { min-height: 61px; gap: 9px; padding: 8px 10px; border-radius: 8px; box-shadow: none; transition: border-color .15s var(--ease), background .15s var(--ease); }
.dimension-card:hover { transform: none; border-color: var(--line-dark); background: var(--paper); box-shadow: none; }
.dimension-icon { width: 29px; height: 29px; border-radius: 7px; font-size: 11px; }
.dimension-main strong { font-size: 11.5px; font-weight: 650; }
.dimension-main small { margin-top: 3px; font-size: 8.5px; }
.dimension-count { font-size: 8px; }

.content-section { padding-top: 27px; }
.section-heading { gap: 18px; padding-bottom: 9px; border-bottom-color: var(--line-strong); }
.section-copy { display: block; }
.section-index { display: none; }
.section-copy h2 { font-size: clamp(20px, 1.85vw, 25px); font-weight: 650; line-height: 1.15; letter-spacing: -.035em; }
.section-copy p { max-width: 760px; margin-top: 4px; font-size: 11px; line-height: 1.55; }
.section-link { min-height: 28px; font-size: 10.5px; }
.section-link .icon { font-size: 12px; }

/* Service cards: keep a small visual index mark, not a fake cover */
.tool-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.service-card { border-radius: var(--radius-panel); box-shadow: none; transition: border-color .15s var(--ease), background .15s var(--ease), box-shadow .15s var(--ease); }
.service-card:hover { transform: none; border-color: var(--line-dark); box-shadow: var(--shadow-hover); }
.service-visual { height: 72px; }
.service-visual::before { background-size: 24px 24px; opacity: .38; }
.service-visual::after { right: -18px; bottom: -45px; width: 118px; height: 118px; }
.service-visual .visual-mark { left: 12px; bottom: 8px; width: 34px; height: 34px; border-radius: 8px; font-size: 13px; }
.visual-top { top: 9px; right: 10px; left: 10px; }
.visual-category { font-size: 8px; }
.visual-status { padding: 2px 6px; font-size: 8px; }
.service-body { padding: 11px 13px 9px; }
.service-title-row h3 { font-size: 15.5px; letter-spacing: -.03em; }
.service-code { font-size: 7.5px; }
.service-tagline { min-height: 33px; margin-top: 5px; font-size: 10.5px; line-height: 1.55; display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.service-facets { margin-top: 8px; font-size: 7.5px; }
.service-tags { gap: 3px; padding-top: 9px; }
.service-tag { padding: 2px 5px; font-size: 8px; }
.service-footer { grid-template-columns: 1fr 1fr 26px; gap: 7px; padding: 8px 13px; }
.service-footer span { font-size: 8px; }
.service-footer strong { margin-top: 2px; font-size: 9px; }
.service-arrow { width: 26px; height: 26px; }
.service-arrow .icon { font-size: 12px; }

/* Home module cards share one compact rhythm */
.home-prompt-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.home-prompt-card { min-height: 174px; padding: 13px 14px 12px; border-radius: var(--radius-panel); box-shadow: none; transition: border-color .15s var(--ease), background .15s var(--ease), box-shadow .15s var(--ease); }
.home-prompt-card:hover { transform: none; border-color: var(--line-dark); box-shadow: var(--shadow-hover); }
.home-prompt-top { font-size: 8px; }
.home-prompt-card h3 { margin-top: 8px; font-size: 15px; line-height: 1.3; }
.home-prompt-card p { margin-top: 5px; font-size: 10px; line-height: 1.55; display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.home-prompt-models { margin-top: 8px; }
.home-prompt-models b { padding: 2px 5px; font-size: 7.5px; }
.home-prompt-engine-meta { margin-top: 6px; font-size: 7.5px; }
.home-prompt-footer { padding-top: 9px; }
.home-prompt-footer button { min-height: 27px; padding-inline: 8px; font-size: 9px; }
.skill-home-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.home-skill-card { min-height: 178px; padding: 13px 14px 12px; border-radius: var(--radius-panel); box-shadow: none; transition: border-color .15s var(--ease), background .15s var(--ease), box-shadow .15s var(--ease); }
.home-skill-card:hover { transform: none; border-color: var(--line-dark); box-shadow: var(--shadow-hover); }
.home-skill-card h3 { margin-top: 7px; font-size: 15px; line-height: 1.28; }
.home-skill-card > p { margin-top: 5px; font-size: 9.5px; line-height: 1.55; display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.skill-repo-line { margin-top: 9px; font-size: 7.5px; }
.skill-home-foot { padding-top: 9px; font-size: 7.5px; }
.update-strip { margin-top: 30px; padding: 10px 0; }

/* Directory pages: the controls are a compact, reusable catalog rail */
.directory-head { gap: 26px; align-items: end; padding: 27px 0 16px; border-bottom: 0; }
.directory-copy h1 { max-width: 880px; margin-top: 6px; font-size: clamp(31px, 3vw, 41px); line-height: 1.06; letter-spacing: -.055em; }
.directory-copy > p:last-child { max-width: 820px; margin-top: 8px; font-size: 11.5px; line-height: 1.62; }
.directory-meta { display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; align-items: center; column-gap: 8px; min-width: 0; padding: 0 0 2px 18px; }
.directory-meta strong { grid-row: 1 / 3; font-size: 31px; font-weight: 620; }
.directory-meta span { margin-top: 0; font-size: 10px; white-space: nowrap; }
.directory-meta small { margin-top: 2px; font-size: 8px; white-space: nowrap; }

.catalog-controls {
  position: sticky;
  top: 58px;
  z-index: 24;
  margin-inline: calc(var(--pad) * -1);
  padding-inline: var(--pad);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line-strong);
  background: color-mix(in srgb, #f8f7f3 93%, transparent);
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
}
.prompt-category-grid { display: flex; flex-wrap: nowrap; gap: 0; margin-top: 0; padding: 0; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.prompt-category-grid::-webkit-scrollbar { display: none; }
.prompt-category-card { flex: 0 0 auto; flex-direction: row; align-items: baseline; gap: 6px; min-height: 39px; padding: 0 13px; border: 0; border-right: 1px solid var(--line); border-radius: 0; background: transparent; box-shadow: none; transition: color .15s var(--ease), background .15s var(--ease); }
.prompt-category-card:first-child { padding-left: 2px; }
.prompt-category-card:hover { border-color: var(--line); background: rgba(255,255,255,.55); }
.prompt-category-card.active { border-color: var(--line); background: transparent; color: var(--ink); box-shadow: inset 0 -2px 0 var(--brand); }
.prompt-category-mark { display: none; }
.prompt-category-card strong { margin: 0; color: var(--ink-2); font-size: 10.5px; font-weight: 600; white-space: nowrap; }
.prompt-category-card small { margin: 0; color: var(--faint); font-family: var(--mono); font-size: 7.5px; white-space: nowrap; }
.prompt-category-card.active strong { color: var(--ink); }
.prompt-category-card.active small { color: var(--brand); }
.prompt-library-toolbar { display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 12px; min-height: 39px; margin-top: 0; padding: 5px 0; border: 0; }
.prompt-filter-chips { display: flex; flex-wrap: nowrap; gap: 3px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.prompt-filter-chips::-webkit-scrollbar { display: none; }
.filter-chip { min-height: 27px; padding: 0 8px; border-radius: 5px; font-size: 9.5px; white-space: nowrap; }
.filter-chip:hover { background: rgba(255,255,255,.7); }
.filter-chip.active { border-color: var(--ink); background: var(--ink); color: var(--ink-inverse); }
.directory-query { flex: 0 0 auto; font-size: 8.5px; white-space: nowrap; }

.library-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding-top: 12px; }
.library-grid .prompt-package-card {
  display: flex;
  flex-direction: column;
  min-height: 174px;
  padding: 13px 14px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--paper);
  box-shadow: none;
  transition: border-color .15s var(--ease), background .15s var(--ease), box-shadow .15s var(--ease);
}
.library-grid .prompt-package-card:hover { transform: none; border-color: var(--line-dark); background: #fffefd; box-shadow: var(--shadow-hover); }
.library-grid .prompt-package-card.active { box-shadow: none; }
.prompt-package-top { align-items: center; gap: 8px; color: var(--brand); font-family: var(--sans); font-size: 8.5px; }
.prompt-package-top span:first-child { overflow: hidden; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.prompt-package-top span:last-child { flex: 0 0 auto; color: var(--faint); font-size: 8px; }
.library-grid .prompt-package-card h3 { min-height: 39px; margin-top: 8px; font-size: 15px; font-weight: 650; line-height: 1.3; letter-spacing: -.025em; display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.library-grid .prompt-package-card > p { min-height: 47px; margin-top: 5px; font-size: 10px; line-height: 1.55; display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.library-grid .prompt-package-meta { gap: 7px; margin-top: auto; padding-top: 9px; font-size: 7.5px; }
.library-grid .prompt-package-platforms { gap: 3px; margin-top: 6px; }
.prompt-package-platforms b { max-width: 100%; padding: 2px 5px; overflow: hidden; font-size: 7.5px; text-overflow: ellipsis; white-space: nowrap; }
.library-grid .skill-repo-line { margin-top: 8px; font-size: 7.5px; }
.skill-package-card .prompt-package-top span:last-child { color: var(--faint); }

/* Dialogs: a focused reading sheet */
dialog { width: min(920px, calc(100% - 32px)); max-height: 90vh; border-color: var(--line-strong); }
dialog::backdrop { background: rgba(18,20,26,.40); backdrop-filter: blur(7px); }
.dialog-inner { max-height: 90vh; padding: 32px 36px 38px; }
.dialog-close { top: 14px; right: 14px; width: 32px; height: 32px; background: rgba(255,255,255,.92); }
.prompt-detail-head { gap: 20px; padding: 0 42px 17px 0; border-bottom: 1px solid var(--line); }
.prompt-detail-head h3 { max-width: 730px; margin-top: 6px; font-size: clamp(24px, 2.5vw, 32px); font-weight: 650; line-height: 1.12; letter-spacing: -.045em; }
.prompt-detail-note { max-width: 680px; margin-top: 7px; font-size: 11px; line-height: 1.65; }
.prompt-model { flex: 0 0 auto; padding: 4px 7px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper-tint); font-family: var(--mono); font-size: 8px; }
.prompt-goal { margin-top: 14px; font-size: 12px; line-height: 1.7; }
.prompt-engine-meta { gap: 5px; margin-top: 10px; }
.prompt-engine-meta span { padding: 3px 6px; font-size: 7.5px; }
.prompt-platform-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 13px; }
.prompt-platform-grid > div { padding: 9px 10px; border-radius: 7px; }
.prompt-platform-grid strong { font-size: 10px; }
.prompt-platform-grid span { margin-top: 2px; font-size: 8.5px; }
.prompt-vars { margin-top: 10px; }
.prompt-var { padding: 3px 6px; font-size: 8px; }
.prompt-usage-note { margin-top: 12px; padding: 9px 11px; font-size: 9.5px; line-height: 1.6; }
.prompt-stage-list { gap: 9px; margin-top: 15px; }
.prompt-stage { border-radius: 8px; }
.prompt-stage header { padding: 10px 11px; }
.prompt-stage pre { padding: 12px; font-size: 9.5px; line-height: 1.7; }
.prompt-stage footer { padding: 8px 11px; }
.prompt-quality-grid { gap: 7px; margin-top: 12px; }
.prompt-quality-grid > div { padding: 10px 11px; }
.skill-detail-actions { gap: 6px; margin-top: 13px; }
.dialog-action { min-height: 33px; padding-inline: 11px; font-size: 9.5px; }
.skill-install { margin-top: 13px; padding: 10px; }
.skill-install code { margin-top: 6px; padding: 8px 9px; font-size: 8.5px; }

/* Compact consent notice */
.consent-banner { max-width: 760px; padding: 11px 13px; border-radius: 10px; box-shadow: 0 12px 36px -18px rgba(18,20,26,.36); }
.consent-copy strong { font-size: 11px; }
.consent-copy p { font-size: 9px; line-height: 1.5; }
.consent-actions button { min-height: 30px; padding-inline: 10px; font-size: 9px; }

/* Footer */
.footer-inner { padding-top: 28px; padding-bottom: 38px; }

@media (max-width: 1180px) {
  .tool-grid, .home-prompt-grid, .skill-home-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .library-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .header-search-wrap { flex-basis: 240px; }
  .discovery-top { grid-template-columns: minmax(0, 1fr) minmax(330px, 390px); }
}

@media (max-width: 920px) {
  .discovery-top { grid-template-columns: 1fr; gap: 16px; padding-top: 26px; }
  .discovery-stats { max-width: none; }
  .directory-head { grid-template-columns: 1fr auto; gap: 18px; }
  .virtual-only { display: none; }
  .catalog-controls { position: static; }
  .library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-prompt-grid, .skill-home-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prompt-platform-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .header-inner { min-height: 54px; flex-wrap: wrap; gap: 5px 10px; padding-block: 7px 6px; }
  .brand { order: 1; }
  .brand-mark.brand-index { width: 28px; height: 28px; }
  .brand-copy strong { font-size: 15px; }
  .main-nav { order: 2; flex: 1 1 150px; width: auto; max-width: none; margin: 0; }
  .nav-item { min-height: 30px; padding-inline: 7px; font-size: 10.5px; }
  .language-switch { order: 3; margin-left: 0; }
  .language-switch button { min-width: 21px; height: 22px; padding-inline: 4px; font-size: 8px; }
  .header-search-wrap { order: 4; flex: 1 0 100%; width: 100%; min-width: 0; }
  .header-search { width: 100%; height: 31px; }
  .header-search input { display: block; font-size: 10.5px; }
  .header-search kbd { display: none; }
  .search-panel { top: calc(100% + 7px); right: 0; left: 0; width: 100%; }
  .discovery-copy h1 { font-size: clamp(31px, 9vw, 39px); }
  .discovery-copy > p:last-child { font-size: 11px; }
  .discovery-stats > div { padding: 8px 8px 9px; }
  .discovery-stats dt { font-size: 7.8px; }
  .discovery-stats dd { font-size: 18px; }
  .dimension-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dimension-card { min-height: 57px; padding: 7px 9px; }
  .content-section { padding-top: 24px; }
  .section-heading { grid-template-columns: 1fr auto; gap: 10px; }
  .section-copy h2 { font-size: 20px; }
  .section-copy p { font-size: 10px; }
  .section-link { align-self: end; font-size: 9.5px; }
  .section-link span { display: none; }
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .service-visual { height: 66px; }
  .service-body { padding-inline: 11px; }
  .service-tagline { font-size: 9.5px; }
  .service-tags { display: none; }
  .service-footer { padding-inline: 11px; }
  .home-prompt-grid, .skill-home-grid { grid-template-columns: 1fr; }
  .home-prompt-card, .home-skill-card { min-height: 0; }
  .home-prompt-card p, .home-skill-card > p { -webkit-line-clamp: 3; }
  .directory-head { grid-template-columns: 1fr; gap: 10px; padding-top: 22px; }
  .directory-copy h1 { font-size: 30px; }
  .directory-meta { display: flex; flex-direction: row; gap: 7px; align-items: center; padding: 0; border: 0; }
  .directory-meta strong { font-size: 21px; }
  .directory-meta span { font-size: 9px; }
  .directory-meta small { margin-left: auto; font-size: 7.5px; }
  .prompt-category-card { min-height: 37px; }
  .prompt-category-card:first-child { padding-left: 3px; }
  .prompt-library-toolbar { min-height: 37px; }
  .directory-query { display: none; }
  .library-grid { grid-template-columns: 1fr; gap: 8px; }
  .library-grid .prompt-package-card { min-height: 160px; }
  .library-grid .prompt-package-card > p { min-height: 0; -webkit-line-clamp: 2; }
  .library-grid .prompt-package-card h3 { min-height: 0; }
  dialog { width: 100%; max-width: none; height: 100dvh; max-height: 100dvh; margin: 0; border: 0; border-radius: 0; }
  .dialog-inner { max-height: 100dvh; padding: 24px 16px 32px; }
  .dialog-close { top: 11px; right: 11px; }
  .prompt-detail-head { padding-right: 38px; }
  .prompt-detail-head h3 { font-size: 24px; }
  .prompt-platform-grid { grid-template-columns: 1fr; }
  .consent-banner { right: 8px; bottom: 8px; left: 8px; flex-direction: row; align-items: center; gap: 8px; padding: 9px 10px; }
  .consent-copy p { display: none; }
  .consent-actions { width: auto; }
  .consent-actions button { min-width: 0; padding-inline: 7px; font-size: 8px; }
}

@media (max-width: 520px) {
  .main-nav { flex: 1 1 0; width: auto; order: 2; }
  .language-switch { order: 2; margin-left: 0; }
  .header-search-wrap { order: 3; }
  .discovery-top { padding-top: 23px; }
  .discovery-stats { grid-template-columns: repeat(2, 1fr); }
  .discovery-stats > div:nth-child(3) { border-top: 1px solid var(--line); border-left: 0; }
  .discovery-stats > div:nth-child(4) { border-top: 1px solid var(--line); }
  .tool-grid { grid-template-columns: 1fr; }
  .service-visual { height: 72px; }
  .service-tags { display: flex; }
  .section-copy p { max-width: 250px; }
  .prompt-filter-chips { padding-bottom: 1px; }
  .prompt-category-card { padding-inline: 10px; }
}

/* v04.1 — final spacing and affordance polish */
.page-body { padding-bottom: clamp(36px, 4vw, 58px); }
.filter-label { flex: 0 0 auto; color: var(--faint); font-family: var(--mono); font-size: 7.5px; letter-spacing: .03em; }
.prompt-package-top span:last-child::after,
.home-skill-card .prompt-package-top span:last-child::after { margin-left: 5px; color: var(--line-dark); content: "↗"; }

/* v04.2 — mobile index bar
   Keep all five destinations visible while leaving the header to search and language. */
@media (max-width: 760px) {
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .site-header { position: sticky; background: rgba(251,250,247,.96); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .header-inner {
    min-height: 54px;
    flex-wrap: nowrap;
    gap: 9px;
    padding-block: 7px;
  }
  .brand { order: 1; flex: 0 0 auto; }
  .header-search-wrap { order: 2; flex: 1 1 auto; width: auto; min-width: 0; }
  .header-search { width: 100%; height: 33px; }
  .header-search input { display: block; font-size: 10.5px; }
  .language-switch { order: 3; flex: 0 0 auto; margin: 0; }
  .main-nav {
    position: fixed;
    right: 10px;
    bottom: calc(8px + env(safe-area-inset-bottom));
    left: 10px;
    z-index: 50;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: auto;
    max-width: none;
    order: initial;
    gap: 2px;
    overflow: visible;
    padding: 4px;
    border: 1px solid color-mix(in srgb, var(--line-strong) 82%, transparent);
    border-radius: 13px;
    background: color-mix(in srgb, #fffefb 94%, transparent);
    box-shadow: 0 10px 32px -16px rgba(18,20,26,.38);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
  }
  .nav-item {
    min-width: 0;
    min-height: 42px;
    padding: 0 3px;
    border-radius: 8px;
    font-size: 9.5px;
    letter-spacing: -.02em;
    white-space: nowrap;
  }
  .nav-item.active { background: var(--ink); color: var(--ink-inverse); }
  .nav-item.active::after { display: none; }
  .search-panel { top: calc(100% + 7px); }
  .consent-banner { bottom: calc(68px + env(safe-area-inset-bottom)); }
  .toast { bottom: calc(72px + env(safe-area-inset-bottom)); }
}

@media (max-width: 520px) {
  .header-inner { gap: 8px; }
  .brand-copy strong { font-size: 14px; }
  .brand-mark.brand-index { width: 27px; height: 27px; }
  .header-search input::placeholder { color: transparent; }
  .header-search::after { color: var(--muted); font-size: 9.5px; content: "搜索"; }
  .header-search:focus-within::after { display: none; }
  .header-search:focus-within input::placeholder { color: var(--faint); }
}

/* v04.3 — keep tablets in a two-column catalog; phones remain single-column */
@media (min-width: 621px) and (max-width: 760px) {
  .library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .library-grid .prompt-package-card { min-height: 172px; }
}
@media (max-width: 620px) {
  .library-grid { grid-template-columns: 1fr; }
  .filter-chip { min-height: 31px; }
}

/* v04.4 — interaction polish */
button, a, input { touch-action: manipulation; }
.nav-item { text-decoration: none; }
.dialog-inner { overscroll-behavior: contain; }
.dialog-close { touch-action: manipulation; }

/* v04.5 — readability and touch targets */
.eyebrow,
.prompt-package-top,
.home-prompt-top { color: var(--brand-strong); }
.prompt-category-card.active small { color: var(--brand-strong); }
.skill-home-foot a { display: inline-flex; align-items: center; min-height: 26px; margin-block: -6px; padding-inline: 4px; }
.footer-meta .footer-ad-link { min-height: 28px; }

/* v04.6 — readable density */
.service-tagline { font-size: 11px; }
.home-prompt-card p { font-size: 10.5px; }
.home-skill-card > p { font-size: 10px; }
.library-grid .prompt-package-card h3 { font-size: 15.5px; }
.library-grid .prompt-package-card > p { font-size: 10.5px; }
.prompt-package-top { font-size: 9px; }
.library-grid .prompt-package-meta,
.library-grid .skill-repo-line { font-size: 8px; }

/* v04.7 — mobile search sheet uses the full viewport width */
@media (max-width: 760px) {
  .search-panel {
    position: fixed;
    top: calc(55px + env(safe-area-inset-top));
    right: 10px;
    left: 10px;
    width: auto;
    max-width: none;
  }
}

/* --------------------------------------------------------------------------
   v05 — 好用AI brand lockup
   A compact index-card mark paired with one uninterrupted wordmark.
   -------------------------------------------------------------------------- */
.site-header { border-bottom-color: rgba(18,20,26,.09); }
.header-inner { min-height: 62px; gap: 18px; }
.brand { gap: 11px; padding: 3px 0; border-radius: 8px; }
.brand-mark.brand-index {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3.5px;
  width: 34px;
  height: 34px;
  padding: 7px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 9px;
  background: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 1px 2px rgba(18,20,26,.08);
}
.brand-index i { display: block; height: 3px; border-radius: 2px; transition: width .18s var(--ease); }
.brand-index i:nth-child(1) { width: 9px; background: #f7f6f3; }
.brand-index i:nth-child(2) { width: 15px; background: var(--mint); }
.brand-index i:nth-child(3) { width: 20px; background: var(--brand); }
.brand:hover .brand-index i:nth-child(3) { width: 21px; }
.brand-copy { gap: 3px; }
.brand-copy strong {
  font-size: 19px;
  font-weight: 720;
  line-height: 1;
  letter-spacing: -.06em;
  color: var(--ink);
  font-feature-settings: "kern" 1;
}
.brand-copy small {
  display: block;
  margin: 0;
  color: var(--faint);
  font-size: 8px;
  font-weight: 520;
  line-height: 1.1;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.main-nav { margin-left: 2px; padding-left: 15px; border-left: 1px solid var(--line); }
.brand-mark.brand-index.small {
  width: 29px;
  height: 29px;
  gap: 3px;
  padding: 6px;
  border-radius: 8px;
}
.brand-mark.brand-index.small i { height: 2.5px; }
.brand-mark.brand-index.small i:nth-child(1) { width: 8px; }
.brand-mark.brand-index.small i:nth-child(2) { width: 13px; }
.brand-mark.brand-index.small i:nth-child(3) { width: 17px; }
.footer-brand .brand-name,
.admin-brand .brand-name,
.login-brand .brand-name { letter-spacing: -.055em; }

@media (max-width: 980px) {
  .main-nav { margin-left: 0; padding-left: 0; border-left: 0; }
}

@media (max-width: 760px) {
  .header-inner { min-height: 56px; padding-block: 7px; }
  .brand { gap: 9px; }
  .brand-mark.brand-index { width: 29px; height: 29px; gap: 3px; padding: 6px; border-radius: 8px; }
  .brand-index i { height: 2.5px; }
  .brand-index i:nth-child(1) { width: 8px; }
  .brand-index i:nth-child(2) { width: 13px; }
  .brand-index i:nth-child(3) { width: 17px; }
  .brand-copy strong { font-size: 16px; }
  .brand-copy small { font-size: 7px; letter-spacing: .08em; }
}

@media (max-width: 520px) {
  .brand-copy small { display: none; }
  .brand-copy strong { font-size: 15px; }
}

/* --------------------------------------------------------------------------
   v06 — beginner-first prompt library
   -------------------------------------------------------------------------- */
.catalog-controls { top: 62px; }

.prompt-starter-section { padding: 15px 0 12px; border-bottom: 1px solid var(--line-strong); }
.prompt-starter-head { display: flex; align-items: end; justify-content: space-between; gap: 28px; }
.prompt-starter-head .eyebrow { font-size: 8px; }
.prompt-starter-head h2 { margin-top: 4px; font-size: 20px; font-weight: 650; line-height: 1.15; letter-spacing: -.035em; }
.prompt-starter-head > p { max-width: 590px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.prompt-starter-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; margin-top: 11px; }
.prompt-starter-card { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 98px; padding: 10px 11px 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); color: var(--ink); text-align: left; cursor: pointer; transition: border-color .15s var(--ease), background .15s var(--ease), box-shadow .15s var(--ease); }
.prompt-starter-card:hover { border-color: var(--line-dark); background: #fffefd; box-shadow: var(--shadow-hover); }
.prompt-starter-meta { color: var(--brand-strong); font-family: var(--mono); font-size: 7.5px; line-height: 1.35; }
.prompt-starter-card strong { margin-top: 5px; font-size: 11.5px; font-weight: 650; line-height: 1.35; letter-spacing: -.02em; }
.prompt-starter-card small { display: -webkit-box; margin-top: 5px; overflow: hidden; color: var(--faint); font-size: 8px; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.prompt-starter-arrow { position: absolute; right: 9px; top: 8px; color: var(--line-dark); font-size: 10px; }
.prompt-starter-card:hover .prompt-starter-arrow { color: var(--brand); }
.home-prompt-engine-meta span:last-child,
.library-grid .prompt-package-meta span:last-child { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 1100px) {
  .prompt-starter-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .prompt-starter-head { display: block; }
  .prompt-starter-head > p { margin-top: 6px; }
  .prompt-starter-grid { grid-auto-flow: column; grid-auto-columns: minmax(185px, 1fr); grid-template-columns: none; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .prompt-starter-grid::-webkit-scrollbar { display: none; }
  .prompt-starter-card { min-height: 92px; }
}

/* --------------------------------------------------------------------------
   v07 — workflow library
   -------------------------------------------------------------------------- */
.workflow-package-card { min-height: 206px !important; }
.workflow-route { display: flex; flex-wrap: wrap; align-items: center; gap: 3px; margin-top: 8px; color: var(--faint); font-size: 7.5px; line-height: 1.35; }
.workflow-route span { padding: 2px 5px; border-radius: 3px; background: var(--canvas); white-space: nowrap; }
.workflow-route i { color: var(--line-dark); font-style: normal; }
.workflow-package-card .prompt-package-platforms { margin-top: 7px; }

.workflow-detail-section { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 14px; align-items: start; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.workflow-detail-label { color: var(--faint); font-family: var(--mono); font-size: 8px; line-height: 1.6; }
.workflow-input-list { display: flex; flex-wrap: wrap; gap: 5px; }
.workflow-input-list span { padding: 3px 7px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); color: var(--ink-2); font-size: 8.5px; }
.workflow-toolchain { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
.workflow-toolchain span { padding: 4px 7px; border-radius: 4px; background: var(--canvas); color: var(--ink-2); font-size: 8.5px; }
.workflow-toolchain i { color: var(--brand); font-family: var(--mono); font-size: 8px; font-style: normal; }
.workflow-detail-steps { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.workflow-detail-step { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); }
.workflow-detail-step > header { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 11px 12px; border-bottom: 1px solid var(--line); background: var(--paper-tint); }
.workflow-detail-step > header > span { color: var(--brand); font-family: var(--mono); font-size: 8px; line-height: 1.6; }
.workflow-detail-step > header strong { display: block; font-size: 11px; font-weight: 650; }
.workflow-detail-step > header p { margin-top: 3px; color: var(--muted); font-size: 9px; line-height: 1.55; }
.workflow-detail-step > header b { padding: 3px 6px; border: 1px solid var(--line); border-radius: 4px; color: var(--faint); font-size: 8px; font-weight: 500; white-space: nowrap; }
.workflow-step-io { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.workflow-step-io > div { min-width: 0; padding: 9px 11px; }
.workflow-step-io > div + div { border-left: 1px solid var(--line); }
.workflow-step-io span { display: block; color: var(--faint); font-family: var(--mono); font-size: 7.5px; }
.workflow-step-io p { margin-top: 4px; color: var(--muted); font-size: 8.5px; line-height: 1.55; }

@media (max-width: 760px) {
  .main-nav { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1px; }
  .nav-item { padding-inline: 2px; font-size: 9px; letter-spacing: -.035em; }
  .workflow-package-card { min-height: 184px !important; }
  .workflow-detail-section { grid-template-columns: 1fr; gap: 7px; }
  .workflow-step-io { grid-template-columns: 1fr; }
  .workflow-step-io > div + div { border-top: 1px solid var(--line); border-left: 0; }
  .workflow-detail-step > header { grid-template-columns: 24px minmax(0, 1fr); }
  .workflow-detail-step > header b { grid-column: 2; justify-self: start; }
}

/* --------------------------------------------------------------------------
   v08 — quiet catalog filter panel
   One intro block, then a single compact panel for categories and filters.
   -------------------------------------------------------------------------- */
.catalog-controls {
  position: sticky;
  top: 70px;
  z-index: 24;
  margin: 12px 0 0;
  padding: 9px 10px 8px;
  border: 1px solid color-mix(in srgb, var(--line-strong) 82%, transparent);
  border-radius: 11px;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  box-shadow: 0 10px 30px -28px rgba(18,20,26,.42);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}
.catalog-tabs {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--line);
}
.catalog-tabs > .filter-label {
  flex: 0 0 auto;
  min-width: 24px;
  color: var(--faint);
  font-family: var(--sans);
  font-size: 8.5px;
  font-weight: 560;
  letter-spacing: .02em;
}
.prompt-category-grid {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  gap: 4px;
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  border: 0;
  scrollbar-width: none;
}
.prompt-category-grid::-webkit-scrollbar { display: none; }
.prompt-category-card {
  flex: 0 0 auto;
  display: inline-flex;
  min-height: 29px;
  align-items: center;
  gap: 5px;
  padding: 0 9px;
  border: 1px solid transparent;
  border-right: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
  transition: border-color .15s var(--ease), background .15s var(--ease), color .15s var(--ease);
}
.prompt-category-card:hover {
  border-color: var(--line);
  background: var(--canvas);
}
.prompt-category-card.active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--ink-inverse);
  box-shadow: none;
}
.prompt-category-card strong {
  margin: 0;
  color: inherit;
  font-size: 9.5px;
  font-weight: 590;
}
.prompt-category-card small {
  margin: 0;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 7px;
}
.prompt-category-card.active strong { color: var(--ink-inverse); }
.prompt-category-card.active small { color: var(--mint); }

.prompt-library-toolbar {
  display: flex;
  min-height: 31px;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 7px;
  margin: 0;
  padding: 7px 0 0;
  border: 0;
}
.prompt-library-toolbar > .filter-label {
  flex: 0 0 auto;
  min-width: 24px;
  color: var(--faint);
  font-family: var(--sans);
  font-size: 8.5px;
  font-weight: 560;
  letter-spacing: .02em;
}
.prompt-filter-chips { gap: 2px; }
.filter-chip {
  min-height: 25px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  font-size: 8.5px;
}
.filter-chip:hover { border-color: var(--line); background: var(--canvas); }
.filter-chip.active { border-color: var(--line-strong); background: var(--canvas); color: var(--ink); }
.directory-query { margin-left: auto; }

@media (max-width: 920px) {
  .catalog-controls { position: static; margin-top: 10px; }
}
@media (max-width: 760px) {
  .catalog-controls { padding: 8px; border-radius: 10px; }
  .catalog-tabs { gap: 7px; padding-bottom: 6px; }
  .catalog-tabs > .filter-label,
  .prompt-library-toolbar > .filter-label { min-width: 20px; font-size: 8px; }
  .prompt-category-card { min-height: 28px; padding-inline: 8px; }
  .prompt-category-card strong { font-size: 9px; }
  .prompt-library-toolbar { min-height: 29px; padding-top: 6px; }
  .filter-chip { min-height: 24px; padding-inline: 7px; }
}

/* --------------------------------------------------------------------------
   v09 — fixed dialog headers, scrollable detail bodies
   -------------------------------------------------------------------------- */
dialog {
  overflow: hidden;
}
.dialog-inner {
  display: flex;
  flex-direction: column;
  max-height: min(90vh, 960px);
  padding: 0;
  overflow: hidden;
}
.dialog-sticky-header {
  position: relative;
  z-index: 3;
  flex: 0 0 auto;
  padding: 28px 36px 16px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 96%, transparent);
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}
.dialog-sticky-header .prompt-detail-head {
  padding: 0 42px 0 0;
  border-bottom: 0;
}
.dialog-head-standard .dialog-kicker { margin: 0; }
.dialog-head-copy { min-width: 0; }
.dialog-body {
  min-height: 0;
  padding: 16px 36px 38px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.dialog-body > :first-child { margin-top: 0; }
.dialog-close {
  top: 16px;
  right: 16px;
}

@media (max-width: 760px) {
  .dialog-inner {
    width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    padding: 0;
  }
  .dialog-sticky-header {
    padding: calc(17px + env(safe-area-inset-top)) 16px 13px;
  }
  .dialog-sticky-header .prompt-detail-head { padding-right: 38px; }
  .dialog-body {
    padding: 14px 16px calc(34px + env(safe-area-inset-bottom));
  }
  .dialog-close {
    top: calc(11px + env(safe-area-inset-top));
    right: 12px;
  }
}
