:root {
  --bg: #f6f5f1;
  --surface: #ffffff;
  --ink: #1f2328;
  --muted: #6b7280;
  --line: #e5e2da;
  --accent: #1f5f5b;
  --accent-soft: #e4efed;
  --red: #c0392b;       --red-bg: #fbeceb;
  --yellow: #b7860b;    --yellow-bg: #fdf6df;
  --green: #2f7d4f;     --green-bg: #eaf5ee;
  --gray: #8a8f98;      --gray-bg: #f0f0ee;
  --radius: 10px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { font-size: 15px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); line-height: 1.45; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.6rem; margin: 0; font-weight: 650; letter-spacing: -.01em; }
h2 { font-size: 1rem; margin: 0 0 .7rem; font-weight: 650; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.nowrap { white-space: nowrap; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* шапка */
.top { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.top-in { max-width: 1280px; margin: 0 auto; padding: 6px 24px; min-height: 52px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; }
.brand { font-weight: 700; font-size: 1.1rem; color: var(--accent); letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.main-nav { display: flex; flex-wrap: wrap; gap: 2px 4px; flex: 1; }
.main-nav a { color: var(--ink); padding: 6px 10px; border-radius: 8px; white-space: nowrap; }
.main-nav a:hover { background: var(--bg); text-decoration: none; }
.main-nav a.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.who { display: flex; align-items: center; gap: 12px; margin: 0; color: var(--muted); }
button.link { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); cursor: pointer; }
button.link:hover, a.link:hover { text-decoration: underline; }
a.link { color: var(--accent); }

main { max-width: 1280px; margin: 0 auto; padding: 24px; }
.page-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.crumbs { margin: 0 0 4px; color: var(--muted); font-size: .9rem; }

/* карточки и формы */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 16px; }
.stack > * + * { margin-top: 12px; }
.stack h2 + .muted { margin-top: -6px; }
label { display: block; font-size: .85rem; color: var(--muted); }
label .hint { color: #9aa0a8; margin-left: 4px; font-weight: 400; }
input, select, textarea {
  display: block; width: 100%; margin-top: 4px; padding: 8px 10px; font: inherit; color: var(--ink);
  background: #fff; border: 1px solid #d6d2c8; border-radius: 8px;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
input:disabled { background: var(--bg); color: var(--muted); }
textarea { resize: vertical; }
input[type=checkbox], input[type=radio] { display: inline-block; width: auto; margin: 0; padding: 0; flex: none; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.span2 { grid-column: span 2; }
.actions { display: flex; align-items: center; gap: 16px; padding-top: 6px; }

.btn {
  display: inline-block; padding: 8px 14px; font: inherit; font-weight: 550; color: var(--ink); background: #fff;
  border: 1px solid #d6d2c8; border-radius: 8px; cursor: pointer;
}
.btn:hover { background: var(--bg); text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: #184a47; }
.btn.small { padding: 4px 10px; font-size: .85rem; font-weight: 500; }

.flash { padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; background: var(--accent-soft); color: var(--accent); }
.flash.error { background: var(--red-bg); color: var(--red); }

/* вход */
.login { max-width: 340px; margin: 12vh auto 0; text-align: center; }
.login .card { text-align: left; margin-top: 20px; }

/* сводка */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.stat .n { font-size: 1.4rem; font-weight: 650; letter-spacing: -.01em; white-space: nowrap; }
ol.history li div { overflow-wrap: anywhere; }
.stat .l { color: var(--muted); font-size: .85rem; }
.stat.alert .n { color: var(--red); }

/* вкладки и фильтры */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.tabs a { padding: 9px 14px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a span { font-size: .8rem; background: var(--gray-bg); border-radius: 10px; padding: 1px 7px; margin-left: 4px; }
.tabs a:hover { color: var(--ink); text-decoration: none; }
.tabs a.on { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.filters input[type=search] { width: 280px; margin: 0; }
.filters select { width: auto; margin: 0; }
.legend { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.chip-filter { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); font-size: .85rem; }
.chip-filter:hover { text-decoration: none; background: var(--bg); }
.chip-filter.on { border-color: var(--accent); background: var(--accent-soft); }
.chip-filter b { font-weight: 600; color: var(--muted); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #d0d0cc; vertical-align: middle; }
.dot-red { background: var(--red); } .dot-yellow { background: #e0a82e; } .dot-green { background: #4aa36b; }
.dot-gray { background: var(--gray); } .dot-none { background: #fff; box-shadow: inset 0 0 0 1.5px #c9c9c4; }
main.wide { max-width: none; }
body:has(main.wide) .top-in { max-width: none; }

/* таблицы */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
table.reg { border-collapse: collapse; width: 100%; font-size: .92rem; }
table.reg th { text-align: left; font-weight: 600; font-size: .8rem; color: var(--muted); padding: 10px 12px; background: #faf9f6; border-bottom: 1px solid var(--line); white-space: nowrap; position: sticky; top: 0; }
table.reg th.num { text-align: right; }
table.reg td { padding: 9px 12px; border-bottom: 1px solid #f0eee8; vertical-align: top; }
table.reg tbody tr:last-child td { border-bottom: 0; }
table.reg tfoot td { font-weight: 600; background: #faf9f6; border-top: 1px solid var(--line); }
table.reg .stripe { width: 5px; padding: 0; }
table.plain td, table.plain th { position: static; }
a.sort { color: inherit; }
a.sort:hover { text-decoration: none; color: var(--ink); }
.arrow { color: var(--accent); }
.rowlink { font-weight: 600; display: inline-block; max-width: min(100%, 30ch); overflow-wrap: anywhere; vertical-align: top; }
/* длинные слова без пробелов (например, заметка в поле «номер дела») не вылезают из ячейки */
table.reg td, .card, .table-wrap td { overflow-wrap: break-word; }
.empty { text-align: center; color: var(--muted); padding: 28px; }
tr.row-red td { background: var(--red-bg); }          tr.row-red .stripe { background: var(--red); }
tr.row-yellow td { background: var(--yellow-bg); }    tr.row-yellow .stripe { background: #e0a82e; }
tr.row-green td { background: var(--green-bg); }      tr.row-green .stripe { background: #4aa36b; }
tr.row-gray td { background: var(--gray-bg); color: #5d626b; } tr.row-gray .stripe { background: var(--gray); }
tr.row-none td.stripe { background: transparent; }
tr.reg:hover td { filter: brightness(.98); }
.chip { display: inline-block; padding: 1px 8px; border-radius: 10px; background: rgba(255,255,255,.75); border: 1px solid rgba(0,0,0,.08); font-size: .82rem; white-space: nowrap; }
.badge { display: inline-block; min-width: 20px; text-align: center; padding: 0 6px; border-radius: 10px; background: var(--red); color: #fff; font-size: .8rem; font-weight: 600; }
.tag { display: inline-block; font-size: .75rem; padding: 0 7px; border-radius: 8px; background: var(--gray-bg); color: var(--muted); margin-left: 4px; }
.tag.warn { background: var(--yellow-bg); color: var(--yellow); }

/* карточки записей */
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.kv { display: flex; justify-content: space-between; gap: 16px; padding: 5px 0; border-bottom: 1px solid #f0eee8; }
.kv:last-child { border-bottom: 0; }
.kv > span:first-child { color: var(--muted); flex: none; }
.kv > :last-child { text-align: right; }
table.mini { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.mini td { padding: 5px 4px; border-bottom: 1px solid #f0eee8; vertical-align: top; }
table.mini tr.sum td { font-weight: 600; border-bottom: 0; }
ul.plain-list { margin: 0; padding: 0; list-style: none; }
ul.plain-list li { padding: 4px 0; }
ul.issues { list-style: none; margin: 0 0 12px; padding: 0; }
ul.issues li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid #f0eee8; }
ul.issues li.done .issue-text { color: var(--muted); text-decoration: line-through; }
ul.issues li.done .issue-text .small { text-decoration: none; display: block; }
.inline-add { display: flex; gap: 8px; }
.inline-add input { margin: 0; }
ol.history { list-style: none; margin: 0; padding: 0; }
ol.history li { padding: 9px 0 9px 14px; border-left: 2px solid var(--line); margin-left: 3px; position: relative; }
ol.history li::before { content: ""; position: absolute; left: -5px; top: 15px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

@media (max-width: 900px) {
  .cols { grid-template-columns: 1fr; }
  .grid2 { grid-template-columns: 1fr; }
  .span2 { grid-column: auto; }
  main { padding: 16px; }
}

/* вкладки компаний */
.company-tabs { display: inline-flex; gap: 4px; padding: 4px; background: #ebe9e2; border-radius: 12px; margin-bottom: 14px; }
.company-tabs a { padding: 7px 18px; border-radius: 9px; color: var(--ink); font-weight: 550; }
.company-tabs a:hover { background: rgba(255,255,255,.6); text-decoration: none; }
.company-tabs a.on { background: var(--surface); color: var(--accent); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.company-tabs a.all { color: var(--muted); font-weight: 450; }

/* эксперты и файлы */
.sig-thumb { height: 34px; max-width: 120px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 2px 4px; display: block; }
.sig { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid #f0eee8; }
.sig img { width: 120px; height: 56px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 4px; flex: none;
  background-image: linear-gradient(45deg,#f3f1ec 25%,transparent 25%,transparent 75%,#f3f1ec 75%),linear-gradient(45deg,#f3f1ec 25%,transparent 25%,transparent 75%,#f3f1ec 75%);
  background-size: 12px 12px; background-position: 0 0, 6px 6px; }
.sig.primary img { border-color: var(--accent); }
.sig-actions { display: flex; gap: 12px; align-items: center; }
.sig-actions form { margin: 0; }
.upload { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.upload input, .upload select { width: auto; margin: 0; }
.upload.stacked { display: block; } .upload.stacked > * { margin-bottom: 8px; }
table.files td:last-child { white-space: nowrap; }
table.files form { margin: 0; }
.add-expert { margin-top: 16px; max-width: 520px; }

/* деньги */
td.payer { max-width: 240px; }
td.purpose { max-width: 420px; }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wrap { overflow-wrap: anywhere; }
.radios { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.radio { display: flex; align-items: center; gap: 6px; color: var(--ink); font-size: .95rem; }
.radio input { width: auto; margin: 0; }
.wrap-actions { flex-wrap: wrap; }
.report-block { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; margin-bottom: 10px; }
.report-block.bad { background: var(--red-bg); border-color: #efc9c5; }
.report-block pre { margin: 0; white-space: pre-wrap; font: .88rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
td.fname { max-width: 280px; overflow-wrap: anywhere; font-size: .85rem; }
tr.row-none td.stripe { background: transparent; }
.link-stat{display:block;color:inherit}.link-stat:hover{text-decoration:none;border-color:var(--accent)}

/* этап 1: отклики экспертов, новый запрос */
.grid4 { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 10px 14px; }
.span4 { grid-column: span 4; }
.reply-row { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; margin-bottom: 10px; }
.reply-row.chosen { border-color: var(--accent); background: var(--accent-soft); }
.reply-head { margin-bottom: 8px; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.reply-add { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; padding-top: 6px; }
.tag.ok { background: var(--accent-soft); color: var(--accent); }
.pick-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 4px 12px; }
.pick { display: grid; grid-template-columns: 16px 1fr; column-gap: 10px; align-items: start; padding: 7px 10px;
  border: 1px solid transparent; border-radius: 8px; font-weight: 400; color: var(--ink); cursor: pointer; }
.pick[hidden] { display: none; }
.pick:hover { background: var(--bg); }
.pick:has(input:checked) { background: var(--accent-soft); border-color: var(--accent); }
.pick input { margin-top: 3px; accent-color: var(--accent); }
.pick-text { display: flex; flex-direction: column; min-width: 0; }
.pick-name { font-weight: 500; }
.pick-spec { font-size: .8rem; color: var(--muted); line-height: 1.3; }
.pick-tools { display: flex; gap: 12px; align-items: center; margin: 8px 0 10px; }
.pick-tools input { max-width: 420px; margin: 0; }
#pick-none { grid-column: 1 / -1; }

/* этап 1, часть 2: задачи */
.task-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.task-title { font-weight: 600; margin-bottom: 8px; white-space: pre-line; }
.task-done { opacity: .6; }
.chip.warn { background: var(--yellow-bg); color: var(--yellow); }
.small-gap { gap: 8px; }
.check { flex-direction: row; align-items: center; gap: 6px; font-weight: 400; }
.note-item { padding: 8px 0; border-bottom: 1px solid var(--line); white-space: pre-line; }
.note-item:last-of-type { border-bottom: 0; }

.sync-sugg{margin-top:.6rem;padding:.5rem .7rem;border-left:3px solid #d9a400;background:#fff8e1}
.sync-sugg .actions{margin-top:.4rem;display:flex;gap:.4rem;flex-wrap:wrap;align-items:center}

/* «Номера»: поле «№ дела/договора» и кнопка «Связать» в одну строку (12.11.2026) */
form.inline { display: flex; gap: 6px; align-items: center; margin-top: 4px; }
form.inline input { width: 150px; margin: 0; padding: 4px 8px; }

/* Поле даты («календарик») в стиле программы (12.11.2026). Само выпадающее окно рисует браузер:
   цвет выделения в нём задаёт accent-color. */
input[type=date] {
  accent-color: var(--accent); color-scheme: light; font-variant-numeric: tabular-nums;
  min-height: 38px; cursor: pointer;
}
input[type=date]:invalid, input[type=date]:not(:focus):placeholder-shown { color: var(--muted); }
input[type=date]::-webkit-datetime-edit { padding: 0; }
input[type=date]::-webkit-datetime-edit-fields-wrapper { color: var(--ink); }
input[type=date]::-webkit-datetime-edit-text { color: var(--muted); padding: 0 1px; }
input[type=date]::-webkit-calendar-picker-indicator {
  cursor: pointer; opacity: .55; padding: 3px; border-radius: 6px; margin-left: 6px;
  /* значок календаря в зелёном цвете программы */
  filter: invert(29%) sepia(18%) saturate(1200%) hue-rotate(127deg) brightness(92%);
}
input[type=date]::-webkit-calendar-picker-indicator:hover { opacity: 1; background: var(--accent-soft); }
.sync-sugg .pick-date { display: inline-flex; align-items: center; gap: 6px; margin-right: 6px; color: var(--ink); }
.sync-sugg .pick-date input { width: auto; margin: 0; min-height: 30px; padding: 3px 8px; }

/* «Запросы»: срок ответа (13.11.2026) */
.due { font-weight: 600; }
.due-soon { color: var(--yellow, #a16207); }
.due-late { color: #b42318; }

/* Этап 2: сроки (карточка дела, экран «Сроки») */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 16px; }
.dl-inline { display: inline-flex; gap: 6px; align-items: center; margin: 0; }
.dl-row { display: grid; grid-template-columns: 90px 1fr auto; gap: 10px; align-items: center; padding: 7px 0; border-top: 1px solid var(--line); }
.dl-row.dl-done { color: var(--muted); }
.dl-row.dl-done b { text-decoration: line-through; font-weight: 500; }
.dl-add { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.dl-add label.grow { flex: 1 1 240px; }
.dl-term { margin-bottom: 6px; }
.dl-sec.dl-late { border-color: var(--red); }
.dl-sec.dl-remind { border-color: var(--yellow); background: var(--yellow-bg); }
.dl-table td { vertical-align: top; }
.dl-kind { display: inline-block; font-size: .75rem; padding: 0 7px; border-radius: 8px; background: var(--gray-bg); color: var(--muted); }
.dl-kind.dl-hearing, .dl-chip.dl-hearing { background: #e8eefb; color: #2b4c9b; }
.dl-kind.dl-answer, .dl-chip.dl-answer { background: var(--accent-soft); color: var(--accent); }
.dl-kind.dl-conclusion, .dl-chip.dl-conclusion { background: var(--yellow-bg); color: var(--yellow); }
.dl-month-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.dl-month-head h2 { margin: 0; min-width: 9rem; text-align: center; }
.dl-cal { width: 100%; border-collapse: collapse; table-layout: fixed; min-width: 640px; }
.dl-cal th { font-size: .8rem; color: var(--muted); font-weight: 600; padding: 4px; }
.dl-cal td { border: 1px solid var(--line); vertical-align: top; height: 84px; padding: 4px; }
.dl-cal td.off { background: var(--gray-bg); }
.dl-cal td.out .dl-day { color: #bbb; }
.dl-cal td.today { outline: 2px solid var(--accent); outline-offset: -2px; }
.dl-day { font-size: .8rem; color: var(--muted); margin-bottom: 2px; }
.dl-chip { display: block; font-size: .75rem; padding: 1px 5px; margin-top: 2px; border-radius: 5px; background: var(--gray-bg); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-chip.done { text-decoration: line-through; opacity: .55; }
.dl-tg { margin: .3rem 0 .6rem; padding-left: 1.2rem; }
@media (max-width: 700px) { .grid3 { grid-template-columns: 1fr; } .dl-row { grid-template-columns: 80px 1fr; } }
.dl-table { table-layout: fixed; width: 100%; }
.dl-table td:nth-child(1) { width: 110px; }
.dl-table td:nth-child(2) { width: 200px; }
.dl-table td:nth-child(4) { width: 280px; }
.dl-table td:nth-child(5) { width: 110px; text-align: right; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* Этап 3: эксперты в работе, гонорары и выплаты */
.po-payform, .po-fee { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0; }
.po-payform input[name=amount], .po-fee input[name=fee] { width: 8em; }
.po-payform input[type=date] { width: 10.5em; }
.po-forms { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 6px; }
.po-row { padding: 10px 0; border-top: 1px solid var(--line, #e5e7eb); }
.po-row:first-of-type { border-top: 0; }
.po-expert { padding: 10px 0; border-top: 1px solid var(--line, #e5e7eb); }
.po-expert:first-of-type { border-top: 0; }
.po-expert h3 { margin: 0 0 4px; font-size: 1rem; }
.tag.po-pay, .tag.po-pay_advance { background: var(--yellow-bg); color: var(--yellow); font-weight: 600; }
.tag.po-need_fee { background: #fde8e8; color: #b42318; }
.tag.po-done, .tag.po-closed { background: var(--accent-soft); color: var(--accent); }
.po-link { flex-wrap: wrap; }
.po-link select { min-width: 16em; max-width: 26em; }
.po-link .btn, .po-payform .btn, .po-fee .btn { white-space: nowrap; }
.po-payform select, .po-link select { width: auto; }
.po-payform input, .po-fee input { width: auto; }

/* п. 5.30 — дела от знакомых */
.friend-star { display: inline-block; color: #b7791f; font-weight: 600; white-space: nowrap; }
h1 .friend-star { font-size: .7em; vertical-align: middle; margin-left: 6px; }
.friend-card.friend-on { border-left: 4px solid #d69e2e; }
.friend-sec { border-left: 4px solid #d69e2e; }

/* п. 5.31 — меню: 7 пунктов, подвкладки раздела, «Ещё ▾» */
.main-nav { align-items: center; }
.more { position: relative; }
.more > summary { list-style: none; cursor: pointer; padding: 6px 10px; border-radius: 8px; color: var(--ink); white-space: nowrap; user-select: none; }
.more > summary::-webkit-details-marker { display: none; }
.more > summary:hover, .more[open] > summary { background: var(--bg); }
.more.on > summary { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.more-menu { position: absolute; top: calc(100% + 4px); left: 0; z-index: 20; min-width: 180px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 6px 20px rgba(0,0,0,.08); padding: 6px; display: flex; flex-direction: column; gap: 2px; }
.more-menu a { padding: 7px 10px; border-radius: 6px; }
.sub-nav { border-top: 1px solid var(--line); background: var(--surface); }
.sub-in { max-width: 1280px; margin: 0 auto; padding: 0 24px; display: flex; flex-wrap: wrap; gap: 4px; }
.sub-nav a { padding: 8px 12px; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.sub-nav a:hover { color: var(--ink); text-decoration: none; }
.sub-nav a.on { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
