/* Dissertation Portal – editorial academic theme. Tokens first, then layout, then components. */

:root {
  --bg: #faf8f4;
  --surface: #ffffff;
  --surface-2: #f3f0ea;
  --ink: #14181f;
  --ink-2: #4a5160;
  --ink-3: #7a808c;
  --rule: #e4dfd6;
  --rule-strong: #cfc8bb;
  --accent: #002147;
  --accent-ink: #ffffff;
  --accent-soft: #e6ecf4;
  --term: rgba(0, 33, 71, 0.055);
  --ok: #2e7d4f;   --ok-soft: #e4f2e9;
  --warn: #9a6512; --warn-soft: #fbf0d9;
  --bad: #b42318;  --bad-soft: #fbe6e3;
  --info: #2a5ea8; --info-soft: #e5edf8;
  --cat-planning: #8a8478;
  --cat-writing: #2a5ea8;
  --cat-send: #c08a1e;
  --cat-supervision: #6b4fbb;
  --cat-revision: #5f7f73;
  --cat-deadline: #b42318;
  --cat-admin: #a29d92;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 8px;
  --shadow-focus: 0 0 0 3px rgba(0, 33, 71, 0.18);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1218; --surface: #161a22; --surface-2: #1d222c;
    --ink: #eceef2; --ink-2: #b3b9c5; --ink-3: #858c99;
    --rule: #2a303b; --rule-strong: #3a414e;
    --accent: #9dbbe8; --accent-ink: #0f1218; --accent-soft: #1c2a3e;
    --term: rgba(157, 187, 232, 0.07);
    --ok: #63c38f; --ok-soft: #173325; --warn: #e3b04b; --warn-soft: #3a2d12;
    --bad: #f07167; --bad-soft: #3d1a17; --info: #8db4f0; --info-soft: #1a2a42;
    --cat-planning: #9b968b; --cat-writing: #6d9be0; --cat-send: #e0ad45; --cat-supervision: #a28ae6;
    --cat-revision: #86a99b; --cat-deadline: #f07167; --cat-admin: #6e6a62;
    --shadow-focus: 0 0 0 3px rgba(157, 187, 232, 0.28);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1218; --surface: #161a22; --surface-2: #1d222c;
  --ink: #eceef2; --ink-2: #b3b9c5; --ink-3: #858c99;
  --rule: #2a303b; --rule-strong: #3a414e;
  --accent: #9dbbe8; --accent-ink: #0f1218; --accent-soft: #1c2a3e;
  --term: rgba(157, 187, 232, 0.07);
  --ok: #63c38f; --ok-soft: #173325; --warn: #e3b04b; --warn-soft: #3a2d12;
  --bad: #f07167; --bad-soft: #3d1a17; --info: #8db4f0; --info-soft: #1a2a42;
  --cat-planning: #9b968b; --cat-writing: #6d9be0; --cat-send: #e0ad45; --cat-supervision: #a28ae6;
  --cat-revision: #86a99b; --cat-deadline: #f07167; --cat-admin: #6e6a62;
  --shadow-focus: 0 0 0 3px rgba(157, 187, 232, 0.28);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.6 var(--sans); font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; margin: 0; color: var(--ink); }
h1 { font-size: clamp(26px, 4vw, 38px); line-height: 1.15; }
h2 { font-size: 24px; line-height: 1.25; }
h3 { font-size: 18px; line-height: 1.3; }
p { margin: 0 0 0.75em; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.tnum { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: none; box-shadow: var(--shadow-focus); border-radius: 4px; }

/* ---------------------------------------------------------------- shell */

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.masthead { border-bottom: 1px solid var(--rule); background: var(--bg); }
.masthead-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0 10px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark {
  flex: none; width: 34px; height: 34px; border-radius: 7px; background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; font: 500 17px var(--serif);
}
.brand-text { min-width: 0; display: flex; flex-direction: column; }
.brand-kicker { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.brand-title { display: block; font: 500 16px/1.3 var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tools { display: flex; align-items: center; gap: 8px; flex: none; }
.nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin: 0 -8px; padding: 0 8px; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  flex: none; padding: 10px 12px; color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 14px;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
main { padding: 32px 0 80px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head p { margin: 6px 0 0; color: var(--ink-2); max-width: 680px; }
footer.foot { border-top: 1px solid var(--rule); padding: 20px 0 40px; color: var(--ink-3); font-size: 13px; }
footer.foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }

/* ---------------------------------------------------------------- controls */

.btn {
  appearance: none; border: 1px solid var(--rule-strong); background: var(--surface); color: var(--ink);
  font: 500 13px/1 var(--sans); padding: 9px 12px; border-radius: var(--radius); cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; text-decoration: none; white-space: nowrap;
}
.btn:hover { background: var(--surface-2); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent); filter: brightness(1.12); }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-sm { padding: 6px 9px; font-size: 12px; }
.icon-btn { width: 34px; height: 34px; padding: 0; justify-content: center; }
.icon { width: 16px; height: 16px; flex: none; }

input[type="text"], input[type="url"], input[type="number"], input[type="date"], input[type="password"], input[type="search"], select, textarea {
  width: 100%; font: 14px/1.4 var(--sans); color: var(--ink); background: var(--surface);
  border: 1px solid var(--rule-strong); border-radius: var(--radius); padding: 8px 10px;
}
textarea { resize: vertical; min-height: 96px; line-height: 1.55; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--shadow-focus); }
input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; flex: none; cursor: pointer; }
label.field { display: block; }
label.field > span { display: block; font-size: 12px; font-weight: 500; color: var(--ink-2); margin-bottom: 4px; }
.form-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.form-grid .span-all { grid-column: 1 / -1; }
.form-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 12px; }
.inline-edit { border-color: transparent; background: transparent; padding: 4px 6px; margin: -4px -6px; }
.inline-edit:hover { border-color: var(--rule-strong); }

/* ---------------------------------------------------------------- surfaces */

.card { background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 20px; }
.card + .card { margin-top: 16px; }
.grid > .card + .card, .split > .card + .card { margin-top: 0; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-head h3 { font-size: 17px; }
.kicker { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.grid { display: grid; gap: 16px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.split { display: grid; gap: 24px; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; }
.split.split-wide { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.rule-list { list-style: none; margin: 0; padding: 0; }
.rule-list > li { padding: 12px 0; border-top: 1px solid var(--rule); }
.rule-list > li:first-child { border-top: 0; padding-top: 0; }
.empty { color: var(--ink-3); font-size: 14px; padding: 8px 0; }

.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-value { font: 500 40px/1 var(--serif); font-variant-numeric: tabular-nums lining-nums; letter-spacing: -0.02em; }
.stat-value small { font: 400 15px var(--sans); color: var(--ink-3); margin-left: 4px; letter-spacing: 0; }
.stat-sub { font-size: 13px; color: var(--ink-2); }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; margin-bottom: 28px; }
.hero h1 { max-width: 820px; }
.hero .rq { font-family: var(--serif); font-size: 17px; color: var(--ink-2); max-width: 760px; margin-top: 12px; font-style: italic; }
.hero-meta { text-align: right; font-size: 13px; color: var(--ink-2); }

/* badges */
.badge {
  display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 500; line-height: 1;
  padding: 5px 8px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); white-space: nowrap;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.85; }
.badge.plain::before { display: none; }
.b-ok { background: var(--ok-soft); color: var(--ok); }
.b-warn { background: var(--warn-soft); color: var(--warn); }
.b-bad { background: var(--bad-soft); color: var(--bad); }
.b-info { background: var(--info-soft); color: var(--info); }
.b-accent { background: var(--accent-soft); color: var(--accent); }

/* meter */
.meter { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.meter > span { display: block; height: 100%; background: var(--accent); border-radius: 999px; transition: width 0.4s ease; }
.meter.ok > span { background: var(--ok); }
.meter.warn > span { background: var(--warn); }
.meter.bad > span { background: var(--bad); }

/* save status */
.save-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); padding: 6px 10px; border-radius: 999px; border: 1px solid var(--rule); background: var(--surface); }
.save-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.save-pill.saving .dot { background: var(--info); animation: pulse 1s infinite; }
.save-pill.queued .dot { background: var(--warn); }
.save-pill.error .dot { background: var(--bad); }
.save-pill.error { color: var(--bad); border-color: var(--bad); cursor: pointer; }
@keyframes pulse { 50% { opacity: 0.3; } }

.banner { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; padding: 12px 16px; border-radius: var(--radius); margin-bottom: 20px; font-size: 14px; }
.banner.warn { background: var(--warn-soft); color: var(--warn); }
.banner.bad { background: var(--bad-soft); color: var(--bad); }
.banner.info { background: var(--info-soft); color: var(--info); }
.banner .btn { flex: none; }

/* ---------------------------------------------------------------- overview */

.gap-alert { display: flex; align-items: center; gap: 14px; }
.gap-ring { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font: 500 20px var(--serif); flex: none; }
.gap-ring.ok { background: var(--ok-soft); color: var(--ok); }
.gap-ring.warn { background: var(--warn-soft); color: var(--warn); }
.gap-ring.bad { background: var(--bad-soft); color: var(--bad); }
.next-up { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; align-items: start; }
.datebox { border: 1px solid var(--rule); border-radius: 8px; text-align: center; padding: 6px 0; background: var(--surface); }
.datebox .m { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--bad); font-weight: 600; }
.datebox .d { font: 500 22px/1.1 var(--serif); }

/* action items */
.action { display: flex; gap: 12px; align-items: flex-start; }
.action .body { flex: 1; min-width: 0; }
.action .text { word-wrap: break-word; }
.action.done .text { color: var(--ink-3); text-decoration: line-through; }
.action .meta { font-size: 12px; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 2px; }
.action .meta .late { color: var(--bad); font-weight: 500; }

/* ---------------------------------------------------------------- timeline / gantt */

.legend { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; padding: 6px 10px; border-radius: 999px;
  border: 1px solid var(--rule-strong); background: var(--surface); color: var(--ink-2); cursor: pointer;
}
.chip .sw { width: 9px; height: 9px; border-radius: 2px; }
.chip[aria-pressed="false"] { opacity: 0.45; }
.gantt { position: relative; background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; }
.g-row { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: 34px; border-top: 1px solid var(--rule); cursor: pointer; }
.g-row:hover { background: var(--surface-2); }
.g-row.selected { background: var(--accent-soft); }
.g-head { cursor: default; border-top: 0; background: var(--surface); position: sticky; top: 0; z-index: 2; }
.g-head:hover { background: var(--surface); }
.g-label { padding: 7px 12px 7px 16px; font-size: 13px; display: flex; align-items: center; gap: 8px; min-width: 0; border-right: 1px solid var(--rule); }
.g-label .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-label .done-tick { color: var(--ok); flex: none; }
.g-row.is-done .g-label .t { color: var(--ink-3); }
.g-track { position: relative; }
.g-term { position: absolute; top: 0; bottom: 0; background: var(--term); pointer-events: none; }
.g-term-label { position: absolute; top: 4px; font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; padding-left: 6px; }
.g-month { position: absolute; top: 0; bottom: 0; border-left: 1px solid var(--rule); pointer-events: none; }
.g-month-label { position: absolute; bottom: 6px; font-size: 11px; color: var(--ink-3); padding-left: 6px; white-space: nowrap; }
.g-today { position: absolute; top: 0; bottom: 0; border-left: 2px solid var(--bad); z-index: 1; pointer-events: none; }
.g-today-label { position: absolute; top: 20px; font-size: 10px; font-weight: 600; color: var(--bad); padding: 0 4px; background: var(--surface); transform: translateX(-50%); white-space: nowrap; z-index: 3; }
.g-bar { position: absolute; top: 11px; height: 12px; border-radius: 4px; min-width: 4px; }
.g-row.is-done .g-bar { opacity: 0.45; }
.g-diamond { position: absolute; top: 11px; width: 12px; height: 12px; transform: translateX(-6px) rotate(45deg); border-radius: 2px; }
.g-dot { position: absolute; top: 10px; width: 14px; height: 14px; transform: translateX(-7px); border-radius: 50%; border: 2px solid var(--surface); }
.g-line { position: absolute; top: 6px; bottom: 6px; width: 3px; transform: translateX(-1px); border-radius: 2px; }
.g-row.is-done .g-diamond, .g-row.is-done .g-dot, .g-row.is-done .g-line { opacity: 0.45; }
.g-row.is-late .g-label .t { color: var(--bad); }
.detail-panel { margin-top: 16px; }

.m-list { display: none; }
.m-month { margin-top: 20px; }
.m-month:first-child { margin-top: 0; }
.m-month h3 { font-size: 15px; margin-bottom: 6px; }
.m-item { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px solid var(--rule); cursor: pointer; }
.m-item .when { font: 500 18px/1 var(--serif); text-align: center; padding-top: 2px; }
.m-item .when small { display: block; font: 400 11px var(--sans); color: var(--ink-3); margin-top: 3px; }
.m-item .ttl { font-weight: 500; }
.m-item.is-done .ttl { color: var(--ink-3); text-decoration: line-through; }

/* ---------------------------------------------------------------- chapters */

.word-total { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px; align-items: center; }
.ch-row { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(140px, 1fr) 150px 120px; gap: 16px; align-items: center; padding: 16px 0; border-top: 1px solid var(--rule); }
.ch-row:first-child { border-top: 0; }
.ch-title { font: 500 17px/1.35 var(--serif); }
.ch-sub { font-size: 12px; color: var(--ink-3); margin-top: 4px; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.ch-words { font-size: 13px; }
.ch-words b { font-weight: 600; font-variant-numeric: tabular-nums; }
.ch-extra { grid-column: 1 / -1; }
details.inline > summary { list-style: none; cursor: pointer; font-size: 12px; color: var(--accent); font-weight: 500; display: inline-flex; gap: 4px; align-items: center; }
details.inline > summary::-webkit-details-marker { display: none; }
details.inline[open] > summary { margin-bottom: 10px; }

/* ---------------------------------------------------------------- supervision */

.meet-list { list-style: none; margin: 0; padding: 0; }
.meet-list li + li { margin-top: 6px; }
.meet-btn {
  width: 100%; text-align: left; display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; align-items: center;
  padding: 10px; border-radius: 10px; border: 1px solid transparent; background: transparent; cursor: pointer; color: var(--ink); font: inherit;
}
.meet-btn:hover { background: var(--surface-2); }
.meet-btn[aria-current="true"] { background: var(--surface); border-color: var(--rule-strong); }
.meet-btn .ttl { font-weight: 500; font-size: 14px; }
.meet-btn .sub { font-size: 12px; color: var(--ink-3); }
.signoff { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius); background: var(--surface-2); flex-wrap: wrap; justify-content: space-between; }
.prewrap { white-space: pre-wrap; word-wrap: break-word; }
.links { display: flex; flex-direction: column; gap: 4px; }
.section-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 20px 0 8px; }
.section-label:first-child { margin-top: 0; }

/* tables */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th { text-align: left; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--rule-strong); white-space: nowrap; }
table.data td { padding: 10px; border-bottom: 1px solid var(--rule); vertical-align: top; }
table.data tr:last-child td { border-bottom: 0; }

/* ---------------------------------------------------------------- library */

.filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.filters .q { grid-column: 1 / -1; }
.src { padding: 16px 0; border-top: 1px solid var(--rule); }
.src:first-child { border-top: 0; padding-top: 0; }
.src .cite { font-family: var(--serif); font-size: 16px; line-height: 1.45; }
.src .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.src blockquote { margin: 10px 0 0; padding: 2px 0 2px 14px; border-left: 2px solid var(--accent); font-family: var(--serif); font-style: italic; color: var(--ink-2); }
.nb-item { position: relative; padding: 0 0 20px 22px; border-left: 1px solid var(--rule-strong); margin-left: 6px; }
.nb-item:last-child { padding-bottom: 0; }
.nb-item::before { content: ""; position: absolute; left: -6px; top: 4px; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); border: 2px solid var(--bg); }
.nb-item .date { font-size: 12px; color: var(--ink-3); }
.nb-item .ttl { font: 500 16px var(--serif); margin: 2px 0 4px; }

/* comments */
.comments { margin-top: 12px; }
.comment { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-top: 1px solid var(--rule); }
.comment:first-child { border-top: 0; }
.avatar { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 600; background: var(--accent-soft); color: var(--accent); }
.avatar.sup { background: #efe9fb; color: #5a3fa8; }
:root[data-theme="dark"] .avatar.sup { background: #2a2342; color: #c4b3f2; }
.comment .who { font-size: 13px; font-weight: 600; }
.comment .when { font-size: 12px; color: var(--ink-3); font-weight: 400; margin-left: 6px; }
.comment.resolved .txt { color: var(--ink-3); }
.comment-form { display: flex; gap: 8px; margin-top: 10px; align-items: flex-end; }
.comment-form textarea { min-height: 40px; height: 40px; }

/* login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login .card { width: 100%; max-width: 380px; padding: 28px; }
.login h1 { font-size: 26px; margin: 16px 0 6px; }
.login form { margin-top: 20px; display: grid; gap: 12px; }
.login .err { color: var(--bad); font-size: 13px; min-height: 18px; }

/* skeletons */
.boot { max-width: 1160px; margin: 0 auto; padding: 48px 24px; }
.sk { background: linear-gradient(90deg, var(--surface-2), var(--rule), var(--surface-2)); background-size: 200% 100%; animation: sk 1.4s ease infinite; border-radius: 8px; }
.sk-title { height: 36px; width: 60%; margin-bottom: 14px; }
.sk-line { height: 16px; width: 40%; margin-bottom: 32px; }
.sk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.sk-card { height: 140px; border-radius: 12px; }
@keyframes sk { to { background-position: -200% 0; } }
.noscript { padding: 24px; text-align: center; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--bg);
  padding: 10px 16px; border-radius: 999px; font-size: 13px; z-index: 50; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

/* ---------------------------------------------------------------- responsive */

@media (max-width: 900px) {
  .split, .split.split-wide, .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .split-wide > .meet-detail { order: -1; }
  .ch-row { grid-template-columns: minmax(0, 1fr) 140px; }
  .ch-row .ch-status { grid-column: 2; grid-row: 1; justify-self: end; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  main { padding-top: 24px; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-meta { text-align: left; }
  .gantt, .gantt-tools { display: none; }
  .m-list { display: block; }
  .brand-title { font-size: 14px; }
  .save-pill .lbl { display: none; }
  .ch-row { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .ch-row .ch-status { grid-column: auto; grid-row: auto; justify-self: start; }
  .word-total { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .stat-value { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
@media print {
  .masthead .tools, .nav, .comment-form, .btn, footer.foot { display: none !important; }
  body { background: #fff; }
}
