/* A product theme, scoped to the explicit Atelier entry; shared component geometry stays intact. */
html[data-recipe-product="atelier"]{--olive:#552246;--olive-dark:#411635;--accent:#552246;--accent-hover:#411635;--accent-soft:#f5eef4;--ink:#30212e;--paper:#fff;--bg:#fbf9fc;--text:#30212e;accent-color:#552246;caret-color:#552246}
html[data-recipe-product="atelier"] ::selection{background:#edcde4;color:#30212e}
html[data-recipe-product="atelier"] :focus-visible{outline:3px solid #aa4b18;outline-offset:3px}
html[data-recipe-product="atelier"] .atelier-brand{display:block;max-width:200px;width:180px;height:76px;object-fit:contain;background:white}
html[data-recipe-product="atelier"] #open-classes,html[data-recipe-product="atelier"] .notebook-routes,html[data-recipe-product="atelier"] .header-learning,html[data-recipe-product="atelier"] .memo-start-make,html[data-recipe-product="atelier"] .memo-discovery,html[data-recipe-product="atelier"] #memo-welcome>details,html[data-recipe-product="atelier"] .memo-festival,html[data-recipe-product="atelier"] .login-scene{display:none!important}
html[data-recipe-product="atelier"] .atelier-home-lead{font-size:clamp(23px,3vw,34px);font-weight:700;line-height:1.5;color:#552246;margin:20px 0 8px}
html[data-recipe-product="atelier"] .atelier-start-actions{display:flex;flex-wrap:wrap;gap:12px;margin:28px 0 18px}
html[data-recipe-product="atelier"] .atelier-start-actions button{font:inherit;font-weight:600;min-height:48px;padding:12px 20px;border:1px solid #552246;border-radius:10px;background:white;color:#552246;cursor:pointer}
html[data-recipe-product="atelier"] .atelier-start-actions [data-atelier-new]{background:#552246;color:white}
html[data-recipe-product="atelier"] .atelier-start-actions button:hover:not(:disabled){background:#f5eef4;color:#411635}
html[data-recipe-product="atelier"] .atelier-start-actions button:disabled{color:#6d646c;border-color:#cfc8cf;cursor:default}
html[data-recipe-product="atelier"] .atelier-empty{color:#63555f;font-size:14px}
html[data-recipe-product="atelier"] .atelier-help{font-size:12px;color:#552246;margin:0 12px;text-decoration:underline;text-underline-offset:4px}
html[data-recipe-product="atelier"] .introduction h1{font-size:clamp(28px,4vw,44px);line-height:1.6;color:#552246;max-width:13em}
@media(max-width:700px){html[data-recipe-product="atelier"] .atelier-start-actions{flex-direction:column}html[data-recipe-product="atelier"] .atelier-brand{width:142px;height:65px}html[data-recipe-product="atelier"] .atelier-help{margin:6px 12px}}
@font-face{font-family:AtelierDisplay;src:url('assets/branding/ZenMaruGothic-Atelier.ttf') format('truetype');font-weight:700;font-display:swap}
html[data-recipe-product="atelier"]{--action:#552246;--accent-ink:#411635;--ink-soft:#685664;--ink-mute:#685664;--muted:#685664;--rule:#ded2dd;--rule-soft:#eee8ed;--line:#ded2dd;--control-border:#a794a3;--focus:#aa4b18;--background:#fbf9fc;--foreground:#30212e;--default:#f5eef4;--default-foreground:#411635;--border:#ded2dd;--separator:#eee8ed;--field-border:#cbbaca;--field-border-focus:#552246;--field-border-hover:#a794a3;--field-hover:#faf6fa;--panel-warm:#fbf9fc;scrollbar-color:#a794a3 #fbf9fc}
html[data-recipe-product="atelier"] .introduction h1{font-family:AtelierDisplay,'Hiragino Sans',sans-serif;font-weight:700;text-wrap:balance}
html[data-recipe-product="atelier"] .account-panel button:hover{background:#f5eef4}
html[data-recipe-product="atelier"] .account-panel button.primary:hover{background:#411635;color:white}

/* Authoring controls use the established workspace geometry and Atelier palette. */
body .atelier-workflow { margin-block: 24px; min-width: 0; overflow-wrap: anywhere; }
.atelier-workflow h3 { margin-block: 24px 12px; }
.atelier-workflow input:not([type=checkbox]), .atelier-workflow textarea, .atelier-workflow select { width: 100%; min-width: 0; box-sizing: border-box; font: inherit; }
.atelier-workflow label { display: grid; gap: 8px; min-width: 0; margin-block: 12px; }
.atelier-workflow .atelier-proof { display: flex; align-items: start; gap: 12px; }
.atelier-proof input { flex: 0 0 auto; margin-top: 5px; }
.atelier-proof del, .atelier-proof ins { display: block; margin-block: 8px; text-decoration: none; }
.atelier-proof del::before { content: '原文：'; font-weight: 600; }
.atelier-proof ins::before { content: '修正案：'; font-weight: 600; }
.atelier-workflow button { margin-block: 8px; white-space: normal; }
.atelier-workflow [role=status] { min-height: 1.5em; }
@media (max-width: 700px) { .atelier-workflow input, .atelier-workflow textarea, .atelier-workflow select { font-size: 16px; } }

html[data-recipe-product="atelier"] .atelier-workflow input:not([type=checkbox]) { padding: 10px 12px; border: 1px solid var(--line, #ded2dd); border-radius: 8px; color: inherit; background: #fff; }

/* Comparison results contain several lines; the shared small-button height clips them. */
html[data-recipe-product="atelier"] .research button.research-hit { height: auto; min-height: 44px; padding: 14px; white-space: normal; color: var(--ink); background: #fff; border: 1px solid var(--line); align-items: start; }
html[data-recipe-product="atelier"] .research button.research-hit:hover { background: var(--accent-soft); border-color: var(--accent); }
