:root {
  --bg: #f7f7f2;
  --paper: #fdfdfa;
  --ink: #242722;
  --muted: #686d63;
  --line: #dedfd5;
  --accent: #d94627;
  --soft: #eeefe7;
  --radius: 12px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'PingFang SC', 'Noto Sans CJK SC', 'Microsoft YaHei', sans-serif; font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
::selection { background: #f1d4c7; color: var(--ink); }
button, input { font: inherit; color: inherit; }
button, input, a, summary { -webkit-tap-highlight-color: transparent; }
button, a, summary { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: default; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, pre:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
button svg { pointer-events: none; }
[hidden] { display: none !important; }
.ui-icon { display: inline-block; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; flex-shrink: 0; }
.skip { position: fixed; top: -100px; left: 20px; z-index: 40; padding: 10px 20px; background: var(--ink); color: white; border-radius: 6px; }
.skip:focus { top: 10px; }
.site-header { min-height: 94px; padding: 0 max(4.5%, calc((100% - 1360px)/2)); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font: 600 24px/1.2 Arial, sans-serif; letter-spacing: -.8px; white-space: nowrap; }
.brand small { display: block; font-size: 9px; letter-spacing: 2.3px; font-weight: 500; margin-top: 7px; }
.atlas-symbol { width: 36px; height: 36px; flex: 0 0 auto; color: currentColor; }
.site-header nav { display: flex; gap: 28px; align-self: stretch; align-items: stretch; }
.nav { background: transparent; border: 0; font-size: 13px; color: var(--muted); padding: 0 5px; position: relative; transition: color .18s; }
.nav:hover { color: var(--ink); }
.nav.active { color: var(--ink); font-weight: 600; }
.nav.active::after { content: ''; position: absolute; bottom: -1px; left: 5px; right: 5px; height: 2px; background: var(--accent); }
#saved-count { font: 11px monospace; margin-left: 5px; }
.prototype { font-size: 11px; color: var(--muted); display: flex; gap: 9px; align-items: center; }
.prototype i { width: 5px; height: 5px; background: var(--accent); border-radius: 50%; }
main { width: min(100%, 1488px); margin: auto; padding: 0 4.5%; }
.intro { display: grid; grid-template-columns: 1fr 1.12fr; gap: 7%; align-items: center; padding: 60px 0 66px; }
.eyebrow { font: 500 10px/1.6 Arial, sans-serif; letter-spacing: 2px; margin: 0 0 23px; display: flex; gap: 10px; align-items: center; }
.shortline { width: 24px; height: 2px; background: var(--accent); }
h1 { font-size: clamp(48px, 5.2vw, 78px); letter-spacing: -.05em; line-height: 1.2; font-weight: 600; margin: 0 0 26px; }
h1 em { font-style: normal; color: var(--accent); }
.intro-description { font-size: 15px; line-height: 1.95; color: var(--muted); margin: 0 0 28px; }
.textlink, .closing-link { font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; gap: 18px; min-height: 44px; }
.circle-plus { display: grid; place-content: center; width: 30px; height: 30px; border: 1px solid #a1a69a; border-radius: 50%; font-size: 19px; font-weight: 400; transition: transform .25s, color .25s, border-color .25s; }
.textlink:hover .circle-plus, .closing-link:hover .circle-plus { transform: rotate(90deg); color: var(--accent); border-color: var(--accent); }
.feature { position: relative; aspect-ratio: 1.38; width: 100%; border: 0; border-radius: var(--radius); overflow: hidden; background: #d9e2df; color: #fff; text-align: left; padding: 0; isolation: isolate; }
.feature > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 34%; transition: transform .75s cubic-bezier(.2,.7,.2,1); }
.feature::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, #142c3029, transparent 30%, #13251bd1); z-index: 0; }
.feature-top { position: absolute; top: 23px; left: 25px; right: 25px; display: flex; justify-content: space-between; font: 10px Arial; letter-spacing: 2px; z-index: 1; }
.feature-bottom { position: absolute; bottom: 24px; left: 27px; right: 25px; z-index: 1; }
.feature-category { font-size: 11px; letter-spacing: 1px; color: #ffffffe0; }
.feature h2 { font-size: clamp(26px, 2.6vw, 38px); line-height: 1.35; letter-spacing: -.8px; font-weight: 500; margin: 8px 0 18px; }
.feature-caption { font-size: 12px; display: flex; justify-content: space-between; align-items: center; }
.round-plus { width: 34px; height: 34px; border: 1px solid #ffffff80; border-radius: 50%; display: grid; place-content: center; font-size: 22px; transition: background .2s; }
.collection { border-top: 1px solid var(--line); padding-top: 34px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-heading .eyebrow { font-size: 10px; margin-bottom: 7px; color: var(--muted); }
.section-heading h2 { font-size: 30px; line-height: 1.4; letter-spacing: -.8px; margin: 0; font-weight: 600; }
.section-heading > p { font-size: 12px; color: var(--muted); margin: 0 0 4px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.filters { display: flex; gap: 6px; min-width: 0; }
.filter { padding: 10px 15px; min-height: 44px; border: 1px solid transparent; background: none; border-radius: 6px; font-size: 13px; white-space: nowrap; transition: background .18s, color .18s; }
.filter span { margin-left: 8px; font: 10px monospace; opacity: .7; }
.filter:hover { background: var(--soft); }
.filter.selected { background: var(--ink); color: #fff; }
.searchbox { display: flex; align-items: center; gap: 10px; width: 292px; min-height: 44px; color: var(--muted); padding: 0 0 0 18px; border-left: 1px solid var(--line); }
.searchbox input { flex: 1; width: 100%; min-width: 0; border: 0; background: none; color: var(--ink); font-size: 13px; min-height: 36px; }
.searchbox input::placeholder { color: var(--muted); }
.searchbox input::-webkit-search-cancel-button { display: none; }
.clear-search { display: grid; place-items: center; flex-shrink: 0; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: var(--soft); color: var(--muted); }
.clear-search .ui-icon { width: 14px; height: 14px; }
kbd { font: 10px monospace; border: 1px solid #cdd1c3; border-radius: 4px; padding: 2px 5px; white-space: nowrap; }
.result-meta { display: flex; justify-content: space-between; margin: 22px 0; font-size: 11px; color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 40px 24px; }
.card { min-width: 0; position: relative; animation: appear .4s ease both; }
.card-open { display: block; text-align: left; border: 0; background: none; padding: 0; width: 100%; border-radius: var(--radius); }
.card-media { position: relative; aspect-ratio: 3/2; overflow: hidden; border-radius: var(--radius); background: #ebece3; isolation: isolate; }
.card-media::after { content: ''; position: absolute; inset: 0; border: 1px solid #232a2410; border-radius: inherit; pointer-events: none; }
.card-media img { display: block; height: 100%; width: 100%; object-fit: cover; transition: transform .65s cubic-bezier(.2,.7,.2,1); }
.card[data-prompt="photo-memory-poster"] .card-media img, .card[data-prompt="character-identity-sheet"] .card-media img, .card[data-prompt="award-quality-frontend"] .card-media img, .card[data-prompt="restate-goal"] .card-media img { object-fit: contain; }
.card[data-prompt="picturebook-photo"] .card-media img { object-fit: contain; }
.card[data-prompt="picturebook-photo"] .card-media { background: #e4eceb; }
.card[data-prompt="photo-memory-poster"] .card-media { background: #f1eee7; }
.card[data-prompt="character-identity-sheet"] .card-media { background: #fbfaf7; }
.category-chip { position: absolute; top: 12px; left: 12px; background: #fffffff0; color: var(--ink); font-size: 10px; font-weight: 500; padding: 4px 9px; border: 1px solid #ffffff38; border-radius: 4px; backdrop-filter: blur(10px); }
.open-cue { position: absolute; bottom: 14px; right: 14px; background: #242722ed; color: white; padding: 8px 12px; border-radius: 5px; font-size: 11px; opacity: 0; transform: translateY(5px); transition: opacity .2s, transform .2s; }
.card-open:focus-visible .open-cue { opacity: 1; transform: none; }
.card-body { padding: 17px 0 0; }
.card h3 { font-size: 19px; letter-spacing: -.4px; font-weight: 600; margin: 0 0 7px; line-height: 1.5; }
.card-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; line-height: 1.85; color: var(--muted); margin: 0; min-height: 3.7em; }
.card-index { display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--muted); margin-top: 16px; padding-right: 52px; min-height: 44px; }
.card-number { font: 11px monospace; letter-spacing: .6px; color: #89907f; border-right: 1px solid #cfd3c7; padding-right: 10px; }
.save-card { position: absolute; right: 0; bottom: 0; border: 1px solid #d3d7ca; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--bg); color: #686e60; transition: background .18s, color .18s, border-color .18s; }
.save-card .ui-icon { width: 15px; height: 15px; }
.save-card[aria-pressed=true] { background: var(--ink); border-color: var(--ink); color: white; }
.save-card[aria-pressed=true] svg { fill: currentColor; }
.loading-state, .empty-state { grid-column: 1/-1; padding: 64px 20px; text-align: center; color: var(--muted); }
.empty-state button { min-height: 44px; padding: 8px 20px; border: 1px solid var(--line); background: var(--paper); border-radius: 6px; }
.empty { padding: 65px 20px; text-align: center; background: var(--soft); border-radius: var(--radius); }
.empty > span { font: 52px Georgia; color: #949b87; }
.empty h3 { margin: 14px 0; font-size: 22px; font-weight: 500; }
.empty p { color: var(--muted); margin-bottom: 24px; font-size: 14px; }
.closing { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); margin-top: 68px; padding: 50px 0 62px; }
.closing p { font-size: clamp(24px, 3vw, 38px); line-height: 1.5; font-weight: 500; letter-spacing: -.8px; margin: 0; }
.closing p span { color: var(--muted); }
footer { padding: 36px max(4.5%, calc((100% - 1360px)/2)); background: var(--ink); color: #f7f7f2; display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.footer-brand { font-size: 23px; width: max-content; }
.footer-brand .atlas-symbol { width: 30px; height: 30px; }
footer > p { font-size: 12px; text-align: right; color: #c6cbbd; margin: 0; align-self: center; }
footer > div { grid-column: 1/-1; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-top: 1px solid #ffffff26; padding-top: 22px; font-size: 11px; color: #c6cbbd; }
/* A quiet gallery for the image, a readable page for the prompt. */
dialog { border: 1px solid #ffffff50; padding: 0; width: min(1240px, 94vw); max-width: 1240px; max-height: 92dvh; border-radius: 14px; background: var(--paper); color: var(--ink); box-shadow: 0 30px 100px #0005; overflow: auto; scrollbar-width: thin; scrollbar-color: #c5c9ba transparent; overscroll-behavior: contain; }
dialog[open] { animation: room-in .25s cubic-bezier(.2,.7,.2,1); }
dialog::backdrop { background: #161c18b8; backdrop-filter: blur(10px); }
.dialog-bar { position: sticky; top: 0; z-index: 2; height: 72px; padding: 15px 28px; display: flex; justify-content: space-between; align-items: center; background: #fdfdfaef; backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.dialog-brand { display: inline-flex; gap: 9px; align-items: center; font: 600 22px/1.2 Arial,sans-serif; letter-spacing: -.8px; }
.dialog-brand .atlas-symbol { width: 29px; height: 29px; }
.dialog-section { font: 9px Arial; letter-spacing: 2.2px; color: var(--muted); margin-left: auto; margin-right: 28px; }
.icon-button { padding: 0; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid #d4d7cb; border-radius: 50%; background: transparent; transition: background .18s, border-color .18s; }
.icon-button .ui-icon { width: 18px; height: 18px; }
.detail-layout { display: grid; grid-template-columns: minmax(0,1.08fr) minmax(0,1fr); gap: 0; align-items: start; }
.detail-visual { padding: 28px; position: sticky; top: 72px; min-width: 0; }
.art-stage { position: relative; border-radius: 8px; padding: 36px 18px; isolation: isolate; overflow: hidden; background: #eeeee7; }
.detail-visual img { display: block; width: 100%; height: auto; max-height: min(54vh, 530px); object-fit: contain; border-radius: 2px; filter: drop-shadow(0 6px 10px #00000014); }
.art-edition, .art-label { position: absolute; color: #757d6c; font: 9px/1.5 Arial; letter-spacing: 1.8px; }
.art-edition { top: 12px; left: 17px; }
.art-label { bottom: 12px; right: 17px; }
.image-note { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 12px; padding: 17px 0 13px; border-bottom: 1px solid var(--line); }
.image-note a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); text-underline-offset: 4px; }
.image-note .ui-icon { width: 14px; height: 14px; }
.disclaimer { color: var(--muted); font-size: 12px; line-height: 1.8; margin: 13px 0 0; }
.example-view-tabs, .prompt-view-tabs { display: flex; gap: 5px; flex-wrap: wrap; }
.example-view-tabs { margin-top: 14px; }
.prompt-view-tabs { margin: 18px 0 14px; }
.example-view-button, .prompt-mode-button { background: transparent; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); font-size: 12px; padding: 8px 12px; min-height: 38px; transition: background .18s, color .18s; }
.example-view-button[aria-pressed=true], .prompt-mode-button[aria-pressed=true] { background: var(--ink); border-color: var(--ink); color: #fff; }
.text-example { white-space: pre-wrap; overflow-wrap: anywhere; font-family: inherit; font-size: 13px; line-height: 1.9; border-top: 1px solid var(--line); padding-top: 16px; color: var(--muted); }
.detail-content { padding: 32px 32px 30px; min-width: 0; border-left: 1px solid var(--line); }
.detail-content > .eyebrow { color: var(--accent); font-size: 10px; letter-spacing: 1.8px; margin: 0 0 14px; }
.detail-content h2 { font-size: clamp(28px, 2.8vw, 38px); font-weight: 600; letter-spacing: -1px; line-height: 1.4; margin: 0 0 16px; text-wrap: pretty; }
.detail-summary { font-size: 14px; color: var(--muted); line-height: 1.9; margin: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }
.tags span { font-size: 11px; padding: 4px 9px; background: var(--soft); color: #5d6553; border-radius: 4px; }
.detail-divider { height: 1px; background: var(--line); margin: 27px 0; }
.prompt-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.prompt-heading h3 { font-size: 15px; margin: 0; display: flex; align-items: center; font-weight: 500; }
.section-number { font: 11px monospace; color: #7c846f; margin-right: 12px; }
.sample-label { font-size: 10px; color: var(--muted); white-space: nowrap; }
.prompt-note, .local-note { font-size: 12px; color: var(--muted); line-height: 1.8; }
.prompt-note { margin: 9px 0 18px; }
.promptbox { background: #f6f7f1; border: 1px solid #e2e5d8; border-radius: 7px; padding: 18px 20px; margin: 0 0 24px; }
.prompt-preview { font: 14px/2 'PingFang SC','Noto Sans CJK SC','Microsoft YaHei',sans-serif; white-space: pre-wrap; overflow-wrap: anywhere; color: #343c2e; max-height: 350px; overflow: auto; scrollbar-width: thin; scrollbar-color: #c2c9b7 transparent; }
summary { list-style: none; font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: space-between; min-height: 48px; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary > span:last-child { transition: transform .18s; }
details[open] summary > span:last-child { transform: rotate(45deg); }
.detail-content details { border-top: 1px solid var(--line); padding: 4px 0; }
.detail-content summary > span:first-child { display: inline-flex; align-items: center; }
.detail-content details[open] summary > span:first-child, .detail-content details[open] summary .section-number { transform: none; }
.detail-content .variable-panel { border: 1px solid var(--line); padding: 4px 14px 15px; border-radius: 7px; background: #f4f5ee; margin-bottom: 18px; }
.variable-panel .prompt-note { margin: 0 0 12px; }
.variable-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.variable-field { font-size: 12px; color: var(--muted); }
.variable-field input { display: block; width: 100%; min-width: 0; min-height: 44px; margin-top: 7px; background: var(--paper); border: 1px solid #cfd4c4; border-radius: 5px; padding: 9px; font-size: 13px; }
.usage-steps { padding-left: 24px; font-size: 13px; line-height: 1.9; color: var(--muted); margin: 5px 0 20px; }
.usage-step h4 { font-size: 13px; font-weight: 500; color: var(--ink); margin: 14px 0 5px; }
.usage-step p { margin: 0; }
.tips-list { font-size: 13px; line-height: 1.9; padding-left: 24px; color: var(--muted); margin: 5px 0 20px; }
.tips-list li { margin: 10px 0; }
.local-note { margin: 20px 0 0; font-size: 11px; }
.detail-actions { position: sticky; bottom: 0; background: #fdfdfaf5; backdrop-filter: blur(18px); border-top: 1px solid var(--line); padding: 15px 28px; display: flex; justify-content: space-between; gap: 24px; z-index: 2; }
.detail-pagination { display: flex; align-items: center; gap: 12px; }
.detail-pagination > span { font: 11px monospace; color: var(--muted); white-space: nowrap; min-width: 52px; text-align: center; }
.detail-pagination .icon-button { width: 38px; height: 38px; }
.detail-pagination .ui-icon { width: 16px; height: 16px; }
.detail-action-buttons { display: flex; gap: 8px; align-items: center; }
.primary, .secondary { min-height: 44px; border-radius: 6px; padding: 11px 18px; font-size: 13px; font-weight: 500; transition: background .18s, border-color .18s; }
.primary { background: var(--ink); color: white; border: 1px solid var(--ink); }
.secondary { background: transparent; border: 1px solid #cdd2c3; }
.detail-action-buttons .primary { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding-left: 22px; padding-right: 22px; }
.detail-action-buttons .primary .ui-icon { width: 15px; height: 15px; }
#detail-favorite[aria-pressed=true] { color: var(--accent); border-color: #e9bcaa; background: #fcf0e9; }
.detail-feedback { position: absolute; bottom: calc(100% + 12px); left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 9px; width: max-content; max-width: calc(100% - 32px); padding: 12px 17px; border-radius: 7px; background: var(--ink); color: #fff; box-shadow: 0 4px 22px #0002; font-size: 13px; pointer-events: none; }
.detail-feedback.error, .toast.error { background: #96432c; }
.toast-container { position: fixed; left: 50%; bottom: max(24px,env(safe-area-inset-bottom)); z-index: 30; display: grid; gap: 8px; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 32px); pointer-events: none; }
.toast { display: flex; align-items: center; gap: 9px; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 7px; box-shadow: 0 4px 24px #0002; font-size: 13px; animation: appear .2s ease both; }
@keyframes appear { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes room-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (hover:hover) and (pointer:fine) {
  .feature:hover > img { transform: scale(1.025); }
  .feature:hover .round-plus { background: #ffffff20; }
  .card-open:hover img { transform: scale(1.025); }
  .card-open:hover .open-cue { opacity: 1; transform: none; }
  .save-card:hover { border-color: var(--accent); color: var(--accent); }
  .save-card[aria-pressed=true]:hover { color: white; background: #414a37; border-color: #414a37; }
  .icon-button:hover, .secondary:hover { background: var(--soft); border-color: #b6bdab; }
  .primary:hover { background: #414a37; border-color: #414a37; }
  .image-note a:hover { text-decoration: underline; }
}
@media (max-width:1100px) {
  .intro { gap: 5%; padding: 44px 0 50px; }
  .toolbar { flex-wrap: wrap; gap: 12px; }
  .filters { flex: 1; }
  .searchbox { width: 260px; }
  .filter { padding: 10px 12px; }
  .grid { gap: 34px 20px; }
  .card h3 { font-size: 17px; }
  .detail-content { padding: 28px 24px; }
  .detail-visual { padding: 22px; }
}
@media (max-width:900px) {
  .prototype { display: none; }
  .intro-description { font-size: 14px; }
  .filter span { display: none; }
  .searchbox { width: 240px; }
  .detail-actions { gap: 16px; padding: 14px 22px; }
  .detail-actions .secondary { padding: 11px 12px; }
  .detail-actions .primary { padding: 11px 16px; }
}
@media (max-width:700px) {
  .site-header { min-height: 76px; padding: 0 5%; gap: 12px; }
  .brand { font-size: 20px; gap: 8px; }
  .brand small { font-size: 8px; letter-spacing: 1.8px; margin-top: 6px; }
  .atlas-symbol { width: 30px; height: 30px; }
  .site-header nav { gap: 12px; }
  .nav { font-size: 12px; padding: 0 2px; }
  .nav.active::after { left: 2px; right: 2px; }
  #saved-count { font-size: 10px; margin-left: 3px; }
  main { padding: 0 5%; }
  .intro { grid-template-columns: 1fr; gap: 25px; padding: 32px 0 34px; }
  .intro .eyebrow { font-size: 9px; letter-spacing: 1.5px; margin-bottom: 16px; }
  h1 { font-size: 48px; letter-spacing: -2px; margin-bottom: 18px; }
  .intro-description { font-size: 14px; line-height: 1.85; margin-bottom: 16px; }
  .intro-description br { display: none; }
  .feature { aspect-ratio: 1.45; }
  .feature-top { top: 18px; left: 20px; right: 20px; font-size: 9px; letter-spacing: 1.8px; }
  .feature-bottom { bottom: 18px; left: 20px; right: 20px; }
  .feature h2 { font-size: 28px; margin: 7px 0 12px; }
  .feature-category { font-size: 10px; }
  .feature-caption { font-size: 11px; }
  .round-plus { width: 30px; height: 30px; }
  .collection { padding-top: 26px; }
  .section-heading { margin-bottom: 20px; align-items: center; gap: 18px; }
  .section-heading h2 { font-size: 26px; }
  .section-heading .eyebrow { font-size: 9px; }
  .section-heading > p { font-size: 11px; max-width: 130px; line-height: 1.7; margin: 0; }
  .toolbar { gap: 12px; padding: 12px 0; }
  .filters { flex: 0 0 100%; gap: 4px; }
  .filter { flex: 1; padding: 10px 5px; font-size: 12px; min-height: 44px; }
  .searchbox { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid #d6daca; border-radius: 6px; background: #fafaf5; gap: 8px; }
  .searchbox:focus-within { border-color: #858d77; }
  .searchbox input { font-size: 16px; }
  .searchbox kbd { display: none; }
  .result-meta { font-size: 11px; margin: 20px 0; }
  .result-meta > span:last-child { display: none; }
  .grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px 14px; }
  .card-media { aspect-ratio: 4/3; border-radius: 8px; }
  .category-chip { top: 8px; left: 8px; font-size: 10px; padding: 3px 6px; }
  .card-body { padding: 12px 0 0; }
  .card h3 { font-size: 15px; min-height: 3em; letter-spacing: -.25px; margin-bottom: 6px; }
  .card-desc { font-size: 13px; line-height: 1.85; }
  .card-index { gap: 7px; font-size: 10px; margin-top: 10px; min-height: 44px; padding-right: 48px; }
  .card-number { font-size: 10px; padding-right: 7px; }
  .save-card { width: 44px; height: 44px; }
  .open-cue { display: none; }
  .closing { margin-top: 40px; padding: 30px 0 38px; align-items: start; gap: 12px; }
  .closing p { font-size: 23px; letter-spacing: -.4px; }
  .closing-link { font-size: 11px; gap: 8px; white-space: nowrap; }
  .closing-link .circle-plus { width: 25px; height: 25px; font-size: 17px; }
  footer { padding: 28px 5%; grid-template-columns: 1fr; gap: 16px; }
  .footer-brand { font-size: 22px; }
  footer > p { text-align: left; font-size: 12px; }
  footer > div { font-size: 10px; padding-top: 18px; }
  dialog { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; border: 0; border-radius: 0; margin: 0; }
  .dialog-bar { height: 64px; padding: 12px 20px; }
  .dialog-brand { font-size: 21px; }
  .dialog-brand .atlas-symbol { width: 28px; height: 28px; }
  .dialog-section { display: none; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-visual { position: static; padding: 20px 20px 22px; }
  .art-stage { padding: 30px 12px; }
  .detail-visual img { max-height: 42dvh; }
  .art-edition, .art-label { font-size: 8px; letter-spacing: 1.5px; }
  .image-note { font-size: 11px; padding-top: 14px; }
  .disclaimer { font-size: 12px; line-height: 1.8; }
  .detail-content { padding: 27px 22px 30px; border-left: 0; border-top: 1px solid var(--line); }
  .detail-content h2 { font-size: 30px; letter-spacing: -.8px; }
  .detail-summary { font-size: 14px; }
  .detail-content > .eyebrow { margin-bottom: 10px; }
  .detail-divider { margin: 24px 0; }
  .variable-fields { grid-template-columns: 1fr; }
  .variable-field input { font-size: 16px; }
  .variable-panel .prompt-note { font-size: 12px; }
  .prompt-preview { max-height: 330px; padding: 16px; font-size: 14px; }
  .usage-steps, .tips-list { font-size: 14px; }
  .usage-step h4 { font-size: 14px; }
  .detail-actions { flex-wrap: wrap; padding: 10px 16px; padding-bottom: max(12px,env(safe-area-inset-bottom)); gap: 9px; }
  .detail-pagination { justify-content: center; flex: 1; gap: 10px; }
  .detail-pagination .icon-button { width: 36px; height: 36px; }
  .detail-action-buttons { display: grid; grid-template-columns: 1fr 1fr 1.35fr; width: 100%; gap: 8px; }
  .detail-actions .primary, .detail-actions .secondary { font-size: 12px; padding: 10px 8px; min-width: 0; white-space: nowrap; min-height: 44px; }
  .detail-action-buttons .primary .ui-icon { display: none; }
  .detail-feedback { font-size: 12px; bottom: calc(100% + 10px); }
}
@media (max-width:380px) {
  .site-header { gap: 8px; }
  .brand { font-size: 18px; gap: 6px; }
  .site-header .atlas-symbol { width: 26px; height: 26px; }
  .site-header nav { gap: 9px; }
  .nav { font-size: 11px; padding: 0; }
  .brand small { font-size: 7px; }
  h1 { font-size: 44px; }
  .card-index { gap: 5px; font-size: 9px; }
  .card-number { padding-right: 5px; }
  .closing { display: block; }
  .closing-link { margin-top: 12px; }
}
@media (max-width:340px) {
  .grid { grid-template-columns: 1fr; }
  .card-media { aspect-ratio: 3/2; }
  .card h3 { min-height: 0; font-size: 17px; }
  .card-desc { font-size: 13px; }
  .card-index { font-size: 11px; }
  .filter { font-size: 11px; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
