/* DMS School Portal : stylesheet
   Paper-and-ink look. School colours come in through --brand and --accent. */

:root {
  --paper: #f6f2e9;
  --paper-2: #efe9db;
  --card: #fffefb;
  --ink: #1b2433;
  --ink-2: #4a5468;
  --ink-3: #7b8394;
  --rule: #ddd5c3;
  --rule-2: #e9e3d3;
  --brand: #17406b;
  --accent: #b8252a;
  --gold: #d9a620;
  --good: #2f6b3f; --good-bg: #e3efe1;
  --bad: #a32a2a; --bad-bg: #f5e0dd;
  --warn: #7f5500; --warn-bg: #f7ebcb;
  --info: #35506e; --info-bg: #e3eaf1;
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans: 'Public Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --r: 3px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; color: var(--ink); letter-spacing: -.005em; }
h1 { font-size: 2rem; } h2 { font-size: 1.45rem; } h3 { font-size: 1.15rem; } h4 { font-size: 1rem; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 24px 0; }
.ic { flex: none; vertical-align: -3px; }
.muted { color: var(--ink-3); } .small { font-size: 13px; } .nowrap { white-space: nowrap; }
.right { text-align: right; } .center { text-align: center; }
.mt0 { margin-top: 0; } .mb0 { margin-bottom: 0; } .mt { margin-top: 20px; } .mb { margin-bottom: 20px; }
.kicker { font: 600 11.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.serif { font-family: var(--serif); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border: 1px solid var(--ink); background: transparent; color: var(--ink); font: 600 14px/1 var(--sans); border-radius: var(--r); cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--ink); color: #fff; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--ink); border-color: var(--ink); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--ink); border-color: var(--ink); }
.btn-ghost { border-color: var(--rule); color: var(--ink-2); background: var(--card); }
.btn-ghost:hover { border-color: var(--ink); background: var(--card); color: var(--ink); }
.btn-danger { border-color: var(--bad); color: var(--bad); }
.btn-danger:hover { background: var(--bad); color: #fff; border-color: var(--bad); }
.btn-sm { height: 30px; padding: 0 11px; font-size: 13px; }
.btn-lg { height: 46px; padding: 0 24px; font-size: 15px; }
.btn[disabled], .btn.is-disabled { opacity: .45; pointer-events: none; }
.btn-link { background: none; border: 0; padding: 0; color: var(--brand); font: inherit; text-decoration: underline; cursor: pointer; }
.btnrow { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ---------- forms ---------- */
.field { margin-bottom: 16px; }
.field > label, .lbl { display: block; font-weight: 600; font-size: 13.5px; margin-bottom: 6px; color: var(--ink); }
.field .req { color: var(--accent); margin-left: 2px; }
.field .help { font-size: 12.5px; color: var(--ink-3); margin-top: 5px; }
.field .err { font-size: 12.5px; color: var(--bad); margin-top: 5px; font-weight: 500; }
.input, select.input, textarea.input { width: 100%; height: 40px; padding: 0 12px; border: 1px solid #cfc6b2; background: #fff; border-radius: var(--r); font: 15px var(--sans); color: var(--ink); }
textarea.input { height: auto; min-height: 84px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
select.input { padding-right: 28px; }
.input:focus { outline: 2px solid color-mix(in srgb, var(--brand) 35%, transparent); outline-offset: 0; border-color: var(--brand); }
.input.has-err { border-color: var(--bad); }
input[type=file].input { padding: 7px 10px; height: auto; background: var(--card); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; }
.check input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--brand); flex: none; }
.row { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.row.r3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.row.r4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.row.r12 { grid-template-columns: 1fr 2fr; }
.inline { display: inline; }
.switch, .field > label.switch { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 600; margin-bottom: 0; }
.switch input { position: absolute; opacity: 0; }
.switch .track { flex: none; width: 46px; height: 26px; border-radius: 13px; background: #c9c1ae; position: relative; transition: background .15s; }
.switch .track::after { content: ''; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch input:checked + .track { background: var(--good); }
.switch input:checked + .track::after { transform: translateX(20px); }
.switch input:focus-visible + .track { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ---------- status pills, flash ---------- */
.st { display: inline-block; padding: 2px 9px; border-radius: 2px; font: 600 11.5px/1.5 var(--sans); letter-spacing: .02em; white-space: nowrap; }
.st-good { background: var(--good-bg); color: var(--good); }
.st-bad { background: var(--bad-bg); color: var(--bad); }
.st-warn { background: var(--warn-bg); color: var(--warn); }
.st-info { background: var(--info-bg); color: var(--info); }
.flash { padding: 11px 14px; border-left: 3px solid var(--info); background: var(--info-bg); margin-bottom: 16px; font-size: 14px; }
.flash.success { border-color: var(--good); background: var(--good-bg); }
.flash.error { border-color: var(--bad); background: var(--bad-bg); }
.flash.warn { border-color: var(--gold); background: var(--warn-bg); }
.notice { border: 1px solid var(--rule); border-left: 3px solid var(--gold); background: var(--card); padding: 12px 14px; font-size: 14px; margin-bottom: 16px; }

/* ---------- panels, tables ---------- */
.panel { background: var(--card); border: 1px solid var(--rule); border-radius: 4px; margin-bottom: 22px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--rule-2); }
.panel-head h2, .panel-head h3 { margin: 0; font-size: 1.12rem; }
.panel-body { padding: 20px; }
.panel-body.flush { padding: 0; }
.grid { display: grid; gap: 22px; }
.grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.c21 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tablewrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font: 600 11px/1.3 var(--sans); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); padding: 11px 16px; border-bottom: 1px solid var(--rule); background: #fbf8f1; white-space: nowrap; }
table.t td { padding: 12px 16px; border-bottom: 1px solid var(--rule-2); vertical-align: top; }
table.t tr:last-child td { border-bottom: 0; }
table.t tbody tr:hover td { background: #fcfaf4; }
table.t .sub { display: block; font-size: 12.5px; color: var(--ink-3); }
table.t td.actions { text-align: right; white-space: nowrap; }
.empty { padding: 34px 20px; text-align: center; color: var(--ink-3); }
.empty strong { display: block; font-family: var(--serif); font-size: 1.15rem; color: var(--ink-2); font-weight: 500; margin-bottom: 4px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(124px, 1fr)); gap: 0; border: 1px solid var(--rule); background: var(--card); border-radius: 4px; margin-bottom: 22px; }
.stat { padding: 16px 18px; border-right: 1px solid var(--rule-2); }
.stat:last-child { border-right: 0; }
.stat .n { font: 500 2rem/1 var(--serif); color: var(--ink); font-variant-numeric: tabular-nums; }
.stat .l { font-size: 12.5px; color: var(--ink-3); margin-top: 6px; }
.stat a { text-decoration: none; color: inherit; display: block; }
.stat a:hover .n { color: var(--accent); }
dl.kv { margin: 0; display: grid; grid-template-columns: 170px 1fr; gap: 0; }
dl.kv dt { color: var(--ink-3); font-size: 13px; padding: 9px 0; border-bottom: 1px solid var(--rule-2); }
dl.kv dd { margin: 0; padding: 9px 0; border-bottom: 1px solid var(--rule-2); word-break: break-word; }
dl.kv dt:last-of-type, dl.kv dd:last-of-type { border-bottom: 0; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--rule); margin-bottom: 22px; overflow-x: auto; }
.tabs a { padding: 10px 16px; text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--ink); }
.tabs a.on { color: var(--ink); border-color: var(--accent); font-weight: 600; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.filters .input { width: auto; min-width: 150px; height: 36px; }
.bar { height: 6px; background: var(--rule-2); border-radius: 3px; overflow: hidden; min-width: 80px; }
.bar > i { display: block; height: 100%; background: var(--brand); }

/* timeline */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 18px 24px; border-left: 1px solid var(--rule); margin-left: 6px; }
.timeline li::before { content: ''; position: absolute; left: -5px; top: 5px; width: 9px; height: 9px; background: var(--brand); border-radius: 50%; }
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline .when { font-size: 12.5px; color: var(--ink-3); }
.timeline .what { font-weight: 600; }
.timeline .more { font-size: 13.5px; color: var(--ink-2); }

/* ---------- auth pages ---------- */
body.auth { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 16px; }
.auth-card { width: 100%; max-width: 430px; background: var(--card); border: 1px solid var(--rule); border-top: 4px solid var(--brand); padding: 34px 32px; }
.auth-card.wide { max-width: 560px; }
.auth-mark { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; font-family: var(--serif); font-size: 1.25rem; }
.auth-mark img { width: 42px; height: 42px; object-fit: contain; }
.auth-foot { margin-top: 18px; font-size: 13px; color: var(--ink-3); text-align: center; }

/* ---------- public site ---------- */
.stripe { height: 5px; background: linear-gradient(90deg, var(--brand) 0 55%, var(--accent) 55% 85%, var(--gold) 85% 100%); }
.pub-head { background: var(--card); border-bottom: 1px solid var(--rule); }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 820px; }
.pub-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 76px; }
.brandmark { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.brandmark img { width: 52px; height: 52px; object-fit: contain; }
.brandmark b { display: block; font: 500 1.2rem/1.1 var(--serif); }
.brandmark span { font-size: 12.5px; color: var(--ink-3); font-style: italic; font-family: var(--serif); }
.pub-nav { display: flex; gap: 22px; align-items: center; font-size: 14px; font-weight: 500; }
.pub-nav a { text-decoration: none; color: var(--ink-2); }
.pub-nav a:hover { color: var(--accent); }
.hero { padding: 64px 0 56px; border-bottom: 1px solid var(--rule); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.02; font-weight: 500; margin-bottom: 20px; }
.hero h1 em { color: var(--accent); font-style: italic; }
.hero .lead { font-size: 1.1rem; color: var(--ink-2); max-width: 34em; }
.statusline { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 12px; background: var(--card); border: 1px solid var(--rule); margin-bottom: 26px; font-size: 14px; font-weight: 600; }
.statusline i { width: 10px; height: 10px; border-radius: 50%; background: var(--good); }
.statusline.closed i { background: var(--bad); }
.glance { background: var(--card); border: 1px solid var(--rule); border-top: 3px solid var(--brand); }
.glance h3 { padding: 16px 20px 6px; margin: 0; }
.glance dl.kv { padding: 0 20px 10px; grid-template-columns: 120px 1fr; }
.section { padding: 54px 0; border-bottom: 1px solid var(--rule); }
.section:last-of-type { border-bottom: 0; }
.section h2 { font-size: 1.9rem; margin-bottom: 8px; }
.section .intro { color: var(--ink-2); max-width: 40em; margin-bottom: 26px; }
.cols { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; }
.classlist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.classlist li { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--rule); }
.classlist .grp { font: 600 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); padding: 18px 0 8px; border-bottom: 1px solid var(--rule); display: block; }
.bullets { padding-left: 18px; margin: 0 0 1em; } .bullets li { margin-bottom: 6px; }
details.faq { border-bottom: 1px solid var(--rule); padding: 14px 0; }
details.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: '+'; font-size: 20px; line-height: 1; color: var(--accent); }
details.faq[open] summary::after { content: '–'; }
details.faq p { margin: 10px 0 0; color: var(--ink-2); }
.pub-foot { background: var(--ink); color: #cfd5df; padding: 34px 0; font-size: 13.5px; }
.pub-foot a { color: #fff; }
.pub-foot .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.closed-card { background: var(--card); border: 1px solid var(--rule); border-left: 4px solid var(--bad); padding: 22px 24px; max-width: 640px; }

.apply-sec { background: var(--card); border: 1px solid var(--rule); margin-bottom: 20px; }
.apply-sec > h3 { margin: 0; padding: 14px 22px; border-bottom: 1px solid var(--rule-2); font-size: 1.1rem; display: flex; gap: 12px; align-items: baseline; }
.apply-sec > h3 small { font: 600 11px var(--sans); letter-spacing: .12em; color: var(--accent); }
.apply-sec .body { padding: 22px; }

/* ---------- admin shell ---------- */
body.shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
.side { background: #16202e; color: #c3cbd8; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side .sb-brand { padding: 20px 20px 16px; border-bottom: 1px solid #263246; }
.side .sb-brand .row1 { display: flex; gap: 12px; align-items: center; }
.side .sb-brand img { width: 38px; height: 38px; object-fit: contain; background: #fff; border-radius: 3px; padding: 2px; }
.side .sb-brand b { display: block; color: #fff; font: 500 1.02rem/1.15 var(--serif); }
.side .sb-brand span { font-size: 12px; color: #8793a6; }
.side nav { padding: 14px 12px 24px; flex: 1; }
.side .grp { font: 600 10.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #6f7b8f; padding: 18px 10px 8px; }
.side nav a { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 3px; color: #c3cbd8; text-decoration: none; font-size: 14px; border-left: 3px solid transparent; margin-bottom: 1px; }
.side nav a:hover { background: #1d2a3b; color: #fff; }
.side nav a.on { background: #1d2a3b; color: #fff; border-left-color: var(--gold); font-weight: 600; }
.side nav a .ct { margin-left: auto; background: var(--accent); color: #fff; font: 600 11px/1 var(--sans); padding: 3px 7px; border-radius: 9px; }
.side .sb-foot { padding: 14px 20px; border-top: 1px solid #263246; font-size: 12px; color: #6f7b8f; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 14px; padding: 12px 32px; background: var(--card); border-bottom: 1px solid var(--rule); min-height: 62px; }
.topbar .grow { flex: 1; }
.topbar .menu { display: none; }
.userbox { display: flex; align-items: center; gap: 12px; font-size: 13.5px; }
.userbox .av { width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font: 600 12px var(--sans); }
.userbox small { display: block; color: var(--ink-3); font-size: 12px; line-height: 1.2; }
.switcher { position: relative; }
.switcher select { height: 36px; border: 1px solid var(--rule); background: var(--paper); font: 600 13.5px var(--sans); padding: 0 30px 0 10px; border-radius: var(--r); color: var(--ink); max-width: 280px; }
.content { padding: 30px 32px 60px; max-width: 1280px; width: 100%; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head h1 { margin: 0; }
.page-head .sub { color: var(--ink-3); font-size: 14px; margin-top: 4px; }
.crumbs { font-size: 13px; color: var(--ink-3); margin-bottom: 8px; }
.crumbs a { color: var(--ink-3); text-decoration: none; } .crumbs a:hover { color: var(--accent); }
.hq-tag { display: inline-block; font: 600 10px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; background: var(--gold); color: #3b2c00; padding: 3px 6px; border-radius: 2px; margin-left: 6px; vertical-align: 2px; }
.tree-row { display: flex; align-items: center; gap: 10px; }
.tree-row .branch { color: var(--rule); font-family: monospace; }

/* parent portal shell */
.portal-head { background: var(--card); border-bottom: 1px solid var(--rule); }
.portal-head .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 66px; gap: 16px; }
.portal-main { padding: 36px 0 70px; }
.appcard { display: grid; grid-template-columns: 1fr auto; gap: 14px 20px; padding: 20px 22px; border-bottom: 1px solid var(--rule-2); align-items: center; }
.appcard:last-child { border-bottom: 0; }
.appcard h3 { margin: 0 0 4px; }
.steps { display: flex; list-style: none; padding: 0; margin: 0 0 4px; counter-reset: s; overflow-x: auto; border: 1px solid var(--rule); background: var(--card); }
.steps li { flex: 1; min-width: 108px; padding: 12px 12px 12px 14px; font-size: 12.5px; color: var(--ink-3); border-right: 1px solid var(--rule-2); position: relative; counter-increment: s; }
.steps li:last-child { border-right: 0; }
.steps li::before { content: counter(s); display: block; font: 500 1.2rem/1 var(--serif); margin-bottom: 4px; color: var(--rule); }
.steps li.done { color: var(--ink); } .steps li.done::before { color: var(--good); }
.steps li.now { color: var(--ink); font-weight: 600; background: var(--paper-2); } .steps li.now::before { color: var(--accent); }
.session-opt { display: block; border: 1px solid var(--rule); padding: 12px 14px; margin-bottom: 10px; cursor: pointer; background: #fff; }
.session-opt:has(input:checked) { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 6%, #fff); }
.session-opt input { margin-right: 10px; accent-color: var(--brand); }
.policy-box { max-height: 160px; overflow: auto; border: 1px solid var(--rule); padding: 12px 14px; background: #fff; font-size: 14px; margin: 8px 0 10px; }

/* letters / receipts */
.sheet { background: #fff; border: 1px solid var(--rule); max-width: 780px; margin: 0 auto; padding: 48px 56px; font-family: var(--serif); font-size: 16.5px; line-height: 1.65; }
.sheet .lh { display: flex; gap: 18px; align-items: center; border-bottom: 2px solid var(--brand); padding-bottom: 16px; margin-bottom: 28px; }
.sheet .lh img { width: 74px; height: 74px; object-fit: contain; }
.sheet .lh b { font-size: 1.5rem; display: block; color: var(--brand); line-height: 1.1; }
.sheet .lh span { font-size: 13.5px; color: var(--ink-2); font-family: var(--sans); }
.sheet h3 { text-align: center; letter-spacing: .12em; margin: 22px 0; }
.sheet table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 14.5px; }
.sheet table td { padding: 8px 0; border-bottom: 1px solid var(--rule-2); }

.toast-note { font-size: 13px; color: var(--ink-3); }

@media (max-width: 960px) {
  .hero .wrap, .cols, .grid.c2, .grid.c3, .grid.c21, .grid.c4 { grid-template-columns: 1fr; gap: 28px; }
  .grid.c2, .grid.c3, .grid.c21, .grid.c4 { gap: 20px; }
  body.shell { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 270px; z-index: 40; transform: translateX(-100%); transition: transform .2s; }
  body.nav-open .side { transform: none; }
  body.nav-open::after { content: ''; position: fixed; inset: 0; background: rgba(15,22,33,.5); z-index: 30; }
  .topbar { padding: 10px 16px; } .topbar .menu { display: inline-flex; }
  .content { padding: 22px 16px 50px; }
}
@media (max-width: 640px) {
  .row, .row.r3, .row.r4, .row.r12 { grid-template-columns: 1fr; }
  .wrap { padding: 0 16px; }
  .hero { padding: 36px 0; } .section { padding: 36px 0; }
  .pub-nav a.hide-s { display: none; }
  .sheet { padding: 26px 20px; }
  .appcard { grid-template-columns: 1fr; }
  dl.kv { grid-template-columns: 1fr; } dl.kv dt { border-bottom: 0; padding-bottom: 0; }
  .userbox .who { display: none; }
  .switcher select { max-width: 170px; }
  .auth-card { padding: 26px 20px; }
}
@media print {
  body { background: #fff; }
  .no-print, .side, .topbar, .pub-head, .pub-foot, .stripe { display: none !important; }
  body.shell { display: block; }
  .content { padding: 0; max-width: none; }
  .sheet { border: 0; padding: 0; max-width: none; }
  .panel { border: 0; }
}
.full { grid-column: 1 / -1; }
@media (max-width: 560px) { .topbar .pubbtn { display: none; } }
