/* Unearthed Pages: warm paper, earthy ink, lots of quiet space. */
:root {
  --paper: #f6f2e9;
  --paper-2: #efe8da;
  --card: #fbf8f2;
  --ink: #2a2622;
  --ink-soft: #6b6157;
  --ink-faint: #9a8f82;
  --line: #e2d8c6;
  --clay: #a45f1c;
  --clay-soft: #f1dfcb;
  --moss: #5f7148;
  --moss-soft: #e3e8d6;
  --heat-0: #ebe3d4;
  --heat-1: #e9c9a6;
  --heat-2: #d49a63;
  --heat-3: #a45f1c;
  --shadow: 0 1px 2px rgba(60, 40, 20, .05), 0 6px 24px rgba(60, 40, 20, .06);
  --serif: "Fraunces", Georgia, serif;
  --read: "Literata", Georgia, serif;
  --sans: "Figtree", system-ui, -apple-system, sans-serif;
  --radius: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #1f1b17;
    --paper-2: #27221d;
    --card: #2a251f;
    --ink: #eee6d8;
    --ink-soft: #b9ad9c;
    --ink-faint: #887d6f;
    --line: #3a332b;
    --clay: #e09a5a;
    --clay-soft: #3d2c1d;
    --moss: #a7b98c;
    --moss-soft: #2c3324;
    --heat-0: #312a23;
    --heat-1: #5b3f26;
    --heat-2: #9a6233;
    --heat-3: #e09a5a;
    --shadow: 0 1px 2px rgba(0, 0, 0, .2), 0 6px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(28px, 4vw, 38px); }
h2 { font-size: 22px; }
h3 { font-size: 18px; }
p { margin: 0 0 .8em; }
.muted { color: var(--ink-soft); }
.faint { color: var(--ink-faint); font-size: 14px; }
.eyebrow { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; }
.hidden { display: none !important; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar .inner { max-width: 1080px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.brand { font-family: var(--serif); font-size: 20px; text-decoration: none; display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.brand .mark { width: 26px; height: 26px; border-radius: 7px; background: var(--clay); display: grid; place-items: center; }
.brand .mark svg { width: 16px; }
.nav { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.nav a { text-decoration: none; padding: 6px 12px; border-radius: 999px; color: var(--ink-soft); font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--ink); background: var(--paper-2); }
.nav a.on { color: var(--ink); background: var(--clay-soft); }
.who { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.who select { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 5px 10px; font-size: 13px; max-width: 220px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--moss-soft); color: var(--moss); display: grid; place-items: center; font-weight: 600; font-size: 13px; text-decoration: none; flex: none; }
.role-pill { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--clay); background: var(--clay-soft); padding: 2px 8px; border-radius: 999px; }

/* ---------- layout ---------- */
.page { max-width: 1080px; margin: 0 auto; padding: 36px 20px 130px; }
.page.narrow { max-width: 720px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.page-head p { margin: 6px 0 0; }
.grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 24px; }
@media (max-width: 860px) { .grid { grid-template-columns: 1fr; } }
.stack > * + * { margin-top: 24px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card.flat { box-shadow: none; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.card-head a { font-size: 14px; color: var(--clay); text-decoration: none; }

/* ---------- buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 999px; padding: 10px 20px; font-weight: 600; font-size: 15px; cursor: pointer; text-decoration: none; transition: transform .08s ease, background .15s ease; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--clay); color: #fffaf2; }
.btn.primary:hover { filter: brightness(1.06); }
.btn.ghost { background: transparent; border-color: var(--line); }
.btn.ghost:hover { background: var(--paper-2); }
.btn.quiet { background: none; border: none; padding: 6px 10px; color: var(--ink-soft); font-weight: 500; }
.btn.quiet:hover { color: var(--ink); }
.btn.small { padding: 6px 14px; font-size: 14px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; color: var(--ink-soft); }
.field { margin-bottom: 16px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], textarea, select.input {
  width: 100%; border: 1px solid var(--line); background: var(--paper); border-radius: 10px; padding: 11px 14px; outline: none; transition: border .15s;
}
input:focus, textarea:focus, select:focus { border-color: var(--clay); }
textarea { resize: vertical; min-height: 100px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink); font-weight: 400; cursor: pointer; }
.check input { margin-top: 4px; accent-color: var(--clay); }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.error { color: #b3412c; font-size: 14px; margin: 8px 0 0; min-height: 1em; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: var(--moss-soft); color: var(--moss); }
.tag.clay { background: var(--clay-soft); color: var(--clay); }
.tag.plain { background: var(--paper-2); color: var(--ink-soft); }

/* ---------- sign in ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 40px 16px; }
.auth .box { width: 100%; max-width: 420px; }
.auth .brand { justify-content: center; font-size: 26px; margin-bottom: 8px; }
.auth .tagline { text-align: center; color: var(--ink-soft); font-family: var(--serif); font-style: italic; margin-bottom: 28px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--ink-faint); font-size: 13px; margin: 18px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.google { width: 100%; }
.google .soon { font-size: 11px; font-weight: 600; background: var(--paper-2); color: var(--ink-faint); padding: 2px 8px; border-radius: 999px; }
.devbox { margin-top: 20px; border: 1px dashed var(--line); border-radius: var(--radius); padding: 16px 18px; }
.devbox .list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

/* ---------- desk ---------- */
.greeting h1 { margin-bottom: 4px; }
.prompt-card .week { color: var(--clay); }
.prompt-card h2 { font-size: 26px; margin: 6px 0 12px; }
.prompt-body { font-family: var(--read); font-size: 17px; line-height: 1.7; color: var(--ink); }
.prompt-body p:last-child { margin-bottom: 0; }
.prompt-meta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.list-item { display: block; padding: 12px 0; border-top: 1px solid var(--line); text-decoration: none; }
.list-item:first-child { border-top: none; padding-top: 0; }
.list-item:last-child { padding-bottom: 0; }
.list-item:hover .t { color: var(--clay); }
.list-item .t { font-family: var(--serif); font-size: 17px; }
.announce { padding: 14px 0; border-top: 1px solid var(--line); }
.announce:first-of-type { border-top: none; padding-top: 0; }
.announce h3 { font-size: 17px; margin: 4px 0 6px; }
.announce p { font-size: 15px; color: var(--ink-soft); white-space: pre-line; margin: 0; }
.empty { color: var(--ink-faint); font-size: 15px; font-style: italic; font-family: var(--serif); }

/* announcement banners */
.banners { display: grid; gap: 12px; margin-bottom: 32px; }
.banner { display: flex; gap: 16px; align-items: flex-start; background: var(--clay-soft); border: 1px solid color-mix(in srgb, var(--clay) 25%, transparent); border-radius: var(--radius); padding: 18px 20px; transition: opacity .25s, transform .25s; animation: drop .35s ease; }
.banner.reminder { background: var(--moss-soft); border-color: color-mix(in srgb, var(--moss) 25%, transparent); }
.banner.leaving { opacity: 0; transform: translateY(-6px); }
.banner-icon { width: 36px; height: 36px; border-radius: 50%; background: var(--card); display: grid; place-items: center; flex: none; font-size: 17px; }
.banner-text { flex: 1; min-width: 0; }
.banner-text h2 { font-size: 20px; margin: 4px 0 4px; }
.banner-text p { margin: 0; color: var(--ink); white-space: pre-line; font-size: 15px; }
.banner-close { flex: none; width: 32px; height: 32px; border-radius: 50%; border: none; background: transparent; color: var(--ink-soft); font-size: 22px; line-height: 1; cursor: pointer; }
.banner-close:hover { background: var(--card); color: var(--ink); }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }

/* habit */
.habit .nums { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.habit .num { font-family: var(--serif); font-size: 40px; line-height: 1; }
.habit .num small { font-size: 16px; color: var(--ink-soft); font-family: var(--sans); margin-left: 4px; }
.habit .lbl { font-size: 14px; color: var(--ink-soft); margin-top: 6px; }
.week-dots { display: flex; gap: 6px; margin-bottom: 18px; }
.week-dots .d { flex: 1; text-align: center; font-size: 11px; color: var(--ink-faint); }
.week-dots .d i { display: block; height: 28px; border-radius: 8px; background: var(--heat-0); margin-bottom: 4px; }
.week-dots .d.on i { background: var(--clay); }
.week-dots .d.today i { outline: 2px solid var(--clay); outline-offset: 2px; }
.week-dots .d.future i { background: transparent; border: 1px dashed var(--line); }
.heat { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 1fr); gap: 3px; }
.heat i { aspect-ratio: 1; border-radius: 3px; background: var(--heat-0); }
.heat i.l1 { background: var(--heat-1); } .heat i.l2 { background: var(--heat-2); } .heat i.l3 { background: var(--heat-3); }
.heat i.future { background: transparent; }
.streak-picture { text-align: center; margin: -4px 0 16px; }
.streak-pic { width: 120px; height: 150px; }
.streak-pic.wide { width: 100%; max-width: 260px; height: auto; }
.streak-picture p { font-size: 14px; margin: 4px 0 0; }
.heat-legend { display: flex; justify-content: space-between; margin-top: 8px; }

/* ---------- editor ---------- */
.editor-bar { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); transition: opacity .4s; }
.editor-bar .inner { max-width: 1080px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 12px; }
.editor-bar .spacer { flex: 1; }
.editor-bar .status { font-size: 14px; color: var(--ink-faint); white-space: nowrap; }
.focus-mode .editor-bar { opacity: 0; }
.focus-mode .editor-bar:hover, .focus-mode .editor-bar:focus-within { opacity: 1; }
.focus-mode .prompt-ref { opacity: .25; }
.editor { max-width: 700px; margin: 0 auto; padding: 32px 20px 40vh; }
.prompt-ref { background: var(--paper-2); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 36px; font-size: 15px; transition: opacity .4s; }
.prompt-ref summary { cursor: pointer; color: var(--ink-soft); list-style: none; }
.prompt-ref summary::-webkit-details-marker { display: none; }
.prompt-ref summary b { color: var(--ink); font-weight: 600; }
.prompt-ref .prompt-body { font-size: 15px; margin-top: 10px; }
.title-input { width: 100%; border: none; background: none; outline: none; font-family: var(--serif); font-size: clamp(30px, 5vw, 42px); font-weight: 500; padding: 0; margin-bottom: 20px; line-height: 1.2; resize: none; overflow: hidden; min-height: 0; }
.title-input::placeholder, .body-input::placeholder { color: var(--ink-faint); opacity: .7; }
.body-input { width: 100%; border: none !important; background: none; outline: none; font-family: var(--read); font-size: 20px; line-height: 1.8; padding: 0; resize: none; overflow: hidden; min-height: 50vh; }
.shared-note { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; background: var(--moss-soft); color: var(--moss); border-radius: var(--radius); padding: 10px 16px; margin-bottom: 28px; font-size: 14px; }
.shared-note a, .shared-note button { color: var(--moss); font-weight: 600; }
.hint { font-size: 13px; color: var(--ink-faint); margin-top: 40px; }

/* ---------- reading ---------- */
.reading { max-width: 700px; margin: 0 auto; padding: 40px 20px 80px; }
.reading .back { font-size: 14px; color: var(--ink-soft); text-decoration: none; }
.reading h1 { font-size: clamp(32px, 5vw, 44px); margin: 18px 0 14px; }
.byline { display: flex; align-items: center; gap: 12px; color: var(--ink-soft); font-size: 15px; margin-bottom: 36px; flex-wrap: wrap; }
.byline a { text-decoration: none; color: var(--ink); font-weight: 500; }
.prose { font-family: var(--read); font-size: 20px; line-height: 1.8; }
.prose p { margin: 0 0 1.1em; }
.prose blockquote { margin: 0 0 1.1em; padding-left: 18px; border-left: 3px solid var(--clay-soft); color: var(--ink-soft); font-style: italic; }
.prose h2 { font-size: 26px; margin: 1.4em 0 .6em; }
.warmth { display: flex; align-items: center; gap: 14px; margin: 40px 0; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.heart-btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 8px 18px; cursor: pointer; font-weight: 500; }
.heart-btn svg { width: 18px; height: 18px; fill: none; stroke: var(--clay); stroke-width: 2; transition: fill .2s, transform .2s; }
.heart-btn.on { background: var(--clay-soft); border-color: transparent; }
.heart-btn.on svg { fill: var(--clay); transform: scale(1.1); }
.responses h2 { margin-bottom: 18px; }
.response { padding: 16px 0; border-top: 1px solid var(--line); }
.response:first-of-type { border-top: none; }
.response .who-line { display: flex; gap: 10px; align-items: center; font-size: 14px; margin-bottom: 6px; }
.response .who-line b { font-weight: 600; }
.response p { white-space: pre-line; margin: 0; font-size: 16px; }

/* ---------- community ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.chip { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 6px 14px; font-size: 14px; cursor: pointer; }
.chip.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pieces { display: grid; gap: 16px; }
.piece-card { display: block; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; transition: border-color .15s, transform .15s; }
.piece-card:hover { border-color: var(--clay); transform: translateY(-1px); }
.piece-card h3 { font-size: 21px; margin: 8px 0 8px; }
.piece-card .excerpt { font-family: var(--read); color: var(--ink-soft); font-size: 16px; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }
.piece-card .meta { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--ink-soft); flex-wrap: wrap; margin-top: 14px; }
.writers { position: sticky; top: 90px; }
.writer-link { display: flex; align-items: center; gap: 12px; padding: 8px 0; text-decoration: none; }
.writer-link:hover .n { color: var(--clay); }
.writer-link .n { font-weight: 500; }

/* ---------- my writing ---------- */
.table-list .r { display: flex; align-items: center; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.table-list .r:first-child { border-top: none; }
.table-list .r .main { flex: 1; min-width: 0; text-decoration: none; }
.table-list .r .t { font-family: var(--serif); font-size: 18px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table-list .r:hover .t { color: var(--clay); }

/* ---------- admin ---------- */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-weight: 600; color: var(--ink-faint); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; padding: 0 12px 10px 0; }
.tbl td { padding: 12px 12px 12px 0; border-top: 1px solid var(--line); vertical-align: top; }
.tbl-wrap { overflow-x: auto; }
.code { font-family: ui-monospace, "SF Mono", monospace; background: var(--paper-2); padding: 3px 10px; border-radius: 6px; font-size: 14px; }
.email { border-top: 1px solid var(--line); padding: 14px 0; }
.email:first-child { border-top: none; }
.email pre { white-space: pre-wrap; font-family: var(--sans); font-size: 14px; color: var(--ink-soft); margin: 8px 0 0; }
.notice { background: var(--clay-soft); border-radius: var(--radius); padding: 14px 18px; font-size: 14px; margin-bottom: 20px; }

/* ---------- "Make it yours" post-it (always yellow, whatever the theme) ---------- */
.postit { position: fixed; right: 22px; bottom: 22px; z-index: 40; width: 92px; height: 88px; border: none; cursor: pointer;
  background: #fbe7a1; color: #3b3220; font-family: "Caveat", "Patrick Hand", var(--sans); font-size: 19px; line-height: 1.05; font-weight: 600;
  transform: rotate(-4deg); box-shadow: 0 2px 3px rgba(60, 40, 10, .15), 0 10px 22px rgba(60, 40, 10, .18); transition: transform .2s; display: grid; place-items: center; text-align: center; padding: 8px; }
.postit::before { content: ""; position: absolute; top: -8px; left: 50%; transform: translateX(-50%) rotate(3deg); width: 38px; height: 14px; background: rgba(255, 255, 255, .55); }
.postit:hover { transform: rotate(0) scale(1.05); }
.postit-panel { position: fixed; right: 22px; bottom: 22px; z-index: 45; width: min(380px, calc(100vw - 32px)); background: #fdf0bf; color: #3b3220;
  padding: 24px 22px 20px; box-shadow: 0 2px 4px rgba(60, 40, 10, .15), 0 18px 40px rgba(60, 40, 10, .25); transform: rotate(-1deg); animation: drop .25s ease; font-family: var(--sans); }
.postit-panel h2 { font-family: "Caveat", "Patrick Hand", var(--serif); font-size: 30px; font-weight: 600; margin-bottom: 6px; color: #3b3220; }
.postit-panel p { font-size: 15px; margin: 0 0 12px; }
.postit-panel textarea { width: 100%; min-height: 90px; background: rgba(255, 255, 255, .55); border: 1px solid rgba(59, 50, 32, .2); border-radius: 8px; padding: 10px 12px; color: #3b3220; }
.postit-panel .btn.primary { background: #3b3220; color: #fdf0bf; }
.postit-panel .btn.ghost { border-color: rgba(59, 50, 32, .3); color: #3b3220; }
.postit-x { position: absolute; top: 8px; right: 10px; border: none; background: none; font-size: 24px; cursor: pointer; color: #3b3220; }
.postit-ideas { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.postit-idea { border: 1px dashed rgba(59, 50, 32, .35); background: none; border-radius: 999px; padding: 4px 10px; font-size: 13px; cursor: pointer; color: #3b3220; }
.postit-idea:hover { background: rgba(255, 255, 255, .5); }
.postit-link { font-size: 14px; color: #3b3220; }
.postit-small { font-size: 13px !important; opacity: .8; }
.postit-working { display: flex; align-items: center; gap: 10px; }
.dots { display: inline-flex; gap: 4px; } .dots i { width: 7px; height: 7px; border-radius: 50%; background: #3b3220; animation: bob 1s infinite ease-in-out; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes bob { 0%, 100% { opacity: .25; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
@media (max-width: 600px) { .postit { width: 70px; height: 66px; font-size: 16px; right: 12px; bottom: 12px; } .postit-panel { right: 16px; bottom: 16px; } }
.focus-mode .postit { opacity: 0; pointer-events: none; }

/* viewing as a student */
.viewas { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; padding: 10px 16px; background: #2a2622; color: #f6f2e9; font-size: 14px; text-align: center; }
.viewas .btn { background: #f6f2e9; color: #2a2622; }
.viewas + .topbar { top: 46px; }

/* personal changes (admin) */
.note-line { border-top: 1px solid var(--line); padding: 12px 0; }
.note-line:first-child { border-top: none; }
.note-line q { font-family: var(--serif); font-size: 16px; }
.sum-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
@media (max-width: 860px) { .sum-cols { grid-template-columns: 1fr; } }
.sum-cols h3 { margin-bottom: 8px; }
.sum-item { padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; }
.sum-item:first-of-type { border-top: none; }

/* ---------- modal & toast ---------- */
.modal-back { position: fixed; inset: 0; background: rgba(30, 20, 10, .35); display: grid; place-items: center; padding: 16px; z-index: 50; animation: fade .15s ease; }
.modal { background: var(--card); border-radius: 18px; padding: 28px; max-width: 440px; width: 100%; box-shadow: var(--shadow); }
.modal h2 { margin-bottom: 10px; }
.modal .row { margin-top: 22px; }
#toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--ink); color: var(--paper); padding: 10px 20px; border-radius: 999px; font-size: 14px; opacity: 0; pointer-events: none; transition: all .25s ease; z-index: 60; max-width: calc(100vw - 32px); }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
@keyframes fade { from { opacity: 0; } }

@media (max-width: 600px) {
  .topbar .inner { gap: 10px; padding: 10px 16px; }
  .nav { order: 3; flex-basis: 100%; }
  .who { margin-left: auto; }
  .page { padding: 24px 16px 60px; }
  .card { padding: 20px; }
  .body-input, .prose { font-size: 18px; }
}
