/* S1 role Homes and My projects. Every selector starts with .s1h- / .s1p- or sits under .s1-home, so nothing here
 * touches a classic page. Tokens come from s1-tokens.css. Color carries meaning only: red late, blue waiting on a
 * person, amber due soon, green done. Everything else is ink and gray. */
.s1-home { --h-gap: var(--s1-panel-gap); max-width: none; width: 100%; box-sizing: border-box; padding: calc(20px * var(--s1-scale, 1)) var(--s1-gutter) calc(64px * var(--s1-scale, 1)); font: var(--s1-text-base)/1.45 var(--s1-font-ui); color: var(--s1-ink); }
.s1-home *, .s1-home *::before, .s1-home *::after { box-sizing: border-box; }
.s1-home a { color: inherit; }
.s1-home h1, .s1-home h2, .s1-home h3, .s1-home p, .s1-home ul { margin: 0; padding: 0; }
.s1-home ul { list-style: none; }
.s1-home .s1-icon { flex: none; }
/* ---- header ---- */
.s1-home > .k-head { margin-bottom: 18px; }
/* ---- buttons, pills, chips ---- */
.s1h-btn { display: inline-flex; align-items: center; justify-content: center; gap: calc(6px * var(--s1-scale, 1)); border: 1px solid var(--s1-ink); border-radius: var(--s1-radius-control); padding: calc(9px * var(--s1-scale, 1)) calc(16px * var(--s1-scale, 1)); background: var(--s1-ink); color: var(--s1-on-ink) !important; font: 700 var(--s1-fs-3) var(--s1-font-ui); cursor: pointer; text-decoration: none; white-space: nowrap; transition: background var(--s1-dur-2) var(--s1-ease), transform var(--s1-dur-1) var(--s1-ease), box-shadow var(--s1-dur-2) var(--s1-ease); }
.s1h-btn:hover { background: var(--s1-ink-hover); box-shadow: 0 2px 8px rgba(17, 19, 24, .18); }
.s1h-btn:active { transform: translateY(1px) scale(.985); }
.s1h-btn[disabled] { opacity: .55; cursor: progress; }
.s1h-btn--ghost { background: var(--s1-panel); color: var(--s1-ink) !important; border-color: var(--s1-line); font-weight: 600; }
.s1h-btn--ghost:hover { background: var(--s1-panel-head); box-shadow: none; }
.s1h-btn--sm { padding: calc(6px * var(--s1-scale, 1)) calc(12px * var(--s1-scale, 1)); font-size: var(--s1-text-small); }
.s1h-mark { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--s1-ink); color: var(--s1-on-ink); font: 800 var(--s1-fs-1) var(--s1-font-ui); letter-spacing: .02em; flex: none; }
.s1h-mark--img { position: relative; overflow: hidden; }
.s1h-mark--img > .k-pm-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; background: var(--s1-panel); }
/* ---- tiles ---- */
/* ---- layout ---- */
/* ---- panels ---- */
.s1h-panel { background: none; border: 0; border-top: 1px solid var(--s1-line-soft); border-radius: 0; overflow: clip; scroll-margin-top: 90px; }
/* A closed panel is its header band only; one click opens it (progressive reveal). */
.s1h-panel [hidden] { display: none; }
/* Group header inside a list: a tone dot, the label and its count. */
/* ---- rows ---- */
/* ---- project cards ---- */
/* ---- side panels ---- */
/* coordinator lanes */
/* states */
.s1h-error { display: flex; align-items: baseline; justify-content: space-between; gap: calc(12px * var(--s1-scale, 1)); margin: 10px 0; padding: calc(6px * var(--s1-scale, 1)) 0; border: 0; background: none; color: var(--s1-ink); font-weight: 600; }
.s1h-error span { display: inline-flex; align-items: center; gap: calc(8px * var(--s1-scale, 1)); }
.s1h-error span .k-icon, .s1h-error span svg { color: var(--s1-late); }
/* ---- motion ---- */
/* ---- My projects ---- */
.s1p-panel { overflow: visible; }
.s1p-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: calc(10px * var(--s1-scale, 1)) calc(14px * var(--s1-scale, 1)); padding: calc(12px * var(--s1-scale, 1)) calc(18px * var(--s1-scale, 1)); border-bottom: 1px solid var(--s1-line-soft); background: var(--s1-panel-head); border-radius: var(--s1-radius-panel) var(--s1-radius-panel) 0 0; }
.s1p-search { display: flex; align-items: center; gap: calc(8px * var(--s1-scale, 1)); border: 1px solid var(--s1-control-line); background: var(--s1-panel); border-radius: var(--s1-radius-control); padding: 0 calc(10px * var(--s1-scale, 1)); min-width: 220px; color: var(--s1-mute); }
.s1p-search input { border: 0;  background: none; padding: calc(8px * var(--s1-scale, 1)) 0; font: 500 var(--s1-fs-3) var(--s1-font-ui); color: var(--s1-ink); width: 100%; }
.s1p-search:focus-within { border-color: var(--s1-focus-border); }
.s1p-body { padding: calc(16px * var(--s1-scale, 1)) calc(18px * var(--s1-scale, 1)) calc(20px * var(--s1-scale, 1)); }
.s1p-board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 1fr); gap: calc(14px * var(--s1-scale, 1)); overflow-x: auto; padding-bottom: calc(8px * var(--s1-scale, 1)); scroll-snap-type: x proximity; align-items: start; }
.s1p-col { background: var(--s1-column); border: 1px solid var(--s1-line-soft); border-radius: 12px; padding: calc(10px * var(--s1-scale, 1)); display: flex; flex-direction: column; gap: calc(10px * var(--s1-scale, 1)); min-width: 0; scroll-snap-align: start; }
.s1p-col header { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px; }
.s1p-col h3 { font: 700 var(--s1-text-small) var(--s1-font-ui); text-transform: uppercase; letter-spacing: .06em; color: var(--s1-ink-2); }
.s1p-col-empty { text-align: center; padding: calc(14px * var(--s1-scale, 1)) 0; color: var(--s1-mute); font-size: var(--s1-text-small); border: 1.5px dashed var(--s1-line); border-radius: 10px; }
.s1p-tablewrap { overflow-x: auto; border: 1px solid var(--s1-line); border-radius: 12px; }
.s1p-table { width: 100%; border-collapse: collapse; min-width: 880px; }
.s1p-table th { text-align: left; padding: calc(10px * var(--s1-scale, 1)) calc(14px * var(--s1-scale, 1)); background: var(--s1-panel-head); border-bottom: 1px solid var(--s1-line); font: 700 var(--s1-text-micro) var(--s1-font-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--s1-mute); white-space: nowrap; }
.s1p-sort { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; cursor: pointer; padding: 0; }
.s1p-sort.is-on, .s1p-sort:hover { color: var(--s1-ink); }
.s1p-table td, .s1p-table tbody th { padding: calc(12px * var(--s1-scale, 1)) calc(14px * var(--s1-scale, 1)); border-top: 1px solid var(--s1-line-soft); vertical-align: middle; text-align: left; text-transform: none; letter-spacing: 0; font-size: var(--s1-text-base); color: var(--s1-ink); background: var(--s1-panel); }
.s1p-table tbody tr { transition: background var(--s1-dur-1) var(--s1-ease); }
.s1p-table tbody tr:hover td, .s1p-table tbody tr:hover th { background: color-mix(in srgb, var(--s1-column) 75%, var(--s1-panel)); }
.s1p-name { display: flex; align-items: center; gap: calc(10px * var(--s1-scale, 1)); border-top: 0; }
.s1p-table tbody th.s1p-name { display: table-cell; }
.s1p-name .s1h-mark { margin-right: 10px; vertical-align: middle; }
.s1p-name a { font-weight: 700; text-decoration: none; color: var(--s1-ink) !important; }
.s1p-name a:hover { text-decoration: underline; }
.s1p-phase { display: flex; flex-direction: column; gap: calc(6px * var(--s1-scale, 1)); min-width: 120px; font-size: var(--s1-text-small); font-weight: 600; }
.s1p-num { font-weight: 700; font-variant-numeric: tabular-nums; }
.s1p-timeline { border: 1px solid var(--s1-line); border-radius: 12px; overflow: hidden; background: var(--s1-panel); }
.s1p-tl-head, .s1p-tl-row { display: grid; grid-template-columns: minmax(200px, 280px) minmax(0, 1fr); }
.s1p-tl-head { background: var(--s1-panel-head); border-bottom: 1px solid var(--s1-line); }
.s1p-tl-label { display: flex; align-items: center; gap: calc(10px * var(--s1-scale, 1)); padding: calc(12px * var(--s1-scale, 1)) calc(14px * var(--s1-scale, 1)); font: 700 var(--s1-text-micro) var(--s1-font-ui); color: var(--s1-mute); text-transform: uppercase; letter-spacing: .06em; min-width: 0; }
.s1p-tl-row .s1p-tl-label { text-transform: none; letter-spacing: 0; color: var(--s1-ink); font-size: var(--s1-fs-3); }
.s1p-tl-label a { font-weight: 700; text-decoration: none; color: var(--s1-ink) !important; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s1p-tl-label a:hover { text-decoration: underline; }
.s1p-tl-label p { font-weight: 500; font-size: var(--s1-text-small); color: var(--s1-mute); }
.s1p-tl-label > div { min-width: 0; }
.s1p-tl-axis { position: relative; height: 40px; }
.s1p-tick { position: absolute; top: 12px; transform: translateX(4px); font: 700 var(--s1-text-micro) var(--s1-font-ui); color: var(--s1-mute); }
.s1p-tl-row { border-top: 1px solid var(--s1-line-soft); }
.s1p-tl-track { position: relative; min-height: 62px; }
.s1p-gridline { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--s1-line-soft); }
.s1p-today { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--s1-ink); z-index: 1; }
.s1p-tl-bar { position: absolute; top: 50%; height: 6px; margin-top: -3px; border-radius: 3px; background: var(--s1-track); }
.s1p-pt { position: absolute; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--s1-panel); border: 3px solid var(--s1-ink); z-index: 2; transition: transform var(--s1-dur-2) var(--s1-ease); }
.s1p-pt:hover, .s1p-pt:focus-visible { transform: scale(1.35);   }
.s1p-pt--milestone { border-radius: 4px; transform: rotate(45deg); }
.s1p-pt--milestone:hover { transform: rotate(45deg) scale(1.3); }
.s1p-pt--submission { border-color: var(--s1-ok); }
.s1p-pt.is-late { border-color: var(--s1-late); }
.s1p-tl-none { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--s1-mute); font-size: var(--s1-text-small); }
.s1p-tl-note { margin-top: 10px; }
/* ---- responsive ---- */
@media (max-width: 720px) {
  .s1-home { padding: 18px 16px 96px; --h-gap: 16px; }
  .s1p-tl-head, .s1p-tl-row { grid-template-columns: 128px minmax(0, 1fr); }
  .s1p-tl-label { padding: 10px 8px; gap: 6px; }
  .s1p-tl-label .s1h-mark { display: none; }
  .s1p-board { grid-auto-columns: 84%; }
  .s1p-search { min-width: 0; flex: 1 1 100%; }
  .s1p-body { padding: 12px; }
}
/* ---- prototype patterns: scannable rows, note strip, check-in, project card pills ---- */
/* PI "This week": four short lists, one screen, about two minutes. */
/* ---- Home v3: one action list, compact project rows, quiet lines ---- */
/* ---- Screen-reader-only text ---- */
/* ---- Details (direction B): beside the list on a desktop, a bottom sheet on a phone. Slides in once, when opened (s1-motion.css). ---- */
/* a desktop row opens on a click anywhere on it; a phone has the chevron */

/* a status line in a Needs-you card wraps inside the card instead of running off the page */
.need .acts .st { white-space: normal; min-width: 0; flex: 1 1 auto; }

/* ---- Counted work: one pace bar per counted task (patterns 8 and 9), no ring ---- */
.s1hm .cw { padding: calc(10px * var(--s1-scale, 1)) 0 calc(12px * var(--s1-scale, 1)); border-top: 1px solid var(--line-soft); }
.s1hm .bh + .cw { border-top: 0; }
.s1hm .cwh { display: flex; justify-content: space-between; align-items: baseline; gap: calc(12px * var(--s1-scale, 1)); }
.s1hm .cwh a { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s1hm .cwn { flex: none; font: 600 var(--s1-fs-2)/1.3 var(--ui); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.s1hm .cwn b { font: 800 var(--s1-fs-5)/1 var(--display); color: var(--ink); letter-spacing: -.01em; }
.s1hm .cwp { display: block; color: var(--mute); font-size: var(--s1-fs-1); margin-top: 1px; }
.s1hm .pkey { margin: 4px 0 0; font-size: var(--s1-fs-1); color: var(--mute); }
.s1hm .need .need-why { margin: 8px 0 0; font-size: var(--s1-fs-2); line-height: 1.45; color: var(--s1-ink-2); max-width: 62ch; }
.s1hm .rows > * > .chip { flex: 0 1 auto; min-width: 0; white-space: normal; }
@media (max-width: 560px) { .s1hm .rows > * > .chip { max-width: 100%; } }

/* ---- r18 pass: Customise as hairline rows, the highlight as a tint, Your projects without boxes ---- */
.cz { background: none; border-left: 0; border-top: 0; padding: calc(18px * var(--s1-scale, 1)) calc(20px * var(--s1-scale, 1)) calc(24px * var(--s1-scale, 1)); }
.czon .hz { column-gap: 0; }
.cz .czmap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; }
.cz .czmap .czr { display: flex; flex-direction: column; justify-content: space-between; gap: 2px; min-width: 0; min-height: 40px; margin: 0; padding: 5px 7px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper, transparent); cursor: grab; touch-action: none; user-select: none; font-size: var(--s1-fs-1); line-height: 1.2; }
.cz .czmap .czr[data-w="4"] { grid-column: span 4; } .cz .czmap .czr[data-w="6"] { grid-column: span 6; } .cz .czmap .czr[data-w="8"] { grid-column: span 8; } .cz .czmap .czr[data-w="12"] { grid-column: span 12; }
.cz .czmap .czr .czt { font-weight: 650; overflow-wrap: anywhere; } .cz .czmap .czr small { margin: 0; font-size: var(--s1-fs-1); }
.cz .czmap .czr.fix { min-height: 26px; flex-direction: row; align-items: center; border-style: dashed; background: none; color: var(--mute); cursor: default; touch-action: auto; }
.cz .czmap .czr.sel { border-color: var(--accent-text, var(--ink)); box-shadow: inset 0 0 0 1px var(--accent-text, var(--ink)); background: color-mix(in srgb, var(--accent-text, var(--ink)) 7%, transparent); }
.cz .czmap .czr.drag { background: var(--well); box-shadow: var(--shadow-pop); cursor: grabbing; }
.cz .czw { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 10px; font-size: var(--s1-fs-1); } .cz .czw b { flex: 1 1 100%; }
.cz .czwb { display: inline-flex; gap: 4px; flex: 1 1 auto; } .cz .czw .btn { padding: 4px 8px; min-height: 30px; } .cz .czw .btn.on { background: var(--ink); color: var(--paper, #fff); border-color: var(--ink); }
.cz .czh { margin: 10px 0 0; font-size: var(--s1-fs-1); color: var(--mute); }
.cz .czoff .czr { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0; padding: 6px 0; border: 0; border-top: 1px solid var(--line-soft); border-radius: 0; background: none; cursor: default; }
.cz .czoff .czr:first-child { border-top: 0; } .cz .czoff .czr .btn { padding: 4px 10px; min-height: 30px; }
.cz > p { max-width: 44ch; }
.s1hm .blk.hl, .s1hm .band.hl, .s1hm .sec.hl { box-shadow: none; background: color-mix(in srgb, var(--accent-text, var(--ink)) 7%, transparent); }
.s1hm .pts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0 calc(28px * var(--s1-scale, 1)); }
.s1hm .pt { border: 0; border-top: 1px solid var(--line-soft); border-radius: 0; background: none; padding: calc(14px * var(--s1-scale, 1)) 0 calc(12px * var(--s1-scale, 1)); flex: 1 1 200px; }
.s1hm .pt:hover { border-top-color: var(--ink); }
.s1hm .pt:hover > b { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 720px) { .s1hm .pts { display: flex; gap: 0 24px; } .s1hm .pt { flex: 0 0 220px; } }

/* ---- r19: the first line, a status chip per project, Needs you as the main column ---- */
.s1hm .hd .sub.glance { font: 600 var(--s1-fs-4)/1.35 var(--ui); color: var(--ink); max-width: 60ch; }
.s1hm .chiprow { display: flex; flex-wrap: wrap; gap: calc(6px * var(--s1-scale, 1)) calc(22px * var(--s1-scale, 1)); margin: 12px 0 14px; }
.s1hm .pc { display: inline-flex; align-items: baseline; gap: calc(8px * var(--s1-scale, 1)); min-width: 0; max-width: 100%; font-size: var(--s1-fs-2); text-decoration: none; color: var(--ink); }
.s1hm .pc b { font-weight: 650; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 26ch; }
.s1hm .pc:hover b { text-decoration: underline; text-underline-offset: 3px; }
.s1hm .pc .st { font-size: var(--s1-fs-1); white-space: nowrap; }
/* Needs you is the wide column and reads first; the others are quieter. */
.s1hm .mas[style*="--n: 3"], .s1hm .mas[style*="--n:3"] { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 1fr); }
.s1hm .mas[style*="--n: 2"], .s1hm .mas[style*="--n:2"] { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.s1hm .blk[data-b="needs"] .bh { font-size: var(--s1-fs-4); }
.s1hm .blk[data-b="needs"] .need { font-size: var(--s1-fs-3); }
.s1hm .blk[data-b="needs"] .need .ttl { font-weight: 650; }
.s1hm .blk:not([data-b="needs"]) { background: none; }
/* Deadlines: small, calm dates, not the biggest type on the page. */
.s1hm .dlr .dt b { font: 650 var(--s1-fs-2)/1 var(--ui); color: var(--ink-2); letter-spacing: 0; margin-bottom: 2px; }
.s1hm .dlr { grid-template-columns: 34px minmax(0, 1fr) auto; }
.s1hm .dlr a { font-weight: 600; font-size: var(--s1-fs-2); }
.s1hm .cwn b { font-size: var(--s1-fs-4); }
.s1hm .lead b { font-size: var(--s1-fs-4); }
@media (max-width: 560px) { .s1hm .chiprow { flex-direction: column; gap: 6px; } .s1hm .pc b { max-width: 20ch; } }
.s1hm .st.you { color: var(--ink-2); }
.s1hm .dlr { grid-template-columns: 34px minmax(0, 1fr); align-items: start; }
.s1hm .dlr > .st { grid-column: 2; justify-self: start; margin-top: -4px; }
.s1hm .cwh a { white-space: normal; overflow: visible; }
.s1hm .pc b { max-width: 34ch; }
.s1hm .cwh { flex-wrap: wrap; row-gap: 2px; }
.s1hm .cwh a { flex: 1 1 14ch; }
.s1hm .pc { flex-wrap: wrap; }
@media (max-width: 560px) { .s1hm .pc b { white-space: normal; max-width: none; } .s1hm .pc .st { white-space: normal; } }
/* Likely to miss: the sentence is the point, so on a phone it wraps under the study name instead of running off the edge. */
@media (max-width: 640px) { [data-h-miss] ~ .st { white-space: normal; align-items: flex-start; line-height: 1.35; } }

/* ---- r29 (owner review, 16 Nov): Home at a ~2000px desk and on a phone ---- */
/* Type and density scale with the screen: the same page, larger, so a wide monitor is not a sheet of 12px text with empty gutters. The steps keep about 1500 to 1750 layout pixels across. */
@media (min-width: 1700px) { .s1hm { zoom: 1.1; } }
@media (min-width: 2100px) { .s1hm { zoom: 1.2; } }
@media (min-width: 2600px) { .s1hm { zoom: 1.32; } }
/* The header: the sentence and the chips take the room; the actions stay at the top right instead of dropping under the chips. */
.s1hm .hdr { flex-wrap: nowrap; align-items: flex-start; }
.s1hm .hdr > div:first-child { flex: 1 1 auto; min-width: 0; }
.s1hm .hda { flex: none; padding-top: calc(22px * var(--s1-scale, 1)); }
.s1hm .hd .sub.glance { font-size: var(--s1-fs-4); }
.s1hm .chiprow { gap: calc(8px * var(--s1-scale, 1)) calc(28px * var(--s1-scale, 1)); margin: 14px 0 2px; }
.s1hm .pc { font-size: var(--s1-fs-2); flex-wrap: nowrap; }
.s1hm .pc b { max-width: 30ch; }
.s1hm .pc .st { display: inline-block; max-width: 44ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--s1-fs-2); vertical-align: bottom; }
.s1hm .pc .st .ic { display: inline-block; vertical-align: -2px; margin-right: 5px; }
@media (max-width: 720px) { .s1hm .hdr { flex-wrap: wrap; } .s1hm .hda { padding-top: 0; } .s1hm .pc { flex-wrap: wrap; } .s1hm .pc .st { white-space: normal; max-width: 100%; } }

/* The week strip earns its space: busy days are wide and list their items, free days are a narrow day number, a quiet week is one line. */
.s1hm .wk { border-top: 1px solid var(--line-soft); }
.s1hm .wk .ag { margin: 0 -14px; padding: calc(10px * var(--s1-scale, 1)) 0 calc(14px * var(--s1-scale, 1)); --wk-free: 68px; }
.s1hm .wk .agd { min-height: 0; padding: 0 calc(14px * var(--s1-scale, 1)) 2px; }
.s1hm .wk .agd.free .d { flex-direction: column; align-items: flex-start; gap: 5px; height: auto; margin: 0; font-size: var(--s1-fs-1); opacity: .8; }
.s1hm .wk .agd.free .none { display: none; }
.s1hm .wk .agd.busy .d { color: var(--ink-2); }
.s1hm .wk .ev { font-size: var(--s1-fs-2); margin-bottom: 7px; }
.s1hm .wk .ev small { font-size: var(--s1-fs-1); }
.s1hm .wk .ev.more small { color: var(--ink-2); font-weight: 600; }
.s1hm .agq { display: flex; align-items: flex-start; flex-wrap: wrap; gap: calc(8px * var(--s1-scale, 1)) calc(28px * var(--s1-scale, 1)); margin: 0; padding: calc(12px * var(--s1-scale, 1)) 0; font-size: var(--s1-fs-2); }
.s1hm .agq .agl { font: 650 var(--s1-fs-1)/24px var(--ui); letter-spacing: .07em; text-transform: uppercase; color: var(--mute); flex: none; }
.s1hm .agq .agd { display: flex; align-items: flex-start; gap: calc(12px * var(--s1-scale, 1)); border: 0; padding: 0; min-width: 0; }
.s1hm .agq .agd .d { margin: 0; flex: none; }
.s1hm .agq .evs { display: flex; flex-wrap: wrap; gap: 4px calc(22px * var(--s1-scale, 1)); padding-top: 4px; min-width: 0; }
.s1hm .agq .ev { margin: 0; max-width: 46ch; }
.s1hm .agq .agn { color: var(--mute); line-height: 24px; }
.s1hm .agq { position: relative; padding-right: calc(96px * var(--s1-scale, 1)); }
.s1hm .agq .agc { position: absolute; right: 0; top: 12px; font: 600 var(--s1-fs-1)/24px var(--ui); color: var(--mute); text-decoration: none; } .s1hm .agq .agc:hover { color: var(--ink); }
@media (max-width: 640px) {
  .s1hm .wk .ag { margin: 0; padding: 4px 16px 8px 0; } .s1hm .wk .agd { padding: 10px 0; } .s1hm .wk .agd.free { display: none; }
  .s1hm .agq { padding-right: 16px; gap: 8px 16px; } .s1hm .agq .agc { position: static; } .s1hm .agq .agd { flex: 1 1 100%; } .s1hm .agq .agl { flex: 1 1 auto; order: -2; } .s1hm .agq .agc { order: -1; margin-left: 0; } .s1hm .agq .agn { flex: 1 1 100%; line-height: 1.4; }
}

/* The blocks: Needs you is the main column (one rule to its right); the others are two quieter columns of heading + space, a hairline only between stacked blocks. */
.s1hm .mas { padding: 0; }
.s1hm .mas[style*="--n: 3"], .s1hm .mas[style*="--n:3"] { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr) minmax(0, 1fr); }
.s1hm .mas[style*="--n: 2"], .s1hm .mas[style*="--n:2"] { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
.s1hm .mcol { border-left: 0; }
.s1hm .mcol:first-child:not(:only-child) { border-right: 1px solid var(--line-soft); }
.s1hm .mcol .blk { border-top: 0; padding: calc(22px * var(--s1-scale, 1)) calc(28px * var(--s1-scale, 1)) calc(24px * var(--s1-scale, 1)); }
.s1hm .mcol .blk + .blk { border-top: 1px solid var(--line-soft); }
.s1hm .mcol:first-child .blk { padding-left: var(--gut); }
.s1hm .mcol:not(:first-child) .blk { padding-right: var(--gut); }
.s1hm .mcol:not(:first-child):not(:last-child) .blk { padding-right: calc(12px * var(--s1-scale, 1)); }
.s1hm .bh { font-size: var(--s1-fs-3); margin-bottom: 14px; }
.s1hm .blk[data-b="needs"] .bh { font-size: var(--s1-fs-4); }
.s1hm .blk[data-b="needs"] .need { font-size: var(--s1-fs-3); padding: calc(13px * var(--s1-scale, 1)) 0; }
.s1hm .blk[data-b="needs"] .need:first-of-type { border-top: 0; padding-top: 2px; }
@media (max-width: 640px) { .s1hm .mcol .blk, .s1hm .mcol:first-child .blk, .s1hm .mcol:not(:first-child) .blk { padding: 20px 16px 22px; } .s1hm .mcol:first-child:not(:only-child) { border-right: 0; } }

/* From the group: the title is the one link, then who and when, then the text (the shared announcement renderer, clamped). */
.s1hm .ann-t { margin: 0; font: 650 var(--s1-fs-3)/1.35 var(--display); letter-spacing: -.005em; }
.s1hm .ann-t a { color: var(--ink); text-decoration: none; } .s1hm .ann-t a:hover { text-decoration: underline; text-underline-offset: 3px; }
.s1hm .ann-m { margin: 3px 0 10px; font-size: var(--s1-fs-1); color: var(--mute); }
.s1hm .blk[data-b="group"] .rt { max-width: 68ch; color: var(--ink-2); }

/* Will miss on a wide screen: study, what it will miss, why, as three aligned cells (no chip stranded at the far edge). */
@media (min-width: 1500px) {
  .s1hm [data-b="misses"] .rows > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr) minmax(0, 1.25fr); gap: 4px calc(28px * var(--s1-scale, 1)); align-items: baseline; }
  .s1hm [data-b="misses"] .rows > div > .t { display: contents; }
  .s1hm [data-b="misses"] .rows > div > .t > a { grid-column: 1; grid-row: 1; }
  .s1hm [data-b="misses"] .rows > div > .chip { grid-column: 2; grid-row: 1; justify-self: start; }
  .s1hm [data-b="misses"] .rows > div > .t > small { grid-column: 3; grid-row: 1; margin: 0; font-size: var(--s1-fs-2); color: var(--ink-2); }
}

/* Your projects: the tiles share the whole width (five tiles are five columns, not five of seven). One to three tiles keep a readable width. */
.s1hm .pts { display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, var(--ptw, 1fr))); gap: 0 calc(36px * var(--s1-scale, 1)); }
.s1hm .pts[style*="--n:1"], .s1hm .pts[style*="--n:2"], .s1hm .pts[style*="--n:3"] { --ptw: 440px; }
.s1hm .pt { padding: calc(16px * var(--s1-scale, 1)) 0 calc(14px * var(--s1-scale, 1)); gap: calc(11px * var(--s1-scale, 1)); }
.s1hm .pt > b { font-size: var(--s1-fs-3); min-height: 0; }
.s1hm .pt .pn { font-size: var(--s1-fs-1); }
.s1hm .pt .st .stt { color: inherit; font: inherit; line-height: 1.35; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; min-width: 0; }
@media (max-width: 1180px) { .s1hm .pts { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); } }
@media (max-width: 720px) { .s1hm .pts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; } .s1hm .pt { flex: none; padding: 14px 0 12px; gap: 8px; } .s1hm .pt .who { margin-top: 2px; } }
/* Phone: links are 44px tap targets (s1-mobile.css), so a full stop right after the row's link would drop to a line of its own; it is not drawn there. */
@media (max-width: 640px) {
  .s1hm .need a.rl + .fs { display: none; }
  .s1hm .agq .agc, .s1hm .ann-t a, .s1hm .rt-more { display: inline-flex; align-items: center; min-height: 44px; box-sizing: border-box; }
  .s1hm .agq .agc, .s1hm .agq .agl { line-height: 1.2; align-self: center; }
  .s1hm .ann-m { margin-top: 0; }
}

/* ---- r34 (owner's choice, 17 Nov: option 2): a dense, precise working surface in the app's own look. Header with one glance line and the health meter; Needs you as a table
 * beside This week and the quieter blocks; At risk on one shared time axis; the project tiles. Under 1600px the side blocks sit in a row under At risk; on a phone every table is stacked rows. ---- */
.hw { --hw-soon-fill: color-mix(in srgb, var(--soon) 52%, #f0b45a); --hw-late-fill: color-mix(in srgb, var(--late) 88%, #ff8f85); --hw-ok-fill: color-mix(in srgb, var(--ok) 88%, #6fcf9b); --hw-mute-fill: color-mix(in srgb, var(--mute) 55%, var(--panel)); }
.hw .hw-hd { display: flex; align-items: flex-end; justify-content: space-between; gap: calc(20px * var(--s1-scale, 1)) calc(56px * var(--s1-scale, 1)); flex-wrap: wrap; padding: calc(22px * var(--s1-scale, 1)) var(--gut) calc(20px * var(--s1-scale, 1)); border-bottom: 1px solid var(--line); }
.hw .hw-hl { flex: 1 1 420px; min-width: 0; }
.hw .hw-hd .ey { margin: 0; }
.hw .hw-hd h1 { margin: 4px 0 0; font: 800 var(--s1-fs-7)/1.15 var(--display); letter-spacing: -.022em; }
.hw .hw-glance { display: flex; flex-wrap: wrap; gap: calc(6px * var(--s1-scale, 1)) calc(24px * var(--s1-scale, 1)); margin: 10px 0 0; font: 600 var(--s1-fs-4)/1.3 var(--ui); }
.hw .hw-g { display: inline-flex; align-items: baseline; gap: calc(7px * var(--s1-scale, 1)); text-decoration: none; }
.hw .hw-g b { font: 750 var(--s1-fs-5)/1 var(--display); font-variant-numeric: tabular-nums; }
.hw a.hw-g:hover { text-decoration: underline; text-underline-offset: 3px; }
.hw .hw-g.soon { color: var(--soon); } .hw .hw-g.late { color: var(--late); } .hw .hw-g.mu { color: var(--mute); font-weight: 500; }
.hw .hw-hr { flex: 0 1 640px; min-width: min(520px, 100%); align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; gap: calc(16px * var(--s1-scale, 1)); }
.hw .hw-acts { display: flex; justify-content: flex-end; gap: 4px; margin-top: -6px; }
.hw .hw-health { margin-top: auto; }
.hw .hw-hh { display: flex; justify-content: space-between; align-items: baseline; gap: calc(12px * var(--s1-scale, 1)); margin-bottom: 8px; font: 600 var(--s1-fs-2) var(--ui); color: var(--ink-2); }
.hw .hw-hh b { font: 750 var(--s1-fs-4) var(--display); color: var(--ink); }
.hw .more { display: inline-flex; align-items: center; gap: 4px; font: 600 var(--s1-fs-2) var(--ui); color: var(--mute); text-decoration: none; white-space: nowrap; }
.hw .more:hover { color: var(--ink); } .hw .more .ic { width: 15px; height: 15px; }
/* The health meter is a stroke, never a fill: status colour stays a small mark (owner rule), so a group that is mostly stuck reads as a thin red line, not a red slab. */
.hw .hw-hbar { display: flex; gap: 2px; height: 6px; }
.hw .hw-hbar span { border-radius: 2px; min-width: 4px; }
.hw .hw-hleg { display: flex; flex-wrap: wrap; gap: calc(6px * var(--s1-scale, 1)) calc(18px * var(--s1-scale, 1)); margin: 9px 0 0; padding: 0; list-style: none; }
.hw .hw-hleg li { flex: 0 0 auto; min-width: 0; }
.hw .hw-hleg a { display: inline-flex; align-items: baseline; gap: calc(6px * var(--s1-scale, 1)); font: 600 var(--s1-fs-2)/1.25 var(--ui); white-space: nowrap; text-decoration: none; }
.hw .hw-hleg a b { font: 750 var(--s1-fs-4) var(--display); font-variant-numeric: tabular-nums; }
.hw .hw-hleg .sw { flex: 0 0 auto; width: 10px; height: 10px; border-radius: 3px; align-self: center; }
.hw .hw-hleg a:hover { text-decoration: underline; text-underline-offset: 3px; }
.hw .g-ok { background: var(--hw-ok-fill); } .hw .g-soon { background: var(--hw-soon-fill); } .hw .g-late { background: var(--hw-late-fill); } .hw .g-mute { background: var(--hw-mute-fill); }
.hw .t-ok { color: var(--ok); } .hw .t-soon { color: var(--soon); } .hw .t-late { color: var(--late); } .hw .t-mute { color: var(--mute); }
.hw .g-na { background: transparent; box-shadow: inset 0 0 0 1px var(--hw-mute-fill); } .hw .t-na { color: var(--mute); }

/* the body: Needs you beside the side column on a wide screen; otherwise one column with the side blocks in a row under At risk */
.hw .hw-body { display: flex; flex-direction: column; padding: 0 var(--gut) calc(64px * var(--s1-scale, 1)); }
.hw .hw-risk { order: 1; }
.hw [data-b="projects"] { order: 4; }
/* Home's blocks sit on a 12-column grid (a third = 4, a half = 6, two thirds = 8, full = 12; widths come from the person's layout, ui-v2/s1-home-layout.js); a phone shows one column */
.hw .hw-grid { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 0 calc(36px * var(--s1-scale, 1)); }
.hw .hw-cell { min-width: 0; }
@media (min-width: 900px) {
  .hw .hw-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .hw .hw-cell[data-w="4"] { grid-column: span 4; } .hw .hw-cell[data-w="6"] { grid-column: span 6; } .hw .hw-cell[data-w="8"] { grid-column: span 8; } .hw .hw-cell[data-w="12"] { grid-column: span 12; }
}
.hw .blk { padding: calc(24px * var(--s1-scale, 1)) 0 0; border: 0; background: none; min-width: 0; }
.hw .hw-body > .sec, .hw .hw-body .sec { padding: calc(32px * var(--s1-scale, 1)) 0 0; }

/* section headings: one size for the page's sections, a smaller one in the side column */
.hw .hw-sh, .hw .bh { display: flex; align-items: baseline; gap: calc(10px * var(--s1-scale, 1)); margin: 0 0 12px; }
.hw .hw-sh h2 { margin: 0; font: 750 var(--s1-fs-5)/1.2 var(--display); letter-spacing: -.01em; }
.hw .hw-needs .hw-sh h2 { font-size: var(--s1-fs-6); }
.hw .hw-sh h3, .hw .blk .bh { margin: 0; font: 750 var(--s1-fs-4)/1.2 var(--display); letter-spacing: -.01em; }
.hw .blk .bh { margin-bottom: 12px; }
.hw .sec > .bh { font: 750 var(--s1-fs-5)/1.2 var(--display); letter-spacing: -.01em; margin-bottom: 12px; }
.hw .hw-sh .c, .hw .bh .n { font: 650 var(--s1-fs-3) var(--ui); color: var(--mute); font-variant-numeric: tabular-nums; }
.hw .hw-sh .more, .hw .bh .more { margin-left: auto; }
.hw .hw-note { margin: 10px 0; font-size: var(--s1-fs-2); }

/* the tables: one grid, aligned columns, hairlines, a header row */
.hw .hw-t { display: grid; border-top: 1px solid var(--line); }
.hw .hw-tr { display: contents; }
.hw .hw-th > span { padding: calc(9px * var(--s1-scale, 1)) calc(20px * var(--s1-scale, 1)) calc(8px * var(--s1-scale, 1)) 0; font: 600 var(--s1-fs-1) var(--ui); color: var(--mute); border-bottom: 1px solid var(--line); white-space: nowrap; }
.hw .hw-th > span.r { text-align: right; padding-right: 0; }
.hw .hw-td { min-width: 0; padding: calc(13px * var(--s1-scale, 1)) calc(20px * var(--s1-scale, 1)) calc(13px * var(--s1-scale, 1)) 0; border-bottom: 1px solid var(--line-soft); display: flex; flex-direction: column; justify-content: center; }
.hw .hw-tr:not(.hw-th):hover > .hw-td { background: color-mix(in srgb, var(--well) 70%, transparent); }
.hw .hw-td.hw-act { flex-direction: row; justify-content: flex-end; align-items: center; gap: calc(6px * var(--s1-scale, 1)); padding-right: 0; flex-wrap: wrap; }
.hw .hw-nt { grid-template-columns: minmax(0, 2.4fr) minmax(0, 1.3fr) 104px minmax(150px, 1.1fr); } /* the names get the width; the buttons wrap inside their own column instead of taking it all */
.hw .hw-kind { display: inline-flex; align-items: center; gap: calc(6px * var(--s1-scale, 1)); margin-bottom: 3px; font: 600 var(--s1-fs-1)/1.2 var(--ui); color: var(--mute); }
.hw .hw-kind .ic { width: 14px; height: 14px; }
.hw .hw-kind.late { color: var(--late); }
.hw .hw-it { font: 650 var(--s1-fs-4)/1.35 var(--ui); color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.hw a.hw-it:hover { text-decoration: underline; text-underline-offset: 3px; }
.hw .hw-it q { quotes: "\201C" "\201D"; font-weight: 600; }
.hw .hw-who { margin-left: 6px; font: 500 var(--s1-fs-3) var(--ui); color: var(--mute); }
.hw .hw-sub { display: block; margin-top: 2px; font: 500 var(--s1-fs-2)/1.4 var(--ui); color: var(--mute); }
.hw .hw-what .hw-sub { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.hw .hw-sub .pl { font-weight: 600; white-space: normal; }
.hw .hw-pj { font: 600 var(--s1-fs-2)/1.35 var(--ui); color: var(--ink-2); text-decoration: none; }
.hw a.hw-pj:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.hw .hw-w { font: 700 var(--s1-fs-3)/1.3 var(--ui); font-variant-numeric: tabular-nums; }
.hw .hw-w small { display: block; font: 500 var(--s1-fs-1) var(--ui); color: var(--mute); }
.hw .hw-w.soon { color: var(--soon); } .hw .hw-w.late { color: var(--late); } .hw .hw-w.new { color: var(--wait); } .hw .hw-w.mute { color: var(--mute); font-weight: 600; }
.hw .hw-act .btn { height: 32px; padding: 0 calc(13px * var(--s1-scale, 1)); font: 650 var(--s1-fs-2) var(--ui); white-space: nowrap; }
.hw .hw-act .btn.quiet { color: var(--ink-2); }
.hw .hw-act .btn.icon { width: 32px; padding: 0; color: var(--mute); }
.hw .hw-chips { display: flex; flex-wrap: wrap; gap: calc(6px * var(--s1-scale, 1)); margin: 0 0 12px; }
.hw .hw-chip { height: 28px; padding: 0 calc(11px * var(--s1-scale, 1)); border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--ink-2); font: 600 var(--s1-fs-1) var(--ui); cursor: pointer; }
.hw .hw-chip span { color: var(--mute); font-variant-numeric: tabular-nums; margin-left: 2px; }
.hw .hw-chip:hover { border-color: var(--mute); }
.hw .hw-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.hw .hw-chip[aria-pressed="true"] span { color: inherit; opacity: .75; }
.hw .hw-fold { border-top: 0; padding: calc(12px * var(--s1-scale, 1)) 0 0; font-size: var(--s1-fs-2); }
.hw .hw-needs .need { padding: calc(12px * var(--s1-scale, 1)) 0; border-bottom: 1px solid var(--line-soft); border-top: 0; }

/* At risk: the dates in aligned columns and one shared time axis, the marks named on the line itself */
.hw .hw-rt { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) 76px 100px 96px minmax(220px, 1.6fr) auto; }
.hw .hw-rp .hw-pj { font-size: var(--s1-fs-3); }
.hw .hw-dt { font: 650 var(--s1-fs-3) var(--ui); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hw .hw-dt .mu { font-weight: 500; font-size: var(--s1-fs-2); white-space: normal; }
.hw .hw-late { font: 750 var(--s1-fs-3)/1.3 var(--ui); font-variant-numeric: tabular-nums; }
.hw .hw-late.soon { color: var(--soon); } .hw .hw-late.late { color: var(--late); }
.hw .hw-late small { display: block; font: 500 var(--s1-fs-1) var(--ui); color: var(--mute); }
.hw .hw-axh { position: relative; }
.hw .hw-axis { position: relative; height: 15px; }
.hw .hw-axis span { position: absolute; bottom: 0; font: 600 var(--s1-fs-1) var(--ui); color: var(--mute); padding-left: 3px; }
.hw .hw-axis span.today { color: var(--ink); font-weight: 750; transform: translateX(-50%); bottom: auto; top: 0; padding: 0 4px; background: var(--panel); }
.hw .hw-axis { height: 30px; }
.hw .hw-axis span:not(.today) { bottom: -1px; }
.hw .hw-th > span.hw-axh { padding-top: 4px; }
.hw .hw-tl { position: relative; height: 38px; width: 100%; }
.hw .hw-tl .g { position: absolute; top: 12px; bottom: 0; width: 1px; background: var(--line-soft); }
.hw .hw-tl .base { position: absolute; left: 0; right: 0; top: 24px; height: 2px; background: var(--line-soft); }
.hw .hw-tl .tod { position: absolute; top: 12px; bottom: 0; width: 2px; margin-left: -1px; background: var(--ink); }
.hw .hw-tl .ontime { position: absolute; top: 21px; height: 8px; background: var(--track); border-radius: 2px 0 0 2px; }
.hw .hw-tl .slip { position: absolute; top: 21px; height: 8px; border-radius: 0 4px 4px 0; }
.hw .hw-tl .slip.w { background: repeating-linear-gradient(135deg, var(--hw-soon-fill) 0 5px, color-mix(in srgb, var(--hw-soon-fill) 62%, var(--panel)) 5px 8px); }
.hw .hw-tl .slip.r { background: var(--hw-late-fill); border-radius: 4px 0 0 4px; }
.hw .hw-tl .due { position: absolute; top: 15px; height: 20px; width: 3px; margin-left: -1.5px; background: var(--ink); border-radius: 1px; }
.hw .hw-tl .fin { position: absolute; top: 19px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: var(--panel); border: 2.5px solid var(--soon); }
.hw .hw-tl .lab { position: absolute; top: 0; font: 600 var(--s1-fs-1)/1 var(--ui); color: var(--mute); white-space: nowrap; }
.hw .hw-tl .l-due { transform: translateX(calc(-100% - 4px)); color: var(--ink-2); }
.hw .hw-tl .l-fin { transform: translateX(-4px); color: var(--soon); }
.hw .hw-tl .l-fin.end { transform: translateX(calc(-100% - 9px)); }
.hw .hw-plain { display: none; }

/* This week, Waiting on others, From the group in the side column */
.hw .hw-ag { border-top: 1px solid var(--line); }
.hw .hw-agd { display: grid; grid-template-columns: 58px minmax(0, 1fr); padding: calc(11px * var(--s1-scale, 1)) 0; border-bottom: 1px solid var(--line-soft); }
.hw .hw-day { font: 700 var(--s1-fs-1)/1.2 var(--ui); color: var(--ink-2); }
.hw .hw-day b { display: block; margin-top: 2px; font: 750 var(--s1-fs-5)/1 var(--display); color: var(--ink); }
.hw .hw-day.today b { color: var(--accent-text, var(--accent)); }
.hw .hw-agl { display: flex; flex-direction: column; gap: calc(10px * var(--s1-scale, 1)); min-width: 0; }
.hw .hw-agi { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: calc(12px * var(--s1-scale, 1)); align-items: baseline; }
.hw .hw-agi.none { display: block; padding-top: 2px; font: 500 var(--s1-fs-3) var(--ui); color: var(--mute); }
.hw .hw-agt .hw-it { font-size: var(--s1-fs-3); font-weight: 600; }
.hw .hw-when { font: 600 var(--s1-fs-1) var(--ui); color: var(--mute); white-space: nowrap; }
.hw .hw-when.soon { color: var(--soon); } .hw .hw-when.late { color: var(--late); }
.hw .hw-agm { display: inline-block; margin-top: 2px; font: 600 var(--s1-fs-1) var(--ui); color: var(--ink-2); }
.hw .hw-wo { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.hw .hw-wo li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: calc(12px * var(--s1-scale, 1)); align-items: start; padding: calc(12px * var(--s1-scale, 1)) 0; border-bottom: 1px solid var(--line-soft); }
.hw .hw-wo .hw-it { font-size: var(--s1-fs-3); font-weight: 600; }
.hw .hw-wo .btn { height: 30px; }
.hw .blk[data-b="group"] .ann-t { padding-top: calc(14px * var(--s1-scale, 1)); border-top: 1px solid var(--line); font-size: var(--s1-fs-4); }
.hw .blk[data-b="group"] .rt { font-size: var(--s1-fs-3); }

/* Your projects: the tile the owner liked, in a grid across the width */
.hw .pts { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0 calc(28px * var(--s1-scale, 1)); border-top: 1px solid var(--line); }
.hw .pt { border-top: 0; border-bottom: 1px solid var(--line-soft); padding: calc(16px * var(--s1-scale, 1)) 0 calc(18px * var(--s1-scale, 1)); }
.hw .pt:hover { border-top-color: transparent; }
.hw .pt > b { font-size: var(--s1-fs-4); line-height: 1.3; display: block; -webkit-line-clamp: unset; overflow: visible; overflow-wrap: anywhere; }
.hw .pt .pn { font-size: var(--s1-fs-2); }
.hw .pt .st { font-size: var(--s1-fs-2); }

@media (max-width: 1199px) { .hw .hw-rt { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) 70px 92px 84px minmax(170px, 1.2fr) 0; } .hw .hw-rt .hw-act { display: none; } .hw .hw-nt { grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr) 96px minmax(140px, 1fr); } }
/* phone: every table becomes stacked rows; At risk says its dates in words over a plain bar */
@media (max-width: 720px) {
  .hw .hw-hd { padding: 16px 16px 16px; } .hw .hw-hd h1 { font-size: var(--s1-fs-7); } .hw .hw-glance { gap: 4px 16px; font-size: var(--s1-fs-3); }
  .hw .hw-hr { min-width: 0; flex: 1 1 100%; } .hw .hw-acts { justify-content: flex-start; margin: 0; order: 2; } .hw .hw-hleg a { font-size: var(--s1-fs-1); } .hw .hw-hleg a b { font-size: var(--s1-fs-3); }
  .hw .hw-body { padding: 0 16px 40px; }
  .hw .hw-t { display: block; } .hw .hw-tr.hw-th { display: none; }
  .hw .hw-tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
  .hw .hw-td { padding: 0; border: 0; background: none !important; }
  .hw .hw-nt .hw-what { grid-column: 1; grid-row: 1; }
  .hw .hw-nt .hw-wait { grid-column: 2; grid-row: 1; justify-content: flex-start; text-align: right; }
  .hw .hw-nt .hw-proj { grid-column: 1 / -1; grid-row: 2; margin-top: 4px; }
  .hw .hw-nt .hw-act { grid-column: 1 / -1; grid-row: 3; justify-content: flex-start; margin-top: 10px; }
  .hw .hw-w small { display: inline; margin-left: 4px; }
  .hw .hw-rt .hw-tr { grid-template-columns: minmax(0, 1fr); }
  .hw .hw-rt .hw-dt, .hw .hw-rt .hw-late, .hw .hw-rt .hw-act, .hw .hw-rt .hw-tl { display: none; }
  .hw .hw-rw { margin-top: 2px; }
  .hw .hw-plain { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
  .hw .hw-pw { font: 650 var(--s1-fs-3)/1.35 var(--ui); } .hw .hw-pw.soon { color: var(--soon); } .hw .hw-pw.late { color: var(--late); }
  .hw .hw-pb { display: flex; height: 6px; border-radius: 3px; overflow: hidden; background: var(--track); }
  .hw .hw-pb i { display: block; height: 100%; } .hw .hw-pb i.ok { background: var(--track); } .hw .hw-pb i.w { background: var(--hw-soon-fill); } .hw .hw-pb i.r { background: var(--hw-late-fill); }
  .hw .hw-pb i.ok + i.w { border-left: 3px solid var(--ink); }
  .hw .pts { grid-template-columns: minmax(0, 1fr); }
}

/* ---- Home v2 (owner, 17 Nov: "bland, not something people pay big money for"): the same language, said with more conviction. A real type scale, faces on the rows people
 * are in, the one time axis of At risk drawn as one continuous chart, the phase spine as each project's anchor. The accent means "now": today's date, the phase a study is in.
 * Red, amber, green and blue still only mean late, due soon, done and waiting. Motion is transform and opacity only and stands still under reduced motion. ---- */
.hw .hw-hd { padding-top: calc(26px * var(--s1-scale, 1)); padding-bottom: calc(26px * var(--s1-scale, 1)); }
.hw .hw-hd h1 { margin-top: 6px; font: 800 var(--s1-fs-7)/1.06 var(--display); letter-spacing: -.032em; }
.hw .hw-hd .ey { font: 600 var(--s1-fs-3)/1.2 var(--ui); letter-spacing: 0; text-transform: none; color: var(--mute); }
.hw .hw-glance { gap: calc(8px * var(--s1-scale, 1)) calc(32px * var(--s1-scale, 1)); margin-top: 16px; font: 600 var(--s1-fs-4)/1.2 var(--ui); }
.hw .hw-g { gap: calc(8px * var(--s1-scale, 1)); }
.hw .hw-g b { font: 800 var(--s1-fs-7)/1 var(--display); letter-spacing: -.03em; }
.hw .hw-hh { font-size: var(--s1-fs-3); margin-bottom: 10px; } .hw .hw-hh b { font: 800 var(--s1-fs-6)/1 var(--display); letter-spacing: -.02em; margin-right: 2px; }
.hw .hw-hbar { gap: 3px; } .hw .hw-hbar span { border-radius: 3px; }
.hw .hw-hleg { margin-top: 10px; } .hw .hw-hleg a { font-size: var(--s1-fs-2); } .hw .hw-hleg a b { font: 800 var(--s1-fs-5)/1 var(--display); letter-spacing: -.02em; }

.hw .hw-sh { margin-bottom: 14px; }
.hw .hw-sh h2 { font: 800 var(--s1-fs-6)/1.15 var(--display); letter-spacing: -.024em; }
.hw .hw-needs .hw-sh h2 { font-size: var(--s1-fs-7); }
.hw .hw-sh h3, .hw .blk .bh { font: 800 var(--s1-fs-5)/1.2 var(--display); letter-spacing: -.018em; }
.hw .hw-sh .c, .hw .bh .n { font: 700 var(--s1-fs-4)/1 var(--display); color: var(--mute); }
.hw .hw-needs .hw-sh .c { font-size: var(--s1-fs-5); }

/* Needs you: every row is led by a face (someone asks) or the kind's mark (work of your own). */
.hw .hw-td.hw-what { flex-direction: row; align-items: flex-start; justify-content: flex-start; gap: calc(14px * var(--s1-scale, 1)); }
.hw .hw-wb { min-width: 0; flex: 1 1 auto; display: flex; flex-direction: column; }
.hw .hw-lead { flex: none; width: 36px; height: 36px; margin-top: 1px; display: grid; place-items: center; }
.hw .hw-lead .k-av { width: 36px; height: 36px; font-size: var(--s1-fs-2); }
.hw .hw-glyph { border-radius: 10px; background: var(--well); color: var(--ink-2); }
.hw .hw-glyph .ic { width: 18px; height: 18px; }
.hw .hw-glyph.late { background: color-mix(in srgb, var(--late) 11%, var(--panel)); color: var(--late); }
.hw .hw-glyph.k-signoff { background: color-mix(in srgb, var(--wait) 11%, var(--panel)); color: var(--wait); }
.hw .hw-kind { margin-bottom: 2px; }
.hw .hw-it { font-size: var(--s1-fs-4); }
.hw .hw-w { font: 750 var(--s1-fs-4)/1.25 var(--display); letter-spacing: -.01em; }
.hw .hw-td { padding-top: calc(15px * var(--s1-scale, 1)); padding-bottom: calc(15px * var(--s1-scale, 1)); }
.hw .hw-act .btn { height: 34px; padding: 0 calc(14px * var(--s1-scale, 1)); }
.hw .hw-act .btn.pri { min-width: 76px; }
.hw .hw-act .btn:active, .hw .hw-chip:active { transform: translateY(1px); }
.hw .hw-chip { height: 30px; padding: 0 calc(12px * var(--s1-scale, 1)); font-size: var(--s1-fs-2); transition: background-color var(--d1, .12s) var(--ease, ease), border-color var(--d1, .12s) var(--ease, ease), color var(--d1, .12s) var(--ease, ease); }

/* At risk: one chart. The grid and the Today rule run unbroken through every row; a group is one lane with a mark for each study. */
.hw .hw-rt { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) 84px minmax(132px, 168px) 104px minmax(240px, 1.7fr) auto; }
.hw .hw-td.hw-rp { flex-direction: row; align-items: center; justify-content: flex-start; gap: calc(10px * var(--s1-scale, 1)); }
.hw .hw-rp .hw-pj { font-size: var(--s1-fs-3); color: var(--ink); min-width: 0; }
.hw .hw-faces { flex: none; display: inline-flex; } .hw .hw-faces .k-av { width: 30px; height: 30px; font-size: var(--s1-fs-1); }
.hw .hw-dt small { display: block; margin-top: 1px; font: 500 var(--s1-fs-1)/1.3 var(--ui); color: var(--mute); }
.hw .hw-fc { white-space: normal; }
.hw .hw-kn { display: block; font: 650 var(--s1-fs-2)/1.35 var(--ui); color: var(--ink-2); white-space: normal; }
.hw .hw-kn.late { color: var(--late); } .hw .hw-kn.soon { color: var(--soon); }
.hw .hw-kn b { font-weight: 800; font-variant-numeric: tabular-nums; }
.hw .hw-late b { display: block; font: 800 var(--s1-fs-6)/1 var(--display); letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.hw .hw-late small { margin-top: 3px; }
.hw .hw-td.hw-line { padding-top: 0; padding-bottom: 0; justify-content: stretch; }
.hw .hw-tl { height: 100%; min-height: 60px; }
.hw .hw-tl .g { top: 0; bottom: -1px; }
.hw .hw-tl .base { top: calc(50% + 5px); }
.hw .hw-tl .tod { top: 0; bottom: -1px; }
.hw .hw-tl .ontime, .hw .hw-tl .slip { top: calc(50% + 1px); height: 10px; }
.hw .hw-tl .slip.r { border-radius: 5px 0 0 5px; } .hw .hw-tl .slip.w { border-radius: 0 5px 5px 0; }
.hw .hw-tl .slip.r.many { opacity: .38; }
.hw .hw-tl .due { top: calc(50% - 6px); height: 24px; }
.hw .hw-tl .fin { top: calc(50% - 1px); width: 14px; height: 14px; margin-left: -7px; }
.hw .hw-tl .lab { top: calc(50% - 22px); font-size: var(--s1-fs-1); }
.hw .hw-tl .l-due.low { top: calc(50% + 21px); transform: translateX(3px); }
.hw .hw-axis span.today { padding: 2px calc(7px * var(--s1-scale, 1)); border-radius: 999px; background: var(--ink); color: var(--on-ink); font: 700 var(--s1-fs-1)/1.2 var(--ui); }
.hw .hw-gn { font: 600 var(--s1-fs-3)/1.2 var(--ui); color: var(--ink); } .hw .hw-gn b { font: 800 var(--s1-fs-6)/1 var(--display); letter-spacing: -.025em; margin-right: 3px; font-variant-numeric: tabular-nums; }
.hw .hw-grp .hw-td.hw-rp { flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; }
.hw .hw-grp .hw-rp .hw-sub { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.hw .hw-grp .hw-td.hw-act .btn { gap: calc(6px * var(--s1-scale, 1)); } .hw .hw-grp .btn .ic { width: 14px; height: 14px; transition: transform var(--d2, .18s) var(--ease, ease); } .hw .hw-grp.open .btn .ic { transform: rotate(180deg); }
.hw .hw-kid > .hw-td { background: color-mix(in srgb, var(--well) 55%, transparent); }
.hw .hw-kid > .hw-td.hw-rp { padding-left: calc(16px * var(--s1-scale, 1)); }
.hw .hw-kid > .hw-td:last-child { padding-right: calc(12px * var(--s1-scale, 1)); }

/* This week, counted work, waiting on others */
.hw .hw-agd { grid-template-columns: 64px minmax(0, 1fr); padding: calc(13px * var(--s1-scale, 1)) 0; }
.hw .hw-day b { font: 800 var(--s1-fs-6)/1 var(--display); letter-spacing: -.025em; margin-top: 3px; }
.hw .hw-agt .hw-it, .hw .hw-wo .hw-it { font-size: var(--s1-fs-3); }
.hw .hw-wo li { grid-template-columns: 34px minmax(0, 1fr) auto; }
.hw .hw-wo .k-av { margin-top: 1px; }

/* Your projects: the name, then the phase spine as the anchor (what is done in ink, where the study is now in the accent), its state and the team's faces. */
.hw .pts { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0 calc(40px * var(--s1-scale, 1)); }
.hw .pt { padding: calc(18px * var(--s1-scale, 1)) 0 calc(18px * var(--s1-scale, 1)); gap: calc(12px * var(--s1-scale, 1)); transition: none; }
.hw .pt > b { font: 750 var(--s1-fs-4)/1.28 var(--display); letter-spacing: -.012em; }
.hw .pt:hover > b { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.hw .pt .phs { gap: 4px; } .hw .pt .phs i { height: 6px; border-radius: 3px; }
.hw .pt .phs i.c { background: var(--accent-text, var(--accent)); box-shadow: none; }
.hw .pt .pn { font-size: var(--s1-fs-2); margin-top: -4px; }
.hw .pt .pf { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: calc(14px * var(--s1-scale, 1)); }
.hw .pt .pf .st { flex: 1 1 auto; font-size: var(--s1-fs-2); min-width: 0; }
.hw .pt .ptm { flex: none; display: inline-flex; align-items: center; } .hw .pt .ptm > .k-av + .k-av { margin-left: -5px; } .hw .pt .ptm .k-av { width: 28px; height: 28px; font-size: var(--s1-fs-1); box-shadow: 0 0 0 2px var(--panel); }
.hw .pt .ptm small { margin-left: 5px; font: 600 var(--s1-fs-1) var(--ui); color: var(--mute); }

@media (min-width: 1900px) { .hw .hw-it { font-size: var(--s1-fs-4); } .hw .hw-pj { font-size: var(--s1-fs-3); } .hw .hw-sub { font-size: var(--s1-fs-2); } }
@media (max-width: 1199px) {
  .hw .hw-rt { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) 76px minmax(110px, 140px) 92px minmax(170px, 1.2fr) auto; }
  .hw .hw-rt .hw-act { display: flex; } .hw .hw-rt .hw-tr:not(.hw-grp) > .hw-act { padding: 0; } .hw .hw-rt .hw-tr:not(.hw-grp) > .hw-act .btn { display: none; }
  .hw .hw-rt .hw-grp .hw-act .btn { padding: 0 calc(10px * var(--s1-scale, 1)); }
}
@media (max-width: 720px) {
  .hw .hw-hd { padding-top: 16px; padding-bottom: 18px; } .hw .hw-hd h1 { font-size: var(--s1-fs-7); } .hw .hw-g b { font-size: var(--s1-fs-6); } .hw .hw-glance { gap: 6px 20px; font-size: var(--s1-fs-3); margin-top: 12px; }
  .hw .hw-hleg a b { font-size: var(--s1-fs-4); }
  .hw .hw-needs .hw-sh h2 { font-size: var(--s1-fs-6); } .hw .hw-sh h2 { font-size: var(--s1-fs-6); }
  .hw .hw-tr { padding: 14px 0; } .hw .hw-td { padding: 0; }
  .hw .hw-td.hw-what { gap: 12px; }
  .hw .hw-nt .hw-proj, .hw .hw-nt .hw-act { padding-left: 48px; }
  .hw .hw-rt .hw-fc:has(.hw-kn) { display: flex; flex-flow: row wrap; gap: 0 12px; margin-top: 6px; } .hw .hw-td.hw-rp { gap: 8px; }
  .hw .hw-hleg { gap: 6px 14px; }
  .hw .hw-rt .hw-grp > .hw-act { display: flex; justify-content: flex-start; margin-top: 10px; }
  .hw .hw-kid > .hw-td { background: none !important; } .hw .hw-rt .hw-tr.hw-kid { padding-left: 14px; } .hw .hw-kid > .hw-td.hw-rp { padding-left: 0; }
  .hw .pts { gap: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  @keyframes hw-grow { from { transform: scaleX(0); } }
  @keyframes hw-rise { from { opacity: 0; transform: translateY(4px); } }
  .hw.hw-in .hw-hbar span { transform-origin: left center; animation: hw-grow var(--s1-dur-5) cubic-bezier(.2, .8, .2, 1) both; }
  .hw.hw-in .hw-hbar span:nth-child(2) { animation-delay: .08s; } .hw.hw-in .hw-hbar span:nth-child(3) { animation-delay: .16s; } .hw.hw-in .hw-hbar span:nth-child(4) { animation-delay: .24s; }
  @keyframes hw-pop { from { opacity: 0; transform: scaleY(.25); } }
  .hw.hw-in .hw-hbar span.u { transform-origin: center bottom; animation: hw-pop var(--s1-dur-4) cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 9ms); }
  .hw.hw-in .pt .phs i { transform-origin: left center; animation: hw-grow var(--s1-dur-5) cubic-bezier(.2, .8, .2, 1) both; }
  .hw.hw-in .pt .phs i:nth-child(2) { animation-delay: .04s; } .hw.hw-in .pt .phs i:nth-child(3) { animation-delay: .08s; } .hw.hw-in .pt .phs i:nth-child(4) { animation-delay: .12s; } .hw.hw-in .pt .phs i:nth-child(5) { animation-delay: .16s; } .hw.hw-in .pt .phs i:nth-child(n+6) { animation-delay: .2s; }
  .hw.hw-in .hw-tl .slip, .hw.hw-in .hw-tl .ontime { transform-origin: left center; animation: hw-grow var(--s1-dur-5) cubic-bezier(.2, .8, .2, 1) both; }
  .hw.hw-in .hw-tl .fin { animation: hw-rise var(--s1-dur-3) .45s ease-out both; }
}

/* ---- Home v2, second pass (owner, 17 Nov): conviction in the same language. The greeting and the three counts are the page's loudest type; the health meter is the
 * projects themselves, one block each; people have a face with a tint of their own (identity, not status: the status colours stay red, amber, green, blue);
 * a project's phase spine is its anchor. ---- */
.hw .hw-hd { padding-top: calc(30px * var(--s1-scale, 1)); padding-bottom: calc(30px * var(--s1-scale, 1)); align-items: flex-end; }
.hw .hw-hd h1 { font: 800 var(--s1-fs-7)/1.02 var(--display); letter-spacing: -.038em; }
.hw .hw-hd .ey { font-size: var(--s1-fs-3); color: var(--ink-2); }
.hw .hw-glance { gap: calc(10px * var(--s1-scale, 1)) calc(40px * var(--s1-scale, 1)); margin-top: 20px; font: 600 var(--s1-fs-4)/1.2 var(--ui); align-items: baseline; }
.hw .hw-g b { font: 800 var(--s1-fs-7)/1 var(--display); letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.hw .hw-hh { font-size: var(--s1-fs-4); } .hw .hw-hh b { font-size: var(--s1-fs-6); }
.hw .hw-hbar { gap: 3px; align-items: stretch; }
.hw .hw-hbar { min-width: 0; max-width: 100%; overflow: hidden; }
.hw .hw-hbar span.u { flex: 1 1 0; min-width: 0; border-radius: 3px; }
.hw .hw-hbar:has(.u) { gap: 2px; }
.hw .hw-hleg a { font-size: var(--s1-fs-3); } .hw .hw-hleg a b { font-size: var(--s1-fs-6); }
.hw .hw-needs .hw-sh h2 { font-size: var(--s1-fs-6); letter-spacing: -.03em; } .hw .hw-sh h2 { font-size: var(--s1-fs-6); }
.hw .hw-needs .hw-sh .c, .hw .hw-risk .hw-sh .c { font: 800 var(--s1-fs-6)/1 var(--display); color: var(--mute); letter-spacing: -.02em; }

/* Faces. Tinted by role (s1-kit.css [data-rt]); here only the weight. */
.hw .k-av { font-weight: 700; letter-spacing: 0; }
.hw .hw-lead .k-av { width: 40px; height: 40px; font-size: var(--s1-fs-3); } .hw .hw-lead { width: 40px; height: 40px; }
.hw .hw-wo .hw-lead { width: 34px; height: 34px; margin-top: 1px; } .hw .hw-wo .hw-glyph { border-radius: 50%; }

/* Your projects: the phase spine is the tile's anchor. What is done is ink, where the study stands is the accent and a step taller, what is ahead is a hairline track. */
.hw .pt { gap: calc(14px * var(--s1-scale, 1)); padding: calc(20px * var(--s1-scale, 1)) 0 calc(20px * var(--s1-scale, 1)); }
.hw .pt > b { font: 750 var(--s1-fs-5)/1.26 var(--display); letter-spacing: -.016em; }
.hw .pt .phs { gap: 3px; align-items: center; height: 12px; } .hw .pt .phs i { height: 8px; border-radius: 2px; }
.hw .pt .phs i.c { height: 12px; border-radius: 3px; }
.hw .pt .pn { margin-top: -6px; color: var(--ink-2); }
.hw .pt .pf { align-items: flex-end; min-height: 28px; }
.hw .pt .pf .st { align-items: flex-start; font-weight: 600; }
@media (min-width: 1200px) and (max-width: 1640px) { .hw .hw-rt { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.1fr) 72px minmax(96px, 120px) 104px minmax(220px, 1.5fr) auto; } .hw .hw-late small { white-space: nowrap; } }
/* Deadlines: the day leads like This week's days do (the month in sentence case over the day number), never a tiny all-caps month. */
.hw .dlr { grid-template-columns: 52px minmax(0, 1fr) auto; gap: calc(14px * var(--s1-scale, 1)); align-items: start; padding: calc(13px * var(--s1-scale, 1)) 0; font-size: var(--s1-fs-3); }
.hw .dlr .dt { text-align: left; font: 600 var(--s1-fs-1)/1.2 var(--ui); letter-spacing: 0; text-transform: none; color: var(--ink-2); }
.hw .dlr .dt b { font: 800 var(--s1-fs-6)/1 var(--display); letter-spacing: -.025em; color: var(--ink); margin: 3px 0 0; }
.hw .dlr small, .hw .dlr-more summary { font-size: var(--s1-fs-2); }
@media (max-width: 720px) {
  .hw .hw-hd { padding-top: 18px; padding-bottom: 20px; align-items: stretch; } .hw .hw-hd h1 { font-size: var(--s1-fs-7); } .hw .hw-g b { font-size: var(--s1-fs-7); } .hw .hw-glance { gap: 8px 22px; font-size: var(--s1-fs-3); margin-top: 14px; }
  .hw .hw-lead .k-av, .hw .hw-lead { width: 36px; height: 36px; }
  .hw .pt > b { font-size: var(--s1-fs-4); }
  .hw .hw-rt .hw-fc:has(.hw-kn) { justify-content: flex-start; align-items: baseline; gap: 0 14px; }
}
/* First visit: one step on top, the empty sections as one line. */
.hw .hw-first { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; padding: 12px 0; margin: 0 0 8px; border-bottom: 1px solid var(--line, rgba(0,0,0,.12)); }
.hw .hw-first-t { display: grid; gap: 2px; min-width: 200px; flex: 1 1 260px; }
.hw .hw-first-t b { font-size: calc(16px * var(--s1-scale, 1)); }
.hw .hw-first-t .mu, .hw .hw-quiet { font-size: calc(13px * var(--s1-scale, 1)); margin: 0; }
.hw .hw-first-a { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hw .hw-quiet { padding: 8px 0; }
@media (max-width: 640px) { .hw .hw-first-a, .hw .hw-first-a .btn { width: 100%; justify-content: center; } }
