/* ===== Wayvo · dark-mode-first design system =====
   Modern startup meets mission control. Premium, minimal, intentional.
   Borders over shadows. Navy + slate surfaces, summit-green → teal accents. */
:root {
    --bg:         #f5f6f9;   /* light app background */
    --bg-2:       #eceef3;   /* slightly deeper */
    --surface:    #ffffff;   /* cards & surfaces */
    --surface-2:  #f3f5f8;   /* raised — inputs, hovers */
    --ink:        #09132d;   /* primary text (logo navy) */
    --muted:      #5d6781;   /* secondary text */
    --line:       rgba(9,19,45,.10);   /* subtle borders */
    --line-2:     rgba(9,19,45,.17);   /* stronger borders */

    --lime:       #faca2c;   /* brand gold */
    --teal:       #ff5a4e;   /* brand coral — primary accent */
    --primary:    #ff5a4e;
    --primary-d:  #e8483d;
    --accent:     #faca2c;
    --grad:       linear-gradient(120deg, #ff5a4e 0%, #faca2c 100%);

    --success:    #16a34a;
    --warning:    #e0890b;
    --danger:     #dc2626;

    --radius:     18px;
    --radius-sm:  12px;
    --shadow:     0 1px 2px rgba(9,19,45,.07);
    --shadow-lg:  0 18px 50px rgba(9,19,45,.15);

    --font:       'Inter', system-ui, -apple-system, sans-serif;
    --display:    'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;

    color-scheme: light;
}

/* ===== Dark theme ===== */
html[data-theme="dark"] {
    --bg:         #0b1120;
    --bg-2:       #131d30;
    --surface:    #151f33;
    --surface-2:  #1e2a44;
    --ink:        #e9eef7;
    --muted:      #98a5bd;
    --line:       rgba(255,255,255,.10);
    --line-2:     rgba(255,255,255,.18);
    --shadow:     0 1px 2px rgba(0,0,0,.5);
    --shadow-lg:  0 20px 50px rgba(0,0,0,.6);
    color-scheme: dark;
}
html[data-theme="dark"] body {
    background:
        radial-gradient(1100px 560px at 100% -8%, rgba(255, 90, 78,.12) 0%, transparent 55%),
        radial-gradient(900px 520px at -8% 0%, rgba(250, 202, 44,.06) 0%, transparent 52%),
        var(--bg);
}
[data-theme="dark"] .topbar { background: var(--surface); border-bottom-color: var(--line);
    box-shadow: 0 1px 0 rgba(255,255,255,.03), 0 8px 24px rgba(0,0,0,.45); }
[data-theme="dark"] .nav-mega { background: var(--surface);
    box-shadow: 0 26px 60px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.08); }
[data-theme="dark"] .popover, [data-theme="dark"] .cmdk-panel { background: var(--surface-2); }
[data-theme="dark"] .topbar .topnav a, [data-theme="dark"] .nav-group > summary { color: #aeb9cd; }
[data-theme="dark"] .topbar .topnav a:hover, [data-theme="dark"] .nav-group > summary:hover { background: rgba(255,255,255,.07); color: #fff; }
[data-theme="dark"] .topbar .topnav a.active, [data-theme="dark"] .nav-group[open] > summary { background: rgba(255,255,255,.10); color: #fff; }
[data-theme="dark"] .btn-ghost { background: rgba(255,255,255,.04); color: var(--ink); }
[data-theme="dark"] .btn-ghost:hover { background: rgba(255,255,255,.09); }
[data-theme="dark"] .org-switcher summary:hover, [data-theme="dark"] .cmdk-trigger:hover { background: rgba(255,255,255,.07); }
[data-theme="dark"] .cmdk-trigger { background: rgba(255,255,255,.05); color: var(--muted); }
[data-theme="dark"] .topbar-profile, [data-theme="dark"] .topbar-name { color: var(--ink); }
[data-theme="dark"] .topbar .link-btn { color: var(--muted); }
[data-theme="dark"] .topbar .link-btn:hover { color: #fff; }
[data-theme="dark"] .topbar .bell { color: var(--ink); }
[data-theme="dark"] .topbar .bell:hover { background: rgba(255,255,255,.08); }
[data-theme="dark"] .topbar .bell-badge { box-shadow: 0 0 0 2px var(--surface); }
[data-theme="dark"] .org-switcher summary, [data-theme="dark"] .org-chip-name { color: var(--ink); }
[data-theme="dark"] .org-switcher summary:hover { background: rgba(255,255,255,.08); }
[data-theme="dark"] .nav-mega-item:hover, [data-theme="dark"] .nav-pop-item:hover,
[data-theme="dark"] .ms-row:hover, [data-theme="dark"] .af-reply:hover { background: rgba(255,255,255,.05); }
[data-theme="dark"] .verify-banner { background: #2a2416; border-color: #5a4a1e; color: #f1d188; }
[data-theme="dark"] .brand-icon, [data-theme="dark"] .auth-logo-sm { filter: none; }
[data-theme="dark"] input::placeholder, [data-theme="dark"] textarea::placeholder { color: #6f7d96; }
[data-theme="dark"] .tpl-card .pc-banner, [data-theme="dark"] .project-card .pc-banner { opacity: .9; }

/* Theme toggle button */
.theme-toggle { background: none; border: none; cursor: pointer; font-size: 1.05rem; line-height: 1;
    padding: 6px 7px; border-radius: 9px; flex: 0 0 auto; }
.theme-toggle:hover { background: rgba(15,25,42,.06); }
[data-theme="dark"] .theme-toggle:hover { background: rgba(255,255,255,.08); }
.theme-sun { display: none; } .theme-moon { display: inline; }
[data-theme="dark"] .theme-sun { display: inline; } [data-theme="dark"] .theme-moon { display: none; }

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font);
    color: var(--ink);
    background:
        radial-gradient(1100px 560px at 100% -8%, rgba(255, 90, 78,.10) 0%, transparent 55%),
        radial-gradient(900px 520px at -8% 0%, rgba(250, 202, 44,.07) 0%, transparent 52%),
        var(--bg);
    background-attachment: fixed;
    min-height: 100vh;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-d); text-decoration: none; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; font-family: var(--display); }
.display { font-family: var(--display); font-weight: 700; font-size: clamp(1.8rem, 4vw, 2.5rem); letter-spacing: -0.03em; }
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.lead  { font-size: 1.08rem; color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; font-weight: 700;
    background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

::selection { background: rgba(255, 90, 78,.28); }

/* Subtle global scrollbars */
* { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
*::-webkit-scrollbar { width: 9px; height: 9px; }
*::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 999px; }

/* ===== Top bar ===== */
.topbar {
    position: sticky; top: 0; z-index: 120; isolation: isolate;
    background: #ffffff;
    border-bottom: 1px solid var(--line);
}
.topbar-inner {
    max-width: 1140px; margin: 0 auto; padding: 0 24px;
    height: 64px; display: flex; align-items: center; gap: 22px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark { font-size: 1.5rem; }
.brand-name { font-family: var(--display); font-size: 1.25rem; }
.brand-logo { height: 28px; width: auto; display: block; }
.topnav { display: flex; gap: 1px; margin-left: 6px; }
.topnav a {
    color: var(--muted); font-weight: 500; font-size: .88rem;
    padding: 8px 11px; border-radius: 10px; transition: .15s;
    white-space: nowrap; display: inline-flex; align-items: center; gap: 6px;
}
.topnav a:hover { background: rgba(15,25,42,.06); color: var(--ink); text-decoration: none; }
.topnav a.active { background: var(--ink); color: #fff; }
/* Icons only show on wide screens; labels never wrap. */
@media (max-width: 1180px) { .topnav > .nav-link .icon, .nav-group > summary .icon { display: none; } }
.topbar-user { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.topbar-user .link-btn { white-space: nowrap; flex-shrink: 0; }
.topbar-name { font-weight: 600; font-size: .88rem; white-space: nowrap; }
@media (max-width: 1240px) { .topbar-name { display: none; } }
@media (max-width: 680px) { .topnav .nav-link:first-child { display: none; } }

/* ===== Grouped nav dropdowns ===== */
.nav-group { position: relative; }
.nav-group > summary {
    list-style: none; cursor: pointer; color: var(--muted); font-weight: 500; font-size: .88rem;
    padding: 8px 11px; border-radius: 10px; transition: .15s; white-space: nowrap;
    display: inline-flex; align-items: center; gap: 6px;
}
.nav-group > summary::-webkit-details-marker { display: none; }
.nav-group > summary:hover { background: rgba(15,25,42,.06); color: var(--ink); }
.nav-group > summary.active { color: var(--ink); }
.nav-group > summary.active .icon { color: var(--teal); opacity: 1; }
.nav-group[open] > summary { background: rgba(15,25,42,.06); color: var(--ink); }
.nav-group[open] > summary .org-caret { transform: rotate(180deg); }
.nav-group .org-caret { transition: transform .15s; }
.nav-pop { left: 0; right: auto; top: 42px; width: 210px; padding: 8px; }

/* Mega menu panel */
.nav-group { position: relative; z-index: 0; }
.nav-group[open] { z-index: 140; }
.nav-mega { width: 320px; padding: 10px; z-index: 140; background: #ffffff; opacity: 1;
    box-shadow: 0 26px 60px rgba(8,19,32,.30), 0 0 0 1px rgba(9,19,45,.10); }
/* A small invisible bridge so the gap between the tab and panel doesn't show
   page content through (and keeps hover open). */
.nav-mega::before { content: ''; position: absolute; left: 0; right: 0; top: -10px; height: 10px; background: transparent; }
.nav-mega-head { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em;
    color: var(--muted); padding: 6px 10px 8px; }
.nav-mega-item { display: flex; align-items: flex-start; gap: 12px; padding: 9px 10px; border-radius: 11px; color: var(--ink); }
.nav-mega-item:hover { background: rgba(9,19,45,.05); text-decoration: none; }
.nav-mega-ic { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 auto; border-radius: 10px;
    background: linear-gradient(135deg, rgba(255,90,78,.14), rgba(250,202,44,.12)); color: var(--primary); }
.nav-mega-item:hover .nav-mega-ic { background: var(--grad); color: #fff; }
.nav-mega-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.nav-mega-text strong { font-size: .92rem; font-weight: 600; }
.nav-mega-desc { font-size: .78rem; color: var(--muted); }
.nav-mega-item.current .nav-mega-ic { background: var(--grad); color: #fff; }
.nav-mega-item.current strong { color: var(--teal); }
@media (max-width: 560px) { .nav-mega { width: auto; } }
.nav-pop-item {
    display: flex; align-items: center; gap: 9px; padding: 9px 11px; border-radius: 9px;
    color: var(--ink); font-size: .9rem; font-weight: 500;
}
.nav-pop-item:hover { background: rgba(9, 19, 45, .06); text-decoration: none; }
.nav-pop-item .icon { color: var(--muted); opacity: .9; }
.nav-pop-item.current { color: var(--teal); font-weight: 600; }
.nav-pop-item.current .icon { color: var(--teal); opacity: 1; }

/* ===== Avatars ===== */
.avatar {
    --s: 38px;
    width: var(--s); height: var(--s); border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: calc(var(--s) * .38);
    flex: 0 0 auto; box-shadow: inset 0 0 0 1.5px rgba(9, 19, 45, .18);
}
.avatar.sm { --s: 30px; }
.avatar.xs { --s: 22px; }
.avatar.lg { --s: 72px; }

/* ===== Buttons ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: var(--font); font-weight: 600; font-size: .92rem;
    padding: 10px 18px; border-radius: 12px; border: 1px solid transparent;
    cursor: pointer; transition: transform .08s ease, filter .15s, background .15s, border-color .15s;
    white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #fff; font-weight: 700;
    box-shadow: 0 4px 14px rgba(255, 90, 78,.22); }
.btn-primary:hover { background: var(--primary-d); color: #fff; }
.btn-ghost { background: rgba(9, 19, 45, .02); color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: rgba(9, 19, 45, .06); }
.btn-sm { padding: 7px 13px; font-size: .84rem; border-radius: 10px; }
.btn-block { width: 100%; }
.link-btn { background: none; border: none; color: var(--muted); cursor: pointer; font: inherit; font-size: .9rem; padding: 0; }
.link-btn:hover { color: var(--ink); text-decoration: underline; }
.link-btn.danger { color: var(--danger); }
form.inline { display: inline; }

/* ===== Layout ===== */
.page { max-width: 1140px; margin: 0 auto; padding: 38px 24px 72px; }
.narrow { max-width: 720px; margin: 0 auto; }
.card {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow);
}
.footer { text-align: center; color: var(--muted); font-size: .82rem; padding: 36px; }

/* ===== Flash ===== */
.flash {
    max-width: 1140px; margin: 16px auto 0; padding: 12px 18px;
    border-radius: var(--radius-sm); font-weight: 500; font-size: .92rem;
}
.flash-success { background: rgba(22,163,74,.1); color: #15803d; border: 1px solid rgba(22,163,74,.28); }
.flash-error   { background: rgba(220,38,38,.08); color: #b91c1c; border: 1px solid rgba(220,38,38,.25); }
.inline-flash  { margin: 0 0 16px; }

/* ===== Hero / dashboard ===== */
.hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 34px; flex-wrap: wrap; }
/* Home board search + quick filters */
.proj-search { display: flex; align-items: center; gap: 12px; width: 100%; margin: 6px 0 12px;
    padding: 14px 20px; background: var(--surface); border: 1.5px solid var(--line-2); border-radius: 14px; color: var(--muted);
    box-shadow: 0 1px 2px rgba(9,19,45,.03); transition: border-color .15s, box-shadow .15s; }
.proj-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(255,90,78,.10); }
.proj-search > i, .proj-search > .i-emoji { font-size: 1.1rem; color: var(--muted); flex: 0 0 auto; }
.proj-search input { border: none; background: none; outline: none; flex: 1 1 auto; min-width: 0; font-size: 1.05rem; color: var(--ink); }
.proj-search input::placeholder { color: var(--muted); }
.proj-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 18px; }
.proj-filters { display: inline-flex; gap: 7px; flex-wrap: wrap; }
.pf-chip { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 600; cursor: pointer;
    padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--muted); }
.pf-chip:hover { border-color: var(--line); color: var(--ink); }
.pf-chip.active { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.pf-chip.active i, .pf-chip.active .i-emoji { color: var(--surface); }
.proj-count { margin-left: auto; }
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(264px, 1fr)); gap: 16px; }
.project-card {
    --accent: var(--teal);
    position: relative; background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 24px; color: var(--ink);
    transition: transform .15s, border-color .15s, background .15s; overflow: hidden;
}
.project-card::before {
    content: ''; position: absolute; inset: 0 0 auto 0; height: 3px;
    background: linear-gradient(90deg, var(--accent), transparent 80%);
}
.project-card:hover { transform: translateY(-3px); border-color: var(--line-2); background: var(--surface-2); text-decoration: none; }
.project-icon {
    width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
    font-size: 1.6rem; background: color-mix(in srgb, var(--accent) 18%, var(--surface-2)); margin-bottom: 14px;
}
.project-card h3 { font-size: 1.15rem; margin-bottom: 4px; }
.project-card p { font-size: .9rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.project-meta { display: block; margin-top: 14px; font-size: .78rem; color: var(--muted); }
/* Card wrapper holds the priority dropdown as a sibling (a <form> can't live
   inside the card's <a>). */
.project-card-wrap { position: relative; display: flex; }
.project-card-wrap > .project-card { flex: 1 1 auto; width: 100%; }
.pc-prio-form { position: absolute; top: 11px; left: 12px; z-index: 4; margin: 0; }
.pc-prio { font-size: .68rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; border: 1px solid rgba(9,19,45,.18);
    background: rgba(255,255,255,.82); color: var(--muted); cursor: pointer; appearance: none; -webkit-appearance: none; text-align: center; backdrop-filter: blur(6px); }
.pc-prio:hover { border-color: rgba(9,19,45,.32); }
.pc-prio--low     { color: #2f9e44; border-color: rgba(47,158,68,.4);  background: rgba(47,158,68,.10); }
.pc-prio--medium  { color: #f08c00; border-color: rgba(240,140,0,.4);  background: rgba(240,140,0,.12); }
.pc-prio--high    { color: #e8590c; border-color: rgba(232,89,12,.45); background: rgba(232,89,12,.12); }
.pc-prio--urgent  { color: #e03131; border-color: rgba(224,49,49,.5);   background: rgba(224,49,49,.14); }
.pc-pm-row { font-weight: 600; }
.proj-prio-chip { display: inline-flex; align-items: center; gap: 5px; font-size: .8rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.proj-prio-chip.prio-low     { color: #2f9e44; background: rgba(47,158,68,.12); }
.proj-prio-chip.prio-medium  { color: #f08c00; background: rgba(240,140,0,.14); }
.proj-prio-chip.prio-high    { color: #e8590c; background: rgba(232,89,12,.14); }
.proj-prio-chip.prio-urgent  { color: #e03131; background: rgba(224,49,49,.16); }
.proj-prio-chip { font-size: .72rem; padding: 1px 8px; vertical-align: middle; }
/* Accounts: connector data strip */
.acct-card-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.acct-card-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 4px 0 10px; }
.acct-data { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 4px; }
.acct-metric { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 6px 11px;
    background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; min-width: 56px; }
.acct-metric-v { font-family: var(--display); font-weight: 800; font-size: 1.05rem; line-height: 1.1; color: var(--ink); }
.acct-metric-l { font-size: .64rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.acct-metric--health { flex-direction: row; align-items: center; gap: 7px; }
.acct-metric--health .acct-metric-v { font-size: .92rem; }
.acct-health-dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; }
.acct-data--empty { font-size: .8rem; color: var(--muted); padding: 8px 0; gap: 6px; align-items: center; }
.acct-data-cap { font-size: .72rem; color: var(--muted); margin: 4px 0 0; display: flex; align-items: center; gap: 5px; }
.acct-data-cap .i-emoji, .acct-data-cap i { color: var(--accent); }
.project-card--new { border-style: dashed; background: transparent; }
.project-card--new:hover { background: rgba(9, 19, 45, .02); }
.project-card--new .project-icon { background: rgba(9, 19, 45, .05); }

/* ===== Empty states ===== */
.empty-state { text-align: center; padding: 56px 32px; }
.empty-emoji { font-size: 3rem; margin-bottom: 12px; }
.empty-state h2, .empty-state h1 { margin-bottom: 8px; }
.empty-state .btn { margin-top: 18px; }
.empty-inline { color: var(--muted); padding: 26px; text-align: center; border: 1px dashed var(--line-2); border-radius: var(--radius); background: rgba(9, 19, 45, .02); }
.center-screen { max-width: 460px; margin: 8vh auto 0; }

/* ===== Forms ===== */
.stack { display: flex; flex-direction: column; gap: 16px; }
.form-card { padding: 24px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-weight: 600; font-size: .86rem; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=url],
input[type=number], input[type=search], input[type=datetime-local], input[type=tel], textarea, select {
    font: inherit; color: var(--ink); padding: 11px 14px;
    border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--bg-2);
    transition: border .15s, box-shadow .15s; width: 100%;
}
input::placeholder, textarea::placeholder { color: #5b6878; }
input:focus, textarea:focus, select:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 90, 78,.18);
}
textarea { resize: vertical; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; }

/* ===== Auth ===== */
.auth-body { display: grid; place-items: center; min-height: 100vh; padding: 24px; }
.auth-wrap { width: 100%; max-width: 400px; }
.auth-card { background: var(--surface); border: 1px solid var(--line-2); border-radius: 22px; box-shadow: var(--shadow-lg); padding: 36px; }
.auth-brand { text-align: center; margin-bottom: 24px; }
.auth-brand h1 { font-family: var(--display); font-size: 1.7rem; margin-top: 8px; font-weight: 700; }
.auth-switch { text-align: center; margin-top: 18px; }
.auth-foot { text-align: center; margin-top: 18px; font-size: .8rem; }

/* ===== Breadcrumb ===== */
.breadcrumb { font-size: .86rem; color: var(--muted); margin-bottom: 18px; display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumb span { opacity: .45; }

/* ===== Project header ===== */
.project-head {
    --accent: var(--teal);
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    padding: 24px; background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); margin-bottom: 22px;
    border-left: 3px solid var(--accent); flex-wrap: wrap;
}
.project-head-main { display: flex; align-items: center; gap: 16px; }
.project-head-icon {
    width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center;
    font-size: 1.9rem; background: color-mix(in srgb, var(--accent) 20%, var(--surface-2));
}
.project-head h1 { font-size: 1.5rem; }
.member-stack { display: flex; align-items: center; }
.member-stack .avatar { margin-left: -8px; border: 2px solid var(--surface); }
a.avatar.add {
    background: var(--surface); color: var(--primary); border: 2px dashed var(--primary);
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 800; text-decoration: none; cursor: pointer; }
a.avatar.add:hover { background: rgba(255,90,78,.10); border-style: solid; }
a.avatar.add i { font-size: .82em; }
.add-member { position: relative; margin-left: -8px; }
.add-member summary { list-style: none; cursor: pointer; background: var(--surface-2); color: var(--muted); border: 2px dashed var(--line-2); }
.add-member summary::-webkit-details-marker { display: none; }
.popover {
    position: absolute; right: 0; top: 42px; z-index: 20; width: 300px;
    background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--radius);
    box-shadow: var(--shadow-lg); padding: 16px;
}

/* ===== Tabs ===== */
.tabs { display: flex; gap: 4px; margin-bottom: 22px; flex-wrap: nowrap; overflow-x: auto; background: rgba(9, 19, 45, .03); padding: 5px; border-radius: 14px; border: 1px solid var(--line); max-width: 100%; scrollbar-width: thin; }
.tabs::-webkit-scrollbar { height: 6px; }
.tabs .tab { flex: 0 0 auto; white-space: nowrap; }
.tab {
    border: none; background: transparent; font: inherit; font-weight: 600; font-size: .88rem;
    padding: 8px 16px; border-radius: 10px; cursor: pointer; color: var(--muted); transition: .15s;
}
.tab:hover { color: var(--ink); }
.tab.active { background: var(--surface-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.panel { display: none; animation: fade .25s ease; }
.panel.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.panel-head h2 { font-family: var(--display); font-size: 1.4rem; }

/* ===== Messages ===== */
.pill {
    display: inline-block; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
    color: var(--teal); background: rgba(255, 90, 78,.12); padding: 3px 10px; border-radius: 999px;
}
.message-list { display: flex; flex-direction: column; gap: 8px; }
.message-row { display: flex; gap: 14px; padding: 15px 18px; align-items: flex-start; color: var(--ink); transition: transform .12s, background .15s, border-color .15s; }
.message-row:hover { transform: translateX(3px); background: var(--surface-2); border-color: var(--line-2); text-decoration: none; }
.message-row .avatar { flex: 0 0 auto; }
.message-row-body { flex: 1 1 auto; min-width: 0; }
.message-row-body h3 { font-size: 1.05rem; margin: 0 0 3px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; line-height: 1.3; }
.message-row-meta { font-size: .8rem; color: var(--muted); margin: 0 0 3px; }
.message-row-meta strong { color: var(--ink-2, var(--ink)); font-weight: 600; }
.message-row-snippet { font-size: .9rem; color: var(--muted); margin: 0; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.message-row-count { flex: 0 0 auto; align-self: center; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: var(--primary); color: #fff; font-size: .76rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.pill-sm { font-size: .6rem; padding: 2px 8px; vertical-align: middle; }

.message-detail .display { margin: 10px 0 18px; }
.byline { display: flex; align-items: center; gap: 12px; padding-bottom: 18px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.push-right { margin-left: auto; }
.prose { font-size: 1.02rem; color: var(--ink); line-height: 1.7; }
.prose p { margin-bottom: 1em; }
.prose p:last-child { margin-bottom: 0; }
.prose a { color: var(--teal); text-decoration: underline; }

/* ===== Comments ===== */
.comments { margin-top: 40px; }
.comments h2 { font-size: 1.12rem; margin-bottom: 18px; }
.comment { display: flex; gap: 12px; padding: 16px 0; border-top: 1px solid var(--line); }
.comment-meta { margin-bottom: 4px; }
.comment-form { display: flex; gap: 12px; padding: 16px; margin-top: 18px; align-items: flex-start; }
.comment-form-main { flex: 1; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.comment-form-main textarea { width: 100%; }

/* ===== To-dos ===== */
.todo-columns { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; align-items: start; }
.todo-list { padding: 20px; }
.todo-list-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.todo-list-head h3 { font-size: 1.05rem; }
.count-badge { font-size: .76rem; font-weight: 700; color: var(--muted); background: rgba(9, 19, 45, .06); padding: 3px 10px; border-radius: 999px; }
.progress { height: 6px; background: rgba(9, 19, 45, .07); border-radius: 999px; margin: 12px 0 4px; overflow: hidden; }
.progress-bar { height: 100%; background: var(--grad); border-radius: 999px; transition: width .3s; }
.todo-items { list-style: none; margin: 8px 0; }
.todo-item { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.todo-item:last-child { border-bottom: none; }
.todo-item .checkbox {
    width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--line-2); background: transparent;
    cursor: pointer; display: grid; place-items: center; color: #09132d; font-size: .8rem; font-weight: 800; flex: 0 0 auto; transition: .15s;
}
.todo-item .checkbox:hover { border-color: var(--primary); }
.todo-item.done .checkbox { background: var(--grad); border-color: transparent; }
.todo-text { flex: 1; font-size: .93rem; }
.todo-item.done .todo-text { text-decoration: line-through; color: var(--muted); }
.due { font-size: .76rem; color: var(--accent); font-weight: 600; margin-left: 6px; }
.del-form { opacity: 0; transition: .15s; }
.todo-item:hover .del-form { opacity: 1; }
.del-x { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 1.3rem; line-height: 1; padding: 0 4px; }
.del-x:hover { color: var(--danger); }
.add-todo { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line-2); }
.add-todo input[type=text] { grid-column: 1 / -1; }
.add-todo select, .add-todo input[type=date] { font-size: .85rem; padding: 8px 10px; }
.new-list { display: flex; flex-direction: column; gap: 12px; border-style: dashed; justify-content: flex-start; }

/* ===== Schedule ===== */
.schedule-grid { display: grid; grid-template-columns: 1fr 320px; gap: 20px; align-items: start; }
@media (max-width: 820px) { .schedule-grid { grid-template-columns: 1fr; } }
.event-list { display: flex; flex-direction: column; gap: 12px; }
.event-row { display: flex; align-items: center; gap: 16px; padding: 16px 20px; }
.event-date {
    width: 56px; height: 62px; border-radius: 12px; background: color-mix(in srgb, var(--teal) 16%, var(--surface-2));
    display: grid; place-content: center; text-align: center; flex: 0 0 auto;
}
.event-month { font-size: .7rem; font-weight: 700; text-transform: uppercase; color: var(--teal); }
.event-day { font-size: 1.5rem; font-weight: 800; line-height: 1; }
.event-body { flex: 1; }
.event-body h3 { font-size: 1.02rem; }

/* ===== Campfire ===== */
.campfire { display: flex; flex-direction: column; height: 60vh; min-height: 420px; overflow: hidden; }
.chat-scroll { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.chat-msg { display: flex; gap: 10px; max-width: 78%; }
.chat-msg.me { margin-left: auto; flex-direction: row-reverse; }
.bubble { background: var(--surface-2); padding: 10px 14px; border-radius: 14px 14px 14px 4px; border: 1px solid var(--line); }
.chat-msg.me .bubble { background: rgba(255, 90, 78,.16); border-color: rgba(255, 90, 78,.3); border-radius: 14px 14px 4px 14px; }
.chat-author { font-weight: 600; font-size: .82rem; display: block; margin-bottom: 2px; }
.bubble p { font-size: .94rem; }
.chat-form { display: flex; gap: 10px; padding: 14px; border-top: 1px solid var(--line); background: var(--surface); }

/* ===== Danger zone ===== */
.danger-zone { margin-top: 40px; text-align: center; }

/* ===== Docs ===== */
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.doc-card { padding: 22px; color: var(--ink); transition: transform .12s, background .15s, border-color .15s; }
.doc-card:hover { transform: translateY(-3px); background: var(--surface-2); border-color: var(--line-2); text-decoration: none; }
.doc-icon { font-size: 1.6rem; margin-bottom: 10px; }
.doc-card h3 { font-size: 1.02rem; margin-bottom: 6px; }
.doc-detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.doc-actions { display: flex; gap: 8px; flex: 0 0 auto; }
.danger-btn { color: var(--danger); }
.danger-btn:hover { border-color: var(--danger); background: rgba(248,113,113,.12); }

/* ===== My stuff ===== */
.mystuff-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 820px) { .mystuff-grid { grid-template-columns: 1fr; } }
.section-title { font-family: var(--display); font-size: 1.25rem; margin-bottom: 14px; }
.assignment-list { display: flex; flex-direction: column; gap: 10px; }
.assignment {
    --accent: var(--teal);
    display: flex; align-items: center; gap: 12px; padding: 14px 18px;
    border-left: 3px solid var(--accent);
}
.assignment-body { flex: 1; }
.assignment-body .todo-text { font-weight: 500; }
.due.overdue { color: var(--danger); }

/* ===== Account ===== */
.account-head { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; }
.account-head + .card { margin-bottom: 20px; }
.color-picker { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch {
    width: 38px; height: 38px; border-radius: 50%; cursor: pointer; position: relative;
    box-shadow: inset 0 0 0 2px rgba(9, 19, 45, .15); transition: transform .1s;
}
.swatch:hover { transform: scale(1.1); }
.swatch input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.swatch:has(input:checked) { box-shadow: 0 0 0 3px var(--ink), inset 0 0 0 2px rgba(255,255,255,.3); }
.form-card h3 { font-family: var(--display); font-size: 1.2rem; }
.form-card h3.mt { margin-top: 12px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .grid-2 { grid-template-columns: 1fr; } }

/* ===== Topbar profile link ===== */
.topbar-profile { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.topbar-profile:hover { text-decoration: none; opacity: .8; }

/* ===== Topbar search ===== */
.topbar-search { margin-left: 2px; }
.topbar-search input {
    width: 180px; padding: 8px 14px; border-radius: 10px; font-size: .86rem;
    background: rgba(9, 19, 45, .05); border: 1px solid var(--line); transition: .15s; color: var(--ink);
}
.topbar-search input:focus { background: var(--bg-2); width: 220px; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255, 90, 78,.14); }
@media (max-width: 900px) { .topbar-search { display: none; } }

/* ===== Search page ===== */
.search-page-form { display: flex; gap: 10px; margin-bottom: 18px; }
.search-page-form input { flex: 1; padding: 14px 18px; border-radius: 14px; font-size: 1rem; }
.search-count { margin-bottom: 16px; }
.search-results { display: flex; flex-direction: column; gap: 10px; }
.search-result { display: flex; gap: 16px; padding: 18px 20px; color: var(--ink); border-left: 3px solid var(--accent); transition: transform .12s, background .15s; }
.search-result:hover { transform: translateX(3px); background: var(--surface-2); text-decoration: none; }
.result-icon { font-size: 1.4rem; }
.result-body h3 { font-size: 1.02rem; margin-bottom: 4px; }
.result-meta { font-size: .76rem; color: var(--muted); text-transform: capitalize; }

/* ===== Activity feed ===== */
.activity-title { margin: 40px 0 16px; }
.activity-feed { display: flex; flex-direction: column; gap: 2px; }
.activity-item {
    --accent: var(--teal);
    display: flex; gap: 12px; padding: 12px 14px; color: var(--ink); border-radius: var(--radius-sm);
    align-items: flex-start; transition: background .12s; border-left: 2px solid transparent;
}
.activity-item:hover { background: var(--surface); border-left-color: var(--accent); text-decoration: none; }
.activity-text p { font-size: .93rem; line-height: 1.4; }
.activity-subject { color: var(--muted); }
.activity-meta { font-size: .76rem; color: var(--muted); }

/* ===== Notification bell ===== */
.bell {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 11px; font-size: 1.05rem; text-decoration: none;
    transition: background .15s;
}
.bell:hover { background: rgba(9, 19, 45, .06); text-decoration: none; }
.bell-badge {
    position: absolute; top: 2px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px;
    background: var(--danger); color: #1a0606; border-radius: 999px; font-size: .68rem; font-weight: 800;
    display: grid; place-items: center; box-shadow: 0 0 0 2px var(--bg);
}
.bell.has-unread { animation: bell-wiggle 2.5s ease-in-out 1; }
@keyframes bell-wiggle {
    0%, 92%, 100% { transform: rotate(0); }
    94% { transform: rotate(-12deg); } 96% { transform: rotate(10deg); } 98% { transform: rotate(-6deg); }
}

/* ===== Hey! notifications list ===== */
.notif-list { display: flex; flex-direction: column; gap: 8px; }
.notif { margin: 0; }
.notif-btn {
    width: 100%; display: flex; align-items: center; gap: 14px; text-align: left;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 16px 18px; cursor: pointer; font: inherit; color: var(--ink);
    transition: transform .12s, background .15s, border-color .15s;
}
.notif-btn:hover { transform: translateX(3px); background: var(--surface-2); border-color: var(--line-2); }
.notif.unread .notif-btn { border-left: 3px solid var(--teal); background: rgba(255, 90, 78,.05); }
.notif-body { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.notif-summary { font-size: .94rem; font-weight: 500; }
.notif.unread .notif-summary { font-weight: 600; }
.notif-meta { font-size: .76rem; color: var(--muted); }
.unread-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--teal); flex: 0 0 auto; }

/* ===== Phases & locking ===== */
.panel-head .phase-toggle { margin: 0; }
.phase-hint { margin: -8px 0 16px; }
.phase-num { display: inline-block; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
    color: var(--teal); background: rgba(255, 90, 78,.12); padding: 2px 8px; border-radius: 999px; margin-right: 6px; }
.todo-list.locked { opacity: .65; background:
    repeating-linear-gradient(45deg, var(--surface), var(--surface) 12px, var(--bg-2) 12px, var(--bg-2) 24px); }
.locked-note { font-size: .8rem; color: var(--muted); background: rgba(9, 19, 45, .04); padding: 8px 10px; border-radius: 8px; margin: 8px 0; }
/* Empty lists collapse to a single clickable header and sit at the bottom. */
.todo-list.is-empty { padding-top: 14px; padding-bottom: 14px; }
.todo-list.is-empty > summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.todo-list.is-empty > summary::-webkit-details-marker { display: none; }
.todo-list.is-empty:not([open]) { opacity: .72; }
.todo-list.is-empty > summary::after { content: "Empty — click to add"; font-size: .7rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; margin-left: auto; }
.todo-list.is-empty[open] > summary::after { content: "Collapse"; }
.todo-list.is-empty > summary .count-badge { display: none; }
.todo-item .checkbox:disabled { cursor: not-allowed; opacity: .5; }

/* ===== Subtasks ===== */
.subtask-items { list-style: none; margin: 0 0 0 30px; padding: 0; border-left: 2px solid var(--line); }
.todo-item.is-sub { padding: 6px 0 6px 12px; }
.todo-item.is-sub .todo-text { font-size: .86rem; }
.subcount { font-size: .72rem; font-weight: 600; color: var(--muted); background: rgba(9, 19, 45, .06); padding: 1px 7px; border-radius: 999px; margin-left: 6px; }
.toggle-form.blocked .checkbox { border-color: var(--warning); cursor: help; }
.add-sub { margin: 2px 0 8px 30px; }
.add-sub summary { list-style: none; cursor: pointer; font-size: .78rem; color: var(--muted); padding: 2px 0; }
.add-sub summary::-webkit-details-marker { display: none; }
.add-sub summary:hover { color: var(--primary); }
.add-sub-form { display: flex; gap: 6px; margin-top: 6px; }
.add-sub-form input { font-size: .85rem; padding: 6px 10px; }

/* ===== Recurring ===== */
.recurring-block { margin: 10px 0; padding: 10px 12px; background: rgba(250, 202, 44,.06); border: 1px solid rgba(250, 202, 44,.16); border-radius: var(--radius-sm); }
.recurring-label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); margin-bottom: 6px; }
.recurring-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .85rem; padding: 3px 0; }
.recurring-actions { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.btn-xs { padding: 3px 9px; font-size: .74rem; border-radius: 7px; line-height: 1.3; }
.recurring-now { white-space: nowrap; color: var(--primary); border-color: var(--line-2); }
.add-recurring { margin-top: 10px; }
.add-recurring summary { cursor: pointer; font-size: .82rem; color: var(--primary); font-weight: 600; list-style: none; }
.add-recurring summary::-webkit-details-marker { display: none; }
.add-recurring-form { margin-top: 10px; padding: 12px; background: rgba(9, 19, 45, .03); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.recurring-row { display: flex; gap: 8px; }
.add-recurring-form input, .add-recurring-form select { font-size: .85rem; }

/* ===== Timer ===== */
.timer-pill { display: inline-flex; align-items: center; gap: 7px; background: rgba(220,38,38,.1); color: #b91c1c;
    padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: .82rem; font-variant-numeric: tabular-nums; }
.timer-pill:hover { text-decoration: none; background: rgba(220,38,38,.16); color: #b91c1c; }
.timer-pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--danger); animation: pulse 1.4s infinite; flex: 0 0 auto; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(.8); } }
.timer-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; margin-bottom: 24px; }
.timer-live { display: flex; align-items: center; gap: 14px; }
.timer-info { display: flex; flex-direction: column; }
.timer-clock { font-size: 2rem; font-weight: 700; font-variant-numeric: tabular-nums; font-family: var(--display); }
.timer-start { display: flex; gap: 10px; flex: 1; flex-wrap: wrap; }
.timer-start input[type=text] { flex: 1; min-width: 160px; }
.timer-start select { width: auto; min-width: 140px; }

/* ===== Week / day bars ===== */
.week-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.week-nav { display: flex; align-items: center; gap: 8px; }
.week-label { font-weight: 600; }
.week-total strong { font-size: 1.1rem; }
.day-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; margin-bottom: 28px; align-items: end; }
.day-col { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.day-bar-wrap { height: 90px; width: 100%; display: flex; align-items: flex-end; background: rgba(9, 19, 45, .04); border-radius: 10px; overflow: hidden; }
.day-bar { width: 100%; background: linear-gradient(180deg, var(--teal), rgba(255, 90, 78,.4)); border-radius: 10px 10px 0 0; transition: height .3s; }
.day-col.is-today .day-bar { background: var(--grad); }
.day-name { font-weight: 600; font-size: .82rem; }
.day-col.is-today .day-name { color: var(--accent); }

/* ===== Timesheet grid ===== */
.timesheet-grid { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
@media (max-width: 820px) { .timesheet-grid { grid-template-columns: 1fr; } }
.entry-list { display: flex; flex-direction: column; gap: 10px; }
.entry-row { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-left: 3px solid var(--accent); }
.entry-mins { font-weight: 700; font-variant-numeric: tabular-nums; min-width: 56px; }
.entry-body { flex: 1; display: flex; flex-direction: column; }
.entry-title { font-weight: 500; font-size: .93rem; }
.byproject-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.byproject-row:last-child { border-bottom: none; }
.byproject-name { flex: 1; font-size: .9rem; }
.byproject-mins { font-weight: 600; font-variant-numeric: tabular-nums; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; }
.hm-row { display: flex; gap: 10px; }
.time-nudge { display: block; }

/* ===== Reminders ===== */
.reminder-list { display: flex; flex-direction: column; gap: 10px; }
.reminder { display: flex; align-items: center; gap: 14px; padding: 14px 18px; }
.reminder-icon { font-size: 1.3rem; }
.reminder-body { flex: 1; display: flex; flex-direction: column; }
.reminder-summary { font-weight: 500; }

/* ===== Brand logo (auth) ===== */
.auth-logo { width: 76px; height: 76px; border-radius: 20px; display: block; margin: 0 auto;
    box-shadow: 0 10px 34px rgba(0,0,0,.5); }

/* ===== Line icons ===== */
.icon { display: inline-block; vertical-align: -0.22em; flex: 0 0 auto; }
.tab { display: inline-flex; align-items: center; gap: 7px; }
.tab .icon { vertical-align: middle; }
.topnav a { display: inline-flex; align-items: center; gap: 6px; }
.topnav a .icon { opacity: .85; }
.bell .icon { stroke-width: 2; }
.tab.active .icon, .topnav a.active .icon { color: var(--teal); opacity: 1; }

/* ============================================================
   Marketing / landing page
   ============================================================ */
.lp-body { background: var(--bg); }

/* Nav */
.lp-nav { position: sticky; top: 0; z-index: 50; background: rgba(8,19,32,.72);
    backdrop-filter: saturate(160%) blur(16px); border-bottom: 1px solid var(--line); }
.lp-nav-inner { max-width: 1140px; margin: 0 auto; padding: 0 24px; height: 68px; display: flex; align-items: center; gap: 24px; }
.lp-nav-links { display: flex; gap: 6px; margin-left: 14px; }
.lp-nav-links a { color: var(--muted); font-weight: 500; font-size: .92rem; padding: 8px 12px; border-radius: 10px; }
.lp-nav-links a:hover { color: var(--ink); background: rgba(9, 19, 45, .05); text-decoration: none; }
.lp-nav-cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }
@media (max-width: 720px) { .lp-nav-links { display: none; } }

/* Hero */
.lp-hero { position: relative; overflow: hidden; padding: 84px 24px 40px; }
.lp-hero-glow { position: absolute; inset: -20% 0 auto 0; height: 600px; pointer-events: none;
    background: radial-gradient(620px 320px at 50% 0%, rgba(255, 90, 78,.18), transparent 70%),
                radial-gradient(520px 280px at 70% 10%, rgba(250, 202, 44,.12), transparent 70%); }
.lp-hero-inner { position: relative; max-width: 920px; margin: 0 auto; text-align: center; }
.lp-badge { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 600; color: var(--ink);
    background: rgba(9, 19, 45, .04); border: 1px solid var(--line-2); padding: 6px 14px; border-radius: 999px; margin-bottom: 26px; }
.lp-badge:hover { text-decoration: none; border-color: rgba(255, 90, 78,.4); }
.lp-badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 10px var(--teal); }
.lp-h1 { font-family: var(--display); font-weight: 800; font-size: clamp(2.4rem, 6.5vw, 4.4rem); line-height: 1.02; letter-spacing: -0.04em; }
.lp-grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-sub { max-width: 620px; margin: 22px auto 0; font-size: 1.18rem; color: var(--muted); line-height: 1.6; }
.lp-hero-cta { display: flex; gap: 12px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.lp-hero-cta .btn { padding: 13px 26px; font-size: 1rem; }
.lp-hero-note { margin-top: 16px; }

/* Hero mockup */
.lp-mockup { margin: 56px auto 0; max-width: 880px; background: var(--surface); border: 1px solid var(--line-2);
    border-radius: 18px; overflow: hidden; box-shadow: 0 40px 120px rgba(0,0,0,.55); text-align: left; }
.lp-mockup-bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.lp-dot { width: 11px; height: 11px; border-radius: 50%; background: #38475c; }
.lp-mockup-url { margin-left: 14px; font-size: .8rem; color: var(--muted); font-family: var(--font); }
.lp-mockup-body { padding: 22px; }
.lp-mock-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.lp-mock-proj { display: flex; align-items: center; gap: 12px; }
.lp-mock-proj-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.4rem;
    background: color-mix(in srgb, var(--teal) 18%, var(--surface-2)); }
.lp-mock-avatars { display: flex; }
.lp-mock-avatars .avatar { margin-left: -8px; border: 2px solid var(--surface); }
.lp-mock-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 620px) { .lp-mock-cols { grid-template-columns: 1fr; } }
.lp-mock-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.lp-mock-card-head { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: .92rem; margin-bottom: 10px; }
.lp-phase { font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--teal);
    background: rgba(255, 90, 78,.12); padding: 2px 7px; border-radius: 999px; }
.lp-count { margin-left: auto; font-size: .76rem; color: var(--muted); }
.lp-lock { margin-left: auto; font-size: .74rem; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.lp-mock-prog { height: 6px; background: rgba(9, 19, 45, .07); border-radius: 999px; overflow: hidden; margin-bottom: 12px; }
.lp-mock-prog div { height: 100%; background: var(--grad); }
.lp-mock-todos { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.lp-mock-todos li { display: flex; align-items: center; gap: 9px; font-size: .9rem; color: var(--ink); }
.lp-mock-todos li i { width: 18px; height: 18px; border-radius: 6px; border: 2px solid var(--line-2); flex: 0 0 auto; }
.lp-mock-todos li.done i { background: var(--grad); border-color: transparent; }
.lp-mock-todos li.done { color: var(--muted); text-decoration: line-through; }
.lp-mock-locked { opacity: .7; }

/* Sections */
.lp-section { max-width: 1100px; margin: 0 auto; padding: 64px 24px; }
.lp-section-head { text-align: center; max-width: 680px; margin: 0 auto 40px; }
.lp-h2 { font-family: var(--display); font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -0.03em; }
.lp-section-sub { margin-top: 14px; font-size: 1.08rem; }

/* Feature grid */
.lp-feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.lp-feature { padding: 26px; transition: transform .15s, border-color .15s, background .15s; }
.lp-feature:hover { transform: translateY(-3px); border-color: var(--line-2); background: var(--surface-2); }
.lp-feature-icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px;
    background: color-mix(in srgb, var(--teal) 16%, var(--surface-2)); color: var(--teal); margin-bottom: 16px; }
.lp-feature h3 { font-size: 1.12rem; margin-bottom: 8px; }
.lp-feature p { font-size: .92rem; line-height: 1.55; }

/* Workflow */
.lp-workflow { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 760px) { .lp-steps { grid-template-columns: 1fr; } }
.lp-step { padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.lp-step-num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; font-family: var(--display);
    font-weight: 800; font-size: 1.1rem; color: #09132d; background: var(--grad); margin-bottom: 16px; }
.lp-step h3 { font-size: 1.15rem; margin-bottom: 8px; }

/* Pricing */
.lp-pricing { display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); gap: 18px; justify-content: center; align-items: start; }
@media (max-width: 760px) { .lp-pricing { grid-template-columns: 1fr; } }
.lp-plan { padding: 30px; position: relative; }
.lp-plan h3 { font-size: 1.2rem; }
.lp-price { font-family: var(--display); font-weight: 800; font-size: 2.6rem; margin: 8px 0 4px; }
.lp-price span { font-size: .9rem; font-weight: 500; color: var(--muted); }
.lp-plan-list { list-style: none; display: flex; flex-direction: column; gap: 11px; margin: 20px 0 24px; }
.lp-plan-list li { display: flex; align-items: center; gap: 10px; font-size: .92rem; }
.lp-plan-list .icon { color: var(--teal); }
.lp-plan-pro { border-color: rgba(255, 90, 78,.45); box-shadow: 0 0 0 1px rgba(255, 90, 78,.2), 0 24px 60px rgba(0,0,0,.4); }
.lp-plan-tag { position: absolute; top: -11px; left: 30px; font-size: .7rem; font-weight: 700; color: #09132d;
    background: var(--grad); padding: 4px 12px; border-radius: 999px; }

/* CTA band */
.lp-cta { padding: 24px 24px 96px; }
.lp-cta-inner { max-width: 880px; margin: 0 auto; text-align: center; padding: 60px 32px; border-radius: 26px;
    background: linear-gradient(135deg, rgba(250, 202, 44,.12), rgba(255, 90, 78,.12)); border: 1px solid var(--line-2); }
.lp-cta .btn { margin-top: 26px; padding: 14px 30px; font-size: 1.02rem; }

/* Footer */
.lp-footer { border-top: 1px solid var(--line); padding: 48px 24px 28px; }
.lp-footer-inner { max-width: 1140px; margin: 0 auto; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.lp-footer-brand .brand-logo { height: 26px; margin-bottom: 10px; }
.lp-footer-links { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.lp-footer-links a { color: var(--muted); font-size: .9rem; }
.lp-footer-links a:hover { color: var(--ink); }
.lp-footer-fine { max-width: 1140px; margin: 28px auto 0; text-align: center; }

/* ===== Invitations ===== */
.invite-card { text-align: center; }
.invite-card .avatar.lg { margin: 0 auto 14px; }
.invite-project { font-family: var(--display); font-size: 1.6rem; margin: 6px 0 4px; }
.invite-actions { margin-top: 22px; }
.invite-pending { background: rgba(9, 19, 45, .06) !important; color: var(--muted); border: 1px dashed var(--line-2); margin-left: -8px; }
.add-existing { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }

/* ===== Toggle row ===== */
.toggle-row { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; padding: 6px 0; }
.toggle-row input[type=checkbox] { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--teal); flex: 0 0 auto; }

/* ===== Org switcher ===== */
.org-switcher { position: relative; }
.org-switcher summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(9, 19, 45, .03);
    font-size: .86rem; font-weight: 600; color: var(--ink); max-width: 180px; }
.org-switcher summary::-webkit-details-marker { display: none; }
.org-switcher summary:hover { background: rgba(9, 19, 45, .06); }
.org-chip-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.org-caret { color: var(--muted); font-size: .7rem; }
.org-pop { left: 0; right: auto; width: 240px; top: 46px; }
.org-pop-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 8px; }
.org-pop-item { margin: 0; }
.org-pop-item button { width: 100%; text-align: left; background: none; border: none; color: var(--ink); font: inherit;
    padding: 8px 10px; border-radius: 8px; cursor: pointer; display: flex; justify-content: space-between; }
.org-pop-item button:hover { background: rgba(9, 19, 45, .06); }
.org-pop-item button.current { color: var(--teal); font-weight: 600; }
.org-pop-foot { display: flex; align-items: center; gap: 7px; margin-top: 8px; padding-top: 10px;
    border-top: 1px solid var(--line); font-size: .86rem; color: var(--muted); }
.org-pop-foot:hover { color: var(--ink); text-decoration: none; }
@media (max-width: 680px) { .org-switcher { display: none; } }

/* ===== Member directory ===== */
.member-dir { display: flex; flex-direction: column; gap: 10px; }
.member-row { display: flex; align-items: center; gap: 14px; padding: 14px 18px; }
.member-row.pending { opacity: .8; }
.member-info { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.member-name { font-weight: 600; }
.member-info .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.role-badge { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
    padding: 3px 10px; border-radius: 999px; }
.role-owner  { color: var(--lime); background: rgba(250, 202, 44,.12); }
.role-admin  { color: var(--teal); background: rgba(255, 90, 78,.12); }
.role-member { color: var(--muted); background: rgba(9, 19, 45, .06); }
.member-actions { display: flex; align-items: center; gap: 8px; }
.inline-role select { padding: 6px 8px; font-size: .8rem; width: auto; }

/* ===== Priorities ===== */
.prio { display: inline-block; font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
    padding: 1px 7px; border-radius: 999px; vertical-align: 1px; }
.prio-1 { color: #2563eb; background: rgba(37,99,235,.1); }
.prio-2 { color: var(--warning); background: rgba(224,137,11,.14); }
.prio-3 { color: #c2410c; background: rgba(194,65,12,.1); }
.prio-4 { color: var(--danger); background: rgba(248,113,113,.16); }

/* ===== Do date ===== */
.do-date { font-size: .76rem; color: #2563eb; font-weight: 600; margin-left: 6px; }

/* ===== Add-todo extra rows ===== */
.add-todo-row { display: flex; gap: 8px; }
.add-todo-row select { font-size: .82rem; padding: 7px 9px; }
.mini-date { display: flex; align-items: center; gap: 6px; font-size: .76rem; color: var(--muted); flex: 1; }
.mini-date input[type=date] { font-size: .8rem; padding: 6px 8px; }

/* ===== Phase target date + cascade ===== */
.phase-date { margin: 6px 0 4px; }
.phase-date > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; font-size: .8rem; }
.phase-date > summary::-webkit-details-marker { display: none; }
.phase-target { font-weight: 600; color: var(--ink); }
.phase-target.muted { color: var(--muted); font-weight: 500; }
.phase-status { font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 1px 8px; border-radius: 999px; }
.phase-status.ahead { color: var(--success); background: rgba(74,222,128,.14); }
.phase-status.behind { color: var(--danger); background: rgba(248,113,113,.14); }
.phase-date-form { display: flex; gap: 6px; margin: 8px 0; }
.phase-date-form input { font-size: .8rem; padding: 6px 8px; }
.phase-shift { margin-top: 8px; }
.phase-shift-manual { margin-top: 8px; }
.phase-shift-manual summary { cursor: pointer; font-size: .76rem; color: var(--muted); list-style: none; }
.phase-shift-manual summary::-webkit-details-marker { display: none; }
.phase-shift-manual summary:hover { color: var(--primary); }
.phase-shift-form { display: flex; align-items: center; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.phase-shift-form input[type=number] { width: 70px; font-size: .8rem; padding: 6px 8px; }

/* ============================================================
   Landing v2 — distinctive summit / mission-control redesign
   (these rules come later in the file and override the originals)
   ============================================================ */
.lp-hero { position: relative; overflow: hidden; padding: 70px 24px 60px;
    background:
      radial-gradient(900px 480px at 78% 18%, rgba(255, 90, 78,.16), transparent 60%),
      radial-gradient(700px 420px at 10% 0%, rgba(250, 202, 44,.08), transparent 55%); }
.lp-topo { position: absolute; inset: 0; width: 100%; height: 100%; color: rgba(255, 90, 78,.14);
    pointer-events: none; animation: topo-drift 40s ease-in-out infinite alternate; }
@keyframes topo-drift { from { transform: translateY(0); } to { transform: translateY(-26px); } }

.lp-hero-grid { position: relative; max-width: 1180px; margin: 0 auto; display: grid;
    grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .lp-hero-grid { grid-template-columns: 1fr; text-align: center; } }

.lp-kicker { display: inline-flex; align-items: center; gap: 9px; font-size: .8rem; font-weight: 600;
    color: var(--ink); background: rgba(9, 19, 45, .04); border: 1px solid var(--line-2);
    padding: 7px 15px; border-radius: 999px; margin-bottom: 26px; }
.lp-kicker-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 12px var(--teal); }
.lp-h1 { font-family: var(--display); font-weight: 800; font-size: clamp(2.7rem, 6vw, 4.6rem);
    line-height: .98; letter-spacing: -0.04em; margin: 0; }
.lp-grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-sub { max-width: 540px; margin: 24px 0 0; font-size: 1.16rem; color: var(--muted); line-height: 1.6; }
@media (max-width: 900px) { .lp-sub { margin-left: auto; margin-right: auto; } }
.lp-hero-cta { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
@media (max-width: 900px) { .lp-hero-cta { justify-content: center; } }
.lp-cta-btn { padding: 14px 28px; font-size: 1.02rem; }
.lp-trust { display: flex; gap: 18px; margin-top: 24px; flex-wrap: wrap; color: var(--muted); font-size: .85rem; }
@media (max-width: 900px) { .lp-trust { justify-content: center; } }

/* Summit illustration */
.lp-summit { display: flex; justify-content: center; }
.lp-summit-svg { width: 100%; max-width: 440px; height: auto; filter: drop-shadow(0 22px 38px rgba(9,19,45,.16)); }
.lp-route { stroke-dashoffset: 0; animation: rope 18s linear infinite; }
@keyframes rope { to { stroke-dashoffset: -300; } }
.lp-camp circle { fill: #09132d; stroke: var(--teal); stroke-width: 3; }
.lp-camp text { fill: var(--ink); font-size: 12px; font-weight: 600; font-family: var(--font); }
.lp-camp { opacity: 0; animation: camp-pop .5s ease forwards; animation-delay: var(--d); }
@keyframes camp-pop { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: scale(1); } }
.lp-flag { opacity: 0; transform-origin: 305px 100px; animation: flag-plant .6s cubic-bezier(.2,1.4,.4,1) forwards; animation-delay: 2s; }
@keyframes flag-plant { from { opacity: 0; transform: translateY(-12px) scale(.6); } to { opacity: 1; transform: none; } }

/* POV band */
.lp-pov { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    background: rgba(9, 19, 45, .015); padding: 54px 24px; }
.lp-pov p { max-width: 880px; margin: 0 auto; text-align: center; font-family: var(--display);
    font-weight: 600; font-size: clamp(1.3rem, 3vw, 1.9rem); line-height: 1.35; letter-spacing: -0.02em; color: var(--ink); }
.lp-pov strong { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Route stages */
.lp-route-stages { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: stage; }
@media (max-width: 860px) { .lp-route-stages { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .lp-route-stages { grid-template-columns: 1fr; } }
.lp-route-stages li { position: relative; padding: 26px 22px; background: var(--surface);
    border: 1px solid var(--line); border-radius: var(--radius); }
.lp-route-stages li::before { content: ''; position: absolute; top: 0; left: 22px; right: 22px; height: 2px;
    background: linear-gradient(90deg, var(--teal), transparent); border-radius: 2px; }
.lp-stage-no { font-family: var(--display); font-weight: 800; font-size: 1.4rem; color: transparent;
    background: var(--grad); -webkit-background-clip: text; background-clip: text; }
.lp-route-stages h3 { font-size: 1.08rem; margin: 10px 0 6px; }
.lp-route-stages p { font-size: .92rem; line-height: 1.5; }

/* Mock priority chips */
.lp-mp { font-size: .6rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
    padding: 1px 7px; border-radius: 999px; margin-left: 6px; }
.lp-mp.prio-4 { color: var(--danger); background: rgba(248,113,113,.16); }
.lp-mp.do { color: #2563eb; background: rgba(37,99,235,.1); }
.lp-lock { margin-left: auto; font-size: .74rem; color: var(--muted); }

/* Feature cards — bordered, hover lift */
.lp-feature { padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    transition: transform .15s, border-color .15s, background .15s; }
.lp-feature:hover { transform: translateY(-4px); border-color: rgba(255, 90, 78,.4); background: var(--surface-2); }
.lp-feature-icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px;
    background: color-mix(in srgb, var(--teal) 16%, var(--surface-2)); color: var(--teal); margin-bottom: 16px; }

/* Pricing — bordered plans */
.lp-plan { padding: 30px; position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.lp-plan-pro { border-color: rgba(255, 90, 78,.45); box-shadow: 0 0 0 1px rgba(255, 90, 78,.18), 0 30px 70px rgba(0,0,0,.4); }

/* Finale */
.lp-finale { position: relative; overflow: hidden; padding: 96px 24px 110px; text-align: center; }
.lp-finale-peak { position: absolute; left: 0; bottom: 0; width: 100%; height: 220px; }
.lp-finale-inner { position: relative; max-width: 720px; margin: 0 auto; }
.lp-finale .lp-cta-btn { margin-top: 26px; }

/* ============================================================
   Light header (so the dark "wayvo" wordmark is legible)
   Scoped to .topbar and .lp-nav — the rest of the app stays dark.
   ============================================================ */
.topbar, .lp-nav {
    border-bottom: 1px solid rgba(15,25,42,.10);
    box-shadow: 0 1px 0 rgba(15,25,42,.04), 0 6px 24px rgba(8,19,32,.18);
}
/* Solid (no backdrop-filter) on .topbar: a blurred backdrop ancestor makes the
   overflowing mega-menu composite behind page content. .lp-nav keeps the blur. */
.topbar { background: #ffffff; }
.lp-nav { background: rgba(255,255,255,.95); backdrop-filter: saturate(160%) blur(16px); }

/* Nav links */
.topbar .topnav a, .lp-nav-links a { color: #51607a; }
.topbar .topnav a:hover, .lp-nav-links a:hover { background: rgba(15,25,42,.06); color: #0f192a; }
.topbar .topnav a.active { background: #0f192a; color: #fff; }
.topbar .topnav a.active .icon { color: var(--teal); }

/* Search */
.topbar-search input { background: rgba(15,25,42,.05); color: #0f192a; border-color: rgba(15,25,42,.10); }
.topbar-search input::placeholder { color: #8a97a8; }
.topbar-search input:focus { background: #fff; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255, 90, 78,.18); }

/* User area */
.topbar-profile, .topbar-name { color: #1a2332; }
.topbar .link-btn { color: #51607a; }
.topbar .link-btn:hover { color: #0f192a; }

/* Bell */
.topbar .bell { color: #1a2332; }
.topbar .bell:hover { background: rgba(15,25,42,.06); }
.topbar .bell-badge { box-shadow: 0 0 0 2px #fff; }

/* Ghost buttons sit on a light bg in the header → dark outline */
.topbar .btn-ghost, .lp-nav .btn-ghost {
    background: transparent; color: #1a2332; border-color: rgba(15,25,42,.16);
}
.topbar .btn-ghost:hover, .lp-nav .btn-ghost:hover { background: rgba(15,25,42,.05); }

/* Logo sizing on the light bar */
.brand-logo { height: 42px; }
@media (max-width: 560px) { .brand-logo { height: 34px; } }

/* ===== Attachments / Files ===== */
.file-upload { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.file-upload input[type=file] { font-size: .85rem; max-width: 260px; }
input[type=file] { color: var(--muted); font: inherit; }
input[type=file]::file-selector-button { font: inherit; font-weight: 600; font-size: .82rem; cursor: pointer;
    background: var(--surface-2); color: var(--ink); border: 1px solid var(--line-2); border-radius: 8px;
    padding: 7px 12px; margin-right: 10px; }
input[type=file]::file-selector-button:hover { background: rgba(9, 19, 45, .08); }

.attach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-top: 4px; }
.attach-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.attach-thumb { display: block; height: 110px; background-size: cover; background-position: center; background-color: var(--bg-2); }
.attach-meta { display: flex; flex-direction: column; padding: 9px 11px; gap: 2px; }
.attach-meta a { font-size: .84rem; font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.attach-meta span { font-size: .74rem; color: var(--muted); }
.attach-file { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px; color: var(--ink); height: 100%; }
.attach-file:hover { background: var(--surface-2); text-decoration: none; }
.attach-glyph { font-size: 1.7rem; }
.attach-name { font-size: .84rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.attach-size { font-size: .74rem; color: var(--muted); }
.attach-del { position: absolute; top: 6px; right: 6px; opacity: 0; transition: .15s; }
.attach-card:hover .attach-del { opacity: 1; }
.attach-del .del-x { background: rgba(8,19,32,.7); border-radius: 6px; width: 24px; height: 24px; color: #fff; }

/* ===== Dashboard banner ===== */
.db-banner { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius);
    background:
      radial-gradient(700px 300px at 92% -40%, rgba(255, 90, 78,.16), transparent 60%),
      radial-gradient(500px 260px at 4% -30%, rgba(250, 202, 44,.08), transparent 55%),
      var(--surface);
    padding: 30px 30px 0; margin-bottom: 26px; }
.db-banner { --brand: #ff5a4e; }
.db-topo { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--brand, #ff5a4e); opacity: .12; pointer-events: none; }
.db-banner .eyebrow { color: var(--brand, #ff5a4e); }
.db-brand-logo { max-height: 42px; max-width: 190px; object-fit: contain; display: block; margin-bottom: 14px; }
.db-banner-inner { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.db-banner-inner .lead { color: var(--muted); }
.db-banner .eyebrow { margin-bottom: 6px; }
.db-stats { position: relative; display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap;
    border-top: 1px solid var(--line); padding: 16px 0; }
.db-stat { display: flex; flex-direction: column; gap: 2px; padding: 8px 22px 8px 0; min-width: 120px; color: var(--ink); }
.db-stat:hover { text-decoration: none; }
.db-stat:not(:last-child) { border-right: 1px solid var(--line); }
.db-stat-n { font-family: var(--display); font-weight: 800; font-size: 1.9rem; line-height: 1; }
.db-stat-accent { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.db-stat-l { font-size: .8rem; color: var(--muted); }
.db-stat:hover .db-stat-l { color: var(--ink); }
.section-title-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }

/* ===== Summit mark (empty states) ===== */
.summit-mark { display: block; margin: 0 auto 16px; filter: drop-shadow(0 6px 16px rgba(255, 90, 78,.2)); }

/* ===== Hill Chart ===== */
.hill-add { position: relative; }
.hill-add > summary { list-style: none; }
.hill-add > summary::-webkit-details-marker { display: none; }
.hill-add-form { position: absolute; right: 0; top: 40px; z-index: 20; width: 280px;
    background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--radius);
    box-shadow: var(--shadow-lg); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.hill-colors { display: flex; gap: 8px; }
.hill-swatch { width: 26px; height: 26px; border-radius: 50%; cursor: pointer; position: relative; box-shadow: inset 0 0 0 2px rgba(9, 19, 45, .18); }
.hill-swatch input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.hill-swatch:has(input:checked) { box-shadow: 0 0 0 2px var(--ink), inset 0 0 0 2px rgba(255,255,255,.3); }
.hill-hint { margin: -8px 0 14px; }

.hill { position: relative; padding: 16px 16px 0; }
.hill-svg { display: block; width: 100%; height: 280px; }
.hill-mid { stroke: rgba(232,237,242,.12); }
.hill-axis { display: flex; justify-content: space-between; padding: 0 6px 14px; margin-top: -8px;
    font-size: .78rem; color: var(--muted); font-weight: 500; }
.hill-axis span:first-child::before { content: '↑ '; }
.hill-axis span:last-child::after { content: ' ↓'; }

/* dots overlay sits exactly over the 280px svg */
.hill-dots { position: absolute; left: 16px; right: 16px; top: 16px; height: 280px; pointer-events: none; }
.hill-dot { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column;
    align-items: center; pointer-events: auto; --c: var(--teal); }
.hill-bead { width: 22px; height: 22px; border-radius: 50%; background: var(--c); cursor: grab;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 28%, transparent), 0 4px 10px rgba(0,0,0,.4);
    touch-action: none; transition: transform .1s; }
.hill-bead:hover { transform: scale(1.12); }
.hill-dot.grabbing .hill-bead { cursor: grabbing; transform: scale(1.2); }
.hill-label { margin-top: 7px; font-size: .8rem; font-weight: 600; white-space: nowrap;
    background: var(--surface-2); border: 1px solid var(--line); padding: 2px 9px; border-radius: 999px;
    color: var(--ink); max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
.hill-del { position: absolute; top: -9px; right: -9px; opacity: 0; transition: .12s; }
.hill-dot:hover .hill-del { opacity: 1; }
.hill-del button { width: 20px; height: 20px; border-radius: 50%; border: none; cursor: pointer;
    background: var(--danger); color: #1a0606; font-weight: 800; font-size: .9rem; line-height: 1; }
.hill-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: .9rem; pointer-events: none; }

/* ============================================================
   Landing v3 — bigger mountain, no browser chrome, unique sections
   ============================================================ */
/* Announcement strip */
.lp-announce { display: flex; align-items: center; gap: 10px; justify-content: center;
    max-width: max-content; margin: 22px auto 0; padding: 8px 18px; border-radius: 999px;
    background: rgba(9, 19, 45, .04); border: 1px solid var(--line-2); color: var(--ink);
    font-size: .86rem; font-weight: 500; }
.lp-announce:hover { border-color: rgba(255, 90, 78,.45); text-decoration: none; }
.lp-announce-tag { font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em;
    color: #09132d; background: var(--grad); padding: 2px 9px; border-radius: 999px; }
.lp-announce-arrow { color: var(--teal); }

/* Bigger summit */
.lp-hero { padding-top: 36px; }
.lp-summit-svg { max-width: 560px; }
@media (max-width: 900px) { .lp-summit-svg { max-width: 420px; margin: 0 auto; } }

/* Problem band */
.lp-problem { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(9, 19, 45, .02), transparent); padding: 80px 24px; }
.lp-problem-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .lp-problem-inner { grid-template-columns: 1fr; gap: 32px; } }
.lp-problem-text { color: var(--muted); font-size: 1.08rem; line-height: 1.65; margin: 16px 0 24px; }
.lp-cascade { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.lp-cascade-row { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 14px; }
.lp-cc-name { font-size: .85rem; font-weight: 600; color: var(--muted); }
.lp-cc-bar { height: 8px; border-radius: 999px; background: rgba(9, 19, 45, .06); overflow: hidden; }
.lp-cc-bar b { display: block; height: 100%; background: var(--grad); border-radius: 999px; }
.lp-cc-bar.done b { background: var(--success); }
.lp-cc-date { font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lp-cc-date i { color: var(--teal); font-style: normal; font-weight: 600; }
.lp-cc-date.was { text-decoration: line-through; opacity: .6; }
.lp-cascade-note { font-size: .82rem; color: var(--ink); border-top: 1px solid var(--line); padding-top: 12px; }

/* Signature spotlights */
.lp-spot-wrap { max-width: 1000px; margin: 0 auto; padding: 64px 24px; display: flex; flex-direction: column; gap: 46px; }
.lp-spot { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.lp-spot-rev .lp-spot-copy { order: 2; }
@media (max-width: 860px) { .lp-spot { grid-template-columns: 1fr; gap: 26px; } .lp-spot-rev .lp-spot-copy { order: 0; } }
.lp-spot-kicker { display: inline-block; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
    color: var(--teal); margin-bottom: 12px; }
.lp-spot-copy h3 { font-family: var(--display); font-size: clamp(1.4rem, 2.6vw, 1.9rem); letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 12px; }
.lp-spot-copy h3 em { font-style: italic; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-spot-copy p { font-size: 1.02rem; line-height: 1.6; }
.lp-spot-visual { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }

.lp-mini-hill { width: 100%; height: auto; }
.lp-mini-axis { display: flex; justify-content: space-between; font-size: .72rem; color: var(--muted); margin-top: 4px; }

.lp-mini-phases { display: flex; flex-direction: column; gap: 10px; }
.lp-mph { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 12px; font-weight: 600; font-size: .92rem;
    background: var(--bg-2); border: 1px solid var(--line); }
.lp-mph b { margin-left: auto; font-weight: 700; color: var(--muted); }
.lp-mph-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.lp-mph.done { border-color: rgba(74,222,128,.3); } .lp-mph.done .lp-mph-dot { background: var(--success); }
.lp-mph.active { border-color: rgba(255, 90, 78,.4); } .lp-mph.active .lp-mph-dot { background: var(--teal); }
.lp-mph.locked { opacity: .6; }

.lp-mini-timer { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 16px; }
.lp-mt-pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--danger); animation: pulse 1.4s infinite; }
.lp-mt-clock { display: block; font-family: var(--display); font-weight: 800; font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.lp-mt-stop { margin-left: auto; font-size: .82rem; font-weight: 700; color: var(--danger); border: 1px solid rgba(248,113,113,.4); padding: 6px 14px; border-radius: 999px; }
.lp-mini-week { display: flex; align-items: flex-end; gap: 8px; height: 80px; }
.lp-mini-week span { flex: 1; background: linear-gradient(180deg, var(--teal), rgba(255, 90, 78,.3)); border-radius: 6px 6px 0 0; min-height: 4px; }
.lp-mini-week span.hot { background: var(--grad); }

/* For-teams */
.lp-team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 760px) { .lp-team-grid { grid-template-columns: 1fr; } }
.lp-team-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.lp-team-emoji { font-size: 1.8rem; }
.lp-team-card h3 { font-size: 1.15rem; margin: 12px 0 8px; }
.lp-team-card p { font-size: .94rem; line-height: 1.55; }

/* ===== Task statuses ===== */
.status-menu { position: relative; flex: 0 0 auto; }
.status-menu > summary { list-style: none; cursor: pointer; }
.status-menu > summary::-webkit-details-marker { display: none; }
.status-pill { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .02em;
    padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.st-open    { color: #5d6781; background: rgba(93,103,129,.12); }
.st-prog    { color: var(--teal); background: rgba(255, 90, 78,.14); }
.st-review  { color: var(--warning); background: rgba(250,204,21,.14); }
.st-blocked { color: var(--danger); background: rgba(248,113,113,.16); }
.st-done    { color: var(--success); background: rgba(74,222,128,.14); }
.status-pop { position: absolute; right: 0; top: 26px; z-index: 30; width: 200px; padding: 10px;
    background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--shadow-lg);
    display: flex; flex-direction: column; gap: 5px; }
.status-reason { font-size: .8rem; padding: 7px 9px; margin-bottom: 4px; }
.status-opt { text-align: left; border: 1px solid transparent; cursor: pointer; font: inherit; font-size: .82rem;
    font-weight: 600; padding: 6px 10px; border-radius: 8px; }
.status-opt.is-current { outline: 2px solid var(--line-2); }

/* status accent on the row */
.todo-item.status-blocked { border-left: 2px solid rgba(248,113,113,.6); padding-left: 8px; margin-left: -10px; }
.todo-item.status-in_review { border-left: 2px solid rgba(250,204,21,.5); padding-left: 8px; margin-left: -10px; }
.todo-item.status-in_progress { border-left: 2px solid rgba(255, 90, 78,.5); padding-left: 8px; margin-left: -10px; }

/* ===== Dependencies / blocked ===== */
.dep-badge { font-size: .68rem; font-weight: 700; color: var(--warning); background: rgba(250,204,21,.12);
    padding: 1px 8px; border-radius: 999px; margin-left: 6px; }
.blocked-reason { font-size: .72rem; color: var(--danger); margin-left: 6px; max-width: 180px;
    display: inline-block; vertical-align: bottom; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.todo-extras { display: flex; gap: 14px; margin: 2px 0 8px 30px; flex-wrap: wrap; }
.todo-extras .add-sub { margin: 0; }
.add-dep summary { color: var(--warning); }
.dep-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: .82rem; margin: 4px 0; }
.dep-row .dep-done { color: var(--muted); text-decoration: line-through; }
.add-dep select { font-size: .82rem; max-width: 200px; }

/* ===== Board filter ===== */
.todo-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.board-filter { display: flex; gap: 8px; }
.board-filter select { font-size: .84rem; padding: 7px 10px; width: auto; min-width: 120px; }
.filtered-out { display: none !important; }

/* ===== Workload ===== */
.workload-total { text-align: right; }
.workload-total .db-stat-n { display: block; }
.workload-list { padding: 8px 22px; }
.wl-row { display: grid; grid-template-columns: 220px 1fr auto; align-items: center; gap: 18px;
    padding: 16px 0; border-bottom: 1px solid var(--line); }
.wl-row:last-child { border-bottom: none; }
.wl-who { display: flex; align-items: center; gap: 12px; }
.wl-who strong { display: block; font-size: .95rem; }
.wl-bar-wrap { height: 12px; background: rgba(9, 19, 45, .05); border-radius: 999px; overflow: hidden; }
.wl-bar { height: 100%; background: var(--grad); border-radius: 999px; min-width: 0; transition: width .3s; }
.wl-counts { display: flex; gap: 12px; align-items: center; font-size: .82rem; white-space: nowrap; }
.wl-open { font-weight: 700; }
.wl-due { color: var(--accent); }
.wl-over { color: var(--danger); font-weight: 600; }
.wl-free { color: var(--success); font-weight: 600; }
@media (max-width: 720px) {
    .wl-row { grid-template-columns: 1fr; gap: 8px; }
    .wl-counts { flex-wrap: wrap; }
}

/* ===== Project favicon icon ===== */
.project-icon { position: relative; overflow: hidden; }
.pi-emoji { line-height: 1; }
.pi-fav { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
    padding: 22%; border-radius: inherit; background: color-mix(in srgb, var(--accent) 16%, var(--surface-2)); }
.project-head-main .project-icon { margin-bottom: 0; }

/* ===== Project domain editor ===== */
.proj-domain { margin-top: 8px; font-size: .85rem; }
.proj-domain > summary { list-style: none; cursor: pointer; color: var(--teal); display: inline-block; }
.proj-domain > summary::-webkit-details-marker { display: none; }
.proj-domain > summary:hover { text-decoration: underline; }
.proj-domain-form { display: flex; gap: 8px; margin-top: 8px; max-width: 320px; }
.proj-domain-form input { font-size: .85rem; padding: 7px 10px; }

/* Clickable domain + pencil edit */
.proj-domain-wrap { display: inline-flex; align-items: center; gap: 4px; position: relative; }
.proj-domain-link { display: inline-flex; align-items: center; gap: 6px; color: var(--primary); font-weight: 600; font-size: .9rem; }
.proj-domain-link:hover { color: var(--primary-d); text-decoration: none; }
.proj-domain-link:hover span:not(.proj-domain-ext) { text-decoration: underline; }
.proj-domain-fav { width: 15px; height: 15px; border-radius: 4px; flex: 0 0 auto; }
.proj-domain-ext { font-size: .72rem; opacity: .65; }
.proj-domain-edit { margin: 0; }
.proj-domain-edit > summary { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px;
    color: var(--muted); cursor: pointer; }
.proj-domain-edit > summary:hover { background: rgba(9, 19, 45, .06); color: var(--ink); text-decoration: none; }
.proj-domain-edit[open] > summary { background: rgba(9, 19, 45, .06); color: var(--ink); }
.proj-pm { position: relative; margin: 0; }
.proj-pm > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; }
.proj-pm > summary::-webkit-details-marker { display: none; }
.proj-pm-chip { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; color: var(--muted); white-space: nowrap; }
.proj-pm-chip strong { color: var(--ink); font-weight: 600; }
.proj-pm-chip .icon { color: var(--muted); opacity: .6; }
.proj-pm > summary:hover .proj-pm-chip { color: var(--ink); }
.proj-desc-edit .proj-desc { color: var(--muted); white-space: normal; }
.proj-desc-edit .proj-desc .icon { color: var(--muted); opacity: .6; vertical-align: middle; }
.proj-pop-form { position: absolute; top: 28px; left: 0; z-index: 20; display: flex; gap: 8px; align-items: center;
    background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; padding: 10px; box-shadow: var(--shadow-lg); }
.proj-pop-form input[type=text] { min-width: 240px; font-size: .85rem; padding: 7px 10px; }
.proj-pop-form select { font-size: .85rem; padding: 7px 10px; }
.proj-domain-edit .proj-domain-form { position: absolute; top: 30px; left: 0; z-index: 20; background: var(--surface);
    border: 1px solid var(--line-2); border-radius: 12px; padding: 10px; box-shadow: var(--shadow-lg); margin: 0; }

/* ===== Project activity strip (Basecamp-style, top of project) ===== */
.proj-activity { display: flex; align-items: flex-start; gap: 14px; background: var(--surface);
    border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 18px; margin-bottom: 18px; flex-wrap: wrap; }
.proj-activity-label { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em;
    color: var(--muted); padding-top: 14px; flex: 0 0 auto; }
.proj-activity .activity-feed { flex: 1; min-width: 240px; }
.proj-activity .activity-item { padding: 8px 10px; }

/* ===== Task select on timesheet ===== */
.timer-start .task-select { width: auto; min-width: 170px; max-width: 240px; }

/* ===== Aging + stalled badges ===== */
.age-badge { font-size: .68rem; font-weight: 700; padding: 1px 7px; border-radius: 999px; margin-left: 6px; }
.age-1 { color: var(--warning); background: rgba(250,204,21,.12); }
.age-2 { color: #c2410c; background: rgba(194,65,12,.1); }
.age-3 { color: var(--danger); background: rgba(248,113,113,.16); }
.stall-badge { display: inline-block; font-size: .66rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; margin-left: 8px; }
.stall-1 { color: var(--warning); background: rgba(250,204,21,.12); }
.stall-2 { color: var(--danger); background: rgba(248,113,113,.16); }

/* ===== Reports / health ===== */
.report-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 28px; }
@media (max-width: 720px) { .report-stats { grid-template-columns: 1fr 1fr; } }
.rs-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.rs-card.rs-bad { border-color: rgba(248,113,113,.4); }
.rs-card.rs-warn { border-color: rgba(250,204,21,.4); }
.rs-n { display: block; font-family: var(--display); font-weight: 800; font-size: 2.2rem; line-height: 1; }
.rs-l { font-size: .82rem; color: var(--muted); }
.rs-bad .rs-n { color: var(--danger); } .rs-warn .rs-n { color: var(--warning); }

.report-grid { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: start; }
@media (max-width: 860px) { .report-grid { grid-template-columns: 1fr; } }

.health-list { padding: 6px 18px; }
.health-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.health-row:last-child { border-bottom: none; }
.health-row .project-icon { width: 40px; height: 40px; margin: 0; font-size: 1.2rem; border-radius: 11px; }
.health-main { flex: 1; min-width: 0; }
.health-name { font-weight: 600; font-size: .95rem; display: flex; align-items: center; gap: 8px; }
.health-prog { margin: 8px 0 0; }
.risk-pill { font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--danger); background: rgba(248,113,113,.16); padding: 1px 8px; border-radius: 999px; }
.health-stats { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; font-size: .78rem; white-space: nowrap; }
.hs-pct { font-weight: 800; font-size: 1rem; }
.hs-bad { color: var(--danger); } .hs-warn { color: var(--warning); } .hs-stall { color: var(--muted); }

.bottle-list { padding: 4px 18px; }
.bottle-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.bottle-row:last-child { border-bottom: none; }
.bottle-row:hover { text-decoration: none; }
.bottle-name { font-weight: 500; font-size: .92rem; }
.bottle-icon { font-size: 1.1rem; }

.aging-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: .9rem; border-bottom: 1px solid var(--line); }
.aging-row:last-child { border-bottom: none; }
.aging-row b { margin-left: auto; font-size: 1.05rem; }
.age-dot { width: 10px; height: 10px; border-radius: 50%; }
.age-dot.age-1 { background: var(--warning); } .age-dot.age-2 { background: #fdba74; } .age-dot.age-3 { background: var(--danger); }
.overdue-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; }
.overdue-name { flex: 1; font-size: .9rem; }
.overdue-n { font-weight: 800; color: var(--danger); }

/* ============================================================
   Project card + favicon redesign (favicon = dominant app tile)
   ============================================================ */
.project-card {
    padding: 22px; border-radius: 20px;
    background:
        radial-gradient(360px 140px at 100% -30%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%),
        var(--surface);
}
.project-card::before { height: 4px; opacity: .9; }
.project-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }

/* Bigger icon box; favicon rendered as a crisp white app tile. */
.project-card .project-icon { width: 64px; height: 64px; border-radius: 18px; font-size: 2rem; margin: 0;
    box-shadow: 0 8px 22px rgba(0,0,0,.28), inset 0 0 0 1px rgba(9, 19, 45, .06); }
.pi-fav { padding: 16%; background: #fff;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }

/* Domain chip */
.project-domain-chip { font-size: .72rem; font-weight: 600; color: var(--muted);
    background: rgba(9, 19, 45, .05); border: 1px solid var(--line); padding: 4px 10px; border-radius: 999px;
    max-width: 56%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-card:hover .project-domain-chip { border-color: rgba(255, 90, 78,.35); color: var(--ink); }
.project-card h3 { font-size: 1.22rem; }

/* Project header: dominant favicon too */
.project-head-icon { width: 66px; height: 66px; border-radius: 18px; }
.project-head-main .pi-fav { padding: 15%; }

/* ============================================================
   Modern project banner (replaces the old .project-head)
   ============================================================ */
.proj-banner {
    --accent: var(--teal);
    position: relative; overflow: hidden; margin-bottom: 22px;
    border: 1px solid var(--line); border-radius: 22px; padding: 26px 28px 0;
    background:
        radial-gradient(620px 240px at 100% -55%, color-mix(in srgb, var(--accent) 15%, transparent), transparent 60%),
        radial-gradient(420px 220px at 0% -30%, rgba(250, 202, 44,.05), transparent 55%),
        var(--surface);
}
.proj-banner .db-topo { color: color-mix(in srgb, var(--accent) 13%, transparent); opacity: .6; }
.proj-banner-top { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.proj-banner-id { display: flex; align-items: center; gap: 18px; }
.proj-banner .project-head-icon { width: 72px; height: 72px; border-radius: 20px;
    box-shadow: 0 8px 20px rgba(9, 19, 45, .14), inset 0 0 0 1px rgba(9, 19, 45, .07); }
.proj-banner-titles h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -0.03em; }
.proj-banner-meta { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: .9rem; color: var(--muted); flex-wrap: wrap; }
.proj-banner-meta .proj-domain { margin: 0; }
.proj-desc { max-width: 520px; }
.proj-banner .member-stack { position: relative; }

.proj-banner-stats { position: relative; display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
    margin-top: 24px; padding: 16px 2px; border-top: 1px solid var(--line); }
.pb-stat { font-size: .86rem; color: var(--muted); }
.pb-stat b { font-family: var(--display); font-weight: 800; font-size: 1.25rem; color: var(--ink); margin-right: 5px; }
.pb-stat.pb-bad b { color: var(--danger); }
.pb-prog { flex: 1; min-width: 120px; height: 8px; background: rgba(9, 19, 45, .07); border-radius: 999px; overflow: hidden; }
.pb-prog div { height: 100%; background: var(--grad); border-radius: 999px; transition: width .3s; }

/* Sleeker tab bar */
.tabs { background: rgba(9, 19, 45, .025); padding: 5px; border-radius: 14px; gap: 2px; }
.tab { border-radius: 9px; }
.tab.active { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2), 0 2px 8px rgba(0,0,0,.2); }
.tab.active .icon { color: var(--teal); }

/* ===== Phase tracks (department lanes) ===== */
.track-head { margin: 6px 0 10px; }
.track-chip { display: inline-flex; align-items: center; gap: 7px; font-family: var(--display);
    font-weight: 700; font-size: .92rem; letter-spacing: -0.01em; color: var(--ink);
    padding: 5px 14px 5px 12px; border-radius: 999px; background: rgba(9, 19, 45, .04);
    border: 1px solid var(--line-2); }
.track-chip::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--tc, var(--teal)); }
.track-chip--general { color: var(--muted); }
.track-chip--general::before { background: var(--muted); }
.phase-date-form { flex-wrap: wrap; }
.phase-date-form input[type=text] { width: 110px; font-size: .8rem; padding: 6px 8px; }

/* ===== Bulk selection ===== */
.bulk-check { width: 16px; height: 16px; flex: 0 0 auto; accent-color: var(--teal); cursor: pointer;
    opacity: .35; transition: opacity .15s; margin-right: 2px; }
.bulk-check:checked, .todo-item:hover .bulk-check { opacity: 1; }
.todo-item:has(.bulk-check:checked) { background: rgba(255, 90, 78,.06); border-radius: 8px; }

.bulk-bar { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 140%);
    z-index: 60; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 14px;
    padding: 10px 14px; box-shadow: var(--shadow-lg); transition: transform .2s ease; max-width: 94vw; }
.bulk-bar.active { transform: translate(-50%, 0); }
.bulk-count { font-size: .85rem; font-weight: 600; white-space: nowrap; }
.bulk-count b { color: var(--teal); }
.bulk-bar select, .bulk-bar input[type=date] { width: auto; font-size: .82rem; padding: 6px 9px; }
.bulk-delete-btn { color: var(--danger); border-color: rgba(248,113,113,.3); }
.bulk-delete-btn:hover { background: rgba(248,113,113,.12); }
.bulk-cancel { background: none; border: none; color: var(--muted); font-size: 1.3rem; line-height: 1; cursor: pointer; padding: 0 4px; }
.bulk-cancel:hover { color: var(--ink); }

/* ===== Track roll-up ===== */
.track-head { display: flex; align-items: center; gap: 14px; }
.track-rollup { display: flex; align-items: center; gap: 10px; }
.track-rollup-bar { width: 120px; height: 6px; background: rgba(9, 19, 45, .07); border-radius: 999px; overflow: hidden; }
.track-rollup-bar span { display: block; height: 100%; background: var(--grad); border-radius: 999px; }
.track-rollup-n { font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ===== Hey! filter ===== */
.hey-tools { display: flex; align-items: center; gap: 14px; }
.hey-filter { display: inline-flex; background: rgba(9, 19, 45, .04); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.hey-tab { border: none; background: transparent; font: inherit; font-weight: 600; font-size: .84rem; color: var(--muted);
    padding: 6px 16px; border-radius: 999px; cursor: pointer; }
.hey-tab.active { background: var(--ink); color: #fff; }
.notif-routine .notif-summary { font-weight: 500; color: var(--muted); }
.notif-routine .notif-summary .icon { opacity: .7; }

/* ===== Search filters + highlight ===== */
.search-filters { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.search-chip { font-size: .82rem; font-weight: 600; color: var(--muted); padding: 6px 14px; border-radius: 999px;
    border: 1px solid var(--line); background: rgba(9, 19, 45, .03); }
.search-chip:hover { color: var(--ink); border-color: var(--line-2); text-decoration: none; }
.search-chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
mark { background: rgba(250, 202, 44,.28); color: var(--ink); border-radius: 3px; padding: 0 2px; }
.result-snippet { line-height: 1.5; }
.result-icon .icon { color: var(--teal); }

/* ===== Templates ===== */
.save-tpl { display: inline-block; margin-bottom: 14px; text-align: left; }
.save-tpl > summary { list-style: none; cursor: pointer; color: var(--muted); font-size: .9rem; }
.save-tpl > summary::-webkit-details-marker { display: none; }
.save-tpl > summary:hover { color: var(--ink); }
.save-tpl-form { display: flex; gap: 8px; margin: 10px 0; justify-content: center; flex-wrap: wrap; }
.save-tpl-form input { width: 240px; font-size: .85rem; }
.tpl-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }

/* ===== Calendar subscribe ===== */
.cal-card { max-width: 720px; }
.cal-url { display: flex; gap: 10px; margin: 6px 0 4px; }
.cal-url input { font-family: ui-monospace, monospace; font-size: .82rem; }
.cal-how { margin-top: 14px; }
.cal-how summary { cursor: pointer; color: var(--primary); font-weight: 600; font-size: .9rem; list-style: none; }
.cal-how summary::-webkit-details-marker { display: none; }
.cal-steps { margin: 12px 0 0 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; font-size: .9rem; color: var(--muted); }
.cal-steps strong { color: var(--ink); }

/* ===== Import ===== */
.import-help { margin-top: 18px; }
.import-help h3 { font-size: 1.05rem; }
.import-cols { list-style: none; margin: 10px 0; display: flex; flex-direction: column; gap: 6px; font-size: .9rem; color: var(--muted); }
.import-cols code { background: rgba(9, 19, 45, .06); padding: 1px 7px; border-radius: 6px; color: var(--teal); font-size: .85rem; }

/* ===== Command palette (⌘K) ===== */
.cmdk-trigger { display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
    background: rgba(15,25,42,.05); border: 1px solid var(--line); border-radius: 10px;
    padding: 7px 10px 7px 14px; color: var(--muted); font: inherit; font-size: .86rem; min-width: 180px; }
.cmdk-trigger:hover { border-color: var(--line-2); color: var(--ink); }
.cmdk-trigger-text { flex: 1; text-align: left; }
.cmdk-trigger-key { font-size: .72rem; font-weight: 700; background: rgba(15,25,42,.08); border: 1px solid var(--line);
    border-radius: 6px; padding: 1px 6px; color: var(--muted); }
@media (max-width: 900px) { .cmdk-trigger { min-width: 0; } .cmdk-trigger-text { display: none; } }

.cmdk { position: fixed; inset: 0; z-index: 200; display: flex; align-items: flex-start; justify-content: center; }
.cmdk[hidden] { display: none; }
.cmdk-backdrop { position: absolute; inset: 0; background: rgba(4,9,16,.6); backdrop-filter: blur(3px); }
.cmdk-panel { position: relative; margin-top: 12vh; width: 92%; max-width: 580px;
    background: var(--surface); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: var(--shadow-lg);
    overflow: hidden; animation: cmdk-in .14s ease; }
@keyframes cmdk-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.cmdk-input { width: 100%; border: none; background: transparent; color: var(--ink); font-size: 1.05rem;
    padding: 18px 20px; border-bottom: 1px solid var(--line); border-radius: 0; }
.cmdk-input:focus { outline: none; box-shadow: none; }
.cmdk-list { list-style: none; max-height: 50vh; overflow-y: auto; padding: 8px; }
.cmdk-item { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; cursor: pointer; }
.cmdk-item.active { background: var(--surface-2); }
.cmdk-type { font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted);
    background: rgba(9, 19, 45, .05); border: 1px solid var(--line); padding: 2px 8px; border-radius: 999px; min-width: 56px; text-align: center; }
.cmdk-item.active .cmdk-type { color: var(--teal); border-color: rgba(255, 90, 78,.4); }
.cmdk-label { font-size: .95rem; font-weight: 500; }
.cmdk-empty { padding: 18px; text-align: center; color: var(--muted); }
.cmdk-foot { display: flex; gap: 16px; align-items: center; padding: 10px 16px; border-top: 1px solid var(--line);
    font-size: .72rem; color: var(--muted); }
.cmdk-foot-k { margin-left: auto; }

/* ===== Task detail ===== */
.todo-link { color: var(--ink); }
.todo-link:hover { color: var(--teal); text-decoration: none; }
.todo-item.done .todo-link { color: var(--muted); }
.todo-comment-count { font-size: .72rem; color: var(--muted); margin-left: 6px; }
.todo-comment-count:hover { color: var(--teal); text-decoration: none; }

.task-detail .task-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 22px; }
.task-head h1 { font-family: var(--display); font-size: clamp(1.5rem, 3.5vw, 2.1rem); letter-spacing: -0.02em; }
.task-head h1.task-done { text-decoration: line-through; color: var(--muted); }
.checkbox.lg { width: 30px; height: 30px; border-radius: 9px; font-size: 1rem; margin-top: 4px; }
.checkbox.lg.done { background: var(--grad); border-color: transparent; }

.task-meta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px;
    padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 18px; }
.tm { display: flex; flex-direction: column; gap: 6px; }
.tm-l { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.tm-assignee { display: inline-flex; align-items: center; gap: 7px; font-size: .92rem; }
.task-completed-note { display: inline-flex; align-items: center; gap: 8px; background: rgba(22,163,74,.1);
    border: 1px solid rgba(22,163,74,.28); color: #15803d; padding: 8px 14px; border-radius: var(--radius-sm);
    margin-bottom: 16px; font-size: .9rem; }
.task-completed-note .icon { color: #15803d; }
.task-notes-view { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 10px; }
.task-notes-edit > summary { list-style: none; cursor: pointer; color: var(--teal); font-size: .88rem; font-weight: 600; }
.task-notes-edit > summary::-webkit-details-marker { display: none; }
.task-notes-input { width: 100%; margin-top: 8px; font: inherit; }

/* Task attachments */
.att-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.att-item { position: relative; }
.att-thumb { display: block; width: 96px; height: 96px; border-radius: 10px; border: 1px solid var(--line-2);
    background-size: cover; background-position: center; }
.att-doc { display: flex; align-items: center; gap: 8px; max-width: 220px; padding: 10px 12px; border-radius: 10px;
    background: var(--surface-2); border: 1px solid var(--line); color: var(--ink); }
.att-doc:hover { text-decoration: none; border-color: var(--line-2); }
.att-doc-ic { color: var(--teal); flex: 0 0 auto; }
.att-doc-name { font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att-del button { position: absolute; top: -7px; right: -7px; width: 22px; height: 22px; border-radius: 50%; border: none;
    background: var(--ink); color: #fff; cursor: pointer; font-size: 1rem; line-height: 1; display: grid; place-items: center; box-shadow: var(--shadow); }
.att-del button:hover { background: var(--danger); }
.att-upload { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.att-pick { cursor: pointer; }
.att-pick input { display: none; }
.att-pick span { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; font-weight: 600; color: var(--ink);
    background: var(--surface-2); border: 1px dashed var(--line-2); border-radius: 10px; padding: 9px 14px; }
.att-pick:hover span { border-color: var(--primary); color: var(--primary); }
.paste-toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 200;
    background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: .88rem; font-weight: 600; box-shadow: var(--shadow-lg); }
.avatar-img { background-size: cover; background-position: center; background-repeat: no-repeat; color: transparent; overflow: hidden; }
.mc-load { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: .82rem; color: var(--muted);
    background: rgba(9,19,45,.04); border: 1px solid var(--line); padding: 4px 10px; border-radius: 999px; }
.mc-load:hover { color: var(--ink); border-color: var(--line-2); text-decoration: none; }
.mc-load strong { color: var(--ink); }
.mc-load .icon { color: var(--teal); }
.mc-merge { display: inline-block; }
.mc-merge > summary { list-style: none; cursor: pointer; }
.mc-merge > summary::-webkit-details-marker { display: none; }
.mc-merge-form { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.mc-merge-form select { font-size: .82rem; padding: 6px 8px; max-width: 160px; }

/* ===== Cleanup / duplicates ===== */
.cu-count { font-size: .8rem; font-weight: 700; color: var(--muted); background: rgba(9,19,45,.06); padding: 1px 9px; border-radius: 999px; margin-left: 6px; }
.cu-group { padding: 18px 20px; margin-bottom: 14px; }
.cu-group-h { font-size: 1.02rem; margin-bottom: 6px; }
.cu-item { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); }
.cu-item:first-of-type { border-top: none; }
.cu-item-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cu-del { color: var(--danger); border-color: rgba(220,38,38,.3); white-space: nowrap; }
.cu-del:hover:not(:disabled) { background: rgba(220,38,38,.08); }
.cu-del:disabled { color: var(--muted); opacity: .6; cursor: default; }
.cu-hint { margin-top: 8px; }

/* ===== Suggestion box ===== */
.sg-grid { display: grid; grid-template-columns: 340px 1fr; gap: 22px; align-items: start; }
@media (max-width: 820px) { .sg-grid { grid-template-columns: 1fr; } }
.sg-form { position: sticky; top: 84px; }
@media (max-width: 820px) { .sg-form { position: static; } }
.sg-item { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; margin-bottom: 10px; }
.sg-check-form { margin: 0; flex: 0 0 auto; }
.sg-item .checkbox { width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--line-2); background: transparent;
    cursor: pointer; display: grid; place-items: center; color: #fff; transition: .15s; padding: 0; margin-top: 1px; }
.sg-item .checkbox:hover { border-color: var(--success); }
.sg-item .checkbox.checked { background: var(--success); border-color: transparent; }
.sg-item .checkbox .icon { width: 13px; height: 13px; stroke-width: 3; }
.sg-cat-ic { font-size: 1.1rem; flex: 0 0 auto; margin-top: 1px; }
.sg-main { flex: 1; min-width: 0; }
.sg-title { font-size: .98rem; font-weight: 600; color: var(--ink); }
.sg-body { font-size: .9rem; color: var(--muted); margin-top: 4px; line-height: 1.5; }
.sg-meta { display: flex; align-items: center; gap: 7px; font-size: .78rem; color: var(--muted); margin-top: 8px; }
.sg-tag { font-size: .64rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: 2px 7px; border-radius: 999px; margin-left: 4px; vertical-align: middle; }
.sg-tag-feature { color: #2563eb; background: rgba(37,99,235,.1); }
.sg-tag-fix { color: #c2410c; background: rgba(194,65,12,.1); }
.sg-done { opacity: .7; }
.sg-done .sg-title { text-decoration: line-through; color: var(--muted); }

/* ===== Connectors (project tab) ===== */
.conn-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px;
    padding: 22px 24px; border-radius: var(--radius); border: 1px solid var(--line);
    background: radial-gradient(520px 200px at 100% -40%, rgba(255,90,78,.12), transparent 60%), var(--surface); }
.conn-back { font-size: .82rem; font-weight: 600; color: var(--muted); }
.conn-back:hover { color: var(--ink); text-decoration: none; }
.conn-title { font-family: var(--display); font-size: 1.5rem; margin: 8px 0 2px; }
.conn-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.conn-settings-link { font-size: .82rem; font-weight: 600; color: var(--muted); align-self: center; }
.conn-settings-link:hover { color: var(--ink); }

.conn-empty { text-align: center; padding: 40px 24px; }
.conn-empty-ic { font-size: 2.4rem; }
.conn-empty h3 { font-family: var(--display); font-size: 1.2rem; margin: 8px 0 4px; }

.conn-section { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 16px; box-shadow: var(--shadow); }
.conn-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.conn-sec-head h3 { font-family: var(--display); font-size: 1.15rem; }
.conn-sec-actions { display: inline-flex; align-items: center; gap: 12px; }

.conn-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 0 0 6px; }
@media (max-width: 640px) { .conn-stats { grid-template-columns: repeat(2, 1fr); } }
.conn-stat { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; }
.conn-stat-ic { font-size: 1.1rem; }
.conn-stat-n { display: block; font-family: var(--display); font-weight: 800; font-size: 1.5rem; color: var(--ink); margin-top: 4px; }
.conn-stat-l { font-size: .78rem; color: var(--muted); }
.conn-pos { display: inline-grid; place-items: center; min-width: 26px; height: 22px; padding: 0 6px; border-radius: 6px;
    font-size: .8rem; font-weight: 700; background: rgba(22,163,74,.12); color: #15803d; }
.conn-h { font-family: var(--display); font-size: 1.05rem; margin: 18px 0 10px; }
.conn-trend { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.conn-trend-card { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px;
    display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 2px 8px; }
.conn-trend-l { font-size: .78rem; color: var(--muted); grid-column: 1 / -1; }
.conn-trend-n { font-family: var(--display); font-weight: 800; font-size: 1.4rem; color: var(--ink); }
.conn-trend-d { font-size: .8rem; font-weight: 700; }
.conn-trend-d.up { color: var(--success); } .conn-trend-d.down { color: var(--danger); }
.conn-trend-card .spark { grid-column: 1 / -1; width: 100%; height: 36px; margin-top: 6px; }

/* ===== PM assignment board ===== */
.pmb-toolbar { position: sticky; top: 72px; z-index: 20; display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; padding: 12px 16px; margin-bottom: 14px; box-shadow: var(--shadow); }
.pmb-pick { display: flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 600; color: var(--muted); }
.pmb-pick select { width: auto; min-width: 200px; }
.pmb-table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.pmb-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.pmb-table th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted);
    padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.pmb-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.pmb-table tr:last-child td { border-bottom: none; }
.pmb-table tbody tr:hover { background: rgba(9,19,45,.02); }
[data-theme="dark"] .pmb-table tbody tr:hover { background: rgba(255,255,255,.04); }
.pmb-check { width: 40px; }
.pmb-check input { width: 17px; height: 17px; accent-color: var(--teal); }
.pmb-name { font-weight: 600; color: var(--ink); display: block; }
.pmb-name:hover { color: var(--teal); text-decoration: none; }
.pmb-desc { max-width: 380px; color: var(--muted); }
.pmb-pm { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 500; }
.conn-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.conn-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.conn-table th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted);
    padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.conn-table td { padding: 9px 12px; border-bottom: 1px solid var(--line); }
.conn-table tr:last-child td { border-bottom: none; }
.conn-url { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conn-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.conn-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px;
    background: var(--surface); border: 1px solid var(--line); font-size: .85rem; color: var(--ink); }
.conn-chip img { width: 16px; height: 16px; border-radius: 4px; }
.conn-chip:hover { border-color: var(--line-2); text-decoration: none; }
.conn-ai { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 22px 18px; }

/* ===== Rendered markdown ===== */
.markdown { color: var(--ink); line-height: 1.6; font-size: .94rem; }
.markdown h1 { font-family: var(--display); font-size: 1.5rem; margin: 20px 0 10px; letter-spacing: -.02em; }
.markdown h2 { font-family: var(--display); font-size: 1.2rem; margin: 20px 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.markdown h3 { font-size: 1.05rem; margin: 16px 0 6px; }
.markdown h4 { font-size: .96rem; margin: 14px 0 6px; }
.markdown p { margin: 0 0 12px; }
.markdown ul, .markdown ol { margin: 0 0 12px; padding-left: 22px; }
.markdown li { margin: 4px 0; }
.markdown a { color: var(--teal); text-decoration: underline; }
.markdown code { background: rgba(9,19,45,.07); padding: 1px 6px; border-radius: 5px; font-size: .9em; }
.markdown hr { border: none; border-top: 1px solid var(--line); margin: 18px 0; }
.markdown blockquote { margin: 0 0 14px; padding: 10px 16px; border-left: 3px solid var(--teal);
    background: rgba(255,90,78,.05); border-radius: 0 8px 8px 0; color: var(--ink); }
.markdown .md-table { width: 100%; border-collapse: collapse; margin: 6px 0 16px; font-size: .9rem; display: block; overflow-x: auto; }
.markdown .md-table th, .markdown .md-table td { border: 1px solid var(--line); padding: 8px 11px; text-align: left; vertical-align: top; }
.markdown .md-table th { background: var(--surface-2); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .02em; }
[data-theme="dark"] .markdown code { background: rgba(255,255,255,.08); }

/* Inline (embedded/pasted) images in bodies & comments */
.md-img { max-width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line); margin: 6px 0; display: block; }
.prose .md-img { max-width: 480px; }
.comment .md-img, .comment-body .md-img { max-width: 300px; }

/* Overview connectors summary card */
.ov-connectors { display: block; color: var(--ink); position: relative; overflow: hidden; padding-top: 18px; }
.ov-connectors::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad); }
.ov-connectors:hover { text-decoration: none; border-color: rgba(255,90,78,.4); box-shadow: var(--shadow-lg); }
.ov-connectors h3 { margin-bottom: 12px; display: flex; align-items: center; gap: 7px; }
.ov-conn-stats { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 6px; }
.ov-conn-stats span { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 1px;
    background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 7px 11px; font-size: .72rem; color: var(--muted); }
.ov-conn-stats strong { color: var(--ink); font-size: 1.15rem; font-family: var(--display); font-weight: 800; line-height: 1; }
.ov-connectors > p.muted { margin: 0 0 12px; padding-left: 2px; }
.ov-conn-ai { display: inline-flex; align-items: center; gap: 6px; font-size: .86rem; font-weight: 600; margin: 4px 0 12px;
    padding: 6px 12px; background: rgba(255,90,78,.06); border: 1px solid rgba(255,90,78,.18); border-radius: 999px; }
.ov-conn-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; font-size: .85rem; font-weight: 700; color: var(--teal); }
.ov-connectors:hover .ov-conn-link { gap: 9px; }
.mc-dept-form { margin: 0; }
.mc-dept-form input { font-size: .82rem; padding: 6px 10px; max-width: 160px; }

/* ===== Reports (output) ===== */
.rp-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 18px 0 24px; }
@media (max-width: 640px) { .rp-summary { grid-template-columns: 1fr; } }
.rp-stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.rp-stat-n { display: block; font-family: var(--display); font-weight: 800; font-size: 2.1rem; line-height: 1.1; letter-spacing: -.02em; color: var(--ink); }
.rp-stat-l { font-size: .86rem; color: var(--muted); margin-top: 2px; }
.rp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
@media (max-width: 760px) { .rp-grid { grid-template-columns: 1fr; } }
.rp-card-wide { grid-column: 1 / -1; }
.rp-card { padding: 22px 24px; }
.rp-card h3 { font-family: var(--display); font-size: 1.08rem; margin: 0 0 6px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.rp-row { display: grid; grid-template-columns: minmax(140px, 1.1fr) 1fr 76px; align-items: center; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.rp-row:last-child { border-bottom: none; }
.rp-row-label { display: flex; align-items: center; gap: 9px; min-width: 0; }
.rp-row-name { font-size: .92rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-row-sub { font-size: .76rem; color: var(--muted); }
.rp-dot { width: 11px; height: 11px; border-radius: 4px; flex: 0 0 auto; }
.rp-row-bar { height: 10px; background: rgba(9,19,45,.06); border-radius: 999px; overflow: hidden; }
.rp-row-bar span { display: block; height: 100%; border-radius: 999px; transition: width .4s ease; }
.rp-row-val { font-size: .9rem; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.rp-range { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 18px; }
.rp-rbtn { padding: 6px 13px; border-radius: 999px; font-size: .82rem; font-weight: 600; background: var(--surface); border: 1px solid var(--line-2); color: var(--muted); }
.rp-rbtn:hover { color: var(--ink); border-color: var(--ink); text-decoration: none; }
.rp-rbtn.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.rp-table-wrap { overflow-x: auto; padding: 4px 8px; }
.rp-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.rp-table th { text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.rp-table td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.rp-table tbody tr:last-child td { border-bottom: none; }
.rp-table tbody tr:hover { background: rgba(9,19,45,.02); }
[data-theme="dark"] .rp-table tbody tr:hover { background: rgba(255,255,255,.04); }
.rp-proj { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; }
.rp-proj:hover { color: var(--teal); text-decoration: none; }
.rp-proj + .muted { display: block; margin-left: 17px; }
.rp-fav { width: 16px; height: 16px; border-radius: 4px; }
.rp-pm { display: inline-flex; align-items: center; gap: 6px; }
.rp-prog { display: flex; align-items: center; gap: 8px; min-width: 120px; }
.rp-prog-bar { flex: 1; height: 7px; background: rgba(9,19,45,.08); border-radius: 999px; overflow: hidden; }
.rp-prog-bar span { display: block; height: 100%; background: var(--grad); }
.rp-prog-n { font-size: .8rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.rp-bad { color: var(--danger); font-weight: 700; }
.rp-warn { color: var(--warning); font-weight: 700; }
.rp-trend { font-size: .76rem; font-weight: 700; }
.rp-trend.up { color: var(--success); } .rp-trend.down { color: var(--danger); }

/* Reports: range row + CSV + retainers */
.rp-range { justify-content: space-between; align-items: center; }
.rp-rbtns { display: flex; gap: 6px; flex-wrap: wrap; }
.rp-csv { font-size: .82rem; font-weight: 600; color: var(--primary); padding: 6px 13px; border: 1px solid var(--line-2); border-radius: 999px; }
.rp-csv:hover { border-color: var(--primary); text-decoration: none; }
.rp-note { margin: -6px 0 16px; }
.rp-budget-form { display: inline-flex; align-items: center; gap: 4px; }
.rp-budget-in { width: 64px; padding: 5px 7px; border: 1px solid var(--line-2); border-radius: 7px; font-size: .85rem; background: var(--surface); color: var(--ink); font-variant-numeric: tabular-nums; }
.rp-budget-unit { font-size: .8rem; color: var(--muted); }
.rp-budget-save { border: none; background: var(--surface-2); color: var(--success); width: 26px; height: 26px; border-radius: 7px; cursor: pointer; font-weight: 700; }
.rp-budget-save:hover { background: var(--success); color: #fff; }
.rp-rem.neg { color: var(--danger); font-weight: 700; }
.rp-prog-ret .rp-prog-bar span { background: var(--success); }
.rp-prog-ret.warn .rp-prog-bar span { background: var(--warning); }
.rp-prog-ret.over .rp-prog-bar span { background: var(--danger); }
.rp-prog-ret.warn .rp-prog-n { color: var(--warning); }
.rp-prog-ret.over .rp-prog-n { color: var(--danger); }
.ov-ret-nums { font-size: .95rem; margin-bottom: 8px; }
.ov-retainer .rp-prog { min-width: 0; margin-bottom: 6px; }

/* Deliverables (plan spec) */
.dlv-list { margin: 4px 0 0; display: grid; gap: 0; }
.dlv-item { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.dlv-item:last-child { border-bottom: none; }
.dlv-item dt { color: var(--muted); font-size: .85rem; }
.dlv-item dd { margin: 0; font-weight: 600; text-align: right; }
.dlv-chip { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line-2); font-size: .8rem; font-weight: 600; }
.dlv-form .dlv-rows { display: grid; gap: 7px; margin: 6px 0; }
.dlv-row { display: flex; align-items: center; gap: 6px; }
.dlv-row .dlv-label { flex: 1 1 40%; min-width: 0; }
.dlv-row .dlv-value { flex: 1 1 40%; min-width: 0; }
.dlv-row input, .dlv-row select { padding: 6px 8px; border: 1px solid var(--line-2); border-radius: 7px; font-size: .85rem; background: var(--surface); color: var(--ink); }
.dlv-del { flex: 0 0 auto; width: 26px; height: 26px; border: 1px solid var(--line-2); background: var(--surface); color: var(--muted); border-radius: 7px; cursor: pointer; line-height: 1; font-size: 1.05rem; }
.dlv-del:hover { color: #fff; background: var(--danger); border-color: var(--danger); }
.dlv-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.dlv-tpl-link { display: inline-block; margin-top: 8px; }
/* Delivered vs. promised */
.dlv-item.tracked { display: block; }
.dlv-track-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.dlv-track-head dt { color: var(--muted); font-size: .85rem; }
.dlv-track-head dd { margin: 0; font-weight: 600; }
.dlv-prog { min-width: 0; margin: 6px 0 2px; }
.dlv-prog.met .rp-prog-bar span { background: var(--success); }
.dlv-prog.partial .rp-prog-bar span { background: var(--accent); }
.dlv-prog.none .rp-prog-bar span { background: var(--line-2); }
.dlv-prog.met .rp-prog-n { color: var(--success); }
.deliv-recur { display: flex; align-items: flex-start; gap: 7px; margin-top: 7px; font-size: .8rem; color: var(--muted); cursor: pointer; line-height: 1.3; }
.deliv-recur input { margin-top: 1px; }

/* Font Awesome (duotone) — house style */
.i-emoji { font-style: normal; }
/* FA glyphs reusing the legacy .icon slot keep consistent baseline */
i.icon[class*="fa-"] { vertical-align: -0.125em; line-height: 1; }
/* Duotone defaults: a touch more presence on the secondary layer */
:root { --fa-secondary-opacity: 0.42; }
/* Signature/header icons get the coral→gold brand duotone */
.ov-block h3, .ov-recap-head h3, .conn-title, .panel-head h2 { display: inline-flex; align-items: center; gap: 9px; }
.ov-block h3 > i[class*="fa-"], .ov-recap-head h3 > i[class*="fa-"],
.conn-title > i[class*="fa-"], .panel-head h2 > i[class*="fa-"] {
    color: var(--primary); font-size: 1em; width: 1.1em; text-align: center; flex: 0 0 auto;
    --fa-secondary-color: var(--accent); --fa-secondary-opacity: 0.8;
}
/* AI surfaces share one signature: coral wand, gold sparkles */
.ov-recap-head h3 > .fa-wand-magic-sparkles,
.conn-ai-head h3 > .fa-wand-magic-sparkles { color: var(--primary); --fa-secondary-color: var(--accent); --fa-secondary-opacity: 1; }
/* Keep the small in-checkbox check the right size when routed to FA */
.sg-item .checkbox i.fa-square-check { font-size: 13px; }
/* Template editor (settings) wider rows with type + options + track */
.dlv-thead { display: none; }
.dlv-row-tpl .dlv-type { flex: 0 0 100px; }
.dlv-row-tpl .dlv-opts { flex: 1 1 28%; min-width: 0; }
.dlv-row-tpl .dlv-monthly { flex: 0 0 70px; }
.dlv-row-tpl .dlv-track { flex: 1 1 22%; min-width: 0; }
@media (min-width: 820px) {
    .dlv-thead { display: grid; grid-template-columns: 1fr 100px 1fr 70px 1fr 26px; gap: 6px; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 2px; }
}

/* Project Overview: AI catch-up card */
.ov-recap { position: relative; padding: 18px 20px; border-color: rgba(255,90,78,.25);
    background: radial-gradient(420px 160px at 100% -30%, rgba(255,90,78,.07), transparent 60%), var(--surface); }
.ov-recap-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.ov-recap-head h3 { font-family: var(--display); font-size: 1.15rem; }
.ov-recap-body { font-size: .92rem; }
.ov-recap-body p:first-child { margin-top: 0; }

/* ===== Avatar focal-point picker ===== */
.avatar.xl { width: 84px; height: 84px; font-size: 1.6rem; }
.ap-body { display: flex; align-items: center; gap: 18px; margin: 12px 0 6px; padding: 14px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.ap-preview { flex: 0 0 auto; box-shadow: inset 0 0 0 1px rgba(9,19,45,.08); }
.ap-controls { flex: 1; min-width: 0; }
.ap-slider { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; font-size: .78rem; color: var(--muted); }
.ap-slider input[type="range"] { width: 100%; accent-color: var(--primary); }
.task-blocked { background: rgba(220,38,38,.08); border: 1px solid rgba(220,38,38,.25); color: #b91c1c;
    padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 18px; font-size: .92rem; }
.task-section { margin: 22px 0; }
.task-section h3 { font-size: 1rem; margin-bottom: 10px; }
.task-dep { padding: 4px 0; }
.task-dep .dep-done { color: var(--muted); text-decoration: line-through; }

/* ===== Task detail edit form ===== */
.task-check-static { width: 28px; height: 28px; border-radius: 9px; border: 2px solid var(--line-2);
    display: grid; place-items: center; color: #09132d; font-weight: 800; flex: 0 0 auto; margin-top: 4px; }
.task-check-static.done { background: var(--grad); border-color: transparent; }
.task-title-input { font-family: var(--display); font-weight: 700; font-size: clamp(1.4rem, 3vw, 2rem);
    letter-spacing: -0.02em; border: 1px solid transparent; background: transparent; padding: 4px 8px; }
.task-title-input:hover { border-color: var(--line); }
.task-title-input.task-done { text-decoration: line-through; color: var(--muted); }
.task-meta-grid label.tm select, .task-meta-grid label.tm input { font-size: .9rem; padding: 8px 10px; }
.task-blocked-field { margin-bottom: 18px; }

/* ===== @mentions ===== */
.mention { color: var(--teal); font-weight: 600; background: rgba(255, 90, 78,.1); padding: 0 4px; border-radius: 5px; }
.comment-form-main { position: relative; }
.mention-menu { position: absolute; left: 0; bottom: 100%; margin-bottom: 6px; z-index: 40; list-style: none;
    width: 240px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 12px;
    box-shadow: var(--shadow-lg); padding: 6px; max-height: 220px; overflow-y: auto; }
.mention-menu li { padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: .9rem; font-weight: 600; }
.mention-menu li span { color: var(--muted); font-weight: 400; margin-left: 6px; font-size: .82rem; }
.mention-menu li.active { background: rgba(255, 90, 78,.14); }

/* ===== Onboarding empty state ===== */
.onboard { display: flex; gap: 28px; padding: 36px; align-items: center; flex-wrap: wrap; }
.onboard-art { flex: 0 0 auto; }
.onboard-body { flex: 1; min-width: 260px; }
.onboard-body h2 { font-size: 1.5rem; margin-bottom: 8px; }
.onboard-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; }
@media (max-width: 720px) { .onboard-actions { grid-template-columns: 1fr; } }
.onboard-opt { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; text-align: left;
    padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2);
    color: var(--ink); transition: transform .12s, border-color .15s, background .15s; }
.onboard-opt:hover { transform: translateY(-3px); border-color: rgba(255, 90, 78,.4); background: var(--surface-2); text-decoration: none; }
.onboard-opt strong { font-size: 1rem; }
.onboard-opt-ic { font-size: 1.5rem; margin-bottom: 6px; }
.onboard-opt--form { padding: 0; }
.onboard-opt-btn { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; text-align: left;
    width: 100%; height: 100%; padding: 18px; background: none; border: none; cursor: pointer; font: inherit; color: var(--ink); }

/* ============================================================
   Mobile responsiveness
   ============================================================ */
.nav-toggle { display: none; flex-direction: column; gap: 4px; width: 38px; height: 38px;
    align-items: center; justify-content: center; background: rgba(15,25,42,.05); border: 1px solid var(--line);
    border-radius: 10px; cursor: pointer; padding: 0; margin-left: auto; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
    .topbar-inner { gap: 12px; }
    .nav-toggle { display: flex; }
    .cmdk-trigger { order: 3; }

    /* Nav becomes a dropdown drawer. */
    .topnav {
        position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 2px;
        background: rgba(255,255,255,.98); backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--line); box-shadow: 0 18px 40px rgba(8,19,32,.28);
        padding: 10px; margin: 0; display: none; z-index: 60;
    }
    .topnav.open { display: flex; }
    .topnav a { padding: 12px 14px; font-size: .95rem; border-radius: 12px; }
    .topnav .icon { display: inline-block !important; }
    .topbar-search { display: none; }
    .topbar-name { display: none; }

    /* Groups become inline accordions in the drawer. */
    .nav-group { width: 100%; }
    .nav-group > summary { width: 100%; padding: 12px 14px; font-size: .95rem; border-radius: 12px; justify-content: flex-start; }
    .nav-group > summary .org-caret { margin-left: auto; }
    .nav-pop {
        position: static; width: auto; box-shadow: none; border: none; background: transparent;
        padding: 2px 0 4px 16px; margin-top: 2px;
    }
    .nav-pop-item { padding: 10px 12px; font-size: .92rem; }
}

@media (max-width: 560px) {
    .page { padding: 22px 16px 56px; }
    .cmdk-trigger { min-width: 0; padding: 8px; }
    .cmdk-trigger-text { display: none; }
    .display { font-size: clamp(1.5rem, 7vw, 2rem); }
    .hero { gap: 14px; }
    .db-banner, .proj-banner { padding: 22px 18px 0; }
    .db-stats { gap: 4px; }
    .db-stat { padding: 8px 14px 8px 0; min-width: 96px; }
    .tabs { width: 100%; overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
    .tab { white-space: nowrap; }
    .bulk-bar { left: 8px; right: 8px; transform: translateY(140%); max-width: none; }
    .bulk-bar.active { transform: translateY(0); }
    .form-actions { flex-wrap: wrap; }
    .timesheet-grid, .schedule-grid, .mystuff-grid, .report-grid, .proj-activity { gap: 16px; }
    .cmdk-panel { margin-top: 8vh; }
}

/* ===== Verify-email banner ===== */
.verify-banner { max-width: 1140px; margin: 14px auto 0; padding: 11px 18px; display: flex; align-items: center;
    justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .9rem;
    background: #fff7e6; border: 1px solid #f1d188; color: #8a5d08; border-radius: var(--radius-sm); }
.verify-banner .link-btn { color: #8a5d08; font-weight: 700; text-decoration: underline; }
.verify-banner .link-btn:hover { color: #6e4a05; }

/* ===== Danger row ===== */
.danger-row { display: inline-flex; gap: 22px; align-items: center; }

/* ===== Calendar subscribe (project) + danger zone ===== */
.cal-subscribe { position: relative; }
.cal-subscribe > summary { list-style: none; }
.cal-subscribe > summary::-webkit-details-marker { display: none; }
.cal-subscribe-pop { position: absolute; right: 0; top: 42px; z-index: 20; width: 340px; max-width: 90vw;
    background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 16px; }
.danger-zone { display: flex; flex-direction: column; gap: 10px; align-items: center; }

/* ===== Billing ===== */
.bill-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 720px) { .bill-grid { grid-template-columns: 1fr; } }
.bill-current { display: inline-block; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em;
    color: #09132d; background: var(--grad); padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; }
.bill-note { text-align: center; margin-top: 22px; }
.bill-per { font-size: .9rem; font-weight: 500; color: var(--muted); }
.bill-current.bill-trialing { background: rgba(255,90,78,.12); color: var(--primary); }
.bill-current.bill-active { background: rgba(22,163,74,.14); color: var(--success); }
.bill-current.bill-past_due { background: rgba(224,137,11,.16); color: var(--warning); }
.bill-current.bill-canceled, .bill-current.bill-none { background: var(--surface-2); color: var(--muted); }
.bill-facts { list-style: none; margin: 14px 0; display: grid; gap: 8px; font-size: .9rem; color: var(--muted); }
.bill-facts li { display: flex; align-items: center; gap: 9px; }
.bill-facts i { color: var(--primary); }
.bill-paywall { text-align: center; padding: 30px; margin-bottom: 18px;
    border-color: rgba(255,90,78,.3); background: radial-gradient(500px 180px at 50% 0%, rgba(255,90,78,.08), transparent 65%), var(--surface); }
.bill-paywall-ic { font-size: 1.8rem; color: var(--primary); }
.bill-paywall h2 { font-family: var(--display); margin: 8px 0 6px; }

/* ===== Workload by department ===== */
.wl-dept-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.wl-dept { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.wl-dept-n { display: block; font-family: var(--display); font-weight: 800; font-size: 1.7rem; line-height: 1; }
.wl-dept-l { font-size: .82rem; color: var(--muted); }
.wl-dept-bar { display: block; height: 5px; background: rgba(9, 19, 45, .07); border-radius: 999px; overflow: hidden; margin-top: 10px; }
.wl-dept-bar span { display: block; height: 100%; background: var(--grad); border-radius: 999px; }

/* ============================================================
   Today resource board
   ============================================================ */
.emg { position: relative; }
.emg > summary { list-style: none; cursor: pointer; }
.emg > summary::-webkit-details-marker { display: none; }
.emg-form { position: absolute; right: 0; top: 52px; z-index: 30; width: 340px; max-width: 92vw;
    display: flex; flex-direction: column; gap: 10px; padding: 16px; }

.rb-filter { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 4px 0 14px; }
.rb-filter-label { font-size: .8rem; font-weight: 600; color: var(--muted); }
.rb-fbtn { font: inherit; font-size: .84rem; font-weight: 600; padding: 6px 13px; border-radius: 999px; cursor: pointer;
    background: var(--surface); border: 1px solid var(--line-2); color: var(--muted); transition: .12s; }
.rb-fbtn:hover { color: var(--ink); border-color: var(--ink); }
.rb-fbtn.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.resource-board { display: flex; gap: 14px; overflow-x: auto; padding: 6px 2px 18px; -webkit-overflow-scrolling: touch; scroll-behavior: smooth; overscroll-behavior-x: contain; }
.resource-board.rb-grabbing { cursor: grabbing; user-select: none; }
.rb-lane.rb-hidden { display: none; }

/* Hide completed to-dos by default; reveal when "Show completed" is on */
#todos:not(.show-done) .todo-item.done { display: none; }
.show-done-toggle { display: inline-flex; align-items: center; gap: 9px; font-size: .85rem; font-weight: 600;
    color: var(--ink); white-space: nowrap; cursor: pointer; padding: 5px 12px 5px 8px;
    border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); transition: border-color .12s; }
.show-done-toggle:hover { border-color: var(--ink); }
.show-done-toggle input { appearance: none; -webkit-appearance: none; position: relative; flex: 0 0 auto;
    width: 38px; height: 22px; border-radius: 999px; background: var(--line-2); cursor: pointer; margin: 0; transition: background .15s; }
.show-done-toggle input::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px;
    border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(9,19,45,.3); transition: transform .15s; }
.show-done-toggle input:checked { background: var(--teal); }
.show-done-toggle input:checked::after { transform: translateX(16px); }
.show-done-toggle:has(input:checked) { border-color: var(--teal); color: var(--teal); }

/* Sticky quick-add to-do helper */
.todo-quickadd { position: sticky; bottom: 14px; z-index: 30; margin-top: 18px; }
.todo-quickadd-form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; padding: 10px 12px;
    box-shadow: 0 12px 34px rgba(8,19,32,.16); }
.todo-quickadd-form .qa-plus { font-size: 1.2rem; color: var(--primary); font-weight: 700; line-height: 1; }
.todo-quickadd-form input[type=text] { flex: 1; min-width: 180px; width: auto; }
.todo-quickadd-form select { width: auto; font-size: .85rem; padding: 8px 10px; }
@media (max-width: 560px) { .todo-quickadd-form input[type=text] { min-width: 120px; } }
.rb-lane { flex: 0 0 260px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    display: flex; flex-direction: column; min-height: 180px; transition: border-color .12s, background .12s; }
.rb-lane.rb-over { border-color: var(--teal); background: color-mix(in srgb, var(--teal) 6%, var(--surface)); }
.rb-lane--pool { flex-basis: 230px; background: var(--bg-2); }
.rb-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px;
    border-bottom: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0; }
.rb-who { display: flex; align-items: center; gap: 10px; }
.rb-who strong { display: block; font-size: .9rem; }
.rb-pool-ic { font-size: 1.2rem; }
.rb-count { font-family: var(--display); font-weight: 800; font-size: 1rem; min-width: 26px; height: 26px;
    display: grid; place-items: center; border-radius: 8px; background: rgba(9, 19, 45, .06); }
/* load tint on the header */
.load-free  { background: rgba(74,222,128,.10); }   .load-free .rb-count  { background: rgba(74,222,128,.2); color: var(--success); }
.load-light { background: rgba(255, 90, 78,.08); }
.load-busy  { background: rgba(250,204,21,.10); }   .load-busy .rb-count  { background: rgba(250,204,21,.2); color: var(--warning); }
.load-over  { background: rgba(248,113,113,.12); }  .load-over .rb-count  { background: rgba(248,113,113,.25); color: var(--danger); }

.rb-cards { padding: 10px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.rb-card { display: block; background: var(--bg-2); border: 1px solid var(--line); border-left: 3px solid var(--accent);
    border-radius: 10px; padding: 10px 12px; cursor: grab; color: var(--ink); }
.rb-card:hover { border-color: var(--line-2); text-decoration: none; transform: translateY(-1px); }
.rb-card.rb-dragging { opacity: .4; }
.rb-card-top { display: flex; align-items: center; gap: 6px; margin-bottom: 5px; }
.rb-card-text { display: block; font-size: .9rem; font-weight: 500; line-height: 1.35; }
.rb-card-proj { display: block; font-size: .72rem; color: var(--muted); margin-top: 5px; }
.rb-due { font-size: .64rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted);
    background: rgba(9, 19, 45, .06); padding: 1px 7px; border-radius: 999px; }
.rb-due.overdue { color: var(--danger); background: rgba(248,113,113,.16); }
.rb-empty { font-size: .8rem; color: var(--muted); text-align: center; padding: 18px 8px; border: 1px dashed var(--line); border-radius: 10px; }

/* ===== In-app month calendar ===== */
.cal-month { padding: 18px; margin-bottom: 22px; }
.cal-month-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.cal-month-head h2 { font-size: 1.3rem; min-width: 180px; }
.cal-today-btn { margin-left: auto; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-dow { margin-bottom: 6px; }
.cal-dow span { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); text-align: center; padding: 4px 0; }
.cal-cell { min-height: 96px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 6px; display: flex; flex-direction: column; gap: 3px; overflow: hidden; }
.cal-cell--blank { background: transparent; border-color: transparent; }
.cal-cell--today { border-color: rgba(255, 90, 78,.5); box-shadow: inset 0 0 0 1px rgba(255, 90, 78,.3); }
.cal-daynum { font-size: .78rem; font-weight: 700; color: var(--muted); }
.cal-cell--today .cal-daynum { color: var(--teal); }
.cal-item { display: block; font-size: .7rem; font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    border-left: 3px solid var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); padding: 2px 6px; border-radius: 5px; }
.cal-item:hover { text-decoration: none; background: color-mix(in srgb, var(--c) 22%, transparent); }
.cal-more { font-size: .66rem; color: var(--muted); padding-left: 4px; }
@media (max-width: 640px) { .cal-cell { min-height: 64px; } .cal-item { font-size: 0; padding: 4px; } .cal-item::first-letter { font-size: .8rem; } }

/* ===== Labels / tags ===== */
.label-chip { display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; font-weight: 600;
    color: var(--lc); background: color-mix(in srgb, var(--lc) 14%, transparent); border: 1px solid color-mix(in srgb, var(--lc) 35%, transparent);
    padding: 2px 9px; border-radius: 999px; }
.label-chip.sm { font-size: .68rem; padding: 1px 8px; margin-left: 4px; }
.label-x { background: none; border: none; color: inherit; cursor: pointer; font-size: .9rem; line-height: 1; padding: 0; opacity: .6; }
.label-x:hover { opacity: 1; }
.label-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.label-add { position: relative; }
.label-add-btn { cursor: pointer; font-size: .8rem; font-weight: 600; color: var(--muted); border: 1px dashed var(--line-2); padding: 3px 11px; border-radius: 999px; list-style: none; }
.label-add-btn::-webkit-details-marker { display: none; }
.label-pop { position: absolute; left: 0; top: 30px; z-index: 30; width: 240px; background: var(--surface-2); border: 1px solid var(--line-2);
    border-radius: 12px; box-shadow: var(--shadow-lg); padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.label-pick button { width: 100%; text-align: left; border: 1px solid color-mix(in srgb, var(--lc) 35%, transparent); background: color-mix(in srgb, var(--lc) 14%, transparent);
    color: var(--lc); font: inherit; font-size: .82rem; font-weight: 600; padding: 5px 10px; border-radius: 7px; cursor: pointer; }
.label-new { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 4px; display: flex; flex-direction: column; gap: 8px; }
.label-colors { display: flex; gap: 6px; }
.label-colors label { width: 20px; height: 20px; border-radius: 50%; position: relative; cursor: pointer; box-shadow: inset 0 0 0 2px rgba(9, 19, 45, .2); }
.label-colors input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.label-colors label:has(input:checked) { box-shadow: 0 0 0 2px var(--ink); }

/* ===== Reactions (boosts) ===== */
.reactions { display: flex; align-items: center; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.rx-form { display: inline; }
.rx-chip { display: inline-flex; align-items: center; gap: 4px; font-size: .82rem; cursor: pointer;
    background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; color: var(--ink); }
.rx-chip.mine { background: rgba(255, 90, 78,.14); border-color: rgba(255, 90, 78,.4); }
.rx-chip span { font-weight: 700; font-size: .75rem; }
.rx-add { position: relative; }
.rx-add-btn { cursor: pointer; list-style: none; font-size: .9rem; opacity: .45; padding: 2px 6px; border-radius: 999px; }
.rx-add-btn::-webkit-details-marker { display: none; }
.rx-add-btn:hover { opacity: 1; background: var(--bg-2); }
.rx-pop { position: absolute; left: 0; top: 28px; z-index: 30; display: flex; gap: 2px; padding: 6px;
    background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 999px; box-shadow: var(--shadow-lg); }
.rx-opt { background: none; border: none; cursor: pointer; font-size: 1.1rem; padding: 3px 5px; border-radius: 8px; }
.rx-opt:hover { background: rgba(9, 19, 45, .08); }

/* FontAwesome Pro duotone reaction icons — coloured per reaction. */
.rx-ico { font-size: 1rem; --fa-secondary-opacity: .42; }
.rx-opt .rx-ico { font-size: 1.18rem; }
.rx-add-btn .rx-ico { font-size: 1rem; }
.rx-opt:hover .rx-ico { transform: scale(1.18); transition: transform .12s; }
.rx-ico--thumbs-up      { --fa-primary-color: #1f6feb; --fa-secondary-color: #1f6feb; }
.rx-ico--heart          { --fa-primary-color: #e8345a; --fa-secondary-color: #e8345a; }
.rx-ico--party-horn     { --fa-primary-color: #9c36b5; --fa-secondary-color: #faca2c; }
.rx-ico--face-laugh     { --fa-primary-color: #f0a500; --fa-secondary-color: #f0a500; }
.rx-ico--hands-clapping { --fa-primary-color: #e8590c; --fa-secondary-color: #faca2c; }
.rx-ico--eyes           { --fa-primary-color: #0c8599; --fa-secondary-color: #0c8599; }
.rx-ico--fire           { --fa-primary-color: #e8590c; --fa-secondary-color: #faca2c; }
.rx-ico--rocket-launch  { --fa-primary-color: #1f6feb; --fa-secondary-color: #e8590c; }
.rx-ico--lightbulb-on   { --fa-primary-color: #f0a500; --fa-secondary-color: #faca2c; }
.rx-ico--circle-check   { --fa-primary-color: #2f9e44; --fa-secondary-color: #2f9e44; }
.rx-ico--star           { --fa-primary-color: #f0a500; --fa-secondary-color: #f0a500; }
.rx-ico--handshake      { --fa-primary-color: #5f3dc4; --fa-secondary-color: #5f3dc4; }
.rx-pop { flex-wrap: wrap; max-width: 230px; }

/* ===== Bookmarks ===== */
.task-toolbar, .msg-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.bm-toggle { display: inline; }
.bm-star { background: none; border: none; cursor: pointer; font-size: 1.4rem; line-height: 1; color: var(--muted); padding: 0; }
.bm-star.on { color: #facc15; }
.bm-star:hover { color: #facc15; }
.bm-list { padding: 6px 18px; }
.bm-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.bm-row:last-child { border-bottom: none; }
.bm-main { display: flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 500; }
.bm-type { font-size: 1.1rem; }

/* ===== Custom fields ===== */
.cf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 14px; }
.cf-field { display: flex; flex-direction: column; gap: 6px; }
.cf-manage { width: 100%; max-width: 520px; text-align: left; }
.cf-manage > summary { cursor: pointer; }
.cf-manage-body { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.cf-row { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--line); }
.cf-add-form { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.cf-add-form input[type=text] { flex: 1; min-width: 130px; }

/* ===== Project Overview (account pulse) ===== */
.ov-grid { display: grid; grid-template-columns: 1fr 320px; gap: 18px; align-items: start; }
@media (max-width: 900px) { .ov-grid { grid-template-columns: 1fr; } }
.ov-main, .ov-side { display: flex; flex-direction: column; gap: 16px; }
.ov-status { padding: 18px 20px; }
.ov-status-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.ov-status-note { font-size: 1.02rem; line-height: 1.55; }
.ov-status-form { margin-top: 12px; }
.ov-status-form > summary { list-style: none; cursor: pointer; display: inline-block; }
.ov-status-form > summary::-webkit-details-marker { display: none; }
.ov-status-form form { margin-top: 12px; }
.ov-state-pick { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.ov-state-pick label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }

.ov-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 560px) { .ov-stats { grid-template-columns: 1fr 1fr; } }
.ov-stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.ov-stat-n { display: block; font-family: var(--display); font-weight: 800; font-size: 1.8rem; line-height: 1; }
.ov-stat-l { font-size: .78rem; color: var(--muted); }
.ov-stat .progress { margin-top: 10px; }
.ov-bad .ov-stat-n { color: var(--danger); } .ov-warn .ov-stat-n { color: var(--warning); }

.ov-block { padding: 16px 18px; }
.ov-block h3 { font-size: 1rem; margin-bottom: 12px; }
.ov-att { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--ink); }
.ov-att:last-child { border-bottom: none; }
.ov-att:hover { text-decoration: none; }
.ov-att-text { flex: 1; font-size: .9rem; }
.ov-att-why { font-size: .64rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: 2px 7px; border-radius: 999px; }
.ov-why-blocked { color: var(--danger); background: rgba(248,113,113,.15); }
.ov-why-waiting { color: var(--warning); background: rgba(250,204,21,.13); }
.ov-why-overdue { color: #c2410c; background: rgba(194,65,12,.1); }
.ov-agenda { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: .88rem; color: var(--ink); border-bottom: 1px solid var(--line); }
.ov-agenda:last-child { border-bottom: none; }
.ov-agenda:hover { text-decoration: none; }
.ov-agenda-date { font-size: .72rem; font-weight: 700; color: var(--muted); min-width: 44px; }
.ov-who { display: flex; align-items: center; gap: 9px; padding: 6px 0; }
.ov-who-name { flex: 1; font-size: .9rem; }
.ov-who-n { font-size: .8rem; font-weight: 600; }
.ov-block .activity-feed { margin: 0; }
.ov-block .activity-item { padding: 7px 0; }

/* ===== Accounts portfolio ===== */
.acct-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.acct-card { padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.acct-card:hover { text-decoration: none; transform: translateY(-2px); }
.acct-top { display: flex; align-items: center; gap: 12px; }
.acct-top .project-icon { width: 44px; height: 44px; margin: 0; font-size: 1.3rem; border-radius: 12px; }
.acct-titles strong { display: block; font-size: 1rem; }
.acct-note { font-size: .85rem; line-height: 1.45; }
.acct-prog { margin: 2px 0; }
.acct-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: .8rem; color: var(--muted); }
.acct-bad { color: var(--danger); font-weight: 600; } .acct-warn { color: var(--warning); font-weight: 600; }

/* ===== Message detail (redesigned) ===== */
.message-page { max-width: 1040px; margin: 0 auto; }
.msg-card { padding: 30px 34px; }
.msg-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.msg-card-actions { display: flex; align-items: center; gap: 14px; }
.msg-title { font-family: var(--display); font-weight: 800; font-size: clamp(1.7rem, 4vw, 2.5rem); letter-spacing: -0.03em; line-height: 1.12; margin-bottom: 18px; }
.msg-byline { display: flex; align-items: center; gap: 12px; padding-bottom: 20px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.msg-byline strong { display: block; }
.msg-body { font-size: 1.06rem; line-height: 1.7; }
.msg-body p { margin: 0 0 1em; }
.msg-attach { margin-top: 22px; }
.msg-react { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.comments-title { font-size: 1.15rem; margin: 32px 0 16px; }
.comment.card { display: flex; gap: 14px; padding: 16px 18px; margin-bottom: 12px; }
.comment .comment-meta { margin-bottom: 4px; }

/* ===== Client contact ===== */
/* Title always sits on top (block); the Edit toggle pins to the top-right and
   the form flows full-width below, so nothing centres on the side. */
.ov-client-head { position: relative; display: block; }
.ov-client-head h3 { margin: 0; padding-right: 50px; }
.ov-client-edit > summary { position: absolute; top: 0; right: 0; list-style: none; cursor: pointer; font-size: .85rem; }
.ov-client-edit > summary::-webkit-details-marker { display: none; }
.ov-client-edit form { margin-top: 12px; }
.ov-contact { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: .92rem; border-bottom: 1px solid var(--line); }
.ov-contact:last-child { border-bottom: none; }
.ov-contact-l { width: 20px; text-align: center; }
.ov-client { padding-top: 16px; }
.project-client { display: block; font-size: .8rem; color: var(--accent); font-weight: 500; margin: 2px 0 4px; }

/* ============================================================
   Dashboard: richer project cards + timeline activity feed
   ============================================================ */
.project-card { display: flex; flex-direction: column; min-height: 0; }
.pc-desc { font-size: .9rem; min-height: 2.5em; }
.pc-progress { display: flex; align-items: center; gap: 10px; margin: 14px 0 12px; }
.pc-progress-bar { flex: 1; height: 7px; background: rgba(9, 19, 45, .07); border-radius: 999px; overflow: hidden; }
.pc-progress-bar span { display: block; height: 100%; background: var(--grad); border-radius: 999px; transition: width .3s; }
.pc-pct { font-size: .78rem; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; min-width: 34px; text-align: right; }
.pc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto;
    padding-top: 14px; border-top: 1px solid var(--line); }
.pc-avatars { display: flex; }
.pc-avatars .avatar { margin-right: -8px; box-shadow: 0 0 0 2px var(--surface); }
.pc-more { background: var(--bg-2) !important; color: var(--muted); font-size: .6rem; }
.pc-counts { display: flex; align-items: center; gap: 8px; font-size: .76rem; color: var(--muted); white-space: nowrap; }
.pc-overdue { color: var(--danger); font-weight: 700; }

/* Timeline activity feed */
.activity-feed { position: relative; margin-top: 6px; }
.activity-item { display: grid; grid-template-columns: 38px 1fr; gap: 14px; padding: 8px 0 14px; position: relative; color: var(--ink); align-items: start; }
.activity-item:not(:last-child)::before { content: ''; position: absolute; left: 18px; top: 44px; bottom: -2px; width: 2px; background: var(--line); }
.activity-item:hover { text-decoration: none; }
.activity-item:hover .activity-subject { color: var(--teal); }
.act-avatar { position: relative; z-index: 1; }
.act-badge { position: absolute; right: -3px; bottom: -3px; width: 18px; height: 18px; border-radius: 50%;
    display: grid; place-items: center; color: #09132d; box-shadow: 0 0 0 2px var(--bg); }
.act-badge .icon { width: 11px; height: 11px; }
.act-badge--message { background: #ff5a4e; }
.act-badge--comment { background: #1f6feb; color: #fff; }
.act-badge--todo { background: #4ade80; }
.act-badge--doc { background: #9c36b5; color: #fff; }
.act-badge--event { background: #facc15; }
.activity-text p { font-size: .92rem; line-height: 1.4; }
.activity-subject { font-weight: 600; }
.activity-meta { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; color: var(--muted); margin-top: 3px; }
.act-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.activity-title { margin-top: 36px; }

/* Live activity: sticky footer button → slide-up panel (keeps grid full width) */
.db-live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--success); animation: pulse 1.8s infinite; flex: 0 0 auto; }
.feed-fab { position: fixed; right: 24px; bottom: 24px; z-index: 90; display: inline-flex; align-items: center; gap: 9px;
    background: var(--ink); color: #fff; border: none; border-radius: 999px; padding: 12px 20px; font: inherit;
    font-weight: 600; font-size: .9rem; cursor: pointer; box-shadow: 0 12px 30px rgba(8,19,32,.3); transition: transform .12s; }
.feed-fab:hover { transform: translateY(-2px); }
.feed-fab .db-live-dot { background: #4ade80; }
.feed-backdrop { position: fixed; inset: 0; background: rgba(8,19,32,.4); z-index: 95; }
.feed-panel { position: fixed; right: 20px; bottom: 20px; z-index: 96; width: 400px; max-width: calc(100vw - 40px);
    max-height: min(560px, 80vh); display: flex; flex-direction: column;
    background: var(--surface); border: 1px solid var(--line-2); border-radius: 18px;
    box-shadow: 0 30px 70px rgba(8,19,32,.4); transform: translateY(12px); opacity: 0;
    transition: transform .18s ease, opacity .18s ease; }
.feed-panel.open { transform: translateY(0); opacity: 1; }
.feed-panel[hidden], .feed-backdrop[hidden] { display: none !important; }
.feed-panel-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 8px; }
.feed-panel-head .section-title { margin: 0; font-size: 1.1rem; }
.feed-panel-close { background: none; border: none; font-size: 1.5rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 0 4px; }
.feed-panel-close:hover { color: var(--ink); }
.feed-panel-body { overflow: auto; padding: 0 18px 16px; }
@media (max-width: 560px) { .feed-panel { right: 10px; left: 10px; width: auto; } .feed-fab { right: 14px; bottom: 14px; } }

/* ===== Grouped activity feed (Basecamp-style timeline) ===== */
.af { position: relative; }
.af-day { display: flex; align-items: center; gap: 14px; margin: 30px 0 14px; }
.af-day:first-child { margin-top: 8px; }
.af-day-label { background: var(--ink); color: #fff; font-size: .72rem; font-weight: 700;
    letter-spacing: .04em; padding: 6px 12px; border-radius: 8px; white-space: nowrap; }
.af-day-rule { flex: 1; height: 1px; background: var(--line); min-width: 12px; }
.af-active { font-size: .82rem; color: var(--muted); white-space: nowrap; }
.af-active-avatars { display: inline-flex; }
.af-active-avatars .avatar { margin-left: -6px; box-shadow: 0 0 0 2px var(--bg); }

.af-item { display: grid; grid-template-columns: 76px 1fr; gap: 12px; padding: 4px 0 18px; position: relative; }
.af-item::before { content: ''; position: absolute; left: 75px; top: 24px; bottom: -4px; width: 2px; background: var(--line); }
.af-item:last-child::before { display: none; }
.af-time { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding-top: 2px; }
.af-check { width: 20px; height: 20px; border-radius: 50%; background: var(--success); color: #fff;
    display: grid; place-items: center; flex: 0 0 auto; box-shadow: 0 0 0 3px var(--bg); }
.af-check .icon { width: 12px; height: 12px; stroke-width: 3; }
.af-ago { font-size: .74rem; color: var(--muted); white-space: nowrap; }
.af-main { min-width: 0; position: relative; z-index: 1; }
.af-head { display: flex; align-items: flex-start; gap: 10px; }
.af-headline { font-size: .95rem; line-height: 1.45; color: var(--ink); margin: 1px 0; }
.af-headline strong { font-weight: 700; }
.af-subject { font-weight: 600; color: var(--teal); }
.af-subject:hover { text-decoration: underline; }
.af-proj { color: var(--muted); font-weight: 500; }
.af-thread { margin: 8px 0 0 34px; display: flex; flex-direction: column; gap: 7px;
    border-left: 2px solid var(--line); padding-left: 14px; }
.af-reply { display: flex; align-items: flex-start; gap: 8px; font-size: .9rem; line-height: 1.45; color: var(--muted); }
.af-reply strong { color: var(--ink); font-weight: 600; }
.af-reply-text { min-width: 0; }
.af-reply .avatar { flex: 0 0 auto; margin-top: 1px; }
.af-more-link { font-size: .82rem; color: var(--teal); font-weight: 600; margin-left: 30px; }
@media (max-width: 560px) {
    .af-item { grid-template-columns: 58px 1fr; }
    .af-item::before { left: 57px; }
    .af-day-label { font-size: .66rem; padding: 5px 9px; }
}

/* ============================================================
   Task detail — two-column (main + properties sidebar)
   ============================================================ */
.task-detail.task-grid { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 26px; align-items: start; max-width: 1000px; margin: 0 auto; }
@media (max-width: 860px) { .task-detail.task-grid { grid-template-columns: 1fr; } .task-col-side { order: -1; } }
.task-col-main { min-width: 0; display: flex; flex-direction: column; gap: 18px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 22px 24px; box-shadow: var(--shadow); }
/* Comments sit as recessed sub-cards inside the main card (avoid card-in-card). */
.task-col-main .comment.card, .task-col-main .comment-form.card { background: var(--surface-2); box-shadow: none; }

.task-titlebar { display: flex; align-items: flex-start; gap: 12px; }
.task-title-input { flex: 1; font-family: var(--display); font-weight: 800; font-size: clamp(1.4rem, 3vw, 2rem);
    letter-spacing: -0.02em; line-height: 1.2; border: 1px solid transparent; background: transparent; padding: 4px 8px; border-radius: 10px; }
.task-title-input:hover { border-color: var(--line); }
.task-title-input:focus { border-color: var(--line-2); background: var(--surface); }
.task-title-input.task-done { text-decoration: line-through; color: var(--muted); }
.task-titlebar .bm-toggle { margin-top: 6px; }
/* Clickable complete toggle + quick-glance meta bar */
.task-check-form { flex: 0 0 auto; margin-top: 6px; }
.task-check { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--surface);
    cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: #fff; transition: background .12s, border-color .12s, transform .1s; }
.task-check:hover { border-color: var(--success); }
.task-check:active { transform: scale(.92); }
.task-check.done { background: var(--success); border-color: var(--success); }
.task-check i { font-size: .82rem; }
.task-metabar { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin: 10px 0 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.task-meta-status { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: 3px 11px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.task-meta-item { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; color: var(--ink); }
.task-meta-item.muted { color: var(--muted); }
.task-meta-item i { color: var(--muted); }
.task-meta-overdue, .task-meta-overdue i { color: var(--danger); font-weight: 600; }
.task-complete-form { margin-left: auto; }

/* Properties card */
.task-props { padding: 18px; display: flex; flex-direction: column; gap: 14px; position: sticky; top: 84px; }
.prop { display: flex; flex-direction: column; gap: 6px; }
.prop-l { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.prop select, .prop input { width: 100%; font-size: .9rem; padding: 8px 10px; }
.prop-static { font-size: .92rem; padding: 4px 0; }
.prop-actions { display: flex; flex-direction: column; gap: 8px; padding-top: 6px; border-top: 1px solid var(--line); margin-top: 2px; }

.task-section { margin: 0; }
.task-col-main .task-section h3 { font-size: .95rem; margin-bottom: 10px; }
.task-col-main .comments-title { margin: 6px 0 14px; font-size: 1.1rem; }

/* ============================================================
   Project cards v3 — favicon "pops" on an accent banner + client block
   ============================================================ */
.project-grid .project-card {
    position: relative; padding: 0; overflow: hidden; border-radius: 18px;
    display: block; min-height: 0; background: var(--surface);
    transition: transform .14s ease, border-color .15s, box-shadow .15s;
}
.project-grid .project-card::before { display: none; } /* drop old top accent line */
.project-grid .project-card:hover { transform: translateY(-3px); border-color: rgba(9, 19, 45, .12); box-shadow: 0 18px 40px rgba(4,9,16,.4); }

.pc-banner { height: 72px; position: relative;
    background:
        radial-gradient(120% 160% at 18% 130%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 60%),
        linear-gradient(120deg, color-mix(in srgb, var(--accent) 42%, var(--surface-2)), color-mix(in srgb, var(--accent) 10%, var(--surface-2)));
    border-bottom: 1px solid rgba(9, 19, 45, .06); }
.pc-banner .project-domain-chip { position: absolute; top: 12px; right: 14px; background: rgba(8,19,32,.5);
    border-color: rgba(9, 19, 45, .18); color: #fff; backdrop-filter: blur(6px); }

.pc-icon-wrap { position: absolute; top: 36px; left: 22px; z-index: 2; }
.pc-icon-wrap .project-icon { width: 72px; height: 72px; border-radius: 20px; font-size: 2.1rem; margin: 0;
    box-shadow: 0 10px 26px rgba(4,9,16,.5), inset 0 0 0 1px rgba(9, 19, 45, .08); }
.pc-icon-wrap .pi-fav { padding: 15%; }

.pc-body { padding: 46px 22px 20px; }
.pc-body h3 { font-size: 1.22rem; letter-spacing: -0.01em; }
.pc-desc { font-size: .9rem; min-height: 1.3em; margin-top: 2px; }

.pc-client { display: flex; flex-direction: column; gap: 5px; margin: 14px 0 4px; padding: 12px 14px;
    background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; }
.pc-client-row { display: flex; align-items: center; gap: 9px; font-size: .85rem; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-ci { width: 18px; text-align: center; flex: 0 0 auto; }

.project-grid .pc-progress { display: flex; align-items: center; gap: 10px; margin: 16px 0 12px; }
.pc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }

/* New-project card matches the grid but stays a simple dashed CTA */
.project-card--new { display: grid !important; place-items: center; border-style: dashed; min-height: 230px; background: transparent; }
.project-card--new .pc-new-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 24px; }
.project-card--new .project-icon { margin: 0 0 6px; }
.project-card--new:hover { border-color: rgba(255, 90, 78,.4); }

/* Accounts cards reuse the v3 project-card look */
.pc-banner-status { position: absolute; top: 12px; right: 14px; backdrop-filter: blur(6px);
    box-shadow: 0 2px 10px rgba(4,9,16,.3); }
.acct-foot { flex-wrap: wrap; gap: 10px 14px; font-size: .76rem; color: var(--muted); }
.acct-foot .acct-warn { color: var(--warning); font-weight: 700; }

/* Template cards reuse the v3 card look */
.tpl-foot { border-top: 1px solid var(--line); }
.tpl-card .tpl-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }

/* Favicon in the command palette */
.cmdk-fav { width: 18px; height: 18px; border-radius: 4px; object-fit: contain; background: #fff; padding: 1px; flex: 0 0 auto; }

/* ===== View toggle + Accounts list view ===== */
.view-toggle { display: inline-flex; background: rgba(9, 19, 45, .04); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.vt-btn { border: none; background: transparent; font: inherit; font-size: .82rem; font-weight: 600; color: var(--muted);
    padding: 6px 14px; border-radius: 999px; cursor: pointer; }
.vt-btn.active { background: var(--ink); color: #fff; }

.acct-list { padding: 6px 8px; }
.acct-list-head, .acct-list-row { display: grid; grid-template-columns: 2fr 0.9fr 1fr 1.1fr 1.9fr; gap: 14px; align-items: center; }
.alr-data .acct-data { margin: 0; }
.alr-data .acct-metric { padding: 3px 8px; min-width: 0; }
.alr-data .acct-metric-v { font-size: .85rem; }
.alr-data .acct-data-cap { display: none; }
.acct-list-head { padding: 10px 14px; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); border-bottom: 1px solid var(--line); }
.acct-list-row { padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--ink); border-radius: 10px; }
.acct-list-row:last-child { border-bottom: none; }
.acct-list-row:hover { background: var(--bg-2); text-decoration: none; }
.alr-name { display: flex; align-items: center; gap: 12px; min-width: 0; }
.alr-name .project-icon { width: 38px; height: 38px; margin: 0; font-size: 1.1rem; border-radius: 10px; flex: 0 0 auto; }
.alr-titles { min-width: 0; }
.alr-titles strong { display: block; font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.alr-titles .small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.alr-prog { display: flex; align-items: center; gap: 8px; }
.alr-prog .pc-progress-bar { flex: 1; height: 6px; background: rgba(9, 19, 45, .07); border-radius: 999px; overflow: hidden; }
.alr-prog .pc-progress-bar span { display: block; height: 100%; background: var(--grad); border-radius: 999px; }
.alr-flags { display: flex; flex-wrap: wrap; gap: 8px; font-size: .76rem; }
.alr-flags .acct-bad { color: var(--danger); font-weight: 700; } .alr-flags .acct-warn { color: var(--warning); font-weight: 700; }
.alr-next { font-size: .8rem; color: var(--muted); white-space: nowrap; }
@media (max-width: 760px) {
    .acct-list-head { display: none; }
    .acct-list-row { grid-template-columns: 1fr auto; gap: 8px; }
    .alr-prog, .alr-flags, .alr-next { grid-column: 1 / -1; }
}

/* ============================================================
   To-do board v2 — rows become clean task cards
   ============================================================ */
.todo-items { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.todo-item {
    border-bottom: none !important;
    padding: 11px 12px;
    background: var(--bg-2);
    border: 1px solid var(--line);
    border-radius: 11px;
    transition: border-color .12s, transform .1s, box-shadow .12s;
}
.todo-item:hover { border-color: var(--line-2); box-shadow: 0 4px 14px rgba(4,9,16,.25); }
.todo-item.done { opacity: .62; background: transparent; }
.todo-item.done:hover { box-shadow: none; }

/* status accent (replaces the negative-margin hack) */
.todo-item.status-blocked,
.todo-item.status-in_review,
.todo-item.status-in_progress { margin-left: 0; padding-left: 12px; border-left-width: 3px; }
.todo-item.status-blocked { border-left-color: rgba(248,113,113,.7); }
.todo-item.status-in_review { border-left-color: rgba(250,204,21,.6); }
.todo-item.status-in_progress { border-left-color: rgba(255, 90, 78,.6); }

.todo-item:has(.bulk-check:checked) { background: rgba(255, 90, 78,.08); border-color: rgba(255, 90, 78,.45); }

/* nested subtasks: indented, lighter */
.subtask-items { display: flex; flex-direction: column; gap: 6px; margin: 6px 0 6px 26px; position: relative; }
.subtask-items::before { content: ''; position: absolute; left: -12px; top: 4px; bottom: 4px; width: 2px; background: var(--line); border-radius: 2px; }
.todo-item.is-sub { padding: 8px 11px; background: var(--surface); }

/* chip-ify the inline metadata */
.todo-text { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; line-height: 1.3; }
.todo-text .due, .todo-text .do-date, .todo-text .subcount {
    font-size: .7rem; font-weight: 600; padding: 2px 8px; border-radius: 999px;
    background: rgba(9, 19, 45, .05); border: 1px solid var(--line); color: var(--muted); }
.todo-text .due.overdue { color: var(--danger); background: rgba(248,113,113,.13); border-color: rgba(248,113,113,.3); }
.todo-link { font-weight: 500; }

/* phase column polish */
.todo-list { border-radius: 16px; }
.todo-list-head h3 { letter-spacing: -0.01em; }
.add-todo { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }

/* ============================================================
   My Stuff — grouped, client-aware task cards
   ============================================================ */
.hero-tight { margin-bottom: 14px; }

/* Tabs */
.ms-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 6px; flex-wrap: wrap; }
.ms-tab { padding: 9px 14px; font-size: .9rem; font-weight: 600; color: var(--muted);
    border-bottom: 2px solid transparent; margin-bottom: -1px; border-radius: 8px 8px 0 0; }
.ms-tab:hover { color: var(--ink); background: rgba(9,19,45,.03); text-decoration: none; }
.ms-tab.active { color: var(--ink); border-bottom-color: var(--primary); }

/* Up Next */
.upnext { background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px;
    padding: 22px 22px 18px; margin: 16px 0 26px; text-align: center; position: relative; }
.upnext-tag { display: inline-block; background: #6b5a45; color: #fff; font-size: .68rem; font-weight: 800;
    letter-spacing: .08em; padding: 5px 14px; border-radius: 0 0 9px 9px; position: absolute; top: 0; left: 50%; transform: translateX(-50%); }
.upnext-hint { color: var(--muted); font-size: .92rem; line-height: 1.6; margin-top: 8px; }
.upnext .ms-rows { text-align: left; max-width: 760px; margin: 6px auto 0; }
.upnext:not(.has-items) .ms-rows { display: none; }
.upnext.has-items .upnext-hint { display: none; }

/* Grouped assignment list */
.ms-list { margin-top: 6px; }
.ms-project { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 16px 18px 6px; margin-bottom: 16px; box-shadow: var(--shadow); }
.ms-project-h { display: flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 800;
    letter-spacing: .05em; color: var(--ink); margin-bottom: 4px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.ms-project-h a { color: var(--ink); }
.ms-project-h a:hover { color: var(--teal); text-decoration: none; }
.ms-pdot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; }
.ms-pfav { width: 16px; height: 16px; border-radius: 4px; flex: 0 0 auto; object-fit: cover; }
.ms-pclient { color: var(--muted); font-weight: 600; }
.ms-listgroup { margin: 4px 0 0; }
.ms-list-h { font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 14px 0 2px; }
.ms-bucket-h-over { color: var(--danger); }
.ms-bucket-h-today { color: var(--teal); }
.ms-bucket-count { font-size: .7rem; font-weight: 700; background: rgba(9,19,45,.06); color: var(--muted); padding: 1px 8px; border-radius: 999px; margin-left: 6px; }

/* Workload filters + drill-down */
.wl-filter { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 18px; }
.wl-fbtn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; font-size: .86rem; font-weight: 600;
    background: var(--surface); border: 1px solid var(--line-2); color: var(--muted); }
.wl-fbtn:hover { color: var(--ink); border-color: var(--ink); text-decoration: none; }
.wl-fbtn.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.wl-fbtn-n { font-size: .76rem; background: rgba(9,19,45,.08); padding: 1px 8px; border-radius: 999px; }
.wl-fbtn.active .wl-fbtn-n { background: rgba(255,255,255,.2); }
.wl-fbtn-over.active { background: var(--danger); border-color: var(--danger); }
.wl-drill-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.wl-drill-tip { margin: 2px 0 14px; }
.wl-due, .wl-over { cursor: pointer; }
a.wl-over:hover, a.wl-due:hover { text-decoration: underline; }
.wl-task-list { padding: 4px 14px; }
.wl-task { display: grid; grid-template-columns: 10px 1fr auto auto; align-items: center; gap: 12px; padding: 11px 4px; border-bottom: 1px solid var(--line); }
.wl-task:last-child { border-bottom: none; }
.wl-task-dot { width: 9px; height: 9px; border-radius: 50%; }
.wl-task-main { min-width: 0; color: var(--ink); display: flex; flex-direction: column; gap: 2px; }
.wl-task-main:hover { text-decoration: none; } .wl-task-main:hover .wl-task-content { color: var(--teal); }
.wl-task-content { font-size: .92rem; font-weight: 500; }
.wl-task-sub { font-size: .76rem; color: var(--muted); }
.wl-task-who { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--muted); white-space: nowrap; }
.wl-task-who:hover { color: var(--ink); text-decoration: none; }
.wl-task-due { display: inline-flex; align-items: center; gap: 5px; font-size: .82rem; color: var(--muted); white-space: nowrap; }
.wl-task-due.overdue { color: var(--danger); font-weight: 600; }
.wl-task-due.overdue .icon { color: var(--danger); }
@media (max-width: 620px) { .wl-task { grid-template-columns: 10px 1fr; } .wl-task-who, .wl-task-due { grid-column: 2; justify-self: start; } }
.ms-rows { display: flex; flex-direction: column; }

.ms-row { display: flex; align-items: center; gap: 11px; padding: 9px 6px; border-radius: 9px;
    border-bottom: 1px solid var(--line); transition: background .12s; }
.ms-row:last-child { border-bottom: none; }
.ms-row:hover { background: rgba(9,19,45,.025); }
.ms-row:hover .ms-pin { opacity: 1; }
.ms-row-main { flex: 1; min-width: 0; color: var(--ink); }
.ms-row-main:hover { text-decoration: none; }
.ms-row-main:hover .ms-row-title { color: var(--teal); }
.ms-row-title { font-size: .95rem; line-height: 1.4; }
.ms-row-done .ms-row-title { text-decoration: line-through; color: var(--muted); }
.ms-row-meta { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; flex-wrap: wrap; justify-content: flex-end; }
.ms-chip { display: inline-flex; align-items: center; gap: 5px; font-size: .8rem; color: var(--muted); white-space: nowrap; }
.ms-chip .icon { color: var(--muted); opacity: .85; }
.ms-assignee { font-weight: 500; color: var(--ink); }
.ms-proj { font-weight: 600; color: var(--ink); background: var(--surface-2); border: 1px solid var(--line); padding: 3px 9px; border-radius: 999px; max-width: 200px; overflow: hidden; text-overflow: ellipsis; }
.ms-proj:hover { border-color: var(--line-2); text-decoration: none; }
.ms-proj-dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto; }
.ms-date.overdue { color: var(--danger); font-weight: 600; }
.ms-date.overdue .icon { color: var(--danger); opacity: 1; }
.ms-detail .icon { color: var(--muted); }
.ms-pin { background: none; border: 1px solid var(--line-2); color: var(--muted); cursor: pointer;
    width: 26px; height: 26px; border-radius: 7px; flex: 0 0 auto; font-size: 1rem; line-height: 1;
    opacity: 0; transition: .12s; display: grid; place-items: center; }
.ms-pin:hover { color: var(--primary); border-color: var(--primary); }
.ms-pin.pinned { opacity: 1; background: var(--primary); color: #fff; border-color: transparent; }

/* Standalone checkbox (assignment rows + Up Next) */
.ms-row .checkbox { width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--line-2);
    background: transparent; cursor: pointer; display: grid; place-items: center; color: #fff;
    flex: 0 0 auto; transition: .15s; padding: 0; }
.ms-row .checkbox:hover { border-color: var(--primary); }
.ms-row .checkbox.checked { background: var(--success); border-color: transparent; }
.ms-row .checkbox .icon { width: 13px; height: 13px; stroke-width: 3; }

.ms-foot { margin: 8px 0 30px; }
.ms-foot-link { font-size: .9rem; font-weight: 600; color: var(--teal); }
.ms-upcoming { margin-top: 18px; }

@media (max-width: 620px) {
    .ms-row { flex-wrap: wrap; }
    .ms-row-meta { width: 100%; justify-content: flex-start; padding-left: 33px; }
}

/* ============================================================
   Hey! notifications — timeline feed
   ============================================================ */
.notif-group { margin-bottom: 22px; }
.notif-group-h { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 10px; }
.notif-feed { position: relative; background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 8px 12px; box-shadow: var(--shadow); }
.notif { display: block; }
.notif-btn { display: grid; grid-template-columns: 38px 1fr auto; gap: 14px; align-items: start; width: 100%;
    text-align: left; background: transparent; border: none; cursor: pointer; padding: 12px; border-radius: 12px;
    position: relative; color: var(--ink); }
.notif-btn:hover { background: var(--surface-2); }
.notif.unread .notif-btn { background: rgba(255, 90, 78,.05); }
.notif.unread .notif-btn::before { content: ''; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; background: var(--teal); border-radius: 2px; }
.notif-feed .notif:not(:last-child) .notif-btn::after { content: ''; position: absolute; left: 30px; top: 46px; bottom: -6px; width: 2px; background: var(--line); }
.notif .act-avatar { position: relative; z-index: 1; }
.notif-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.notif-summary { font-size: .92rem; line-height: 1.4; font-weight: 500; }
.notif-routine .notif-summary { font-weight: 400; color: var(--muted); }
.notif-meta { font-size: .76rem; color: var(--muted); }
.notif .unread-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); margin-top: 8px; }
/* extra badge colors */
.act-badge--mention { background: #f0a500; color: #09132d; }
.act-badge--reminder { background: #9c36b5; color: #fff; }
.act-badge--bell { background: var(--muted); }

/* ============================================================
   Team directory — member cards
   ============================================================ */
.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.member-card { padding: 20px; position: relative; }
.member-card.pending { opacity: .8; border-style: dashed; }
.mc-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 12px; }
.member-card .avatar.lg { --s: 52px; font-size: 1.05rem; }
.mc-name { font-size: 1.05rem; margin-bottom: 2px; }
.mc-role { font-size: .82rem; color: var(--muted); margin-bottom: 6px; }
.mc-dept { color: var(--teal); font-weight: 600; }
.mc-email { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-email:hover { color: var(--teal); }
.mc-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.mc-edit { display: flex; gap: 10px; }
.mc-field { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.mc-field > span { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.mc-field form { margin: 0; }
.mc-actions select, .mc-dept-form input { width: 100%; font-size: .84rem; padding: 7px 9px; }
.mc-links { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; }
.mc-links .mc-merge { display: inline-flex; }

/* Search result type badges */
.search-result .result-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: 0 0 auto; }
.search-result .result-icon .icon { color: #09132d; }
.search-result .result-icon.act-badge--comment .icon, .search-result .result-icon.act-badge--doc .icon { color: #fff; }

/* ============================================================
   Auth — branded split-screen
   ============================================================ */
.auth-split { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 100vh; }
@media (max-width: 860px) { .auth-split { grid-template-columns: 1fr; } .auth-hero { display: none; } }

.auth-hero { position: relative; overflow: hidden; color: #fff;
    background:
        radial-gradient(120% 100% at 0% 0%, rgba(255, 90, 78,.35), transparent 55%),
        radial-gradient(120% 120% at 100% 100%, rgba(250, 202, 44,.18), transparent 55%),
        linear-gradient(160deg, #0a1626, #06101d); }
.auth-topo { position: absolute; inset: 0; width: 100%; height: 100%; color: rgba(255, 90, 78,.18); }
.auth-hero-inner { position: relative; z-index: 2; padding: 56px 56px 0; }
.auth-hero-brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 1.3rem; color: #fff; }
.auth-hero-logo { width: 34px; height: 34px; border-radius: 9px; }
.auth-hero-title { font-family: var(--display); font-weight: 800; font-size: clamp(1.8rem, 3.4vw, 2.8rem); letter-spacing: -0.03em; line-height: 1.12; margin: 40px 0 26px; }
.auth-hero-list { list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: 1rem; color: rgba(255,255,255,.85); }
.auth-hero-mtn { position: absolute; right: -10px; bottom: -10px; width: 60%; max-width: 360px; opacity: .9; z-index: 1; }
.auth-hero-mtn svg { width: 100%; height: auto; }

.auth-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 24px; background: var(--bg); }
.auth-panel .auth-card { width: 100%; max-width: 380px; background: transparent; border: none; box-shadow: none; padding: 0; }
.auth-brand-sm { display: none; align-items: center; gap: 8px; font-family: var(--display); font-weight: 800; margin-bottom: 18px; }
.auth-logo-sm { width: 30px; height: 30px; border-radius: 8px; }
@media (max-width: 860px) { .auth-brand-sm { display: flex; justify-content: center; } }
.auth-heading { font-family: var(--display); font-weight: 800; font-size: 1.7rem; letter-spacing: -0.02em; margin-bottom: 20px; }
.auth-foot { margin-top: 24px; font-size: .82rem; }

/* ============================================================
   Landing cleanup — tighter rhythm + clear section separation
   ============================================================ */
.lp-hero { padding-bottom: 28px !important; }
.lp-problem { padding: 60px 24px !important; }
.lp-section { border-top: 1px solid var(--line); }
.lp-spot-wrap { border-top: 1px solid var(--line); gap: 0 !important; }
.lp-spot { padding: 40px 0; }
.lp-spot + .lp-spot { border-top: 1px solid var(--line); }
.lp-spot-visual { background: var(--surface); }
.lp-finale { padding: 72px 24px 84px !important; border-top: 1px solid var(--line); }
/* a touch more presence for the hero summit */
.lp-summit-svg { max-width: 600px !important; }
@media (max-width: 900px) { .lp-summit-svg { max-width: 420px !important; } }
/* keep the announce pill from feeling cramped under the nav */
.lp-announce { margin-top: 18px; }

/* ============================================================
   Landing — impactful trust chips + hero mountain ridge
   ============================================================ */
.lp-trust { gap: 10px !important; margin-top: 26px; }
.lp-trust-item { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 600; color: var(--ink);
    background: rgba(9, 19, 45, .04); border: 1px solid var(--line-2); padding: 7px 15px 7px 9px; border-radius: 999px; }
.lp-trust-check { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%;
    background: var(--grad); color: #09132d; font-size: .72rem; font-weight: 900; flex: 0 0 auto; }

.lp-hero { padding-bottom: 140px !important; }
.lp-hero-grid { position: relative; z-index: 2; }
.lp-ridge { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 180px; z-index: 0; pointer-events: none; }
.lp-ridge-3 { fill: rgba(255, 90, 78,.06); }
.lp-ridge-2 { fill: rgba(8,19,32,.6); }
.lp-ridge-1 { fill: var(--bg); }
@media (max-width: 900px) { .lp-hero { padding-bottom: 100px !important; } .lp-ridge { height: 120px; } }

/* Full-bleed section bands — give the page rhythm and clear divides */
.lp-body { overflow-x: clip; }
.lp-band { position: relative; }
.lp-band::before { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 100vw;
    transform: translateX(-50%); z-index: 0; border-top: 1px solid var(--line); }
.lp-band--tint::before { background: linear-gradient(180deg, rgba(255, 90, 78,.04), rgba(250, 202, 44,.025) 60%, transparent); }
.lp-band--soft::before { background: linear-gradient(180deg, rgba(9, 19, 45,.018), transparent); }
.lp-band > * { position: relative; z-index: 1; }

/* Feature cards — less generic: gradient hairline top, gradient icon on hover */
.lp-feature { position: relative; overflow: hidden; }
.lp-feature::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .22s ease; }
.lp-feature:hover::before { transform: scaleX(1); }
.lp-feature-icon { background: linear-gradient(135deg, rgba(255, 90, 78,.16), rgba(250, 202, 44,.12));
    color: var(--primary); transition: background .18s, color .18s, transform .18s; }
.lp-feature:hover .lp-feature-icon { background: var(--grad); color: #fff; transform: rotate(-4deg) scale(1.05); }

/* ===== Stats band ===== */
.lp-statsband { padding: 40px 24px; }
.lp-statsband-inner { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; text-align: center; }
@media (max-width: 720px) { .lp-statsband-inner { grid-template-columns: repeat(2, 1fr); gap: 26px 18px; } }
.lp-statf { display: flex; flex-direction: column; gap: 4px; }
.lp-statf-n { font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1;
    letter-spacing: -.03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-statf-u { font-size: .9rem; -webkit-text-fill-color: var(--muted); color: var(--muted); }
.lp-statf-l { font-size: .9rem; color: var(--muted); }

/* ===== Feature bento ===== */
.lp-bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; gap: 14px; }
.lp-bento .lp-feature { margin: 0; display: flex; flex-direction: column; }
.lp-feat-lg { grid-column: span 2; grid-row: span 2; }
.lp-feat-lg h3 { font-size: 1.4rem; }
.lp-feat-lg .lp-spot-kicker { margin: 4px 0 8px; }
.lp-feat-mock { margin-top: auto; padding-top: 18px; }
.lp-feat-cta { background: linear-gradient(135deg, rgba(255,90,78,.1), rgba(250,202,44,.08)); border-color: rgba(255,90,78,.3);
    color: var(--ink); justify-content: center; }
.lp-feat-cta:hover { text-decoration: none; border-color: rgba(255,90,78,.55); transform: translateY(-4px); }
.lp-feat-cta::before { display: none; }
.lp-feat-cta-plus { font-size: 1.6rem; line-height: 1; color: var(--primary); font-weight: 700; }
.lp-feat-cta h3 { margin: 10px 0 4px; }
.lp-feat-cta p { font-size: .9rem; color: var(--muted); }
.lp-feat-cta-go { margin-top: 10px; font-weight: 700; color: var(--primary); }
@media (max-width: 900px) {
    .lp-bento { grid-template-columns: repeat(2, 1fr); }
    .lp-feat-lg { grid-column: span 2; grid-row: auto; }
}
@media (max-width: 560px) { .lp-bento { grid-template-columns: 1fr; } .lp-feat-lg { grid-column: auto; } }

/* ===== Richer audience cards ===== */
.lp-team-card { position: relative; overflow: hidden; transition: transform .15s, border-color .15s, box-shadow .15s; }
.lp-team-card:hover { transform: translateY(-4px); border-color: rgba(255,90,78,.35); box-shadow: 0 20px 50px rgba(8,19,32,.1); }
.lp-team-medallion { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; font-size: 1.5rem;
    background: linear-gradient(135deg, rgba(255,90,78,.16), rgba(250,202,44,.14)); box-shadow: inset 0 0 0 1px rgba(255,90,78,.14); }
.lp-team-card h3 { margin: 16px 0 8px; }
.lp-team-out { display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; font-size: .82rem; font-weight: 600; color: var(--ink);
    background: rgba(9,19,45,.04); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; }
.lp-team-out .icon { color: var(--success); }

/* ===== One flat price ===== */
.lp-oneprice { display: flex; justify-content: center; }
.lp-oneprice-card { position: relative; width: 100%; max-width: 520px; padding: 38px 34px; text-align: center;
    background: var(--surface); border: 1px solid rgba(255,90,78,.35); border-radius: 24px;
    box-shadow: 0 0 0 1px rgba(255,90,78,.12), 0 30px 70px rgba(8,19,32,.12); }
.lp-oneprice-card .lp-plan-tag { left: 50%; transform: translateX(-50%); }
.lp-oneprice .lp-price { font-size: clamp(3rem, 7vw, 4rem); margin: 14px 0 2px; }
.lp-oneprice .lp-price-cur { font-size: .55em; vertical-align: super; }
.lp-oneprice .lp-price span { font-size: 1rem; font-weight: 600; color: var(--muted); }
.lp-oneprice-flat { color: var(--muted); margin-bottom: 22px; }
.lp-plan-list--2col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; text-align: left; margin: 0 0 26px; }
@media (max-width: 480px) { .lp-plan-list--2col { grid-template-columns: 1fr; } }
.lp-oneprice-note { margin-top: 14px; }

/* ============================================================
   To-do board v3 — Basecamp-style stacked, readable lists
   (phases stack full-width instead of cramped 300px columns)
   ============================================================ */
.todo-columns { grid-template-columns: 1fr !important; max-width: 880px; gap: 14px; }
.track-head { max-width: 880px; }

.todo-list { padding: 22px 26px; }
.todo-list-head h3 { font-size: 1.15rem; letter-spacing: -0.01em; }
.phase-hint { max-width: 880px; }

.todo-items { gap: 7px; margin: 16px 0; }
.todo-item { padding: 12px 14px; gap: 12px; align-items: flex-start; }
.todo-item .checkbox { margin-top: 1px; }
.todo-text { font-size: .96rem; line-height: 1.5; padding-top: 1px; }
.todo-link { font-weight: 600; }
.todo-item .status-menu, .todo-item > .avatar.xs, .todo-item > .del-form { margin-top: 1px; }

/* roomier add-todo + extras within a full-width list */
.add-todo { max-width: 560px; }
.todo-extras { margin-left: 30px; }

/* ============================================================
   To-do board v4 — flat Basecamp-style rows + list dots + descriptions
   ============================================================ */
/* Flatten task cards into clean divider rows */
.todo-item {
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid var(--line) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 11px 6px !important;
    margin: 0 !important;
}
.todo-items > .todo-item:last-of-type { border-bottom: none !important; }
.todo-item:hover { background: rgba(9, 19, 45, .018) !important; box-shadow: none !important; }
.todo-item.done { opacity: .55; }
.todo-item:has(.bulk-check:checked) { background: rgba(255, 90, 78,.06) !important; }
.todo-items { gap: 0 !important; margin: 8px 0 !important; }

/* status as a small left marker instead of a card border */
.todo-item.status-blocked,
.todo-item.status-in_review,
.todo-item.status-in_progress { border-left: none !important; padding-left: 6px !important; }

/* subtasks: lighter, indented, on a connector */
.subtask-items { margin-left: 30px !important; }
.todo-item.is-sub { background: transparent !important; }

/* List header: colored dot + description */
.todo-list-head h3 { display: flex; align-items: center; gap: 9px; }
.list-dot { width: 11px; height: 11px; border-radius: 50%; flex: 0 0 auto; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 0%, transparent); }
.list-desc { color: var(--muted); font-size: .9rem; line-height: 1.45; margin: 6px 0 2px 20px; }
.phase-desc-input { width: 100%; }

/* ===== Basecamp import ===== */
.bc-connect-card { display: flex; align-items: center; gap: 14px; padding: 18px 20px; margin-bottom: 18px; color: var(--ink);
    border: 1px solid var(--line-2); }
.bc-connect-card:hover { border-color: rgba(255, 90, 78,.5); text-decoration: none; transform: translateY(-2px); }
.bc-connect-ic { font-size: 1.8rem; }
.bc-connect-arrow { margin-left: auto; color: var(--teal); font-size: 1.3rem; }
.bc-list { display: flex; flex-direction: column; gap: 4px; max-height: 360px; overflow-y: auto; margin: 6px 0 14px; }
.bc-row { display: flex; align-items: flex-start; gap: 12px; padding: 11px 12px; border-radius: 10px; }
.bc-row:hover { background: var(--bg-2); }
.bc-row input { margin-top: 3px; }
.bc-row-pick { display: flex; align-items: flex-start; gap: 12px; flex: 1 1 auto; min-width: 0; cursor: pointer; }
.bc-tpl-link { flex: 0 0 auto; align-self: center; font-size: .82rem; font-weight: 600; color: var(--primary); white-space: nowrap;
    padding: 5px 11px; border: 1px solid var(--line-2); border-radius: 999px; }
.bc-tpl-link:hover { border-color: var(--primary); text-decoration: none; }

/* ===== New brand assets (icon in header, wordmark in footer/elsewhere) ===== */
.brand-icon { height: 38px; width: 38px; display: block; object-fit: contain; }
.brand-icon--org { width: auto; max-width: 150px; border-radius: 8px; }
/* Workspace branding page */
.brand-logo-row { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.brand-logo-preview { flex: 0 0 auto; min-width: 140px; min-height: 64px; padding: 12px 16px; display: flex; align-items: center; justify-content: center; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; }
.brand-logo-preview img { max-height: 48px; max-width: 200px; object-fit: contain; }
.brand-color-row { display: inline-flex; align-items: center; gap: 12px; }
.brand-color-row input[type="color"] { width: 48px; height: 38px; padding: 0; border: 1px solid var(--line-2); border-radius: 8px; background: none; cursor: pointer; }
.card-title { font-size: 1rem; font-family: var(--display); margin-bottom: 4px; }
.brand:hover .brand-icon { transform: translateY(-1px); transition: transform .12s; }
.brand-wordmark { display: block; }
.footer { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.footer .brand-wordmark { opacity: .9; }
.lp-footer-brand .brand-wordmark { margin-bottom: 8px; }

/* New PNG brand assets sizing */
.brand-wordmark { height: 34px; width: auto; display: block; }
.footer .brand-wordmark { height: 28px; opacity: .9; }
.lp-footer-brand .brand-wordmark { height: 36px; margin-bottom: 8px; }

/* ============================ Comparison pages ============================ */
.lp-h3 { font-family: var(--display); font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; }
.lp-crumb { max-width: 1100px; margin: 0 auto; padding: 20px 24px 0; font-size: .85rem; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.lp-crumb a { color: var(--muted); } .lp-crumb a:hover { color: var(--ink); }
.lp-crumb span { opacity: .5; }

.cmp-hero { text-align: center; padding-top: 40px; padding-bottom: 40px; }
.cmp-h1 { margin: 10px auto 0; }
.cmp-vs { font-style: italic; color: var(--primary); font-weight: 700; -webkit-text-fill-color: var(--primary); }
.cmp-sub { margin-left: auto; margin-right: auto; }
.cmp-hero .lp-hero-cta { justify-content: center; margin-top: 28px; }
.cmp-trust { margin-top: 16px; }
.cmp-trust i { color: var(--success); }

/* At-a-glance cards */
.cmp-glance { padding-top: 24px; }
.cmp-glance-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cmp-glance-card { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.cmp-glance-wayvo { border-color: rgba(255,90,78,.35);
    background: radial-gradient(420px 200px at 0% 0%, rgba(255,90,78,.07), transparent 60%), var(--surface); }
.cmp-glance-card h3 { display: flex; align-items: center; gap: 9px; font-family: var(--display); font-size: 1.35rem; }
.cmp-logo { width: 26px; height: 26px; border-radius: 7px; }
.cmp-tagline { color: var(--ink); font-weight: 600; margin: 6px 0 10px; }
.cmp-price { margin-top: 14px; font-family: var(--display); font-weight: 800; font-size: 1.5rem; color: var(--primary); }
.cmp-price span { font-size: .82rem; font-weight: 500; color: var(--muted); }
.cmp-price-alt { color: var(--ink); font-size: 1rem; font-weight: 600; }

/* Matrix table */
.cmp-matrix-wrap { text-align: center; }
.cmp-table-scroll { overflow-x: auto; margin: 30px auto 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.cmp-table { width: 100%; border-collapse: collapse; text-align: left; min-width: 520px; }
.cmp-table-wide { min-width: 820px; }
.cmp-table th, .cmp-table td { padding: 15px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.cmp-table thead th { font-family: var(--display); font-size: .9rem; font-weight: 700; color: var(--ink); white-space: nowrap; text-align: center; }
.cmp-table thead th.cmp-feat { text-align: left; }
.cmp-table tbody tr:last-child td { border-bottom: none; }
.cmp-table td:not(.cmp-feat) { text-align: center; }
.cmp-feat { font-weight: 600; color: var(--ink); font-size: .95rem; }
.cmp-col-wayvo { background: rgba(255,90,78,.05); }
.cmp-table thead th.cmp-col-wayvo { color: var(--primary); }
.cmp-mark { font-size: 1.15rem; line-height: 1; }
.cmp-mark.cmp-yes { color: var(--success); }
.cmp-mark.cmp-partial { color: var(--warning); }
.cmp-mark.cmp-no { color: var(--line-2); }
.cmp-note { display: block; font-size: .74rem; color: var(--muted); margin-top: 4px; max-width: 220px; margin-left: auto; margin-right: auto; line-height: 1.35; }
.cmp-disclaimer { margin-top: 18px; }
.cmp-disclaimer i { color: var(--muted); }
.cmp-legend { display: inline-flex; flex-wrap: wrap; gap: 14px; margin-left: 10px; align-items: center; }
.cmp-legend .cmp-mark { font-size: .95rem; }

/* Why-switch grid */
.cmp-why { text-align: center; }
.cmp-why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 34px; text-align: left; }
.cmp-why-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.cmp-why-ic { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; font-size: 1.25rem; margin-bottom: 12px;
    background: color-mix(in srgb, var(--accent) 16%, var(--surface-2)); color: var(--primary); }
.cmp-why-ic i { --fa-secondary-color: var(--accent); --fa-secondary-opacity: .9; }
.cmp-why-item h3 { font-family: var(--display); font-size: 1.08rem; margin-bottom: 6px; }

.cmp-fair { text-align: center; }
.cmp-fair-body { max-width: 720px; margin: 18px auto 0; font-size: 1.08rem; color: var(--muted); line-height: 1.7; }

/* CTA + cards */
.cmp-cta { text-align: center; }
.cmp-cta-card { background: radial-gradient(600px 240px at 50% 0%, rgba(255,90,78,.10), transparent 65%), var(--surface);
    border: 1px solid var(--line-2); border-radius: var(--radius); padding: 48px 28px; }
.cmp-cta-card .lp-hero-cta { justify-content: center; margin-top: 24px; }

.cmp-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cmp-card { display: flex; flex-direction: column; gap: 6px; background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); transition: transform .12s, box-shadow .12s, border-color .12s; }
.cmp-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--line-2); text-decoration: none; }
.cmp-card-h { font-family: var(--display); font-size: 1.3rem; color: var(--ink); }
.cmp-card-tag { color: var(--ink); font-weight: 600; }
.cmp-card-link { margin-top: auto; padding-top: 10px; color: var(--primary); font-weight: 600; font-size: .9rem; }

.cmp-others { text-align: center; }
.cmp-others-grid { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 22px; }
.cmp-other-chip { padding: 9px 16px; border: 1px solid var(--line-2); border-radius: 999px; font-size: .9rem; font-weight: 600; color: var(--ink); background: var(--surface); }
.cmp-other-chip:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }

@media (max-width: 860px) {
    .cmp-glance-grid, .cmp-why-grid, .cmp-card-grid { grid-template-columns: 1fr; }
    .cmp-why-grid { gap: 14px; }
}

/* Comparison FAQ + listicles */
.cmp-faq { max-width: 820px; }
.cmp-faq-list { margin-top: 26px; display: grid; gap: 12px; }
.cmp-faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 20px; }
.cmp-faq-item summary { cursor: pointer; font-weight: 600; font-family: var(--display); padding: 16px 0; list-style: none; position: relative; padding-right: 28px; }
.cmp-faq-item summary::-webkit-details-marker { display: none; }
.cmp-faq-item summary::after { content: '+'; position: absolute; right: 2px; top: 14px; font-size: 1.3rem; color: var(--primary); font-weight: 400; }
.cmp-faq-item[open] summary::after { content: '\2212'; }
.cmp-faq-item p { margin: 0 0 18px; color: var(--muted); line-height: 1.6; }

.cmp-rank { display: grid; gap: 18px; }
.cmp-rank-card { display: flex; gap: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.cmp-rank-top { border-color: rgba(255,90,78,.35);
    background: radial-gradient(560px 220px at 0% 0%, rgba(255,90,78,.08), transparent 60%), var(--surface); }
.cmp-rank-badge { flex: 0 0 auto; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px;
    font-family: var(--display); font-weight: 800; font-size: 1.2rem; color: #fff; background: var(--grad); }
.cmp-rank-num { background: var(--surface-2); color: var(--muted); }
.cmp-rank-body { flex: 1 1 auto; min-width: 0; }
.cmp-rank-h { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 1.4rem; flex-wrap: wrap; }
.cmp-pick { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--primary);
    background: rgba(255,90,78,.10); border: 1px solid rgba(255,90,78,.25); padding: 3px 9px; border-radius: 999px; }
.cmp-rank-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 14px 0 16px; font-size: .85rem; color: var(--muted); }
.cmp-rank-meta strong { color: var(--ink); display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; }
.cmp-hub-guides { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }
@media (max-width: 700px) { .cmp-rank-card { flex-direction: column; gap: 14px; } }

/* ===== Template editor ===== */
.tpl-title-input { font-family: var(--display); font-weight: 800; font-size: clamp(1.6rem, 4vw, 2.2rem); letter-spacing: -0.02em;
    border: none; background: transparent; color: var(--ink); width: 100%; padding: 2px 0; }
.tpl-title-input:focus { outline: none; border-bottom: 2px solid var(--primary); }
.tpl-desc-input { border: none; background: transparent; color: var(--muted); width: 100%; font-size: 1rem; padding: 4px 0; margin-top: 4px; }
.tpl-desc-input:focus { outline: none; }
.tpl-help { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; margin: 4px 0 16px; }
.tpl-help i { color: var(--primary); }
.tpl-phased { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 600; color: var(--ink); margin-bottom: 16px; cursor: pointer; }
.tpl-lists { display: grid; gap: 16px; }
.tpl-list { padding: 18px; }
.tpl-list-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-bottom: 12px; margin-bottom: 10px; border-bottom: 1px solid var(--line); }
/* Override the global width:100% on inputs/selects so editor controls size to content */
.tpl-list-name, .tpl-list-track, .tpl-task-content, .tpl-week, .tpl-dow, .tpl-pri, .tpl-rec, .tpl-assignee { width: auto; }
.tpl-list-name { flex: 1 1 240px; min-width: 0; font-family: var(--display); font-weight: 700; font-size: 1.05rem;
    border: none; background: transparent; color: var(--ink); padding: 4px 0; }
.tpl-list-name:focus { outline: none; border-bottom: 2px solid var(--primary); }
.tpl-list-track { flex: 0 0 130px; padding: 6px 9px; border: 1px solid var(--line-2); border-radius: 8px; font-size: .82rem; background: var(--surface); color: var(--ink); }
.tpl-phasenum { width: 46px; }
.tpl-phase-f .tpl-due-l { color: var(--primary); }
.tpl-assignee { flex: 0 0 auto; max-width: 150px; padding: 7px 8px; border: 1px solid var(--line-2); border-radius: 8px; font-size: .82rem; background: var(--surface); color: var(--ink); }
.tpl-tasks { display: grid; gap: 8px; }
.tpl-task { display: flex; align-items: center; gap: 8px; }
.tpl-grip { color: var(--line-2); cursor: default; font-size: .8rem; letter-spacing: -2px; flex: 0 0 auto; }
.tpl-task-content { flex: 1 1 auto; min-width: 120px; padding: 8px 11px; border: 1px solid var(--line-2); border-radius: 9px; font-size: .92rem; background: var(--surface); color: var(--ink); }
.tpl-due { display: inline-flex; align-items: center; gap: 5px; flex: 0 0 auto; }
.tpl-due-l { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); white-space: nowrap; }
.tpl-week { flex: 0 0 auto; width: 52px; padding: 7px 6px; border: 1px solid var(--line-2); border-radius: 8px; font-size: .85rem; text-align: center; background: var(--surface); color: var(--ink); }
.tpl-dow, .tpl-pri, .tpl-rec { flex: 0 0 auto; padding: 7px 6px; border: 1px solid var(--line-2); border-radius: 8px; font-size: .85rem; background: var(--surface); color: var(--ink); }
.tpl-dow { min-width: 72px; }
.tpl-rec { width: 92px; }
.tpl-pri { min-width: 68px; }
.tpl-del-task { flex: 0 0 auto; width: 28px; height: 28px; border: 1px solid var(--line-2); background: var(--surface); color: var(--muted); border-radius: 8px; cursor: pointer; font-size: 1.1rem; line-height: 1; }
.tpl-del-task:hover { background: var(--danger); color: #fff; border-color: var(--danger); }
.tpl-add-task { margin-top: 12px; }
.tpl-list-due { margin-left: auto; }
.tpl-editor-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
@media (max-width: 680px) {
    .tpl-task { flex-wrap: wrap; }
    .tpl-task-content { flex: 1 1 100%; }
    .tpl-list-due { margin-left: 0; }
}

/* Deliverables editor in the narrow overview sidebar: stack label over value */
.ov-deliverables .dlv-row { flex-wrap: wrap; gap: 4px 6px; padding-bottom: 9px; border-bottom: 1px dashed var(--line); }
.ov-deliverables .dlv-rows .dlv-row:last-child { border-bottom: none; padding-bottom: 0; }
.ov-deliverables .dlv-row .dlv-label { flex: 1 1 100%; font-weight: 600; font-size: .82rem; }
.ov-deliverables .dlv-row .dlv-value { flex: 1 1 auto; min-width: 0; }

.bc-selectall { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; margin-bottom: 8px; cursor: pointer; }
.bc-selectall input { margin: 0; }

/* Template editor — message board section */
.tpl-msgs-section { margin: 26px 0 8px; padding-top: 20px; border-top: 1px solid var(--line); }
.tpl-section-title { font-size: 1.1rem; font-family: var(--display); margin-bottom: 4px; }
.tpl-msgs { display: grid; gap: 12px; margin: 12px 0; }
.tpl-msg { padding: 14px 16px; }
.tpl-msg-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.tpl-msg-title { flex: 1 1 auto; min-width: 0; font-family: var(--display); font-weight: 700; font-size: 1rem; border: none; background: transparent; color: var(--ink); padding: 4px 0; border-bottom: 1px solid transparent; }
.tpl-msg-title:focus { outline: none; border-bottom: 1px solid var(--primary); }
.tpl-msg-body { width: 100%; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 9px; font-size: .9rem; background: var(--surface); color: var(--ink); resize: vertical; }

/* Beat the global input[type=number]{width:100%} so week boxes stay compact */
.tpl-editor .tpl-week { width: 52px; flex: 0 0 auto; }
.tpl-editor .tpl-list-head { row-gap: 8px; }
.tpl-editor .tpl-list-due { flex: 0 0 auto; }

/* ===== Sticky time tracker ===== */
.time-fab { position: fixed; left: 24px; bottom: 24px; z-index: 90; display: inline-flex; align-items: center; gap: 10px;
    padding: 9px 12px 9px 14px; border-radius: 999px; background: var(--ink); color: #fff;
    box-shadow: 0 10px 30px rgba(9,19,45,.28); }
.time-fab-pulse { width: 9px; height: 9px; border-radius: 50%; background: #ff5a4e; flex: 0 0 auto;
    box-shadow: 0 0 0 0 rgba(255,90,78,.7); animation: timePulse 1.6s infinite; }
@keyframes timePulse { 0% { box-shadow: 0 0 0 0 rgba(255,90,78,.6); } 70% { box-shadow: 0 0 0 8px rgba(255,90,78,0); } 100% { box-shadow: 0 0 0 0 rgba(255,90,78,0); } }
.time-fab-main { display: inline-flex; align-items: baseline; gap: 9px; color: #fff; }
.time-fab-main:hover { text-decoration: none; }
.time-fab-clock { font-family: var(--display); font-weight: 800; font-size: 1.05rem; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.time-fab-label { font-size: .82rem; color: rgba(255,255,255,.7); max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.time-fab-stopform { margin: 0; }
.time-fab-stop { display: inline-flex; align-items: center; gap: 5px; border: none; cursor: pointer;
    background: rgba(255,255,255,.14); color: #fff; font-weight: 700; font-size: .82rem; padding: 6px 12px; border-radius: 999px; }
.time-fab-stop:hover { background: var(--primary); }
.time-fab-stop i { --fa-secondary-opacity: .5; }
@media (max-width: 560px) { .time-fab { left: 12px; bottom: 12px; } .time-fab-label { display: none; } }

/* Sticky timer: start state (on a project) */
/* Compact round FAB; the picker pops up on click */
.time-fab-start { padding: 0; border-radius: 50%; background: var(--ink); border: none; box-shadow: 0 8px 24px rgba(9,19,45,.28); }
.time-fab-start .time-fab-startbtn { width: 50px; height: 50px; display: inline-flex; align-items: center; justify-content: center;
    border: none; background: none; cursor: pointer; padding: 0; gap: 0; font-size: 0; border-radius: 50%; }
.time-fab-start .time-fab-startbtn:hover { background: rgba(255,255,255,.12); }
.time-fab-start .time-fab-startbtn i { color: #fff; font-size: 1.3rem; }
.time-fab-start .time-fab-label { display: none; }

.wl-drill-actions { display: inline-flex; align-items: center; gap: 14px; }
.wl-drill-actions .fa-file-excel { color: #1d6f42; }
.wl-open[href]:hover { color: var(--primary); text-decoration: none; }

/* SEOApp connector */
.conn-health-badge { display: inline-block; padding: 4px 14px; border-radius: 999px; color: #fff; font-weight: 800; font-size: .85rem; letter-spacing: .01em; }
.conn-seoapp-health { display: flex; align-items: center; gap: 10px; margin: 4px 0 14px; }
.conn-seoapp-link { display: inline-block; }
.conn-seoapp-link > summary { list-style: none; cursor: pointer; }
.conn-seoapp-link > summary::-webkit-details-marker { display: none; }
.conn-seoapp-form { display: inline-flex; gap: 6px; margin-top: 8px; }
.conn-seoapp-form input { width: 160px; }

/* Sticky timer quick-start picker */
.time-fab-picker, .time-fab.time-fab-start { position: fixed; left: 24px; bottom: 24px; }
.time-pop { position: absolute; bottom: calc(100% + 10px); left: 0; width: 340px; max-width: calc(100vw - 28px);
    background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: var(--shadow-lg);
    overflow: hidden; display: flex; flex-direction: column; }
.time-pop[hidden] { display: none !important; }
.time-pop-head { padding: 10px; border-bottom: 1px solid var(--line); }
.time-pop-search { width: 100%; padding: 9px 12px; border: 1px solid var(--line-2); border-radius: 9px; font-size: .9rem; background: var(--bg-2); color: var(--ink); }
.time-pop-list { max-height: 320px; overflow-y: auto; padding: 6px; }
.time-pop-item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: none; cursor: pointer;
    background: none; color: var(--ink); padding: 9px 10px; border-radius: 9px; font: inherit; }
.time-pop-item:hover, .time-pop-item.active { background: var(--surface-2); }
.time-pop-none { font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--line); border-radius: 0; margin-bottom: 4px; }
.time-pop-dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 auto; }
.time-pop-text { display: flex; flex-direction: column; min-width: 0; }
.time-pop-task { font-size: .9rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.time-pop-proj { font-size: .76rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.time-pop-empty { padding: 18px; text-align: center; color: var(--muted); font-size: .85rem; }

/* SEOApp: project picker, keyword table, overview badge */
.conn-seoapp-select { min-width: 220px; }
.conn-seoapp-hint { margin-top: 6px; }
.conn-kw { margin-top: 14px; }
.conn-kw > summary { cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--primary); }
.conn-kw > summary::-webkit-details-marker { display: none; }
.conn-kw-wrap { max-height: 360px; overflow-y: auto; margin-top: 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.conn-kw-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.conn-kw-table th { position: sticky; top: 0; background: var(--surface); text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 9px 12px; border-bottom: 1px solid var(--line); }
.conn-kw-table th:last-child, .conn-kw-table td:last-child { text-align: right; width: 90px; }
.conn-kw-table td { padding: 8px 12px; border-bottom: 1px solid var(--line); }
.conn-kw-table tr:last-child td { border-bottom: none; }
.conn-kw-pos { font-weight: 800; font-variant-numeric: tabular-nums; }
.ov-health-badge { display: inline-block; padding: 1px 9px; border-radius: 999px; color: #fff; font-weight: 700; font-size: .72rem; }
.ov-conn-seoapp { align-items: center; }

/* Sticky timer: custom / client panel */
.time-pop-action { font-weight: 600; color: var(--primary); border-bottom: 1px solid var(--line); border-radius: 0; margin-bottom: 4px; }
.time-pop-custom { padding: 12px; display: flex; flex-direction: column; gap: 9px; }
.time-pop-custom-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 2px; }

/* Recall: meeting recorder */
.conn-recall { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.recall-form { display: flex; flex-direction: column; gap: 12px; }
.recall-url { max-width: 460px; }
.recall-people-l { display: block; font-size: .8rem; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.recall-people-grid { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.recall-person { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; cursor: pointer; }
.recall-reminder { display: flex; align-items: flex-start; gap: 8px; font-size: .85rem; color: var(--ink);
    background: rgba(31,111,235,.08); border: 1px solid rgba(31,111,235,.22); border-radius: 10px; padding: 9px 12px; margin: 4px 0 0; }
.recall-reminder i, .recall-reminder .i-emoji { color: #1f6feb; flex: 0 0 auto; margin-top: 1px; }

/* "Call in progress" banner shown above the project tabs. */
.call-alert { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; padding: 12px 16px;
    background: rgba(224,49,49,.07); border: 1px solid rgba(224,49,49,.28); border-radius: var(--radius-sm); }
.call-alert-rec { display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; font-size: .72rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: .05em; color: #e03131; }
.call-rec-dot { width: 10px; height: 10px; border-radius: 50%; background: #e03131; animation: callpulse 1.4s ease-in-out infinite; }
@keyframes callpulse { 0%,100% { opacity: 1; box-shadow: 0 0 0 0 rgba(224,49,49,.45); } 50% { opacity: .55; box-shadow: 0 0 0 6px rgba(224,49,49,0); } }
.call-alert-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.call-alert form { flex: 0 0 auto; }
.recall-list { margin-top: 16px; display: grid; gap: 6px; }
.recall-row { display: flex; align-items: center; gap: 12px; font-size: .85rem; padding: 7px 0; border-top: 1px solid var(--line); }
.recall-row-url { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recall-status { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: 2px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.recall-status.recall-done { background: rgba(22,163,74,.14); color: var(--success); }
.recall-status.recall-sent { background: rgba(255,90,78,.12); color: var(--primary); }

/* Sticky timer — compact & out of the way on mobile */
@media (max-width: 600px) {
    .time-fab { left: 12px; bottom: 12px; }
    .time-fab-label { display: none; }
    /* Start states collapse to a small round icon button */
    .time-fab-start { padding: 0 !important; border-radius: 50%; }
    .time-fab-start .time-fab-startbtn { width: 46px; height: 46px; padding: 0; justify-content: center; gap: 0; font-size: 0; border-radius: 50%; }
    .time-fab-start .time-fab-startbtn i { font-size: 1.15rem; }
    /* Running pill stays small; stop becomes icon-only */
    .time-fab[data-started] { padding: 7px 10px; gap: 8px; }
    .time-fab-clock { font-size: .98rem; }
    .time-fab-stop { padding: 6px 9px; font-size: 0; gap: 0; }
    .time-fab-stop i { font-size: 1rem; }
    /* Picker popover fits the viewport */
    .time-pop { width: calc(100vw - 24px); max-height: 72vh; }
    .time-pop-list { max-height: 48vh; }
    /* Keep clear of the live-activity button on the opposite corner */
    .feed-fab { bottom: 12px; }
}

/* Avatar upload */
.ap-upload { display: flex; align-items: center; gap: 12px; margin: 8px 0; flex-wrap: wrap; }
.ap-upload-btn { cursor: pointer; }

/* Deliverables auto-fill + migration page */
.dlv-extract-form { margin-top: 6px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.dlv-extract { color: var(--primary); font-weight: 600; }
.dlv-extract i { --fa-secondary-color: var(--accent); --fa-secondary-opacity: 1; }
.mig-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; margin-bottom: 16px; flex-wrap: wrap; }
.mig-list { padding: 6px 10px; }
.mig-row { display: flex; align-items: center; gap: 12px; padding: 11px 8px; border-bottom: 1px solid var(--line); }
.mig-row:last-child { border-bottom: none; }
.mig-dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; }
.mig-name { font-weight: 600; flex: 0 0 auto; }
.mig-status { flex: 1 1 auto; }
.mig-status.mig-ok { color: var(--success); font-weight: 600; }
.mig-status.mig-err { color: var(--danger); font-weight: 600; }

/* Project overview: total time tracked block */
.ov-timetotal { display: block; }
.ov-timetotal:hover { text-decoration: none; border-color: var(--primary); }
.ov-tt-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ov-tt-l { font-weight: 700; font-size: .95rem; display: inline-flex; align-items: center; gap: 8px; }
.ov-tt-l i { color: var(--primary); }
.ov-tt-link { font-size: .8rem; color: var(--primary); font-weight: 600; }
.ov-tt-n { display: block; font-family: var(--display); font-weight: 800; font-size: 1.9rem; line-height: 1.1; margin: 8px 0 4px; color: var(--ink); }

/* Connectors actions: buttons row + links row */
.conn-actions { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.conn-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.conn-links { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.conn-id-link { position: relative; }
.conn-id-link > summary { list-style: none; cursor: pointer; font-size: .84rem; color: var(--muted); font-weight: 600; }
.conn-id-link > summary::-webkit-details-marker { display: none; }
.conn-id-link[open] > summary { color: var(--ink); }
.conn-id-form { display: inline-flex; gap: 6px; margin-top: 8px; }
.conn-id-form input { width: 190px; }



/* Project People page */
.ppl-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 18px; align-items: start; }
@media (max-width: 820px) { .ppl-grid { grid-template-columns: 1fr; } }
.ppl-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.ppl-sec-head h3 { margin: 0; }
.ppl-selectall { display: inline-flex; align-items: center; gap: 7px; font-size: .85rem; font-weight: 600; color: var(--primary); cursor: pointer; }
.ppl-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 4px; max-height: 340px; overflow-y: auto; margin: 0 -6px; padding: 0 6px; }
.ppl-person { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 9px; cursor: pointer; transition: background .12s; }
.ppl-person:hover { background: var(--surface-2); }
.ppl-person input { flex: 0 0 auto; }
.ppl-person-name { font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ppl-or { margin: 22px 0 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.ppl-members { display: grid; gap: 2px; }
.ppl-member { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 9px; font-size: .92rem; }
.ppl-member:hover { background: var(--surface-2); }
.ppl-member-name { flex: 1 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ppl-owner { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: var(--surface-2); padding: 1px 7px; border-radius: 999px; }
.ppl-remove button { width: 24px; height: 24px; border: 1px solid var(--line-2); background: var(--surface); color: var(--muted); border-radius: 7px; cursor: pointer; font-size: 1rem; line-height: 1; flex: 0 0 auto; }
.ppl-remove button:hover { background: var(--danger); color: #fff; border-color: var(--danger); }
.ppl-pending-h { margin: 18px 0 8px; }
.ppl-pending { color: var(--muted); }
.ppl-pending-ic i { color: var(--primary); }

/* Message notify selector */
.msg-notify-opt { display: inline-flex; align-items: center; gap: 7px; margin-right: 18px; font-size: .92rem; cursor: pointer; }
.msg-recipients { margin-top: 12px; padding: 14px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.msg-recip-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.msg-recip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.msg-recip { position: relative; display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 10px;
    background: var(--surface); border: 1.5px solid var(--line-2); cursor: pointer; transition: border-color .12s, box-shadow .12s; }
.msg-recip:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.msg-recip input { position: absolute; opacity: 0; pointer-events: none; }
.msg-recip-name { font-size: .88rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1 1 auto; min-width: 0; }
.msg-recip-check { flex: 0 0 auto; width: 18px; height: 18px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
    background: var(--surface-2); color: transparent; font-size: .6rem; transition: background .12s, color .12s; }
.msg-recip:has(input:checked) { border-color: var(--primary); background: rgba(255,90,78,.06); }
.msg-recip:has(input:checked) .msg-recip-check { background: var(--primary); color: #fff; }
