:root {
  --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --s4: #eda100; --s5: #e87ba4; --s6: #008300; --s7: #4a3aa7; --s8: #e34948;
  --bg: #f5f6f8; --card: #fff; --text: #1c2230; --muted: #667085; --line: #d8dce3;
  --accent: #1f5fbf; --accent-text: #fff; --error: #b42318; --error-bg: #fdecea; --ok: #12805c; --warn: #b54708;
}
@media (prefers-color-scheme: dark) {
  :root { --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500; --s5: #d55181; --s6: #008300; --s7: #9085e9; --s8: #e66767;
          --bg: #12151b; --card: #1b2029; --text: #e6e9ef; --muted: #98a2b3; --line: #2c3340;
          --accent: #5b9bf3; --accent-text: #0b1220; --error: #ff8a80; --error-bg: #3a1d1d; --ok: #4cc38a; --warn: #f5a524; }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--accent); }
main { max-width: 1200px; margin: 24px auto; padding: 0 16px; }
h1 { margin: 0 0 16px; font-size: 1.4rem; }
h2 { font-size: 1.1rem; margin: 24px 0 10px; }
h3 { font-size: .95rem; margin: 16px 0 6px; }

/* top bar */
.top { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; align-items: center; padding: 12px 16px; background: var(--card); border-bottom: 1px solid var(--line); }
.brand { font-weight: 700; color: var(--text); text-decoration: none; display: inline-flex; align-items: center; }
.brand img { height: 48px; width: auto; display: block; }
@media (prefers-color-scheme: dark) { .brand img { filter: brightness(0) invert(1); } }
nav { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; }
.top nav a { text-decoration: none; color: var(--text); }
.top nav a[aria-current="page"] { color: var(--accent); font-weight: 600; }

/* building blocks */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 20px 24px; }
section.card { margin-bottom: 16px; }
.narrow { max-width: 380px; margin: 48px auto; }
.medium { max-width: 720px; }
.flush { padding: 0; overflow-x: auto; }
.bar { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; margin-bottom: 16px; }
.bar h1 { margin: 0 auto 0 0; }
.muted { color: var(--muted); font-size: .9rem; }
.small { font-size: .85rem; }
.error { color: var(--error); background: var(--error-bg); padding: 8px 12px; border-radius: 6px; margin-bottom: 14px; }
.error div + div { margin-top: 4px; }
.flash { background: var(--card); border: 1px solid var(--accent); border-left-width: 4px; padding: 8px 12px; border-radius: 6px; }

/* forms */
label { display: block; margin: 0 0 14px; font-weight: 600; font-size: .95rem; }
label .muted { font-weight: 400; }
input, select, textarea { display: block; width: 100%; margin-top: 4px; padding: 9px 10px; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; }
textarea { resize: vertical; }
fieldset { border: 1px solid var(--line); border-radius: 8px; margin: 0 0 14px; padding: 12px 14px 0; }
legend { font-weight: 600; padding: 0 6px; }
button, .button { display: inline-block; padding: 9px 18px; font: inherit; font-weight: 600; color: var(--accent-text); background: var(--accent); border: 1px solid var(--accent); border-radius: 6px; cursor: pointer; text-decoration: none; }
button.secondary, .button.secondary { color: var(--accent); background: transparent; }
button.danger { color: var(--error); border-color: var(--error); }
button.link { padding: 0; background: none; border: 0; color: var(--accent); font-weight: 400; text-decoration: underline; }
form.inline { display: inline; margin: 0; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 16px; }
.grid4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0 16px; }
.search { display: flex; gap: 8px; flex-wrap: wrap; }
.search input, .search select { width: auto; margin: 0; }

/* lists */
table.list { width: 100%; border-collapse: collapse; }
table.list th, table.list td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.list th { font-size: .85rem; color: var(--muted); font-weight: 600; }
table.list tr:last-child td { border-bottom: 0; }
.num { text-align: right !important; white-space: nowrap; font-variant-numeric: tabular-nums; }
.c { text-align: center !important; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
td.job { min-width: 160px; }
.row-actions { text-align: right; }
button.icon { padding: 2px 7px; font-size: 1rem; line-height: 1.4; color: var(--text); background: transparent; border: 1px solid var(--line); border-radius: 6px; }
button.icon:hover:not(:disabled) { border-color: var(--accent); }
button.icon:disabled { opacity: .35; cursor: not-allowed; }
.sheet .job-title { margin: 0 0 6px; font-size: 1.15rem; color: #1c2230; }
.upper { text-transform: uppercase; }
.status { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: .8rem; font-weight: 600; border: 1px solid var(--line); white-space: nowrap; }
.s-paid, .s-accepted { color: var(--ok); border-color: var(--ok); }
.s-overdue, .s-declined { color: var(--error); border-color: var(--error); }
.s-sent, .s-partial { color: var(--accent); border-color: var(--accent); }
.s-needs_review, .s-changes_requested { color: var(--warn); border-color: var(--warn); }
.stats { display: flex; flex-wrap: wrap; gap: 16px 32px; padding: 16px 24px; list-style: none; margin: 0 0 8px; }
.stats strong { display: block; font-size: 1.5rem; }
.stats a { color: var(--text); text-decoration: none; }

/* customers */
.profiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.profile .actions { margin-top: 10px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.profile.add { display: flex; align-items: center; justify-content: center; text-decoration: none; min-height: 90px; }

/* the line editor */
table.lines { width: 100%; border-collapse: collapse; }
table.lines th { font-size: .85rem; color: var(--muted); text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
table.lines td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.lines td.grip-cell + td { min-width: 240px; width: 55%; }   /* the item column (after the grip) */
table.lines input, table.lines textarea { margin: 0 0 4px; }
table.lines .qty { width: 80px; text-align: right; }
table.lines .price { width: 110px; text-align: right; }
table.lines .adj { width: 64px; text-align: right; }
table.lines td.amount { padding-top: 16px; }
table.lines input[type=checkbox] { width: auto; margin-top: 12px; display: inline-block; }
.line-tools { padding: 10px 12px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.totals { display: grid; grid-template-columns: auto auto; justify-content: end; gap: 4px 24px; margin: 8px 0; }
.totals dt { color: var(--muted); }
.totals dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.totals dt:last-of-type, .totals dd:last-of-type { font-weight: 700; color: var(--text); }
.sticky-actions { position: sticky; bottom: 0; background: var(--bg); padding: 12px 0; display: flex; gap: 16px; align-items: center; }

/* a document's page */
.doc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
@media (max-width: 900px) { .doc-layout { grid-template-columns: 1fr; } }
.stack { display: grid; gap: 8px; }
.stack form, .stack button, .stack .button { width: 100%; text-align: center; }
.copy { display: flex; gap: 6px; }
.copy input { margin: 0; font-size: .8rem; }
.pay { display: flex; gap: 8px; align-items: baseline; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.pay-form { margin-top: 12px; }
.events { list-style: none; padding: 0; margin: 0; font-size: .85rem; }
.events li { padding: 3px 0; }

/* the document sheet: always light, like paper */
.sheet { background: #fff; color: #1c2230; border: 1px solid var(--line); border-radius: 10px; padding: 36px 40px; font-size: .95rem; }
.sheet-head { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.sheet .from-name { font-size: 1.4rem; font-weight: 700; }
.sheet .logo { max-width: 220px; max-height: 90px; }
/* The shop's web address, centred at the foot of the sheet in the logo's blue. */
.sheet-foot { margin-top: 32px; text-align: center; }
.sheet-foot a { color: #0e6a99; text-decoration: none; font-weight: 600; letter-spacing: .03em; }
.sheet .kind { font-size: 1.6rem; font-weight: 700; text-align: right; letter-spacing: .02em; text-transform: uppercase; }
.sheet table.meta { margin-left: auto; border-collapse: collapse; }
.sheet table.meta th { text-align: right; color: #667085; font-weight: 500; padding: 2px 10px 2px 0; }
.sheet table.meta td { text-align: right; padding: 2px 0; }
.sheet table.meta tr.due th, .sheet table.meta tr.due td { font-weight: 700; color: #1c2230; }
.sheet .label { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; color: #667085; }
.sheet .strong { font-weight: 600; }
.sheet .to { margin-bottom: 20px; }
.sheet .desc { margin: 0 0 16px; }
.sheet table.items { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.sheet table.items th { text-align: left; font-size: .8rem; text-transform: uppercase; color: #667085; border-bottom: 2px solid #1c2230; padding: 6px 8px; }
.sheet table.items td { border-bottom: 1px solid #e4e7ec; padding: 8px; vertical-align: top; }
.sheet table.items .small { color: #475467; }
.sheet .tx { color: #667085; margin-left: 2px; }
.sheet table.sums { margin-left: auto; border-collapse: collapse; min-width: 260px; }
.sheet table.sums th { text-align: left; font-weight: 500; color: #475467; padding: 4px 16px 4px 0; }
.sheet table.sums td { text-align: right; padding: 4px 0; font-variant-numeric: tabular-nums; }
.sheet table.sums tr.grand th, .sheet table.sums tr.grand td { font-weight: 700; color: #1c2230; border-top: 1px solid #1c2230; padding-top: 6px; }
.sheet .terms { margin-top: 28px; font-size: .85rem; color: #475467; }
@media (max-width: 600px) { .sheet { padding: 20px 16px; } .sheet .kind, .sheet table.meta { text-align: left; margin-left: 0; } }

/* the client's page */
body.bare main { max-width: 860px; }
.client-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 16px 0; }

@media print {
  .top, .no-print, .doc-side, .flash, .client-actions { display: none !important; }
  body, main { background: #fff; margin: 0; padding: 0; max-width: none; }
  .doc-layout { display: block; }
  .sheet { border: 0; border-radius: 0; padding: 0; }
  @page { margin: 16mm; }
}

/* the product picker */
.picker { display: flex; flex-wrap: wrap; gap: 0 12px; align-items: end; padding: 12px; border-top: 1px solid var(--line); }
.picker label { margin-bottom: 8px; }
.picker select { min-width: 220px; }
.picker .pk-qty input, .picker .pk-size input { width: 90px; }
.pk-options { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.pk-opt { font-weight: 400; margin: 0 0 8px; }
.inline-check { display: inline-block; width: auto; margin: 0 4px 0 0; vertical-align: middle; }
#pk-add { margin-bottom: 8px; }
tr.group th { background: var(--bg); color: var(--text) !important; font-size: .9rem !important; }

/* the client's answer box */
.answer { margin-top: 16px; }
.answer details { margin-top: 16px; }
.answer summary { cursor: pointer; color: var(--accent); }

/* charts (app/Chart.php) */
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart text { font: 12px system-ui, sans-serif; fill: var(--muted); }
.chart .label, .chart .value { fill: var(--text); font-size: 13px; }
.chart .center { fill: var(--text); font-size: 20px; font-weight: 700; }
.chart .line { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .dot { stroke: var(--card); stroke-width: 2; }
.chart .hit { fill: transparent; }
.chart .pt:hover .dot { r: 6; }
.chart .slice, .chart rect { stroke: var(--card); stroke-width: 2; }
.chart .bar:hover rect, .chart g:hover .slice { opacity: .85; }
.chart .line.s1 { stroke: var(--s1); } .chart .s1:not(.line) { fill: var(--s1); } .legend .sw.s1 { background: var(--s1); }
.chart .line.s2 { stroke: var(--s2); } .chart .s2:not(.line) { fill: var(--s2); } .legend .sw.s2 { background: var(--s2); }
.chart .line.s3 { stroke: var(--s3); } .chart .s3:not(.line) { fill: var(--s3); } .legend .sw.s3 { background: var(--s3); }
.chart .line.s4 { stroke: var(--s4); } .chart .s4:not(.line) { fill: var(--s4); } .legend .sw.s4 { background: var(--s4); }
.chart .line.s5 { stroke: var(--s5); } .chart .s5:not(.line) { fill: var(--s5); } .legend .sw.s5 { background: var(--s5); }
.chart .line.s6 { stroke: var(--s6); } .chart .s6:not(.line) { fill: var(--s6); } .legend .sw.s6 { background: var(--s6); }
.chart .line.s7 { stroke: var(--s7); } .chart .s7:not(.line) { fill: var(--s7); } .legend .sw.s7 { background: var(--s7); }
.chart .line.s8 { stroke: var(--s8); } .chart .s8:not(.line) { fill: var(--s8); } .legend .sw.s8 { background: var(--s8); }
.legend { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .9rem; }
.legend .sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.donut-wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
.donut-wrap .donut { width: 170px; flex: none; }
.donut-wrap .legend { flex-direction: column; flex: 1; min-width: 160px; }
.donuts { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px 24px; }
.grid-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 0 16px; }
@media (max-width: 500px) { .grid-charts { grid-template-columns: 1fr; } }
.chart-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.chart-head h2 { margin-top: 0; }
.table-view { margin-top: 10px; }
.table-view summary { cursor: pointer; color: var(--accent); font-size: .9rem; }
.report-filters { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: end; margin-bottom: 16px; }
.report-filters label { margin: 0; }
.report-filters select, .report-filters input { width: auto; }
.range-note { flex-basis: 100%; margin: 0; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg a { padding: 8px 14px; text-decoration: none; color: var(--text); }
.seg a + a { border-left: 1px solid var(--line); }
.seg a[aria-current] { background: var(--accent); color: var(--accent-text); font-weight: 600; }
.tiles li { min-width: 150px; }
.kinds { margin-bottom: 12px; }
.start-search input { min-width: 260px; flex: 1; }
.pick { border-top: 1px solid var(--line); padding: 10px 0; }
.pick-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 6px 0 0 12px; }

.stack.spaced { margin-top: 12px; }
.chart .ring { fill: none; }
.chart .ring.r1 { stroke: var(--s1); }
.chart .ring.r2 { stroke: var(--s2); }
.chart .ring.r3 { stroke: var(--s3); }
.chart .ring.r4 { stroke: var(--s4); }
.chart .ring.r5 { stroke: var(--s5); }
.chart .ring.r6 { stroke: var(--s6); }
.chart .ring.r7 { stroke: var(--s7); }
.chart .ring.r8 { stroke: var(--s8); }

/* the product drill-down */
.crumbs { margin: 4px 0 6px; }
.crumbs a { text-decoration: none; }
.bar-link { cursor: pointer; }
.bar-link:hover .label { text-decoration: underline; }
.bar-link:focus-visible rect { outline: 2px solid var(--accent); }
textarea.mono { font-family: ui-monospace, Consolas, monospace; font-size: .85rem; }

/* sortable headings */
button.sort { all: unset; cursor: pointer; font: inherit; color: inherit; }
button.sort:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
th[aria-sort] button.sort { color: var(--text); }
th[aria-sort="ascending"] button.sort::after { content: " ▲"; font-size: .75em; }
th[aria-sort="descending"] button.sort::after { content: " ▼"; font-size: .75em; }

#results[aria-busy] { opacity: .6; transition: opacity .15s; }

/* the cycles slider */
.cycles { margin: 0 0 6px; }
.cycles label { display: flex; align-items: center; gap: 10px; font-weight: 600; margin: 0; flex-wrap: wrap; }
.cycles input[type=range] { width: 180px; margin: 0; accent-color: var(--accent); padding: 0; border: 0; background: transparent; }
.cycles output { font-weight: 400; color: var(--muted); }

#over-time-body[aria-busy] { opacity: .6; transition: opacity .15s; }

/* The public home page: just the logo, centred. */
.home-logo { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px; }
.home-logo img { max-width: min(480px, 80vw); max-height: 50vh; }
/* A tick box with its words on one line ("Remember this browser"). */
label.check { display: flex; align-items: center; gap: .5rem; font-weight: normal; }
label.check input { width: auto; margin: 0; }

/* The client's answer: Approve (an e-signature) or Revise, each in its own panel (sign.js). */
@font-face { font-family: 'DancingScript'; src: url(/assets/fonts/DancingScript.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'GreatVibes'; src: url(/assets/fonts/GreatVibes.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Sacramento'; src: url(/assets/fonts/Sacramento.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Allura'; src: url(/assets/fonts/Allura.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'HomemadeApple'; src: url(/assets/fonts/HomemadeApple.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Caveat'; src: url(/assets/fonts/Caveat.woff2) format('woff2'); font-weight: 600; font-display: swap; }
.font-DancingScript { font-family: 'DancingScript', cursive; font-weight: 600; }
.font-GreatVibes { font-family: 'GreatVibes', cursive; }
.font-Sacramento { font-family: 'Sacramento', cursive; }
.font-Allura { font-family: 'Allura', cursive; }
.font-HomemadeApple { font-family: 'HomemadeApple', cursive; }
.font-Caveat { font-family: 'Caveat', cursive; font-weight: 600; }
.answer-choices { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0 4px; }
.answer-choices button[aria-expanded="true"] { box-shadow: 0 0 0 3px rgba(14, 106, 153, .25); }
.answer-panel { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.answer-panel h3 { margin: 0 0 12px; font-size: 1.05rem; }
.answer-panel .error[hidden] { display: none; }
/* A client's signature on the sheet. */
.sheet .signed { margin-top: 24px; padding-top: 12px; border-top: 1px solid #e4e7ec; }
.sheet .signed img { display: block; max-width: 320px; max-height: 90px; margin: 4px 0; }
/* The client's change request, on the document page. */
.card.asked { border-color: var(--warn); border-left-width: 4px; }
/* The signing panel: the name box is the signature (paper white, dark ink, a handwriting style picked with ◀ ▶),
   or a white pad drawn on with a pen cursor. */
.sign-how { max-width: 320px; }
.sign-name { display: flex; align-items: center; gap: 8px; }
.sign-input { flex: 1; min-width: 0; height: 84px; margin: 0; padding: 4px 14px; text-align: center; font-size: 2.3rem; line-height: 1;
  color: #1c2230; background: #fff; border: 1px solid #c9ced6; border-radius: 8px; }
.sign-input::placeholder { color: #9aa3b2; font-size: 1.6rem; }
.font-HomemadeApple.sign-input { font-size: 1.7rem; }
.sign-input.plain { height: 46px; font: inherit; text-align: left; }
.sign-input.plain::placeholder { font-size: 1rem; }
.sign-step { flex: none; width: 44px; height: 44px; padding: 0; font-size: 1.1rem; line-height: 1; }
.sign-dots { display: flex; justify-content: center; gap: 7px; margin: 10px 0 16px; }
.sign-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.sign-dots span.on { background: var(--accent); }
.sign-draw { margin-bottom: 14px; }
.sign-pad { display: block; width: 100%; height: 190px; background: #fff; border: 1px solid #c9ced6; border-radius: 8px;
  touch-action: none; cursor: url(/assets/pen.svg) 2 30, crosshair; }
.sign-draw [data-sign-name-slot] { margin-top: 12px; }
.sign-agree { align-items: flex-start; margin: 6px 0 14px; }
.sign-agree input { margin-top: 3px; }
/* The email pop-up on a document's page. */
.email-dialog { width: min(560px, calc(100vw - 32px)); padding: 22px 24px; color: var(--text); background: var(--card);
  border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 50px rgba(0, 0, 0, .3); }
.email-dialog::backdrop { background: rgba(10, 14, 22, .55); }
.email-dialog h2 { margin: 0 0 14px; font-size: 1.15rem; }
.email-dialog label { margin-bottom: 10px; }
.email-dialog textarea { min-height: 110px; }
.email-dialog .small { margin: -4px 0 12px; }
.dialog-buttons { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }
.email-dialog .error[hidden] { display: none; }
/* Year groups in the document lists: a bar per year that opens or closes its rows. */
.list tbody.year-head th { padding: 0; background: var(--bg); border-top: 1px solid var(--line); }
.year-bar { display: flex; align-items: center; gap: 8px; width: 100%; padding: 10px 14px; text-align: left; font: inherit;
  color: var(--text); background: transparent; border: 0; border-radius: 0; cursor: pointer; }
button.year-bar:hover { background: var(--card); }
.year-bar.static { cursor: default; font-weight: 600; }
.year-arrow::before { content: "▸"; display: inline-block; width: 1em; color: var(--accent); }
.year-bar[aria-expanded="true"] .year-arrow::before { content: "▾"; }
/* An open year's bar stands out in the accent blue, the links' and buttons' colour in either mode (Ian, 2026-10-21);
   closed ones stay quiet. */
.list tbody.year-head th:has(button.year-bar[aria-expanded="true"]) { background: var(--accent); border-top-color: var(--accent); }
button.year-bar[aria-expanded="true"], button.year-bar[aria-expanded="true"] .muted,
button.year-bar[aria-expanded="true"] .year-arrow::before { color: var(--accent-text); }
button.year-bar[aria-expanded="true"]:hover { background: rgba(255, 255, 255, .08); }
/* Moving line items: a grip at the start of each line; the line being moved is outlined. */
.lines .grip-col, .lines .grip-cell { width: 28px; padding-left: 6px; padding-right: 0; vertical-align: top; }
.grip { padding: 6px 4px; font-size: 1.1rem; line-height: 1; letter-spacing: -3px; color: var(--muted); background: none; border: 0;
  cursor: grab; touch-action: none; user-select: none; }
.grip:hover, .grip:focus-visible { color: var(--accent); }
.grip:active { cursor: grabbing; }
.lines tr.dragging { opacity: .65; outline: 2px dashed var(--accent); outline-offset: -2px; }
