/* 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: 20px; max-width: none; width: 100%; box-sizing: border-box; padding: 26px clamp(16px, 2.6vw, 44px) 72px; 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; }
.s1h-grow { flex: 1 1 auto; min-width: 0; }
.s1h-mute { color: var(--s1-mute); font-size: var(--s1-text-small); }

/* ---- header ---- */
.s1h-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px var(--s1-space-6); margin-bottom: 18px; }
.s1h-kicker { display: flex; align-items: center; gap: 6px; font: 700 12px var(--s1-font-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--s1-mute); }
.s1h-head h1 { font: 700 clamp(26px, 2.4vw, 34px)/1.12 var(--s1-font-display); letter-spacing: -.02em; margin-top: 4px; }
.s1h-sub { margin-top: 6px; color: var(--s1-ink-2); font-size: 15px; }
.s1h-head-act { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.s1h-skel-title { width: 280px; max-width: 70%; height: 32px; border-radius: 8px; background: var(--s1-line-soft); }

/* ---- buttons, pills, chips ---- */
.s1h-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--s1-ink); border-radius: var(--s1-radius-control); padding: 9px 16px; background: var(--s1-ink); color: var(--s1-on-ink) !important; font: 700 14px var(--s1-font-ui); cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, transform .12s, box-shadow .15s; }
.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:focus-visible, .s1h-fchip:focus-visible, .s1h-link:focus-visible, .s1h-row-title:focus-visible, .s1h-tile:focus-visible, .s1h-linkbtn:focus-visible, .s1p-sort:focus-visible, .s1h-seg button:focus-visible { outline: 2px solid var(--s1-ink); outline-offset: 2px; }
.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: 6px 12px; font-size: var(--s1-text-small); }
.s1h-linkbtn { border: 0; background: none; padding: 0; font: 600 var(--s1-text-small) var(--s1-font-ui); text-decoration: underline; cursor: pointer; color: var(--s1-ink); }
.s1h-tlink { display: inline-flex; align-items: center; gap: 4px; font: 600 var(--s1-text-small) var(--s1-font-ui); color: var(--s1-ink-2) !important; text-decoration: none; padding: 4px 6px; border-radius: 6px; }
.s1h-tlink:hover { background: var(--s1-column); color: var(--s1-ink) !important; }

.s1h-pill { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--s1-line); background: var(--s1-panel); color: var(--s1-ink-2); border-radius: var(--s1-radius-pill); padding: 2px 9px; font: 600 12px/1.5 var(--s1-font-ui); white-space: nowrap; }
.s1h-pill--late { color: var(--s1-late); border-color: color-mix(in srgb, var(--s1-late) 38%, white); background: color-mix(in srgb, var(--s1-late) 7%, white); }
.s1h-pill--soon { color: var(--s1-soon); border-color: color-mix(in srgb, var(--s1-soon) 40%, white); background: color-mix(in srgb, var(--s1-soon) 8%, white); }
.s1h-pill--wait { color: var(--s1-wait); border-color: color-mix(in srgb, var(--s1-wait) 36%, white); background: color-mix(in srgb, var(--s1-wait) 7%, white); }
.s1h-pill--ink { background: var(--s1-ink); color: var(--s1-on-ink); border-color: var(--s1-ink); }

.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 10px var(--s1-font-ui); letter-spacing: .02em; flex: none; }
.s1h-mark--lg { width: 40px; height: 40px; border-radius: 11px; font-size: 14px; }
.s1h-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-width: 0; border: 1px solid var(--s1-line); background: var(--s1-panel); border-radius: var(--s1-radius-pill); padding: 2px 10px 2px 3px; font: 600 12.5px/1.5 var(--s1-font-ui); color: var(--s1-ink) !important; text-decoration: none; transition: background .15s, border-color .15s; }
a.s1h-chip:hover { background: var(--s1-column); border-color: var(--s1-checkbox); }
.s1h-chip-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 240px; }
.s1h-chip--project { padding-left: 3px; }

.s1h-av { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--s1-avatar); color: var(--s1-ink-2) !important; font: 700 11.5px var(--s1-font-ui); text-decoration: none; flex: none; border: 2px solid var(--s1-panel); }
.s1h-av--sm { width: 22px; height: 22px; font-size: 9.5px; border-width: 0; }
.s1h-chip .s1h-av--sm { margin: 0; }
.s1h-av--you { background: var(--s1-ink); color: var(--s1-on-ink) !important; }
.s1h-avs { display: inline-flex; align-items: center; }
.s1h-avs .s1h-av { margin-left: -6px; border: 2px solid var(--s1-panel); }
.s1h-avs .s1h-av:first-child { margin-left: 0; }
a.s1h-av:hover { background: var(--s1-ink); color: var(--s1-on-ink) !important; }
.s1h-av--more { background: var(--s1-panel-head); }

.s1h-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.s1h-fchip { border: 1px solid var(--s1-line); background: var(--s1-panel); color: var(--s1-ink-2); border-radius: var(--s1-radius-pill); padding: 4px 12px; font: 600 13px var(--s1-font-ui); cursor: pointer; transition: background .15s; }
.s1h-fchip b { font-weight: 700; margin-left: 2px; color: var(--s1-mute); }
.s1h-fchip:hover { background: var(--s1-column); }
.s1h-fchip.is-on { background: var(--s1-ink); color: var(--s1-on-ink); border-color: var(--s1-ink); }
.s1h-fchip.is-on b { color: inherit; opacity: .8; }

.s1h-seg { display: inline-flex; border: 1px solid var(--s1-line); border-radius: var(--s1-radius-control); background: var(--s1-panel); padding: 3px; gap: 2px; }
.s1h-seg button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; border-radius: 7px; padding: 6px 12px; font: 600 13px var(--s1-font-ui); color: var(--s1-ink-2); cursor: pointer; transition: background .15s, color .15s; }
.s1h-seg button:hover { background: var(--s1-column); }
.s1h-seg button[aria-selected="true"], .s1h-seg button[aria-pressed="true"] { background: var(--s1-ink); color: var(--s1-on-ink); }
.s1h-seg--small button { padding: 4px 10px; font-size: 12.5px; }

/* ---- tiles ---- */
.s1h-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--h-gap); margin-bottom: var(--h-gap); }
.s1h-tile { display: flex; flex-direction: column; gap: 2px; background: var(--s1-panel); border: 1px solid var(--s1-line); border-top: 4px solid var(--s1-line); border-radius: var(--s1-radius-panel); padding: 14px 18px 14px; text-decoration: none; color: var(--s1-ink) !important; transition: transform .15s, box-shadow .15s; }
.s1h-tile:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(17, 19, 24, .09); }
.s1h-tile-head { display: flex; align-items: center; gap: 6px; font-weight: 600; color: var(--s1-ink-2); font-size: var(--s1-text-small); }
.s1h-tile b { font: 700 34px/1.1 var(--s1-font-display); letter-spacing: -.02em; }
.s1h-tile.s1h-tone-late { border-top-color: var(--s1-late); } .s1h-tile.s1h-tone-late b { color: var(--s1-late); }
.s1h-tile.s1h-tone-soon { border-top-color: var(--s1-soon); } .s1h-tile.s1h-tone-soon b { color: var(--s1-soon); }
.s1h-tile.s1h-tone-wait { border-top-color: var(--s1-wait); } .s1h-tile.s1h-tone-wait b { color: var(--s1-wait); }

/* ---- layout ---- */
.s1h-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); gap: var(--h-gap); align-items: start; }
.s1h-col { display: flex; flex-direction: column; gap: var(--h-gap); min-width: 0; }
.s1h-banner { display: flex; align-items: center; gap: 10px; background: color-mix(in srgb, var(--s1-soon) 8%, white); border: 1px solid color-mix(in srgb, var(--s1-soon) 35%, white); border-radius: var(--s1-radius-control); padding: 10px 14px; margin-bottom: var(--h-gap); font-weight: 600; }
.s1h-banner span { flex: 1; }

/* ---- panels ---- */
.s1h-panel { background: var(--s1-panel); border: 1px solid var(--s1-line); border-radius: var(--s1-radius-panel); overflow: clip; scroll-margin-top: 90px; }
.s1h-panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding: 12px 18px; border-bottom: 1px solid var(--s1-line-soft); background: var(--s1-panel-head); }
.s1h-panel-head h2 { display: flex; align-items: center; gap: 8px; font: 700 16px var(--s1-font-display); }
.s1h-panel-ico { display: inline-flex; color: var(--s1-ink-2); }
.s1h-count { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 7px; border-radius: 10px; background: var(--s1-avatar); color: var(--s1-ink-2); font: 700 12px var(--s1-font-ui); }
.s1h-count--late { background: color-mix(in srgb, var(--s1-late) 12%, white); color: var(--s1-late); }
.s1h-count--wait { background: color-mix(in srgb, var(--s1-wait) 12%, white); color: var(--s1-wait); }
.s1h-panel-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.s1h-panel-foot { padding: 9px 18px; border-top: 1px solid var(--s1-line-soft); background: var(--s1-panel-head); color: var(--s1-mute); font-size: var(--s1-text-small); }
.s1h-subtools { padding: 12px 18px 0; }
.s1h-more { padding: 10px 18px 14px; display: flex; justify-content: center; border-top: 1px solid var(--s1-line-soft); }

/* ---- rows ---- */
.s1h-row, .s1h-day-row, .s1h-wait-row, .s1h-ann, .s1h-person-row, .s1h-lane-row { display: flex; align-items: flex-start; gap: 14px; padding: 14px 18px; border-top: 1px solid var(--s1-line-soft); }
.s1h-list > li:first-child { border-top: 0; }
.s1h-row { position: relative; box-shadow: inset 4px 0 0 transparent; transition: background .15s, opacity .2s, transform .2s; }
.s1h-row:hover { background: color-mix(in srgb, var(--s1-column) 70%, white); }
.s1h-row.s1h-tone-late { box-shadow: inset 4px 0 0 var(--s1-late); }
.s1h-row.s1h-tone-wait { box-shadow: inset 4px 0 0 var(--s1-wait); }
.s1h-row.s1h-tone-soon { box-shadow: inset 4px 0 0 var(--s1-soon); }
.s1h-row.is-leaving { opacity: 0; transform: translateX(14px); pointer-events: none; }
.s1h-row-ico { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--s1-column); color: var(--s1-ink-2); flex: none; }
.s1h-row-ico--sm { width: 32px; height: 32px; border-radius: 9px; }
.s1h-tone-late > .s1h-row-ico, .s1h-tone-late > .s1h-hero-ico { background: color-mix(in srgb, var(--s1-late) 10%, white); color: var(--s1-late); }
.s1h-tone-wait > .s1h-row-ico, .s1h-tone-wait > .s1h-hero-ico { background: color-mix(in srgb, var(--s1-wait) 10%, white); color: var(--s1-wait); }
.s1h-tone-soon > .s1h-row-ico, .s1h-tone-soon > .s1h-hero-ico { background: color-mix(in srgb, var(--s1-soon) 11%, white); color: var(--s1-soon); }
.s1h-row-main { flex: 1 1 auto; min-width: 0; }
.s1h-row-title, .s1h-link { font: 700 15px/1.35 var(--s1-font-ui); color: var(--s1-ink) !important; text-decoration: none; overflow-wrap: anywhere; }
.s1h-link { font-weight: 600; font-size: 14.5px; }
.s1h-row-title:hover, .s1h-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.s1h-row-reason { margin-top: 2px; font-weight: 600; font-size: 13.5px; color: var(--s1-ink-2); }
.s1h-row-reason span { color: var(--s1-mute); font-weight: 500; }
.s1h-tone-late .s1h-row-reason { color: var(--s1-late); }
.s1h-tone-wait .s1h-row-reason { color: var(--s1-wait); }
.s1h-tone-soon .s1h-row-reason { color: var(--s1-soon); }
.s1h-row-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 8px; min-width: 0; }
.s1h-row-act { display: flex; align-items: center; gap: 10px; flex: none; align-self: center; }

/* ---- Next hero ---- */
.s1h-hero { display: flex; gap: 18px; align-items: flex-start; background: var(--s1-panel); border: 1px solid var(--s1-line); border-radius: var(--s1-radius-panel); padding: 20px 22px; box-shadow: inset 5px 0 0 var(--s1-ink); }
.s1h-hero.s1h-tone-late { box-shadow: inset 5px 0 0 var(--s1-late); }
.s1h-hero.s1h-tone-wait { box-shadow: inset 5px 0 0 var(--s1-wait); }
.s1h-hero.s1h-tone-soon { box-shadow: inset 5px 0 0 var(--s1-soon); }
.s1h-hero--clear { align-items: center; box-shadow: inset 5px 0 0 var(--s1-ok); }
.s1h-hero--clear .s1h-hero-ico { background: color-mix(in srgb, var(--s1-ok) 10%, white); color: var(--s1-ok); }
.s1h-hero-ico { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 13px; background: var(--s1-column); color: var(--s1-ink-2); flex: none; }
.s1h-hero-main, .s1h-hero > div:nth-child(2) { flex: 1 1 auto; min-width: 0; }
.s1h-eyebrow { display: flex; justify-content: space-between; gap: 10px; font: 700 12px var(--s1-font-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--s1-mute); }
.s1h-eyebrow span { letter-spacing: 0; text-transform: none; font-weight: 600; }
.s1h-hero h2 { font: 700 clamp(20px, 1.9vw, 26px)/1.2 var(--s1-font-display); letter-spacing: -.015em; margin-top: 4px; }
.s1h-hero h2 a { text-decoration: none; color: inherit; }
.s1h-hero h2 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.s1h-hero-sub { margin-top: 4px; font-weight: 600; color: var(--s1-ink-2); }
.s1h-tone-late .s1h-hero-sub { color: var(--s1-late); } .s1h-tone-wait .s1h-hero-sub { color: var(--s1-wait); } .s1h-tone-soon .s1h-hero-sub { color: var(--s1-soon); }
.s1h-hero-act { display: flex; flex-direction: column; gap: 8px; align-items: stretch; flex: none; }
.s1h-hero-act .s1h-btn { justify-content: center; }

/* ---- project cards ---- */
.s1h-pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; padding: 16px 18px 18px; }
.s1h-subtools + .s1h-pgrid { padding-top: 14px; }
.s1h-pcard { display: flex; flex-direction: column; gap: 12px; background: var(--s1-panel); border: 1px solid var(--s1-line); border-radius: 12px; padding: 14px; position: relative; overflow: clip; transition: transform .15s, box-shadow .15s, border-color .15s; }
.s1h-pcard::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--s1-line); }
.s1h-pcard.s1h-tone-late::before { background: var(--s1-late); } .s1h-pcard.s1h-tone-wait::before { background: var(--s1-wait); } .s1h-pcard.s1h-tone-soon::before { background: var(--s1-soon); } .s1h-pcard.s1h-tone-new::before { background: var(--s1-ink); }
.s1h-pcard:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(17, 19, 24, .1); border-color: var(--s1-checkbox); }
.s1h-pcard header { display: flex; align-items: flex-start; gap: 10px; }
.s1h-pcard-id { flex: 1; min-width: 0; }
.s1h-pcard-title { font: 700 15.5px/1.3 var(--s1-font-display); text-decoration: none; color: var(--s1-ink) !important; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.s1h-pcard-title:hover { text-decoration: underline; text-underline-offset: 3px; }
.s1h-pcard-id p { color: var(--s1-mute); font-size: 12.5px; margin-top: 2px; }
.s1h-pcard footer { display: flex; align-items: center; gap: 8px; margin-top: auto; flex-wrap: wrap; }
.s1h-pcard--compact { padding: 12px; gap: 10px; }
.s1h-pcard--compact .s1h-mark--lg { width: 32px; height: 32px; font-size: 12px; border-radius: 9px; }
.s1h-pcard--compact .s1h-pcard-title { font-size: 14.5px; }
.s1h-pcard--compact header > .s1h-pill { display: none; }
.s1h-segbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; }
.s1h-segbar i { display: block; height: 6px; border-radius: 3px; background: var(--s1-track); }
.s1h-segbar i.is-done, .s1h-segbar i.is-current { background: var(--s1-ink); }
.s1h-segbar i.is-current { box-shadow: 0 0 0 2px color-mix(in srgb, var(--s1-ink) 22%, white); }
.s1h-segbar.is-late i.is-current { background: var(--s1-late); box-shadow: 0 0 0 2px color-mix(in srgb, var(--s1-late) 22%, white); }
.s1h-reason { display: flex; align-items: flex-start; gap: 8px; text-decoration: none; border-radius: 9px; padding: 8px 10px; background: var(--s1-column); color: var(--s1-ink-2) !important; transition: background .15s; }
.s1h-reason:hover { background: var(--s1-line-soft); }
.s1h-reason span { flex: 1; min-width: 0; } .s1h-reason b { display: block; font-size: 13.5px; } .s1h-reason em { display: block; font-style: normal; font-size: 12.5px; color: var(--s1-mute); }
.s1h-reason.s1h-tone-late { color: var(--s1-late) !important; background: color-mix(in srgb, var(--s1-late) 7%, white); }
.s1h-reason.s1h-tone-wait { color: var(--s1-wait) !important; background: color-mix(in srgb, var(--s1-wait) 7%, white); }
.s1h-reason.s1h-tone-soon { color: var(--s1-soon) !important; background: color-mix(in srgb, var(--s1-soon) 8%, white); }
.s1h-reason-inline { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 600; font-size: 13.5px; color: var(--s1-ink-2) !important; }
.s1h-reason-inline.s1h-tone-late { color: var(--s1-late) !important; } .s1h-reason-inline.s1h-tone-wait { color: var(--s1-wait) !important; } .s1h-reason-inline.s1h-tone-soon { color: var(--s1-soon) !important; }

/* ---- side panels ---- */
.s1h-day-row { align-items: center; gap: 12px; padding: 11px 18px; }
.s1h-date { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; width: 44px; height: 48px; border: 1.5px solid var(--s1-line); border-radius: 10px; flex: none; line-height: 1.1; background: var(--s1-panel); }
.s1h-date b { font: 700 17px var(--s1-font-display); } .s1h-date small { font: 700 10px var(--s1-font-ui); text-transform: uppercase; letter-spacing: .06em; color: var(--s1-mute); }
.s1h-date--soon { border-color: var(--s1-soon); } .s1h-date--soon b, .s1h-date--soon small { color: var(--s1-soon); }
.s1h-date.is-today { background: var(--s1-ink); border-color: var(--s1-ink); } .s1h-date.is-today b, .s1h-date.is-today small { color: var(--s1-on-ink); }
.s1h-rel { font: 600 12.5px var(--s1-font-ui); color: var(--s1-mute); white-space: nowrap; align-self: center; } .s1h-rel--soon { color: var(--s1-soon); }
.s1h-wait-row, .s1h-ann, .s1h-person-row { gap: 12px; padding: 12px 18px; align-items: flex-start; }
.s1h-person-row { align-items: center; }
.s1h-wait-row .s1h-row-ico--sm { background: color-mix(in srgb, var(--s1-wait) 10%, white); color: var(--s1-wait); }
.s1h-cta { display: flex; align-items: center; gap: 12px; margin: 4px 14px 14px; padding: 12px 14px; border: 1px solid var(--s1-line); border-radius: 11px; text-decoration: none; color: var(--s1-ink) !important; transition: background .15s, border-color .15s; }
.s1h-cta:hover { background: var(--s1-column); border-color: var(--s1-checkbox); }
.s1h-cta-ico { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--s1-ink); color: var(--s1-on-ink); }
.s1h-cta b { display: block; } .s1h-cta small { color: var(--s1-mute); font-size: 12.5px; }

/* coordinator lanes */
.s1h-lanes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.s1h-lane { min-width: 0; }
.s1h-lane + .s1h-lane { border-left: 1px solid var(--s1-line-soft); }
.s1h-lane h3 { display: flex; align-items: center; gap: 8px; padding: 12px 18px 10px; font: 700 13px var(--s1-font-ui); text-transform: uppercase; letter-spacing: .06em; }
.s1h-lane.s1h-tone-late h3 { color: var(--s1-late); } .s1h-lane.s1h-tone-soon h3 { color: var(--s1-soon); }
.s1h-lane-row { padding: 11px 18px; gap: 10px; align-items: center; }
.s1h-lane-empty, .s1h-lane-more { padding: 6px 18px 16px; }
.s1h-lane-more a { color: inherit; text-decoration: underline; }

/* states */
.s1h-empty { display: flex; align-items: center; gap: 10px; margin: 14px 18px; padding: 12px 14px; border: 1.5px dashed var(--s1-line); border-radius: var(--s1-radius-empty); color: var(--s1-ink-2); }
.s1h-empty > span { flex: 1; }
.s1h-error { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 18px; padding: 10px 12px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--s1-late) 35%, white); background: color-mix(in srgb, var(--s1-late) 6%, white); color: var(--s1-late); font-weight: 600; }
.s1h-error span { display: inline-flex; align-items: center; gap: 8px; }
.s1h-skel { display: flex; gap: 14px; padding: 16px 18px; border-top: 1px solid var(--s1-line-soft); }
.s1h-skel i { width: 40px; height: 40px; border-radius: 11px; background: var(--s1-line-soft); }
.s1h-skel span { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.s1h-skel b { height: 14px; width: 55%; border-radius: 6px; background: var(--s1-line-soft); } .s1h-skel em { height: 11px; width: 80%; border-radius: 6px; background: var(--s1-column); }
.s1h-skel i, .s1h-skel b, .s1h-skel em, .s1h-skel-title { animation: s1h-pulse 1.3s ease-in-out infinite; }

/* ---- motion ---- */
@keyframes s1h-pulse { 50% { opacity: .55; } }
@keyframes s1h-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.s1h-enter .s1h-panel, .s1h-enter .s1h-hero, .s1h-enter .s1h-tile, .s1h-enter .s1h-head { animation: s1h-rise .42s cubic-bezier(.2, .7, .2, 1) both; }
.s1h-enter .s1h-col--main > :nth-child(2), .s1h-enter .s1h-col--side > :nth-child(1) { animation-delay: .05s; }
.s1h-enter .s1h-col--main > :nth-child(3), .s1h-enter .s1h-col--side > :nth-child(2) { animation-delay: .1s; }
.s1h-enter .s1h-col--side > :nth-child(3) { animation-delay: .15s; }
.s1h-enter .s1h-tile:nth-child(2) { animation-delay: .04s; } .s1h-enter .s1h-tile:nth-child(3) { animation-delay: .08s; } .s1h-enter .s1h-tile:nth-child(4) { animation-delay: .12s; }
@media (prefers-reduced-motion: reduce) { .s1-home *, .s1-home *::before { animation: none !important; transition: none !important; } }

/* ---- My projects ---- */
.s1p-panel { overflow: visible; }
.s1p-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 18px; 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: 8px; border: 1px solid var(--s1-line); background: var(--s1-panel); border-radius: var(--s1-radius-control); padding: 0 10px; min-width: 220px; color: var(--s1-mute); }
.s1p-search input { border: 0; outline: 0; background: none; padding: 8px 0; font: 500 14px var(--s1-font-ui); color: var(--s1-ink); width: 100%; }
.s1p-search:focus-within { border-color: var(--s1-ink); box-shadow: 0 0 0 2px color-mix(in srgb, var(--s1-ink) 14%, white); }
.s1p-body { padding: 16px 18px 20px; }
.s1p-board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 8px; 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: 10px; display: flex; flex-direction: column; gap: 10px; 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 13px var(--s1-font-ui); text-transform: uppercase; letter-spacing: .06em; color: var(--s1-ink-2); }
.s1p-col-empty { text-align: center; padding: 14px 0; color: var(--s1-mute); font-size: 13px; 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: 10px 14px; background: var(--s1-panel-head); border-bottom: 1px solid var(--s1-line); font: 700 12px 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: 12px 14px; 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 .12s; } .s1p-table tbody tr:hover td, .s1p-table tbody tr:hover th { background: color-mix(in srgb, var(--s1-column) 75%, white); }
.s1p-name { display: flex; align-items: center; gap: 10px; 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: 6px; min-width: 120px; font-size: 13px; 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: 10px; padding: 12px 14px; font: 700 12px 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: 14px; }
.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: 12.5px; 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 12px 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); }
.s1h-tone-late .s1p-tl-bar { background: color-mix(in srgb, var(--s1-late) 35%, white); } .s1h-tone-wait .s1p-tl-bar { background: color-mix(in srgb, var(--s1-wait) 35%, white); } .s1h-tone-soon .s1p-tl-bar { background: color-mix(in srgb, var(--s1-soon) 35%, white); }
.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 .15s; }
.s1p-pt:hover, .s1p-pt:focus-visible { transform: scale(1.35); outline: 2px solid var(--s1-ink); outline-offset: 2px; }
.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: 13px; }
.s1p-tl-note { margin-top: 10px; }

/* ---- responsive ---- */
@media (max-width: 1100px) { .s1h-grid { grid-template-columns: minmax(0, 1fr); } .s1h-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .s1-home { padding: 18px 16px 96px; --h-gap: 16px; }
  .s1h-row { flex-wrap: wrap; } .s1h-row-main { flex-basis: calc(100% - 56px); } .s1h-row-act { margin-left: 54px; align-self: flex-start; flex-wrap: wrap; }
  .s1h-hero { flex-wrap: wrap; padding: 16px; } .s1h-hero-main, .s1h-hero > div:nth-child(2) { flex-basis: calc(100% - 66px); } .s1h-hero-act { flex-direction: row; width: 100%; flex-wrap: wrap; }
  .s1h-lanes { grid-template-columns: minmax(0, 1fr); } .s1h-lane + .s1h-lane { border-left: 0; border-top: 1px solid var(--s1-line-soft); }
  .s1h-pgrid { grid-template-columns: minmax(0, 1fr); padding: 14px; }
  .s1h-tile b { font-size: 28px; } .s1h-tile { padding: 12px 14px; }
  .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; }
  .s1h-head-act { width: 100%; } .s1h-head-act .s1h-btn { flex: 1 1 auto; }
}

/* ---- prototype patterns: scannable rows, note strip, check-in, project card pills ---- */
.s1h-row-detail { margin-top: 6px; font-size: 13px; color: var(--s1-mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s1h-row-meta--tight { margin-top: 3px; gap: 6px; }
.s1h-ann-by { display: flex; align-items: center; gap: 6px; margin-top: 3px; }
.s1h-note, .s1h-checkin { display: flex; align-items: center; gap: 14px; background: var(--s1-panel); border: 1px solid var(--s1-line); border-radius: var(--s1-radius-panel); padding: 14px 18px; margin-bottom: var(--h-gap); }
.s1h-note { box-shadow: inset 4px 0 0 var(--s1-ink); align-items: flex-start; }
.s1h-note > .s1h-btn { align-self: center; flex: none; }
.s1h-note b, .s1h-checkin b { display: block; font: 700 15px var(--s1-font-ui); }
.s1h-note p { margin-top: 2px; color: var(--s1-ink-2); font-size: 14px; max-width: 110ch; }
.s1h-note .s1h-row-meta { margin-top: 8px; }
.s1h-note-ico { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--s1-column); color: var(--s1-ink-2); flex: none; }
.s1h-checkin { box-shadow: inset 4px 0 0 var(--s1-soon); }
.s1h-checkin .s1h-note-ico { background: color-mix(in srgb, var(--s1-soon) 11%, white); color: var(--s1-soon); }
.s1h-checkin .s1h-chips { justify-content: flex-end; flex: none; }
.s1h-fchip--ico { display: inline-flex; align-items: center; gap: 6px; }
.s1h-fchip[disabled] { opacity: .55; cursor: progress; }
.s1h-pcard-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.s1h-pcard-phase { display: flex; justify-content: space-between; gap: 8px; margin-bottom: -6px; font-size: 12.5px; font-weight: 600; color: var(--s1-ink-2); }
.s1h-day-row .s1h-row-ico { flex: none; }
@media (max-width: 900px) { .s1h-checkin { flex-wrap: wrap; } .s1h-checkin .s1h-grow { flex: 1 1 calc(100% - 60px); } .s1h-checkin .s1h-chips { justify-content: flex-start; flex: 1 1 100%; } }
@media (max-width: 720px) { .s1h-note { flex-wrap: wrap; } .s1h-note > .s1h-btn { margin-left: 50px; } .s1h-row-detail { white-space: normal; } }

/* PI "This week": four short lists, one screen, about two minutes. */
.s1h-pw { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.s1h-pw-block { min-width: 0; padding-bottom: 8px; border-top: 1px solid var(--s1-line-soft); }
.s1h-pw-block:nth-child(even) { border-left: 1px solid var(--s1-line-soft); }
.s1h-pw-block h3 { display: flex; align-items: center; gap: 8px; padding: 12px 18px 6px; font: 700 13px var(--s1-font-ui); }
.s1h-pw-list { list-style: none; margin: 0; padding: 0; }
.s1h-pw-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 8px 18px; }
.s1h-pw-list li > .s1h-link { flex: 1 1 60%; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.s1h-pw-empty { padding: 4px 18px 10px; margin: 0; }
@media (max-width: 720px) {
  .s1h-pw { grid-template-columns: minmax(0, 1fr); }
  .s1h-pw-block:nth-child(even) { border-left: 0; }
  .s1h-pw-list li .s1h-btn { min-height: 44px; }
}
