/* abgantt — interface v2.
 * One stylesheet, no framework: tokens first, then components, then pages.
 * The look is SkillHub's (project_HR app/static/style.css): the two apps are
 * used side by side by the same people, so they share the light top bar, the
 * typefaces, the slate greys, the blue accent and the status colours (abHR
 * §5.91). The tokens below carry SkillHub's values under abgantt's names
 * (--muted one step darker: see there).
 * The text follows ReqHub's F28, as SkillHub does (abHR §5.102): inks tinted
 * with the brand blue, the titles and the bold words in deep blue, the
 * running text at 450. draw.js copies the tokens, and the font, for the
 * chart and the export.
 * Only the chart keeps colours of its own (the pink "today", the activity
 * palette), because they are data, not chrome.
 *
 * Every colour of the interface is a token: the dark theme (SYS-002 HLF-012)
 * gives each its other value, on <html data-theme="dark">, and on "system"
 * when the system is dark. Printing and the previews of documents stay light. */

/* ── typefaces ──────────────────────────────────────────────────────────────
 * SkillHub's two (abHR §5.91), served from here (static/fonts; where they come
 * from, and their licences, in fonts/README.txt): the CSP allows fonts from
 * 'self' only, and a font asked of a third party would send out the address
 * of whoever opens the page. Variable: the 550, 620 and 650 weights written
 * below show as such, where the system font rounded them. `swap`: the system
 * font until the file arrives, never a blank page; the chart waits for it
 * (main.js), because it measures its labels in it. The latin-ext files are
 * fetched only for a name that needs them. Carlito, next to them, is the
 * PDF's: it does not change. */
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: italic; font-weight: 200 800; font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin-wght-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Plus Jakarta Sans"; font-style: italic; font-weight: 200 800; font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin-ext-wght-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/outfit-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("../fonts/outfit-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ── tokens ─────────────────────────────────────────────────────────────── */
:root {
  /* slate greys, from the hue of the brand blue: the warm greys of before
     looked dirty next to the blue. The three inks of the text are the brand
     blue darkened (OKLCH hue 258, a little chroma each), as ReqHub's F28: a
     near-black slate read as grey, and the second and third were too close
     to tell apart. The titles go one step further, in a deep blue. Every ink
     keeps 4.5:1 or more on every ground it sits on */
  --bg: #f5f7fa;              /* SkillHub --bg */
  --surface: #ffffff;
  --surface-2: #f5f7fa;       /* SkillHub --bg: table heads, footers, hovers */
  --surface-3: #edf1f6;       /* a step darker: tracks, chips, segmented */
  --border: #e2e8f0;          /* SkillHub --grid */
  --border-strong: #cbd5e1;   /* SkillHub --baseline: fields, secondary buttons */
  --text: #112646;            /* SkillHub --ink: 14.1:1 on the background */
  --text-2: #384e6e;          /* SkillHub --ink-2: 7.9:1 */
  /* SkillHub --ink-3 is #576a86: one step darker here, for the counters of
     the segmented controls (a tint on surface-3), where that one makes
     4.3:1. This one makes 4.5:1 there, 5.4:1 on the background */
  --muted: #536682;
  --text-title: #08336c;      /* SkillHub --ink-title: titles of pages, cards and dialogs, bold words; 11.5:1 */
  --faint: #94a3b8;           /* marks and icons, not text */
  --accent: #2a78d6;
  --accent-strong: #1c5cab;
  --accent-soft: #e5eefb;
  --dark: #1e293b;            /* toasts and tips only: the bars are light */
  /* emerald for what is done, amber for what to look at: the numbers'
     colours too, when a number is a verdict */
  --ok: #047857;
  --ok-soft: #e3f5ec;
  --warn: #a3530b;
  --warn-soft: #fdf3d9;
  --bad: #b32424;
  --bad-soft: #fdeaea;
  /* the same states as marks (bars, dots, stripes): SkillHub's series colours */
  --ok-fill: #1baf7a;         /* SkillHub --s3 */
  --warn-fill: #eda100;       /* SkillHub --s4 */
  --bad-fill: #e34948;        /* SkillHub --s8 */
  --info: #1c5cab;
  --info-soft: #e5eefb;
  --today: #f72585;
  --critical: #d62839;
  --offer: #b7791f;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-1: 0 1px 2px rgba(11, 11, 11, .04);
  --shadow-2: 0 16px 38px rgba(11, 11, 11, .16);
  --shadow-3: 0 20px 46px rgba(11, 11, 11, .18), 0 2px 6px rgba(11, 11, 11, .04);
  --focus: 0 0 0 3px rgba(42, 120, 214, .18);
  /* colours that used to be written by hand, now with a dark value too */
  --on-accent: #ffffff;       /* text on the accent, on today, on the kick-off */
  --tint: rgba(11, 11, 11, .06);
  --backdrop: rgba(11, 11, 11, .38);
  --scroll-thumb: #c9cedb;
  --scroll-thumb-hover: #aab1c3;
  --tip-bg: rgba(30, 41, 59, .96);
  --tip-text: #f1f5f9;
  --tip-muted: #cbd5e1;
  --tip-bad: #ff9aa6;
  --tip-note: #86b6ef;
  --ms: #b5179e;              /* the milestones' rows */
  --off-head: #f6efe6;        /* a day off in the chart's header */
  --off-head-text: #b4533a;
  --off-body: rgba(233, 196, 106, .12);   /* a day off down the chart */
  --off-exception: rgba(180, 83, 58, .10);
  --arrow: #94a3b8;
  --halo: #ffffff;            /* around names written over the chart */
  --star: #d4930d;            /* a project followed on the dashboard */
  --bar-ring: 0 1px 2px rgba(11, 11, 11, .18);
  --baseline-late: #e0a0a8;
  --baseline-early: #9ccfbe;
  --load-free: #ffffff;
  --load-low: #e9f6f1;
  --load-mid: #c9ecdf;
  --load-full: #8fd6bb;
  --load-over: #ffd2d7;
  --load-over-text: #9d1427;
  /* SkillHub's voices: the text in Plus Jakarta Sans; Outfit for the page
     titles, the brand and the dashboard's key numbers. The chart measures and
     draws its labels with this same list (draw.js FONT) */
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-title: "Outfit", "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "SFMono-Regular", Menlo, monospace;
  --row: 44px;
}

/* ── the dark theme (SYS-002 HLF-012) ───────────────────────────────────────
 * Chosen, or the system's when the system is dark: the same values twice,
 * which tests/test_theme.py keeps identical. Screen only: printing stays
 * light. */
@media screen {
  :root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #12161c;
    --surface: #191e25;
    --surface-2: #1e242c;
    --surface-3: #262e38;
    --border: #2f3742;
    --border-strong: #4a5567;
    --text: #e6edf8;
    --text-2: #becce0;
    --muted: #99aac4;
    --text-title: #c5ddff;
    --faint: #6b7789;
    --accent: #3f8de6;
    --accent-strong: #8dbdf3;
    --accent-soft: #1b2d45;
    --dark: #262e38;
    --ok: #6ee7b7;
    --ok-soft: #0f3328;
    --warn: #f0bf5a;
    --warn-soft: #33290f;
    --bad: #ff8a8a;
    --bad-soft: #3a1a1a;
    --info: #8dbdf3;
    --info-soft: #1b2d45;
    --today: #ff4f9b;
    --critical: #ff6474;
    --offer: #e0a64a;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-2: 0 16px 38px rgba(0, 0, 0, .55);
    --shadow-3: 0 20px 46px rgba(0, 0, 0, .6), 0 2px 6px rgba(0, 0, 0, .3);
    --focus: 0 0 0 3px rgba(63, 141, 230, .35);
    --tint: rgba(255, 255, 255, .08);
    --backdrop: rgba(0, 0, 0, .6);
    --scroll-thumb: #455063;
    --scroll-thumb-hover: #5b6679;
    --tip-bg: rgba(51, 60, 74, .98);
    --ms: #e566cf;
    --off-head: #2b241d;
    --off-head-text: #e8916e;
    --off-body: rgba(233, 196, 106, .055);
    --off-exception: rgba(232, 145, 110, .14);
    --arrow: #8893a5;
    --halo: #191e25;
    --star: #f0bf5a;
    --bar-ring: 0 0 0 1px rgba(255, 255, 255, .22);
    --baseline-late: #c26a76;
    --baseline-early: #5fae93;
    --load-free: #191e25;
    --load-low: #16342a;
    --load-mid: #1c5240;
    --load-full: #237757;
    --load-over: #5c1f29;
    --load-over-text: #ffb4bf;
  }
}
@media screen and (prefers-color-scheme: dark) {
  :root[data-theme="system"] {
    color-scheme: dark;
    --bg: #12161c;
    --surface: #191e25;
    --surface-2: #1e242c;
    --surface-3: #262e38;
    --border: #2f3742;
    --border-strong: #4a5567;
    --text: #e6edf8;
    --text-2: #becce0;
    --muted: #99aac4;
    --text-title: #c5ddff;
    --faint: #6b7789;
    --accent: #3f8de6;
    --accent-strong: #8dbdf3;
    --accent-soft: #1b2d45;
    --dark: #262e38;
    --ok: #6ee7b7;
    --ok-soft: #0f3328;
    --warn: #f0bf5a;
    --warn-soft: #33290f;
    --bad: #ff8a8a;
    --bad-soft: #3a1a1a;
    --info: #8dbdf3;
    --info-soft: #1b2d45;
    --today: #ff4f9b;
    --critical: #ff6474;
    --offer: #e0a64a;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-2: 0 16px 38px rgba(0, 0, 0, .55);
    --shadow-3: 0 20px 46px rgba(0, 0, 0, .6), 0 2px 6px rgba(0, 0, 0, .3);
    --focus: 0 0 0 3px rgba(63, 141, 230, .35);
    --tint: rgba(255, 255, 255, .08);
    --backdrop: rgba(0, 0, 0, .6);
    --scroll-thumb: #455063;
    --scroll-thumb-hover: #5b6679;
    --tip-bg: rgba(51, 60, 74, .98);
    --ms: #e566cf;
    --off-head: #2b241d;
    --off-head-text: #e8916e;
    --off-body: rgba(233, 196, 106, .055);
    --off-exception: rgba(232, 145, 110, .14);
    --arrow: #8893a5;
    --halo: #191e25;
    --star: #f0bf5a;
    --bar-ring: 0 0 0 1px rgba(255, 255, 255, .22);
    --baseline-late: #c26a76;
    --baseline-early: #5fae93;
    --load-free: #191e25;
    --load-low: #16342a;
    --load-mid: #1c5240;
    --load-full: #237757;
    --load-over: #5c1f29;
    --load-over-text: #ffb4bf;
  }
}

/* the previews of documents are paper: light whatever the theme */
.paper, .wbs-doc {
  --surface: #ffffff; --surface-2: #f5f7fa; --surface-3: #edf1f6; --border: #e2e8f0;
  --text: #112646; --text-2: #384e6e; --muted: #536682; --text-title: #08336c; --faint: #94a3b8;
  color: var(--text);
}

/* ── base ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
/* the running text at 450, not 400: Plus Jakarta Sans at 400 comes out thin
   on Windows, and the text looked washed out. 450 is this sheet's "regular":
   a rule that wants the plain weight inside a heavier label writes 450 */
body {
  font-family: var(--font); font-size: 14px; font-weight: 450; line-height: 1.45; color: var(--text);
  background: var(--bg); -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; line-height: 1.25; }
/* the title of a page in Outfit, a little larger than the 22px of before:
   at the same size Outfit is smaller and narrower than Plus Jakarta Sans.
   The titles of pages, cards and dialogs in the deep blue */
h1 { font-family: var(--font-title); font-size: 25px; font-weight: 600; letter-spacing: -.015em; text-wrap: balance;
  color: var(--text-title); }
h2 { font-size: 16px; font-weight: 700; letter-spacing: -.01em; color: var(--text-title); }
h3 { font-size: 14px; font-weight: 700; }
p { margin: 0 0 8px; }
/* the bold words in the titles' deep blue, where the text around them is the
   page's ink; on a coloured ground (states, notices, chips, tips, buttons,
   links) they keep the colour around them. :where, so that the exception
   weighs as little as the rule, and a component's own `.x b` still wins */
b, strong { color: var(--text-title); }
:where(a, button, mark, .btn, .badge, .callout, .floating-tip, .tip, .cover, .skill-chip, .cov-chip, .cov-link,
  .state-chip, .reqhub-chip, .req-chip, .reqhub-warn, .offer-english, .g-flag, .g-check, .g-missing, .g-row-ms,
  .period-pick, .dropzone, .load-over, .text-warn, .text-bad, .load-warn, .load-ok, .load-away-note, .side-notes,
  .check-why, .check-clear, .cand-done, .cov-none, .field-hint.bad, .login-error, .login-dev-title) :is(b, strong) {
  color: inherit; }
/* the numbers of a numbered list (the facts a report cites) in the accent */
ol > li::marker { color: var(--accent-strong); font-weight: 650; }
a { color: var(--accent-strong); text-decoration: none; text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration: underline; }
/* a button takes the whole font of what holds it, the running text's 450 too */
button { font: inherit; color: inherit; }
/* fields and selects do not inherit the family by themselves, nor the
   weight: without this they stay at the browser's 400 */
input, select, textarea, optgroup { font-family: inherit; font-weight: 450; }
/* what the browser draws by itself (the selection, the caret) in the
   platform's colours */
::selection { background: color-mix(in srgb, var(--accent) 22%, transparent); }
input, textarea { caret-color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.icon { flex-shrink: 0; vertical-align: middle; }
#app { height: 100%; }
.noscript { padding: 40px; text-align: center; }

.muted { color: var(--muted); }
.small { font-size: 12px; }
.mono { font-family: var(--mono); font-size: 12px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.gap-sm { gap: 6px; }
.push-left { margin-right: auto; }
.plain-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.plain-link, .plain-link:hover { text-decoration: none; }
.loading { padding: 40px; text-align: center; color: var(--muted); }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--scroll-thumb); border-radius: 6px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: var(--scroll-thumb-hover); }
::-webkit-scrollbar-track { background: transparent; }

/* the thin bar at the top while a request is on its way */
body.is-busy::before {
  content: ""; position: fixed; inset: 0 0 auto; height: 3px; z-index: 10000;
  background: linear-gradient(90deg, transparent, var(--accent), var(--today), transparent);
  background-size: 200% 100%; animation: busy 1.1s linear infinite;
}
body.is-busy { cursor: progress; }
body.grabbing, body.grabbing * { cursor: grabbing !important; user-select: none; }
@keyframes busy { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ── buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 36px; padding: 0 14px; border-radius: 8px; border: 1px solid transparent;
  font-weight: 550; font-size: 13.5px; cursor: pointer; white-space: nowrap;
  transition: background .12s, border-color .12s, color .12s, box-shadow .12s;
  text-decoration: none !important;
}
.btn:disabled { opacity: .55; cursor: not-allowed; }
/* as in SkillHub, a primary button that is off goes grey instead of pale blue */
.btn-primary:disabled { opacity: 1; background: var(--border); border-color: var(--border); color: var(--muted); }
.btn-sm { height: 30px; padding: 0 10px; font-size: 12.5px; gap: 5px; border-radius: 7px; }
.btn-primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn-primary:hover:not(:disabled) { background: var(--accent-strong); border-color: var(--accent-strong); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover:not(:disabled) { background: var(--surface-2); border-color: var(--muted); }
.btn-light { background: color-mix(in srgb, var(--surface) 90%, transparent); color: var(--text); border-color: var(--border); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-ghost:hover:not(:disabled) { background: var(--surface-3); color: var(--text); }
.btn-danger { background: var(--surface); color: var(--bad); border-color: var(--bad); }
.btn-danger:hover:not(:disabled) { background: var(--bad-soft); }
.btn.danger, .btn-ghost.danger { color: var(--bad); }
.btn-ghost.danger:hover:not(:disabled) { background: var(--bad-soft); }
.btn-icon {
  display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px;
  border-radius: 8px; border: 0; background: transparent; color: var(--muted); cursor: pointer;
}
.btn-icon:hover:not(:disabled) { background: var(--surface-3); color: var(--text); }
.btn-icon:disabled { opacity: .4; cursor: not-allowed; }
.btn-icon.danger:hover:not(:disabled) { background: var(--bad-soft); color: var(--bad); }

/* ── form controls ──────────────────────────────────────────────────────── */
.input {
  width: 100%; height: 36px; padding: 0 10px; border: 1px solid var(--border-strong);
  border-radius: 8px; background: var(--surface); color: var(--text); font: inherit;
  transition: border-color .12s, box-shadow .12s;
}
textarea.input { height: auto; padding: 8px 10px; resize: vertical; line-height: 1.45; }
select.input { padding-right: 28px; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: var(--focus); }
.input:disabled { background: var(--surface-2); color: var(--muted); }
.input-sm { height: 30px; font-size: 13px; padding: 0 8px; }
.input-narrow { width: 76px; flex: 0 0 auto; }
.input-pct { width: 70px; flex: 0 0 auto; text-align: right; }
.input-work { width: 110px; flex: 0 0 auto; text-align: right; }
.input-unit { width: auto; flex: 0 0 auto; }
.input-sm { height: 30px; font-size: 13px; }
.search { width: 260px; }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field-label { font-size: 12.5px; font-weight: 550; color: var(--text-2); }
.field-label .req { color: var(--bad); }
.field-static { margin: 0; padding: 7px 0; font-size: 13.5px; }   /* a value shown, not typed */
.field-hint { font-size: 12px; color: var(--muted); }
.field-hint.bad { color: var(--bad); font-weight: 600; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.form-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 760px) { .form-grid-3 { grid-template-columns: 1fr; } }
/* the offer (SYS-002 MLF-007.7) */
.offer-contract { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--border); font-size: 13px; margin-bottom: 6px; }
.offer-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.offer-table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--text-2); padding: 6px 8px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.offer-table td { padding: 7px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
.offer-table .num { text-align: right; }
.input-money { width: 150px; text-align: right; }
.offer-total { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 8px 14px; font-weight: 700; }
.offer-total .muted { font-weight: 450; }
/* a Time & Material offer: the profiles with their rates, and the team */
.offer-tm { margin-bottom: 14px; }
.offer-rates td, .offer-team td { vertical-align: middle; }
.offer-rates td:first-child { width: 40%; }
.offer-rates td:nth-child(4) { width: 30%; }
.offer-rates .input, .offer-team select.input { width: 100%; }
.offer-rates .input.input-rate { width: 104px; text-align: right; }
.offer-row-tools { width: 34px; text-align: right; }
/* what the offer adds (LLF-007.7.13, 007.7.14): a card per cost, package or section */
.offer-extras { margin-top: 6px; }
.extras-list { display: flex; flex-direction: column; gap: 10px; }
.extras-item { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); }
.extras-head { display: flex; gap: 8px; align-items: center; }
.extras-head select.input { flex: 0 0 auto; width: auto; }
.extras-head .input:not(select) { flex: 1 1 auto; min-width: 0; }
.extras-figures { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: 12.5px; }
.extras-figures > .input:first-child { width: 180px; }
.extras-field { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); }
.extras-field .input-qty { width: 76px; text-align: right; }
.extras-field .input-money { width: 112px; }
.extras-figures select.input { width: auto; max-width: 300px; }
.extras-when { color: var(--text-2); }
.extras-sum { font-size: 13px; }
.offer-add { margin: 8px 0 14px; }
.offer-team { margin-top: 4px; }
.offer-team td:nth-child(3) { width: 34%; }
.offer-notes p { margin: 0 8px 6px; }
.offer-ceiling { align-items: center; }
/* the offer in English (SYS-002 LLF-007.7.5) */
.offer-english { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-radius: 9px; background: var(--ok-soft); color: var(--text); font-size: 13px; margin-bottom: 6px; }
.offer-english > svg { color: var(--ok); flex: none; }
.offer-english > span { flex: 1 1 260px; }
.offer-english.offer-english-todo { background: var(--warn-soft); }
.offer-english.offer-english-todo > svg { color: var(--warn); }
.english-review > p { margin: 0 0 10px; }
.english-rows { display: flex; flex-direction: column; margin-top: 12px; }
.english-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); }
.english-text { white-space: pre-line; font-size: 13px; margin-top: 2px; }
.english-target { display: flex; flex-direction: column; gap: 4px; }
.english-target textarea { width: 100%; resize: vertical; }
.english-choices { display: flex; flex-wrap: wrap; gap: 6px; }
.english-choices:empty { display: none; }
.english-choice { height: auto; min-height: 24px; padding: 3px 10px; white-space: normal; text-align: left; line-height: 1.3; }
.english-progress { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 30px; margin-bottom: 4px; }
.english-source { display: flex; flex-direction: column; gap: 4px; }
.english-places { display: flex; flex-direction: column; gap: 2px; }
.english-place { display: flex; align-items: baseline; gap: 5px; flex-wrap: wrap; }
.english-place .link-btn { display: inline-flex; align-items: center; gap: 3px; padding: 0; text-align: left; }
.field-flash { animation: row-flash 1.8s ease-out; }
@media (max-width: 640px) { .english-row { grid-template-columns: 1fr; gap: 6px; } }
.span-2 { grid-column: 1 / -1; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13.5px; }
.check input { width: 16px; height: 16px; accent-color: var(--accent); }
.range { flex: 1; accent-color: var(--accent); min-width: 140px; }
input[type="checkbox"].switch {
  appearance: none; width: 34px; height: 20px; border-radius: 12px; background: var(--border-strong);
  position: relative; cursor: pointer; transition: background .15s; vertical-align: middle;
}
input[type="checkbox"].switch::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; box-shadow: var(--shadow-1); transition: transform .15s;
}
input[type="checkbox"].switch:checked { background: var(--ok-fill); }
input[type="checkbox"].switch:checked::after { transform: translateX(14px); }
input[type="checkbox"].switch:disabled { opacity: .5; cursor: not-allowed; }
.colors { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.swatch { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--border-strong); cursor: pointer; padding: 0; }
.swatch.on { box-shadow: 0 0 0 2px var(--text); }
.color-input { width: 34px; height: 26px; padding: 0; border: 1px solid var(--border-strong); border-radius: 6px; background: none; cursor: pointer; }
.file-input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* segmented control */
.segmented { display: inline-flex; background: var(--surface-3); border-radius: 9px; padding: 3px; gap: 2px; }
.seg { border: 0; background: transparent; height: 30px; padding: 0 11px; border-radius: 7px; cursor: pointer; font-weight: 600; font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.seg:hover { color: var(--text); }
.seg.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-1); }
.segmented.small .seg { height: 26px; padding: 0 9px; font-size: 12.5px; }
.seg-count { font-size: 11px; background: var(--tint); border-radius: 10px; padding: 0 6px; color: var(--muted); }

/* ── badges, chips, pills ───────────────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.badge-neutral { background: var(--surface-2); color: var(--text-2); box-shadow: inset 0 0 0 1px var(--border); }
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-info { background: var(--info-soft); color: var(--info); }
.badge-warning { background: var(--warn-soft); color: var(--warn); }
.badge-bad { background: var(--bad-soft); color: var(--bad); }
.badge-status-offerta { background: var(--warn-soft); color: var(--warn); }
.badge-status-confermato { background: var(--ok-soft); color: var(--ok); }
.badge-status-chiuso { background: var(--surface-2); color: var(--text-2); box-shadow: inset 0 0 0 1px var(--border); }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border: 1px solid var(--border); border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--text-2); white-space: nowrap; text-decoration: none !important; }
a.pill:hover { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--accent-strong); }
.pill-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.pill-ok .pill-dot { background: var(--ok-fill); }
.pill-warn .pill-dot { background: var(--warn-fill); }
.chip-toggle { height: 24px; padding: 0 9px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); font-size: 12px; font-weight: 600; color: var(--muted); cursor: pointer; }
.chip-toggle.on { background: var(--accent-soft); border-color: transparent; color: var(--accent-strong); }
.skill-chip { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 11px; font-size: 12px; font-weight: 600; background: var(--surface-3); color: var(--text); white-space: nowrap; }
.skill-chip.must { background: var(--accent-soft); color: var(--accent-strong); }
.skill-chip.nice { background: var(--surface-3); color: var(--muted); }
.skill-chip.new { background: var(--warn-soft); color: var(--warn); }
.person-chip { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 12px; background: var(--surface-3); font-size: 12.5px; font-weight: 600; }
.after-chip { display: inline-block; padding: 1px 7px; margin: 1px 3px 1px 0; border-radius: 9px; background: var(--surface-3); }
.after-chip.off { text-decoration: line-through; opacity: .6; }
.chip-bad { color: var(--bad); font-weight: 700; }
.chip-crit { color: var(--critical); font-weight: 700; }

.avatar { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; font-weight: 700; flex-shrink: 0; letter-spacing: .2px; }
.avatar-md { width: 34px; height: 34px; font-size: 13px; }
.avatar-sm { width: 26px; height: 26px; font-size: 11px; }
.avatar-xs { width: 22px; height: 22px; font-size: 9.5px; border: 2px solid var(--surface); }
.avatar.more { background: var(--surface-3) !important; color: var(--muted) !important; }

.progress { position: relative; height: 6px; border-radius: 4px; background: var(--surface-3); overflow: visible; min-width: 60px; }
.progress-fill { height: 100%; border-radius: 4px; background: var(--ok-fill); }
.progress.late .progress-fill { background: var(--bad-fill); }
.progress-expected { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--text); opacity: .45; border-radius: 1px; }

/* callouts */
.callout { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 9px; font-size: 13px; margin: 0 0 12px; }
.callout .icon { margin-top: 2px; }
.callout.compact { margin: 0; padding: 8px 10px; }
.callout-info { background: var(--info-soft); color: var(--accent-strong); }
.callout-warn { background: var(--warn-soft); color: var(--warn); }

.empty { text-align: center; padding: 56px 24px; color: var(--muted); grid-column: 1 / -1; }
.empty-icon { color: var(--faint); margin-bottom: 12px; }
.empty h3 { color: var(--text-title); font-size: 17px; margin-bottom: 6px; }
.empty p { max-width: 440px; margin: 0 auto 16px; }

.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--surface-3); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── dialogs ────────────────────────────────────────────────────────────── */
dialog.modal {
  padding: 0; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); color: var(--text);
  box-shadow: var(--shadow-3); width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px);
  display: flex; flex-direction: column; overflow: hidden;
}
dialog.modal:not([open]) { display: none; }
dialog.modal::backdrop { background: var(--backdrop); backdrop-filter: blur(1.5px); }
dialog.modal-sm { width: min(420px, calc(100vw - 32px)); }
dialog.modal-lg { width: min(780px, calc(100vw - 32px)); }
dialog.modal-xl { width: min(1080px, calc(100vw - 32px)); }
.modal-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px 12px 22px; border-bottom: 1px solid var(--border); }
.modal-title { font-size: 17px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.modal-body { padding: 18px 22px; overflow-y: auto; flex: 1; }
.modal-footer { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 12px 22px; border-top: 1px solid var(--border); background: var(--surface-2); }
.modal-footer:empty { display: none; }
.confirm-text { font-size: 14px; }
/* the small capitals that open a section, in the blue of the links */
.section-title { display: flex; align-items: center; gap: 7px; margin: 20px 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .5px; color: var(--accent-strong); }
.section-title:first-child { margin-top: 0; }

/* ── toasts ─────────────────────────────────────────────────────────────── */
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 9000; display: flex; flex-direction: column; gap: 8px; width: min(400px, calc(100vw - 36px)); }
.toast {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 12px 12px 14px; border-radius: 11px;
  background: var(--surface); color: var(--text); border: 1px solid var(--border); box-shadow: 0 8px 26px rgba(0, 0, 0, .14);
  animation: toast-in .18s ease-out; border-left: 4px solid var(--accent);
}
.toast.leaving { opacity: 0; transform: translateY(6px); transition: all .18s; }
.toast-success { border-left-color: var(--ok-fill); }
.toast-warning { border-left-color: var(--warn-fill); }
.toast-danger { border-left-color: var(--bad); }
.toast-icon { margin-top: 1px; color: var(--accent); }
.toast-success .toast-icon { color: var(--ok); }
.toast-warning .toast-icon { color: var(--warn); }
.toast-danger .toast-icon { color: var(--bad); }
.toast-body { flex: 1; min-width: 0; font-size: 13.5px; }
.toast-title { font-weight: 700; margin-bottom: 2px; }
.toast-details { margin: 6px 0 0; padding-left: 16px; font-size: 12.5px; color: var(--text-2); }
.toast-action { margin-top: 8px; height: 26px; }
.toast-close { border: 0; background: transparent; color: var(--muted); opacity: .8; cursor: pointer; padding: 2px; }
.toast-close:hover { opacity: 1; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* ── menus ──────────────────────────────────────────────────────────────── */
.menu {
  position: fixed; z-index: 9500; min-width: 210px; max-width: 360px; padding: 5px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-2);
  max-height: calc(100vh - 16px); overflow-y: auto;    /* a long list (all the owners) scrolls */
}
.menu-item { display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px 10px; border: 0; background: none; border-radius: 8px; cursor: pointer; text-align: left; font-size: 13.5px; }
.menu-item:hover:not(:disabled), .menu-item:focus-visible { background: var(--surface-2); outline: none; }
.menu-item:disabled { opacity: .45; cursor: not-allowed; }
.menu-item.danger { color: var(--bad); font-weight: 550; }
.menu-item.danger:hover:not(:disabled) { background: var(--bad-soft); }
.menu-label { flex: 1; white-space: nowrap; }
.menu-hint { font-size: 11.5px; color: var(--muted); }
.menu-noicon, .menu-check { width: 15px; display: inline-flex; }
.menu-sep { height: 1px; background: var(--border); margin: 5px 4px; }
.menu-heading { padding: 7px 10px 4px; font-size: 11.5px; color: var(--muted); max-width: 320px;
                white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* the right-click menus (SYS-002 MLF-003.11): submenus, colours */
.menu-sub { z-index: 9501; max-height: calc(100vh - 16px); overflow-y: auto; }
.menu-more { display: inline-flex; margin-left: auto; color: var(--muted); }
.menu-item.has-sub[aria-expanded="true"] { background: var(--surface-2); }
.menu-swatch { width: 15px; height: 15px; border-radius: 4px; flex: none;
               box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }

/* ── typeahead ──────────────────────────────────────────────────────────── */
.ta { position: relative; flex: 1; min-width: 0; }
.ta-list { position: absolute; z-index: 50; left: 0; right: 0; top: calc(100% + 4px); max-height: 280px; overflow-y: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 9px; box-shadow: var(--shadow-2); padding: 4px; }
.ta-item { padding: 7px 9px; border-radius: 6px; cursor: pointer; font-size: 13.5px; }
.ta-item.active { background: var(--accent-soft); }
.ta-two { display: flex; justify-content: space-between; gap: 12px; }
.ta-two .muted { font-size: 12px; }
.ta-footer { border-top: 1px solid var(--border); margin-top: 4px; padding-top: 4px; }
.ta-use { display: flex; align-items: center; gap: 6px; width: 100%; padding: 7px 9px; border: 0; background: none; border-radius: 6px; cursor: pointer; color: var(--accent-strong); font-weight: 600; font-size: 13px; }
.ta-use:hover { background: var(--accent-soft); }
.ta-error { padding: 8px; color: var(--bad); font-size: 13px; }
.ta-note { padding: 8px 9px; color: var(--muted); font-size: 13px; }
.ta-note strong { display: block; color: var(--text); font-weight: 600; }
.ta-note-sub { display: block; margin-top: 2px; font-size: 12.5px; }

/* ── floating tip ───────────────────────────────────────────────────────── */
.floating-tip { position: fixed; z-index: 9800; pointer-events: none; max-width: 340px; padding: 9px 11px; border-radius: 9px; background: var(--tip-bg); color: var(--tip-text); font-size: 12.5px; box-shadow: var(--shadow-2); }
.tip strong { display: block; font-size: 13px; margin-bottom: 2px; }
.tip .muted { color: var(--tip-muted); }
.tip-bad { color: var(--tip-bad); font-weight: 600; }
.tip-crit { color: var(--tip-bad); }
.tip-note { color: var(--tip-note); margin-top: 3px; }

/* ── app header & pages ─────────────────────────────────────────────────── */
.app-header { position: sticky; top: 0; z-index: 100; background: var(--surface); border-bottom: 1px solid var(--border); }
.app-header-inner { max-width: 1320px; margin: 0 auto; padding: 0 28px; height: 56px; display: flex; align-items: center; gap: 22px; }
/* the name as SkillHub writes its own: «Skill» in ink, «Hub» in blue, the company small beside it */
.brand { display: inline-flex; align-items: baseline; color: var(--text); font-family: var(--font-title); font-weight: 650; font-size: 19px; letter-spacing: -.01em; text-decoration: none !important; white-space: nowrap; }
.brand b { color: var(--accent); font-weight: 700; }
.brand small { margin-left: 8px; font-family: var(--font); font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.brand.small { font-size: 15px; }
.app-nav { display: flex; gap: 2px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.app-nav::-webkit-scrollbar { display: none; }
.app-nav-link { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 10px; border-radius: 8px; color: var(--text-2); font-weight: 500; font-size: 14px; white-space: nowrap; text-decoration: none !important; }
/* the icons in the accent, the words in ink: the menu reads at a glance */
.app-nav-link .icon { color: var(--accent); }
.app-nav-link:hover { background: var(--bg); color: var(--text); }
.app-nav-link.active { background: var(--accent-soft); color: var(--accent-strong); }
.app-nav-link.active .icon { color: var(--accent-strong); }
.app-header-end { display: flex; align-items: center; gap: 8px; flex: none; }
/* the account, as SkillHub's user menu: initials, name, role */
.account-btn { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border: 1px solid transparent; border-radius: 999px; background: transparent; color: var(--text); cursor: pointer; }
.account-btn:hover, .account-btn[aria-expanded="true"] { background: var(--bg); border-color: var(--border); }
.account-avatar { width: 30px; height: 30px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent-strong); font-size: 12px; font-weight: 700; letter-spacing: .3px; }
.account-avatar.is-admin { background: var(--accent); color: var(--on-accent); }
.account-who { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.account-name { font-weight: 600; font-size: 13px; }
.account-role { font-size: 11px; color: var(--muted); }
.account-btn > .icon { color: var(--muted); }
@media (max-width: 900px) { .account-who { display: none; } }
/* the guide of one's role, in a tab of its own: SkillHub's .guida-btn, so the
   two apps put it in the same place with the same look. Narrow screens keep
   the book: the room goes to the plan. */
.guide-btn { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border: 1px solid var(--border); border-radius: 999px; color: var(--text-2); font-size: 12.5px; font-weight: 600; white-space: nowrap; text-decoration: none !important; flex: none; }
.guide-btn .icon { color: var(--muted); }
.guide-btn:hover { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--accent-strong); }
.guide-btn:hover .icon { color: var(--accent); }
@media (max-width: 900px) { .guide-btn .guide-txt { display: none; } }

.page { max-width: 1320px; margin: 0 auto; padding: 26px 28px 40px; }
.page-wide { max-width: none; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-tools { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.page-foot { display: flex; justify-content: space-between; margin-top: 36px; padding-top: 14px; border-top: 1px solid var(--border); color: var(--muted); font-size: 12px; }

/* ── the list of projects ───────────────────────────────────────────────── */
.project-list { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-1); overflow: hidden; }
.project-list > .empty, .project-list > .loading { padding: 28px 16px; }
.project-row { --sc: var(--faint); position: relative; display: grid; grid-template-columns: minmax(0, 2.6fr) minmax(150px, 1fr) minmax(170px, 1.1fr) 100px 32px; align-items: center; gap: 18px; padding: 12px 12px 12px 20px; border-top: 1px solid var(--border); }
.project-row::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--sc); }
.project-row.status-offerta { --sc: var(--warn-fill); }
.project-row.status-confermato { --sc: var(--ok-fill); }
.project-row.status-chiuso { --sc: var(--faint); }
.project-row.status-chiuso .pr-title a { color: var(--text-2); }
.project-row:not(.project-row-head):hover { background: var(--surface-2); }
.project-row-head { border-top: 0; padding-top: 9px; padding-bottom: 9px; background: var(--surface-2); font-size: 12px; font-weight: 600; color: var(--text-2); }
.project-row-head::before { display: none; }
.pr-main { min-width: 0; display: grid; gap: 3px; }
.pr-title { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pr-title a { font-size: 15px; font-weight: 650; color: var(--accent-strong); text-decoration: none !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.pr-title a.stretched::after { content: ""; position: absolute; inset: 0; }
.project-row:hover .pr-title a { text-decoration: underline !important; }
.pr-about { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--muted); font-size: 13px; white-space: nowrap; }
.pr-client { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; flex-shrink: 0; }
.pr-desc { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
/* --faint is for marks and icons: a text, even a quiet one, takes --muted (4.5:1) */
.pr-desc.faint { color: var(--muted); font-style: italic; }
.pr-owner { font-size: 12px; color: var(--muted); }
/* whose projects (SYS-002 LLF-002.1.3): lit while it filters; the words found (LLF-002.1.4) */
.whose-btn { max-width: 240px; }
.whose-btn > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.whose-btn.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-strong); }
mark.hit { background: var(--warn-soft); color: inherit; border-radius: 2px; box-shadow: 0 0 0 1px rgba(163, 83, 11, .25); }
.pr-when { display: grid; gap: 2px; font-size: 13px; font-weight: 600; }
.pr-when .muted { font-weight: 450; font-size: 12px; }
.pr-progress { display: grid; gap: 5px; font-size: 12px; }
.pr-num { display: grid; gap: 2px; text-align: right; font-size: 13px; }
.pr-work { font-weight: 700; }
.project-row .card-menu { margin-left: 0; }
@media (max-width: 900px) {
  .project-row { grid-template-columns: minmax(0, 1fr) auto 32px; gap: 6px 14px; }
  .project-row-head { display: none; }
  .pr-main { grid-column: 1 / 3; }
  .project-row .card-menu { grid-column: 3; grid-row: 1; }
  .pr-when, .pr-progress { grid-column: 1 / 2; }
  .pr-num { grid-column: 2 / 4; grid-row: 2; }
}
.project-card {
  position: relative; display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-1);
  transition: box-shadow .15s, transform .15s, border-color .15s;
}
.project-card:hover { box-shadow: 0 6px 18px rgba(11, 11, 11, .08); transform: translateY(-2px); border-color: var(--border-strong); }
.project-card.status-offerta { border-top: 3px solid var(--warn-fill); }
.project-card.status-confermato { border-top: 3px solid var(--ok-fill); }
.project-card.status-chiuso { border-top: 3px solid var(--faint); opacity: .92; }
.card-top { display: flex; align-items: center; gap: 6px; }
.card-menu { margin-left: auto; position: relative; z-index: 2; width: 28px; height: 28px; }
.card-title { font-size: 16.5px; }
.card-title a { color: var(--text); text-decoration: none !important; }
.card-title a.stretched::after { content: ""; position: absolute; inset: 0; border-radius: 12px; }
.card-client { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 600; }
.card-desc { color: var(--muted); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 0; margin: 0; }
.card-progress { display: grid; gap: 5px; margin-top: 4px; }
.card-progress-text { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; }
.card-stats { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--border); color: var(--muted); font-size: 12.5px; }
.card-stats span { display: inline-flex; align-items: center; gap: 5px; }
.card-owner { font-size: 12px; }

/* ── project page ───────────────────────────────────────────────────────── */
.project-page { display: grid; grid-template-rows: auto auto 1fr; height: 100vh; overflow: hidden; }
.topbar { display: flex; align-items: center; gap: 12px; height: 54px; padding: 0 14px; background: var(--surface); color: var(--text); border-bottom: 1px solid var(--border); min-width: 0; }
.topbar-title { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.project-name { font-size: 17px; font-weight: 650; color: var(--text-title); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 42vw; }
.project-client { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.status-btn { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px; border-radius: 999px; border: 0; font-size: 12px; font-weight: 600; cursor: pointer; }
.status-btn:hover:not(:disabled) { filter: brightness(.96); }
.status-btn:disabled { cursor: default; }
.status-btn.status-offerta { background: var(--warn-soft); color: var(--warn); }
.status-btn.status-confermato { background: var(--ok-soft); color: var(--ok); }
.status-btn.status-chiuso { background: var(--surface-2); color: var(--text-2); box-shadow: inset 0 0 0 1px var(--border); }
.status-btn.contract-btn { background: var(--accent-soft); color: var(--accent-strong); }
.status-btn.contract-btn.unset { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1px var(--border-strong); }
.topbar-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.topbar-sep { width: 1px; height: 22px; background: var(--border); margin: 0 4px; }

.toolbar { display: flex; align-items: center; gap: 14px; padding: 8px 14px; background: var(--surface-2); border-bottom: 1px solid var(--border); flex-wrap: wrap; min-height: 50px; }
.toolbar-group { display: flex; align-items: center; gap: 6px; }
.toolbar-summary { margin-left: auto; display: flex; align-items: center; gap: 16px; color: var(--muted); font-size: 12.5px; font-weight: 600; flex-wrap: wrap; }
.toolbar-summary > span { display: inline-flex; align-items: center; gap: 5px; }
/* the period on screen: two days and, once chosen, the way back to the whole plan */
.period-pick { display: inline-flex; align-items: center; gap: 3px; height: 30px; padding: 0 3px 0 4px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface); color: var(--muted); }
.period-pick.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-strong); }
.period-pick .input { width: auto; height: 24px; padding: 0 4px; border: 0; background: transparent; font-size: 12.5px; font-weight: 600; color: var(--text); }
.period-pick .input:focus { box-shadow: none; background: var(--surface); border-radius: 5px; }
/* room for the year in Plus Jakarta Sans, also where Firefox spaces the slashes
   ("27 / 07 / 2026"): 108px cut it there */
.period-pick .period-date { width: 124px; }
.period-pick .period-day { width: 56px; text-align: right; }
.period-d { font-size: 12px; font-weight: 600; }
.period-sep { font-size: 12px; }
.period-pick .btn-icon { width: 24px; height: 24px; border-radius: 6px; color: inherit; }
.period-pick:not(.on) { padding-right: 4px; }
.period-pick .period-d { padding-left: 4px; }
.summary-progress .progress { width: 70px; }

.workspace { display: grid; grid-template-columns: 270px 1fr; min-height: 0; overflow: hidden; }
.chart-host { min-width: 0; min-height: 0; position: relative; background: var(--surface); }
.chart-loading { position: absolute; inset: 0; z-index: 20; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: color-mix(in srgb, var(--surface) 88%, transparent); color: var(--muted); font-weight: 600; }
.sidebar { background: var(--surface-2); border-right: 1px solid var(--border); overflow-y: auto; padding: 8px 0 24px; }
.side-section { padding: 2px 8px 6px; }
.side-title { display: flex; align-items: center; justify-content: space-between; }
.side-title .btn-icon { width: 28px; height: 28px; }
.side-head { display: flex; align-items: center; gap: 7px; flex: 1; height: 32px; padding: 0 6px; border: 0; background: none; border-radius: 7px; cursor: pointer; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--accent-strong); }
.side-head:hover { background: var(--surface-3); color: var(--text); }
.side-count { margin-left: 2px; font-size: 11px; background: var(--surface-3); border-radius: 9px; padding: 0 6px; }
.side-list { list-style: none; margin: 0; padding: 0; }
.side-item { display: flex; align-items: center; gap: 9px; width: 100%; padding: 6px 8px; border: 0; background: none; border-radius: 8px; text-align: left; cursor: pointer; }
.side-item:hover:not(:disabled) { background: var(--surface-3); }
/* a disabled item lets the right click through to its row, which opens the menu (MLF-003.11) */
.side-item:disabled { cursor: default; color: inherit; pointer-events: none; }
/* who left the project: still listed, with the work they did (MLF-005.7) */
.side-item.left { opacity: .62; }
.side-item.left .avatar { filter: grayscale(1); }
.side-group { padding: 8px 8px 2px; font-size: 11.5px; font-weight: 700; color: var(--accent-strong); text-transform: uppercase; letter-spacing: .3px; }
.side-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.side-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-sub { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-figure { display: flex; flex-direction: column; align-items: flex-end; font-size: 11.5px; font-weight: 600; }
.side-dot { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.ms-dot { width: 10px; height: 10px; transform: rotate(45deg); border-radius: 2px; flex-shrink: 0; margin: 0 1px; }
.ko-dot { width: 16px; height: 16px; border-radius: 0 7px 7px 0; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: var(--accent); color: var(--on-accent); margin-left: -3px; }
.side-empty { padding: 4px 10px 6px; font-size: 12.5px; color: var(--muted); }
.side-notes { margin: 0; padding: 0 10px 0 26px; font-size: 12px; color: var(--warn); }
.side-notes li + li { margin-top: 4px; }
.side-action { padding: 8px 6px 2px; }
.side-line { margin: 0; padding: 2px 10px 6px; font-size: 11.5px; line-height: 1.4; color: var(--muted); }
.side-action .side-empty { padding: 0 4px 8px; }

/* ── the Gantt ──────────────────────────────────────────────────────────── */
.gantt { display: flex; height: 100%; min-height: 0; user-select: none; }
.g-left { position: relative; flex-shrink: 0; width: 300px; display: flex; flex-direction: column; background: var(--surface); border-right: 1px solid var(--border-strong); z-index: 3; }
.g-left-head { display: flex; align-items: flex-end; justify-content: space-between; height: 52px; padding: 0 12px 7px; border-bottom: 1px solid var(--border-strong); background: var(--surface-2); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); flex-shrink: 0; }
.g-left-body { position: relative; flex: 1; overflow: hidden; }
.g-left-inner { position: relative; will-change: transform; }
.g-left-resizer { position: absolute; top: 0; right: -3px; width: 6px; height: 100%; cursor: col-resize; z-index: 5; }
.g-left-resizer:hover { background: rgba(42,120,214,.25); }
.g-row { position: absolute; left: 0; right: 0; height: var(--row); display: flex; align-items: center; gap: 8px; padding-right: 10px; border-bottom: 1px solid var(--border); cursor: default; }
.g-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.g-row-name { display: flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; }
.g-row-title { overflow: hidden; text-overflow: ellipsis; }
.g-row-meta { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-row-color { width: 4px; height: 26px; border-radius: 2px; flex-shrink: 0; }
.g-row-people { display: flex; align-items: center; flex-shrink: 0; }
.g-row-people .avatar-xs + .avatar-xs { margin-left: -6px; }
.g-missing { margin-left: 4px; font-size: 10.5px; font-weight: 700; color: var(--warn); background: var(--warn-soft); border-radius: 8px; padding: 0 5px; }
.g-row-act { cursor: pointer; }
.gantt.editable .g-row-act { cursor: grab; }
.g-row-act:hover .g-row-title { color: var(--accent-strong); }
.g-row-group { background: linear-gradient(90deg, color-mix(in srgb, var(--gc) 9%, transparent), transparent 70%); border-left: 3px solid var(--gc); cursor: pointer; }
.g-row-group .g-row-name { font-weight: 700; }
.g-row-ms { padding-left: 12px; color: var(--ms); background: rgba(247,37,133,.04); }
.g-row-ms .g-row-name { color: var(--ms); }
.g-row.lifted { z-index: 10; background: var(--surface); box-shadow: var(--shadow-2); opacity: .95; }
.g-row.drop { box-shadow: inset 0 0 0 2px var(--accent); background: var(--accent-soft); }
.g-row.drop-before { box-shadow: inset 0 3px 0 var(--accent); }
.g-row.drop-after { box-shadow: inset 0 -3px 0 var(--accent); }
/* a milestone's own row (SYS-002 MLF-003.9): where activities are dropped to join it */
.g-row-milestone { padding-left: 34px; background: rgba(247,37,133,.025); cursor: pointer; }
.g-row-milestone:hover .g-row-title { color: var(--accent-strong); }
.g-row-diamond { width: 11px; height: 11px; transform: rotate(45deg); border-radius: 2px; background: var(--mc); box-shadow: 0 1px 2px rgba(0,0,0,.25); flex-shrink: 0; margin: 0 3px; }
.g-ms-mark { width: 8px; height: 8px; transform: rotate(45deg); border-radius: 1px; background: var(--mc); flex-shrink: 0; margin: 0 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
.g-row.ms-member { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.g-row.late .g-row-color { box-shadow: 0 0 0 2px var(--bad-soft); }
.g-chevron { display: inline-flex; width: 22px; height: 22px; align-items: center; justify-content: center; border: 0; border-radius: 5px; background: none; color: var(--gc); cursor: pointer; flex-shrink: 0; }
.g-chevron:hover { background: var(--tint); }
.g-flag { display: inline-flex; align-items: center; gap: 2px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; border-radius: 6px; padding: 0 5px; line-height: 16px; flex-shrink: 0; }
.g-flag.late { background: var(--bad-soft); color: var(--bad); }
.g-flag.critical { color: var(--critical); padding: 0 2px; display: none; }
.gantt.show-critical .g-flag.critical { display: inline-flex; }

.g-right { position: relative; flex: 1; overflow: auto; outline: none; }
.g-head { position: sticky; top: 0; z-index: 4; height: 52px; background: var(--surface-2); border-bottom: 1px solid var(--border-strong); }
.g-months { position: relative; height: 26px; border-bottom: 1px solid var(--border); }
.g-month { position: absolute; top: 0; height: 100%; padding: 0 7px; display: flex; align-items: center; font-size: 11.5px; font-weight: 700; color: var(--accent-strong); border-left: 1px solid var(--border); white-space: nowrap; overflow: hidden; }
.g-days { position: relative; height: 26px; }
.g-day { position: absolute; top: 0; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 10.5px; color: var(--muted); }
.g-day.wide-label { justify-content: flex-start; padding-left: 2px; overflow: visible; white-space: nowrap; z-index: 1; }
.g-day.off { background: var(--off-head); color: var(--off-head-text); }
.g-day.exception { box-shadow: inset 0 -2px 0 var(--accent); }
.g-day.today { background: var(--today); color: var(--on-accent); font-weight: 700; border-radius: 4px; }
.gantt.editable .g-day { cursor: pointer; }
.gantt.editable .g-day:hover { background: var(--accent-soft); color: var(--accent-strong); }

.g-body { position: relative; }
.gantt.period .g-body { overflow: hidden; }        /* bars end at the edges of the chosen period */
.g-bg, .g-stripes, .g-bars, .g-arrows { position: absolute; top: 0; left: 0; }
.g-bg { z-index: 0; }
.g-off { position: absolute; top: 0; bottom: 0; background: var(--off-body); }
.g-off.exception { background: repeating-linear-gradient(135deg, var(--off-exception) 0 4px, transparent 4px 8px); }
.g-month-line { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--border); }
.g-stripes { z-index: 1; pointer-events: none; }
.g-stripe { position: absolute; left: 0; right: 0; border-bottom: 1px solid var(--border); }
.g-stripe.group { background: rgba(69,123,157,.04); }
.g-stripe.ms { background: rgba(247,37,133,.025); }
.g-hover { position: absolute; left: 0; right: 0; background: rgba(42,120,214,.05); pointer-events: none; z-index: 1; }
.g-arrows { z-index: 2; pointer-events: none; overflow: visible; }
.g-arrow { fill: none; stroke: var(--arrow); stroke-width: 1.4; }
.g-arrow.crit { stroke: var(--critical); stroke-width: 1.8; }
.g-arrowhead { fill: var(--arrow); }
.g-arrowhead.crit { fill: var(--critical); }
/* an arrow is hit by a wider invisible line, where no bar covers it (MLF-003.11) */
.g-arrow-hit { fill: none; stroke: transparent; stroke-width: 9; pointer-events: stroke; }
.g-arrow-hit:hover + .g-arrow, .g-arrow:has(+ .g-arrow-hit:hover) { stroke: var(--accent); }
/* the layer of the bars lets the pointer through where there is no bar: to an arrow, or the empty chart */
.g-bars { z-index: 3; pointer-events: none; }
.g-bars > .g-bar, .g-bars > .g-outlabel, .g-bars > .g-summary, .g-bars > .g-ms, .g-bars > .g-baseline { pointer-events: auto; }
.g-bar {
  position: absolute; display: flex; align-items: center; border-radius: 6px; overflow: hidden; cursor: pointer;
  box-shadow: var(--bar-ring); transition: box-shadow .12s, filter .12s;
}
.gantt.editable .g-bar { cursor: grab; }
.g-bar:hover, .g-bar:focus-visible { box-shadow: 0 3px 10px rgba(11,11,11,.25); filter: brightness(1.05); z-index: 5; }
.g-bar.moving { opacity: .88; box-shadow: var(--shadow-2); z-index: 20; }
.g-bar-progress { position: absolute; left: 0; bottom: 0; height: 5px; background: rgba(0,0,0,.28); pointer-events: none; }
.g-bar-label { position: relative; padding: 0 9px; font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
/* a name too long for one line goes on two, smaller (barName in geometry.js) */
.g-bar-label.two { font-size: 11px; line-height: 11px; }
.g-bar-label.two > span { display: block; overflow: hidden; text-overflow: ellipsis; }
.g-handle { position: absolute; top: 0; bottom: 0; width: 8px; cursor: ew-resize; z-index: 2; }
.g-handle-l { left: 0; }
.g-handle-r { right: 0; }
.g-bar:hover .g-handle { background: rgba(255,255,255,.28); }
.g-outlabel { position: absolute; transform: translateY(-50%); font-size: 12px; font-weight: 600; color: var(--text); white-space: nowrap; z-index: 3; cursor: pointer; }
/* at the end of a chosen period the name goes before the bar, over the arrow that comes in, or is cut */
.g-outlabel.before { transform: translate(-100%, -50%); text-shadow: 0 0 3px var(--halo), 0 0 3px var(--halo); }
.g-outlabel.cut { overflow: hidden; text-overflow: ellipsis; }
.gantt.editable .g-outlabel { cursor: grab; }
/* a bar too short to hold two handles and a grip: the handles go outside it */
.g-bar.slim { overflow: visible; }
.g-bar.slim .g-handle { width: 9px; border-radius: 3px; }
.g-bar.slim .g-handle-l { left: -10px; }
.g-bar.slim .g-handle-r { right: -10px; }
.g-bar.slim:hover .g-handle, .g-bar.slim:focus-visible .g-handle { background: color-mix(in srgb, var(--accent) 35%, transparent); }
.g-bar:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.g-bar.held { outline: 2px dashed var(--accent); outline-offset: 2px; opacity: .75; }
.gantt.editable .g-bar, .gantt.editable .g-summary, .gantt.editable .g-ms, .gantt.editable .g-outlabel,
.gantt.editable .g-row-act, .gantt.editable .g-row-group { touch-action: none; }
.gantt.show-critical .g-bar.critical { box-shadow: 0 0 0 2px var(--critical), 0 1px 2px rgba(11,11,11,.2); }
.g-bar.late::after { content: ""; position: absolute; top: 3px; right: 3px; width: 7px; height: 7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--bad); }
/* not done: the project was closed before it started (SYS-002 MLF-002.8); draw.js draws it alike */
.g-bar.not-done {
  opacity: .55; box-shadow: none;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.55) 0 4px, transparent 4px 9px) !important;
}
.g-bar.not-done .g-bar-label { text-decoration: line-through; }
/* the closing dialog (MLF-002.8): what the day the work ended makes of each activity */
.closing-sections { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 10px; }
.closing-section h3 { margin: 0 0 2px; font-size: 13px; }
.closing-section p { margin: 0; color: var(--muted); font-size: 13px; }
.closing-items { margin: 4px 0 0; padding-left: 18px; font-size: 13px; }
.g-summary { position: absolute; background: var(--gc); border-radius: 2px; cursor: default; opacity: .9; }
.g-summary::before, .g-summary::after { content: ""; position: absolute; bottom: -6px; border: 6px solid transparent; border-top: 6px solid var(--gc); }
.g-summary::before { left: -6px; border-right: 0; border-left-width: 6px; transform: translateX(6px); }
.g-summary::after { right: 0; border-left: 0; }
.g-summary-fill { height: 100%; background: rgba(0,0,0,.25); }
.gantt.editable .g-summary { cursor: grab; }
.g-summary.collapsed { opacity: .6; }
.g-ms { position: absolute; display: flex; align-items: center; gap: 6px; transform: translate(-7px, -50%); cursor: pointer; z-index: 4; white-space: nowrap; }
.gantt.editable .g-ms { cursor: grab; }
.g-ms-diamond { width: 14px; height: 14px; transform: rotate(45deg); border-radius: 2px; box-shadow: 0 1px 3px rgba(0,0,0,.25); flex-shrink: 0; }
.g-ms-label { font-size: 12px; font-weight: 700; color: var(--text); text-shadow: 0 0 3px var(--halo), 0 0 3px var(--halo); }
/* at the end of a chosen period the name goes before the diamond (still on the day), or is cut */
.g-ms.before { flex-direction: row-reverse; transform: translate(calc(7px - 100%), -50%); }
.g-ms.cut .g-ms-label { overflow: hidden; text-overflow: ellipsis; }
.g-ms-line { position: absolute; top: 0; width: 0; border-left: 2px dashed; opacity: .35; pointer-events: none; z-index: 1; }
.g-today { position: absolute; top: 0; width: 2px; margin-left: -1px; background: var(--today); z-index: 4; pointer-events: none; }
/* the kick-off (MLF-003.13): a line where its day starts, under the bars; its flag on that day in the header */
.g-kickoff { position: absolute; top: 0; width: 0; border-left: 2px solid var(--accent); opacity: .7; z-index: 2; pointer-events: none; }
.g-kickoff-flag { position: absolute; top: 3px; height: 20px; z-index: 2; display: inline-flex; align-items: center; gap: 3px; padding: 0 8px 0 5px; border: 0; border-radius: 0 10px 10px 0; background: var(--accent); color: var(--on-accent); font: 700 10.5px/1 var(--font); letter-spacing: .02em; white-space: nowrap; cursor: pointer; }
.gantt.editable .g-kickoff-flag { cursor: grab; }
.gantt.dragging .g-kickoff-flag { cursor: grabbing; }
.g-kickoff-flag:focus-visible { outline: none; box-shadow: var(--focus); }
.g-today-label { position: absolute; top: 2px; left: 4px; font-size: 10px; font-weight: 700; color: var(--today); background: color-mix(in srgb, var(--surface) 85%, transparent); padding: 0 3px; border-radius: 3px; }
.g-ghost { position: absolute; border-radius: 6px; background: rgba(42,120,214,.15); border: 2px dashed var(--accent); pointer-events: none; z-index: 6; }
.gantt.dragging .g-bar:not(.moving) { transition: none; }
.g-ms-span { position: absolute; height: 3px; margin-top: -1.5px; background: var(--mc); opacity: .45; border-radius: 2px; pointer-events: none; z-index: 2; }
.g-ms-span::before { content: ""; position: absolute; left: 0; top: -4px; width: 2px; height: 11px; background: var(--mc); border-radius: 1px; }
.g-ms:focus-visible { outline: none; }
.g-ms:focus-visible .g-ms-diamond { box-shadow: 0 0 0 3px var(--accent); }
/* hovering a milestone: the activities it holds stand out, the others step back */
.gantt.ms-focus .g-bar:not(.ms-member) { opacity: .4; }
.g-bar.ms-member { box-shadow: 0 0 0 2px var(--text), 0 3px 10px rgba(11,11,11,.25); z-index: 6; }
/* a person's activities, shown from their menu until the chip says stop (MLF-003.11) */
.gantt.pin-focus .g-bar:not(.pin-member), .gantt.pin-focus .g-outlabel:not(.pin-member) { opacity: .3; }
.g-bar.pin-member { box-shadow: 0 0 0 2px var(--accent), 0 3px 10px rgba(11,11,11,.25); z-index: 6; }
.g-row.pin-member { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.g-row-people .avatar[data-resource], .g-row-people .avatar[data-more] { cursor: context-menu; }

/* ── activity dialog ────────────────────────────────────────────────────── */
.note-row { display: flex; align-items: center; gap: 7px; margin-top: -6px; color: var(--muted); }
.people-pick { display: grid; gap: 2px; max-height: 240px; overflow-y: auto; border: 1px solid var(--border); border-radius: 9px; padding: 4px; }
/* lists to tick activities: what a milestone holds, what a person works on */
.ms-pick-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ms-pick-head .input { max-width: 220px; }
.ms-pick { display: grid; gap: 2px; max-height: 260px; overflow-y: auto; border: 1px solid var(--border); border-radius: 9px; padding: 4px; margin-top: 6px; }
.ms-pick-row { display: flex; align-items: center; gap: 9px; padding: 5px 8px; border-radius: 7px; cursor: pointer; }
.ms-pick-row:hover { background: var(--surface-2); }
.ms-pick-row.on { background: var(--accent-soft); }
.ms-pick-row[hidden] { display: none; }
.ms-pick-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ms-pick-name > span:first-child { font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nowrap { white-space: nowrap; }
.person-row { display: flex; align-items: center; gap: 9px; padding: 5px 8px; border-radius: 7px; cursor: pointer; }
.person-row:hover { background: var(--surface-2); }
.person-row.on { background: var(--accent-soft); }
.person-row input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--accent); }
.person-name { flex: 1; display: flex; flex-direction: column; font-size: 13.5px; font-weight: 600; min-width: 0; }
.needs-row { display: flex; align-items: flex-end; gap: 14px; margin-bottom: 12px; flex-wrap: wrap; }
.needs-row .field { width: auto; }
.needs-hint { flex: 1; min-width: 200px; padding-bottom: 6px; }
.skills-editor { display: grid; gap: 8px; }
.skill-list { display: grid; gap: 5px; }
.skill-row { display: flex; align-items: center; gap: 8px; padding: 4px 6px 4px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); }
.skill-row select { width: 150px; flex: 0 0 auto; }
.skill-name { flex: 1; display: flex; align-items: center; gap: 6px; font-weight: 600; min-width: 0; }
.deps { display: grid; gap: 8px; }
.dep-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.dep-row { display: flex; align-items: center; gap: 7px; padding: 4px 6px 4px 10px; border: 1px solid var(--border); border-radius: 8px; }
.dep-kind { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--muted); }
.dep-label { flex: 1; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dep-add { display: flex; align-items: center; gap: 7px; }
.dep-add select { flex: 1; }
.linked-note { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); }
.person-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 16px; }
.person-head-link { margin-left: auto; }

/* ── suggestions ────────────────────────────────────────────────────────── */
.sugg-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--border); }
.sugg-when { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.sugg-skills { display: flex; flex-wrap: wrap; gap: 5px; }
.cands { display: grid; gap: 10px; }
.cand { display: grid; grid-template-columns: minmax(220px, 1.1fr) 1.5fr minmax(220px, 1fr) auto; gap: 14px; align-items: center; padding: 12px 14px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface); }
.cand:hover { border-color: var(--border-strong); box-shadow: var(--shadow-1); }
.cand-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.cand-name { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.cand-skills { display: flex; flex-wrap: wrap; gap: 5px; }
.cover { display: inline-flex; height: 22px; align-items: center; padding: 0 8px; border-radius: 11px; font-size: 12px; font-weight: 600; }
.cover-ok { background: var(--ok-soft); color: var(--ok); }
.cover-info { background: var(--info-soft); color: var(--info); }
.cover-warning { background: var(--warn-soft); color: var(--warn); }
.cover-bad { background: var(--bad-soft); color: var(--bad); }
.cover-neutral { background: var(--surface-3); color: var(--muted); }
.cand-load { display: grid; gap: 4px; font-size: 12.5px; }
.fit { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.fit-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); flex-shrink: 0; }
.fit-ok .fit-dot { background: var(--ok-fill); }
.fit-warning .fit-dot { background: var(--warn-fill); }
.fit-bad .fit-dot { background: var(--bad-fill); }
.load-warn { display: inline-flex; align-items: center; gap: 5px; color: var(--bad); font-weight: 600; }
.load-ok { display: inline-flex; align-items: center; gap: 5px; color: var(--ok); font-weight: 600; }
.load-away-note { display: inline-flex; align-items: center; gap: 5px; color: var(--info); }
.cand-actions { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
/* "Assign at [100] %": one control that reads as a sentence, the share editable in it */
.cand-assign { display: flex; align-items: stretch; }
.cand-assign .btn { border-radius: 7px 0 0 7px; padding-right: 8px; white-space: nowrap; }
.cand-share-box { display: inline-flex; align-items: center; gap: 2px; height: 30px; padding: 0 8px 0 2px; border: 1px solid var(--accent); border-left: 0; border-radius: 0 7px 7px 0; background: var(--surface); color: var(--accent-strong); font-size: 12.5px; font-weight: 700; cursor: text; }
.cand-share { width: 46px; height: 26px; padding: 0 2px; border: 0; background: transparent; text-align: right; font-weight: 700; font-size: 13px; color: var(--accent-strong); }
.cand-share:focus { box-shadow: none; background: var(--accent-soft); border-radius: 5px; }
.cand-share.invalid { color: var(--bad); background: var(--bad-soft); border-radius: 5px; }
.cand-share:disabled { background: transparent; color: var(--muted); }
.cand-done { display: inline-flex; align-items: center; gap: 6px; color: var(--ok); font-weight: 700; font-size: 13px; }

/* ── risk ───────────────────────────────────────────────────────────────── */
.risk { display: grid; gap: 10px; }
.risk-summary { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.risk-card { display: grid; gap: 7px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 11px; background: var(--surface); }
.risk-card.risky { border-left: 4px solid var(--bad); }
.risk-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.risk-people { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.risk-people .person-chip.fit-ok { background: var(--ok-soft); }
.risk-people .person-chip.fit-warning { background: var(--warn-soft); }
.risk-people .person-chip.fit-bad { background: var(--bad-soft); }
.risk-fine summary { cursor: pointer; font-weight: 600; color: var(--muted); padding: 6px 0; }
.risk-fine[open] { display: grid; gap: 8px; }

/* ── history ────────────────────────────────────────────────────────────── */
.history-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.history { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.history-item { border-radius: 8px; }
.history-item.reverted .history-what { text-decoration: line-through; color: var(--muted); }
.history-line { display: grid; grid-template-columns: 124px 150px 1fr auto auto auto; gap: 10px; align-items: center; width: 100%; padding: 8px 10px; border: 0; background: none; border-radius: 8px; text-align: left; cursor: pointer; font-size: 13px; }
.history-line:hover { background: var(--surface-2); }
.history-when { color: var(--muted); font-variant-numeric: tabular-nums; }
.history-who { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.history-what { min-width: 0; }
.history-detail { padding: 0 12px 8px 144px; font-size: 12.5px; }
.history-detail ul { margin: 0; padding-left: 16px; }

/* ── draft wizard ───────────────────────────────────────────────────────── */
.draft-inputs { display: grid; grid-template-columns: 1fr 1.3fr; gap: 16px; align-items: stretch; }
.dropzone { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 190px; padding: 20px; border: 2px dashed var(--border-strong); border-radius: 12px; color: var(--muted); text-align: center; cursor: pointer; background: var(--surface-2); }
.dropzone:hover, .dropzone.over { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-strong); }
.dropzone.has-file { border-style: solid; border-color: var(--ok); color: var(--ok); }
.working { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 60px 20px; text-align: center; }
.draft-top { display: grid; grid-template-columns: 1fr 200px 1fr; gap: 14px; align-items: start; margin-bottom: 14px; }
.draft-top.no-name { grid-template-columns: 200px 1fr; }
.draft-top .draft-about { grid-column: 1 / -1; }
.draft-summary { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 9px 12px; background: var(--surface-2); border-radius: 9px; margin-bottom: 12px; font-size: 13px; }
.draft-phases { display: grid; gap: 14px; }
.draft-phase { border: 1px solid var(--border); border-radius: 11px; overflow: hidden; }
.draft-phase.off { opacity: .55; }
.draft-phase-head { display: flex; align-items: center; gap: 9px; padding: 8px 12px; background: var(--surface-2); border-bottom: 1px solid var(--border); font-weight: 700; }
.draft-phase-head .input { max-width: 380px; font-weight: 700; }
.draft-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.draft-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); padding: 6px 8px; }
.draft-table td { padding: 5px 8px; border-top: 1px solid var(--border); vertical-align: middle; }
.draft-table tr.off td { opacity: .5; }
.draft-table td:first-child, .draft-table th:first-child { width: 34px; }
.draft-skills { max-width: 280px; }
.draft-skills .skill-chip { margin: 1px 3px 1px 0; }

/* ── people load ────────────────────────────────────────────────────────── */
.legend { display: flex; flex-wrap: wrap; gap: 14px; margin: 4px 0 14px; font-size: 12.5px; color: var(--muted); }
.legend-item { display: inline-flex; align-items: center; gap: 6px; }
.legend-swatch { width: 16px; height: 12px; border-radius: 3px; border: 1px solid var(--border); }
.load-wrap { overflow: auto; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; max-height: calc(100vh - 260px); }
.load-table { border-collapse: separate; border-spacing: 0; font-size: 12.5px; }
.load-table th, .load-table td { border-bottom: 1px solid var(--border); }
.load-table thead th { position: sticky; top: 0; z-index: 2; background: var(--surface-2); padding: 6px 4px; font-weight: 700; color: var(--muted); }
.load-week { min-width: 58px; text-align: center; }
.load-week small { display: block; font-weight: 500; color: var(--muted); }
.load-person { position: sticky; left: 0; z-index: 1; background: var(--surface); text-align: left; padding: 6px 12px; min-width: 240px; display: flex; align-items: center; gap: 9px; border-right: 1px solid var(--border); }
thead .load-person { z-index: 3; background: var(--surface-2); }
.load-name { display: flex; flex-direction: column; min-width: 0; }
.load-name small { font-weight: 450; }
.load-cell { text-align: center; padding: 6px 2px; height: 42px; position: relative; font-variant-numeric: tabular-nums; }
.load-cell .icon { position: absolute; top: 3px; right: 3px; }
.load-pct { display: block; font-weight: 700; }
.load-offer { display: block; font-size: 10.5px; color: var(--offer); }
.load-free { background: var(--load-free); }
.load-low { background: var(--load-low); }
.load-mid { background: var(--load-mid); }
.load-full { background: var(--load-full); }
.load-over { background: var(--load-over); color: var(--load-over-text); }
.has-offer { background-image: repeating-linear-gradient(135deg, rgba(183,121,31,.18) 0 3px, transparent 3px 7px); }
/* the days away, from abHR (docs/integrazione-abhr.md): hatched the other way, in the colour of information */
.has-away { background-image: repeating-linear-gradient(45deg, rgba(28,92,171,.16) 0 3px, transparent 3px 7px); }
.load-away { display: block; font-size: 10.5px; color: var(--info); }

/* ── trash, admin, sharing, tables ──────────────────────────────────────── */
.trash-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.trash-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 11px; }
.trash-main { flex: 1; display: flex; flex-direction: column; }
.admin-section { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 18px; margin-bottom: 14px; box-shadow: var(--shadow-1); }
.admin-section h2 { margin-bottom: 8px; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--text-2); padding: 8px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.table td { padding: 8px; border-bottom: 1px solid var(--border); }
.table tr.inactive td { color: var(--muted); }
.share-add { display: flex; gap: 8px; margin-bottom: 10px; }
.share-add select { width: 200px; flex: 0 0 auto; }
.share-list { display: grid; gap: 2px; }
.share-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 4px; border-bottom: 1px solid var(--border); }
.share-row:last-child { border-bottom: 0; }
.share-who { display: flex; flex-direction: column; min-width: 0; }
.share-who .muted { font-size: 12.5px; }
.share-link { display: grid; gap: 10px; }

/* ── login ──────────────────────────────────────────────────────────────── */
.login-screen {
  min-height: 100%; display: flex; align-items: center; justify-content: center; padding: 34px 20px;
  background:
    radial-gradient(1000px 620px at 14% -8%, rgba(42, 120, 214, .11), rgba(42, 120, 214, 0) 62%),
    radial-gradient(820px 620px at 96% 108%, rgba(27, 175, 122, .09), rgba(27, 175, 122, 0) 58%),
    var(--bg);
}
.login-shell { width: min(980px, 100%); display: grid; grid-template-columns: 1fr 396px; gap: 60px; align-items: center; }
.login-logo { display: flex; align-items: center; gap: 11px; font-family: var(--font-title); font-size: 25px; font-weight: 600; letter-spacing: -.01em; color: var(--text); }
.login-logo b { color: var(--accent); font-weight: 750; }
.login-logo.compact { display: none; margin-bottom: 22px; }
.login-pitch h1 { font-size: 36px; line-height: 1.18; font-weight: 600; letter-spacing: -.02em; margin: 24px 0 28px; }
.login-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.login-points li { display: grid; grid-template-columns: 36px 1fr; gap: 13px; align-items: start; font-size: 13.5px; color: var(--text-2); line-height: 1.45; }
.login-points .ic { width: 36px; height: 36px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--accent); }
.login-points b { display: block; font-size: 14px; font-weight: 620; margin-bottom: 2px; color: var(--text); }
.login-card { width: min(420px, 100%); padding: 30px 28px 24px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); box-shadow: 0 20px 46px rgba(11, 11, 11, .10), 0 2px 6px rgba(11, 11, 11, .04); display: flex; flex-direction: column; gap: 10px; }
.login-card h2 { font-size: 20px; font-weight: 650; }
.login-sub { color: var(--text-2); font-size: 13.5px; margin: -6px 0 10px; }
.login-title { font-size: 20px; }
.login-google { min-height: 44px; display: flex; justify-content: center; }
@media (max-width: 900px) {
  .login-shell { grid-template-columns: 1fr; max-width: 420px; gap: 0; }
  .login-pitch { display: none; }
  .login-logo.compact { display: flex; }
}
.login-error { color: var(--bad); font-weight: 600; margin: 8px 0 0; }
.login-dev { width: 100%; margin-top: 12px; padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); display: grid; gap: 10px; text-align: left; }
.login-dev-title { display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--warn); }
.login-dev .row { flex-wrap: nowrap; }

/* ── narrow screens ─────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .hide-narrow { display: none; }
  .workspace { grid-template-columns: 220px 1fr; }
  .cand { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .workspace { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .app-nav-link span { display: none; }
  .app-header-inner { gap: 12px; padding: 0 12px; }
  .brand small { display: none; }
  .form-grid, .draft-inputs, .draft-top, .draft-top.no-name { grid-template-columns: 1fr; }
  .toolbar-summary { margin-left: 0; }
  .search { width: 100%; }
}
@media print {
  .topbar, .toolbar, .sidebar, .toasts, .app-header { display: none !important; }
  /* the screen's blues print black: the titles and the bold words like the
     text, the labels of the sections like the muted text */
  h1, h2, b, strong { color: inherit; }
  .empty h3, .dash-head h2 { color: var(--text); }
  .section-title, .report-preview h4, .dash-subhead, .follow-heading { color: var(--muted); }
  ol > li::marker { color: inherit; }
}

/* ── assistance (SYS-002 HLF-010) and baseline (MLF-003.8) ──────────────── */
.chip-good { color: var(--ok); font-weight: 700; }
.chip-neutral { color: var(--text-2); font-weight: 700; }   /* the end moved with the kick-off, not with the work */
.link-btn { border: 0; background: none; padding: 0 2px; color: var(--accent-strong); font-weight: 600; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.btn-icon.tiny { width: 20px; height: 20px; }
.spinner.small { width: 18px; height: 18px; border-width: 2px; }

/* the baseline under a bar: where the activity was promised */
.g-baseline { position: absolute; height: 4px; border-radius: 2px; background: var(--faint); opacity: .75; cursor: help; }
.g-baseline::after { content: ""; position: absolute; left: 0; right: 0; top: -4px; bottom: -4px; }
.g-baseline:hover { opacity: 1; }
.g-baseline.late { background: var(--baseline-late); }
.g-baseline.early { background: var(--baseline-early); }

/* durations from history, under a duration */
.history-hint { display: inline-flex; align-items: center; gap: 5px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.history-hint .icon { color: var(--faint); }
.draft-history .history-hint { margin-top: 3px; font-size: 11.5px; max-width: 260px; }
.draft-tools { margin: -4px 0 8px; }

/* tender coverage */
.cov-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: space-between; margin-bottom: 10px; }
.cov-counts { display: flex; gap: 8px; flex-wrap: wrap; }
.cov-chip { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 13px; font-size: 12.5px; font-weight: 600; background: var(--surface-3); color: var(--muted); }
.cov-chip.bad { background: var(--bad-soft); color: var(--bad); }
.cov-chip.good { background: var(--ok-soft); color: var(--ok); }
.cov-chip.warn { background: var(--warn-soft); color: var(--warn); }
.cov-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cov-item { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: start; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.cov-item.proposal { grid-template-columns: auto 1fr; }
.cov-item.off { opacity: .55; }
.cov-item.st-uncovered { border-left: 3px solid var(--bad-fill); }
.cov-item.st-covered { border-left: 3px solid var(--ok-fill); }
.cov-item.st-excluded { border-left: 3px solid var(--border-strong); background: var(--surface-2); }
.cov-status.bad { color: var(--bad); } .cov-status.good { color: var(--ok); } .cov-status.muted { color: var(--faint); }
.cov-main { min-width: 0; display: grid; gap: 5px; }
.cov-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cov-edit { display: grid; grid-template-columns: 1fr 150px; gap: 8px; }
.cov-quote { margin: 0; padding: 4px 10px; border-left: 3px solid var(--border-strong); color: var(--muted); font-style: italic; font-size: 12.5px; display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; }
.cov-quote .badge { font-style: normal; }
.cov-links { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.cov-links select { max-width: 280px; }
.cov-link { display: inline-flex; align-items: center; gap: 2px; padding: 1px 4px 1px 8px; border-radius: 11px; background: var(--accent-soft); font-size: 12.5px; }
.cov-none { font-size: 12px; color: var(--bad); font-weight: 600; }
.cov-reason { display: flex; gap: 6px; align-items: flex-start; margin: 0; font-size: 12.5px; color: var(--muted); }
.cov-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }

/* suggested skills */
.skill-proposals { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sp-activity { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-bottom: 5px; }
.sp-skills { display: flex; gap: 6px; flex-wrap: wrap; }
.skill-chip.toggle { border: 1px dashed var(--border-strong); cursor: pointer; opacity: .6; }
.skill-chip.toggle.on { border-style: solid; opacity: 1; box-shadow: inset 0 0 0 1px currentColor; }
.skill-proposals-inline { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 4px 0 8px; }

/* progress report */
.report-controls { display: grid; grid-template-columns: 170px 1fr 150px auto; gap: 12px; align-items: start; margin-bottom: 14px; }
.report-controls .check { min-height: 36px; }
.report-status { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.report-panes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.report-preview { border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; background: var(--surface); max-height: 520px; overflow-y: auto; }
.report-preview h3 { margin-bottom: 2px; }
.report-preview h4 { margin: 14px 0 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--accent-strong); }
.report-preview ul { margin: 0; padding-left: 18px; }
.fact-ref { color: var(--accent-strong); cursor: help; margin-left: 1px; }
.report-facts { margin-top: 14px; font-size: 12.5px; color: var(--muted); }
.report-text { width: 100%; font-family: var(--mono); font-size: 12.5px; margin-bottom: 8px; }
.report-archive { margin-top: 18px; }

/* WBS export (SYS-002 MLF-007.5, MLF-007.6) */
.wbs-modes { margin-bottom: 12px; }
.wbs-controls { display: grid; grid-template-columns: 200px 1fr 1fr 140px; gap: 12px; align-items: start; margin-bottom: 10px; }
.wbs-include { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 4px; }
.wbs-checks { display: flex; gap: 6px 16px; flex-wrap: wrap; }
.wbs-note { margin: 4px 0 10px; }
.wbs-preview { display: grid; justify-items: center; gap: 12px; padding: 14px; background: var(--surface-3); border-radius: var(--radius); max-height: 520px; overflow: auto; }
.wbs-preview > p { justify-self: stretch; margin: 0; }
.wbs-page { background: #fff; box-shadow: var(--shadow-2); max-width: 100%; height: auto !important; }
.wbs-doc { width: min(640px, 100%); background: var(--surface); box-shadow: var(--shadow-2); padding: 26px 30px; font-size: 13px; }
.wbs-doc h3 { margin: 0 0 2px; font-size: 19px; }
.wbs-sub { color: var(--muted); margin: 0 0 12px; font-size: 12.5px; }
.wbs-h { display: grid; grid-template-columns: 48px 1fr auto; gap: 8px; align-items: baseline; font-weight: 700; margin-top: 8px; }
.wbs-h1 { font-size: 15px; margin-top: 16px; padding-left: 6px; margin-left: -9px; border-left: 3px solid transparent; }
.wbs-h2 { font-size: 13.5px; }
.wbs-h3, .wbs-h4 { font-size: 13px; }
.wbs-code { color: var(--muted); }
.wbs-h .wbs-name:first-child { grid-column: 1 / 3; }
.wbs-aside { color: var(--muted); font-weight: 450; font-size: 12px; white-space: nowrap; }
.wbs-body { margin: 2px 0 2px 56px; }
.wbs-detail { margin: 1px 0 1px 56px; color: var(--muted); font-size: 12px; }
.wbs-line { display: flex; justify-content: space-between; gap: 12px; margin-top: 4px; }
.wbs-item { display: grid; grid-template-columns: 40px 1fr; gap: 6px; margin: 1px 0 1px 20px; }
.wbs-item + .wbs-line { margin-top: 8px; }
@media (max-width: 900px) {
  .wbs-controls { grid-template-columns: 1fr 1fr; }
}

/* meeting notes */
.minutes-panes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.minutes-ops { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.minutes-op { display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: start; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius); }
.minutes-preview { border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; background: var(--surface-2); min-height: 120px; }
.minutes-changes { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 6px; font-size: 13px; }
.minutes-changes li { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.minutes-changes li.added strong { color: var(--ok); }
.minutes-end { display: flex; gap: 6px; align-items: center; font-weight: 600; }

/* similar projects */
.draft-similar:empty { display: none; }
.draft-similar { margin-bottom: 12px; }
.similar-working { display: flex; align-items: center; gap: 10px; color: var(--muted); padding: 8px 0; }
.similar-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.similar-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; background: var(--surface); display: grid; gap: 5px; align-content: start; }
.similar-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.similar-common { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; font-size: 12px; }

@media (max-width: 900px) {
  .report-controls, .report-panes, .minutes-panes, .cov-edit { grid-template-columns: 1fr; }
  .cov-item { grid-template-columns: auto 1fr; }
  .cov-actions { grid-column: 1 / -1; justify-content: flex-start; }
}

/* ── the plan check (SYS-002 MLF-003.10) ────────────────────────────────── */
.btn-xs { height: 24px; padding: 0 8px; font-size: 11.5px; gap: 4px; border-radius: 6px; }
.checks { padding: 0 2px 4px; }
.check-clear { display: flex; align-items: center; gap: 6px; margin: 0; padding: 4px 10px 6px; font-size: 12.5px; color: var(--ok); }
.check-group + .check-group { margin-top: 4px; }
.check-level { display: flex; align-items: center; gap: 6px; width: 100%; height: 26px; padding: 0 6px; border: 0; background: none; border-radius: 6px; cursor: pointer; font-size: 11.5px; font-weight: 700; color: var(--muted); }
.check-level:hover { background: var(--surface-3); color: var(--text); }
.check-level.fix { color: var(--warn); }
.check-list { list-style: none; margin: 0; padding: 0; }
.plan-check { margin: 2px 0 6px; padding: 7px 8px 8px 8px; border-radius: 8px; background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--faint); }
.plan-check.fix { border-left-color: var(--warn-fill); }
.plan-check.accepted { border-left-color: var(--ok-fill); background: var(--surface-2); }
.plan-check.accepted .check-text, .plan-check.accepted .check-where { color: var(--muted); }
.check-title { display: flex; align-items: center; gap: 6px; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 700; color: var(--text); }
.check-title.static { cursor: default; }
button.check-title:hover .check-name { color: var(--accent-strong); text-decoration: underline; }
.check-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.check-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); flex-shrink: 0; }
.plan-check.fix .check-dot { background: var(--warn-fill); }
.plan-check.accepted .check-dot { background: var(--ok-fill); }
.check-where { margin: 1px 0 0 13px; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.check-text { margin: 4px 0 0 13px; font-size: 12px; line-height: 1.4; color: var(--text); }
.check-items { list-style: none; margin: 4px 0 0 13px; padding: 0; font-size: 12px; }
.check-items li + li { margin-top: 1px; }
.check-link { padding: 0; border: 0; background: none; color: var(--accent-strong); cursor: pointer; font: inherit; font-size: 12px; text-align: left; }
.check-link:hover { text-decoration: underline; }
.check-why { display: flex; gap: 5px; align-items: flex-start; margin: 5px 0 0 13px; font-size: 11.5px; color: var(--ok); }
.check-why .icon { margin-top: 2px; flex-shrink: 0; }
.check-actions { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0 0 13px; }
.check-more { margin: 0 0 4px 8px; }
.check-more[hidden] { display: none; }
/* in the toolbar: the way to the list on any screen */
.chip-check { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border: 0; border-radius: 12px; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.chip-check.fix { background: var(--warn-soft); color: var(--warn); }
.chip-check.consider { background: var(--surface-3); color: var(--muted); }
.chip-check.clear { background: var(--ok-soft); color: var(--ok); }
.chip-check.on { box-shadow: inset 0 0 0 1.5px currentColor; }
.chip-check:hover { filter: brightness(.96); }
/* whose activities the chart shows (MLF-003.11): a click stops it */
.chip-focus { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border: 0; border-radius: 12px;
              font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; background: var(--accent-soft); color: var(--accent-strong); }
.chip-focus:hover { filter: brightness(.96); }
/* the dialogs of the menus */
.consequences { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 5px; font-size: 13.5px; }
.split-note { margin-top: 4px; }
.split-list li, .handover-list li { list-style: none; }
.split-list, .handover-list { padding-left: 0; }
.split-check { align-items: flex-start; }
.split-check.sub { margin: 2px 0 6px 26px; font-size: 12.5px; }
.successor { display: grid; gap: 6px; }
.pick-list { width: 100%; margin: 8px 0; padding: 4px; border: 1px solid var(--border); border-radius: 8px; font: inherit; }
/* the plan check's window: a dialog that leaves the plan usable (ui.js floatingDialog) */
.float-window { position: fixed; inset: auto; margin: 0; padding: 0; z-index: 8000; width: min(460px, calc(100vw - 16px)); max-height: calc(100vh - 24px); display: flex; flex-direction: column; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--surface); color: var(--text); box-shadow: var(--shadow-3); }
.float-window:not([open]) { display: none; }
.float-window.moving { opacity: .94; }
.float-head { display: flex; align-items: center; gap: 10px; padding: 7px 7px 7px 14px; border-bottom: 1px solid var(--border); border-radius: 12px 12px 0 0; background: var(--surface-2); cursor: move; user-select: none; touch-action: none; }
.float-title { margin: 0; font-size: 14px; font-weight: 700; white-space: nowrap; }
.float-note { flex: 1; min-width: 0; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.float-body { min-height: 0; overflow-y: auto; padding: 8px 10px 10px; }
.float-body:focus { outline: none; }            /* a list, not a control: it holds the focus for Esc */
.checks-window .plan-check { margin-bottom: 8px; }
/* beside the names on the chart */
.g-check { display: inline-flex; align-items: center; gap: 2px; flex-shrink: 0; height: 16px; padding: 0 4px; border-radius: 6px; font-size: 10px; font-weight: 700; line-height: 16px; }
.g-check.fix { background: var(--warn-soft); color: var(--warn); }
.g-check.consider { background: var(--surface-3); color: var(--muted); }
.g-row.flash, .g-bar.flash, .g-summary.flash, .g-ms.flash { animation: row-flash 1.8s ease-out; }
@keyframes row-flash { 0%, 35% { box-shadow: 0 0 0 3px var(--accent); } 100% { box-shadow: 0 0 0 0 transparent; } }
/* in the dialogs */
.check-note ul { margin: 0; padding-left: 16px; }
.check-note li + li { margin-top: 3px; }
.check-note li.accepted { opacity: .7; }
.check-note-intro { margin: 0 0 4px; font-weight: 600; }
.preflight-list { margin: 0 0 8px; padding-left: 18px; font-size: 13px; }
.preflight-list li + li { margin-top: 5px; }
.offer-checks:empty { display: none; }
@media print { .g-check { display: none !important; } }
/* the legend of the baseline lines, in the tool bar and the side panel */
.legend-baseline { color: var(--muted); cursor: help; }
.legend-line { display: inline-block; width: 18px; height: 4px; border-radius: 2px; background: var(--faint); vertical-align: middle; margin-right: 2px; }

/* ── ReqHub (docs/integrazione-reqhub.md) ──────────────────────────────────── */
/* the hours booked in abHR on a plan (docs/integrazione-abhr.md) */
.actuals-box { padding: 2px 10px 8px; display: grid; gap: 6px; font-size: 12.5px; }
.actuals-box .side-sub { white-space: normal; }
.actuals-lines { margin: 0; padding: 0 0 0 16px; display: grid; gap: 3px; }
.actuals-table { width: 100%; border-collapse: collapse; font-size: 12px; font-variant-numeric: tabular-nums; }
.actuals-table th, .actuals-table td { padding: 2px 4px; border-bottom: 1px solid var(--border); text-align: left;
  font-weight: 450; white-space: nowrap; }
.actuals-table thead th { color: var(--muted); font-size: 11px; font-weight: 600; }
.actuals-table tbody th { overflow: hidden; text-overflow: ellipsis; max-width: 120px; }
.actuals-table .num { text-align: right; }
.actuals-table tr.over td:nth-child(3) { color: var(--warn); font-weight: 600; }
.reqhub-box { padding: 2px 10px 8px; display: grid; gap: 6px; font-size: 12.5px; }
.reqhub-box .side-sub { white-space: normal; }
.reqhub-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-weight: 600; }
.reqhub-bar { height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.reqhub-fill { display: block; height: 100%; background: var(--ok-fill); }
.reqhub-warn { display: flex; gap: 6px; align-items: flex-start; padding: 6px 8px; border-radius: var(--radius-sm);
               background: var(--warn-soft); color: var(--warn); }
.reqhub-milestones { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.reqhub-milestones li { display: flex; align-items: center; gap: 6px; }
.reqhub-milestones .linklike { flex: 1; min-width: 0; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reqhub-chip { font-size: 11.5px; font-weight: 600; padding: 1px 7px; border-radius: 10px; background: var(--surface-3); color: var(--muted); }
.reqhub-chip.ok { background: var(--ok-soft); color: var(--ok); }
.reqhub-chip.bad { background: var(--bad-soft); color: var(--bad); }
.req-editor { display: grid; gap: 8px; }
.req-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.req-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 4px 2px 9px; border-radius: 12px;
            background: var(--accent-soft); color: var(--accent-strong); font-size: 12.5px; font-weight: 600; }
.req-chip a { color: inherit; }
.linklike { background: none; border: 0; padding: 0; color: var(--accent-strong); cursor: pointer; font: inherit; }
.linklike:hover { text-decoration: underline; }

/* ── the dashboard (SYS-002 HLF-013) ─────────────────────────────────────── */
.text-warn { color: var(--warn); }
.text-bad { color: var(--bad); }
.row-gap { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.star-btn { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px;
  border: 0; border-radius: 8px; background: transparent; color: var(--faint); cursor: pointer; flex: none;
  position: relative; z-index: 2; }
.star-btn:hover { background: var(--tint); color: var(--star); }
.star-btn:focus-visible { outline: none; box-shadow: var(--focus); }
.star-btn.on { color: var(--star); }
.star-btn.on svg { fill: currentColor; }
.star-btn:disabled { opacity: .5; cursor: progress; }
.topbar-title .star-btn { margin-right: -4px; }

.dashboard .dash-sub { margin: 4px 0 0; font-size: 13px; }
/* a 12-column grid at the width of every page, the gutters fixed: a third, two
   thirds or the whole width; two columns on a narrow screen, one on a phone */
.dash-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; align-items: start; }
.dash-widget { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-1); min-width: 0; display: flex; flex-direction: column; }
.dash-widget.editing { border-style: dashed; border-color: var(--border-strong); }
.dash-size-s { grid-column: span 4; }
.dash-size-m { grid-column: span 8; }
.dash-size-l { grid-column: span 12; }
@media (max-width: 1100px) {
  .dash-size-s { grid-column: span 6; }
  .dash-size-m, .dash-size-l { grid-column: span 12; }
}
@media (max-width: 720px) {
  .dash-grid { gap: 14px; }
  .dash-size-s, .dash-size-m, .dash-size-l { grid-column: span 12; }
}
.dash-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px 10px; border-bottom: 1px solid var(--border);
  color: var(--text-2); flex-wrap: wrap; }
.dash-head h2 { font-size: 14px; font-weight: 700; color: var(--text-title); margin: 0; }
.dash-extra { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; }
.dash-tools { margin-left: auto; display: inline-flex; gap: 2px; }
.dash-tools .btn-icon { width: 28px; height: 28px; }
.dash-body { padding: 12px 14px 14px; min-width: 0; }
/* an empty widget says so in one quiet line, at the widget's size */
.dash-empty { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; color: var(--text-2); padding: 2px 0; }
.dash-empty .icon { flex: none; color: var(--faint); margin-top: 1px; }
.dash-empty p { margin: 0; line-height: 1.45; }
.dash-more { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.dash-more:empty { display: none; }
.dash-note-line { margin: 8px 0 0; }
.dash-link { color: var(--text); font-weight: 600; text-decoration: none; }
.dash-link:hover { color: var(--accent-strong); text-decoration: underline; }

.dash-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.dash-stat { display: flex; flex-direction: column; gap: 2px; padding: 6px 4px; }
/* the key numbers in Outfit, as the titles. A number with a verdict
   (behind, to watch, over 100%, to invoice: only when not zero, widgets.js)
   takes the verdict's colour with its icon; the others stay ink */
.stat-value { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-title); font-size: 32px;
  font-weight: 650; letter-spacing: -.02em; line-height: 1.1; color: var(--text); font-variant-numeric: tabular-nums; }
.stat-value .icon { flex: none; }
.stat-bad .stat-value { color: var(--bad); }
.stat-warn .stat-value { color: var(--warn); }
.stat-label { color: var(--muted); font-size: 13px; }

.state-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 12px;
  font-weight: 600; white-space: nowrap; }
.state-behind { background: var(--bad-soft); color: var(--bad); }
.state-watch { background: var(--warn-soft); color: var(--warn); }
.state-on_track { background: var(--ok-soft); color: var(--ok); }
.state-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.state-dot.state-behind { background: var(--bad-fill); }
.state-dot.state-watch { background: var(--warn-fill); }
.state-dot.state-on_track { background: var(--ok-fill); }

.dash-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 12px; }
.dash-card { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px 12px; display: flex; flex-direction: column;
  gap: 7px; background: var(--surface); min-width: 0; border-left: 3px solid var(--border-strong); }
.dash-card.card-behind { border-left-color: var(--bad-fill); }
.dash-card.card-watch { border-left-color: var(--warn-fill); }
.dash-card.card-on_track { border-left-color: var(--ok-fill); }
.dash-card-head { display: flex; align-items: flex-start; gap: 6px; }
.dash-card-head .star-btn { margin: -2px 0 0 -6px; }
.dash-card-title { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.dash-card-name { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-progress { display: flex; flex-direction: column; gap: 6px; }
.dash-line { display: flex; align-items: flex-start; gap: 7px; font-size: 13px; color: var(--text-2); }
.dash-line .icon { flex: none; margin-top: 2px; color: var(--faint); }
.dash-line.text-warn, .dash-line.text-warn .icon { color: var(--warn); }
.dash-why { font-size: 12.5px; color: var(--text-2); background: var(--surface-2); border-radius: 7px; padding: 6px 8px; }
.dash-card-foot { display: flex; align-items: center; gap: 8px; justify-content: space-between; margin-top: 2px; }

.dash-list { list-style: none; margin: 0; padding: 0; }
.dash-item { display: flex; align-items: baseline; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--border);
  font-size: 13px; flex-wrap: wrap; }
.dash-item:last-child { border-bottom: 0; }
.dash-when { flex: none; width: 82px; color: var(--muted); font-variant-numeric: tabular-nums; }
.dash-what { flex: 1 1 180px; min-width: 0; }
.dash-what .ms-dot { display: inline-block; width: 8px; height: 8px; transform: rotate(45deg); margin-right: 7px; border-radius: 1px; }
.dash-news .dash-what { line-height: 1.45; }
/* the frame hugs the table: weeks keep their width, nothing stretches */
.dash-load { max-height: 340px; display: inline-block; max-width: 100%; vertical-align: top; }
.dash-load .load-person { min-width: 170px; padding: 4px 10px; }
.dash-load .load-cell { height: 32px; min-width: 44px; }
.dash-load .load-week { min-width: 44px; }

.tl { font-size: 12.5px; }
.tl-row { display: grid; grid-template-columns: minmax(110px, 190px) 1fr; align-items: center; min-height: 28px; }
.tl-name { display: flex; align-items: center; gap: 6px; min-width: 0; padding-right: 10px; }
.tl-name .dash-link { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.tl-track { position: relative; height: 28px; }
.tl-head .tl-track { height: 34px; border-bottom: 1px solid var(--border); }
.tl-month { position: absolute; bottom: 4px; transform: translateX(4px); color: var(--muted); font-weight: 600; white-space: nowrap; }
.tl-grid { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--border); }
.tl-body { position: relative; }
.tl-today-wrap { position: absolute; inset: 0; pointer-events: none; display: grid;
  grid-template-columns: minmax(110px, 190px) 1fr; }
.tl-today-wrap::before { content: ""; }
.tl-today-wrap > .tl-today { display: block; position: relative; height: 100%; width: 2px; margin-left: -1px; background: var(--today); }
/* «Today» above the months, so the two never write over each other */
.tl-today-label { position: absolute; top: 0; transform: translateX(-50%); color: var(--today); font-weight: 700; font-size: 11px; }
.tl-bar { position: absolute; top: 9px; height: 10px; border-radius: 4px; background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent); overflow: hidden; }
.tl-done { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent); }
.tl-bar.tl-offer { background: transparent; box-shadow: none; border: 1.5px dashed var(--offer); }
.tl-ko { position: absolute; top: 1px; transform: translateX(-2px); color: var(--accent-strong); line-height: 0; }
.tl-ms { position: absolute; top: 9px; width: 9px; height: 9px; margin-left: -4.5px; transform: rotate(45deg); border-radius: 1px;
  box-shadow: 0 0 0 2px var(--surface); }
.tl-legend { display: flex; gap: 14px; margin-top: 8px; padding-left: 4px; flex-wrap: wrap; }
.tl-legend > span { display: inline-flex; align-items: center; gap: 5px; }
.tl-key-ms { width: 8px; height: 8px; transform: rotate(45deg); background: var(--faint); display: inline-block; }
.tl-key-offer { width: 16px; height: 8px; border: 1.5px dashed var(--offer); border-radius: 3px; display: inline-block; }
.tl-key-today { width: 2px; height: 12px; background: var(--today); display: inline-block; }

/* ── milestones invoiced (SYS-002 HLF-015) ── */
.stat-sub { color: var(--text-2); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.state-neutral { background: var(--surface-2); color: var(--text-2); box-shadow: inset 0 0 0 1px var(--border); }
.inv-sum { display: flex; align-items: center; gap: 7px; margin: 0 0 6px; font-size: 13px; font-weight: 600; }
.inv-sum .icon { color: var(--faint); flex: none; }
.inv-section + .inv-section { margin-top: 10px; }
.dash-subhead { font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--accent-strong); font-weight: 700;
  margin: 8px 0 0; }
.inv-widget .dash-item .btn-sm { height: 26px; }
.inv-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 10px; border: 1px solid var(--border);
  border-radius: 9px; background: var(--surface-2); }
.inv-pick { display: grid; gap: 2px; max-height: 220px; overflow-y: auto; border: 1px solid var(--border); border-radius: 9px;
  padding: 4px; margin-top: 6px; }
.inv-pick-row { display: flex; align-items: center; gap: 9px; padding: 5px 8px; border-radius: 7px; cursor: pointer; }
.inv-pick-row:hover { background: var(--surface-2); }
.inv-pick-name { flex: 1; min-width: 0; font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inv-total { grid-column: 1 / -1; margin: 0; }

.follow-list { max-height: 52vh; overflow: auto; margin-top: 10px; }
.follow-heading { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--accent-strong); margin: 12px 0 4px; }
.follow-row { display: flex; align-items: center; gap: 8px; padding: 6px 4px; border-bottom: 1px solid var(--border); }
.follow-row:last-child { border-bottom: 0; }
.follow-row.is-closed .follow-name strong { color: var(--muted); }
.follow-name { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.follow-name > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-suggest { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px;
  margin-bottom: 16px; }
.dash-suggest-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.dash-suggest-head .icon { color: var(--star); }
.dash-suggest-list { margin-bottom: 6px; }
.dash-note .callout { align-items: center; }
