:root {
  --bg: #f5f5f2;
  --paper: #ffffff;
  --ink: #171916;
  --muted: #6b7068;
  --line: #dedfd9;
  --soft: #eceee8;
  --accent: #6d55f7;
  --accent-dark: #5038d9;
  --lime: #d9ff68;
  --shadow: 0 18px 55px rgba(27, 24, 48, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.55;
}
button, input, select { font: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 64px);
  background: rgba(245, 245, 242, .9);
  border-bottom: 1px solid rgba(222, 223, 217, .8);
  backdrop-filter: blur(16px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 850; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--ink); color: var(--lime); font-size: 18px; }

.hero { padding: clamp(58px, 9vw, 112px) clamp(20px, 5vw, 80px) 46px; }
.hero-grid { max-width: 1500px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr); gap: clamp(36px, 7vw, 110px); align-items: end; }
.eyebrow { margin: 0 0 16px; color: var(--accent-dark); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1 { max-width: 920px; margin: 0; font-size: clamp(46px, 7.6vw, 112px); line-height: .93; letter-spacing: -.065em; font-weight: 850; }
.hero-copy { max-width: 520px; margin: 0 0 8px; color: #4f544d; font-size: clamp(18px, 2vw, 24px); }
.hero-copy strong { color: var(--ink); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.pill { display: inline-flex; padding: 7px 11px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); color: #555a53; font-size: 12px; font-weight: 700; }
.hero-simple { padding-top: clamp(54px, 7vw, 84px); padding-bottom: 34px; }
.hero-simple .hero-grid { display: block; }
.hero-simple h1 { max-width: none; font-size: clamp(48px, 7vw, 96px); }
.hero-simple .hero-copy { max-width: none; margin-top: 18px; font-size: clamp(17px, 1.8vw, 22px); }

.catalog { max-width: 1500px; margin: 0 auto; padding: clamp(34px, 5vw, 64px) clamp(20px, 5vw, 80px) 90px; }
.workspace-bar { display: grid; grid-template-columns: minmax(520px, 720px) auto; justify-content: center; gap: 16px; align-items: start; }
.quick-generator-anchor { min-width: 0; height: 178px; }
.quick-generator { position: relative; min-width: 0; height: 178px; padding: 12px 12px 8px; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); box-shadow: 0 2px 5px rgba(15,20,28,.04); transition: border-color .18s, box-shadow .18s; }
.quick-generator-anchor .quick-generator { width: 100%; }
.quick-generator:focus-within { border-color: #1597e5; box-shadow: 0 0 0 2px rgba(21,151,229,.22), 0 8px 35px rgba(8,110,186,.1); }
.quick-upload { min-width: 0; width: fit-content; display: flex; align-items: center; gap: 10px; cursor: pointer; }
.quick-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.quick-preview { display: grid; place-items: center; flex: 0 0 56px; width: 56px; height: 56px; border: 1px solid #e7e9ed; border-radius: 10px; overflow: hidden; background: #fff; color: #8b929d; transition: background-color .18s, color .18s; }
.quick-upload:hover .quick-preview { background: var(--soft); color: var(--ink); }
.quick-preview img { width: 100%; height: 100%; object-fit: cover; }
.quick-plus { font-size: 20px; line-height: 1; }
.quick-upload-copy { min-width: 0; display: grid; }
.quick-upload-copy strong, .quick-upload-copy small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.quick-upload-copy strong { font-size: 14px; }
.quick-upload-copy small { color: var(--muted); font-size: 11px; }
.quick-upload-copy[data-state="error"] small { color: #b52e2e; }
.quick-upload-copy[data-state="demo"] small { color: var(--accent-dark); font-weight: 700; }
.quick-toolbar { height: 38px; margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; }
.quick-toolbar > span { padding: 0 4px 8px; color: #8b929d; font-size: 11px; }
.quick-generate { flex: 0 0 auto; width: 34px; height: 32px; display: grid; place-items: center; border: 1px solid transparent; border-radius: 7px; padding: 0; background: var(--ink); color: #fff; font-size: 21px; line-height: 1; cursor: pointer; transition: transform .18s, background-color .3s; }
.quick-generate:hover:not(:disabled) { transform: translateY(-1px); background: #232832; }
.quick-generate:disabled { background: var(--soft); color: #a8adb5; cursor: not-allowed; }
.floating-generator { position: fixed; z-index: 70; left: 50%; bottom: 24px; width: min(480px, calc(100vw - 40px)); visibility: hidden; opacity: 0; pointer-events: none; transform: translate(-50%, 20px) scale(.98); transition: opacity .18s ease, transform .24s cubic-bezier(.2,.75,.2,1), visibility 0s linear .24s, width .22s ease; }
.floating-generator.is-visible { visibility: visible; opacity: 1; pointer-events: auto; transform: translate(-50%, 0) scale(1); transition-delay: 0s; }
.floating-generator.is-expanded { width: min(760px, calc(100vw - 40px)); }
.floating-generator-trigger { display: flex; align-items: center; gap: 12px; width: 100%; height: 62px; overflow: hidden; border: 1px solid #d5dbe3; border-radius: 16px; padding: 7px; background: #fff; color: var(--muted); box-shadow: 0 10px 32px rgba(16,24,38,.18), 0 2px 6px rgba(16,24,38,.06); cursor: pointer; text-align: left; transition: border-color .15s, color .15s, transform .18s; }
.floating-generator-trigger:hover { border-color: #b9c2ce; color: var(--ink); transform: translateY(-1px); }
.floating-generator-trigger:focus-visible, .floating-generator-close:focus-visible { outline: 3px solid rgba(109,85,247,.24); outline-offset: 2px; }
.floating-generator-add, .floating-generator-up { display: grid; place-items: center; flex: 0 0 46px; width: 46px; height: 46px; }
.floating-generator-add { border: 1px solid #e1e5ea; border-radius: 12px; color: #747e8c; font-size: 22px; }
.floating-generator-up { border-radius: 50%; background: #eef1f4; color: #a3abb6; font-size: 21px; }
.floating-generator-copy { min-width: 0; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 650; }
.floating-generator-panel { position: relative; padding: 10px; border: 1px solid #d8dad5; border-radius: 20px; background: rgba(255,255,255,.98); box-shadow: 0 22px 64px rgba(16,24,38,.2), 0 4px 12px rgba(16,24,38,.08); backdrop-filter: blur(12px); }
.floating-generator-panel .quick-generator { width: 100%; box-shadow: none; }
.quick-generator.is-floating { padding-right: 52px; }
.floating-generator-close { position: absolute; z-index: 4; top: 18px; right: 18px; width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 9px; background: var(--soft); color: #6d7480; cursor: pointer; font-size: 19px; line-height: 1; }
.floating-generator-close:hover { background: #e1e4e8; color: var(--ink); }
.compact-filters { display: flex; align-items: center; gap: 8px; }
.compact-search { display: flex; align-items: center; gap: 6px; width: 170px; height: 42px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: #fafbf8; color: var(--muted); }
.compact-search input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); }
.compact-filters select { width: 112px; height: 42px; border: 1px solid var(--line); border-radius: 10px; padding: 0 28px 0 10px; background: #fafbf8; color: var(--ink); outline: 0; font-size: 12px; }
.compact-search:focus-within, .compact-filters select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(109, 85, 247, .1); }
.card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 24px; }
.intent-card { min-width: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 19px; overflow: hidden; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.intent-card:hover { transform: translateY(-4px); border-color: #babcb4; box-shadow: var(--shadow); }
.intent-card a { display: block; height: 100%; text-decoration: none; }
.card-image { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #e8e9e3; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.intent-card:hover .card-image img { transform: scale(1.025); }
.skill-compare { display: grid; grid-template-columns: 1fr 1fr; width: 100%; height: 100%; }
.skill-pane { position: relative; min-width: 0; margin: 0; overflow: hidden; background: #e5e6df; }
.skill-pane + .skill-pane { border-left: 1px solid rgba(255,255,255,.85); }
.card-image .skill-pane img { display: block; width: 100%; height: 100%; padding: 32px 5px 5px; object-fit: contain; transform: none; }
.intent-card:hover .skill-pane img { transform: none; }
.skill-media-label, .skill-media-count { position: absolute; z-index: 2; top: 9px; padding: 5px 7px; border-radius: 999px; background: rgba(22,25,22,.78); color: #fff; font-size: 9px; font-weight: 850; letter-spacing: .08em; line-height: 1; text-transform: uppercase; backdrop-filter: blur(6px); }
.skill-media-label { left: 9px; }
.skill-media-count { right: 9px; background: rgba(255,255,255,.9); color: #353a34; letter-spacing: 0; text-transform: none; }
.skill-after.is-pending { display: grid; place-items: center; background: repeating-linear-gradient(135deg, #eff0ea 0 12px, #e6e8e0 12px 24px); }
.skill-result-pending { padding: 16px; color: #747a72; font-size: 12px; font-weight: 800; text-align: center; }
.card-body { padding: 18px; }
.card-body h3 { margin: 0; min-height: 2.8em; font-size: 18px; line-height: 1.35; letter-spacing: -.025em; }

.breadcrumb { max-width: 1180px; margin: 0 auto; padding: 28px clamp(20px, 4vw, 52px) 0; color: var(--muted); font-size: 13px; }
.breadcrumb a { text-decoration: none; }
.detail-hero { max-width: 1180px; margin: 0 auto; padding: 36px clamp(20px, 4vw, 52px) 56px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .72fr); gap: clamp(34px, 7vw, 88px); align-items: center; }
.detail-hero h1 { max-width: 760px; font-size: clamp(44px, 6vw, 78px); line-height: .98; }
.detail-lead { max-width: 720px; margin: 24px 0 0; color: #555a53; font-size: 18px; }
.detail-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 30px; }
.primary-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 12px; padding: 0 18px; border: 0; font-weight: 800; text-decoration: none; cursor: pointer; }
.primary-button { background: var(--ink); color: #fff; box-shadow: 0 8px 22px rgba(23,25,22,.18); }
.primary-button:hover { background: #30342f; }
.primary-button:disabled { opacity: .45; cursor: not-allowed; }
.secondary-button { background: var(--paper); color: var(--ink); border: 1px solid var(--line); }
.detail-visual { position: relative; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); }
.detail-visual img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.detail-visual.has-skill-media { background: #f0f1eb; }
.detail-skill-compare { display: grid; grid-template-columns: 1fr 1fr; min-height: 430px; }
.detail-skill-pane { position: relative; display: flex; flex-direction: column; min-width: 0; margin: 0; background: #e7e9e2; }
.detail-skill-pane + .detail-skill-pane { border-left: 1px solid #fff; }
.detail-skill-pane figcaption { position: absolute; z-index: 2; top: 12px; left: 12px; padding: 7px 9px; border-radius: 999px; background: rgba(22,25,22,.8); color: #fff; font-size: 10px; font-weight: 850; letter-spacing: .04em; backdrop-filter: blur(7px); }
.detail-before-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(140px, 1fr); width: 100%; height: 100%; gap: 2px; }
.detail-before-grid.is-single { grid-template-columns: 1fr; }
.detail-visual .detail-before-grid img, .detail-visual .detail-skill-pane > img { width: 100%; height: 100%; min-height: 430px; padding: 44px 8px 8px; aspect-ratio: auto; object-fit: contain; }
.detail-visual .detail-before-grid img { min-height: 0; }
.detail-skill-pane.is-pending { align-items: center; justify-content: center; }
.detail-main { background: var(--paper); border-top: 1px solid var(--line); }
.detail-layout { max-width: 1180px; margin: 0 auto; padding: 64px clamp(20px, 4vw, 52px) 100px; display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: clamp(40px, 8vw, 100px); }
.content-section + .content-section { margin-top: 54px; }
.content-section h2 { margin: 0 0 18px; font-size: 28px; letter-spacing: -.035em; }
.content-section h3 { margin: 28px 0 10px; font-size: 17px; }
.content-section p { color: #464c45; }
.flow-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.flow-item { padding: 15px; border-radius: 13px; background: var(--bg); border: 1px solid var(--line); }
.flow-item strong { display: block; margin-bottom: 7px; color: var(--accent-dark); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.spec { padding: 16px; border: 1px solid var(--line); border-radius: 13px; }
.spec strong { display: block; margin-bottom: 6px; font-size: 12px; }
.spec p { margin: 0; font-size: 14px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; }
.tag { padding: 7px 10px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); font-size: 12px; }
.source-list { display: grid; gap: 8px; }
.source { display: grid; grid-template-columns: 90px 1fr auto; gap: 12px; align-items: center; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; }
.source:hover { background: var(--bg); }
.source-type { color: var(--accent-dark); font-size: 11px; font-weight: 800; }
.source-text { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #565c54; font-size: 13px; }
.detail-aside { align-self: start; position: sticky; top: 94px; padding: 22px; border-radius: 18px; background: var(--bg); border: 1px solid var(--line); }
.detail-aside h3 { margin: 0 0 12px; }
.detail-aside h2 { margin: 0 0 16px; font-size: 20px; }
.skill-detail-page { overflow-wrap: anywhere; }
.skill-detail-page h1 { font-size: clamp(32px, 4.4vw, 56px); line-height: 1.18; }
.detail-prompt-summary { margin: 18px 0 0; color: var(--accent-dark); font-weight: 700; }
.skill-detail-nav { display: flex; flex-wrap: wrap; gap: 12px 24px; max-width: 1180px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 52px) 28px; }
.skill-detail-nav a { text-underline-offset: 5px; font-size: 14px; }
.skill-detail-page [id] { scroll-margin-top: 100px; }
.skill-detail-page .detail-layout > article { min-width: 0; }
.skill-outcomes, .skill-input-list { display: grid; gap: 18px; margin: 24px 0; }
.skill-outcomes > div, .skill-input-list > div { padding: 18px; background: var(--bg); border-radius: 12px; }
.skill-outcomes dt, .skill-input-list dt { font-weight: 750; }
.skill-outcomes dd, .skill-input-list dd { margin: 8px 0 0; color: #464c45; }
.skill-input-list dt span { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; font-weight: 500; }
.skill-input-list dd p { margin: 8px 0 0; font-size: 14px; }
.skill-delivery, .skill-availability { padding: 16px 18px; background: var(--bg); border-radius: 12px; font-weight: 700; }
.skill-usage-steps { display: grid; gap: 22px; padding-left: 24px; }
.skill-usage-steps li { padding-left: 6px; }
.skill-usage-steps h3, .skill-faq-item h3 { margin: 0 0 8px; font-size: 18px; }
.skill-usage-steps p, .skill-faq-item p { margin: 0; }
.skill-faq-item + .skill-faq-item { margin-top: 26px; }
.related-skills { padding-top: 64px; padding-bottom: 80px; }
.skill-detail-page .related-skills { padding-left: 0; padding-right: 0; }
.skill-detail-page .related-skills .intent-library-inner { width: 100%; max-width: 1180px; padding: 0 clamp(20px, 4vw, 52px); }
.related-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.related-heading h2 { margin: 0; font-size: 28px; }
.related-heading a { text-underline-offset: 5px; }
.skill-detail-page .related-skills .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) {
  .skill-detail-page .related-skills .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .skill-detail-page .spec-grid, .skill-detail-page .related-skills .card-grid { grid-template-columns: 1fr; }
  .related-heading { align-items: start; flex-direction: column; gap: 12px; }
}
.aside-list { display: grid; gap: 12px; margin: 0; }
.aside-list div { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.aside-list dt { color: var(--muted); font-size: 11px; font-weight: 700; }
.aside-list dd { margin: 4px 0 0; font-weight: 700; }

.generate-dialog { width: min(620px, calc(100vw - 28px)); border: 0; border-radius: 22px; padding: 0; box-shadow: 0 30px 100px rgba(14, 12, 24, .35); }
.generate-dialog::backdrop { background: rgba(16, 16, 18, .62); backdrop-filter: blur(5px); }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 24px 26px 18px; border-bottom: 1px solid var(--line); }
.dialog-head h2 { margin: 2px 0 4px; font-size: 22px; }
.dialog-head p { margin: 0; color: var(--muted); font-size: 13px; }
.icon-button { display: grid; place-items: center; flex: 0 0 auto; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--soft); cursor: pointer; font-size: 20px; }
.dialog-body { padding: 22px 26px 26px; }
.upload-zone { display: grid; place-items: center; min-height: 260px; padding: 28px; border: 1.5px dashed #bfc1b9; border-radius: 16px; background: #fafbf8; text-align: center; }
.upload-zone[data-dragging="true"] { border-color: var(--accent); background: #f5f1ff; }
.upload-icon { display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 16px; background: var(--ink); color: var(--lime); font-size: 24px; }
.upload-zone b { display: block; font-size: 17px; }
.upload-zone p { margin: 6px 0 16px; color: var(--muted); font-size: 13px; }
.file-label { display: inline-flex; min-height: 42px; align-items: center; padding: 0 15px; border-radius: 10px; background: var(--paper); border: 1px solid var(--line); font-weight: 800; cursor: pointer; }
.file-label input { position: absolute; opacity: 0; pointer-events: none; }
.preview-box { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.preview-box img { display: block; width: 100%; height: 250px; object-fit: contain; background: #eff0eb; }
.preview-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; }
.preview-meta button { border: 0; background: transparent; color: var(--accent-dark); font-weight: 800; cursor: pointer; }
.generation-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0 0; padding: 0; border: 0; }
.generation-options legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.generation-options label { display: grid; gap: 5px; color: var(--muted); font-size: 11px; font-weight: 750; }
.generation-options select { width: 100%; min-height: 42px; border: 1px solid var(--line); border-radius: 10px; padding: 0 30px 0 11px; background: var(--paper); color: var(--ink); }
.generation-options select:focus { outline: 3px solid rgba(109,85,247,.12); border-color: var(--accent); }
.generation-options input { width:100%; min-height:42px; border:1px solid var(--line); border-radius:10px; padding:0 11px; background:var(--paper); color:var(--ink); }
.generation-options .generation-target, .generation-options .generation-ratio-note { grid-column:1/-1; }
.skill-input-role { margin: 18px 0; padding: 16px; border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
.skill-input-role legend { padding: 0 5px; font-size: 14px; font-weight: 700; }
.skill-input-role legend span { color: var(--muted); font-size: 11px; font-weight: 500; }
.skill-input-role p, .skill-delivery-note { color: var(--muted); font-size: 12px; line-height: 1.7; margin: 0 0 10px; }
.skill-input-role label { display: grid; gap: 7px; font-size: 12px; margin-top: 10px; }
.skill-input-role textarea, .skill-input-role select { width: 100%; max-width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 10px; font: inherit; background: var(--paper); color: var(--ink); }
.skill-input-role textarea { resize: vertical; min-height: 90px; }
.skill-input-role input[type=file] { width: 100%; font: inherit; padding: 10px 0; }
.skill-input-role [hidden] { display: none; }
.skill-upload-previews { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.skill-upload-previews figure { margin: 0; min-width: 0; }
.skill-upload-previews img { width: 100%; height: 140px; object-fit: contain; background: #f4f4ef; border-radius: 6px; }
.skill-upload-previews figcaption { font-size: 11px; overflow-wrap: anywhere; margin-top: 5px; }
.skill-input-role [data-file-error] { color: #a13e2d; }
.skill-input-hint { color: var(--muted); font-size: 12px; line-height: 1.7; }
.skill-no-reference { align-self: center; padding: 24px 10px; color: var(--muted); font-size: 12px; line-height: 1.7; text-align: center; }
.generation-ratio-note { margin:0; color:var(--muted); font-size:12px; line-height:1.6; }
.generation-result { display: grid; gap: 12px; margin-top: 16px; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: #f6f7f2; }
.generation-result img { display: block; width: 100%; max-height: 420px; object-fit: contain; border-radius: 10px; background: #eceee8; }
.generation-result .secondary-button { justify-self: end; min-height: 40px; }
.dialog-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; }
.status { margin: 0; color: var(--muted); font-size: 12px; }
.status[data-state="error"] { color: #b52e2e; }
.status[data-state="demo"] { color: var(--accent-dark); font-weight: 700; }
.site-footer { padding: 28px clamp(20px, 5vw, 80px); border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }

@media (max-width: 1120px) {
  .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .flow-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px) {
  .hero-grid, .detail-hero, .detail-layout { grid-template-columns: 1fr; }
  .hero-copy { max-width: 680px; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workspace-bar { grid-template-columns: 1fr; }
  .compact-filters { justify-content: flex-end; }
  .detail-aside { position: static; }
}
@media (max-width: 560px) {
  .site-header { padding: 14px 18px; }
  .hero { padding-top: 52px; }
  h1 { font-size: 48px; }
  .card-grid, .spec-grid { grid-template-columns: 1fr; }
  .catalog { padding-top: 22px; }
  .quick-upload-copy small { display: none; }
  .quick-generator-anchor, .quick-generator { height: 166px; }
  .floating-generator { bottom: 12px; width: calc(100vw - 24px); }
  .floating-generator.is-expanded { width: calc(100vw - 24px); }
  .floating-generator-trigger { height: 58px; }
  .floating-generator-add, .floating-generator-up { width: 42px; height: 42px; flex-basis: 42px; }
  .floating-generator-panel { padding: 8px; }
  .quick-generator.is-floating { padding-right: 48px; }
  .floating-generator-close { top: 16px; right: 16px; }
  .compact-filters { justify-content: stretch; }
  .compact-search { width: auto; flex: 1; }
  .card-body h3 { min-height: 0; }
  .flow-grid { grid-template-columns: 1fr; }
  .dialog-footer { align-items: stretch; flex-direction: column; }
  .generation-options { grid-template-columns: 1fr; }
}

/* Homepage layout: PodPlo-inspired structure, original project identity. */
.home-page { --home-width: 1360px; min-height: 100vh; overflow: hidden; background: #fbfbf7; }
.home-page main { display: block; }
.home-header { position: fixed; display: grid; grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr); width: 100%; height: 60px; padding: 0 40px; background: rgba(251,251,247,.92); border-bottom: 1px solid rgba(222,223,217,.72); backdrop-filter: blur(18px); }
.home-header .header-nav { display: flex; align-items: center; justify-content: center; gap: 6px; }
.home-header .header-nav a, .home-header .header-action { border: 0; border-radius: 999px; padding: 7px 11px; text-decoration: none; color: #555b55; font-size: 12px; font-weight: 700; transition: color .16s, background-color .16s, transform .16s; cursor: pointer; }
.home-header .header-nav a:hover { background: #efefe8; color: var(--ink); }
.home-header .header-action { justify-self: end; background: var(--accent); color: #fff; }
.home-header .header-action:hover { background: var(--accent-dark); transform: translateY(-1px); }
.header-actions { display: flex; justify-self: end; align-items: center; gap: 10px; min-width: 0; }
.header-language { flex-shrink: 0; padding: 7px 9px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; line-height: 1.25; text-decoration: none; white-space: nowrap; }
.header-language:hover { background: var(--soft); }
.header-actions .header-account { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-header .brand-mark { flex-shrink: 0; }
html[lang^="en"] .home-header .brand > span:last-child { line-height: 1.15; }
html[lang^="en"] .detail-hero h1 { overflow-wrap: anywhere; }
@media (max-width: 600px) {
  .header-actions { gap: 6px; }
  .header-language { padding: 7px; font-size: 11px; }
  .header-actions .header-account { max-width: 135px; }
  html[lang^="en"] .home-header .brand { font-size: 12px; gap: 6px; }
}
.home-header a:focus-visible { outline: 3px solid rgba(109,85,247,.2); outline-offset: 2px; }
.auth-dialog { width: min(430px, calc(100vw - 28px)); border: 0; border-radius: 20px; padding: 0; box-shadow: 0 30px 100px rgba(14,12,24,.32); }
.auth-dialog::backdrop { background: rgba(16,16,18,.6); backdrop-filter: blur(5px); }
.auth-card { position: relative; display: grid; gap: 14px; padding: 28px; }
.auth-card h2 { margin: 0; font-size: 26px; letter-spacing: -.03em; }
.auth-card > p { margin: 0; color: var(--muted); font-size: 13px; }
.auth-card > label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 750; }
.auth-card input { min-height: 46px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; }
.auth-card input:focus { outline: 3px solid rgba(109,85,247,.12); border-color: var(--accent); }
.auth-close { position: absolute; top: 18px; right: 18px; }
.auth-google { width: 100%; }
.auth-google[hidden], .auth-google button[hidden] { display: none; }
#auth-google-button { min-height: 44px; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 16px 0 0; color: var(--muted); font-size: 12px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.home-hero { min-height: 772px; padding: 108px 32px 72px; background: radial-gradient(circle at 50% 27%, rgba(217,255,104,.15), transparent 31%), #fbfbf7; }
.home-hero-inner, .home-showcase-inner, .discovery-inner, .intent-library-inner, .workflow-inner, .faq-inner, .home-footer { width: min(var(--home-width), calc(100% - 40px)); margin: 0 auto; }
.home-hero-heading { max-width: 760px; margin: 0 auto 34px; text-align: center; }
.home-hero-heading h1 { max-width: none; margin: 0; font-size: clamp(42px, 4.2vw, 66px); line-height: .98; letter-spacing: -.055em; }
.home-strapline { margin: 18px 0 0; color: #777d74; font-size: 11px; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.home-composer { width: min(780px, 100%); margin: 0 auto; }
.home-composer .quick-generator-anchor, .home-composer .quick-generator { height: 178px; }
.home-composer .quick-generator { border-color: #dadcd5; box-shadow: 0 22px 70px rgba(28,31,24,.09), 0 3px 12px rgba(28,31,24,.04); }
.start-paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; width: min(900px, 100%); margin: 28px auto 0; }
.start-path-card { position: relative; min-height: 170px; overflow: hidden; border: 1px solid #e0e1da; border-radius: 22px; padding: 24px; background: #fff; text-decoration: none; transition: transform .2s, box-shadow .2s, border-color .2s; }
.start-path-card::after { content: ""; position: absolute; right: -32px; bottom: -45px; width: 140px; height: 140px; border-radius: 50%; background: var(--path-accent, rgba(109,85,247,.13)); }
.start-path-card:nth-child(2) { --path-accent: rgba(217,255,104,.5); }
.start-path-card:nth-child(3) { --path-accent: rgba(255,209,221,.55); }
.start-path-card:hover { transform: translateY(-5px); border-color: #c8c9c2; box-shadow: 0 18px 48px rgba(30,31,26,.08); }
.start-path-card span { display: block; color: var(--accent-dark); font-size: 11px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.start-path-visual { display: flex !important; align-items: flex-end; gap: 5px; width: 92px; height: 44px; }
.start-path-visual i { display: block; width: 24px; border-radius: 7px 7px 3px 3px; background: rgba(109,85,247,.2); }
.start-path-visual i:nth-child(1) { height: 24px; }
.start-path-visual i:nth-child(2) { height: 40px; background: rgba(109,85,247,.42); }
.start-path-visual i:nth-child(3) { height: 31px; background: rgba(217,255,104,.9); }
.start-path-card strong { display: block; max-width: 190px; margin-top: 34px; font-size: 19px; line-height: 1.2; letter-spacing: -.025em; }
.start-path-card small { display: block; max-width: 210px; margin-top: 8px; color: var(--muted); font-size: 12px; }

.home-showcase { padding: 112px 0 104px; background: #f3f2ff; }
.section-heading { max-width: 720px; margin: 0 auto 50px; text-align: center; }
.section-kicker { margin: 0 0 14px; color: var(--accent-dark); font-size: 11px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.section-heading h2, .library-heading h2, .discovery-heading h2 { margin: 0; font-size: clamp(38px, 4vw, 60px); line-height: 1; letter-spacing: -.055em; }
.section-heading > p:last-child, .library-heading > p:last-child, .discovery-heading > p:last-child { max-width: 620px; margin: 18px auto 0; color: #60665e; font-size: 15px; }
.showcase-board { display: grid; grid-template-columns: minmax(250px, .7fr) minmax(0, 1.6fr); gap: 12px; min-height: 520px; padding: 12px; border: 1px solid rgba(109,85,247,.18); border-radius: 26px; background: rgba(255,255,255,.76); box-shadow: 0 24px 80px rgba(72,57,145,.08); }
.showcase-source, .showcase-result { position: relative; overflow: hidden; border-radius: 16px; background: #fff; }
.showcase-source img, .showcase-result img { width: 100%; height: 100%; object-fit: contain; }
.showcase-source { min-height: 496px; }
.showcase-source figcaption { position: absolute; left: 16px; bottom: 16px; padding: 7px 10px; border-radius: 999px; background: rgba(23,25,22,.84); color: #fff; font-size: 11px; font-weight: 800; }
.showcase-results { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(3, 1fr); gap: 8px; }
.showcase-result { min-height: 0; }
.showcase-result span { position: absolute; right: 8px; bottom: 8px; left: 8px; overflow: hidden; padding: 5px 7px; border-radius: 7px; background: rgba(255,255,255,.88); color: #2c302b; font-size: 9px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; backdrop-filter: blur(7px); }
.showcase-benefits { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 24px; }
.showcase-benefits, .workflow-grid, .faq-grid { padding: 0; list-style: none; }
.showcase-benefits li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; padding: 0 26px; border-right: 1px solid rgba(109,85,247,.14); list-style: none; }
.showcase-benefits li:last-child { border-right: 0; }
.showcase-benefits li > span { color: var(--accent-dark); font-weight: 900; }
.showcase-benefits strong, .showcase-benefits small { display: block; }
.showcase-benefits strong { font-size: 13px; }
.showcase-benefits small { margin-top: 4px; color: #777b75; font-size: 11px; }

.discovery-section { padding: 120px 0 106px; background: #fbfbf7; }
.discovery-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 42px; }
.discovery-heading > div { max-width: 680px; }
.discovery-heading > p:last-child { margin: 0 0 5px; text-align: right; }
.discovery-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 180px; gap: 10px; }
.discovery-card { position: relative; grid-column: span 4; overflow: hidden; border-radius: 20px; background: #fff; text-decoration: none; }
.discovery-card:nth-child(1), .discovery-card:nth-child(5) { grid-column: span 6; }
.discovery-card img { width: 100%; height: 100%; object-fit: contain; }
.discovery-card span { position: absolute; inset: auto 12px 12px; padding: 9px 11px; border-radius: 11px; background: rgba(255,255,255,.9); font-size: 12px; font-weight: 800; backdrop-filter: blur(8px); }

.intent-library { padding: 112px 0 90px; background: #fff; border-top: 1px solid #e7e7e0; }
.library-header { display: flex; align-items: end; justify-content: space-between; gap: 34px; margin-bottom: 30px; }
.library-heading { max-width: 680px; }
.library-heading > p:last-child { margin-left: 0; }
.intent-library .compact-filters { flex: 0 0 auto; }
.intent-library .card-grid { margin-top: 0; }
.intent-library .intent-card { border-radius: 16px; }
.intent-library .card-image { aspect-ratio: 1 / .82; }
.intent-library .card-body { padding: 15px 16px 18px; }
.intent-library .card-body h3 { min-height: 44px; font-size: 16px; }

.workflow-section { padding: 112px 0 104px; background: #f7f8f3; }
.workflow-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.workflow-card { min-height: 260px; padding: 28px; border: 1px solid #dedfd8; border-radius: 20px; background: #fff; }
.workflow-card.is-emphasized { border-color: rgba(109,85,247,.24); background: #ece9ff; box-shadow: 0 20px 55px rgba(80,56,217,.1); }
.workflow-number { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: #eff0ea; color: #5d625b; font-size: 12px; font-weight: 850; }
.is-emphasized .workflow-number { background: var(--accent); color: #fff; }
.workflow-card h3 { margin: 72px 0 10px; font-size: 24px; letter-spacing: -.035em; }
.workflow-card p { margin: 0; color: var(--muted); font-size: 14px; }

.faq-section { padding: 116px 0 128px; background: #fbfbf7; }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 52px 70px; margin-top: 72px; }
.faq-item { display: grid; grid-template-columns: 34px 1fr; gap: 16px; }
.faq-number { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid #dfe0d9; border-radius: 9px; color: #858a82; font-size: 11px; }
.faq-item h3 { margin: 3px 0 8px; font-size: 16px; letter-spacing: -.02em; }
.faq-item p { margin: 0; color: #71766e; font-size: 13px; line-height: 1.65; }

.home-footer { --home-width: 1360px; padding: 64px 0 0; background: #fff; border-top: 1px solid #e8e8e1; color: #666b64; }
.home-footer-main { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(0, 1.4fr); align-items: start; gap: 90px; }
.footer-brand p { max-width: 280px; margin: 24px 0 0; font-size: 14px; }
.footer-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px; }
.footer-group { display: grid; align-content: start; gap: 12px; }
.footer-group strong { color: var(--ink); font-size: 12px; }
.footer-group a { color: #767b74; font-size: 12px; text-decoration: none; }
.footer-group a:hover { color: var(--accent-dark); }
.home-footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 28px; margin-top: 74px; padding: 24px 0 12px; border-top: 1px solid #ecece6; font-size: 13px; }
.footer-legal-links { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.footer-legal-links a { padding: 8px 0; text-underline-offset: 4px; }
.footer-storage { margin: 0; padding-bottom: 28px; font-size: 12px; }
.home-footer a:focus-visible, .legal-page a:focus-visible, .auth-legal a:focus-visible { outline: 3px solid var(--accent-dark); outline-offset: 5px; }
.auth-legal a { color: var(--accent-dark); text-underline-offset: 3px; margin: 0 3px; }
.breadcrumb { padding-top: 88px; }

@media (max-width: 980px) {
  .home-header { grid-template-columns: 1fr auto; }
  .home-header .header-nav { display: none; }
  .showcase-board { grid-template-columns: 1fr; }
  .showcase-source { min-height: 360px; }
  .discovery-card, .discovery-card:nth-child(1), .discovery-card:nth-child(5) { grid-column: span 6; }
  .library-header { align-items: stretch; flex-direction: column; }
  .intent-library .compact-filters { align-self: flex-end; }
}

@media (max-width: 680px) {
  .home-page { --home-width: 100%; }
  .home-header { grid-template-columns: 1fr auto; gap: 8px; height: 60px; padding: 0 14px; }
  .home-header .brand { font-size: 14px; }
  .home-header .brand-mark { width: 30px; height: 30px; }
  .home-header .header-action { padding: 7px 10px; font-size: 11px; }
  .home-hero { min-height: auto; padding: 118px 16px 76px; }
  .home-hero-inner, .home-showcase-inner, .discovery-inner, .intent-library-inner, .workflow-inner, .faq-inner, .home-footer { width: 100%; }
  .home-hero-heading { margin-bottom: 28px; }
  .home-hero-heading h1 { font-size: 38px; }
  .home-strapline { font-size: 9px; letter-spacing: .12em; }
  .home-composer .quick-generator-anchor, .home-composer .quick-generator { height: 166px; }
  .start-paths { grid-template-columns: 1fr; gap: 12px; }
  .start-path-card { min-height: 138px; }
  .start-path-card strong { margin-top: 20px; }
  .home-showcase, .discovery-section, .intent-library, .workflow-section, .faq-section { padding-right: 16px; padding-left: 16px; }
  .home-showcase { padding-top: 84px; padding-bottom: 82px; }
  .section-heading { margin-bottom: 36px; }
  .section-heading h2, .library-heading h2, .discovery-heading h2 { font-size: 38px; }
  .showcase-board { padding: 8px; border-radius: 20px; }
  .showcase-source { min-height: 330px; }
  .showcase-results { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(4, 100px); }
  .showcase-benefits { grid-template-columns: 1fr; gap: 18px; }
  .showcase-benefits li { border-right: 0; border-bottom: 1px solid rgba(109,85,247,.14); padding: 0 2px 18px; }
  .showcase-benefits li:last-child { border-bottom: 0; }
  .detail-skill-compare { grid-template-columns: 1fr; }
  .detail-skill-pane + .detail-skill-pane { border-top: 1px solid #fff; border-left: 0; }
  .detail-visual .detail-before-grid img, .detail-visual .detail-skill-pane > img { min-height: 300px; }
  .discovery-section { padding-top: 88px; padding-bottom: 84px; }
  .discovery-heading { align-items: start; flex-direction: column; }
  .discovery-heading > p:last-child { text-align: left; }
  .discovery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
  .discovery-card, .discovery-card:nth-child(1), .discovery-card:nth-child(5) { grid-column: span 1; }
  .discovery-card:nth-child(1) { grid-column: 1 / -1; }
  .intent-library { padding-top: 84px; }
  .intent-library .compact-filters { align-self: stretch; }
  .workflow-section { padding-top: 82px; padding-bottom: 72px; }
  .workflow-grid { grid-template-columns: 1fr; }
  .workflow-card { min-height: 210px; }
  .workflow-card h3 { margin-top: 48px; }
  .faq-section { padding-top: 84px; padding-bottom: 84px; }
  .faq-grid { grid-template-columns: 1fr; gap: 34px; margin-top: 50px; }
  .home-footer { width: calc(100% - 32px); padding-top: 48px; }
  .home-footer-main { grid-template-columns: 1fr; gap: 52px; }
  .footer-links { grid-template-columns: 1fr 1fr; gap: 36px 24px; }
  .home-footer-bottom { align-items: flex-start; flex-direction: column; margin-top: 52px; }
}

/* Full-image library and compact, discovery-first page rhythm. */
.home-hero { min-height: 0; padding: 128px 40px 64px; }
.home-hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 64px; align-items: center; }
.home-hero-heading { margin: 0; max-width: 580px; text-align: left; }
.home-hero-heading h1 { font-size: clamp(40px, 4.2vw, 64px); line-height: 1.1; letter-spacing: -.045em; }
.home-strapline { margin-top: 24px; letter-spacing: .04em; font-size: 12px; }
.home-composer { width: 100%; }
.home-composer .quick-generator { box-shadow: 0 12px 36px rgba(28,31,24,.05); }
.start-paths { grid-column: 1 / -1; width: 100%; gap: 16px; margin: 12px 0 0; }
.start-path-card { min-height: 0; padding: 20px 24px; border-radius: 14px; }
.start-path-visual { display: none !important; }
.start-path-card strong { max-width: none; margin: 0; font-size: 16px; }
.start-path-card small { max-width: none; margin-top: 4px; }
.intent-library { padding: 56px 0 80px; }
.library-header { gap: 24px; align-items: center; margin-bottom: 28px; }
.library-heading h2, .discovery-heading h2, .section-heading h2 { font-size: clamp(30px, 3vw, 44px); line-height: 1.15; letter-spacing: -.035em; }
.section-kicker { margin-bottom: 8px; }
.library-heading > p:last-child { max-width: 520px; font-size: 13px; }
.intent-library .card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; align-items: start; }
.intent-library .intent-card { border-radius: 14px; box-shadow: none; }
.intent-library .card-image { aspect-ratio: auto; }
.intent-library .intent-card:not(.has-skill-media) .card-image { aspect-ratio: 1.4; }
.skill-compare-card { height: auto; min-height: 310px; gap: 12px; padding: 12px; background: #f4f4ef; align-items: start; }
.skill-compare-card .skill-pane { overflow: visible; background: transparent; }
.skill-compare-card .skill-pane + .skill-pane { border: 0; }
.skill-compare-card figcaption { display: flex; align-items: center; justify-content: space-between; min-height: 24px; margin-bottom: 8px; color: #72776e; font-size: 10px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.skill-compare-card .skill-media-count { position: static; padding: 0; background: none; color: #8a8e85; font-size: 9px; }
.card-reference-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.card-reference-grid.is-single { grid-template-columns: 1fr; }
.card-image .skill-pane img { width: 100%; height: auto; padding: 0; border-radius: 5px; object-fit: contain; }
.skill-compare-card .is-pending { min-height: 260px; align-content: start; }
.intent-library .card-body { padding: 18px 18px 20px; border-top: 1px solid #e9eae4; }
.intent-library .card-body h3 { min-height: 0; font-size: 16px; line-height: 1.45; }
.discovery-section, .home-showcase, .workflow-section, .faq-section { padding: 72px 0; }
.discovery-heading { margin-bottom: 28px; }
.discovery-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 220px; gap: 18px; }
.discovery-card, .discovery-card:nth-child(1), .discovery-card:nth-child(5) { grid-column: auto; border: 1px solid var(--line); border-radius: 14px; }
.showcase-board { min-height: 0; grid-template-columns: minmax(180px, .7fr) minmax(0, 2fr); }
.showcase-source { min-height: 0; }
.showcase-results { grid-template-rows: repeat(3, 140px); }
.workflow-card { min-height: 200px; }
.workflow-card h3 { margin-top: 34px; }
.faq-inner { display: grid; grid-template-columns: .65fr 1.35fr; gap: 64px; }
.faq-inner .section-heading { text-align: left; margin: 0; }
.faq-grid { margin: 0; gap: 32px; }
.home-footer { padding: 48px 0 0; }
.home-footer-main { gap: 48px; }
.home-footer-bottom { margin-top: 40px; }
section[id] { scroll-margin-top: 84px; }
@media (max-width: 1050px) {
  .home-hero { padding: 112px 24px 48px; }
  .home-hero-inner { gap: 28px; }
  .intent-library .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq-inner { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 680px) {
  .home-hero { padding: 100px 20px 36px; }
  .home-hero-inner { grid-template-columns: 1fr; gap: 24px; }
  .home-hero-heading h1 { font-size: 38px; }
  .home-strapline { margin-top: 16px; font-size: 10px; }
  .start-paths { gap: 8px; margin: 0; }
  .start-path-card { padding: 14px 16px; }
  .start-path-card strong { margin: 0; }
  .intent-library, .discovery-section, .home-showcase, .workflow-section, .faq-section { padding: 40px 20px; }
  .intent-library .card-grid { grid-template-columns: 1fr; gap: 20px; }
  .skill-compare-card { min-height: 0; }
  .discovery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; gap: 12px; }
  .discovery-card:nth-child(1) { grid-column: auto; }
  .showcase-board { grid-template-columns: 1fr; }
  .showcase-source { height: 240px; }
  .showcase-results { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(4, 120px); }
  .showcase-benefits { margin-top: 24px; }
  .faq-grid { grid-template-columns: 1fr; }
}

.sample-media-link { display: block; min-width: 0; cursor: zoom-in; }
.sample-result-link { height: 100%; }
.detail-visual .sample-result-link > img { width: 100%; height: 100%; min-height: 430px; padding: 44px 8px 8px; object-fit: contain; }
@media(max-width:600px){ .detail-visual .sample-result-link > img { min-height: 300px; } }

/* Shared policy pages keep the site's existing brand and readable text measure. */
.legal-page { min-height: 100vh; background: #fbfbf7; }
.legal-main { max-width: 1180px; margin: 0 auto; padding: 120px 32px 64px; }
.legal-heading { max-width: 800px; margin-bottom: 32px; }
.legal-heading h1 { margin: 0 0 16px; font-size: clamp(36px, 4.5vw, 56px); line-height: 1.18; letter-spacing: -.04em; }
.legal-heading p { margin: 12px 0 0; font-size: 17px; line-height: 1.75; }
.legal-heading .legal-subtitle { color: var(--muted); font-size: 14px; }
.legal-draft { padding: 22px 24px; margin: 0 0 44px; background: #eceee8; }
.legal-draft strong { font-size: 17px; }
.legal-draft p { margin: 8px 0 0; font-size: 15px; line-height: 1.75; }
.legal-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 64px; align-items: start; }
.legal-toc { position: sticky; top: 100px; font-size: 15px; }
.legal-toc strong { font-size: 16px; }
.legal-toc ol { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 6px; }
.legal-toc a { display: inline-block; padding: 5px 0; text-decoration: none; }
.legal-toc a:hover, .legal-back:hover { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 4px; }
.legal-other { color: var(--accent-dark); }
.legal-content { min-width: 0; font-size: 16px; line-height: 1.85; }
.legal-content section { margin-bottom: 44px; scroll-margin-top: 96px; }
.legal-content h2 { margin: 0 0 16px; font-size: 24px; line-height: 1.35; letter-spacing: -.02em; }
.legal-content p { margin: 14px 0; }
.legal-content ul { padding-left: 22px; }
.legal-content li + li { margin-top: 12px; }
.legal-content a { color: var(--accent-dark); text-underline-offset: 4px; overflow-wrap: anywhere; }
.legal-services, .legal-contact { margin: 20px 0; }
.legal-services > div, .legal-contact > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; padding: 16px 20px; background: #f0f1eb; }
.legal-services > div:nth-child(even), .legal-contact > div:nth-child(even) { background: #f6f6f1; }
.legal-services dt, .legal-contact dt { font-weight: 700; }
.legal-services dd, .legal-contact dd { margin: 0; overflow-wrap: anywhere; }
.legal-back { display: inline-block; margin-left: 284px; padding: 12px 0; font-size: 15px; }
.legal-skip { position: fixed; top: -100px; left: 20px; z-index: 100; padding: 12px 20px; background: var(--ink); color: #fff; }
.legal-skip:focus { top: 12px; }
@media (max-width: 980px) {
  .home-footer-main { gap: 32px; }
  .footer-links { gap: 24px; }
  .legal-layout { grid-template-columns: 180px minmax(0, 1fr); gap: 36px; }
  .legal-back { margin-left: 216px; }
  .legal-services > div { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 680px) {
  .home-footer-bottom { gap: 8px; }
  .footer-legal-links { gap: 12px 24px; }
  .legal-main { padding: 96px 20px 40px; }
  .legal-heading { margin-bottom: 24px; }
  .legal-heading p { font-size: 16px; }
  .legal-heading .legal-subtitle { font-size: 13px; }
  .legal-draft { padding: 20px; margin-bottom: 32px; }
  .legal-layout { grid-template-columns: 1fr; gap: 32px; }
  .legal-toc { position: static; }
  .legal-toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 18px; margin: 12px 0; }
  .legal-content section { margin-bottom: 36px; }
  .legal-content h2 { font-size: 23px; }
  .legal-contact > div { grid-template-columns: 1fr; gap: 4px; }
  .legal-back { margin-left: 0; }
}

/* HQ toggle: begin */
.generation-options { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
.generation-options .generation-custom-ratio { grid-column: 1 / -1; }
.generation-hq-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 42px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--muted); font: inherit; font-size: 12px; font-weight: 750; cursor: pointer; }
.generation-hq-track { display: inline-flex; align-items: center; width: 28px; height: 16px; padding: 3px; border-radius: 999px; background: #cbd0c7; }
.generation-hq-track > span { width: 10px; height: 10px; border-radius: 50%; background: #fff; transition: transform 150ms ease; }
.generation-hq-toggle[aria-checked="true"] { color: var(--accent); border-color: var(--accent); }
.generation-hq-toggle[aria-checked="true"] .generation-hq-track { background: var(--accent); }
.generation-hq-toggle[aria-checked="true"] .generation-hq-track > span { transform: translateX(12px); }
.generation-hq-toggle:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .generation-hq-track > span { transition: none; } }
/* HQ toggle: end */
