:root {
  --paper: #fbf6ea;
  --card: #ffffff;
  --ink: #23180c;
  --ink2: #3d2c1a;        /* secondary text: still dark (Jeff: no faint gray) */
  --line: #dccdae;
  --brown: #7a3e12;
  --brown-d: #5c2c08;
  --sky: #1f5f8b;
  --ok: #17703a;
  --ok-bg: #e2f5e8;
  --warn: #9a4a00;
  --warn-bg: #fff0d9;
  --new: #6b21a8;
  --new-bg: #f1e6fb;
  --red: #c81e3c;
  --shadow: 0 1px 2px rgba(60, 40, 10, .08), 0 4px 14px rgba(60, 40, 10, .07);
  --r: 12px;
  --head: 60px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--paper); color: var(--ink);
  font: 16px/1.5 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brown); }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { font-family: Fraunces, Georgia, serif; line-height: 1.2; margin: 0; }
h1 { font-size: 28px; }
h2 { font-size: 21px; }
h3 { font-size: 17px; }
[hidden] { display: none !important; }

/* ---------- header */
.top {
  position: sticky; top: 0; z-index: 30; height: var(--head);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 16px; background: var(--brown-d); color: #fff7e6;
}
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; min-width: 0; }
.mark { width: 42px; height: 42px; border-radius: 50%; background: #fbe7b0; flex: none; object-fit: cover; box-shadow: 0 0 0 2px #fbe7b0; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-text b { font-family: Fraunces, Georgia, serif; font-size: 18px; }
.brand-text small { font-size: 12px; color: #f6dfb4; white-space: nowrap; }
nav { display: flex; align-items: center; gap: 4px; flex-wrap: nowrap; overflow-x: auto; }
nav a { color: #fff7e6; text-decoration: none; padding: 8px 10px; border-radius: 8px; font-weight: 600; font-size: 15px; white-space: nowrap; }
nav a:hover, nav a.on { background: rgba(255, 255, 255, .14); }
nav .who { color: #f6dfb4; font-size: 14px; padding: 0 6px; white-space: nowrap; }
nav .out { font-weight: 500; }
nav .short { display: none; }
::placeholder { color: #5a4630; opacity: 1; }

main { padding: 20px 16px 60px; max-width: 1500px; margin: 0 auto; }
.loading, .empty { padding: 40px 0; text-align: center; color: var(--ink2); font-size: 17px; }

/* ---------- buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 10px; padding: 9px 14px; font-weight: 600; font-size: 15px; text-decoration: none; min-height: 40px; }
.btn:hover { border-color: var(--brown); }
.btn.primary { background: var(--brown); border-color: var(--brown); color: #fff; }
.btn.primary:hover { background: var(--brown-d); }
.btn.ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn.small { padding: 5px 10px; min-height: 32px; font-size: 14px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn.on { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- sign in */
.signin { max-width: 440px; margin: 9vh auto 0; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 32px 28px; text-align: center; box-shadow: var(--shadow); }
.signin p { color: var(--ink2); }
.gbtn { margin-top: 14px; font-size: 17px; padding: 12px 22px; }

/* ---------- home */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 6px 0 14px; flex-wrap: wrap; }
.section-head p { margin: 0; color: var(--ink2); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-bottom: 34px; }
.pcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.pcard:hover { border-color: var(--brown); }
.pcard .thumb { aspect-ratio: 2 / 1; background: #efe4cc; display: grid; place-items: center; overflow: hidden; color: var(--ink2); font-weight: 600; }
.pcard .thumb img { width: 100%; height: 100%; object-fit: cover; }
.pcard .body { padding: 12px 14px 14px; display: grid; gap: 6px; }
.pcard .kind { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--brown); }
.meter { height: 8px; background: #efe4cc; border-radius: 99px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--ok); }
.stat { font-size: 15px; color: var(--ink2); }

/* ---------- pills */
.pill { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; border-radius: 99px; padding: 2px 9px; white-space: nowrap; }
.pill.ok { background: var(--ok-bg); color: var(--ok); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.new { background: var(--new-bg); color: var(--new); }
.pill.plain { background: #efe4cc; color: var(--ink); }

/* ---------- project grid */
.bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.bar .grow { flex: 1; }
.bar select { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: #fff; font-weight: 600; min-height: 40px; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.tile { background: var(--card); border: 2px solid var(--line); border-radius: var(--r); overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.tile:hover { border-color: var(--brown); }
.tile.approved { border-color: var(--ok); }
.tile .img { aspect-ratio: 2 / 1; background: #efe4cc; overflow: hidden; position: relative; }
.tile .img img { width: 100%; height: 100%; object-fit: contain; background: #1d150b; }
.tile .img .play { position: absolute; inset: 0; display: grid; place-items: center; font-size: 40px; color: #fff; text-shadow: 0 2px 8px #000; pointer-events: none; }
.tile .cap { padding: 9px 11px; display: flex; gap: 8px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.tile .cap b { font-size: 15px; }
.tile .cap .pills { display: flex; gap: 5px; flex-wrap: wrap; }

/* ---------- review page */
.review { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 18px; align-items: start; }
.stage-wrap { position: sticky; top: calc(var(--head) + 10px); }
.crumbs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; font-size: 15px; }
.crumbs a { font-weight: 600; }
.toolbar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; }
.toolbar .sep { width: 1px; height: 26px; background: var(--line); margin: 0 4px; }
.swatch { width: 30px; height: 30px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); padding: 0; }
.swatch.on { box-shadow: 0 0 0 3px var(--ink); }
.stage { background: #1d150b; border-radius: var(--r); overflow: auto; max-height: calc(100vh - var(--head) - 120px); display: grid; place-items: center; padding: 6px; }
.stage.zoom { place-items: start; }
.frame { position: relative; display: inline-block; line-height: 0; }
.frame img, .frame video { display: block; max-width: 100%; max-height: calc(100vh - var(--head) - 140px); width: auto; height: auto; }
.stage.zoom .frame img, .stage.zoom .frame video { max-width: none; max-height: none; width: 220%; }
.frame svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.frame svg.drawing { pointer-events: auto; cursor: crosshair; touch-action: none; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; }
.pager .where { font-weight: 600; color: var(--ink2); }
.compare-label { position: absolute; top: 10px; left: 10px; background: #fff3c4; color: #3a2a00; font: 700 14px Inter, sans-serif; padding: 4px 10px; border-radius: 8px; line-height: 1.4; }

.side { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); display: flex; flex-direction: column; min-width: 0; }
.rev-box { margin-top: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; background: #fff; font-size: 15px; display: grid; gap: 4px; }
.rev-box.ok { background: var(--ok-bg); border-color: #9fd8b3; color: #0f4f28; }
.rev-box.wait { background: #efe4cc; color: var(--ink); }
.rev-box .ticks { font-size: 14px; color: var(--ink); }
.hint.warnline { color: var(--warn); font-weight: 700; }
.tracker ol.two { grid-template-columns: repeat(2, 1fr); }
.btn.ok.small { color: #fff; }
.words-ta { width: 100%; min-height: 190px; font: 16px/1.55 Georgia, serif; border: 2px solid var(--brown); border-radius: 10px; padding: 10px 12px; background: #fffaf0; resize: vertical; }
.newwords { background: #fffaf0; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 15px; }
.newwords div { white-space: pre-wrap; font-family: Georgia, serif; margin-top: 4px; }
.older-banner { background: #fff3c4; border: 1px solid #e8cf6a; color: #3a2a00; border-radius: 10px; padding: 10px 14px; margin-bottom: 10px; font-size: 15px; }
.modal-back { position: fixed; inset: 0; z-index: 80; background: rgba(20, 12, 4, .55); display: grid; place-items: center; padding: 16px; }
.modal { background: var(--paper); border-radius: 14px; padding: 22px 24px; max-width: 440px; width: 100%; box-shadow: 0 10px 40px rgba(0,0,0,.35); display: grid; gap: 12px; }
.modal p { margin: 0; font-size: 17px; }
.changed-box { margin-top: 10px; border-radius: 10px; padding: 9px 11px; font-size: 15px; line-height: 1.4; }
.changed-box.yes { background: var(--new-bg); color: #3b0f63; border: 1px solid #d9c2f0; }
.changed-box.no { background: #efe4cc; color: var(--ink); border: 1px solid var(--line); }
.flyout { position: fixed; inset: 0; z-index: 65; background: rgba(20, 12, 4, .45); display: flex; justify-content: flex-end; }
.flyout { flex-direction: column; align-items: flex-end; }
.flyout .fly-head, .flyout .fly-list { display: flex; width: min(460px, 100%); background: var(--paper); }
.flyout .fly-head { justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.flyout .fly-head h2 { font-size: 19px; }
.flyout .fly-list { flex-direction: column; gap: 10px; padding: 12px 16px 30px; overflow-y: auto; flex: 1; }
.ver { display: grid; grid-template-columns: 150px 1fr; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px; }
.ver.cur { border: 2px solid var(--brown); }
.ver img { width: 150px; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 6px; background: #1d150b; }
.ver .vb { display: grid; gap: 5px; align-content: start; min-width: 0; }
.ver .vnote { font-size: 14px; color: var(--ink); }
@media (max-width: 640px) { .ver { grid-template-columns: 1fr; } .ver img { width: 100%; } }
.side > section { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.side > section:last-child { border-bottom: 0; }
.side h2 { font-size: 20px; }
.sub { color: var(--ink2); font-size: 14px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.checks { display: grid; gap: 8px; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; user-select: none; }
.check input { width: 22px; height: 22px; accent-color: var(--ok); margin: 0; }
.check.done { background: var(--ok-bg); border-color: #9fd8b3; }
.approve-box { display: grid; gap: 8px; margin-top: 12px; }
.approve-btn { font-size: 17px; padding: 12px; }
.approved-banner { background: var(--ok-bg); color: var(--ok); border: 1px solid #9fd8b3; border-radius: 10px; padding: 10px 12px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.words { white-space: pre-wrap; font-family: Georgia, serif; font-size: 16px; line-height: 1.55; background: #fffaf0; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; max-height: 260px; overflow: auto; }
.tabs { display: flex; gap: 4px; padding: 10px 12px 0; border-bottom: 1px solid var(--line); }
.tabs button { border: 0; background: none; padding: 8px 12px; font-weight: 700; border-bottom: 3px solid transparent; color: var(--ink2); }
.tabs button.on { color: var(--ink); border-color: var(--brown); }

/* composer */
.composer { display: grid; gap: 8px; }
.composer textarea { width: 100%; min-height: 96px; resize: vertical; border: 1px solid var(--line); border-radius: 10px; padding: 10px; font-size: 16px; background: #fff; }
.composer textarea:focus { outline: 2px solid var(--brown); border-color: transparent; }
.hint { font-size: 14px; color: var(--ink2); }
.attach { display: flex; gap: 6px; flex-wrap: wrap; }
.att { position: relative; width: 74px; height: 74px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: #efe4cc; display: grid; place-items: center; font-size: 12px; text-align: center; }
.att img { width: 100%; height: 100%; object-fit: cover; }
.att button { position: absolute; top: 2px; right: 2px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .7); color: #fff; font-size: 14px; line-height: 1; padding: 0; }
.drop { border: 2px dashed var(--line); border-radius: 10px; padding: 10px; text-align: center; font-size: 14px; color: var(--ink2); }
.drop.over { border-color: var(--brown); background: #fff3dc; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row .grow { flex: 1; }

/* notes */
.notes { display: grid; gap: 10px; }
.notes h3 { font-size: 15px; font-family: Inter, sans-serif; text-transform: uppercase; letter-spacing: .04em; color: var(--ink2); margin-top: 6px; }
.note { border: 1px solid var(--line); border-left: 5px solid var(--warn); border-radius: 10px; padding: 10px 12px; background: #fff; display: grid; gap: 6px; }
.note.done { border-left-color: var(--ok); background: #fbfdfb; }
.note.lit { box-shadow: 0 0 0 3px #ffd34d; }
.note .meta { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; color: var(--ink2); flex-wrap: wrap; }
.note .meta b { color: var(--ink); }
.note .text { white-space: pre-wrap; font-size: 16px; overflow-wrap: anywhere; }
.note .imgs { display: flex; gap: 6px; flex-wrap: wrap; }
.note .imgs img { width: 76px; height: 76px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); cursor: zoom-in; }
.note.flash { box-shadow: 0 0 0 4px #ffd34d; transition: box-shadow .3s; }
.tracker { background: #fffaf0; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; display: grid; gap: 6px; }
.tracker ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.tracker li { font-size: 12.5px; font-weight: 700; text-align: center; padding: 5px 2px; border-radius: 6px; background: #efe4cc; color: var(--ink2); line-height: 1.2; }
.tracker li.past { background: var(--ok-bg); color: var(--ok); }
.tracker li.cur { background: var(--brown); color: #fff; }
.note.done .tracker li.cur { background: var(--ok); }
.tracker .now { font-size: 14.5px; color: var(--ink); display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.tracker .at { color: var(--ink2); font-size: 13px; }
.tracker .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--brown); flex: none; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }
.note .reply { background: #eef6ff; border: 1px solid #c4dcf5; border-radius: 8px; padding: 7px 9px; font-size: 15px; white-space: pre-wrap; }
.note .acts { display: flex; gap: 6px; flex-wrap: wrap; }
.note textarea { width: 100%; min-height: 70px; border: 1px solid var(--line); border-radius: 8px; padding: 8px; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--brown); font-weight: 700; font-size: 14px; text-decoration: underline; }

/* references */
.refs { display: grid; gap: 14px; }
.ref-group h3 { font-size: 15px; margin-bottom: 6px; }
.ref-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.ref { text-decoration: none; color: var(--ink); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; font-size: 13px; font-weight: 600; display: flex; flex-direction: column; }
.ref:hover { border-color: var(--brown); }
.ref .ri { aspect-ratio: 1; background: #efe4cc; display: grid; place-items: center; overflow: hidden; font-size: 26px; }
.ref .ri img { width: 100%; height: 100%; object-fit: cover; }
.ref span { padding: 5px 6px; line-height: 1.25; }

/* library */
.lib-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.lib-cat { margin-bottom: 26px; }
.lib-cat h2 { margin-bottom: 10px; }
.acards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.acard { background: #fff; border: 2px solid var(--line); border-radius: var(--r); overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.acard:hover { border-color: var(--brown); }
.acard.approved { border-color: var(--ok); }
.acard .ai { aspect-ratio: 4 / 3; background: #efe4cc; display: grid; place-items: center; overflow: hidden; font-size: 40px; }
.acard .ai img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.acard .ab { padding: 8px 10px; display: grid; gap: 4px; }
.acard .ab b { font-size: 15px; }
.filestrip { display: flex; gap: 6px; overflow-x: auto; padding: 8px 0 2px; }
.filestrip button { flex: none; border: 2px solid var(--line); border-radius: 8px; background: #fff; padding: 0; width: 84px; height: 64px; overflow: hidden; display: grid; place-items: center; font-size: 12px; font-weight: 600; }
.filestrip button.on { border-color: var(--brown); }
.filestrip img { width: 100%; height: 100%; object-fit: cover; }
.doc { background: #fff; color: var(--ink); white-space: pre-wrap; font: 15px/1.55 Inter, sans-serif; padding: 18px; border-radius: 8px; max-width: 900px; width: 100%; line-height: 1.55; text-align: left; place-self: stretch; overflow: auto; }
.audio-box { background: #fff; border-radius: 10px; padding: 26px; display: grid; gap: 12px; place-items: center; min-width: min(420px, 100%); line-height: 1.4; }
.audio-box audio { width: 100%; }

#toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 600; opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 60; max-width: calc(100% - 32px); }
#toast.show { opacity: 1; }
#toast.err { background: var(--red); }
#lightbox { position: fixed; inset: 0; background: rgba(10, 6, 2, .88); z-index: 70; display: grid; place-items: center; padding: 16px; }
#lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; background: #fff; }
.lb-close { position: absolute; top: 12px; right: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; font-size: 26px; line-height: 1; }

@media (max-width: 1000px) {
  .review { grid-template-columns: 1fr; }
  .stage-wrap { position: static; }
  .stage { max-height: none; }
  .frame img, .frame video { max-height: 70vh; }
}
@media (max-width: 640px) {
  h1 { font-size: 23px; }
  nav .who { display: none; }
  nav .long { display: none; }
  nav .short { display: inline; }
  nav a { padding: 8px 7px; font-size: 14px; }
  .brand-text b { font-size: 16px; }
  .brand-text small { display: none; }
  .grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  main { padding: 14px 16px 50px; }
}
/* code sign-in (11/16/2026) */
.signin form { margin-top: 16px; text-align: left; }
.signin .field { display: block; margin-bottom: 12px; }
.signin .field span { display: block; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.signin .field input { width: 100%; box-sizing: border-box; font-size: 18px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.signin #cd { letter-spacing: 6px; font-size: 24px; text-align: center; }
.signin #sent { color: var(--ink); }
.signin .err { color: #a3241b; font-weight: 700; min-height: 1.2em; }

/* ---------- left menu + "Changes needed" (11/16/2026) */
.shell { display: flex; align-items: flex-start; }
.shell > main { flex: 1; min-width: 0; }
#side { position: sticky; top: var(--head); height: calc(100vh - var(--head)); width: 250px; flex: none; overflow-y: auto; background: #fff; border-right: 1px solid var(--line); }
.side-in { padding: 12px 8px 40px; }
.rdot { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--red); color: #fff; font: 700 13px/1 Inter, system-ui, sans-serif; }
.rdot.big { min-width: 32px; height: 32px; border-radius: 16px; font-size: 16px; flex: none; }
nav a.chg { display: inline-flex; align-items: center; gap: 6px; background: rgba(200, 30, 60, .25); }
nav a.chg.none { background: none; }
nav a.chg .rdot { border: 2px solid #fff; }
.side-chg { display: flex; align-items: center; gap: 8px; padding: 10px; margin-bottom: 8px; border-radius: 10px; background: #fde8ec; color: var(--red); font-weight: 700; text-decoration: none; }
.side-chg.none { background: var(--ok-bg); color: var(--ok); }
.side-head { display: flex; align-items: center; gap: 6px; width: 100%; border: 0; background: none; padding: 8px 6px; text-align: left; font-weight: 700; font-size: 15px; color: var(--ink); border-radius: 8px; }
.side-head:hover { background: var(--paper); }
.side-head .t { flex: 1; min-width: 0; }
.side-head .arrow { transition: transform .15s; font-size: 12px; }
.side-proj.open .side-head .arrow { transform: rotate(90deg); }
.side-pages { display: none; padding: 2px 0 8px 14px; }
.side-proj.open .side-pages { display: block; }
.side-pages a { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 14px; }
.side-pages a:hover { background: var(--paper); }
.side-pages a.on { background: var(--brown); color: #fff; }
.side-pages a .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-pages .side-all { font-weight: 700; }
.side-pages .lk { font-size: 12px; }
.side-btn { display: none; }
.chg-list { display: grid; gap: 10px; margin-bottom: 24px; }
.chg-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; }
.chg-row:hover { border-color: var(--brown); }
.chg-row .t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.chg-row .why { color: var(--ink2); font-size: 15px; }
.chg-row .go { font-weight: 700; color: var(--brown); white-space: nowrap; }
@media (max-width: 900px) {
  #side { position: fixed; left: 0; top: var(--head); z-index: 40; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow); width: 280px; }
  body.side-open #side { transform: none; }
  .side-btn { display: block; position: fixed; left: 12px; bottom: 14px; z-index: 41; border: 0; border-radius: 22px; padding: 10px 16px; background: var(--brown-d); color: #fff; font-weight: 700; box-shadow: var(--shadow); }
  .side-btn[hidden] { display: none; }
  nav a.chg { font-size: 0; gap: 0; padding: 6px 8px; }
  nav a.chg .rdot { font-size: 13px; }
}

/* how-to video on the home page (11/16/2026) */
.howto { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; margin-bottom: 22px; box-shadow: var(--shadow); }
.howto summary { cursor: pointer; font-size: 17px; }
.howto video { width: 100%; max-width: 960px; display: block; margin: 12px 0 8px; border-radius: 10px; background: #1d150b; }
.howto .chapters { display: flex; gap: 6px; flex-wrap: wrap; }

/* story workflow on the home page: Storyboard -> Book -> Video (11/16/2026) */
.flows { display: grid; gap: 14px; margin-bottom: 30px; }
.flow { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; box-shadow: var(--shadow); }
.flow h2 { font-size: 19px; margin-bottom: 10px; }
.fsteps { display: flex; align-items: stretch; gap: 6px; flex-wrap: wrap; }
.fstep { flex: 1 1 180px; display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; padding: 10px 12px; border-radius: 10px; border: 2px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; }
a.fstep:hover { border-color: var(--brown); }
.fstep .fs-n { grid-row: span 2; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: #efe4cc; }
.fstep .fs-s { font-size: 14px; color: var(--ink2); }
.fstep.done { border-color: #9fd8b3; background: var(--ok-bg); }
.fstep.done .fs-n { background: var(--ok); color: #fff; }
.fstep.now { border-color: var(--brown); }
.fstep.now .fs-n { background: var(--brown); color: #fff; }
.farrow { align-self: center; font-size: 26px; color: var(--ink2); }
@media (max-width: 640px) { .farrow { display: none; } }
