:root { color-scheme:dark; --bg:#171714; --surface:#20201b; --line:#37362c; --text:#f1eee5; --muted:#aaa99b; --gold:#d4bc87; --font:-apple-system,BlinkMacSystemFont,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",Arial,sans-serif; }
* { box-sizing:border-box; }
body { margin:0; background:var(--bg); color:var(--text); font-family:var(--font); font-size:15px; line-height:1.6; -webkit-font-smoothing:antialiased; }
button,input,select { font:inherit; }
a { color:inherit; text-decoration:none; }
button,a,input,select { -webkit-tap-highlight-color:transparent; }
button,a,select { touch-action:manipulation; }
button { cursor:pointer; }
button:disabled { cursor:not-allowed; color:var(--muted); border-color:var(--line); background:transparent; }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible { outline:2px solid var(--gold); outline-offset:4px; }
h1,h2,h3,p { margin:0; }
h1,h2,h3 { font-weight:600; line-height:1.4; }
h1 { font-size:30px; letter-spacing:-.5px; }
h1:focus,main:focus { outline:none; }
h2 { font-size:20px; }
h3 { font-size:16px; }
img { display:block; max-width:100%; }
svg { width:22px; height:22px; flex-shrink:0; }
[hidden] { display:none !important; }
.shell { max-width:980px; margin:auto; padding:0 30px 104px; }
.topbar { height:76px; display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid var(--line); }
.brand { display:flex; align-items:center; gap:9px; font-size:18px; font-weight:600; }
.brand-dot { width:5px; height:5px; background:var(--gold); border-radius:50%; }
.local-label { color:var(--muted); font-size:12px; }
.local-label i { display:none; }
.hero { padding:22px 0 24px; border-bottom:1px solid var(--line); }
.hero-visual { position:relative; isolation:isolate; overflow:hidden; border-radius:12px; min-height:270px; display:flex; align-items:center; background:#121310; }
.hero-artwork { position:absolute; height:100%; width:auto; max-width:none; right:0; top:0; pointer-events:none; mask-image:linear-gradient(to right,transparent,#000 28%); }
.hero-copy { position:relative; z-index:1; width:55%; padding:30px; }
.hero-copy h1 { font-size:34px; line-height:1.4; }
.hero-copy p { color:var(--muted); font-size:14px; margin-top:14px; }
.button { display:inline-flex; align-items:center; justify-content:center; gap:12px; min-height:48px; padding:12px 20px; border:1px solid #686049; background:var(--surface); color:var(--text); border-radius:10px; font-size:15px; font-weight:500; }
.primary { background:var(--gold); border-color:var(--gold); color:#25251c; font-weight:600; }
.primary:hover { background:#e0c995; }
.hero-actions { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:14px; }
.hero-actions .button { justify-content:space-between; min-height:56px; font-size:16px; padding:14px 20px; }
.hero-actions svg { width:18px; }
.hero-actions .button:not(.primary):hover { background:#2b2b23; }
.section { margin:25px 0; }
.section-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; }
.section-heading>a { display:flex; align-items:center; gap:6px; color:var(--gold); font-size:13px; min-height:44px; white-space:nowrap; }
.section-heading>a svg { width:16px; }
.recipe-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.recipe-card { min-width:0; display:flex; align-items:center; gap:14px; padding:12px; border-radius:10px; background:var(--surface); transition:background .15s; }
.recipe-card:hover { background:#2b2b23; }
.card-art { width:70px; height:82px; flex-shrink:0; border-radius:6px; overflow:hidden; background:#141610; }
.card-art img { width:100%; height:100%; object-fit:cover; }
.card-copy { flex:1; min-width:0; }
.card-copy h3 { font-size:16px; overflow-wrap:anywhere; }
.english { font-size:11px; color:var(--muted); line-height:1.4; margin-top:3px; overflow-wrap:anywhere; }
.english:empty { display:none; }
.card-caption { color:#c5bca5; font-size:12px; margin-top:7px; }
.card-action { flex-shrink:0; font-size:12px; color:var(--gold); border:1px solid #635a42; border-radius:6px; padding:9px 10px; white-space:nowrap; }
.coming-soon { display:flex; align-items:center; justify-content:space-between; gap:16px; border-top:1px solid var(--line); margin-top:28px; padding-top:20px; font-size:13px; color:var(--muted); }
.fate-entry { display:flex; width:100%; gap:12px; margin-top:12px; padding:12px 16px; text-align:left; }
.fate-entry-symbol { font-size:24px; font-weight:400; line-height:1; }
.fate-entry-copy { flex:1; display:grid; gap:2px; }
.fate-entry-copy strong { font-size:16px; line-height:1.4; letter-spacing:.3px; }
.fate-entry-copy small { font-size:11px; line-height:1.4; font-weight:400; color:#4b412d; }
.fate-entry>svg { width:18px; height:18px; flex-shrink:0; }
.quiz-shell { max-width:560px; margin:0 auto; padding:20px 0; }
.quiz-meta { display:flex; justify-content:space-between; gap:12px; color:var(--muted); font-size:13px; }
.quiz-progress { display:block; appearance:none; border:0; width:100%; height:4px; margin:12px 0 24px; background:#323128; border-radius:4px; overflow:hidden; }
.quiz-progress::-webkit-progress-bar { background:#323128; }
.quiz-progress::-webkit-progress-value { background:var(--gold); }
.quiz-progress::-moz-progress-bar { background:var(--gold); }
.quiz-shell h1 { font-size:28px; overflow-wrap:anywhere; }
.quiz-shell:not(.quiz-result) h1 { font-size:22px; }
.quiz-intro { font-size:14px; color:var(--muted); margin-top:10px; }
.quiz-shell:not(.quiz-result) .quiz-intro { font-size:13px; margin-top:8px; }
.quiz-options { display:grid; gap:8px; border:0; margin:20px 0; padding:0; min-width:0; }
.quiz-option { display:flex; align-items:center; gap:10px; min-height:48px; padding:12px 14px; border:1px solid #454237; border-radius:10px; background:var(--surface); cursor:pointer; }
.quiz-option:hover { border-color:#9c8961; }
.quiz-option.is-selected { border-color:var(--gold); color:#f3e0b5; background:#343025; }
.quiz-option:focus-within { outline:2px solid var(--gold); outline-offset:3px; }
.zodiac-options { grid-template-columns:repeat(3,minmax(0,1fr)); }
.zodiac-options .quiz-option { justify-content:center; gap:7px; padding:10px 6px; min-height:44px; }
.zodiac-options .quiz-option:last-child { grid-column:1/-1; }
.zodiac-options .quiz-option span { font-size:13px; }
.color-swatch { width:18px; height:18px; flex-shrink:0; border-radius:50%; border:1px solid #ffffff30; background:#d99daa; }
.color-swatch[data-color="gold"] { background:#d6aa64; }
.color-swatch[data-color="blue"] { background:#729caf; }
.color-swatch[data-color="green"] { background:#8eaa84; }
.color-swatch[data-color="red"] { background:#9f5260; }
.quiz-option input { appearance:auto; width:16px; height:16px; flex:0 0 16px; margin:0; accent-color:var(--gold); }
.quiz-option span { font-size:14px; }
.quiz-options:disabled .quiz-option { opacity:.65; cursor:wait; }
.quiz-actions { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-top:22px; }
.quiz-actions .button { min-width:0; padding:12px 10px; }
.quiz-hint,.quiz-footnote { color:var(--muted); font-size:12px; margin-top:16px; }
.quiz-footnote { margin-top:28px; font-size:11px; }
.quiz-message { margin-top:18px; }
.quiz-result { text-align:center; }
.answer-page { position:relative; border:1px solid #5b5038; border-radius:3px 14px 14px 3px; padding:30px 28px 24px; background:linear-gradient(100deg,#29251c 0,#201f19 4%,#22211c 95%,#302c21 100%); box-shadow:inset 5px 0 #15151066,0 12px 36px #00000018; }
.answer-page .quiz-eyebrow { font-size:12px; letter-spacing:4px; }
.answer-mark { display:block; color:var(--gold); font-size:28px; margin:22px 0 16px; }
.answer-page h1 { max-width:400px; margin:0 auto; font-size:27px; font-weight:500; line-height:1.8; text-wrap:balance; }
.answer-rule { display:block; height:1px; width:30px; background:#736344; margin:26px auto 16px; }
.answer-caption { color:var(--muted); font-size:11px; letter-spacing:3px; }
.fate-drink { padding-top:30px; animation:fate-reveal .65s .45s both; }
.fate-drink h2 { font-size:25px; }
.fate-recipe-button { width:100%; margin-top:24px; }
.fate-secondary { margin-top:12px; }
.quiz-result-tags { margin-top:16px; }
@keyframes fate-reveal { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }
@media (prefers-reduced-motion:reduce) { .fate-drink { animation:none; } }
.quiz-eyebrow { color:var(--gold); font-size:13px; letter-spacing:2px; margin-bottom:8px; }
.quiz-result-art { position:relative; width:180px; margin:18px auto; border-radius:12px; overflow:hidden; background:#191a15; }
.quiz-result-art img { width:100%; height:220px; object-fit:contain; }
.quiz-result-art>span { position:absolute; bottom:8px; left:0; right:0; color:var(--muted); font-size:10px; }
.quiz-result-tags { justify-content:center; }
.quiz-reason { margin:16px 0 0; color:var(--text); font-size:15px; line-height:1.8; }
.quiz-text-button { border:0; background:transparent; color:var(--muted); min-height:44px; margin-top:10px; padding:10px 18px; text-decoration:underline; text-underline-offset:4px; }
@media (max-width:600px) {
  .fate-entry { padding:12px 15px; gap:10px; }
  .answer-page { padding:24px 22px 22px; }
  .answer-page h1 { font-size:24px; }
  .quiz-shell { padding-top:8px; }
  .quiz-shell h1 { font-size:25px; }
  .quiz-shell:not(.quiz-result) h1 { font-size:20px; }
  .quiz-progress { margin-bottom:22px; }
  .quiz-result-art { width:150px; }
  .quiz-result-art img { height:184px; }
}
.page-heading { margin:28px 0 22px; }
.page-heading p { color:var(--muted); font-size:14px; margin-top:7px; }
.library-tabs { display:flex; gap:8px; padding:4px; background:var(--surface); border-radius:10px; margin-bottom:18px; }
.library-tabs a { display:flex; justify-content:center; align-items:center; flex:1; gap:7px; padding:10px; color:var(--muted); border-radius:7px; min-height:45px; }
.library-tabs a[aria-current] { color:var(--gold); background:#353228; font-weight:500; }
.library-tabs span { font-size:11px; opacity:.8; }
.filters { display:grid; grid-template-columns:minmax(0,1fr) 130px; gap:10px; margin:18px 0 12px; }
.search-field { display:flex; align-items:center; gap:10px; padding:0 12px; background:var(--surface); border:1px solid #454337; border-radius:8px; min-width:0; }
.search-field svg { width:18px; color:var(--muted); }
input { background:transparent; border:0; color:var(--text); min-width:0; width:100%; height:46px; font-size:16px; }
input::placeholder { color:#aaa99b; font-size:13px; }
.select-field { min-width:0; }
select { width:100%; height:48px; background:var(--surface); border:1px solid #454337; border-radius:8px; color:var(--text); padding:0 10px; font-size:13px; }
.section-note { color:var(--muted); font-size:12px; margin-bottom:12px; }
.result-count { color:var(--muted); font-size:12px; margin:16px 0 10px; }
.back-link { display:inline-flex; align-items:center; color:var(--gold); font-size:14px; min-height:48px; margin:10px 0; }
.detail-hero { display:flex; align-items:flex-start; gap:24px; }
.detail-art { position:relative; flex:0 0 142px; overflow:hidden; border-radius:9px; }
.detail-art img { width:100%; height:178px; object-fit:cover; }
.detail-art>span { position:absolute; bottom:6px; left:0; width:100%; text-align:center; font-size:9px; color:#c7c7b7; }
.detail-intro { min-width:0; flex:1; }
.detail-label { color:var(--muted); font-size:12px; }
.detail-intro h1 { margin:5px 0 3px; overflow-wrap:anywhere; }
.detail-english { color:var(--muted); font-size:12px; }
.detail-summary { color:#cfccbd; font-size:14px; margin:12px 0; }
.tags { display:flex; flex-wrap:wrap; gap:6px; }
.tags span { font-size:11px; color:#c5c4b4; background:#2c2c24; padding:3px 8px; border-radius:5px; }
.facts { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:15px; background:var(--surface); border-radius:9px; padding:18px; margin:24px 0 0; }
.facts dt { font-size:12px; color:var(--muted); }
.facts dd { margin:4px 0 0; font-size:14px; overflow-wrap:anywhere; }
.detail-columns { display:grid; grid-template-columns:1fr 1fr; gap:36px; }
.recipe-section { padding:28px 0; }
.ingredients { list-style:none; padding:0; margin:12px 0 0; }
.ingredients li { display:flex; align-items:baseline; justify-content:space-between; gap:15px; padding:12px 0; border-bottom:1px solid var(--line); font-size:14px; }
.ingredients li>span { overflow-wrap:anywhere; }
.ingredients strong { font-weight:500; white-space:nowrap; color:var(--gold); }
.ingredients strong span { color:var(--muted); font-size:12px; }
.ingredients small { display:inline-block; font-size:10px; margin-left:7px; color:var(--muted); }
.tools { margin-top:20px; font-size:13px; }
.tools h3 { font-size:14px; margin-bottom:6px; }
.steps { list-style:none; padding:0; margin:12px 0 0; }
.steps li { display:flex; align-items:flex-start; gap:14px; padding:10px 0; }
.steps span { color:var(--gold); font-size:17px; font-weight:500; }
.steps p { font-size:14px; line-height:1.85; }
.source-note { padding:20px; border-radius:9px; background:var(--surface); overflow-wrap:anywhere; }
.source-note h2 { font-size:16px; margin-bottom:9px; }
.source-note p { font-size:13px; }
.source-note small { display:block; color:var(--muted); font-size:11px; margin-top:6px; }
.source-link { display:inline-flex; align-items:center; color:var(--gold); font-size:13px; min-height:44px; }
.save-notice { text-align:center; margin:26px 0; }
.save-notice p { color:var(--muted); font-size:12px; margin-top:10px; }
.notice { background:var(--surface); padding:15px; font-size:13px; color:var(--muted); border-radius:8px; }
.material-section { margin:24px 0; }
.material-section h2 { font-size:17px; margin-bottom:10px; }
.material-grid { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.pantry-overview { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:16px; background:var(--surface); border:1px solid var(--line); border-radius:10px; }
.pantry-overview strong { font-size:15px; }
.pantry-overview strong span { color:var(--gold); margin-left:6px; }
.pantry-overview p,.inspiration-pantry>p { font-size:12px; color:var(--muted); }
.pantry-overview .button { font-size:12px; padding:10px 12px; white-space:nowrap; }
.pantry-tabs { display:flex; flex-wrap:wrap; gap:8px; margin:14px 0 10px; }
.pantry-tabs a { display:flex; align-items:center; justify-content:center; min-height:44px; padding:8px 14px; border:1px solid var(--line); border-radius:8px; font-size:13px; color:var(--muted); }
.pantry-tabs a[aria-current] { background:#353025; color:var(--gold); border-color:#786744; }
.pantry-status { color:var(--muted); font-size:12px; min-height:20px; }
.pantry-error { padding:12px; margin-top:10px; border:1px solid #795044; border-radius:8px; }
.pantry-error p { font-size:13px; color:#e8ada0; margin-bottom:10px; }
.pantry-error .button { font-size:13px; }
.pantry-fields { border:0; padding:0; margin:0; min-width:0; }
.selectable-material { cursor:pointer; gap:12px; min-height:64px; }
.selectable-material.is-selected { border-color:#887344; background:#2d291f; }
.selectable-material:focus-within { outline:2px solid var(--gold); outline-offset:3px; }
.selectable-material input { width:17px; height:17px; flex:0 0 17px; accent-color:var(--gold); }
.material-copy { flex:1; min-width:0; }
.material-copy strong { display:block; font-size:14px; }
.material-copy>span { display:block; font-size:11px; color:var(--muted); overflow-wrap:anywhere; }
.material-choice { font-size:12px; color:var(--gold); flex-shrink:0; }
.pantry-fields:disabled .selectable-material { opacity:.65; cursor:wait; }
.inspiration-pantry a,.pantry-detail a { color:var(--gold); }
.inspiration-pantry>p>a { display:inline-block; margin-left:10px; min-height:32px; line-height:32px; }
.match-badge { font-size:11px; color:var(--gold); margin-top:8px; }
.is-ready { color:#b9c89e; }
.match-names { font-size:11px; color:var(--muted); overflow-wrap:anywhere; margin-top:2px; }
.pantry-detail { padding:16px; margin-top:18px; background:var(--surface); border:1px solid var(--line); border-radius:10px; font-size:13px; }
.pantry-detail p { margin:6px 0; color:var(--muted); }
.pantry-detail a { display:inline-flex; align-items:center; min-height:44px; }
.ingredients .ingredient-availability { display:block; font-size:11px; margin:4px 0 0; }
@media(max-width:420px) { .pantry-overview { align-items:flex-start; flex-direction:column; } .pantry-overview .button { width:100%; } .pantry-tabs { gap:6px; } .pantry-tabs a { padding:8px 11px; } }
.material { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; padding:16px; border-radius:8px; background:var(--surface); min-width:0; }
.material h3 { font-size:15px; }
.material p { font-size:12px; color:var(--muted); overflow-wrap:anywhere; margin-top:3px; }
.special { color:var(--gold); font-size:10px; white-space:nowrap; }
.state { display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; padding:45px 16px; min-height:250px; }
.state>svg { width:32px; height:32px; color:var(--muted); margin-bottom:20px; }
.state h2 { font-size:21px; }
.state p { max-width:400px; color:var(--muted); font-size:14px; margin:12px 0 24px; }
.profile-panel { border-radius:10px; padding:24px; background:var(--surface); }
.status-pill { display:inline-block; color:var(--muted); font-size:12px; }
.profile-panel h2 { margin:12px 0; }
.profile-panel p { color:var(--muted); font-size:13px; max-width:580px; }
.stats { display:grid; grid-template-columns:repeat(3,1fr); margin:24px 0 16px; gap:12px; }
.stats>div { display:flex; flex-direction:column; }
.stats strong { font-weight:500; font-size:28px; color:var(--text); }
.stats span { color:var(--muted); font-size:12px; }
.profile-links { margin-top:18px; }
.profile-links a { display:flex; justify-content:space-between; padding:17px 0; border-bottom:1px solid var(--line); font-size:14px; }
.profile-links svg { width:18px; color:var(--gold); }
.explanation { padding-left:20px; color:var(--muted); font-size:13px; }
.explanation li { margin:9px 0; }
.muted { color:var(--muted); font-size:12px; }
.footnote { text-align:center; font-size:10px; line-height:1.9; color:#99988a; margin:30px 0 0; }
.bottom-nav { position:fixed; z-index:5; bottom:0; left:50%; transform:translateX(-50%); width:min(100%,600px); border:1px solid var(--line); border-bottom:0; border-radius:14px 14px 0 0; background:#20201b; display:grid; grid-template-columns:repeat(4,1fr); padding:8px 8px max(8px,env(safe-area-inset-bottom)); }
.bottom-nav a { display:flex; align-items:center; flex-direction:column; gap:4px; color:#b2b0a2; font-size:11px; padding:5px 0; min-height:48px; border-radius:8px; }
.bottom-nav svg { width:20px; height:20px; }
.bottom-nav a[aria-current] { color:var(--gold); background:#353228; }
.connection-warning { position:sticky; top:0; z-index:6; display:flex; align-items:center; justify-content:space-between; gap:10px; background:#5a3629; padding:12px 16px; font-size:12px; }
.connection-warning button { white-space:nowrap; color:#fff1d6; background:none; border:1px solid #d0a882; border-radius:4px; min-height:40px; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0; }
.skip-link { position:fixed; left:10px; top:-100px; z-index:10; padding:12px; background:var(--gold); color:#171714; }
.skip-link:focus { top:10px; }
@media(max-width:760px) {
  .shell { padding:0 18px 96px; }
  .topbar { height:62px; }
  .brand { font-size:17px; }
  h1 { font-size:26px; }
  h2 { font-size:19px; }
  .hero { padding:18px 0 22px; }
  .hero-visual { min-height:224px; }
  .hero-copy { width:56%; padding:22px 18px; }
  .hero-copy h1 { font-size:24px; letter-spacing:-.7px; white-space:nowrap; }
  .hero-copy p { margin-top:12px; font-size:12px; }
  .hero-actions { gap:10px; margin-top:12px; }
  .hero-actions .button { padding:13px 15px; font-size:15px; min-height:52px; }
  .section { margin:19px 0; }
  .recipe-grid { grid-template-columns:minmax(0,1fr); gap:8px; }
  .recipe-card { gap:12px; padding:10px; }
  .card-art { width:60px; height:72px; }
  .card-copy h3 { font-size:15px; }
  .card-action { font-size:11px; padding:9px 8px; }
  .card-caption { font-size:11px; margin-top:5px; }
  .english { font-size:10px; }
  .page-heading { margin:24px 0 19px; }
  .page-heading p { font-size:13px; }
  .filters { grid-template-columns:minmax(0,1fr) 112px; }
  .search-field { gap:7px; padding:0 10px; }
  .detail-hero { gap:16px; }
  .detail-art { flex-basis:92px; }
  .detail-art img { height:122px; }
  .detail-intro h1 { font-size:24px; }
  .detail-summary { font-size:13px; margin:10px 0; }
  .facts { grid-template-columns:1fr 1fr; margin-top:20px; padding:16px; }
  .detail-columns { grid-template-columns:1fr; gap:0; }
  .recipe-section { padding:24px 0 10px; }
  .source-note { margin-top:20px; padding:18px; }
  .material-grid { grid-template-columns:1fr; }
  .profile-panel { padding:20px; }
  .profile-panel h2 { font-size:18px; }
  .bottom-nav { border-radius:0; border-left:0; border-right:0; }
}
@media(prefers-reduced-motion:reduce) { * { transition:none !important; } }

/* Personal library and editor keep the existing warm black / champagne palette. */
textarea { font:inherit; color:var(--text); resize:vertical; width:100%; min-height:88px; line-height:1.6; }
textarea:focus-visible,summary:focus-visible { outline:2px solid var(--gold); outline-offset:3px; }
.library-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.library-heading .button { flex-shrink:0; }
.personal-filters { margin:20px 0; display:grid; gap:10px; }
.filter-selects { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.filter-selects label { min-width:0; }
.recipe-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:24px; }
.recipe-actions .primary { flex:1; }
.danger { color:#e8ada0; border-color:#73564b; }
.inline-error { color:#ffd2b3; background:#452e25; padding:14px; border-radius:8px; margin-top:16px; overflow-wrap:anywhere; }
.success-note { color:var(--gold); background:#2d2d22; padding:12px 16px; border-radius:8px; margin-top:18px; font-size:13px; }
.editor-heading { margin-top:0; }
#editor-fields { border:0; padding:0; margin:0; min-width:0; }
.form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.form-field { display:flex; flex-direction:column; gap:7px; min-width:0; }
.form-field>span { font-size:13px; color:var(--text); }
.form-field small { font-size:11px; color:var(--muted); margin-left:5px; }
.form-field input,.form-field textarea { padding:10px 12px; border:1px solid #454337; background:var(--surface); border-radius:8px; }
.form-field select { font-size:15px; }
.editor-section { margin-top:28px; padding-top:24px; border-top:1px solid var(--line); }
.editor-section h2 { font-size:18px; }
.ingredient-row { display:grid; grid-template-columns:minmax(0,1fr) 100px 100px 44px; gap:10px; align-items:end; margin:14px 0; }
.step-row { display:grid; grid-template-columns:minmax(0,1fr) 44px; gap:10px; align-items:end; margin:14px 0; }
.row-remove { color:var(--muted); background:var(--surface); border:1px solid var(--line); border-radius:8px; height:46px; font-size:24px; }
.row-remove:disabled { opacity:.35; }
.add-row { border-style:dashed; background:transparent; color:var(--gold); width:100%; }
.recipe-extras { margin:24px 0; padding:16px; border:1px solid var(--line); border-radius:10px; }
.recipe-extras summary { color:var(--gold); cursor:pointer; min-height:32px; }
.recipe-extras[open] summary { margin-bottom:16px; }
.tag-options { border:0; padding:0; margin:20px 0 0; display:flex; flex-wrap:wrap; gap:8px; }
.tag-options legend { font-size:13px; margin-bottom:10px; }
.tag-options label { display:flex; gap:7px; align-items:center; border:1px solid var(--line); border-radius:7px; padding:9px 11px; font-size:13px; min-height:44px; }
.tag-options input { width:17px; height:17px; accent-color:var(--gold); margin:0; }
.tag-options label:has(:checked) { background:#353228; border-color:#686049; }
.editor-save { display:flex; gap:10px; margin:20px 0; }
.editor-save .primary { flex:1; }
.steps p,.detail-english { overflow-wrap:anywhere; white-space:pre-wrap; }
@media(max-width:760px) {
  .library-heading { gap:10px; align-items:flex-start; }
  .library-heading h1 { font-size:24px; }
  .library-heading .button { padding:11px 12px; font-size:13px; }
  .library-heading p { max-width:170px; }
  .form-grid { gap:14px 10px; }
  .form-grid>.form-field:nth-child(-n+2) { grid-column:1/-1; }
  .ingredient-row { grid-template-columns:minmax(0,1fr) 68px 76px 32px; gap:7px; }
  .ingredient-row .form-field input { padding:8px; }
  .ingredient-row select { padding:0 4px; font-size:13px; }
  .row-remove { font-size:21px; }
  .step-row { grid-template-columns:minmax(0,1fr) 32px; gap:7px; }
  .recipe-extras { padding:14px; }
}
