/* ==========================================================================
   RWT Portal Kit  (s1-kit.css), ported from the approved round-2 prototype for S1 surfaces.
   Global resets, the prototype rail/top-bar shell and the bare tone-* class names were dropped or prefixed
   (k-tone-*) so nothing here can touch the legacy portal. Documentation: top of s1-kit.js.
   Built on S1 tokens (css/s1-*.css). Color carries meaning only:
   red = late/blocked, amber = due soon, blue = waiting on someone, green = brief "done".
   Ink = actions and "you are here". Maroon = logo only. Projects and people are never hue-coded.
   ========================================================================== */
:root {
  --k-font-ui: "RWT S1 Inter", Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --k-font-display: var(--s1-font-display);
  --k-page-max: var(--s1-page-max);
  --k-rail: 232px;
  --k-rail-mini: 68px;
  --k-top: 56px;
  --k-shadow-pop: 0 18px 48px rgb(17 19 24 / .22), 0 2px 8px rgb(17 19 24 / .08);
  --k-shadow-card: var(--s1-shadow-panel);
  --k-tint: 9%;
}

/* Text for screen readers only (Kit.pill's title, a field's hidden label, an avatar's name). One rule for every page: it used to be scoped to two pages, so the text showed on screen everywhere else. */
.k-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.k-num { font-variant-numeric: tabular-nums; }
.k-mute { color: var(--s1-mute); }
.k-ink2 { color: var(--s1-ink-2); }
.k-b { font-weight: 700; }
.k-sm { font-size: var(--s1-text-small); }
.k-xs { font-size: var(--s1-text-micro); }
.k-grow { flex: 1 1 auto; min-width: 0; }
.k-trunc { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.k-clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.k-flex { display: flex; align-items: center; gap: calc(10px * var(--s1-scale, 1)); }
.k-wrap { flex-wrap: wrap; }
.k-gap4 { gap: 4px; } .k-gap6 { gap: calc(6px * var(--s1-scale, 1)); } .k-gap8 { gap: calc(8px * var(--s1-scale, 1)); } .k-gap14 { gap: calc(14px * var(--s1-scale, 1)); }
.k-spacer { flex: 1 1 auto; }
.k-stack { display: grid; gap: calc(16px * var(--s1-scale, 1)); align-content: start; min-width: 0; }
.k-stack-sm { display: grid; gap: calc(8px * var(--s1-scale, 1)); min-width: 0; }
.k-icon { display: inline-block; flex: none; width: 16px; height: 16px; vertical-align: -3px; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; overflow: visible; pointer-events: none; }
.k-icon--12 { width: 12px; height: 12px; stroke-width: 2.6; vertical-align: -1px; }
.k-icon--14 { width: 14px; height: 14px; stroke-width: 2.4; vertical-align: -2px; }
.k-icon--18 { width: 18px; height: 18px; stroke-width: 2.1; vertical-align: -4px; }
.k-icon--20 { width: 20px; height: 20px; stroke-width: 2; vertical-align: -5px; }
.k-icon--24 { width: 24px; height: 24px; stroke-width: 1.9; vertical-align: -6px; }
.k-tone-late { --tone: var(--s1-late); } .k-tone-soon { --tone: var(--s1-soon); } .k-tone-wait { --tone: var(--s1-wait); } .k-tone-ok { --tone: var(--s1-ok); } .k-tone-ink { --tone: var(--s1-ink); } .k-tone-mute { --tone: var(--s1-mute); }

.k-iconbtn { position: relative; display: inline-grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--s1-line); background: var(--s1-panel); border-radius: 10px; color: var(--s1-ink); cursor: pointer; flex: none; text-decoration: none; transition: background var(--s1-dur-2) var(--s1-ease), border-color var(--s1-dur-2) var(--s1-ease); }
.k-iconbtn:hover { background: var(--s1-panel-head); border-color: var(--s1-line-strong); }
.k-iconbtn .k-dot { position: absolute; top: -6px; right: -6px; min-width: 16px; height: 16px; border-radius: 8px; background: var(--s1-late); color: var(--s1-on-ink); font: 700 var(--s1-fs-1)/16px var(--k-font-ui); text-align: center; padding: 0 4px; box-shadow: 0 0 0 2px var(--s1-panel); }

/* ---------- Page shell: full width, centered, never a narrow left column ----------
   .k-page is the outermost wrapper of an S1 screen. It owns the side gutters and centers at --k-page-max. */
.k-page { width: 100%; max-width: calc(var(--k-page-max) + 2 * var(--s1-gutter)); margin: 0 auto; padding: calc(22px * var(--s1-scale, 1)) var(--s1-gutter) calc(64px * var(--s1-scale, 1)); display: grid; gap: calc(20px * var(--s1-scale, 1)); min-width: 0; align-content: start; box-sizing: border-box; }
.k-modal-root [hidden], .k-page [hidden] { display: none !important; }
.k-modal-root, .k-modal-root *, .k-page, .k-page *, .k-menu, .k-menu *, .k-toasts, .k-toasts * { box-sizing: border-box; }

/* ---------- Page header ---------- */
.k-head { display: grid; gap: calc(12px * var(--s1-scale, 1)); }
.k-head-row { display: flex; align-items: flex-start; gap: calc(16px * var(--s1-scale, 1)); flex-wrap: wrap; }
.k-kicker { display: flex; align-items: center; gap: calc(7px * var(--s1-scale, 1)); font: 700 var(--s1-text-micro) var(--k-font-ui); letter-spacing: .09em; text-transform: uppercase; color: var(--s1-mute); }
.k-title { margin: 2px 0 0; font: 800 var(--s1-title)/1.12 var(--k-font-display); letter-spacing: -.022em; overflow-wrap: anywhere; }
.k-sub { margin: 6px 0 0; color: var(--s1-ink-2); font-size: var(--s1-fs-4); max-width: 78ch; }
.k-head-actions { margin-left: auto; display: flex; gap: calc(8px * var(--s1-scale, 1)); flex-wrap: wrap; align-items: center; }
.k-facts { display: flex; flex-wrap: wrap; gap: calc(8px * var(--s1-scale, 1)) calc(10px * var(--s1-scale, 1)); align-items: center; }

/* ---------- Layout helpers (full width, never a narrow left column) ---------- */
.k-grid { display: grid; gap: calc(16px * var(--s1-scale, 1)); min-width: 0; }
.k-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.k-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.k-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
/* Wide screens: a main stack and a context stack side by side once the page area is wide enough (about 1200px: a 1440px window, or 1700px while the Manage or Group
 * panel is open); one column, in source order, below that. .k-wide--xl waits for a wider page (it sits inside a column that already has a neighbour, as on Home);
 * .k-wide--even gives both stacks room; .k-wide--side-first keeps the context above the main stack while they are stacked. Kit.wide(main, side, opts) writes it. */
.k-wide { --k-wide-2: minmax(0, 1fr) var(--k-wide-side, var(--s1-side-col)); display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s1-panel-gap); align-items: start; min-width: 0; }
.k-wide > * { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s1-panel-gap); align-content: start; min-width: 0; }
.k-wide--even { --k-wide-side: minmax(0, .8fr); }
.k-wide--side-first > :first-child { order: var(--k-wide-order, 0); }
@media (min-width: 1440px) { .k-wide:not(.k-wide--xl) { grid-template-columns: var(--k-wide-2); --k-wide-order: 2; } }
@media (min-width: 1700px) { .k-wide:not(.k-wide--xl), .k-wide--xl { grid-template-columns: var(--k-wide-2); --k-wide-order: 2; } }
@media (min-width: 1960px) { .k-wide--xl { grid-template-columns: var(--k-wide-2); --k-wide-order: 2; } }
/* Masonry (Kit.mas / Kit.masonry in s1-kit-views.js): peer blocks flow into the shortest column. One column in source order until placed; hairlines between columns,
 * or gaps for ready-made panels (.k-mas--cards). */
.k-mas { display: grid; grid-template-columns: repeat(var(--k-mas-n, 1), minmax(0, 1fr)); min-width: 0; }
.k-mas-col { display: flex; flex-direction: column; min-width: 0; }
.k-mas-col + .k-mas-col { border-left: 1px solid var(--s1-line-soft); }
.k-mas-blk { padding: calc(18px * var(--s1-scale, 1)) calc(24px * var(--s1-scale, 1)) calc(20px * var(--s1-scale, 1)); border-top: 1px solid var(--s1-line-soft); }
.k-mas--cards { gap: var(--s1-panel-gap); align-items: start; }
.k-mas--cards > .k-mas-col { gap: var(--s1-panel-gap); border-left: 0; }
/* Running text keeps a comfortable measure however wide the page is. */
:where(.k-panel-body) > p, .k-callout > .k-grow > span { max-width: var(--s1-measure); }
.k-cols-main-side { grid-template-columns: minmax(0, 1fr) minmax(300px, 400px); align-items: start; }
.k-cols-side-main { grid-template-columns: minmax(280px, 340px) minmax(0, 1fr); align-items: start; }
.k-cols-2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; }
.k-auto { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.k-auto-sm { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
@media (max-width: 1180px) { .k-cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .k-cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1000px) { .k-cols-main-side, .k-cols-side-main, .k-cols-2-1, .k-cols-2 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .k-cols-4, .k-cols-3 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Panel ---------- */
.k-panel { background: none; border: 0; border-top: 1px solid var(--s1-line-soft); border-radius: 0; min-width: 0; }
.k-panel-head { display: flex; flex-wrap: wrap; align-items: center; gap: calc(8px * var(--s1-scale, 1)) calc(10px * var(--s1-scale, 1)); padding: 0 0 0 0; border-bottom: 1px solid var(--s1-line-soft); background: var(--s1-panel-band); border-radius: 0; min-height: 44px; }
/* Open section: a title over a rule, straight on the canvas. For content a card adds nothing to. */
.k-panel--open { background: none; border: 0; border-radius: 0; box-shadow: none; margin-top: 8px; }
.k-panel--open > .k-panel-head { padding: 0 0 calc(8px * var(--s1-scale, 1)); min-height: 0; background: none; border-bottom-color: var(--s1-line); border-radius: 0; }
.k-panel--open > .k-panel-body { padding: calc(12px * var(--s1-scale, 1)) 0 0; }
.k-panel-title { display: inline-flex; align-items: center; gap: calc(8px * var(--s1-scale, 1)); margin: 0; font: var(--s1-panel-title); letter-spacing: -.005em; min-width: 0; }
.k-panel-tools { margin-left: auto; display: flex; align-items: center; gap: calc(8px * var(--s1-scale, 1)); flex-wrap: wrap; justify-content: flex-end; }
.k-panel-body { padding: calc(14px * var(--s1-scale, 1)) 0; }
.k-panel-body--flush { padding: 0; }
.k-panel-foot { padding: calc(10px * var(--s1-scale, 1)) calc(16px * var(--s1-scale, 1)); border-top: 1px solid var(--s1-line-soft); background: var(--s1-panel-head); border-top-color: var(--s1-line-soft); border-radius: 0; font-size: var(--s1-text-small); color: var(--s1-mute); display: flex; align-items: center; gap: calc(10px * var(--s1-scale, 1)); }
.k-count { display: inline-block; min-width: 22px; padding: 0 calc(6px * var(--s1-scale, 1)); border: 1px solid var(--s1-line); border-radius: 999px; background: var(--s1-panel); color: var(--s1-ink-2); font: 650 var(--s1-text-micro)/calc(19px * var(--s1-scale, 1)) var(--k-font-ui); text-align: center; font-variant-numeric: tabular-nums; }
.k-count--late { color: var(--s1-late); border-color: color-mix(in srgb, var(--s1-late) 45%, var(--s1-panel)); background: color-mix(in srgb, var(--s1-late) 7%, var(--s1-panel)); }
.k-count--wait { color: var(--s1-wait); border-color: color-mix(in srgb, var(--s1-wait) 45%, var(--s1-panel)); background: color-mix(in srgb, var(--s1-wait) 7%, var(--s1-panel)); }

/* ---------- Buttons (S1 .s1-btn is the base; these are kit additions) ---------- */
.k-btn { display: inline-flex; align-items: center; justify-content: center; gap: calc(7px * var(--s1-scale, 1)); border: 1px solid transparent; border-radius: 8px; height: var(--s1-control-h); padding: 0 calc(11px * var(--s1-scale, 1)); background: var(--s1-ink); color: var(--s1-on-ink); font: 600 var(--s1-fs-2)/1 var(--k-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); }
.k-btn:hover { background: var(--s1-ink-hover); }
.k-btn:active { transform: translateY(1px); }
.k-btn--ghost { background: var(--s1-panel); color: var(--s1-ink); border-color: var(--s1-line); font-weight: 600; }
.k-btn--ghost:hover { background: var(--s1-panel-head); border-color: var(--s1-line-strong); }
.k-btn--sm { height: var(--s1-control-h-sm); padding: 0 calc(9px * var(--s1-scale, 1)); font-size: var(--s1-fs-1); border-radius: 7px; gap: 5px; }
.k-btn--late { color: var(--s1-late); border-color: color-mix(in srgb, var(--s1-late) 40%, var(--s1-panel)); }
.k-btn--link { background: none; border: 0; height: auto; padding: 2px 4px; color: var(--s1-ink); font-weight: 650; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--s1-line); }
.k-btn--link:hover { background: none; text-decoration-color: var(--s1-ink); }
.k-btn[disabled] { opacity: .45; cursor: default; }
.k-btn--icon { width: 32px; padding: 0; } .k-btn--icon.k-btn--sm { width: 26px; }

/* ---------- Avatars and chips ---------- */
.k-av { overflow: hidden; white-space: nowrap; display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--s1-avatar); color: var(--s1-ink-2); font: 700 var(--s1-text-micro)/1 var(--k-font-ui); letter-spacing: .01em; text-decoration: none; position: relative; transition: transform var(--s1-dur-2) var(--s1-ease), box-shadow var(--s1-dur-2) var(--s1-ease); }
a.k-av:hover { transform: translateY(-1px); box-shadow: 0 0 0 2px var(--s1-ink); }
.k-av--xs { width: 24px; height: 24px; font-size: var(--s1-fs-1); } /* 24 px: a person's avatar is a link, and a link has a 24 px box */
.k-av--sm { width: 24px; height: 24px; font-size: var(--s1-fs-1); }
.k-av--md { width: 34px; height: 34px; font-size: var(--s1-text-small); }
.k-av--lg { width: 48px; height: 48px; font-size: var(--s1-fs-4); }
.k-av--xl { width: 72px; height: 72px; font-size: var(--s1-fs-6); }
/* Avatar tint = the person's ROLE (RWT.roleTone, rwt-format.js; data-rt on the avatar), muted, never by name. The hues are the --s1-role-* tokens (s1-tokens.css), which no status,
   brand or viewer colour shares (test/ui-avatar-role-tone.test.mjs checks that). One tint per role; no role = the plain neutral avatar. A profile photo is never tinted.
   Fill is 40% (30% in dark) of the hue on the panel and text is the hue pulled toward ink, so it stays AA in both themes (the same test computes it). */
[data-rt] { --rt: var(--s1-ink-2); }
:root { --rt-fill: 40%; } :root[data-theme="dark"] { --rt-fill: 30%; }
[data-rt="pi"] { --rt: var(--s1-role-pi); }
[data-rt="lead"] { --rt: var(--s1-role-lead); }
[data-rt="coordinator"] { --rt: var(--s1-role-coordinator); }
[data-rt="staff"] { --rt: var(--s1-role-staff); }
[data-rt="trainee"] { --rt: var(--s1-role-trainee); }
:is(.k-av, .av, .s1-avatar, .s1h-av)[data-rt]:not([data-rt="none"]):not(.k-av--you, .me, .k-av--photo) { background: color-mix(in srgb, var(--rt) var(--rt-fill), var(--s1-panel)); color: color-mix(in srgb, var(--rt) 70%, var(--s1-ink)) !important; }
:is(.k-av, .av, .s1-avatar, .s1h-av)[data-rt="none"]:not(.k-av--you, .me, .k-av--photo) { background: var(--s1-avatar); color: var(--s1-ink-2) !important; }
:is(.k-av, .av)[data-rt].k-av--photo { background: var(--s1-avatar); }
.k-av > .k-av-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; background: var(--s1-panel); }
.k-av--photo { overflow: hidden; }
[data-kav] { position: relative; }
[data-kav].k-av--photo { overflow: hidden; }
[data-kav] > .k-av-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.k-av--you { background: var(--s1-ink); color: var(--s1-on-ink); }
.k-av--pi { box-shadow: 0 0 0 2px var(--s1-panel), 0 0 0 3.5px var(--s1-ink); }
a.k-av--pi:hover { box-shadow: 0 0 0 2px var(--s1-panel), 0 0 0 3.5px var(--s1-ink), 0 2px 6px rgb(0 0 0 / .2); }
.k-avs { display: inline-flex; align-items: center; }
.k-avs > * + * { margin-left: -2px; }
.k-avs > .k-av { box-shadow: 0 0 0 2px var(--s1-panel); }
.k-avs > .k-av--pi { box-shadow: 0 0 0 2px var(--s1-panel); border: 1.5px solid var(--s1-ink); }
.k-pms { gap: 3px; } .k-pms > * + * { margin-left: 0; } .k-pms > a { box-shadow: none; }
.k-avs-more { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 5px; border-radius: 12px; background: var(--s1-panel); border: 1px solid var(--s1-line); color: var(--s1-ink-2); font: 700 var(--s1-fs-1) var(--k-font-ui); margin-left: -5px; box-shadow: 0 0 0 2px var(--s1-panel); }
.k-pchip, .k-uchip { display: inline-flex; align-items: center; gap: calc(7px * var(--s1-scale, 1)); max-width: 100%; min-width: 0; padding: 2px calc(10px * var(--s1-scale, 1)) 2px 3px; border: 1px solid var(--s1-line); border-radius: 999px; background: var(--s1-panel); color: var(--s1-ink); text-decoration: none; font: 600 var(--s1-text-small)/1.3 var(--k-font-ui); transition: border-color var(--s1-dur-2) var(--s1-ease), background var(--s1-dur-2) var(--s1-ease), box-shadow var(--s1-dur-2) var(--s1-ease); }
.k-pchip:hover, .k-uchip:hover { border-color: var(--s1-ink); background: var(--s1-panel-head); }
.k-pchip .k-pn, .k-uchip .k-pn { min-width: 0; max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Project mark: ink disc with white letters. Hue-free by design (S1 rule: no monogram covers, no decorative color). */
.k-pm { display: inline-grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--s1-ink); color: var(--s1-on-ink); font: 800 var(--s1-fs-1)/1 var(--k-font-display); letter-spacing: .02em; }
.k-pm--sm { width: 22px; height: 22px; font-size: var(--s1-fs-1); }
.k-pm--md { width: 30px; height: 30px; font-size: var(--s1-text-micro); }
.k-pm--lg { width: 44px; height: 44px; font-size: var(--s1-fs-4); }
.k-pm--xl { width: 64px; height: 64px; font-size: var(--s1-fs-5); }
a.k-pm { text-decoration: none; }
.k-pm--img { position: relative; overflow: hidden; }
.k-pm--img > .k-pm-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; background: var(--s1-panel); }
.k-pm--icon > .k-icon { width: 56%; height: 56%; }
a.k-pm:hover { box-shadow: 0 0 0 2px var(--s1-panel), 0 0 0 4px var(--s1-ink); }
.k-pchip--bare { padding: 0; border: 0; background: none; }
.k-uchip .k-av { width: 22px; height: 22px; font-size: var(--s1-fs-1); }
.k-uchip small { color: var(--s1-mute); font-weight: 500; font-size: var(--s1-text-micro); }
.k-school { color: var(--s1-mute); font-weight: 500; font-size: var(--s1-text-micro); }
.k-school:empty { display: none; }
.k-uchip .k-school::before, span.k-school:not(:empty)::before { content: '· '; }
.k-uchip .k-school { white-space: nowrap; }

/* ---------- Pills, tags ---------- */
.k-pill { display: inline-flex; align-items: center; gap: 5px; min-height: 22px; padding: 2px calc(9px * var(--s1-scale, 1)) 2px calc(7px * var(--s1-scale, 1)); border-radius: 999px; border: 0; background: color-mix(in srgb, var(--tone, var(--s1-ink-2)) var(--k-tint), var(--s1-panel)); color: var(--tone, var(--s1-ink-2)); font: 650 var(--s1-fs-1)/1.25 var(--k-font-ui); white-space: nowrap; max-width: 100%; } /* the same pill as .chip[data-s] in redesign-v4.css: no border, 12px/650, 22px tall */
.k-pill--solid { background: var(--tone, var(--s1-ink)); color: var(--s1-on-ink); }
.k-pill--plain { --tone: var(--s1-ink-2); background: var(--s1-panel-head); }
.k-pill--ink { --tone: var(--s1-ink); background: var(--s1-ink); color: var(--s1-on-ink); }
.k-pill .k-icon { width: 13px; height: 13px; vertical-align: -2px; stroke-width: 2.4; }
.k-pill .k-sdot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
a.k-pill { text-decoration: none; } a.k-pill:hover { filter: brightness(.94); text-decoration: underline; text-underline-offset: 2px; }
.k-tag { display: inline-flex; align-items: center; gap: 4px; padding: 1px calc(8px * var(--s1-scale, 1)); border-radius: 6px; background: var(--s1-column); border: 1px solid var(--s1-line-soft); color: var(--s1-ink-2); font: 600 var(--s1-text-micro)/1.5 var(--k-font-ui); white-space: nowrap; }

/* ---------- Structured list rows ---------- */
/* The one skeleton: rows in the page's real shape, shown only if loading takes over 200 ms, with one slow shimmer. Kit.skeleton(rows, lead). */
.k-skel { display: grid; margin: 0; padding: 0; list-style: none; animation: s1-fade-in var(--s1-dur-2) var(--s1-ease) 200ms both; }
.k-skel-row { display: flex; align-items: center; gap: calc(14px * var(--s1-scale, 1)); padding: calc(14px * var(--s1-scale, 1)) calc(16px * var(--s1-scale, 1)); border-top: 1px solid var(--s1-line-soft); }
.k-skel-row:first-child { border-top: 0; }
.k-skel-row > span { flex: 1; display: grid; gap: calc(8px * var(--s1-scale, 1)); min-width: 0; }
.k-skel :is(i, b, em), .k-skel-block { position: relative; display: block; overflow: hidden; background: var(--s1-column); }
.k-skel :is(i, b, em)::after, .k-skel-block::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--s1-panel) 70%, transparent), transparent); transform: translateX(-100%); animation: s1-shimmer 1.6s var(--s1-ease) infinite; }
.k-skel i { flex: none; width: 36px; height: 36px; border-radius: 10px; } .k-skel i.is-round { border-radius: 50%; }
.k-skel b { width: 55%; height: 13px; border-radius: 6px; } .k-skel em { width: 80%; height: 10px; border-radius: 5px; }
/* the block shape, for a page body whose rows are not known yet (Manage tools) */
.k-skel-block { height: 160px; border-radius: var(--s1-radius-panel); animation: s1-fade-in var(--s1-dur-2) var(--s1-ease) 200ms both; }
@keyframes s1-shimmer { to { transform: translateX(100%); } }
.k-list { display: grid; grid-template-columns: minmax(0, 1fr); margin: 0; padding: 0; list-style: none; container-type: inline-size; }
.k-row { --edge: var(--s1-panel); position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 4px calc(14px * var(--s1-scale, 1)); margin: 0 -10px; padding: calc(11px * var(--s1-scale, 1)) calc(10px * var(--s1-scale, 1)); border-top: 1px solid var(--s1-line-soft); background: none; /* the v4 hairline row (.rows in redesign-v4.css): text on the page edge, hover and tint bleed 10px */ transition: background var(--s1-dur-2) var(--s1-ease); }
.k-row:first-child { border-top: 0; }
.k-row:hover { background-color: var(--s1-panel-head); }
.k-row--late { --edge: var(--s1-late); } .k-row--wait { --edge: var(--s1-wait); } .k-row--soon { --edge: var(--s1-soon); } .k-row--new { --edge: var(--s1-ink); }
.k-row.is-new-entry { animation: k-row-in var(--s1-dur-4) var(--s1-ease); }
@keyframes k-row-in { from { opacity: 0; transform: translateY(-8px); background: color-mix(in srgb, var(--s1-ink) 6%, var(--s1-panel)); } to { opacity: 1; transform: none; } }
.k-row.is-leaving { animation: k-row-out var(--s1-dur-3) var(--s1-ease-exit) forwards; }
@keyframes k-row-out { to { opacity: 0; transform: translateX(14px); max-height: 0; padding-block: 0; } }
.k-tile { display: inline-grid; place-items: center; flex: none; width: 28px; height: 36px; background: none; color: var(--s1-ink-2); } /* the one icon tile for a row or a list entry */
.k-tile--sm { width: 24px; height: 32px; }
.k-row--late .k-tile { color: var(--s1-late); }
.k-row--wait .k-tile { color: var(--s1-wait); }
.k-row--soon .k-tile { color: var(--s1-soon); }
.k-tile .k-icon { width: 17px; height: 17px; vertical-align: 0; }
.k-check { appearance: none; width: 20px; height: 20px; margin: 0; border: 1.75px solid var(--s1-checkbox); border-radius: 6px; background: var(--s1-panel); cursor: pointer; display: inline-grid; place-items: center; transition: background var(--s1-dur-2) var(--s1-ease), border-color var(--s1-dur-2) var(--s1-ease), transform var(--s1-dur-2) var(--s1-ease); flex: none; }
.k-check:hover { border-color: var(--s1-ink); }
.k-check:checked { background: var(--s1-ink); border-color: var(--s1-ink); animation: k-pop var(--s1-dur-3) var(--s1-ease); }
.k-check:checked::after { content: ""; width: 10px; height: 5px; border-left: 2px solid var(--s1-on-ink); border-bottom: 2px solid var(--s1-on-ink); transform: rotate(-45deg) translate(1px, -1px); }
.k-check[type="radio"] { border-radius: 50%; }
.k-check[type="radio"]:checked::after { width: 8px; height: 8px; border: 0; border-radius: 50%; background: var(--s1-panel); transform: none; }
@keyframes k-pop { 50% { transform: scale(1.18); } }
.k-row-main { min-width: 0; display: grid; gap: 5px; }
.k-row-title { display: block; color: var(--s1-ink); font-weight: 650; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
button.k-row-title { all: unset; box-sizing: border-box; cursor: pointer; display: block; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } /* a stylesheet rule, not an inline style, so the phone rules can size it */
.k-row-title:hover { text-decoration: underline; text-underline-offset: 3px; }
.k-row-meta { display: flex; align-items: center; flex-wrap: wrap; gap: calc(6px * var(--s1-scale, 1)) calc(8px * var(--s1-scale, 1)); min-width: 0; font-size: var(--s1-text-small); color: var(--s1-mute); }
.k-row-meta .k-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--s1-dot); }
.k-row-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46ch; }
.k-row-side { display: flex; align-items: center; gap: calc(8px * var(--s1-scale, 1)); justify-content: flex-end; flex-wrap: wrap; }
.k-row-actions { display: flex; align-items: center; gap: calc(6px * var(--s1-scale, 1)); justify-content: flex-end; }
.k-row.is-done .k-row-title { color: var(--s1-mute); text-decoration: line-through; text-decoration-color: var(--s1-dot); }
.k-row.is-done .k-tile { opacity: .7; }
@container (max-width: 600px) {
  .k-row { grid-template-columns: auto minmax(0, 1fr); padding: 12px 10px; }
  .k-row-title, button.k-row-title { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; } /* the button form is named too: its all:unset rule is more specific than the bare class */
  .k-row-side:empty, .k-row-actions:empty { display: none; }
  .k-row-side, .k-row-actions { grid-column: 2; justify-content: flex-start; }
}

/* ---------- Stat tiles, meters ---------- */
/* A figure sits on an open cell under a rule; several side by side read as one ruled strip. No card, no colour strip: the tone is a dot beside the label. */
.k-stat { position: relative; display: flex; flex-direction: column; gap: 2px; padding: calc(10px * var(--s1-scale, 1)) 0 0; border-top: 1px solid var(--s1-line); text-decoration: none; color: inherit; min-width: 0; transition: border-color var(--s1-dur-2) var(--s1-ease); }
button.k-stat { width: 100%; border: 0; border-top: 1px solid var(--s1-line); background: none; font: inherit; text-align: left; cursor: pointer; } /* a stat that is a control (a filter tile): the kit's own button reset, so it never shows the browser's grey button */
button.k-stat:hover { border-top-color: var(--s1-ink); }
button.k-stat[aria-pressed="true"] { border-top: 2px solid var(--s1-ink); padding-top: calc(9px * var(--s1-scale, 1)); }
a.k-stat:hover { border-top-color: var(--s1-ink); } a.k-stat:hover .k-stat-label { color: var(--s1-ink); }
.k-stat-label { display: flex; align-items: center; gap: calc(7px * var(--s1-scale, 1)); font: 600 var(--s1-text-small) var(--k-font-ui); color: var(--s1-mute); transition: color var(--s1-dur-2) var(--s1-ease); }
.k-stat[class*="k-stat--"] .k-stat-label::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--tone); }
.k-stat-value { font: 700 var(--s1-fs-5)/1.25 var(--k-font-display); letter-spacing: -.01em; font-variant-numeric: tabular-nums; display: flex; align-items: baseline; gap: calc(6px * var(--s1-scale, 1)); }
.k-stat-value small { font: 600 var(--s1-text-small) var(--k-font-ui); color: var(--s1-mute); letter-spacing: 0; }
.k-stat-foot { display: flex; align-items: center; gap: calc(8px * var(--s1-scale, 1)); font-size: var(--s1-text-small); color: var(--s1-mute); }
.k-stat--late { --tone: var(--s1-late); } .k-stat--soon { --tone: var(--s1-soon); } .k-stat--wait { --tone: var(--s1-wait); } .k-stat--ok { --tone: var(--s1-ok); }
.k-spark { display: block; width: 100%; height: 34px; margin-top: 2px; }
.k-spark path.l { fill: none; stroke: var(--s1-ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.k-spark path.a { fill: var(--s1-ink); opacity: .07; }
.k-spark circle { fill: var(--s1-ink); }
.k-segbar { display: flex; gap: 3px; width: 100%; }
.k-segbar i { flex: 1; height: 6px; border-radius: 3px; background: var(--s1-track); transition: background var(--s1-dur-2) var(--s1-ease); }
.k-segbar i.on { background: var(--s1-ink); }
.k-segbar--late i.on { background: var(--s1-late); } .k-segbar--soon i.on { background: var(--s1-soon); }
.k-bar { position: relative; height: 8px; border-radius: 4px; background: var(--s1-track); overflow: hidden; }
.k-bar > i { position: absolute; inset: 0 auto 0 0; background: var(--tone, var(--s1-ink)); border-radius: 4px; transition: width var(--s1-dur-4) var(--s1-ease); }
.k-bar--sm { height: 6px; }
.k-ring { --p: 0; --tone: var(--s1-ink); position: relative; display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: conic-gradient(var(--tone) calc(var(--p) * 1%), var(--s1-track) 0); font: 800 var(--s1-text-small) var(--k-font-display); flex: none; }
.k-ring::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--s1-panel); }
.k-ring > span { position: relative; }
.k-meter { display: grid; gap: 5px; }
.k-meter-top { display: flex; justify-content: space-between; align-items: baseline; font-size: var(--s1-text-small); color: var(--s1-mute); }
.k-meter-top b { color: var(--tone, var(--s1-ink)); font-weight: 700; }

/* ---------- Tabs, view switch ---------- */
.k-tabs { display: flex; gap: 2px; flex-wrap: wrap; border-bottom: 1px solid var(--s1-line); margin: 0 0 -4px; }
.k-tab { display: inline-flex; align-items: center; gap: calc(7px * var(--s1-scale, 1)); padding: calc(10px * var(--s1-scale, 1)) calc(14px * var(--s1-scale, 1)); margin-bottom: -1px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--s1-mute); font: 650 var(--s1-fs-3) var(--k-font-ui); cursor: pointer; text-decoration: none; transition: color var(--s1-dur-2) var(--s1-ease), border-color var(--s1-dur-2) var(--s1-ease); }
.k-tab:hover { color: var(--s1-ink); }
.k-tabs--nav { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; padding-bottom: 1px; scrollbar-width: none; } /* page tabs scroll sideways on a phone, no visible bar */
.k-tabs--nav::-webkit-scrollbar { display: none; } .k-tabs--nav .k-tab { flex: none; white-space: nowrap; }
.k-tab[aria-selected="true"], .k-tab[aria-current="page"], .k-tab.is-on { color: var(--s1-ink); border-bottom-color: var(--s1-ink); }
.k-seg { display: inline-flex; border: 1px solid var(--s1-line); border-radius: 10px; background: var(--s1-panel); padding: 3px; gap: 2px; max-width: 100%; overflow-x: auto; }
.k-seg-b { display: inline-flex; align-items: center; gap: calc(6px * var(--s1-scale, 1)); border: 0; background: none; padding: calc(6px * var(--s1-scale, 1)) calc(12px * var(--s1-scale, 1)); border-radius: 7px; font: 650 var(--s1-text-small) var(--k-font-ui); color: var(--s1-mute); cursor: pointer; white-space: nowrap; transition: background var(--s1-dur-2) var(--s1-ease), color var(--s1-dur-2) var(--s1-ease); }
.segb { flex: none; } /* Kit.seg's buttons: the mockup's .seg draws them */
.k-seg-b:hover { color: var(--s1-ink); background: var(--s1-column); }
.k-seg-b[aria-pressed="true"] { background: var(--s1-ink); color: var(--s1-on-ink); }
.k-seg--sm .k-seg-b { padding: 4px calc(10px * var(--s1-scale, 1)); font-size: var(--s1-text-small); }
.k-filters { display: flex; gap: calc(8px * var(--s1-scale, 1)); flex-wrap: wrap; align-items: center; }
.k-fchip { display: inline-flex; align-items: center; gap: calc(6px * var(--s1-scale, 1)); padding: 5px calc(11px * var(--s1-scale, 1)); border-radius: 999px; border: 1px solid var(--s1-line); background: var(--s1-panel); color: var(--s1-ink-2); font: 600 var(--s1-text-small) var(--k-font-ui); cursor: pointer; transition: all var(--s1-dur-2) var(--s1-ease); }
.k-fchip:hover { border-color: var(--s1-ink); }
.k-fchip[aria-pressed="true"], .k-fchip[aria-selected="true"], .k-fchip[aria-expanded="true"] { background: var(--s1-ink); border-color: var(--s1-ink); color: var(--s1-on-ink); }
.k-fchip[disabled] { opacity: .55; cursor: progress; }
.k-fchip > :is(.s1-icon, .k-icon) { width: 14px; height: 14px; }
.k-fchip--removable { cursor: default; padding-right: 4px; }
.k-fchip-remove { display: inline-grid; place-items: center; width: 20px; height: 20px; border: 0; border-radius: 50%; background: none; color: inherit; font: 700 var(--s1-fs-3)/1 var(--k-font-ui); cursor: pointer; }
.k-fchip-remove:hover { background: var(--s1-panel-head); color: var(--s1-ink); }
.k-fchip .k-count { background: transparent; border: 0; min-width: 0; padding: 0; color: inherit; opacity: .7; }

/* ---------- Menus, toasts ---------- */
.k-menu { position: fixed; z-index: 400; min-width: 220px; max-width: calc(100vw - 24px); max-height: 70vh; overflow: auto; padding: 5px; background: var(--s1-panel); border: 1px solid var(--s1-line); border-radius: 12px; box-shadow: var(--k-shadow-pop); animation: k-menu-in var(--s1-dur-2) var(--s1-ease); transform-origin: top right; }
@keyframes k-menu-in { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }
.k-menu-item { display: flex; align-items: center; gap: calc(10px * var(--s1-scale, 1)); width: 100%; padding: calc(9px * var(--s1-scale, 1)) calc(11px * var(--s1-scale, 1)); border: 0; background: none; border-radius: 8px; font: 600 var(--s1-fs-3) var(--k-font-ui); color: var(--s1-ink); text-align: left; cursor: pointer; text-decoration: none; }
.k-menu-item:hover, .k-menu-item:focus-visible { background: var(--s1-column);  }
.k-menu-item small { display: block; font-weight: 500; font-size: var(--s1-text-micro); color: var(--s1-mute); }
.k-menu-item .k-icon { color: var(--s1-ink-2); }
.k-menu-item--late { color: var(--s1-late); } .k-menu-item--late .k-icon { color: var(--s1-late); }
.k-menu-sep { height: 1px; background: var(--s1-line-soft); margin: 4px 2px; }
.k-menu-label { padding: calc(8px * var(--s1-scale, 1)) calc(11px * var(--s1-scale, 1)) 4px; font: 700 var(--s1-fs-1) var(--k-font-ui); letter-spacing: .09em; text-transform: uppercase; color: var(--s1-mute); }
.k-toasts { position: fixed; z-index: 600; left: 50%; bottom: 22px; transform: translateX(-50%); display: grid; gap: calc(8px * var(--s1-scale, 1)); justify-items: center; pointer-events: none; }
.k-toast { display: flex; align-items: center; gap: calc(10px * var(--s1-scale, 1)); background: var(--s1-ink); color: var(--s1-on-ink); padding: calc(10px * var(--s1-scale, 1)) calc(16px * var(--s1-scale, 1)); border-radius: 12px; box-shadow: var(--k-shadow-pop); font: 600 var(--s1-fs-3) var(--k-font-ui); animation: k-toast-in var(--s1-dur-3) var(--s1-ease); pointer-events: auto; }
.k-toast.is-out { animation: k-toast-out var(--s1-dur-2) var(--s1-ease-exit) forwards; }
.k-toast .k-icon { color: #7ee2ad; }
.k-toast--late .k-icon { color: #ff9b92; }
@keyframes k-toast-in { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes k-toast-out { to { opacity: 0; transform: translateY(8px); } }

/* ---------- Modal: always centered ---------- */
.k-modal-root { position: fixed; inset: 0; z-index: 500; display: grid; place-items: start center; padding: calc(24px * var(--s1-scale, 1)); overflow-y: auto; overscroll-behavior: contain; } /* a tall dialog flows down the page and the page behind it scrolls: nothing inside the dialog scrolls (owner rule) */
.k-backdrop { position: fixed; inset: 0; background: rgb(17 19 24 / .52); backdrop-filter: blur(2px); animation: k-fade var(--s1-dur-2) var(--s1-ease); }
.k-modal { position: relative; display: flex; flex-direction: column; width: min(var(--w, 640px), 100%); margin-block: auto; background: var(--s1-panel); border-radius: 16px; box-shadow: var(--k-shadow-pop); border: 1px solid var(--s1-line); animation: k-modal-in var(--s1-dur-3) var(--s1-ease); overflow: clip; }
.k-modal--sm { --w: 460px; } .k-modal--md { --w: 640px; } .k-modal--lg { --w: 880px; } .k-modal--xl { --w: 1120px; }
.k-modal-root.is-closing .k-backdrop { animation: k-fade-out var(--s1-dur-2) var(--s1-ease-exit) forwards; }
.k-modal-root.is-closing .k-modal { animation: k-modal-out var(--s1-dur-2) var(--s1-ease-exit) forwards; }
@keyframes k-fade { from { opacity: 0; } } @keyframes k-fade-out { to { opacity: 0; } }
@keyframes k-modal-in { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes k-modal-out { to { opacity: 0; transform: translateY(8px) scale(.98); } }
.k-modal-head { display: flex; align-items: flex-start; gap: calc(14px * var(--s1-scale, 1)); padding: calc(20px * var(--s1-scale, 1)) calc(24px * var(--s1-scale, 1)) calc(10px * var(--s1-scale, 1)); border-bottom: 0; }
.k-modal-icon { display: none; /* one dialog design: title, one help line, footer (matches the project dialogs) */ place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--s1-ink); color: var(--s1-on-ink); flex: none; }
.k-modal-icon .k-icon { width: 20px; height: 20px; vertical-align: 0; }
.k-modal-title { margin: 0; font: 800 var(--s1-fs-5)/1.2 var(--k-font-display); letter-spacing: -.01em; }
.k-modal-kicker { font: 700 var(--s1-text-micro) var(--k-font-ui); letter-spacing: .09em; text-transform: uppercase; color: var(--s1-mute); margin-bottom: 2px; }
.k-modal-desc { margin: 4px 0 0; color: var(--s1-ink-2); font-size: var(--s1-fs-3); max-width: 56ch; }
.k-modal-x { margin-left: auto; }
.k-modal-body { flex: 0 0 auto; min-height: 0; overflow: visible; padding: calc(8px * var(--s1-scale, 1)) calc(24px * var(--s1-scale, 1)) calc(20px * var(--s1-scale, 1)); display: grid; grid-template-columns: minmax(0, 1fr); gap: calc(16px * var(--s1-scale, 1)); align-content: start; background: var(--s1-panel); }
/* A dialog is one column, never wider than the dialog and never scrolling inside itself: its one column (and a section's) is never wider than the dialog, whatever a row's longest word or a list inside it. */
.k-modal-foot { display: flex; align-items: center; gap: calc(8px * var(--s1-scale, 1)); justify-content: flex-end; flex-wrap: wrap; padding: calc(14px * var(--s1-scale, 1)) calc(24px * var(--s1-scale, 1)) calc(18px * var(--s1-scale, 1)); border-top: 1px solid var(--s1-line-soft); background: var(--s1-panel); }
.k-modal-foot .k-btn--ghost { border-color: transparent; background: none; color: var(--s1-ink-2); }
.k-modal-foot .k-btn--ghost:hover { background: var(--s1-panel-head); color: var(--s1-ink); border-color: transparent; }
.k-modal-foot .k-foot-note { margin-right: auto; font-size: var(--s1-text-small); color: var(--s1-mute); display: flex; align-items: center; gap: calc(6px * var(--s1-scale, 1)); min-width: 0; }
body.k-modal-open { overflow: hidden; }
/* The phone sheet is the whole screen, so it is the page: its body scrolls between the fixed head and foot. */
.k-modal--sheet { overflow: hidden; } .k-modal--sheet .k-modal-body { flex: 1 1 auto; overflow-y: auto; overflow-x: hidden; }
@media (max-width: 640px) { .k-modal-root { padding: 8px; } .k-modal { border-radius: 14px; } .k-modal-head, .k-modal-body, .k-modal-foot { padding-left: 16px; padding-right: 16px; } }

/* ---------- Kanban ---------- */
.k-kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(228px, 1fr); gap: calc(12px * var(--s1-scale, 1)); overflow-x: auto; padding: 2px 2px calc(12px * var(--s1-scale, 1)); scroll-snap-type: x proximity; align-items: start; }
.k-kcol { scroll-snap-align: start; display: flex; flex-direction: column; gap: calc(8px * var(--s1-scale, 1)); padding: calc(10px * var(--s1-scale, 1)); background: var(--s1-column); border: 1px solid var(--s1-line-soft); border-radius: 12px; min-height: 160px; transition: background var(--s1-dur-2) var(--s1-ease), border-color var(--s1-dur-2) var(--s1-ease), box-shadow var(--s1-dur-2) var(--s1-ease); }
.k-kcol.is-over { background: var(--s1-fill-soft); border-color: var(--s1-ink); box-shadow: inset 0 0 0 1px var(--s1-ink); }
.k-kcol-head { display: flex; align-items: center; gap: calc(8px * var(--s1-scale, 1)); padding: 2px 4px 4px; font: 700 var(--s1-text-small) var(--k-font-ui); color: var(--s1-ink); }
.k-kcol-head .k-icon { color: var(--s1-ink-2); }
.k-kcol-head small { font-weight: 500; color: var(--s1-mute); }
.k-kcol-body { display: grid; gap: calc(8px * var(--s1-scale, 1)); align-content: start; min-height: 40px; }
.k-kcard { --edge: var(--s1-panel); position: relative; display: grid; gap: calc(9px * var(--s1-scale, 1)); padding: calc(12px * var(--s1-scale, 1)) calc(12px * var(--s1-scale, 1)) calc(12px * var(--s1-scale, 1)) calc(14px * var(--s1-scale, 1)); background: var(--s1-panel); border: 1px solid var(--s1-line); border-radius: 11px; box-shadow: var(--k-shadow-card); cursor: grab; transition: box-shadow var(--s1-dur-2) var(--s1-ease), transform var(--s1-dur-2) var(--s1-ease), border-color var(--s1-dur-2) var(--s1-ease); }
.k-kcard--late { --edge: var(--s1-late); } .k-kcard--soon { --edge: var(--s1-soon); } .k-kcard--wait { --edge: var(--s1-wait); }
.k-kcard:hover { border-color: var(--s1-line-strong); box-shadow: 0 6px 16px rgb(17 19 24 / .09); }
.k-kcard.is-dragging { opacity: .45; transform: rotate(1.2deg); cursor: grabbing; }
.k-kcard.is-landed { animation: k-land var(--s1-dur-4) var(--s1-ease); }
@keyframes k-land { 0% { transform: scale(1.04); box-shadow: 0 10px 24px rgb(17 19 24 / .18); } 100% { transform: none; } }
.k-kcard-top { display: flex; align-items: flex-start; gap: calc(8px * var(--s1-scale, 1)); }
.k-kcard-title { flex: 1; min-width: 0; font: 650 var(--s1-fs-3)/1.35 var(--k-font-ui); color: var(--s1-ink); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.k-kcard-title:hover { text-decoration: underline; text-underline-offset: 3px; }
.k-kcard-mv { opacity: 0; transition: opacity var(--s1-dur-2) var(--s1-ease); }
.k-kcard:hover .k-kcard-mv, .k-kcard:focus-within .k-kcard-mv { opacity: 1; }
.k-kcard-foot { display: flex; align-items: center; gap: calc(8px * var(--s1-scale, 1)); flex-wrap: wrap; }
@media (hover: none) { .k-kcard-mv { opacity: 1; } }

/* ---------- Data table ---------- */
.k-tablewrap { overflow-x: auto; }
.k-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--s1-fs-3); }
.k-table th { position: sticky; top: 0; 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(--k-font-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--s1-mute); white-space: nowrap; z-index: 1; }
.k-table th .k-sort { all: unset; box-sizing: border-box; min-height: 24px; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; text-transform: inherit; letter-spacing: inherit; }
.k-table th .k-sort:hover { color: var(--s1-ink); }
.k-table th .k-sort:focus-visible {   border-radius: 4px; }
.k-table th[aria-sort] { color: var(--s1-ink); }
.k-table th .k-sorti { opacity: 0; transition: opacity var(--s1-dur-2) var(--s1-ease), transform var(--s1-dur-2) var(--s1-ease); } .k-table th[aria-sort] .k-sorti { opacity: 1; } .k-table th[aria-sort="descending"] .k-sorti { transform: rotate(180deg); }
.k-table td { padding: calc(10px * var(--s1-scale, 1)) calc(14px * var(--s1-scale, 1)); border-bottom: 1px solid var(--s1-line-soft); vertical-align: middle; background: var(--s1-panel); }
.k-table tr:last-child td { border-bottom: 0; }
.k-table tbody tr { transition: background var(--s1-dur-2) var(--s1-ease); } .k-table tbody tr:hover td { background: var(--s1-hover); }
.k-table td.num, .k-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.k-table td .k-cell-title { font-weight: 650; color: var(--s1-ink); text-decoration: none; display: block; max-width: 38ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.k-table td .k-cell-title:hover { text-decoration: underline; }
/* A table that no longer fits stacks each row as a card (label on the left, value on the right) instead of scrolling sideways inside its box: from 900px down, which is also a 1440px window at 200% zoom less the sidebar. */
@media (max-width: 900px) {
  .k-table thead { display: none; }
  .k-table, .k-table tbody, .k-table tr, .k-table td { display: block; width: 100%; }
  .k-table tr { padding: 10px 14px; border-bottom: 1px solid var(--s1-line-soft); }
  .k-table td { display: flex; justify-content: flex-end; align-items: center; gap: 12px; padding: 5px 0; border: 0; text-align: right; }
  .k-table td::before { content: attr(data-label); margin-right: auto; font: 700 var(--s1-text-micro) var(--k-font-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--s1-mute); text-align: left; }
  .k-table td.k-cell-first { display: block; text-align: left; } .k-table td.k-cell-first::before { content: none; }
  .k-table td .k-cell-title { max-width: none; white-space: normal; }
}

/* ---------- Timeline / Gantt ---------- */
.k-gantt { --lw: 300px; --rh: 38px; --dw: 6px; position: relative; overflow-x: auto; background: var(--s1-panel); border-radius: 0 0 12px 12px; }
.k-g-inner { position: relative; }
.k-g-head { position: sticky; top: 0; z-index: 6; display: flex; background: var(--s1-panel-head); border-bottom: 1px solid var(--s1-line); }
.k-g-corner { position: sticky; left: 0; z-index: 7; flex: none; width: var(--lw); background: var(--s1-panel-head); border-right: 1px solid var(--s1-line); padding: calc(8px * var(--s1-scale, 1)) calc(14px * var(--s1-scale, 1)); font: 700 var(--s1-text-micro) var(--k-font-ui); letter-spacing: .06em; text-transform: uppercase; color: var(--s1-mute); display: flex; align-items: flex-end; }
.k-g-scale { position: relative; flex: none; }
.k-g-months, .k-g-weeks { position: relative; height: 22px; }
.k-g-months span { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; padding-left: calc(8px * var(--s1-scale, 1)); font: 700 var(--s1-text-micro) var(--k-font-ui); color: var(--s1-ink); border-left: 1px solid var(--s1-line); white-space: nowrap; }
.k-g-weeks span { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; padding-left: 5px; font: 500 var(--s1-fs-1) var(--k-font-ui); color: var(--s1-mute); border-left: 1px solid var(--s1-line-soft); white-space: nowrap; overflow: hidden; }
.k-g-lane { display: flex; align-items: stretch; }
.k-g-lane .k-g-label { position: sticky; left: 0; z-index: 4; flex: none; width: var(--lw); background: var(--s1-panel); border-right: 1px solid var(--s1-line); padding: 0 calc(12px * var(--s1-scale, 1)) 0 calc(14px * var(--s1-scale, 1)); display: flex; align-items: center; gap: calc(8px * var(--s1-scale, 1)); min-width: 0; }
.k-g-lane .k-g-track { position: relative; flex: none; }
.k-g-row { height: var(--rh); border-bottom: 1px solid var(--s1-line-soft); }
.k-g-row:hover .k-g-label, .k-g-row:hover .k-g-track { background-color: var(--s1-hover); }
.k-g-row.is-hl .k-g-label { background: var(--s1-fill-soft); }
.k-g-group { height: 30px; background: var(--s1-column); border-bottom: 1px solid var(--s1-line-soft); }
.k-g-group .k-g-label { background: var(--s1-column); font: 700 var(--s1-text-micro) var(--k-font-ui); color: var(--s1-ink-2); letter-spacing: .02em; }
.k-g-label a:not(.k-av), .k-g-label button.t { all: unset; cursor: pointer; font-weight: 600; font-size: var(--s1-text-small); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1; color: var(--s1-ink); }
.k-g-label a:not(.k-av):hover, .k-g-label button.t:hover { text-decoration: underline; text-underline-offset: 3px; }
.k-g-label button.t:focus-visible {   border-radius: 4px; }
.k-g-grid { position: absolute; inset: 0; pointer-events: none; }
.k-g-grid i { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--s1-line-soft); }
.k-g-grid i.m { background: var(--s1-line); }
.k-g-bar { --c: var(--s1-ink); position: absolute; top: 9px; height: calc(var(--rh) - 18px); padding: 0; border-radius: 7px; border: 1.5px solid var(--c); background: color-mix(in srgb, var(--c) 12%, var(--s1-panel)); overflow: hidden; cursor: pointer; transition: box-shadow var(--s1-dur-2) var(--s1-ease), opacity var(--s1-dur-2) var(--s1-ease); }
.k-g-bar > .fill { position: absolute; inset: 0 auto 0 0; background: var(--c); transition: width var(--s1-dur-4) var(--s1-ease); }
.k-g-bar.is-done { --c: var(--s1-fill-strong); background: var(--s1-fill-soft); } .k-g-bar.is-done .fill { opacity: .55; }
.k-g-bar.is-late { --c: var(--s1-late); } .k-g-bar.is-wait { --c: var(--s1-wait); }
.k-g-bar.is-todo { --c: var(--s1-fill-strong); border-style: dashed; background: var(--s1-panel); }
.k-g-after { position: absolute; top: 0; height: var(--rh); display: flex; align-items: center; gap: calc(7px * var(--s1-scale, 1)); font: 600 var(--s1-text-micro) var(--k-font-ui); color: var(--s1-mute); white-space: nowrap; pointer-events: none; }
.k-g-tools { display: flex; align-items: center; gap: calc(10px * var(--s1-scale, 1)); flex-wrap: wrap; padding: calc(10px * var(--s1-scale, 1)) calc(16px * var(--s1-scale, 1)); border-bottom: 1px solid var(--s1-line-soft); }
.k-g-bar:hover, .k-g-bar:focus-visible { box-shadow: 0 4px 12px rgb(17 19 24 / .2); z-index: 3; }
.k-g-bar-av { position: absolute; z-index: 2; top: 50%; transform: translateY(-50%); display: flex; }
.k-g-ms { position: absolute; top: calc(var(--rh) / 2 - 10px); width: 20px; height: 20px; margin-left: -10px; background: var(--s1-ink); transform: rotate(45deg) scale(.72); border-radius: 3px; cursor: pointer; border: 0; padding: 0; transition: box-shadow var(--s1-dur-2) var(--s1-ease); }
.k-g-ms.is-late { background: var(--s1-late); } .k-g-ms.is-done { background: var(--s1-fill-strong); } .k-g-ms.is-wait { background: var(--s1-wait); }
.k-g-ms:hover, .k-g-ms:focus-visible { box-shadow: 0 0 0 4px rgb(17 19 24 / .15); }
.k-g-mslabel { position: absolute; top: calc(var(--rh) / 2 - 9px); font: 650 var(--s1-text-micro) var(--k-font-ui); color: var(--s1-ink); white-space: nowrap; pointer-events: none; }
.k-g-phase { position: absolute; top: 7px; height: 24px; border-radius: 7px; display: flex; align-items: center; padding: 0 calc(9px * var(--s1-scale, 1)); font: 700 var(--s1-text-micro) var(--k-font-ui); overflow: hidden; white-space: nowrap; background: var(--s1-track); color: var(--s1-ink-2); }
.k-g-phase.is-done { background: var(--s1-line-strong); } .k-g-phase.is-current { background: var(--s1-ink); color: var(--s1-on-ink); }
.k-g-phase.is-next { background: var(--s1-panel); border: 1.5px dashed var(--s1-fill-strong); }
.k-g-key { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1.5px dashed var(--tone, var(--s1-soon)); pointer-events: none; z-index: 2; }
.k-g-keytag { position: absolute; top: 5px; transform: translateX(-1px); display: inline-flex; align-items: center; gap: 4px; padding: 1px calc(7px * var(--s1-scale, 1)) 1px 5px; border-radius: 0 6px 6px 0; background: var(--tone, var(--s1-soon)); color: var(--s1-on-ink); font: 700 var(--s1-fs-1)/17px var(--k-font-ui); white-space: nowrap; z-index: 3; cursor: default; }
.k-g-keytag.flip { transform: translateX(-100%); border-radius: 6px 0 0 6px; padding: 1px 5px 1px calc(7px * var(--s1-scale, 1)); }
.k-g-today { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--s1-ink); z-index: 5; pointer-events: none; }
.k-g-today-tag { position: absolute; top: 3px; margin-left: -22px; padding: 0 calc(7px * var(--s1-scale, 1)); border-radius: 6px; background: var(--s1-ink); color: var(--s1-on-ink); font: 700 var(--s1-fs-1)/17px var(--k-font-ui); z-index: 6; }
.k-g-deps { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 2; overflow: visible; }
.k-g-deps path { fill: none; stroke: var(--s1-fill-strong); stroke-width: 1.5; transition: stroke var(--s1-dur-2) var(--s1-ease), opacity var(--s1-dur-2) var(--s1-ease), stroke-width var(--s1-dur-2) var(--s1-ease); }
.k-g-deps path.is-hl { stroke: var(--s1-ink); stroke-width: 2.25; }
.k-g-deps path.is-blocked { stroke: var(--s1-late); stroke-dasharray: 4 3; }
.k-g-deps marker path { fill: var(--s1-fill-strong); stroke: none; }
.k-gantt.has-hl .k-g-bar:not(.is-hl), .k-gantt.has-hl .k-g-ms:not(.is-hl) { opacity: .35; }
.k-gantt.has-hl .k-g-deps path:not(.is-hl) { opacity: .2; }
.k-g-legend { display: flex; flex-wrap: wrap; align-items: center; gap: calc(6px * var(--s1-scale, 1)) calc(16px * var(--s1-scale, 1)); padding: calc(9px * var(--s1-scale, 1)) calc(16px * var(--s1-scale, 1)); border-top: 1px solid var(--s1-line-soft); font-size: var(--s1-text-micro); color: var(--s1-mute); background: var(--s1-panel-head); border-radius: 0 0 12px 12px; }
.k-g-legend span { display: inline-flex; align-items: center; gap: calc(6px * var(--s1-scale, 1)); }
.k-g-legend i { display: inline-block; width: 18px; height: 10px; border-radius: 3px; border: 1.5px solid var(--s1-ink); background: var(--s1-panel); }
.k-g-legend i.f { background: var(--s1-ink); } .k-g-legend i.l { border-color: var(--s1-late); background: var(--s1-late); } .k-g-legend i.w { border-color: var(--s1-wait); background: var(--s1-wait); } .k-g-legend i.d { border-color: var(--s1-fill-strong); background: var(--s1-fill-soft); } .k-g-legend i.t { border-style: dashed; border-color: var(--s1-fill-strong); }
.k-g-legend i.m { width: 9px; height: 9px; transform: rotate(45deg); background: var(--s1-ink); border-radius: 2px; border: 0; }
.k-g-legend i.a { width: 22px; height: 0; border: 0; border-top: 1.5px solid var(--s1-fill-strong); border-radius: 0; }
@media (max-width: 760px) { .k-gantt { --lw: 150px; } .k-g-label .k-avs { display: none; } .k-g-group .k-g-label .k-xs { display: none; } }

/* ---------- Stepper, pipeline ---------- */
.k-pipe { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0; margin: 0; padding: 0; list-style: none; }
.k-pipe > li { position: relative; display: grid; align-content: start; justify-items: center; gap: calc(6px * var(--s1-scale, 1)); text-align: center; padding: 0 calc(6px * var(--s1-scale, 1)); min-width: 0; }
.k-pipe > li::before { content: ""; position: absolute; top: 17px; left: -50%; width: 100%; height: 3px; background: var(--s1-track); z-index: 0; transition: background var(--s1-dur-4) var(--s1-ease); }
.k-pipe > li:first-child::before { content: none; }
.k-pipe > li.is-done::before, .k-pipe > li.is-current::before { background: var(--s1-ink); }
.k-pipe-node { position: relative; z-index: 1; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--s1-panel); border: 2px solid var(--s1-track); color: var(--s1-mute); transition: all var(--s1-dur-4) var(--s1-ease); }
.k-pipe-node .k-icon { width: 17px; height: 17px; vertical-align: 0; }
.k-pipe > li.is-done .k-pipe-node { background: var(--s1-ink); border-color: var(--s1-ink); color: var(--s1-on-ink); }
.k-pipe > li.is-current .k-pipe-node { border-color: var(--s1-ink); color: var(--s1-ink); box-shadow: 0 0 0 4px rgb(17 19 24 / .1); }
.k-pipe > li.is-changes .k-pipe-node { border-color: var(--s1-late); color: var(--s1-late); box-shadow: 0 0 0 4px rgb(194 38 29 / .12); }
.k-pipe > li.is-wait .k-pipe-node { border-color: var(--s1-wait); color: var(--s1-wait); box-shadow: 0 0 0 4px rgb(53 87 214 / .12); }
.k-pipe > li.is-live .k-pipe-node { background: var(--s1-ok); border-color: var(--s1-ok); color: var(--s1-on-ink); }
.k-pipe-label { font: 700 var(--s1-text-small) var(--k-font-ui); color: var(--s1-ink); }
.k-pipe > li:not(.is-done):not(.is-current):not(.is-live):not(.is-changes):not(.is-wait) .k-pipe-label { color: var(--s1-mute); font-weight: 600; }
.k-pipe-who { font-size: var(--s1-text-micro); color: var(--s1-mute); display: inline-flex; align-items: center; gap: 5px; flex-wrap: wrap; justify-content: center; }
.k-pipe-who a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; } .k-pipe-who a:hover { color: var(--s1-ink); text-decoration: underline; }
@media (max-width: 760px) {
  .k-pipe { grid-auto-flow: row; gap: 14px; }
  .k-pipe > li { grid-template-columns: 36px 1fr; justify-items: start; text-align: left; column-gap: 12px; align-items: center; padding: 0; }
  .k-pipe > li::before { top: -14px; left: 17px; width: 3px; height: 14px; }
  .k-pipe-node { grid-row: span 2; }
}

/* ---------- Checklist, expiry, feed, empty ---------- */
.k-checks { display: grid; margin: 0; padding: 0; list-style: none; }
.k-checks > li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 4px calc(12px * var(--s1-scale, 1)); align-items: center; padding: calc(10px * var(--s1-scale, 1)) calc(16px * var(--s1-scale, 1)); border-top: 1px solid var(--s1-line-soft); }
.k-checks > li:first-child { border-top: 0; }
.k-cmark { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--s1-line); color: var(--s1-mute); background: var(--s1-panel); }
.k-cmark .k-icon { width: 13px; height: 13px; vertical-align: 0; stroke-width: 3; }
.k-checks .is-done .k-cmark { background: var(--s1-ink); border-color: var(--s1-ink); color: var(--s1-on-ink); }
.k-checks .is-missing .k-cmark { border-color: var(--s1-late); color: var(--s1-late); background: color-mix(in srgb, var(--s1-late) 8%, var(--s1-panel)); }
.k-checks .is-todo .k-cmark { border-color: var(--s1-checkbox); background: var(--s1-panel); }
.k-checks .is-warn .k-cmark { border-color: var(--s1-soon); color: var(--s1-soon); background: color-mix(in srgb, var(--s1-soon) 9%, var(--s1-panel)); }
.k-checks .is-wait .k-cmark { border-color: var(--s1-wait); color: var(--s1-wait); background: color-mix(in srgb, var(--s1-wait) 8%, var(--s1-panel)); }
.k-ctitle { font-weight: 650; } .k-cdetail { font-size: var(--s1-text-small); color: var(--s1-mute); display: block; font-weight: 400; margin-top: 1px; }
.k-checks .is-done .k-ctitle { color: var(--s1-ink-2); font-weight: 600; }
.k-feed { display: grid; margin: 0; padding: 0; list-style: none; position: relative; }
.k-feed > li { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: calc(12px * var(--s1-scale, 1)); padding: calc(10px * var(--s1-scale, 1)) calc(16px * var(--s1-scale, 1)); align-items: start; border-top: 1px solid var(--s1-line-soft); }
.k-feed > li:first-child { border-top: 0; }
.k-feed > li.is-new-entry { animation: k-row-in var(--s1-dur-4) var(--s1-ease); }
.k-feed-line { font-size: var(--s1-fs-3); color: var(--s1-ink-2); }
.k-feed-line b { color: var(--s1-ink); font-weight: 650; }
.k-feed-line a { color: var(--s1-ink); font-weight: 650; text-underline-offset: 3px; }
.k-feed-time { font-size: var(--s1-text-micro); color: var(--s1-mute); white-space: nowrap; padding-top: 2px; }
.k-empty { display: flex; align-items: center; gap: calc(10px * var(--s1-scale, 1)); border: 0; border-radius: 0; padding: calc(14px * var(--s1-scale, 1)) 0; color: var(--s1-ink-2); background: none; font: 500 var(--s1-fs-3)/1.45 var(--k-font-ui); } /* plain line, no dashed box */
.k-empty :is(.k-icon, .s1-icon) { display: none; } /* one empty-state design: a plain line, no icon (Messages and Apex keep their own page-sized one) */
.k-empty > :is(.k-btn, .s1-btn, a) { flex: none; white-space: nowrap; }
.k-empty { flex-wrap: wrap; }
/* A note: tone is the icon's colour and a faint wash of it. No colour strip. */
.k-callout { display: flex; gap: calc(12px * var(--s1-scale, 1)); align-items: flex-start; padding: calc(12px * var(--s1-scale, 1)) calc(16px * var(--s1-scale, 1)); border: 1px solid color-mix(in srgb, var(--tone, var(--s1-line)) 22%, var(--s1-line)); border-radius: 10px; background: color-mix(in srgb, var(--tone, var(--s1-panel)) 4%, var(--s1-panel)); }
.k-callout > .k-icon { color: var(--tone, var(--s1-ink)); width: 20px; height: 20px; margin-top: 1px; }
.k-callout b { display: block; } .k-callout span { color: var(--s1-ink-2); font-size: var(--s1-fs-3); }
/* On a phone a callout's buttons go under its text (the text never shrinks to a word per line beside them). */
@media (max-width: 600px) { .k-callout { flex-wrap: wrap; } .k-callout > .k-grow { flex: 1 1 calc(100% - 32px); min-width: 0; } }

/* ---------- Forms ---------- */
.k-field { display: grid; gap: calc(6px * var(--s1-scale, 1)); min-width: 0; align-content: start; }
.k-label { font: 650 var(--s1-text-small) var(--k-font-ui); color: var(--s1-ink-2); display: flex; align-items: center; gap: calc(6px * var(--s1-scale, 1)); }
.k-label .req { color: var(--s1-late); display: inline; padding: 0; border: 0; font-size: inherit; } /* not the mockup's .req requirement row (redesign-v3.css), which made every required label 36px tall */
.k-hint { font-size: var(--s1-text-small); color: var(--s1-mute); }
.k-err { font: 650 var(--s1-text-small) var(--k-font-ui); color: var(--s1-late); display: flex; align-items: center; gap: 5px; }
.k-input, .k-select, .k-textarea { width: 100%; min-width: 0; border: 1px solid var(--s1-control-line); border-radius: 8px; background: var(--s1-panel); padding: calc(7px * var(--s1-scale, 1)) calc(11px * var(--s1-scale, 1)); font: var(--s1-fs-2)/1.35 var(--k-font-ui); color: var(--s1-ink); transition: border-color var(--s1-dur-2) var(--s1-ease), box-shadow var(--s1-dur-2) var(--s1-ease); }
.k-input:hover, .k-select:hover, .k-textarea:hover { border-color: var(--s1-line-strong); }
.k-input:focus, .k-select:focus, .k-textarea:focus { border-color: var(--s1-focus-border); }
.k-input.is-invalid { border-color: var(--s1-late); box-shadow: 0 0 0 3px rgb(194 38 29 / .1); }
.k-textarea { resize: vertical; min-height: 84px; }
.k-select { appearance: none; padding-right: calc(30px * var(--s1-scale, 1)); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1.5 5 5 5-5' fill='none' stroke='%23111318' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; }
button.k-select { text-align: left; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.k-input--lg { font-size: var(--s1-fs-4); font-weight: 650; padding: calc(11px * var(--s1-scale, 1)) calc(14px * var(--s1-scale, 1)); font-family: var(--k-font-display); }
.k-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: calc(14px * var(--s1-scale, 1)) calc(16px * var(--s1-scale, 1)); }
.k-form-grid .span2 { grid-column: 1 / -1; }
@media (max-width: 640px) { .k-form-grid { grid-template-columns: minmax(0, 1fr); } }
.k-fsec { display: grid; grid-template-columns: minmax(0, 1fr); gap: calc(12px * var(--s1-scale, 1)); padding: calc(16px * var(--s1-scale, 1)); border: 1px solid var(--s1-line-soft); border-radius: 12px; background: var(--s1-panel); }
.k-fsec-head { display: flex; align-items: center; gap: calc(9px * var(--s1-scale, 1)); font: 700 var(--s1-fs-3) var(--k-font-display); }
.k-fsec-head .k-icon { color: var(--s1-ink-2); }
.k-fsec-head small { font: 500 var(--s1-text-small) var(--k-font-ui); color: var(--s1-mute); margin-left: auto; }
.k-switch { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px calc(12px * var(--s1-scale, 1)); align-items: center; cursor: pointer; }
.k-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.k-switch .tr { grid-row: span 2; position: relative; width: 38px; height: 22px; border-radius: 11px; background: var(--s1-checkbox); transition: background var(--s1-dur-2) var(--s1-ease); }
.k-switch .tr::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--s1-panel); box-shadow: 0 1px 3px rgb(0 0 0 / .3); transition: transform var(--s1-dur-2) var(--s1-ease); }
.k-switch input:checked + .tr { background: var(--s1-ink); } .k-switch input:checked + .tr::after { transform: translateX(16px); }
.k-switch input:focus-visible + .tr { box-shadow: var(--s1-focus-ring);}
.k-switch .t { font-weight: 650; font-size: var(--s1-fs-3); } .k-switch .d { font-size: var(--s1-text-small); color: var(--s1-mute); grid-column: 2; }
.k-switch.no-desc { align-items: center; } .k-switch.no-desc .tr { grid-row: auto; }
.k-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: calc(8px * var(--s1-scale, 1)); }
.k-opt { position: relative; display: grid; gap: 2px; padding: calc(10px * var(--s1-scale, 1)) calc(12px * var(--s1-scale, 1)); border: 1.5px solid var(--s1-line); border-radius: 10px; cursor: pointer; background: var(--s1-panel); transition: border-color var(--s1-dur-2) var(--s1-ease), background var(--s1-dur-2) var(--s1-ease); }
.k-opt:hover { border-color: var(--s1-fill-strong); }
.k-opt input { position: absolute; opacity: 0; }
.k-opt:has(input:checked) { border-color: var(--s1-ink); background: var(--s1-panel-head); box-shadow: inset 0 0 0 1px var(--s1-ink); }
.k-opt:has(input:focus-visible) { box-shadow: var(--s1-focus-ring);}
.k-opt b { display: flex; align-items: center; gap: calc(7px * var(--s1-scale, 1)); font-size: var(--s1-fs-3); } .k-opt span { font-size: var(--s1-text-small); color: var(--s1-mute); }
.k-picker { position: relative; display: flex; flex-wrap: wrap; gap: calc(6px * var(--s1-scale, 1)); align-items: center; padding: calc(6px * var(--s1-scale, 1)); min-height: 44px; border: 1px solid var(--s1-control-line); border-radius: 9px; background: var(--s1-panel); transition: border-color var(--s1-dur-2) var(--s1-ease), box-shadow var(--s1-dur-2) var(--s1-ease); }
.k-picker:focus-within { border-color: var(--s1-focus-border); }
.k-pick-chip { display: inline-flex; align-items: center; gap: calc(6px * var(--s1-scale, 1)); padding: 2px 4px 2px 3px; border: 1px solid var(--s1-line); border-radius: 999px; background: var(--s1-column); font: 600 var(--s1-text-small) var(--k-font-ui); animation: k-pop var(--s1-dur-3) var(--s1-ease); max-width: 100%; }
.k-pick-chip .x { all: unset; cursor: pointer; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; color: var(--s1-mute); } .k-pick-chip .x:hover { background: var(--s1-line); color: var(--s1-ink); }
.k-pick-chip.is-owner { background: var(--s1-ink); color: var(--s1-on-ink); border-color: var(--s1-ink); } .k-pick-chip.is-owner .x { color: #ccc; }
.k-pick-add { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; padding: 3px calc(10px * var(--s1-scale, 1)); border-radius: 999px; border: 1px dashed var(--s1-fill-strong); color: var(--s1-ink-2); font: 600 var(--s1-text-small) var(--k-font-ui); } .k-pick-add:hover { border-color: var(--s1-ink); color: var(--s1-ink); background: var(--s1-column); }
/* The search list is a popover under the field. (A stray ".k-pick-add" line above this rule once made it a descendant selector that matched nothing,
   so every picker dumped its whole list inline and pushed its dialog wider than the screen.) */
.k-pick-pop { position: fixed; left: 0; top: 0; z-index: 420; width: min(340px, 100%); min-width: 260px; background: var(--s1-panel); border: 1px solid var(--s1-line); border-radius: 12px; box-shadow: var(--k-shadow-pop); padding: calc(6px * var(--s1-scale, 1)); animation: k-menu-in var(--s1-dur-2) var(--s1-ease); }
.k-pick-pop input { width: 100%; border: 1px solid var(--s1-control-line); border-radius: 8px; padding: calc(8px * var(--s1-scale, 1)) calc(10px * var(--s1-scale, 1)); font: var(--s1-fs-3) var(--k-font-ui); margin-bottom: 4px; } .k-pick-pop input:focus { border-color: var(--s1-focus-border); }
.k-pick-q { flex: 1 1 140px; min-width: 120px; border: 0; background: none; padding: 4px calc(6px * var(--s1-scale, 1)); font: var(--s1-fs-3) var(--k-font-ui); color: var(--s1-ink); } .k-pick-q::placeholder { color: var(--s1-mute); }
.k-pick-list { max-height: 220px; overflow: auto; display: grid; grid-template-columns: minmax(0, 1fr); }
.k-pick-opt { min-width: 0; display: flex; align-items: center; gap: calc(9px * var(--s1-scale, 1)); padding: calc(7px * var(--s1-scale, 1)) calc(9px * var(--s1-scale, 1)); border-radius: 8px; border: 0; background: none; text-align: left; cursor: pointer; font: 600 var(--s1-text-small) var(--k-font-ui); color: var(--s1-ink); }
.k-pick-opt:hover, .k-pick-opt:focus-visible, .k-pick-opt.is-active { background: var(--s1-column);  } .k-pick-opt small { display: block; color: var(--s1-mute); font-weight: 500; font-size: var(--s1-text-micro); }
.k-pick-opt .k-icon.chk { margin-left: auto; opacity: 0; } .k-pick-opt[aria-selected="true"] .k-icon.chk { opacity: 1; }
.k-drop { display: grid; justify-items: center; gap: 4px; padding: calc(18px * var(--s1-scale, 1)); border: 1.5px dashed #aab0bd; border-radius: 12px; text-align: center; color: var(--s1-ink-2); background: var(--s1-column); cursor: pointer; transition: all var(--s1-dur-2) var(--s1-ease); }
.k-drop:hover, .k-drop.is-over { border-color: var(--s1-ink); background: var(--s1-fill-soft); }
.k-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); gap: 2px calc(14px * var(--s1-scale, 1)); }
.k-checks--scroll { max-height: 224px; overflow: auto; padding: 4px calc(8px * var(--s1-scale, 1)); border: 1px solid var(--s1-line); border-radius: 10px; background: var(--s1-panel); grid-template-columns: minmax(0, 1fr); }
.k-check-row { display: flex; align-items: center; gap: calc(10px * var(--s1-scale, 1)); min-height: 36px; cursor: pointer; font-size: var(--s1-fs-3); line-height: 1.35; }
.k-check-row > span { min-width: 0; overflow-wrap: anywhere; }
.k-file { display: grid; gap: calc(8px * var(--s1-scale, 1)); min-width: 0; }
.k-file-drop { position: relative; grid-auto-flow: column; justify-content: center; align-items: center; gap: calc(10px * var(--s1-scale, 1)); padding: calc(12px * var(--s1-scale, 1)) calc(14px * var(--s1-scale, 1)); }
.k-file-drop .k-icon { color: var(--s1-mute); }
.k-file-t { font-size: var(--s1-text-small); color: var(--s1-ink-2); }
.k-file-in { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 0; }
.k-file-in::file-selector-button { cursor: pointer; }
.k-file-drop:has(.k-file-in:focus-visible) { box-shadow: var(--s1-focus-ring);}
.k-file.is-disabled .k-file-drop { opacity: .5; cursor: default; pointer-events: none; }
.k-file-list { list-style: none; margin: 0; padding: 0; display: grid; gap: calc(6px * var(--s1-scale, 1)); }
.k-file-list:empty { display: none; }
.k-file-phi { margin: calc(4px * var(--s1-scale, 1)) 0 0; }
.k-file-chip { display: flex; align-items: center; gap: calc(8px * var(--s1-scale, 1)); min-width: 0; padding: calc(6px * var(--s1-scale, 1)) calc(8px * var(--s1-scale, 1)) calc(6px * var(--s1-scale, 1)) calc(10px * var(--s1-scale, 1)); border: 1px solid var(--s1-line); border-radius: 10px; background: var(--s1-panel); font-size: var(--s1-text-small); }
.k-file-chip .k-icon { flex: none; color: var(--s1-mute); }
.k-file-chip small { flex: none; color: var(--s1-mute); }
.k-file-rm { flex: none; width: 28px; height: 28px; margin-left: auto; border-radius: 8px; }
@media (max-width: 480px) { .k-file-drop { grid-auto-flow: row; justify-items: center; } }
.k-link-row { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: calc(10px * var(--s1-scale, 1)); align-items: center; padding: calc(8px * var(--s1-scale, 1)) calc(10px * var(--s1-scale, 1)); border: 1px solid var(--s1-line); border-radius: 10px; background: var(--s1-panel); animation: k-row-in var(--s1-dur-3) var(--s1-ease); }
.k-link-row a { font-weight: 600; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .k-link-row a:hover { text-decoration: underline; }
.k-link-row small { color: var(--s1-mute); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.k-two { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: calc(20px * var(--s1-scale, 1)); align-items: start; }
@media (max-width: 960px) { .k-two { grid-template-columns: minmax(0, 1fr); } }
.k-aside-sticky { position: sticky; top: 0; display: grid; gap: calc(14px * var(--s1-scale, 1)); }

/* ---------- Publication, website preview ---------- */
.k-web { border: 1px solid var(--s1-line); border-radius: 14px; overflow: hidden; background: var(--s1-panel); box-shadow: var(--k-shadow-card); }
.k-web-bar { display: flex; align-items: center; gap: calc(6px * var(--s1-scale, 1)); padding: calc(8px * var(--s1-scale, 1)) calc(12px * var(--s1-scale, 1)); background: var(--s1-fill-soft); border-bottom: 1px solid var(--s1-line); font-size: var(--s1-text-micro); color: var(--s1-mute); }
.k-web-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--s1-dot); }
.k-web-url { margin-left: 8px; flex: 1; background: var(--s1-panel); border-radius: 6px; padding: 2px calc(10px * var(--s1-scale, 1)); border: 1px solid var(--s1-line); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: flex; align-items: center; gap: calc(6px * var(--s1-scale, 1)); }
.k-web-body { padding: calc(20px * var(--s1-scale, 1)) calc(22px * var(--s1-scale, 1)); display: grid; gap: calc(10px * var(--s1-scale, 1)); font-family: Georgia, "Times New Roman", serif; }
.k-web-kicker { font: 700 var(--s1-text-micro) var(--k-font-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--s1-maroon); }
.k-web-title { margin: 0; font: 700 var(--s1-fs-5)/1.25 Georgia, "Times New Roman", serif; color: #1b1b1f; }
.k-web-by { font: 500 var(--s1-fs-3) var(--k-font-ui); color: #4a4f5c; }
.k-web-abs { margin: 0; font-size: var(--s1-fs-4); line-height: 1.55; color: #2a2d36; }
.k-web-tags { display: flex; gap: calc(6px * var(--s1-scale, 1)); flex-wrap: wrap; font-family: var(--k-font-ui); }
.k-web-tags span { font-size: var(--s1-text-micro); padding: 2px calc(9px * var(--s1-scale, 1)); border-radius: 999px; background: #f1ece9; color: #6b2a3a; font-weight: 600; }
.k-web-cta { display: flex; gap: calc(8px * var(--s1-scale, 1)); font-family: var(--k-font-ui); } .k-web-cta span { font: 650 var(--s1-text-small) var(--k-font-ui); padding: 5px calc(12px * var(--s1-scale, 1)); border-radius: 6px; border: 1px solid #c8b8b2; color: #6b2a3a; }
.k-web.is-draft .k-web-body { opacity: .85; }
.k-web-state { position: absolute; top: 40px; right: 12px; }
.k-ready { display: grid; grid-template-columns: minmax(0, 1fr); gap: calc(6px * var(--s1-scale, 1)); }
.k-ready-item { display: flex; align-items: center; gap: calc(9px * var(--s1-scale, 1)); font-size: var(--s1-text-small); }
.k-ready-item .k-icon { width: 15px; height: 15px; }
.k-ready-item.ok .k-icon { color: var(--s1-ok); } .k-ready-item.no { color: var(--s1-ink); } .k-ready-item.no .k-icon { color: var(--s1-late); }

/* ---------- Settings patterns ---------- */
.k-setting { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px calc(24px * var(--s1-scale, 1)); align-items: center; padding: calc(14px * var(--s1-scale, 1)) calc(16px * var(--s1-scale, 1)); border-top: 1px solid var(--s1-line-soft); }
.k-setting:first-child { border-top: 0; }
.k-setting-t { font-weight: 650; } .k-setting-d { grid-column: 1; font-size: var(--s1-text-small); color: var(--s1-mute); max-width: 70ch; }
.k-setting > .ctl { grid-column: 2; grid-row: 1 / span 2; display: flex; flex-wrap: wrap; align-items: center; gap: calc(8px * var(--s1-scale, 1)); justify-content: flex-end; }
@media (max-width: 640px) { .k-setting { grid-template-columns: minmax(0, 1fr); } .k-setting > .ctl { grid-column: 1; grid-row: auto; justify-content: flex-start; } }

/* ---------- Palette ---------- */
.k-pal-input { width: 100%; border: 0; border-bottom: 1px solid var(--s1-line); padding: calc(16px * var(--s1-scale, 1)) calc(22px * var(--s1-scale, 1)); font: 500 var(--s1-fs-4) var(--k-font-ui);  }
.k-pal-list { max-height: 360px; overflow: auto; padding: calc(8px * var(--s1-scale, 1)); display: grid; }
.k-pal-item { display: flex; align-items: center; gap: calc(12px * var(--s1-scale, 1)); padding: calc(9px * var(--s1-scale, 1)) calc(12px * var(--s1-scale, 1)); border-radius: 9px; border: 0; background: none; cursor: pointer; text-align: left; font: 600 var(--s1-fs-3) var(--k-font-ui); color: var(--s1-ink); text-decoration: none; }
.k-pal-item.is-active, .k-pal-item:hover { background: var(--s1-column); }
.k-pal-item small { color: var(--s1-mute); font-weight: 500; margin-left: auto; font-size: var(--s1-text-micro); }
.k-pal-group { padding: calc(8px * var(--s1-scale, 1)) calc(12px * var(--s1-scale, 1)) 4px; font: 700 var(--s1-fs-1) var(--k-font-ui); letter-spacing: .09em; text-transform: uppercase; color: var(--s1-mute); }

/* ---------- Motion safety ---------- */

.k-tag-in { border: 0;  flex: 1; min-width: 140px; font: var(--s1-fs-2) var(--k-font-ui); padding: 4px calc(6px * var(--s1-scale, 1)); background: none; }
.k-tag-in::-webkit-calendar-picker-indicator { display: none !important; }

.k-head-mark { flex: none; align-self: flex-start; margin-top: 4px; }
@media (max-width: 640px) { .k-head-mark { display: none; } }
.k-pms > .k-avs-more { margin-left: 0; }
.k-head-row > .k-grow { flex: 1 1 320px; min-width: 0; }

/* ---------- S1 dialog skin: RWTProjectDialogs and the other native S1 dialogs, centered at every width ----------
   The dialogs keep their own markup (form, fields, aside preview); this block gives them the kit modal look.
   Higher specificity than s1-project.css on purpose (.s1-dialog-shade prefix), loaded after it. */
.s1-dialog-shade.k-modal-root { position: fixed; inset: 0; z-index: 900; display: grid; place-items: center; padding: calc(24px * var(--s1-scale, 1)); overflow: hidden; background: none; animation: none; }
.s1-dialog-shade > .s1-dialog.k-modal { position: relative; inset: auto; flex: none; width: min(var(--w, 640px), 100%); max-width: 100%; max-height: min(100%, 880px); margin: 0; padding: 0; background: var(--s1-panel); border: 1px solid var(--s1-line); border-radius: 16px; box-shadow: var(--k-shadow-pop); animation: k-modal-in var(--s1-dur-3) var(--s1-ease) both; }
.s1-dialog-shade > .s1-dialog.k-modal.s1-dialog--wide { width: min(var(--w, 1120px), 100%); max-height: min(100%, 880px); box-shadow: var(--k-shadow-pop); animation: k-modal-in var(--s1-dur-3) var(--s1-ease) both; }
.s1-dialog-shade .k-modal-head.s1-dialog-head { flex: none; display: flex; align-items: flex-start; gap: calc(14px * var(--s1-scale, 1)); padding: calc(18px * var(--s1-scale, 1)) calc(22px * var(--s1-scale, 1)) calc(14px * var(--s1-scale, 1)); background: var(--s1-panel); border-bottom: 1px solid var(--s1-line-soft); }
.s1-dialog-shade .k-modal-head h2.s1-panel-head.k-modal-title { margin: 0; padding: 0; border: 0; background: none; font: 800 var(--s1-fs-5)/1.2 var(--k-font-display); letter-spacing: -.01em; }
.s1-dialog-shade .k-modal-head .k-modal-desc { margin: 4px 0 0; font-size: var(--s1-fs-3); font-weight: 400; color: var(--s1-mute); }
.s1-dialog-shade .k-modal-head .k-modal-kicker { display: block; margin-bottom: 2px; }
.s1-dialog-shade .s1-dialog-body.k-modal-body { padding: calc(18px * var(--s1-scale, 1)) calc(22px * var(--s1-scale, 1)); gap: calc(14px * var(--s1-scale, 1)); background: var(--s1-panel); }
.s1-dialog-shade .s1-dialog-foot.k-modal-foot { padding: calc(14px * var(--s1-scale, 1)) calc(24px * var(--s1-scale, 1)) calc(18px * var(--s1-scale, 1)); background: var(--s1-panel); border-top: 1px solid var(--s1-line-soft); gap: calc(8px * var(--s1-scale, 1)); align-items: center; }
.s1-dialog-shade .s1-project-dialog-error { padding: calc(10px * var(--s1-scale, 1)) calc(22px * var(--s1-scale, 1)) 0; }
.s1-dialog-shade .k-backdrop { z-index: 0; }
.s1-dialog-shade > .s1-dialog { z-index: 1; }
/* The native-<dialog> S1 dialogs (Command Center access) get the same shape when shown modally. */
dialog.s1-dialog:not(.k-modal) { border-radius: 16px; box-shadow: var(--k-shadow-pop); }
dialog.s1-dialog:not(.k-modal)::backdrop { background: rgb(17 19 24 / .52); backdrop-filter: blur(2px); }
@media (max-width: 640px) {
  .s1-dialog-shade.k-modal-root { padding: 8px; }
  .s1-dialog-shade > .s1-dialog.k-modal, .s1-dialog-shade > .s1-dialog.k-modal.s1-dialog--wide { width: 100%; border-radius: 14px; max-height: 100%; }
  .s1-dialog-shade .k-modal-head.s1-dialog-head { padding: 14px 16px 12px; }
  .s1-dialog-shade .s1-dialog-body.k-modal-body { padding: 14px 16px; }
  .s1-dialog-shade .s1-dialog-foot.k-modal-foot { padding: 10px 16px; }
  .s1-dialog-shade .k-modal-icon { display: none; }
}

/* ---------- Calendar (Kit.calendar, ui-v2/s1-kit-views.js) ----------
   Month grid with bordered day cells, spanning event bars, week columns and a day-grouped agenda. Color by kind is desaturated
   and never reuses the status hues; red is only ever overdue. Today is an ink ring and an ink date disc. */
.k-cal { --kc-num: 32px; --kc-lane: 25px; position: relative; display: grid; gap: calc(14px * var(--s1-scale, 1)); min-width: 0; font-family: var(--k-font-ui); color: var(--s1-ink); }
.k-cal, .k-cal * { box-sizing: border-box; }
.k-cal-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: calc(10px * var(--s1-scale, 1)) calc(18px * var(--s1-scale, 1)); }
.k-cal-nav { display: flex; align-items: center; flex-wrap: wrap; gap: calc(8px * var(--s1-scale, 1)) calc(16px * var(--s1-scale, 1)); min-width: 0; }
.k-cal-title { margin: 0; font: 800 var(--s1-fs-6)/1.1 var(--k-font-display); letter-spacing: -.02em; min-width: 8.5ch; }
.k-cal-step { display: inline-flex; align-items: center; gap: calc(6px * var(--s1-scale, 1)); }
.k-cal-btn.k-iconbtn { width: 34px; height: 34px; border-radius: 9px; }
.k-cal-tools { display: flex; align-items: center; flex-wrap: wrap; gap: calc(8px * var(--s1-scale, 1)) calc(10px * var(--s1-scale, 1)); }
.k-cal-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.k-cal-stage { min-width: 0; }

.k-cal-k--key { --kc: #111318; } .k-cal-k--task { --kc: #5c6878; } .k-cal-k--meeting { --kc: #6a4fa3; }
.k-cal-k--irb { --kc: #12787f; } .k-cal-k--deadline { --kc: #2f3440; } .k-cal-k--conference { --kc: #8a6236; } .k-cal-k--other { --kc: #6b7180; }
.is-late.k-cal-ev, .is-late.k-cal-card, .k-cal-dots i.is-late { --kc: var(--s1-late); }

.k-cal-grid { border: 1px solid var(--s1-line); border-radius: 12px; overflow: hidden; background: var(--s1-panel); box-shadow: var(--k-shadow-card); }
.k-cal-dow { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: var(--s1-panel-head); border-bottom: 1px solid var(--s1-line); }
.k-cal-dow span { padding: calc(9px * var(--s1-scale, 1)) calc(10px * var(--s1-scale, 1)); font: 700 var(--s1-text-micro)/1.2 var(--k-font-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--s1-mute); border-right: 1px solid var(--s1-line-soft); }
.k-cal-dow span:last-child { border-right: 0; }
.k-cal-week { position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); min-height: 112px; }
.k-cal-week + .k-cal-week { border-top: 1px solid var(--s1-line); }
.k-cal-cell { position: relative; min-width: 0; padding: 5px calc(7px * var(--s1-scale, 1)); background: var(--s1-panel); border-right: 1px solid var(--s1-line); cursor: pointer;  transition: background var(--s1-dur-2) var(--s1-ease); }
.k-cal-cell:nth-child(7) { border-right: 0; }
.k-cal-cell.is-wknd { background: var(--s1-hover); }
.k-cal-cell.is-out { background: var(--s1-column); color: var(--s1-mute); }
.k-cal-cell:hover { background: var(--s1-panel-head); }
.k-cal-cell.is-today { box-shadow: inset 0 0 0 2px var(--s1-ink); z-index: 1; }
.k-cal-num { display: inline-flex; align-items: center; height: 26px; font: 650 var(--s1-text-small)/1 var(--k-font-ui); font-variant-numeric: tabular-nums; }
.k-cal-num time { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 calc(6px * var(--s1-scale, 1)); border-radius: 999px; }
.k-cal-cell.is-today .k-cal-num time { background: var(--s1-ink); color: var(--s1-on-ink); font-weight: 750; }
.k-cal-plus { position: absolute; top: 4px; right: 5px; display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 1px solid var(--s1-line); border-radius: 7px; background: var(--s1-panel); color: var(--s1-ink); cursor: pointer; opacity: 0; transition: opacity var(--s1-dur-2) var(--s1-ease); }
.k-cal-cell:hover .k-cal-plus, .k-cal-cell:focus-within .k-cal-plus, .k-cal-plus:focus-visible { opacity: 1; }
@media (hover: none) { .k-cal-plus { display: none; } }
.k-cal-ev { z-index: 2; align-self: start; display: flex; align-items: center; gap: 5px; height: 22px; margin: 0 4px 3px; padding: 0 calc(7px * var(--s1-scale, 1)) 0 calc(6px * var(--s1-scale, 1)); border: 0; border-radius: 5px; background: color-mix(in srgb, var(--kc) 11%, var(--s1-panel)); color: var(--s1-ink); font: 600 var(--s1-text-micro)/1 var(--k-font-ui); text-align: left; cursor: pointer; min-width: 0; overflow: hidden; transition: background var(--s1-dur-2) var(--s1-ease), box-shadow var(--s1-dur-2) var(--s1-ease); }
.k-cal-ev:hover { background: color-mix(in srgb, var(--kc) 20%, var(--s1-panel)); }
.k-cal-ev.is-cl { margin-left: 0; border-left-width: 0; border-radius: 0 5px 5px 0; padding-left: calc(8px * var(--s1-scale, 1)); }
.k-cal-ev.is-cr { margin-right: 0; border-radius: 5px 0 0 5px; }
.k-cal-ev.is-cl.is-cr { border-radius: 0; }
.k-cal-ev-i { display: inline-grid; flex: none; color: var(--kc); }
.k-cal-ev-i svg { width: 12px; height: 12px; }
.k-cal-ev-t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.k-cal-ev-t b { font-weight: 700; color: var(--s1-ink-2); }
.k-cal-ev.is-late { background: color-mix(in srgb, var(--s1-late) 11%, var(--s1-panel)); color: var(--s1-late); }
.k-cal-ev.is-done, .k-cal-card.is-done { opacity: .62; }
.k-cal-ev.is-done .k-cal-ev-t, .k-cal-card.is-done .k-cal-link { text-decoration: line-through; }
.k-cal-more { z-index: 2; align-self: start; justify-self: start; margin: 0 4px; padding: 3px calc(6px * var(--s1-scale, 1)); border: 0; border-radius: 5px; background: none; color: var(--s1-ink-2); font: 650 var(--s1-text-micro)/1.2 var(--k-font-ui); cursor: pointer; }
.k-cal-more:hover { background: var(--s1-column); color: var(--s1-ink); }
.k-cal-dots { position: absolute; left: 0; right: 0; bottom: 7px; display: flex; justify-content: center; gap: 3px; }
.k-cal-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--kc); }
.k-cal-grid.is-compact .k-cal-week { min-height: 56px; grid-template-rows: none !important; }
.k-cal-grid.is-compact .k-cal-cell { padding: 3px 2px; text-align: center; }
.k-cal-grid.is-compact .k-cal-dow span { padding: calc(7px * var(--s1-scale, 1)) 0; text-align: center; letter-spacing: 0; }

.k-cal-card { display: flex; align-items: flex-start; gap: calc(9px * var(--s1-scale, 1)); padding: calc(8px * var(--s1-scale, 1)) calc(10px * var(--s1-scale, 1)); border-radius: 8px; background: color-mix(in srgb, var(--kc) 8%, var(--s1-panel)); min-width: 0; }
.k-cal-card-i { display: inline-grid; flex: none; margin-top: 1px; color: var(--kc); }
.k-cal-card-b { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 1px calc(10px * var(--s1-scale, 1)); }
.k-cal-card-b small { flex: 1 0 100%; order: 3; color: var(--s1-mute); font: 500 var(--s1-text-micro)/1.4 var(--k-font-ui); }
.k-cal-card.is-late .k-cal-card-b small { color: var(--s1-late); font-weight: 650; }
.k-cal-link { padding: 0; border: 0; background: none; color: var(--s1-ink); font: 650 var(--s1-fs-3)/1.35 var(--k-font-ui); text-align: left; cursor: pointer; overflow-wrap: anywhere; }
.k-cal-link:hover { text-decoration: underline; }
.k-cal-act { margin-left: auto; order: 2; display: inline-flex; gap: calc(8px * var(--s1-scale, 1)); align-items: baseline; }
.k-cal-none { margin: 0; padding: calc(6px * var(--s1-scale, 1)) 2px; color: var(--s1-mute); font-size: var(--s1-text-small); }
.k-cal-todaytag { display: inline-block; margin-left: 8px; padding: 1px calc(8px * var(--s1-scale, 1)); border-radius: 999px; background: var(--s1-ink); color: var(--s1-on-ink); font: 700 var(--s1-fs-1)/1.6 var(--k-font-ui); letter-spacing: .06em; text-transform: uppercase; vertical-align: 1px; }

.k-cal-wk { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--s1-line); border-radius: 12px; overflow: hidden; background: var(--s1-panel); box-shadow: var(--k-shadow-card); }
.k-cal-wkday { display: flex; flex-direction: column; min-width: 0; min-height: 280px; border-right: 1px solid var(--s1-line); }
.k-cal-wkday:last-child { border-right: 0; }
.k-cal-wkday.is-wknd { background: var(--s1-hover); }
.k-cal-wkday > header { display: flex; align-items: center; justify-content: space-between; gap: calc(6px * var(--s1-scale, 1)); padding: calc(8px * var(--s1-scale, 1)) calc(8px * var(--s1-scale, 1)) calc(6px * var(--s1-scale, 1)); border-bottom: 1px solid var(--s1-line-soft); background: var(--s1-panel-head); }
.k-cal-wkhead { display: inline-flex; align-items: center; gap: calc(7px * var(--s1-scale, 1)); padding: 2px 4px; border: 0; border-radius: 8px; background: none; cursor: pointer; font: 700 var(--s1-text-micro)/1 var(--k-font-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--s1-mute); }
.k-cal-wkhead b { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 calc(6px * var(--s1-scale, 1)); border-radius: 999px; font: 750 var(--s1-fs-4)/1 var(--k-font-ui); letter-spacing: 0; color: var(--s1-ink); }
.k-cal-wkday.is-today { box-shadow: inset 0 0 0 2px var(--s1-ink); }
.k-cal-wkday.is-today .k-cal-wkhead b { background: var(--s1-ink); color: var(--s1-on-ink); }
.k-cal-wkadd.k-iconbtn { width: 28px; height: 28px; border-radius: 8px; }
.k-cal-wkbody { display: grid; gap: calc(8px * var(--s1-scale, 1)); align-content: start; padding: calc(8px * var(--s1-scale, 1)); }
.k-cal-wkbody .k-cal-none { text-align: center; padding: calc(14px * var(--s1-scale, 1)) 2px; }
.k-cal.is-narrow .k-cal-wk { grid-template-columns: minmax(0, 1fr); }
.k-cal.is-narrow .k-cal-wkday { min-height: 0; border-right: 0; border-bottom: 1px solid var(--s1-line); flex-direction: row; }
.k-cal.is-narrow .k-cal-wkday:last-child { border-bottom: 0; }
.k-cal.is-narrow .k-cal-wkday > header { flex: 0 0 96px; flex-direction: column; justify-content: flex-start; border-bottom: 0; border-right: 1px solid var(--s1-line-soft); padding: calc(10px * var(--s1-scale, 1)) calc(6px * var(--s1-scale, 1)); }
.k-cal.is-narrow .k-cal-wkbody { flex: 1 1 auto; min-width: 0; }
.k-cal.is-narrow .k-cal-wkbody .k-cal-none { text-align: left; padding: calc(6px * var(--s1-scale, 1)) 2px; }

.k-cal-ag { display: grid; border: 1px solid var(--s1-line); border-radius: 12px; overflow: hidden; background: var(--s1-panel); box-shadow: var(--k-shadow-card); }
.k-cal-agday { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 4px calc(14px * var(--s1-scale, 1)); padding: calc(12px * var(--s1-scale, 1)) calc(16px * var(--s1-scale, 1)); border-top: 1px solid var(--s1-line-soft); }
.k-cal-agday:first-child { border-top: 0; }
.k-cal-agday > header { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding-top: 2px; }
.k-cal-agday .k-cal-todaytag { margin: 2px 0 0; }
.k-cal-agdow { font: 700 var(--s1-text-micro)/1 var(--k-font-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--s1-mute); }
.k-cal-agnum { display: inline-grid; place-items: center; min-width: 32px; height: 32px; padding: 0 calc(8px * var(--s1-scale, 1)); border-radius: 999px; font: 800 var(--s1-fs-5)/1 var(--k-font-display); font-variant-numeric: tabular-nums; }
.k-cal-agday.is-today { background: var(--s1-panel-head); }
.k-cal-agday.is-today .k-cal-agnum { background: var(--s1-ink); color: var(--s1-on-ink); }
.k-cal-agbody { display: grid; gap: calc(8px * var(--s1-scale, 1)); min-width: 0; }
.k-cal-late > header { padding-top: calc(10px * var(--s1-scale, 1)); }
.k-cal-latehd { display: inline-flex; align-items: center; gap: calc(8px * var(--s1-scale, 1)); color: var(--s1-ink); font: 650 var(--s1-text-small) var(--s1-font-ui); }
.k-cal-latehd svg { color: var(--s1-late); flex: none; }
.k-cal-late { display: grid; gap: calc(8px * var(--s1-scale, 1)); padding: 4px calc(16px * var(--s1-scale, 1)); border-top: 1px solid var(--s1-line-soft); }
.k-cal-late:first-child { border-top: 0; }
.k-cal-latebtn { display: flex; align-items: center; gap: calc(8px * var(--s1-scale, 1)); min-height: 40px; width: 100%; padding: 0; border: 0; background: none; color: var(--s1-ink); font: 650 var(--s1-text-small) var(--s1-font-ui); text-align: left; cursor: pointer; }
.k-cal-latebtn svg { color: var(--s1-late); flex: none; }
.k-cal-latebtn em { margin-left: auto; color: var(--s1-mute); font-style: normal; font-weight: 600; }
.k-cal-late .k-cal-agbody { padding-bottom: calc(10px * var(--s1-scale, 1)); }
.k-cal-empty { display: flex; flex-direction: column; align-items: center; gap: calc(10px * var(--s1-scale, 1)); padding: calc(36px * var(--s1-scale, 1)) calc(16px * var(--s1-scale, 1)); border: 1px dashed var(--s1-line); border-radius: 12px; background: var(--s1-panel); color: var(--s1-mute); text-align: center; }
.k-cal-empty p { margin: 0; }

.k-cal-pop { position: absolute; z-index: 30; display: flex; flex-direction: column; max-height: 420px; background: var(--s1-panel); border: 1px solid var(--s1-line); border-radius: 12px; box-shadow: var(--k-shadow-pop); }
.k-cal-pop > header { display: flex; align-items: flex-start; justify-content: space-between; gap: calc(10px * var(--s1-scale, 1)); padding: calc(12px * var(--s1-scale, 1)) calc(8px * var(--s1-scale, 1)) calc(10px * var(--s1-scale, 1)) calc(14px * var(--s1-scale, 1)); border-bottom: 1px solid var(--s1-line-soft); }
.k-cal-pop > header b { font: 750 var(--s1-fs-4)/1.3 var(--k-font-display); }
.k-cal-pop > header small { display: block; margin-top: 2px; color: var(--s1-mute); font: 500 var(--s1-text-micro)/1.3 var(--k-font-ui); }
.k-cal-x.k-iconbtn { width: 30px; height: 30px; border-radius: 8px; border-color: transparent; }
.k-cal-popbody { display: grid; gap: calc(8px * var(--s1-scale, 1)); align-content: start; padding: calc(10px * var(--s1-scale, 1)); overflow: auto; min-height: 0; }
.k-cal-pop > footer { padding: calc(10px * var(--s1-scale, 1)) calc(12px * var(--s1-scale, 1)); border-top: 1px solid var(--s1-line-soft); }
.k-cal-pop.is-sheet { position: fixed; z-index: 450; left: 0; right: 0; bottom: 0; top: auto; width: auto !important; max-height: 72vh; border-radius: 16px 16px 0 0; border-bottom: 0; }

@media (max-width: 760px) { .k-cal-title { font-size: var(--s1-fs-6); } }

/* ---------- editors that build their own forms inside a Kit dialog (app.js modal() in S1) ---------- */
.k-toast-undo { margin-left: 6px; border: 0; background: transparent; color: var(--s1-on-ink); font: 700 var(--s1-fs-3) var(--k-font-ui); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 2px 4px; border-radius: 6px; }
.k-toast-undo:hover { background: rgb(255 255 255 / .14); }
.k-toast-undo:disabled { opacity: .6; cursor: default; }
.k-toast--late { background: var(--s1-ink); }
.s1-legacy-form { display: grid; gap: calc(14px * var(--s1-scale, 1)); min-width: 0; font: var(--s1-fs-3)/1.45 var(--k-font-ui); color: var(--s1-ink); }
.s1-legacy-form label { display: grid; gap: calc(6px * var(--s1-scale, 1)); min-width: 0; font: 650 var(--s1-text-small) var(--k-font-ui); color: var(--s1-ink-2); }
.s1-legacy-form input:not([type=checkbox]):not([type=radio]), .s1-legacy-form select, .s1-legacy-form textarea { width: 100%; min-width: 0; box-sizing: border-box; border: 1px solid var(--s1-control-line); border-radius: 9px; background: var(--s1-panel); padding: calc(9px * var(--s1-scale, 1)) calc(12px * var(--s1-scale, 1)); font: var(--s1-fs-3)/1.4 var(--k-font-ui); color: var(--s1-ink); }
.s1-legacy-form input:focus, .s1-legacy-form select:focus, .s1-legacy-form textarea:focus { border-color: var(--s1-focus-border); }
.s1-legacy-form input:disabled, .s1-legacy-form select:disabled { background: var(--s1-canvas); color: var(--s1-mute); }
.s1-legacy-form .s1lf-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: calc(12px * var(--s1-scale, 1)); }
.s1-legacy-form .s1lf-form-grid .s1lf-wide { grid-column: 1 / -1; }
.s1-legacy-form fieldset.s1lf-team-person-results { margin: 0; padding: 0; border: 0; min-width: 0; }
.s1-legacy-form fieldset.s1lf-team-person-results legend { padding: 0 0 calc(6px * var(--s1-scale, 1)); font: 650 var(--s1-text-small) var(--k-font-ui); color: var(--s1-ink-2); }
.s1-legacy-form #team-person-results { max-height: 240px; overflow-y: auto; border: 1px solid var(--s1-line); border-radius: 10px; }
.s1-legacy-form label.s1lf-team-person-choice { display: flex; align-items: center; gap: calc(12px * var(--s1-scale, 1)); padding: calc(10px * var(--s1-scale, 1)) calc(12px * var(--s1-scale, 1)); border-bottom: 1px solid var(--s1-line-soft); cursor: pointer; font-weight: 400; }
.s1-legacy-form label.s1lf-team-person-choice:has(input:checked) { background: var(--s1-column); }
.s1-legacy-form .s1lf-team-person-choice span { min-width: 0; }
.s1-legacy-form .s1lf-team-person-choice strong, .s1-legacy-form .s1lf-team-person-choice small { display: block; overflow-wrap: anywhere; }
.s1-legacy-form .s1lf-team-person-choice small { margin-top: 3px; color: var(--s1-mute); font-weight: 400; }
.s1-legacy-form .s1lf-modal-note, .s1-legacy-form .s1lf-empty { margin: 0; padding: calc(10px * var(--s1-scale, 1)) calc(12px * var(--s1-scale, 1)); border: 1px solid var(--s1-line); border-radius: 10px; background: var(--s1-canvas); color: var(--s1-ink-2); font-size: var(--s1-text-small); line-height: 1.5; }
.s1-legacy-form .s1lf-explainer-iframe { width: 100%; min-height: 60vh; border: 1px solid var(--s1-line); border-radius: 10px; background: var(--s1-panel); }
.s1-legacy-form .s1lf-phase-editor-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto auto auto; gap: calc(8px * var(--s1-scale, 1)); align-items: center; margin-bottom: 8px; }
@media (max-width: 520px) { .s1-legacy-form .s1lf-phase-editor-row { grid-template-columns: minmax(0, 1fr) auto auto auto; } .s1-legacy-form .s1lf-phase-editor-row > select { grid-column: 1 / -1; grid-row: 2; } }
.s1-legacy-form .s1lf-phase-editor-row button { border: 1px solid var(--s1-line); background: var(--s1-panel); border-radius: 9px; min-width: 36px; height: 36px; cursor: pointer; color: var(--s1-ink); }
.s1-legacy-form .s1lf-credit-fieldset { display: grid; gap: calc(10px * var(--s1-scale, 1)); min-width: 0; margin: 0; padding: calc(14px * var(--s1-scale, 1)); border: 1px solid var(--s1-line); border-radius: 12px; background: var(--s1-canvas); }
.s1-legacy-form .s1lf-credit-fieldset legend { padding: 0 4px; font: 700 var(--s1-fs-3) var(--k-font-ui); color: var(--s1-ink); }
.s1-legacy-form .s1lf-credit-fieldset > p { margin: 0; color: var(--s1-mute); font-size: var(--s1-text-small); }
.s1-legacy-form .s1lf-credit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: calc(8px * var(--s1-scale, 1)); }
.s1-legacy-form label.s1lf-credit-choice { display: flex; align-items: center; gap: calc(8px * var(--s1-scale, 1)); padding: calc(8px * var(--s1-scale, 1)) calc(10px * var(--s1-scale, 1)); border: 1px solid var(--s1-line); border-radius: 10px; background: var(--s1-panel); font-weight: 600; }
.s1-legacy-form .s1lf-contribution-editor, .s1-legacy-form .s1lf-meeting-detail { display: grid; gap: calc(14px * var(--s1-scale, 1)); }
.s1-legacy-form .s1lf-meeting-summary { display: flex; flex-wrap: wrap; gap: calc(8px * var(--s1-scale, 1)) calc(12px * var(--s1-scale, 1)); align-items: baseline; }
.s1-legacy-form .s1lf-meeting-date-large { font: 700 var(--s1-fs-5) var(--k-font-display); }
.s1-legacy-form .s1lf-status-pill { display: inline-flex; padding: 2px calc(8px * var(--s1-scale, 1)); border-radius: 999px; border: 1px solid var(--s1-line); font-size: var(--s1-text-micro); font-weight: 650; }
.s1-legacy-form .s1lf-kicker { margin: 0; font: 650 var(--s1-text-micro) var(--k-font-ui); color: var(--s1-mute); text-transform: uppercase; letter-spacing: .04em; }
@media (max-width: 520px) { .s1-legacy-form .s1lf-form-grid, .s1-legacy-form .s1lf-credit-grid { grid-template-columns: 1fr; } }

/* Phone: website preview and side-by-side columns never push past the viewport. */
.k-two > *, .k-stack > * { min-width: 0; }
.k-web { max-width: 100%; min-width: 0; }
.k-web-body { overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .k-web-body { padding: 16px; }
  /* 16px stops iOS from zooming the page when a field is focused. */
  .k-input, .k-select, .k-textarea, .k-tag-in, .k-modal-root :is(input:not([type=checkbox]):not([type=radio]), select, textarea) { font-size: var(--s1-fs-4); }
  .k-input, .k-select { min-height: 44px; }
  /* A grid stack sizes its implicit column to the widest child (a file input), pushing text past the card edge. */
  .k-stack, .k-stack-sm { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Card-inset utility ----------
 * A flush card body (.k-panel-body--flush) has no padding because its rows supply their own. Loose small text, notes and
 * empty states placed directly in it used to sit against the card edge. These zero-specificity rules give them the
 * card's inner inset; any component rule that sets its own padding or margin still wins. .k-inset does the same on demand. */
.k-inset { padding: var(--s1-inset-y) var(--s1-inset-x); margin: 0; }
:where(.k-panel-body--flush > :is(p, .k-mute, .k-sm, .k-xs, [class*="-note"], [class*="-help"], [class*="-hint"], [class*="-none"], [class*="-empty"]):not(.k-empty, .k-callout, .k-row, .k-list, ul, ol, table)) { margin: 0; padding: var(--s1-inset-y) var(--s1-inset-x); }
:where(.k-panel-body--flush > :is(.k-empty, .k-callout), .k-panel-body--flush > div:not([class]) > :is(.k-empty, .k-callout)) { margin: var(--s1-inset-y) var(--s1-inset-x); }

/* Targets in dense lists (WCAG 2.2 AA 2.5.8): a standalone link or control has a real box of at least 24 px by its own size, at every width (the phone had this; the
 * desktop tables, task lists, calendar and People did not). A row grows by a few pixels at most; no box overlaps its neighbour, so two targets never share a tap. */
:is(a, button):is(.s1h-row-title, .s1h-link, .kt-title) { box-sizing: border-box; min-height: 24px; }
a.s1h-link { display: inline-block; }
a.s1h-row-title { display: block; }
.search input { min-height: 24px; }
:is(a, button):is(.kp-link, .kp-linkbtn) { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; min-width: 24px; min-height: 24px; }
:is(a, button).k-pill, .k-fchip, .kt-check, .k-cal-ev { box-sizing: border-box; min-height: 24px; }
.kt-check { min-width: 24px; }
.k-check { min-width: 24px; min-height: 24px; }
.k-cal-ev { height: 24px; }

/* Tone is a faint wash, never a coloured edge: late / due soon / waiting / new rows and cards tint their own background by --edge (a tone colour; the panel colour when there is none). */
.k-kcard, .kt-row, .k-row:is(.k-row--late, .k-row--wait, .k-row--soon, .k-row--new) { background-color: color-mix(in srgb, var(--edge) 7%, var(--s1-panel)); }

/* the mockup's page header (.hd) inside a kit page: it runs edge to edge under the top bar */
.k-page .hd { margin-inline: calc(-1 * var(--s1-gutter)); }
.k-page > .hd, .k-page > :first-child .hd { margin-top: -22px; }
/* In a grid page the header's negative side margins only moved it left; it fills the page's width too, so its rule and tab underline run to the right edge. */
.k-page > .hd { width: calc(100% + 2 * var(--s1-gutter)); max-width: none; }
.hd h1.h1, .hd p.h1 { font: 800 var(--s1-fs-6)/1.12 var(--display); letter-spacing: -.022em; margin: 0; }

/* A person chip keeps the whole name; the school beside it is what gives way on a narrow row. */
.k-uchip .k-pn { flex-shrink: 0; max-width: 100%; }
.k-uchip .k-school { flex-shrink: 1000; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
