/*
 * Jace colors (same palette as Jace and Jace Social): cool greys with a green
 * accent. Light mode by default, dark mode follows the device unless the
 * person picks one with the sun/moon button (data-theme on <html>).
 */
:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-2: #eceef2;
  --text: #16181d;
  --muted: #5d6470;
  --line: #dfe2e7;
  --accent: #1f9d5a;
  --accent-hover: #188049;
  --accent-ink: #ffffff;
  --accent-soft: #dcf3e6;
  --gold: #188049;          /* Jace Verified badge text */
  --gold-soft: #dcf3e6;     /* Jace Verified badge background */
  --verified: #1f9d5a;
  --danger: #c4302b;
  --danger-soft: #fde2e1;
  --warn-soft: #fff4d6;
  --warn-ink: #8a5a00;
  --shadow: 0 1px 2px rgba(16, 24, 32, .05), 0 6px 20px rgba(16, 24, 32, .06);
  --radius: 16px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111317; --surface: #1c1f26; --surface-2: #232730; --text: #e6e8eb; --muted: #8b919c; --line: #2a2f38;
    --accent: #3ddc84; --accent-hover: #5ae69a; --accent-ink: #0c1410; --accent-soft: #173323;
    --gold: #3ddc84; --gold-soft: #173323; --verified: #3ddc84;
    --danger: #ff7a73; --danger-soft: #3a1c1b; --warn-soft: #332b14; --warn-ink: #f2c14e;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.25); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111317; --surface: #1c1f26; --surface-2: #232730; --text: #e6e8eb; --muted: #8b919c; --line: #2a2f38;
  --accent: #3ddc84; --accent-hover: #5ae69a; --accent-ink: #0c1410; --accent-soft: #173323;
  --gold: #3ddc84; --gold-soft: #173323; --verified: #3ddc84;
  --danger: #ff7a73; --danger-soft: #3a1c1b; --warn-soft: #332b14; --warn-ink: #f2c14e;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 20px rgba(0,0,0,.25); color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 16px/1.55 Geist, system-ui, sans-serif; }
h1, h2, h3 { font-family: Geist, system-ui, sans-serif; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; margin: 0 0 .4em; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.hidden { display: none !important; }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 700 1.2rem Geist, sans-serif; letter-spacing: -0.02em; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 8px; }
.nav a.link { text-decoration: none; font-weight: 700; padding: 8px 10px; border-radius: 10px; }
.nav a.link:hover { background: var(--surface-2); }
.nav .me { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; padding: 4px 10px 4px 4px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }

/* buttons & inputs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: 700 .95rem Geist, sans-serif; padding: 9px 16px; border-radius: 12px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--surface-2); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, var(--line)); }
.btn.danger:hover { background: var(--danger-soft); }
.btn.gold { color: var(--gold); border-color: color-mix(in srgb, var(--gold) 45%, var(--line)); }
.btn.gold:hover { background: var(--gold-soft); }
.btn.small { padding: 6px 10px; font-size: .85rem; border-radius: 10px; }
.btn:disabled { opacity: .6; cursor: default; }
label { display: block; font-weight: 700; margin: 14px 0 6px; }
.hint { font-weight: 400; color: var(--muted); font-size: .9rem; }
input[type=text], input[type=password], input[type=number], input[type=search], textarea, select {
  width: 100%; padding: 11px 13px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit;
}
input:focus, textarea:focus, select:focus { outline: 2px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 1px; border-color: var(--accent); }
textarea { min-height: 120px; resize: vertical; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0 14px; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 700; margin-top: 16px; }
.check input { width: 18px; height: 18px; accent-color: var(--gold); }

/* home */
.hero { padding: 36px 0 18px; }
.hero p { font-size: 1.1rem; max-width: 560px; margin: 0; }
.search { display: flex; gap: 10px; margin: 18px 0 14px; }
.search input { flex: 1; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.chip { border: 1px solid var(--line); background: var(--surface); padding: 7px 14px; border-radius: 999px; font: 700 .9rem Geist, sans-serif; cursor: pointer; white-space: nowrap; color: var(--text); }
.chip.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip.verified-chip { color: var(--gold); border-color: color-mix(in srgb, var(--gold) 45%, var(--line)); background: var(--gold-soft); }
.chip.verified-chip.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.section-title { display: flex; align-items: center; gap: 8px; margin: 28px 0 12px; font-size: 1.35rem; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; padding-bottom: 40px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; display: flex; flex-direction: column; transition: transform .15s; }
.card:hover { transform: translateY(-2px); }
.card.is-verified { border-color: color-mix(in srgb, var(--gold) 55%, var(--line)); }
.card-img { aspect-ratio: 4 / 3; background: var(--surface-2); display: grid; place-items: center; font-size: 3rem; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-title { font: 700 1.08rem Geist, sans-serif; margin: 0; }
.card-meta { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .88rem; margin-top: auto; padding-top: 6px; }
.tag { display: inline-block; font-size: .78rem; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }

/* badges */
.badge-verified { display: inline-flex; align-items: center; gap: 5px; background: var(--gold-soft); color: var(--gold); font-weight: 800; font-size: .78rem; padding: 3px 10px 3px 6px; border-radius: 999px; white-space: nowrap; }
.badge-verified svg { width: 16px; height: 16px; flex: none; }
.user-check { display: inline-flex; width: 16px; height: 16px; color: var(--verified); flex: none; vertical-align: middle; }
.user-check svg { width: 100%; height: 100%; }
.role-pill { font-size: .72rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.status-pill { font-size: .78rem; font-weight: 800; padding: 3px 10px; border-radius: 999px; }
.status-pill.pending { background: var(--warn-soft); color: var(--warn-ink); }
.status-pill.removed { background: var(--danger-soft); color: var(--danger); }

/* avatar */
.avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: var(--accent-soft); color: var(--accent); display: inline-grid; place-items: center; font-weight: 800; font-size: .8rem; flex: none; overflow: hidden; }
.avatar.lg { width: 96px; height: 96px; font-size: 2.2rem; }
.avatar.md { width: 44px; height: 44px; font-size: 1.1rem; }

/* recipe page */
.recipe { display: grid; grid-template-columns: 1fr; gap: 24px; padding: 28px 0 48px; }
@media (min-width: 860px) { .recipe { grid-template-columns: 1.1fr 1fr; } }
.recipe-hero { border-radius: var(--radius); overflow: hidden; background: var(--surface-2); aspect-ratio: 4 / 3; display: grid; place-items: center; font-size: 5rem; }
.recipe-hero img { width: 100%; height: 100%; object-fit: cover; }
.byline { display: flex; align-items: center; gap: 10px; text-decoration: none; margin: 10px 0 16px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.panel + .panel { margin-top: 16px; }
.ingredients { list-style: none; padding: 0; margin: 0; }
.ingredients li { padding: 8px 0; border-bottom: 1px dashed var(--line); display: flex; gap: 10px; align-items: baseline; }
.ingredients li:last-child { border: 0; }
.ingredients input { accent-color: var(--accent); }
.steps { padding-left: 0; margin: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 8px 0; }
.steps li::before { content: counter(s); width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 800; font-size: .9rem; }
.safety { background: var(--warn-soft); border-radius: var(--radius); padding: 14px 18px; margin: 16px 0; }
.safety h3 { font-size: 1rem; margin-bottom: 6px; }
.safety ul { margin: 0; padding-left: 20px; }
.notice { border-radius: 12px; padding: 12px 16px; margin: 14px 0; }
.notice.error { background: var(--danger-soft); color: var(--danger); }
.notice.warn { background: var(--warn-soft); }
.notice ul { margin: 6px 0 0; padding-left: 20px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.admin-bar { border: 1px dashed color-mix(in srgb, var(--accent) 50%, var(--line)); background: var(--accent-soft); border-radius: 12px; padding: 10px 12px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 14px 0; }
.admin-bar strong { margin-right: 4px; }

/* forms / auth */
.form-page { max-width: 720px; margin: 28px auto 60px; }
.auth { max-width: 420px; margin: 48px auto; }
.auth .panel { padding: 26px; }
.photo-pick { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.photo-preview { width: 120px; aspect-ratio: 4/3; border-radius: 12px; background: var(--surface-2); overflow: hidden; display: grid; place-items: center; color: var(--muted); }
.photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.jace-mark { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .9rem; margin-bottom: 12px; }
.jace-mark b { color: var(--accent); }

/* profile */
.profile-head { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; padding: 32px 0 10px; }
.profile-head h1 { display: flex; align-items: center; gap: 8px; margin: 0; }
.profile-head .user-check { width: 26px; height: 26px; }

/* admin */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0; }
.list { display: flex; flex-direction: column; gap: 10px; padding-bottom: 40px; }
.item { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.item .grow { flex: 1; min-width: 180px; }
.item .title { font-weight: 800; text-decoration: none; }
.empty { text-align: center; padding: 40px 16px; color: var(--muted); }
.add-row { display: flex; gap: 8px; margin: 8px 0 16px; flex-wrap: wrap; }
.add-row input { flex: 1; min-width: 160px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 12px; font-weight: 700; transition: .2s; pointer-events: none; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 560px) {
  .logo span.full { display: none; }
  .nav a.link.hide-sm { display: none; }
  .nav .me .name { display: none; }
  .nav .me { padding: 3px; }
  .hero { padding-top: 24px; }
}

/* Sign in with Jace + theme toggle */
.jace-btn { background: #16181d; color: #fff; border-color: #16181d; }
.jace-btn:hover { background: #2a2f38; border-color: #2a2f38; }
:root[data-theme="dark"] .jace-btn { background: #3ddc84; color: #0c1410; border-color: #3ddc84; }
:root[data-theme="dark"] .jace-btn:hover { background: #5ae69a; border-color: #5ae69a; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .jace-btn { background: #3ddc84; color: #0c1410; border-color: #3ddc84; }
  :root:not([data-theme="light"]) .jace-btn:hover { background: #5ae69a; border-color: #5ae69a; }
}
.jace-btn img { border-radius: 6px; }
.jace-btn.wide { width: 100%; padding: 13px 16px; font-size: 1rem; margin-top: 8px; }
.jace-id { display: flex; align-items: center; gap: 10px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.jace-id img { border-radius: 6px; }
.icon-btn { width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; padding: 0; flex: none; }
.icon-btn:hover { background: var(--surface-2); }
.icon-btn svg { width: 18px; height: 18px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
footer.site { border-top: 1px solid var(--line); margin-top: 24px; padding: 20px 0 32px; color: var(--muted); font-size: .9rem; }
footer.site .wrap { display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; }
footer.site a { color: var(--muted); }
@media (max-width: 560px) {
  .jace-btn.small { padding: 6px 8px; font-size: 0; gap: 0; }
  .jace-btn.small img { width: 22px; height: 22px; }
}

/* Home sections, browse filters */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.section-head .section-title { margin-bottom: 12px; }
.view-all { font-weight: 700; color: var(--accent); text-decoration: none; white-space: nowrap; }
.view-all:hover { text-decoration: underline; }
.center { display: flex; justify-content: center; margin: 8px 0 32px; }
.back { display: inline-block; color: var(--muted); text-decoration: none; font-weight: 600; margin-bottom: 10px; }
.back:hover { color: var(--text); }
a.chip { text-decoration: none; display: inline-flex; align-items: center; }
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 4px 0 12px; }
.filter { margin: 0; display: flex; flex-direction: column; gap: 4px; font-size: .85rem; color: var(--muted); }
.filter select { padding: 9px 11px; font-size: .95rem; }
.allergen-chips { flex-wrap: wrap; overflow: visible; }
.hint { color: var(--muted); font-size: .88rem; }

/* AI */
.ai-tag { background: var(--accent-soft); color: var(--gold); }
.ai-cta { display: flex; gap: 12px; align-items: center; margin-top: 16px; padding: 14px 16px; border-radius: var(--radius); border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line)); background: var(--accent-soft); text-decoration: none; }
.ai-cta:hover { border-color: var(--accent); }
.ai-spark { font-size: 1.5rem; }
.ai-loading { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.ai-result { margin-top: 16px; }
.ai-result ul, .ai-result ol { padding-left: 22px; }
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.4s; } }

/* Ratings, comments, allergies, moderation panel */
.card-stats { margin-left: auto; display: inline-flex; gap: 10px; white-space: nowrap; }
.stars-inline { color: #e3a008; letter-spacing: 1px; }
.stars-inline.big { font-size: 1.15rem; }
.rating { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; margin: 4px 0 12px; }
.rate-me { display: flex; align-items: center; gap: 6px; }
.star-input { display: inline-flex; }
.star { background: none; border: 0; font-size: 1.6rem; line-height: 1; padding: 2px; cursor: pointer; color: var(--line); }
.star.on, .star-input:hover .star { color: #e3a008; }
.star-input .star:hover ~ .star { color: var(--line); }
.comments { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
.comment { display: flex; gap: 12px; align-items: flex-start; }
.comment .grow { flex: 1; min-width: 0; }
.comment p { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.comment-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .92rem; }
.comment-form { display: flex; flex-direction: column; gap: 6px; }
.comment-form .actions { margin: 4px 0; }
.safety .checks { list-style: none; padding: 0; margin: 0; }
.safety .checks li::before { content: "✓ "; color: var(--accent); font-weight: 800; }
.notice.allergy { background: var(--danger-soft); color: var(--text); border: 2px solid var(--danger); }
.notice.allergy strong { color: var(--danger); }
.allergy-tag { background: var(--danger-soft); color: var(--danger); }
.chip.my-allergies { border-color: var(--danger); color: var(--danger); }
.allergy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px 14px; }
.allergy-grid input { accent-color: var(--danger); }

/* Footer links + corner legal notice */
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.legal-notice { position: fixed; right: 16px; bottom: 16px; z-index: 30; max-width: min(340px, calc(100% - 32px)); background: var(--surface); color: var(--text); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 12px; padding: 10px 14px; font-size: .85rem; line-height: 1.4; opacity: 0; transform: translateY(8px); transition: opacity .6s ease, transform .6s ease; }
.legal-notice.show { opacity: 1; transform: none; }
.legal-notice a { color: var(--accent); font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .legal-notice { transition: opacity .3s; transform: none; } }

/* Custom allergies + email choices */
.custom-allergy { display: inline-flex; align-items: center; gap: 6px; background: var(--danger-soft); color: var(--danger); border-color: var(--danger); cursor: default; }
.chip-x { background: none; border: 0; color: inherit; font-size: 1.1rem; line-height: 1; padding: 0 2px; cursor: pointer; }
.email-prefs { display: flex; flex-direction: column; gap: 8px; }
.email-prefs input { accent-color: var(--accent); }

.safety .checks li.warn::before { content: "⚠️ "; }
.safety .checks li.warn { font-weight: 700; }

/* Notifications + making recipes together */
.bell { position: relative; text-decoration: none; }
.bell .badge { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--danger); color: #fff; font-size: .7rem; font-weight: 800; display: grid; place-items: center; }
.note.unread { border-color: var(--accent); background: color-mix(in srgb, var(--accent-soft) 45%, var(--surface)); }
.note-text { text-decoration: none; }
.note-text:hover { text-decoration: underline; }
.with-team { margin: -6px 0 12px; font-size: .92rem; }
.with-team a { font-weight: 700; }
.notice.invite { background: var(--accent-soft); border: 1px solid var(--accent); }
details ul, details ol { margin: 4px 0 8px; padding-left: 22px; }

/* Rules page */
.rules .panel h2 { font-size: 1.2rem; }
.rules .panel ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.rules .panel { margin-top: 14px; }

/* Editor */
.editor { padding: 0 0 48px; }
.editor-bar { position: sticky; top: 64px; z-index: 9; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 0; margin-bottom: 14px; background: var(--bg); border-bottom: 1px solid var(--line); }
.editor-bar .icon-btn { text-decoration: none; font-size: 1.1rem; }
.bar-status { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.saved-text { font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vis-select { width: auto; padding: 6px 10px; font-size: .88rem; border-radius: 10px; }
.status-pill.new, .status-pill.draft { background: var(--surface-2); color: var(--muted); }
.status-pill.published { background: var(--accent-soft); color: var(--gold); }
.editor-grid { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start; }
@media (min-width: 900px) { .editor-grid { grid-template-columns: minmax(0, 1fr) 300px; } .editor-side { position: sticky; top: 132px; } }
.editor-side { display: flex; flex-direction: column; gap: 14px; }
.editor-side .panel { margin: 0; padding: 14px 16px; }
.editor-side .panel + .panel { margin-top: 0; }
.editor-side h3 { font-size: 1rem; margin-bottom: 8px; }
.editor-side .photo-preview { width: 100%; }
.editor-title { font: 700 1.6rem Geist, sans-serif; letter-spacing: -0.02em; border: 0 !important; border-bottom: 2px solid var(--line) !important; border-radius: 0 !important; padding: 6px 2px 10px !important; background: transparent !important; }
.editor-title:focus { outline: none; border-bottom-color: var(--accent) !important; }
textarea.lines { min-height: 180px; line-height: 1.7; }
.editor-team { margin: 0 0 10px; font-size: .92rem; }
.share-dialog { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); padding: 20px; width: min(520px, calc(100% - 32px)); box-shadow: var(--shadow); }
.share-dialog::backdrop { background: rgba(0,0,0,.45); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dialog-head h2 { margin: 0; }
@media (max-width: 560px) { .editor-bar { top: 64px; } .bar-actions { width: 100%; } .bar-actions .btn.primary { margin-left: auto; } }

.prompt-box { min-height: 160px; font: .85rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--surface-2); }
