:root {
  --bg: #f4f6f9; --card: #fff; --ink: #1c2430; --muted: #6b7684; --line: #e2e6ec;
  --brand: #1f4e79; --brand-2: #2d6aa3;
  --red: #c62828; --red-bg: #fdecea; --amber: #b26a00; --amber-bg: #fff4de;
  --green: #2e7d32; --green-bg: #e8f5e9; --grey-bg: #eef0f3; --blue-bg: #e6f0fb;
  --radius: 10px;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  font-size: 14px; color: var(--ink);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); }
a { color: var(--brand-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 22px; margin: 4px 0; }
h2 { font-size: 16px; margin: 0 0 12px; color: var(--brand); }
h3 { font-size: 14px; margin: 14px 0 6px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.mono { font-family: Consolas, "Cascadia Mono", monospace; }
.err { color: var(--red); }
.r { text-align: right; } .c { text-align: center; }
[hidden] { display: none !important; }

.topbar { display: flex; align-items: center; gap: 24px; background: var(--brand); color: #fff; padding: 0 20px; height: 52px; position: sticky; top: 0; z-index: 10; }
.topbar a { color: #dce8f5; }
.brand { font-size: 17px; color: #fff !important; }
.topbar nav { display: flex; gap: 4px; flex: 1; }
.topbar nav a { padding: 8px 12px; border-radius: 6px; }
.topbar nav a.on, .topbar nav a:hover { background: rgba(255,255,255,.14); color: #fff; text-decoration: none; }
.who { font-size: 12px; color: #b9cde2; }

.wrap { max-width: 1400px; margin: 0 auto; padding: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; }
.tablecard { padding: 0; overflow-x: auto; }
.pad { padding: 12px 16px 0; margin: 0; }
.narrow { max-width: 420px; }
.empty { text-align: center; padding: 40px; color: var(--muted); }
.pagehead { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 12px; flex-wrap: wrap; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.actions form { margin: 0; }

.btn { display: inline-block; border: 1px solid var(--line); background: #fff; color: var(--ink); padding: 8px 14px; border-radius: 7px; cursor: pointer; font: inherit; }
.btn:hover { background: #f0f3f7; text-decoration: none; }
.btn.primary { background: var(--brand-2); border-color: var(--brand-2); color: #fff; }
.btn.primary:hover { background: var(--brand); }
.btn.danger { background: #fff; border-color: var(--red); color: var(--red); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--brand-2); }
.btn.small { padding: 4px 10px; font-size: 12px; }
form.inline { display: inline; }

.flash { padding: 10px 14px; border-radius: 8px; margin-bottom: 12px; background: var(--green-bg); color: var(--green); }
.flash.error { background: var(--red-bg); color: var(--red); }
.flash.info { background: var(--blue-bg); color: var(--brand); }

.badge { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; font-size: 11px; line-height: 18px; text-align: center; background: #fff; color: var(--brand); }
.badge.warn { background: #ffb300; color: #3a2600; }
.badge.info { background: #9ecbf5; color: #0b2a4a; }

.pill { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.pill.overdue { background: var(--red-bg); color: var(--red); }
.pill.due { background: var(--amber-bg); color: var(--amber); }
.pill.ok { background: var(--green-bg); color: var(--green); }
.pill.unknown { background: var(--grey-bg); color: var(--muted); }
.pill.first { background: var(--blue-bg); color: var(--brand); }
.legend { display: flex; gap: 8px; align-items: center; margin: -4px 0 12px; flex-wrap: wrap; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 10px 12px; }
.filters input, .filters select { padding: 7px 9px; border: 1px solid var(--line); border-radius: 6px; font: inherit; background: #fff; }
.filters input[type=search] { min-width: 260px; }
.spacer { flex: 1; }
.toggle { display: flex; border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.toggle button { border: 0; background: #fff; padding: 7px 12px; cursor: pointer; font: inherit; }
.toggle button.on { background: var(--brand-2); color: #fff; }

table.grid { width: 100%; border-collapse: collapse; }
.grid th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); background: #fafbfc; white-space: nowrap; }
.grid td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.grid.compact td, .grid.compact th { padding: 6px 8px; }
.sortable th { cursor: pointer; user-select: none; }
.sortable th.asc::after { content: " ▲"; } .sortable th.desc::after { content: " ▼"; }
tr[data-href] { cursor: pointer; }
tr[data-href]:hover td { background: #f7f9fc; }
tr.row-overdue td:first-child { box-shadow: inset 4px 0 0 var(--red); }
tr.row-due td:first-child { box-shadow: inset 4px 0 0 #f0a500; }
tr.row-overdue td { background: #fff8f7; }
tr.row-due td { background: #fffcf3; }
tr.sub td:first-child { padding-left: 28px; color: var(--muted); }
tr.total td { font-weight: 700; border-top: 2px solid var(--line); }

.folders { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.folder { position: relative; display: flex; flex-direction: column; gap: 4px; background: #fff8e1; border: 1px solid #efd998; border-radius: 0 10px 10px 10px; padding: 14px; color: var(--ink); margin-top: 12px; }
.folder:hover { text-decoration: none; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.folder-tab { position: absolute; top: -12px; left: -1px; width: 80px; height: 12px; background: #fff8e1; border: 1px solid #efd998; border-bottom: 0; border-radius: 8px 8px 0 0; }
.folder.row-overdue { border-color: #f1a9a0; background: #fff1ef; } .folder.row-overdue .folder-tab { background: #fff1ef; border-color: #f1a9a0; }

.company-layout { display: grid; grid-template-columns: 220px 1fr; gap: 16px; align-items: start; }
.sidenav { position: sticky; top: 68px; display: flex; flex-direction: column; padding: 8px; }
.sidenav a { padding: 6px 10px; border-radius: 6px; display: flex; justify-content: space-between; color: var(--ink); }
.sidenav a:hover { background: var(--bg); text-decoration: none; }
section.card { scroll-margin-top: 70px; }
dl.kv { display: grid; grid-template-columns: minmax(180px, 30%) 1fr; gap: 6px 16px; margin: 0; }
dl.kv dt { color: var(--muted); }
dl.kv dd { margin: 0; white-space: pre-line; }
dd.missing::after { content: "missing"; color: var(--amber); font-size: 11px; background: var(--amber-bg); padding: 0 6px; border-radius: 8px; }
.person { border: 1px solid var(--line); border-radius: 8px; padding: 12px; margin-bottom: 10px; }
.person.ceased { opacity: .6; }
.person-head { margin-bottom: 8px; display: flex; gap: 8px; align-items: center; }
.duebox { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
div.due { border-radius: 8px; padding: 12px; background: var(--grey-bg); }
div.due.overdue { background: var(--red-bg); color: var(--red); }
div.due.due { background: var(--amber-bg); color: var(--amber); }
div.due.ok { background: var(--green-bg); color: var(--green); }
div.due b { font-size: 18px; display: block; }
ul.issues { margin: 4px 0; padding-left: 18px; }
ul.issues li { margin: 3px 0; }
li.error { color: var(--red); } li.warning { color: var(--amber); } li.missing { color: var(--muted); } li.ok { color: var(--green); }
.okline { color: var(--green); font-weight: 600; }

.company-form fieldset { border: 1px solid var(--line); }
.company-form legend { font-weight: 700; color: var(--brand); padding: 0 6px; }
.fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px 14px; }
.fld { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--muted); }
.fld.wide { grid-column: 1 / -1; }
.fld i { color: var(--red); font-style: normal; }
.fld input, .fld select, .fld textarea, .login-card input { padding: 7px 9px; border: 1px solid var(--line); border-radius: 6px; font: inherit; font-size: 14px; color: var(--ink); background: #fff; }
.fld.req input:placeholder-shown, .fld.req.empty input, .fld.req.empty select, .fld.req.empty textarea { border-color: #f0c36d; background: #fffdf5; }
.fld small { color: var(--muted); font-size: 11px; }
.rowbox { border: 1px dashed var(--line); border-radius: 8px; padding: 10px; margin-bottom: 10px; background: #fcfdfe; }
.rowbar { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.rowbar .copy-from { flex: 1; max-width: 320px; padding: 4px; }
.stickybar { position: sticky; bottom: 0; background: rgba(244,246,249,.95); padding: 12px 0; display: flex; justify-content: flex-end; border-top: 1px solid var(--line); }

table.diff td.old { color: var(--red); text-decoration: line-through; text-decoration-color: rgba(198,40,40,.4); white-space: pre-line; }
table.diff td.new { color: var(--green); font-weight: 600; white-space: pre-line; }
table.diff tr.add_item td { background: var(--green-bg); }
table.diff tr.remove_item td { background: var(--red-bg); }
table.diff tr.drift td { outline: 1px solid var(--red); }
.confirmbox { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.confirmbox p { margin: 8px 0 0; font-weight: 600; }

.tabs { display: flex; gap: 4px; margin-bottom: -1px; }
.tabs a { padding: 9px 14px; border: 1px solid transparent; border-radius: 8px 8px 0 0; color: var(--muted); }
.tabs a.on { background: #fff; border-color: var(--line); border-bottom-color: #fff; color: var(--ink); font-weight: 600; }
.tabs + .card { border-top-left-radius: 0; }

.login { min-height: 100vh; display: grid; place-items: center; }
.login-card { width: 340px; display: flex; flex-direction: column; gap: 12px; }
.login-card label { display: flex; flex-direction: column; gap: 4px; color: var(--muted); font-size: 12px; }
.login-card h1 b, .brand b { color: #9ecbf5; }
.login-card h1 b { color: var(--brand-2); }

#toasts { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; z-index: 50; }
.toast { background: #1c2430; color: #fff; padding: 12px 16px; border-radius: 8px; max-width: 380px; box-shadow: 0 4px 16px rgba(0,0,0,.2); font-size: 13px; }
.toast.error { background: var(--red); }
.toast a { color: #9ecbf5; }

@media (max-width: 900px) {
  .company-layout { grid-template-columns: 1fr; }
  .sidenav { position: static; flex-direction: row; flex-wrap: wrap; }
  .topbar { flex-wrap: wrap; height: auto; padding: 8px 12px; gap: 8px; }
  .wrap { padding: 12px; }
  dl.kv { grid-template-columns: 1fr; }
  .duebox { grid-template-columns: 1fr; }
  .filters input[type=search] { min-width: 0; width: 100%; }
}

/* archive */
.flash.archived { background: var(--grey-bg); color: var(--ink); border-left: 4px solid var(--muted); }
.is-archived .sections, .is-archived .sidenav { filter: grayscale(1); opacity: .75; }
.archived-grid td { color: var(--muted); }
details.statusbox { position: relative; }
details.statusbox summary { list-style: none; }
details.statusbox summary::-webkit-details-marker { display: none; }
details.statusbox .pop { position: absolute; right: 0; top: 42px; width: 320px; z-index: 20; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 6px 24px rgba(0,0,0,.15); }

/* correcting AI readings */
table.diff input.fix { width: 100%; min-width: 180px; padding: 5px 7px; border: 1px solid var(--line); border-radius: 5px; font: inherit; color: var(--green); font-weight: 600; }
table.diff tr.fixed td { background: #fff4de; }
table.diff tr.fixed input.fix { color: var(--amber); border-color: #f0c36d; }
.fld.check span { display: flex; gap: 8px; align-items: center; color: var(--ink); font-size: 13px; }
.scrollx { overflow-x: auto; }
@media (max-width: 900px) { details.statusbox .pop { position: fixed; left: 16px; right: 16px; top: 120px; width: auto; } }

/* round 3 */
a.back { display: inline-block; font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.pagehead .muted.small { font-size: 13px; }
h2 .count { color: var(--muted); font-weight: 400; }
.sectionnav { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px; padding: 10px; }
.sectionnav a { padding: 7px 10px; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: #fafbfc; font-size: 13px; }
.sectionnav a:hover { background: var(--blue-bg); border-color: #c9dcf2; text-decoration: none; }
.sections.is-archived { filter: grayscale(1); opacity: .75; }
.fgroup { display: flex; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: 7px; padding: 2px 2px 2px 8px; background: #fafbfc; }
.fgroup span { font-size: 12px; color: var(--muted); white-space: nowrap; }
.fgroup select { border: 0 !important; background: transparent !important; padding: 5px 4px !important; }
.statuscell { white-space: normal; }
.statuscell .pill { margin: 1px 0; }
.expander { border: 1px solid var(--line); background: #fff; border-radius: 6px; width: 28px; height: 28px; cursor: pointer; font-size: 14px; color: var(--brand-2); }
.expander:hover { background: var(--blue-bg); }
tr.details td { background: #fbfcfe !important; }
.detailgrid { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 12px; }
#clients tbody.crow:hover tr:first-child td { background: #f7f9fc; }
.pre { white-space: pre-line; }
table.members th { white-space: normal; font-size: 11px; }
.bell { position: relative; font-size: 18px; text-decoration: none !important; padding: 4px 8px; border-radius: 6px; }
.bell.on, .bell:hover { background: rgba(255,255,255,.14); }
.bell .badge { position: absolute; top: -2px; right: -4px; }
tr.unread td { background: var(--blue-bg); font-weight: 600; }
.profile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.profile-grid form { margin-bottom: 12px; }
@media (max-width: 900px) { .detailgrid { grid-template-columns: 1fr; } }

/* round 4 */
.pill.none { background: #eef2f7; color: var(--muted); }
div.due.none { background: #f3f6fa; color: var(--ink); }
.duelines { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.dueline { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; }
.dueline .duemore { flex-basis: 100%; padding: 6px 10px; background: #f6f8fb; border-radius: 6px; }
button.arrow { border: 1px solid var(--line); background: #fff; border-radius: 5px; width: 22px; height: 20px; line-height: 16px; padding: 0; cursor: pointer; font-size: 11px; color: var(--brand-2); }
.printbar { display: flex; gap: 8px; justify-content: flex-end; margin: 0 0 12px; }
.histlist { margin: 4px 0 0; padding-left: 16px; color: var(--muted); }
.person:target, .person:focus-within { outline: 2px solid var(--brand-2); outline-offset: 2px; }

@media print {
  body { background: #fff; font-size: 11px; }
  .topbar, .noprint, .sectionnav, .printbar, .actions, #toasts, .flash:not(.archived), .btn, button.arrow { display: none !important; }
  .wrap { max-width: none; padding: 0; }
  .card { border: 1px solid #ccc; break-inside: avoid-page; box-shadow: none; padding: 10px; margin-bottom: 8px; }
  .person { break-inside: avoid; }
  .sections.is-archived { filter: none; opacity: 1; }
  a { color: inherit; text-decoration: none; }
  tr.row-due td, tr.row-overdue td { background: none !important; }
  body.print-history .sections > section:not(#history), body.print-history .sectionnav { display: none !important; }
  body.print-changes main > *:not(.printable) { display: none !important; }
}
.subhead { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 12px 0 6px; border-top: 1px dashed var(--line); padding-top: 10px; }

/* print preview */
body.pp-open { overflow: hidden; }
.pp-overlay { position: fixed; inset: 0; background: #e9edf2; z-index: 100; }
.pp-bar { display: flex; height: 100%; }
.pp-left { width: 290px; flex-shrink: 0; background: #fff; border-right: 1px solid var(--line); padding: 16px; overflow-y: auto; }
.pp-left h2 { margin: 0 0 4px; }
.pp-left h3 { font-size: 13px; margin: 16px 0 6px; }
.pp-count { margin: 0 0 10px; font-weight: 600; }
.pp-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.pp-picks { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.pp-picks .pp-all { font-weight: 600; border-bottom: 1px solid var(--line); padding-bottom: 4px; }
.pp-contents { margin: 0; padding-left: 0; list-style: none; font-size: 12px; display: flex; flex-direction: column; gap: 4px; }
.pp-view { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.pp-slot { flex-shrink: 0; box-shadow: 0 2px 10px rgba(0,0,0,.18); background: #fff; }
.pp-page { background: #fff; transform-origin: top left; padding: 40px; box-sizing: border-box; display: flex; flex-direction: column; font-size: 12px; color: #000; }
.pp-head { height: 34px; display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 1px solid #999; font-size: 11px; }
.pp-body { overflow: hidden; padding-top: 8px; }
.pp-foot { height: 26px; border-top: 1px solid #ccc; padding-top: 6px; font-size: 10px; color: #555; }
.pp-measure { position: absolute; left: -10000px; top: 0; }
.pp-body .card { border: 0; padding: 0; margin: 0 0 6px; }
.pp-body h2 { font-size: 14px; margin: 10px 0 6px; color: #1f4e79; }
.pp-body .person { padding: 8px; margin-bottom: 6px; }
.pp-body dl.kv { grid-template-columns: 40% 1fr; gap: 3px 10px; }
.pp-body .grid td, .pp-body .grid th { padding: 4px 6px; }
.pp-body .pp-cont::before { content: "(continued)"; display: block; font-size: 10px; color: #777; }
@media (max-width: 900px) { .pp-bar { flex-direction: column; } .pp-left { width: auto; max-height: 40%; } }

@media print {
  @page { size: A4; margin: 0; }
  body.pp-open > *:not(.pp-overlay) { display: none !important; }
  body.pp-open .pp-overlay { position: static; background: none; }
  body.pp-open .pp-left, body.pp-open .pp-measure { display: none !important; }
  body.pp-open .pp-bar, body.pp-open .pp-view { display: block; height: auto; overflow: visible; padding: 0; }
  body.pp-open .pp-slot { width: auto !important; height: auto !important; box-shadow: none; }
  body.pp-open .pp-page { transform: none !important; page-break-after: always; break-after: page; }
  body.pp-open .pp-slot:last-child .pp-page { page-break-after: auto; break-after: auto; }
}
.fgroup input.pick { border: 0; background: transparent; padding: 5px 4px; font: inherit; }
.fgroup input.month { width: 92px; }
.fgroup input.year { width: 62px; }
.fgroup input.pick.unsure { color: var(--amber); }
.pick-menu { position: fixed; z-index: 60; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,.15); max-height: 260px; overflow-y: auto; padding: 4px; display: flex; flex-direction: column; }
.pick-menu button { border: 0; background: none; text-align: left; padding: 6px 10px; border-radius: 5px; font: inherit; cursor: pointer; }
.pick-menu button:hover, .pick-menu button.on { background: var(--blue-bg); color: var(--brand); }

/* history, as-at, confidential */
.asatbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 14px; }
.asatbar input { padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; font: inherit; }
.flash.asat { background: #fff8e1; color: #6a4b00; border-left: 4px solid #f0a500; }
dd.approx, .approx-sample { color: #8a94a3; font-style: italic; }
dd.locked { color: var(--muted); }
section.confidential { background: repeating-linear-gradient(135deg, #fafbfc, #fafbfc 10px, #f3f5f8 10px, #f3f5f8 20px); }
.lockmsg { color: var(--muted); font-weight: 600; margin: 0; }
.histfilter { display: flex; flex-direction: column; gap: 10px; }
.histfilter .cats { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 13px; }
.histfilter .row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
table.register tr.past td { color: #8a94a3; }
table.timeline tr.yearrow td { background: #eef3f9; font-weight: 700; color: var(--brand); }
table.timeline tr.row td { font-style: italic; }
table.timeline td.old { color: var(--red); }
table.timeline td.new { color: var(--green); font-weight: 600; }
.nowrap { white-space: nowrap; }
details.older > summary { cursor: pointer; padding: 10px 16px; color: var(--muted); font-weight: 600; }
details.older tr td { color: #8a94a3; }
.histsearch { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding-top: 12px; } .histsearch input { padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; font: inherit; }
.effbox input { padding: 5px 8px; border: 1px solid var(--line); border-radius: 6px; font: inherit; margin: 0 6px; } .histonly { color: #6a4b00; }

.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 4px 12px; margin: 6px 0 12px; font-size: 13px; }
.filterbox { padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; font: inherit; width: 100%; max-width: 320px; margin-bottom: 8px; }
table.timeline .action { color: var(--brand); font-weight: 600; font-size: 13px; }
table.timeline tr.end .action { color: var(--muted); }
table.timeline td.new dl.mini { display: grid; grid-template-columns: auto 1fr; gap: 1px 8px; margin: 0; font-weight: 400; color: var(--ink); font-size: 12px; }
table.timeline td.new dl.mini dt { color: var(--muted); }
table.timeline td.new dl.mini dd { margin: 0; white-space: pre-line; }
table.timeline tr.row td { font-style: normal; }

.pastlabel { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 14px 0 6px; border-top: 1px dashed var(--line); padding-top: 8px; }
details.moves { margin-top: 6px; } details.moves summary { cursor: pointer; color: var(--brand-2); font-size: 13px; }
details.moves td.up { color: var(--green); font-weight: 600; } details.moves td.down { color: var(--red); font-weight: 600; }
details.accesslog summary { cursor: pointer; color: var(--muted); font-weight: 600; }
table.register b.up { color: var(--green); } table.register b.down { color: var(--red); }
.sorthead { cursor: pointer; user-select: none; } .sorthead.on { color: var(--brand); } .sorthead .arrow { font-size: 10px; }
td.sharebox .tot { border-top: 1px dotted var(--line); margin-top: 2px; padding-top: 2px; } .histfilter label.check { display: flex; gap: 6px; align-items: center; }
.viewerbox { border: 1px solid var(--line); border-radius: 8px; padding: 12px; background: #fafbfc; }
.viewerbox label.check { display: flex; gap: 6px; align-items: center; margin: 4px 0; color: var(--ink); }
a.backlink { display: inline-block; font-size: 14px; font-weight: 600; margin-bottom: 2px; }
tr.persondetail td { background: #fbfcfe !important; }
.pd { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pd dl.kv { grid-template-columns: 45% 1fr; font-size: 12px; margin-top: 6px; }
.pdchg { margin: 4px 0; } .pdchg .old { color: var(--red); } .pdchg .new { color: var(--green); }
@media (max-width: 900px) { .pd { grid-template-columns: 1fr; } }
details.older > summary { list-style: none; }
details.older > summary::-webkit-details-marker { display: none; }
details.older > summary::before { content: "▸ "; }
details.older[open] > summary::before { content: "▾ "; }
