/* The table (grid.js), carried over from Rheaface: every list and every table of a server. Tokens only; the pinned
   band is a shade of the row, as in Alpha; the accent marks what is chosen (a quick filter, the selected row, a saved
   view in use). */
.g { display: flex; flex-direction: column; height: 100%; min-height: 0; position: relative; }
.g-bar { display: grid; gap: 7px; padding: 9px 12px 8px; border-bottom: 1px solid var(--rule); }
.g-bar-1 { display: flex; align-items: center; gap: 8px; min-width: 0; }
.g .g-title { font: 600 15px/1.2 var(--f-ui); margin: 0; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.g-count { color: var(--ink-3); font-size: 12px; white-space: nowrap; }
.g-sp { flex: 1; }
.g-asof { color: var(--ink-3); font-size: 12px; white-space: nowrap; }
.g-tool { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--rule-2); background: var(--doc); color: var(--ink); border-radius: 8px;
  padding: 4px 10px; font-size: 12.5px; cursor: pointer; white-space: nowrap; }
.g-tool svg { width: 14px; height: 14px; flex: none; }
.g-tool:hover { border-color: var(--ink-3); }
.g-tool[hidden] { display: none; }
.g-tool.on { background: var(--accent-fill); color: var(--on-accent); border-color: var(--accent-fill); }
.g-bar-2 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.g-find { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--rule-2); border-radius: 8px; padding: 4px 8px; background: var(--doc); color: var(--ink-3); flex: 0 1 220px; min-width: 120px; }
.g-find svg { width: 14px; height: 14px; flex: none; }
.g-find input { border: 0; outline: 0; background: none; font: inherit; font-size: 13px; color: var(--ink); width: 100%; min-width: 0; }
.g-find:focus-within { border-color: var(--accent); }
.g-chips { display: contents; }
.g-quick, .g-pill { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--rule); background: var(--sheet); color: var(--ink-2);
  border-radius: 999px; padding: 3px 10px; font-size: 12.5px; white-space: nowrap; }
.g-quick { cursor: pointer; }
.g-quick .fig { color: var(--ink-3); }
.g-quick:hover { border-color: var(--rule-2); }
.g-quick[aria-pressed="true"] { background: var(--accent-fill); color: var(--on-accent); border-color: var(--accent-fill); }
.g-quick[aria-pressed="true"] .fig { color: var(--on-accent); }
.g-pill { background: var(--doc); border-color: var(--rule-2); padding-right: 3px; }
.g-pill button { border: 0; background: none; color: var(--ink-3); cursor: pointer; border-radius: 999px; padding: 0 6px; }
.g-pill button:hover { background: var(--sunk); color: var(--ink); }

.g-body { flex: 1 1 0; min-height: 0; overflow: auto; position: relative; outline: none; }
.g-body:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }
.g-head, .g-foot, .g-r { display: flex; min-width: var(--g-w); }
.g-head { position: sticky; top: 0; z-index: 3; background: var(--doc); border-bottom: 1px solid var(--rule-2); min-width: var(--g-hw, var(--g-w)); }
.g-hc { position: relative; flex: none; display: flex; align-items: center; background: var(--doc); }
.g-hc.pin { z-index: 4; background: color-mix(in srgb, var(--doc), var(--sunk) 55%); }
/* every column's heading ends with a line, the last one too (the owner, 2026-11-23: the last column "has not right
   border on header"); the pinned band's edge is the line it already has */
.g-hc:not(.g-add):not(.last-pin) { box-shadow: inset -1px 0 0 var(--rule); }
.g-hs { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; background: none; border: 0; padding: 7px 2px 7px 10px; cursor: pointer;
  font: 500 11px/1.2 var(--f-ui); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); text-align: left; }
.g-hc.n .g-hs { justify-content: flex-end; }
.g-hc[aria-sort="ascending"] .g-hs, .g-hc[aria-sort="descending"] .g-hs { color: var(--ink); }
.g-hl { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-ico { width: 13px; height: 13px; flex: none; opacity: .75; }
.g-dir { color: var(--accent-text); font-family: var(--f-fig); font-stretch: var(--fig-stretch); font-size: 10.5px; }
.g-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }
.g-hm { background: none; border: 0; color: var(--ink-3); cursor: pointer; padding: 4px 6px; font-size: 10px; opacity: 0; border-radius: 5px; margin-right: 4px; }
.g-hc:hover .g-hm, .g-hm:focus-visible { opacity: 1; }
.g-hm:hover { background: var(--sunk); color: var(--ink); }
.g-rs { position: absolute; right: -3px; top: 6px; bottom: 6px; width: 6px; cursor: col-resize; z-index: 5; }
.g-rs:hover { background: linear-gradient(to right, transparent 2px, var(--accent) 2px, var(--accent) 4px, transparent 4px); }
.g.sizing, .g.sizing * { cursor: col-resize; user-select: none; }   /* while a column is dragged wider */
.g-rows { position: relative; min-width: var(--g-w); }
.g-r { position: absolute; left: 0; height: 32px; align-items: center; border-bottom: 1px solid var(--rule); font-size: 13px; --rowbg: var(--doc); background: var(--rowbg); cursor: default; }
.g-r:hover { --rowbg: color-mix(in srgb, var(--sunk) 55%, var(--doc)); }
.g-r.sel { --rowbg: color-mix(in srgb, var(--accent-fill) 34%, var(--doc)); }
.g-r.grp { --rowbg: var(--sheet); cursor: pointer; }
.g-r.grp .g-c:first-child { overflow: visible; z-index: 2; }   /* a group's name may run into the empty cells beside it */
.g-c { flex: none; padding: 0 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 31px; height: 31px; }
.g-c.n { text-align: right; }
/* each column ends with a line, in the rows as in the header, so that the lines run through (the owner, 2026-11-23:
   "Gridlines are not aligned"); a group's line is one band */
.g-r:not(.grp) .g-c:not(.last-pin), .g-foot .g-c:not(.last-pin) { box-shadow: inset -1px 0 0 var(--rule); }
.g-c.pin { background: color-mix(in srgb, var(--rowbg), var(--sunk) 55%); }
.last-pin { box-shadow: 1px 0 0 var(--rule-2); }
.g-chev { display: inline-block; width: 14px; color: var(--ink-3); transition: transform .15s; }
.g-chev.open { transform: rotate(90deg); }
.g-n { color: var(--ink-3); font-size: 12px; margin-left: 2px; }
.g-foot { position: sticky; bottom: 0; z-index: 3; background: var(--sheet); border-top: 1px solid var(--rule-2); font-weight: 600; font-size: 13px; --rowbg: var(--sheet); }
.g-tag { display: inline-block; padding: 0 8px; border-radius: 6px; background: var(--sunk); color: var(--ink-2); font-size: 12px; line-height: 20px; vertical-align: 1px; }

/* pop-overs: a column's menu, the columns, the views */
.g-pop { position: absolute; z-index: 20; width: 290px; max-height: 62vh; overflow: auto; background: var(--doc); border: 1px solid var(--rule-2); border-radius: 12px; box-shadow: var(--doc-shadow); padding: 6px; }
.g-menu { display: grid; gap: 1px; }
.g-menu > button, .g-pop-row button, .g-viewrow button, .g-save button { text-align: left; background: none; border: 0; border-radius: 7px; padding: 6px 9px; font-size: 13px; color: var(--ink); cursor: pointer; }
.g-menu > button:hover, .g-pop-row button:hover, .g-viewrow button:hover { background: var(--sunk); }
.g-pop-sec { font: 500 10.5px/1.2 var(--f-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding: 10px 9px 4px; border-top: 1px solid var(--rule); margin-top: 4px; }
.g-menu > .g-pop-sec:first-child { border-top: 0; margin-top: 0; }
.g-vals { display: grid; max-height: 240px; overflow: auto; }
.g-val { display: flex; align-items: center; gap: 8px; padding: 4px 9px; font-size: 13px; border-radius: 6px; cursor: pointer; min-width: 0; }
.g-val:hover { background: var(--sunk); }
.g-val span:nth-of-type(1) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-val .fig { margin-left: auto; color: var(--ink-3); font-size: 11.5px; }
.g-val input, .g-colrow input { accent-color: var(--accent); margin: 0; }
.g-pop-find, .g-range input, .g-save input { width: 100%; border: 1px solid var(--rule-2); border-radius: 7px; padding: 5px 8px; font: inherit; font-size: 13px; background: var(--doc); color: var(--ink); }
.g-pop-find { margin: 2px 0 4px; }
.g-range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 9px 6px; }
.g-range label { display: grid; gap: 3px; font-size: 12px; color: var(--ink-3); }
.g-pop-row { display: flex; gap: 6px; justify-content: flex-end; padding: 6px 4px 2px; border-top: 1px solid var(--rule); margin-top: 4px; }
.g-pop-row button { color: var(--ink-2); font-size: 12.5px; }
.g-colrow { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 3px 6px 3px 9px; border-radius: 6px; }
.g-colrow:hover { background: var(--sunk); }
.g-colrow label { display: flex; align-items: center; gap: 7px; font-size: 13px; min-width: 0; cursor: pointer; }
.g-colrow label span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-colbtn { display: flex; flex: none; }
.g-colbtn button { background: none; border: 0; color: var(--ink-3); cursor: pointer; padding: 2px 6px; border-radius: 5px; }
.g-colbtn button:hover:not(:disabled) { background: var(--doc); color: var(--ink); }
.g-colbtn button:disabled { opacity: .3; cursor: default; }
.g-viewrow { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; border-radius: 7px; }
.g-viewrow.on { background: color-mix(in srgb, var(--accent-fill) 34%, var(--doc)); }
.g-menu > button[aria-current="true"], .g-pmonths button[aria-current="true"] { background: color-mix(in srgb, var(--accent-fill) 34%, var(--doc)); }   /* the period shown */
.g-pmonths { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; }
.g-pmonths button { background: none; border: 0; border-radius: 7px; padding: 6px 4px; font-size: 13px; color: var(--ink); cursor: pointer; }
.g-pmonths button:hover { background: var(--sunk); }
.g-viewrow [data-def], .g-viewrow [data-del], .g-viewrow [data-pin-co] { color: var(--ink-3); }
.g-viewrow [data-def][aria-pressed="true"], .g-viewrow [data-pin-co][aria-pressed="true"] { color: var(--accent); }   /* a default view, a pinned company */
.g-save { display: flex; gap: 6px; padding: 6px 4px 2px; border-top: 1px solid var(--rule); margin-top: 4px; }
.g-save button { background: var(--accent-fill); color: var(--on-accent); flex: none; }
.g-none { color: var(--ink-3); font-size: 12.5px; padding: 4px 9px; margin: 0; }

/* inside a box (a 360's documents): no title of its own, the tools as icons */
.g.compact .g-title { display: none; }
.g.compact .g-tool span { display: none; }
.g.compact .g-tool { padding: 4px 7px; }

/* the layouts (KK 2026-10-22): one set of rows as a table, cards, a board, a calendar or a timeline. The switch is
   a segmented control whose chosen part is raised, as the desk's activity bar raises its chosen activity; her gold
   still marks only what is chosen among the rows (a card, a chip, a bar). */
.g { container-type: inline-size; }
.g-seg { display: inline-flex; align-items: stretch; gap: 2px; padding: 2px; border-radius: 9px; background: var(--sunk); flex: none; }
.g-seg button { display: inline-flex; align-items: center; gap: 5px; border: 1px solid transparent; background: none; color: var(--ink-2); border-radius: 7px;
  padding: 2px 8px; font: inherit; font-size: 12.5px; line-height: 20px; cursor: pointer; white-space: nowrap; }
.g-seg svg { width: 14px; height: 14px; flex: none; }
.g-seg button:hover:not(:disabled) { color: var(--ink); }
.g-seg button[aria-pressed="true"] { background: var(--doc); color: var(--ink); border-color: var(--rule); box-shadow: var(--doc-shadow); }
.g-seg button:disabled { opacity: .4; cursor: default; }
@container (max-width: 1080px) { .g-lays button:not([aria-pressed="true"]) span { display: none; } }
@container (max-width: 760px) { .g-lays button span, .g-tool span, .g-asof { display: none; } .g-tool { padding: 4px 7px; } }
/* a table with the filter, the groups and a file's way in and out has six tools: their words give way first, so the
   title keeps its room (each tool keeps its icon and its title) */
@container (max-width: 1180px) { .g-tool span { display: none; } .g-tool { padding: 4px 7px; } }
.g.compact .g-lays { display: none; }   /* a table inside a box stays a table */
.g-bar-3 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.g-bar-3[hidden], .g-alt[hidden] { display: none; }
.g-set { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-3); white-space: nowrap; }
.g-set select { border: 1px solid var(--rule-2); border-radius: 8px; background: var(--doc); color: var(--ink); font: inherit; font-size: 12.5px; padding: 3px 6px; max-width: 220px; }
.g-set select:hover { border-color: var(--ink-3); }
.g-set-b { border: 1px solid var(--rule-2); background: var(--doc); color: var(--ink); border-radius: 8px; padding: 2px 9px; font: inherit; font-size: 12.5px; line-height: 20px; cursor: pointer; white-space: nowrap; }
.g-set-b:hover { border-color: var(--ink-3); }
.g-set-n { color: var(--ink-3); font-size: 12px; }
.g-month { display: inline-flex; align-items: center; gap: 6px; }
.g-month b { font-weight: 600; font-size: 13.5px; min-width: 9.5em; text-align: center; }
.g-nil { color: var(--ink-3); }
.g-alt { flex: 1 1 0; min-height: 0; overflow: auto; position: relative; outline: none; }
.g-alt:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }

/* cards and the board's cards: a title, its words, then the fields two to a line, each named */
.g-alt.cards { background: var(--sheet); }
/* the pivot: one column's values down, another's across, a sum or a count in each cell; the first column and the head
   stay in view, totals across each row and, where the table totals its rows, below; the chosen cell carries her gold */
.g-pv { border-collapse: separate; border-spacing: 0; font-size: 13px; min-width: 100%; }
.g-pv th, .g-pv td { padding: 0 12px; height: 31px; white-space: nowrap; border-bottom: 1px solid var(--rule); background: var(--doc); }
.g-pv thead th { position: sticky; top: 0; z-index: 2; border-bottom-color: var(--rule-2); text-align: right; font: 500 11px/1.2 var(--f-ui); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.g-pv thead th:first-child, .g-pv tbody th { position: sticky; left: 0; z-index: 1; text-align: left; border-right: 1px solid var(--rule); }
.g-pv thead th:first-child { z-index: 3; }
.g-pv tbody th { font-weight: 400; color: var(--ink); max-width: 280px; overflow: hidden; text-overflow: ellipsis; }
.g-pv td { text-align: right; }
.g-pv td[data-v] { cursor: pointer; }
.g-pv td[data-v]:hover { background: color-mix(in srgb, var(--sunk) 55%, var(--doc)); }
.g-pv td.sel { box-shadow: inset 0 0 0 2px var(--accent); }
.g-pv .tot, .g-pv tr.tot th, .g-pv tr.tot td { background: var(--sheet); font-weight: 600; }
.g-pv tr.tot th, .g-pv tr.tot td { position: sticky; bottom: 0; z-index: 1; border-top: 1px solid var(--rule-2); }
.g-pv tr.tot th { z-index: 2; }
.g-cards { position: relative; }
.g-cline { position: absolute; left: 14px; right: 14px; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 10px; }
.g-card { box-sizing: border-box; background: var(--doc); border: 1px solid var(--rule); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; min-width: 0; overflow: hidden; cursor: default; font-size: 13px; }
.g-card:hover { border-color: var(--rule-2); }
.g-card.sel { background: color-mix(in srgb, var(--accent-fill) 34%, var(--doc)); border-color: var(--accent); }
.g-card-t { flex: none; height: 22px; line-height: 22px; font-weight: 600; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.g-card-s { flex: none; height: 19px; line-height: 19px; font-size: 12.5px; color: var(--ink-2); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.g-card-f { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-auto-rows: 36px; column-gap: 12px; margin-top: 6px; }
.g-card-f > div { display: grid; align-content: center; min-width: 0; }
.g-card-f .l { font: 500 10.5px/14px var(--f-ui); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.g-card-f .v { line-height: 20px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.g-cgrp { position: absolute; left: 14px; right: 14px; height: 40px; display: flex; align-items: center; gap: 4px; font-size: 13px; cursor: pointer; border-bottom: 1px solid var(--rule-2); }
.g-sums { margin-left: auto; display: flex; gap: 16px; color: var(--ink-2); font-size: 12.5px; }

/* board: a column per value, each scrolling on its own */
.g-board { display: flex; gap: 10px; padding: 12px 14px; height: 100%; box-sizing: border-box; width: max-content; min-width: 100%; }
.g-bcol { flex: none; width: 268px; display: flex; flex-direction: column; min-height: 0; background: var(--sheet); border: 1px solid var(--rule); border-radius: 12px; }
.g-bhead { display: flex; align-items: baseline; gap: 6px; padding: 9px 12px 6px; font: 500 11px/1.3 var(--f-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.g-bhead b { font-weight: 600; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.g-bsum { margin-left: auto; letter-spacing: 0; text-transform: none; font-size: 12px; white-space: nowrap; }
.g-bscroll { flex: 1 1 0; min-height: 0; overflow-y: auto; overflow-x: hidden; }
.g-bin { position: relative; }
.g-bin .g-card { position: absolute; left: 8px; right: 8px; }
.g-bnone { color: var(--ink-3); font-size: 12px; padding: 6px 12px; margin: 0; }

/* calendar: weeks from Monday; a day holds what fits and opens the rest */
.g-cal { display: grid; grid-template-columns: repeat(7, minmax(96px, 1fr)); grid-template-rows: 26px; grid-auto-rows: var(--ch); min-width: 672px; }
.g-wd { position: sticky; top: 0; z-index: 1; background: var(--doc); font: 500 10.5px/26px var(--f-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding: 0 9px; border-bottom: 1px solid var(--rule-2); }
.g-day { box-sizing: border-box; display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow: hidden; padding: 3px 4px; background: var(--doc); border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.g-day.we { background: color-mix(in srgb, var(--sunk) 40%, var(--doc)); }
.g-day.out { color: var(--ink-3); }
.g-day.out .g-chip { opacity: .6; }
.g-dayh { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 4px; height: 22px; padding: 0 2px; }
.g-dayn { font-size: 12px; min-width: 22px; height: 22px; line-height: 22px; text-align: center; border-radius: 999px; }
.g-daysum { font-size: 11px; color: var(--ink-3); white-space: nowrap; }
.g-chip { flex: none; display: flex; justify-content: space-between; gap: 6px; height: 20px; line-height: 20px; padding: 0 6px; border-radius: 5px; background: var(--sunk); font-size: 12px; cursor: default; min-width: 0; }
.g-chip .t { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.g-chip .a { flex: none; color: var(--ink-2); font-size: 11.5px; }
.g-chip:hover { background: color-mix(in srgb, var(--sunk), var(--rule-2) 45%); }
.g-chip.sel { background: color-mix(in srgb, var(--accent-fill) 45%, var(--doc)); box-shadow: inset 0 0 0 1px var(--accent); }
.g-more { flex: none; border: 0; background: none; color: var(--ink-2); font: inherit; font-size: 11.5px; line-height: 18px; text-align: left; padding: 0 6px; cursor: pointer; }
.g-more:hover { color: var(--ink); text-decoration: underline; }
.g-daypop { gap: 3px; }
.g-day.today .g-dayn, .g-wcol.today .g-dayn { background: var(--ink); color: var(--doc); }

/* a calendar's week: a column a day, every item listed, each column scrolling on its own */
.g-week { display: grid; grid-template-columns: repeat(7, minmax(120px, 1fr)); height: 100%; min-width: 840px; }
.g-wcol { display: flex; flex-direction: column; min-height: 0; min-width: 0; background: var(--doc); border-right: 1px solid var(--rule); }
.g-wcol.we { background: color-mix(in srgb, var(--sunk) 40%, var(--doc)); }
.g-wh { flex: none; display: grid; grid-template-columns: auto auto minmax(0, 1fr); grid-template-rows: 22px 16px; align-items: center; column-gap: 6px; height: 48px; box-sizing: border-box;
  padding: 4px 8px 4px 10px; border-bottom: 1px solid var(--rule-2); font-size: 12px; color: var(--ink-3); }   /* the day, its count; its sum beneath, so a narrow day keeps it whole */
.g-wh .g-n { justify-self: end; }
.g-wh .g-daysum { grid-column: 1 / -1; justify-self: end; }
.g-wd2 { font: 500 10.5px/1 var(--f-ui); letter-spacing: .08em; text-transform: uppercase; }
.g-wh .g-dayn { color: var(--ink); font-size: 13px; }
.g-wscroll { flex: 1 1 0; min-height: 0; overflow-y: auto; overflow-x: hidden; }
.g-win { position: relative; }
.g-witem { position: absolute; left: 6px; right: 6px; height: 46px; box-sizing: border-box; padding: 4px 8px; border-radius: 7px; background: var(--sunk); display: grid; align-content: center; gap: 1px; font-size: 12.5px; cursor: default; }
.g-witem .t { font-weight: 500; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.g-witem .s { display: flex; justify-content: space-between; gap: 6px; min-width: 0; color: var(--ink-2); font-size: 11.5px; }
.g-witem .s > span:first-child { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.g-witem .a { flex: none; }
.g-witem:hover { background: color-mix(in srgb, var(--sunk), var(--rule-2) 45%); }
.g-witem.sel { background: color-mix(in srgb, var(--accent-fill) 45%, var(--doc)); box-shadow: inset 0 0 0 1px var(--accent); }

/* a calendar's year: a cell a day, one hue from the paper to the ink in four steps (lighter by night, as the ink is);
   a day with nothing stays blank; today ringed in ink, the chosen day in her gold */
.g-yearw { padding: 18px 14px 24px; display: grid; gap: 16px; justify-content: start; }
.g-year { display: grid; gap: 4px 8px; }
.g-year.wide { grid-template-columns: 30px auto; grid-template-areas: ". m" "d g"; }
.g-year.tall { grid-template-columns: 34px auto; grid-template-areas: ". d" "m g"; }
.g-ym { grid-area: m; display: grid; font-size: 11px; color: var(--ink-3); }
.g-year.wide .g-ym { grid-template-columns: repeat(var(--n), var(--c)); column-gap: 3px; }
.g-year.wide .g-ym span { grid-row: 1; grid-column: var(--at) / span 4; }
.g-year.tall .g-ym { grid-template-rows: repeat(var(--n), var(--c)); row-gap: 3px; }
.g-year.tall .g-ym span { grid-column: 1; grid-row: var(--at) / span 4; }
.g-ywd { grid-area: d; display: grid; gap: 3px; font: 500 10px/1 var(--f-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.g-year.wide .g-ywd { grid-template-rows: repeat(7, var(--c)); align-items: center; }
.g-year.tall .g-ywd { grid-template-columns: repeat(7, var(--c)); justify-items: center; align-items: end; }
.g-yg { grid-area: g; display: grid; gap: 3px; }
.g-year.wide .g-yg { grid-auto-flow: column; grid-template-rows: repeat(7, var(--c)); grid-auto-columns: var(--c); }
.g-year.tall .g-yg { grid-template-columns: repeat(7, var(--c)); grid-auto-rows: var(--c); }
.g-yc { box-sizing: border-box; width: var(--c); height: var(--c); border: 0; border-radius: 3px; padding: 0; display: grid; place-items: center; background: color-mix(in srgb, var(--sunk) 70%, var(--doc));
  font-family: var(--f-fig); font-stretch: var(--fig-stretch); font-size: 10px; color: var(--ink-3); cursor: default; }
.g-yc.none { background: none; }
.g-yc.l1 { background: color-mix(in srgb, var(--ink) 30%, var(--doc)); color: var(--ink); }   /* measured in both themes: steps 1.5–2.3:1 apart, */
.g-yc.l2 { background: color-mix(in srgb, var(--ink) 54%, var(--doc)); color: var(--on-mid); }   /* a day's number 4.6:1 or more */
.g-yc.l3 { background: color-mix(in srgb, var(--ink) 72%, var(--doc)); color: var(--doc); }
.g-yc.l4 { background: color-mix(in srgb, var(--ink) 90%, var(--doc)); color: var(--doc); }
.g-yc[data-yd]:hover { outline: 1px solid var(--ink-3); outline-offset: 1px; }
.g-yc.today { outline: 1.5px solid var(--ink); outline-offset: 1px; }
.g-yc.cur { outline: 2px solid var(--accent); outline-offset: 1px; }
.g-ylegend { --c: 12px; display: flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--ink-3); }
.g-ylegend > span:first-child { margin-right: 14px; }
.g-tip { position: absolute; z-index: 25; pointer-events: none; display: grid; gap: 2px; padding: 6px 9px; border-radius: 8px; background: var(--doc); border: 1px solid var(--rule-2); box-shadow: var(--doc-shadow); font-size: 12px; white-space: nowrap; }
.g-tip[hidden] { display: none; }
.g-daypop .g-chip { height: 26px; line-height: 26px; font-size: 13px; }

/* timeline: the names stay on the left, the scale on top; bars from start to end */
.g-tl { position: relative; }
.g-tl-head { position: sticky; top: 0; z-index: 3; height: 44px; background: var(--doc); border-bottom: 1px solid var(--rule-2); }
.g-tl-corner { position: sticky; left: 0; z-index: 2; box-sizing: border-box; width: 250px; height: 44px; display: flex; align-items: flex-end; padding: 0 10px 7px;
  background: var(--doc); border-right: 1px solid var(--rule-2); font: 500 11px/1.2 var(--f-ui); letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.g-tk { position: absolute; box-sizing: border-box; height: 22px; line-height: 22px; border-left: 1px solid var(--rule); white-space: nowrap; font-size: 11.5px; color: var(--ink-2); }
.g-tk.top { top: 0; }
.g-tk.top > span { position: sticky; left: 256px; padding: 0 6px; }   /* the month's name stays in view while the month is */
.g-tk.bot { top: 22px; overflow: hidden; color: var(--ink-3); font-size: 11px; padding-left: 4px; }
.g-tk.we { background: color-mix(in srgb, var(--sunk) 40%, var(--doc)); }
.g-tl-grid { position: absolute; top: 44px; bottom: 0; left: 0; width: 100%; pointer-events: none; }
.g-gl { position: absolute; top: 0; bottom: 0; border-left: 1px solid var(--rule); opacity: .6; }
.g-gl.we { background: color-mix(in srgb, var(--sunk) 40%, transparent); }
.g-tl-now { position: absolute; top: 0; bottom: 0; border-left: 2px solid var(--ink-2); opacity: .55; }
.g-tl-rows { position: absolute; top: 44px; left: 0; width: 100%; }
.g-tl-r { position: absolute; left: 0; width: 100%; height: 32px; border-bottom: 1px solid var(--rule); --rowbg: var(--doc); font-size: 13px; cursor: default; }
.g-tl-r:hover { --rowbg: color-mix(in srgb, var(--sunk) 55%, var(--doc)); background: color-mix(in srgb, var(--sunk) 30%, transparent); }
.g-tl-r.sel { --rowbg: color-mix(in srgb, var(--accent-fill) 34%, var(--doc)); background: color-mix(in srgb, var(--accent-fill) 18%, transparent); }
.g-tl-r.grp { --rowbg: var(--sheet); background: var(--sheet); cursor: pointer; }
.g-tl-l { position: sticky; left: 0; z-index: 1; box-sizing: border-box; width: 250px; height: 31px; display: flex; align-items: center; gap: 8px; padding: 0 10px; background: var(--rowbg); border-right: 1px solid var(--rule-2); }
.g-tl-l .t { flex: 0 1 auto; min-width: 0; font-weight: 500; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.g-tl-l .s { flex: 1 1 0; min-width: 0; color: var(--ink-3); font-size: 12px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.g-tl-bar { position: absolute; top: 8px; height: 15px; box-sizing: border-box; border-radius: 4px; background: color-mix(in srgb, var(--ink-3) 26%, var(--doc)); border: 1px solid color-mix(in srgb, var(--ink-3) 45%, var(--doc)); }
.g-tl-pt { position: absolute; top: 10px; width: 11px; height: 11px; margin-left: -5.5px; transform: rotate(45deg); background: color-mix(in srgb, var(--ink-3) 45%, var(--doc)); }
.g-tl-r.sel .g-tl-bar, .g-tl-r.sel .g-tl-pt { background: var(--accent-fill); border-color: var(--accent); }
.g-tl-lab { position: absolute; top: 0; line-height: 31px; white-space: nowrap; font-size: 12px; color: var(--ink-2); pointer-events: none; }
.g-tl-lab.in { color: var(--ink); }

/* what the drawing hands a layout in its own style (how many cards to a line, a calendar's day, where a month
   begins in a year): the values these stand at until it does */
.g-cards, .g-year { --n: 1; }
.g-cal { --ch: 88px; }
.g-ym span { --at: 1; }

/* a short note to the person at the foot of the table: a view saved, a row copied */
.g-note { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 30; max-width: calc(100% - 28px); padding: 7px 12px; border-radius: 8px;
  background: var(--ink); color: var(--doc); font-size: 12.5px; box-shadow: var(--doc-shadow); }
.g-note[hidden] { display: none; }

/* where the caller lets columns be changed (the table editor, docs/adr/0013): the "+" at the end of the header, and
   the line under the header of a table with no rows */
.g-hc.g-add { justify-content: center; }
.g-addc { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 26px; border: 0; border-radius: 7px; background: none; color: var(--ink-3); cursor: pointer; }
.g-addc svg { width: 15px; height: 15px; }
.g-addc:hover, .g-addc:focus-visible { background: var(--sunk); color: var(--ink); }
.g-pop-sec.g-pop-gap { padding: 0; margin: 4px 0; }
.g-empty { position: sticky; left: 0; margin: 0; padding: 14px 12px; color: var(--ink-3); font-size: 13px; }

/* Novi's filter and group builders (docs/adr/0013, item 2): a wide box of conditions, "Where" and then and or or
   before each, groups inside groups in a box of their own; the conditions as pills over the table */
.g-pop.g-wide { width: min(640px, calc(100% - 16px)); }
.g-fb { gap: 6px; }
.g-fb-group { display: grid; gap: 6px; }
.g-fb-group.sub { flex: 1; min-width: 0; padding: 8px; border: 1px solid var(--rule-2); border-radius: 9px; background: var(--sheet); }
.g-fb-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.g-fb-row.g-fb-sub { align-items: flex-start; flex-wrap: nowrap; }
.g-fb-where { width: 52px; flex: none; padding-left: 4px; font-size: 12.5px; color: var(--ink-2); }
.g-fb-row select, .g-fb-row input, .g-gb-row select { border: 1px solid var(--rule-2); border-radius: 7px; padding: 4px 7px; font: inherit; font-size: 12.5px; background: var(--doc); color: var(--ink); min-width: 0; }
.g-fb-row input { width: 130px; }
.g-fb-and { color: var(--ink-3); font-size: 12px; }
.g-fb-x { border: 0; background: none; color: var(--ink-3); cursor: pointer; border-radius: 6px; padding: 3px 6px; margin-left: auto; }
.g-fb-x:hover { background: var(--sunk); color: var(--ink); }
.g-fb-head { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--ink-3); }
.g-fb-adds { display: flex; gap: 4px; }
.g-fb-adds button, .g-gb-row .g-seg button { background: none; border: 0; border-radius: 7px; padding: 4px 8px; font-size: 12.5px; color: var(--ink-2); cursor: pointer; }
.g-fb-adds button:hover { background: var(--sunk); color: var(--ink); }
.g-join { width: 52px; flex: none; border: 1px solid var(--rule-2); border-radius: 999px; background: var(--doc); color: var(--accent-text); font-size: 11.5px; padding: 2px 0; cursor: pointer; text-transform: uppercase; letter-spacing: .04em; }
.g-chips .g-join { width: auto; padding: 2px 8px; }
.g-join:hover { border-color: var(--accent); }
.g-wpill .g-wopen { border: 0; background: none; color: inherit; font: inherit; cursor: pointer; padding: 0; }
.g-gb-row { display: flex; align-items: center; gap: 8px; padding: 4px 6px 6px; }
.g-gb-row .g-seg { display: inline-flex; border: 1px solid var(--rule-2); border-radius: 999px; padding: 2px; gap: 2px; }
.g-gb-row .g-seg button { border-radius: 999px; }
.g-gb-row .g-seg button[aria-pressed="true"] { background: var(--ink); color: var(--sheet); }

/* where rows are written by hand, the last card adds one, and the row being written stands tinted as the last card */
.g-cadd { align-items: center; justify-content: center; gap: 8px; flex-direction: row; border-style: dashed; color: var(--ink-2); font: inherit; font-size: 13px; cursor: pointer; }
.g-cadd svg { width: 16px; height: 16px; flex: none; }
.g-cadd:hover, .g-cadd:focus-visible { border-color: var(--accent); color: var(--ink); }
.g-card.draft { background: color-mix(in srgb, var(--accent-fill) 14%, var(--doc)); }
.g-card.draft.sel { background: color-mix(in srgb, var(--accent-fill) 34%, var(--doc)); }

/* the board: a lane's "+" in its header, and the card that ends it */
.g-badd { margin-left: auto; align-self: center; display: inline-grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--ink-2); cursor: pointer; }
.g-badd svg { width: 14px; height: 14px; }
.g-badd:hover, .g-badd:focus-visible { background: var(--sunk); color: var(--ink); }
.g-bsum + .g-badd { margin-left: 0; }
