/* ==========================================================================
   KAAF Task System
   A single stylesheet. No framework, no CDN, no external fonts - which is what
   lets the app run under a strict Content-Security-Policy.
   ========================================================================== */

/* --------------------------------------------------------------- tokens */

:root {
    /* Neutrals */
    --bg:            #f6f7f9;
    --surface:       #ffffff;
    --surface-2:     #fbfcfd;
    --surface-sunk:  #f2f4f7;
    --border:        #e4e7ec;
    --border-strong: #d0d5dd;

    /* Text */
    --text:          #101828;
    --text-muted:    #667085;
    --text-subtle:   #98a2b3;
    --text-invert:   #ffffff;

    /* Brand */
    --brand:         #1f5eff;
    --brand-strong:  #1749cc;
    --brand-soft:    #eef3ff;
    --brand-border:  #c7d7fe;

    /* Status */
    --ok:            #067647;
    --ok-soft:       #ecfdf3;
    --ok-border:     #abefc6;
    --warn:          #b54708;
    --warn-soft:     #fffaeb;
    --warn-border:   #fedf89;
    --danger:        #b42318;
    --danger-soft:   #fef3f2;
    --danger-border: #fecdca;
    --info:          #175cd3;
    --info-soft:     #eff8ff;
    --info-border:   #b2ddff;

    /* Navigation shell */
    --nav-bg:        #0d1220;
    --nav-bg-2:      #151c30;
    --nav-text:      #b9c0d4;
    --nav-text-hi:   #ffffff;
    --nav-active:    #1f5eff;

    /* Shape and depth */
    --radius:     12px;
    --radius-sm:  8px;
    --radius-lg:  16px;
    --shadow-sm:  0 1px 2px rgba(16, 24, 40, .06);
    --shadow:     0 1px 3px rgba(16, 24, 40, .1), 0 1px 2px rgba(16, 24, 40, .06);
    --shadow-lg:  0 12px 16px -4px rgba(16, 24, 40, .08), 0 4px 6px -2px rgba(16, 24, 40, .03);

    --sidebar-w:  248px;
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

/* The dark palette is declared twice on purpose:
     - inside the media query, guarded so an explicit "light" choice still wins;
     - on [data-theme="dark"], so the toggle can force dark on a light OS.
   Every token below overrides one already defined on bare :root, so no colour
   has its only definition inside a media query. */

:root[data-theme="dark"] {
    --bg:            #0b0f19;
    --surface:       #121828;
    --surface-2:     #161d30;
    --surface-sunk:  #0e1420;
    --border:        #232c42;
    --border-strong: #33405e;

    --text:          #eaecf2;
    --text-muted:    #97a1b8;
    --text-subtle:   #6b7690;

    --brand:         #4d82ff;
    --brand-strong:  #6b97ff;
    --brand-soft:    #16223f;
    --brand-border:  #294482;

    --ok:            #4ade80;
    --ok-soft:       #0c2318;
    --ok-border:     #17512f;
    --warn:          #fbbf5c;
    --warn-soft:     #2a1c07;
    --warn-border:   #5c3a0d;
    --danger:        #f97066;
    --danger-soft:   #2a1211;
    --danger-border: #5c2320;
    --info:          #6ba8f5;
    --info-soft:     #0e1f38;
    --info-border:   #1c3c6b;

    --nav-bg:        #080c15;
    --nav-bg-2:      #141c2e;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow:    0 1px 3px rgba(0, 0, 0, .5);
    --shadow-lg: 0 12px 20px -6px rgba(0, 0, 0, .55);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg:            #0b0f19;
        --surface:       #121828;
        --surface-2:     #161d30;
        --surface-sunk:  #0e1420;
        --border:        #232c42;
        --border-strong: #33405e;

        --text:          #eaecf2;
        --text-muted:    #97a1b8;
        --text-subtle:   #6b7690;

        --brand:         #4d82ff;
        --brand-strong:  #6b97ff;
        --brand-soft:    #16223f;
        --brand-border:  #294482;

        --ok:            #4ade80;
        --ok-soft:       #0c2318;
        --ok-border:     #17512f;
        --warn:          #fbbf5c;
        --warn-soft:     #2a1c07;
        --warn-border:   #5c3a0d;
        --danger:        #f97066;
        --danger-soft:   #2a1211;
        --danger-border: #5c2320;
        --info:          #6ba8f5;
        --info-soft:     #0e1f38;
        --info-border:   #1c3c6b;

        --nav-bg:        #080c15;
        --nav-bg-2:      #141c2e;

        --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
        --shadow:    0 1px 3px rgba(0, 0, 0, .5);
        --shadow-lg: 0 12px 20px -6px rgba(0, 0, 0, .55);
    }
}

/* ---------------------------------------------------------------- reset */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.55;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -.011em; line-height: 1.3; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.175rem; }
h3 { font-size: 1rem; }
h4 { font-size: .9375rem; }
p  { margin: 0 0 .75rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
    border-radius: 4px;
}

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ================================================================= SHELL */

.shell { display: flex; min-height: 100vh; }

/* --------------------------------------------------------------- sidebar */

.sidebar {
    width: var(--sidebar-w);
    flex: 0 0 var(--sidebar-w);
    background: var(--nav-bg);
    color: var(--nav-text);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 30;
}

.sidebar__brand {
    display: flex;
    align-items: center;
    gap: .625rem;
    padding: 1.125rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.sidebar__logo {
    width: 34px; height: 34px;
    border-radius: 9px;
    background: var(--brand);
    color: #fff;
    display: grid; place-items: center;
    font-weight: 700; font-size: .8125rem;
    flex: 0 0 auto;
    overflow: hidden;
}
.sidebar__logo img { width: 100%; height: 100%; object-fit: cover; }

.sidebar__title { font-size: .9375rem; font-weight: 650; color: var(--nav-text-hi); line-height: 1.2; }
.sidebar__sub   { font-size: .75rem; color: var(--text-subtle); }

.sidebar__nav { padding: .875rem .75rem; flex: 1; overflow-y: auto; }

.sidebar__label {
    font-size: .6875rem;
    font-weight: 650;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #5d6782;
    padding: .875rem .5rem .375rem;
}

.navlink {
    display: flex;
    align-items: center;
    gap: .625rem;
    padding: .5rem .625rem;
    border-radius: var(--radius-sm);
    color: var(--nav-text);
    font-size: .9063rem;
    font-weight: 500;
    margin-bottom: 2px;
    transition: background .12s, color .12s;
}
.navlink:hover { background: var(--nav-bg-2); color: var(--nav-text-hi); text-decoration: none; }
.navlink[aria-current="page"] { background: var(--nav-active); color: #fff; }
.navlink[aria-current="page"] .navlink__icon { opacity: 1; }
.navlink__icon { width: 18px; height: 18px; opacity: .75; flex: 0 0 auto; }
.navlink__badge {
    margin-left: auto;
    background: rgba(255, 255, 255, .14);
    color: var(--nav-text-hi);
    border-radius: 99px;
    padding: 0 .4rem;
    font-size: .6875rem;
    font-weight: 650;
    min-width: 20px;
    text-align: center;
}
.navlink[aria-current="page"] .navlink__badge { background: rgba(0, 0, 0, .22); }

.sidebar__foot { padding: .75rem; border-top: 1px solid rgba(255, 255, 255, .07); }

.userchip {
    display: flex; align-items: center; gap: .625rem;
    padding: .5rem; border-radius: var(--radius-sm);
}
.userchip__avatar {
    width: 32px; height: 32px; border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), #7b3ff2);
    color: #fff; display: grid; place-items: center;
    font-size: .75rem; font-weight: 700; flex: 0 0 auto;
}
.userchip__name { font-size: .875rem; font-weight: 600; color: var(--nav-text-hi); }
.userchip__role { font-size: .6875rem; color: var(--text-subtle); }

/* ----------------------------------------------------------------- main */

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .875rem 1.5rem;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 20;
}
.topbar__heading { flex: 1; min-width: 0; }
.topbar__title { font-size: 1.125rem; font-weight: 650; }
.topbar__meta  { font-size: .8125rem; color: var(--text-muted); }
.topbar__actions { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }

.menu-toggle {
    display: none;
    background: none; border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: .375rem; cursor: pointer; color: var(--text);
}

.content { padding: 1.5rem; max-width: 1280px; width: 100%; }

/* ================================================================ PIECES */

/* ----------------------------------------------------------------- card */

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}
.card + .card { margin-top: 1rem; }

.card__head {
    display: flex; align-items: center; gap: .75rem;
    padding: 1rem 1.125rem;
    border-bottom: 1px solid var(--border);
}
.card__head h2, .card__head h3 { flex: 1; min-width: 0; }
.card__sub  { font-size: .8125rem; color: var(--text-muted); font-weight: 400; }
.card__body { padding: 1.125rem; }
.card__body--flush { padding: 0; }
.card__foot {
    padding: .75rem 1.125rem;
    border-top: 1px solid var(--border);
    background: var(--surface-2);
    border-radius: 0 0 var(--radius) var(--radius);
    font-size: .8125rem; color: var(--text-muted);
}

/* ----------------------------------------------------------------- grid */

.grid { display: grid; gap: 1rem; }
.grid--stats  { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.grid--2      { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid--main   { grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); align-items: start; }

@media (max-width: 900px) {
    .grid--main { grid-template-columns: 1fr; }
}

/* ----------------------------------------------------------------- stat */

.stat {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.125rem;
    box-shadow: var(--shadow-sm);
    display: flex; flex-direction: column; gap: .125rem;
}
.stat__label {
    font-size: .75rem; font-weight: 600; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: .04em;
}
.stat__value { font-size: 1.875rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.stat__hint  { font-size: .8125rem; color: var(--text-muted); }
.stat--ok     .stat__value { color: var(--ok); }
.stat--warn   .stat__value { color: var(--warn); }
.stat--danger .stat__value { color: var(--danger); }
.stat--brand  .stat__value { color: var(--brand); }

/* ----------------------------------------------------------- task items */

.tasklist { list-style: none; margin: 0; padding: 0; }

.task {
    display: flex;
    align-items: flex-start;
    gap: .875rem;
    padding: .875rem 1.125rem;
    border-bottom: 1px solid var(--border);
    transition: background .12s;
}
.task:last-child { border-bottom: 0; }
.task:hover { background: var(--surface-2); }
.task--done .task__title { color: var(--text-muted); text-decoration: line-through; }
.task--overdue { background: var(--danger-soft); }
.task--overdue:hover { background: var(--danger-soft); }

.task__check {
    appearance: none;
    width: 20px; height: 20px;
    margin: 2px 0 0;
    border: 2px solid var(--border-strong);
    border-radius: 6px;
    background: var(--surface);
    cursor: pointer;
    flex: 0 0 auto;
    display: grid; place-items: center;
    transition: background .12s, border-color .12s;
}
.task__check:hover { border-color: var(--brand); }
.task__check:checked { background: var(--ok); border-color: var(--ok); }
.task__check:checked::after {
    content: "";
    width: 5px; height: 9px;
    border: solid #fff; border-width: 0 2px 2px 0;
    transform: rotate(45deg) translate(-1px, -1px);
}
.task__check:disabled { opacity: .5; cursor: not-allowed; }

.task__body { flex: 1; min-width: 0; }
.task__title { font-weight: 600; font-size: .9375rem; color: var(--text); }
.task__title a { color: inherit; }
.task__meta {
    display: flex; flex-wrap: wrap; align-items: center; gap: .375rem .625rem;
    margin-top: .1875rem;
    font-size: .8125rem; color: var(--text-muted);
}
/* An SVG with no explicit size renders at its natural size, which is far too
   big beside 13px text. Size every icon that lands in a meta row. */
.task__meta svg, .icon-xs { width: 14px; height: 14px; flex: 0 0 auto; }
.task__meta span { display: inline-flex; align-items: center; gap: .25rem; }
.task__note {
    margin-top: .375rem;
    font-size: .8125rem; color: var(--text-muted);
    padding-left: .625rem; border-left: 2px solid var(--border);
}
.task__actions { display: flex; gap: .25rem; align-items: center; flex: 0 0 auto; }

/* ---------------------------------------------------------------- pills */

.pill {
    display: inline-flex; align-items: center; gap: .25rem;
    padding: .0625rem .4375rem;
    border-radius: 99px;
    font-size: .75rem; font-weight: 600;
    border: 1px solid transparent;
    white-space: nowrap;
}
.pill--neutral { background: var(--surface-sunk); color: var(--text-muted); border-color: var(--border); }
.pill--ok      { background: var(--ok-soft);     color: var(--ok);         border-color: var(--ok-border); }
.pill--warn    { background: var(--warn-soft);   color: var(--warn);       border-color: var(--warn-border); }
.pill--danger  { background: var(--danger-soft); color: var(--danger);     border-color: var(--danger-border); }
.pill--info    { background: var(--info-soft);   color: var(--info);       border-color: var(--info-border); }
.pill--brand   { background: var(--brand-soft);  color: var(--brand);      border-color: var(--brand-border); }

.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: 0 0 auto; }

/* -------------------------------------------------------------- buttons */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .4375rem;
    padding: .5rem .875rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-strong);
    background: var(--surface);
    color: var(--text);
    font: inherit; font-size: .875rem; font-weight: 600;
    cursor: pointer;
    transition: background .12s, border-color .12s, opacity .12s;
    text-decoration: none;
    white-space: nowrap;
}
.btn:hover { background: var(--surface-sunk); text-decoration: none; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }

.btn--primary {
    background: var(--brand); border-color: var(--brand); color: #fff;
}
.btn--primary:hover { background: var(--brand-strong); border-color: var(--brand-strong); }

.btn--danger { background: var(--surface); border-color: var(--danger-border); color: var(--danger); }
.btn--danger:hover { background: var(--danger-soft); }

.btn--ghost { border-color: transparent; background: transparent; }
.btn--ghost:hover { background: var(--surface-sunk); }

.btn--sm { padding: .3125rem .5625rem; font-size: .8125rem; }
.btn--icon { padding: .375rem; }
.btn--block { width: 100%; }

.btn__icon { width: 16px; height: 16px; flex: 0 0 auto; }

/* ---------------------------------------------------------------- forms */

.field { margin-bottom: .875rem; }
.field:last-child { margin-bottom: 0; }

.label {
    display: block;
    font-size: .8125rem; font-weight: 600;
    margin-bottom: .3125rem;
    color: var(--text);
}
.hint { font-size: .8125rem; color: var(--text-muted); margin-top: .3125rem; }

.input, .select, .textarea {
    width: 100%;
    padding: .5rem .6875rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    font: inherit; font-size: .9063rem;
    transition: border-color .12s, box-shadow .12s;
}
.input:focus, .select:focus, .textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-soft);
}
.input::placeholder, .textarea::placeholder { color: var(--text-subtle); }
.textarea { resize: vertical; min-height: 84px; }

.select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .625rem center;
    padding-right: 2.25rem;
}

.field-row { display: flex; gap: .75rem; flex-wrap: wrap; }
.field-row > * { flex: 1 1 160px; min-width: 0; }

.checkbox { display: flex; align-items: center; gap: .5rem; font-size: .875rem; cursor: pointer; }
.checkbox input { width: 16px; height: 16px; accent-color: var(--brand); cursor: pointer; }

.form-actions {
    display: flex; gap: .5rem; flex-wrap: wrap;
    padding-top: .875rem; margin-top: .875rem;
    border-top: 1px solid var(--border);
}

/* ------------------------------------------------------- toolbar/filters */

.toolbar {
    display: flex; gap: .5rem; flex-wrap: wrap; align-items: flex-end;
    padding: .875rem 1.125rem;
    border-bottom: 1px solid var(--border);
    background: var(--surface-2);
    border-radius: var(--radius) var(--radius) 0 0;
}
.toolbar .field { margin: 0; }
.toolbar__grow { flex: 1 1 200px; }

/* --------------------------------------------------------------- alerts */

.alert {
    display: flex; align-items: flex-start; gap: .625rem;
    padding: .75rem .875rem;
    border-radius: var(--radius-sm);
    border: 1px solid;
    font-size: .875rem;
    margin-bottom: 1rem;
}
.alert__icon { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 1px; }
.alert--success { background: var(--ok-soft);     border-color: var(--ok-border);     color: var(--ok); }
.alert--error   { background: var(--danger-soft); border-color: var(--danger-border); color: var(--danger); }
.alert--warning { background: var(--warn-soft);   border-color: var(--warn-border);   color: var(--warn); }
.alert--info    { background: var(--info-soft);   border-color: var(--info-border);   color: var(--info); }

/* ------------------------------------------------------------- progress */

.progress {
    height: 8px;
    background: var(--surface-sunk);
    border-radius: 99px;
    overflow: hidden;
}
.progress__bar { height: 100%; background: var(--brand); border-radius: 99px; transition: width .3s ease; }
.progress__bar--ok     { background: var(--ok); }
.progress__bar--warn   { background: var(--warn); }
.progress__bar--danger { background: var(--danger); }

/* Weekly bar chart, drawn with plain divs.
   The columns must stretch to the full track height, otherwise .chart__stack
   has nothing to flex into and every bar collapses to a sliver. */
.chart { display: flex; align-items: stretch; gap: .5rem; height: 132px; padding-top: .5rem; }
.chart__col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .375rem; min-width: 0; }
.chart__stack {
    width: 100%; max-width: 40px;
    flex: 1;
    display: flex; flex-direction: column; justify-content: flex-end;
    gap: 2px;
}
.chart__seg { border-radius: 3px; min-height: 3px; }
.chart__seg--done   { background: var(--ok); }
.chart__seg--missed { background: var(--danger); }
.chart__seg--open   { background: var(--border-strong); }
.chart__label { font-size: .6875rem; color: var(--text-muted); font-weight: 600; }
.chart__label--today { color: var(--brand); }

.legend { display: flex; gap: .875rem; flex-wrap: wrap; font-size: .75rem; color: var(--text-muted); }
.legend__item { display: flex; align-items: center; gap: .3125rem; }
.legend__swatch { width: 10px; height: 10px; border-radius: 3px; }

/* --------------------------------------------------------------- tables */

.table-wrap { overflow-x: auto; }

.table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.table th {
    text-align: left;
    font-size: .75rem; font-weight: 650;
    text-transform: uppercase; letter-spacing: .04em;
    color: var(--text-muted);
    padding: .625rem 1.125rem;
    border-bottom: 1px solid var(--border);
    background: var(--surface-2);
    white-space: nowrap;
}
.table td { padding: .75rem 1.125rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--surface-2); }
.table__num { font-variant-numeric: tabular-nums; text-align: right; }

/* ------------------------------------------------------------- timeline */

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
    position: relative;
    padding: 0 0 .875rem 1.375rem;
    font-size: .875rem;
}
.timeline li::before {
    content: "";
    position: absolute; left: 3px; top: .4375rem;
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--border-strong);
}
.timeline li::after {
    content: "";
    position: absolute; left: 6.5px; top: 1.0625rem; bottom: 0;
    width: 1px; background: var(--border);
}
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::after { display: none; }
.timeline li[data-status="done"]::before   { background: var(--ok); }
.timeline li[data-status="missed"]::before { background: var(--danger); }
.timeline__time { font-size: .75rem; color: var(--text-subtle); }

/* ---------------------------------------------------------- empty state */

.empty { text-align: center; padding: 2.5rem 1.25rem; color: var(--text-muted); }
.empty__icon {
    width: 40px; height: 40px; margin: 0 auto .75rem;
    color: var(--text-subtle);
}
.empty__icon svg { width: 100%; height: 100%; }
.empty__title { font-weight: 650; color: var(--text); margin-bottom: .25rem; }

/* ------------------------------------------------------ collapsible panel */

.panel[hidden] { display: none; }

.section-title {
    display: flex; align-items: center; gap: .625rem;
    font-size: .75rem; font-weight: 650;
    text-transform: uppercase; letter-spacing: .05em;
    color: var(--text-muted);
    margin: 1.5rem 0 .625rem;
}
.section-title::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.section-title:first-child { margin-top: 0; }

/* ================================================================== AUTH */

.auth {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
}

.auth__brand {
    background:
        radial-gradient(1000px 500px at 15% 10%, rgba(31, 94, 255, .35), transparent 60%),
        linear-gradient(160deg, #0d1220 0%, #16203a 100%);
    color: #fff;
    padding: 3rem;
    display: flex; flex-direction: column; justify-content: space-between;
}
.auth__logo { display: flex; align-items: center; gap: .75rem; }
.auth__logo-mark {
    width: 42px; height: 42px; border-radius: 11px;
    background: var(--brand); display: grid; place-items: center;
    font-weight: 700; overflow: hidden;
}
.auth__logo-mark img { width: 100%; height: 100%; object-fit: cover; }
.auth__logo-text { font-weight: 650; font-size: 1rem; }

.auth__pitch h1 { font-size: 2.125rem; line-height: 1.2; margin-bottom: .875rem; }
.auth__pitch p  { color: #aab3c8; font-size: 1.0625rem; max-width: 38ch; }

.auth__points { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: .75rem; }
.auth__points li {
    display: flex; align-items: flex-start; gap: .625rem;
    color: #cdd4e4; font-size: .9375rem;
}
.auth__points svg { width: 18px; height: 18px; color: #6d9bff; flex: 0 0 auto; margin-top: 2px; }

.auth__foot { color: #6b7690; font-size: .8125rem; }

.auth__panel {
    display: flex; align-items: center; justify-content: center;
    padding: 3rem 1.5rem;
    background: var(--bg);
}
.auth__form { width: 100%; max-width: 380px; }
.auth__form h2 { font-size: 1.5rem; margin-bottom: .375rem; }
.auth__form > p { color: var(--text-muted); margin-bottom: 1.5rem; }

.auth__mobile-logo { display: none; }

@media (max-width: 860px) {
    .auth { grid-template-columns: 1fr; }
    .auth__brand { display: none; }
    .auth__mobile-logo {
        display: flex; align-items: center; gap: .625rem;
        justify-content: center; margin-bottom: 1.75rem;
    }
}

/* ============================================================ UTILITIES */

.stack   { display: grid; gap: 1rem; }
.stack--sm { gap: .5rem; }
.row     { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.row--between { justify-content: space-between; }
.push    { margin-left: auto; }

.muted   { color: var(--text-muted); }
.subtle  { color: var(--text-subtle); }
.small   { font-size: .8125rem; }
.tiny    { font-size: .75rem; }
.strong  { font-weight: 650; }
.mono    { font-family: var(--mono); font-size: .8125rem; }
.nowrap  { white-space: nowrap; }
.tnum    { font-variant-numeric: tabular-nums; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }

.text-ok     { color: var(--ok); }
.text-warn   { color: var(--warn); }
.text-danger { color: var(--danger); }
.text-brand  { color: var(--brand); }

/* ============================================================ RESPONSIVE */

@media (max-width: 820px) {
    .sidebar {
        position: fixed;
        left: 0; top: 0; bottom: 0;
        transform: translateX(-100%);
        transition: transform .2s ease;
        box-shadow: var(--shadow-lg);
    }
    .sidebar[data-open="true"] { transform: translateX(0); }

    .menu-toggle { display: inline-flex; }
    .content { padding: 1rem; }
    .topbar { padding: .75rem 1rem; }

    .scrim {
        position: fixed; inset: 0;
        background: rgba(16, 24, 40, .45);
        z-index: 25;
    }
    .scrim[hidden] { display: none; }
}

@media print {
    .sidebar, .topbar__actions, .menu-toggle, .toolbar, .form-actions { display: none !important; }
    body { background: #fff; }
    .card { box-shadow: none; border-color: #ddd; break-inside: avoid; }
    .content { padding: 0; max-width: none; }
}

/* ==========================================================================
   CHARTS
   Every colour comes from a theme token, so charts follow light/dark.
   ========================================================================== */

.chart-svg { width: 100%; height: 200px; display: block; overflow: visible; }

.chart-grid { stroke: var(--border); stroke-width: 1; stroke-dasharray: 3 4; }
.chart-tick { fill: var(--text-subtle); font-size: 10px; font-family: var(--font); }
.chart-axis { fill: var(--text-muted); font-size: 11px; font-family: var(--font); }
.chart-line { fill: none; stroke: var(--brand); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.chart-dot  { fill: var(--surface); stroke: var(--brand); stroke-width: 2.5; }
.chart-area { stroke: none; }

.chart-fill-top    { stop-color: var(--brand); stop-opacity: .22; }
.chart-fill-bottom { stop-color: var(--brand); stop-opacity: 0; }

.chart-svg--ok .chart-line,
.chart-svg--ok .chart-dot { stroke: var(--ok); }
.chart-svg--ok .chart-fill-top    { stop-color: var(--ok); }
.chart-svg--ok .chart-fill-bottom { stop-color: var(--ok); }

.chart-svg--danger .chart-line,
.chart-svg--danger .chart-dot { stroke: var(--danger); }
.chart-svg--danger .chart-fill-top    { stop-color: var(--danger); }
.chart-svg--danger .chart-fill-bottom { stop-color: var(--danger); }

.chart-empty {
    display: grid; place-items: center;
    height: 160px;
    color: var(--text-subtle); font-size: .875rem;
    border: 1px dashed var(--border); border-radius: var(--radius-sm);
}

/* ----------------------------------------------------------------- donut */

.chart-donut { width: 180px; height: 180px; flex: 0 0 auto; }
.donut-seg   { transition: stroke-dasharray .4s ease; }
.donut-empty { stroke: var(--surface-sunk); }
.donut-seg--ok      { stroke: var(--ok); }
.donut-seg--danger  { stroke: var(--danger); }
.donut-seg--warn    { stroke: var(--warn); }
.donut-seg--info    { stroke: var(--info); }
.donut-seg--neutral { stroke: var(--border-strong); }
.donut-value { fill: var(--text); font: 700 30px var(--font); }
.donut-label {
    fill: var(--text-muted); font: 500 11px var(--font);
    text-transform: uppercase; letter-spacing: .06em;
}

/* ------------------------------------------------------------------ ring */

.chart-ring { width: 92px; height: 92px; flex: 0 0 auto; }
.ring-track { stroke: var(--surface-sunk); }
.ring-fill  { stroke: var(--brand); transition: stroke-dasharray .4s ease; }
.ring-fill--ok     { stroke: var(--ok); }
.ring-fill--warn   { stroke: var(--warn); }
.ring-fill--danger { stroke: var(--danger); }
.ring-text  { fill: var(--text); font: 700 19px var(--font); }

/* ------------------------------------------------------- stacked columns */

.bars { display: flex; align-items: stretch; gap: .5rem; height: 168px; }
.bar  { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .375rem; min-width: 0; }
.bar__stack {
    width: 100%; max-width: 44px; flex: 1;
    display: flex; flex-direction: column; justify-content: flex-end; gap: 2px;
}
.bar__seg { border-radius: 3px; min-height: 4px; }
.bar__seg--done   { background: var(--ok); }
.bar__seg--missed { background: var(--danger); }
.bar__seg--open   { background: var(--border-strong); }
.bar__seg--none   { background: var(--surface-sunk); height: 4px; border-radius: 3px; }
.bar__label { font-size: .6875rem; font-weight: 600; color: var(--text-muted); }
.bar__label--today { color: var(--brand); }
.bar__count { font-size: .6875rem; color: var(--text-subtle); font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------- horizontal bars */

.hbars { display: grid; gap: .625rem; }
.hbar  { display: grid; grid-template-columns: 88px 1fr auto; align-items: center; gap: .625rem; }
.hbar__label { font-size: .8125rem; font-weight: 600; color: var(--text); }
.hbar__track { height: 10px; background: var(--surface-sunk); border-radius: 99px; overflow: hidden; }
.hbar__fill  { display: block; height: 100%; border-radius: 99px; background: var(--brand); transition: width .35s ease; }
.hbar__fill--ok      { background: var(--ok); }
.hbar__fill--warn    { background: var(--warn); }
.hbar__fill--danger  { background: var(--danger); }
.hbar__fill--info    { background: var(--info); }
.hbar__fill--neutral { background: var(--border-strong); }
.hbar__value { font-size: .8125rem; font-weight: 650; font-variant-numeric: tabular-nums; color: var(--text); }
.hbar__of    { color: var(--text-subtle); font-weight: 400; }

/* ------------------------------------------------------------- sparkline */

.spark { width: 96px; height: 28px; display: block; }
.spark__line { fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.spark--ok     .spark__line { stroke: var(--ok); }
.spark--danger .spark__line { stroke: var(--danger); }
.spark--warn   .spark__line { stroke: var(--warn); }

/* --------------------------------------------------------------- heatmap */

.heatmap-wrap { display: flex; gap: .5rem; align-items: flex-start; }
.heatmap-days {
    display: grid; grid-template-rows: repeat(7, 1fr); gap: 3px;
    font-size: .625rem; color: var(--text-subtle); text-align: right; padding-top: 1px;
}
.heatmap-days span { line-height: 14px; height: 14px; }
.heatmap {
    display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 14px);
    gap: 3px; overflow-x: auto; padding-bottom: .25rem;
}
.heat { width: 14px; height: 14px; border-radius: 3px; background: var(--surface-sunk); }
.heat--pad   { background: transparent; }
.heat--0     { background: var(--surface-sunk); }
.heat--1     { background: color-mix(in srgb, var(--ok) 18%, var(--surface-sunk)); }
.heat--2     { background: color-mix(in srgb, var(--ok) 40%, var(--surface-sunk)); }
.heat--3     { background: color-mix(in srgb, var(--ok) 68%, var(--surface-sunk)); }
.heat--4     { background: var(--ok); }
.heat--miss  { background: var(--danger); }
.heat--today { outline: 2px solid var(--brand); outline-offset: 1px; }

/* ==========================================================================
   KPI CARDS
   ========================================================================== */

.kpi {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem 1.125rem;
    box-shadow: var(--shadow-sm);
    display: flex; flex-direction: column; gap: .375rem;
}
.kpi__top { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.kpi__label {
    font-size: .75rem; font-weight: 650; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: .04em;
}
.kpi__icon {
    width: 34px; height: 34px; border-radius: 9px;
    display: grid; place-items: center; flex: 0 0 auto;
    background: var(--brand-soft); color: var(--brand);
}
.kpi__icon svg { width: 17px; height: 17px; }
.kpi__icon--ok     { background: var(--ok-soft);     color: var(--ok); }
.kpi__icon--warn   { background: var(--warn-soft);   color: var(--warn); }
.kpi__icon--danger { background: var(--danger-soft); color: var(--danger); }
.kpi__value { font-size: 1.875rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.kpi__foot  { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.kpi__delta { display: inline-flex; align-items: center; gap: .25rem; font-size: .8125rem; font-weight: 600; }
.kpi__delta--up   { color: var(--ok); }
.kpi__delta--down { color: var(--danger); }
.kpi__delta--flat { color: var(--text-subtle); }
.kpi__hint { font-size: .8125rem; color: var(--text-muted); }

/* ==========================================================================
   THEME TOGGLE
   ========================================================================== */

.theme-toggle {
    display: inline-grid; place-items: center;
    width: 36px; height: 36px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text-muted);
    cursor: pointer; padding: 0;
    transition: background .12s, color .12s;
}
.theme-toggle:hover { background: var(--surface-sunk); color: var(--text); }
.theme-toggle svg { width: 17px; height: 17px; }

/* Moon while light (click for dark), sun while dark (click for light). */
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }
.theme-toggle[aria-pressed="true"] .icon-sun  { display: block; }
.theme-toggle[aria-pressed="true"] .icon-moon { display: none; }

/* ==========================================================================
   CALENDAR
   ========================================================================== */

.calendar {
    display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px;
    background: var(--border); border-radius: var(--radius-sm); overflow: hidden;
}
.calendar__head {
    background: var(--surface-2); padding: .5rem;
    font-size: .6875rem; font-weight: 650; text-transform: uppercase;
    letter-spacing: .05em; color: var(--text-muted); text-align: center;
}
.calendar__cell {
    background: var(--surface); min-height: 104px; padding: .375rem;
    display: flex; flex-direction: column; gap: .1875rem;
}
.calendar__cell--muted { background: var(--surface-2); }
.calendar__cell--today { background: var(--brand-soft); }
.calendar__date { font-size: .75rem; font-weight: 650; color: var(--text-muted); }
.calendar__cell--today .calendar__date { color: var(--brand); }
.calendar__chip {
    font-size: .6875rem; padding: .0625rem .3125rem; border-radius: 4px;
    background: var(--surface-sunk); color: var(--text-muted);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    border-left: 2px solid var(--border-strong);
    display: block; text-decoration: none;
}
.calendar__chip:hover { text-decoration: none; background: var(--surface-2); }
.calendar__chip--done   { border-left-color: var(--ok);     color: var(--ok); }
.calendar__chip--missed { border-left-color: var(--danger); color: var(--danger); }
.calendar__chip--open   { border-left-color: var(--warn);   color: var(--warn); }
.calendar__more { font-size: .6875rem; color: var(--text-subtle); }

/* ==========================================================================
   LAYOUT ADDITIONS
   ========================================================================== */

.grid--kpi    { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.grid--3      { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--charts { grid-template-columns: minmax(0, 3fr) minmax(240px, 1fr); align-items: start; }

@media (max-width: 1000px) { .grid--charts { grid-template-columns: 1fr; } }

.donut-legend { display: grid; gap: .5rem; min-width: 190px; }
.donut-legend__row { display: flex; align-items: center; gap: .5rem; font-size: .8125rem; }
.donut-legend__dot { width: 10px; height: 10px; border-radius: 3px; flex: 0 0 auto; }
.donut-legend__value { margin-left: auto; font-weight: 650; font-variant-numeric: tabular-nums; }

.card__body--center {
    display: flex; align-items: center; justify-content: center;
    gap: 1.75rem; flex-wrap: wrap;
}

.segmented {
    display: inline-flex; border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm); overflow: hidden;
}
.segmented a {
    padding: .375rem .75rem; font-size: .8125rem; font-weight: 600;
    color: var(--text-muted); background: var(--surface);
    text-decoration: none; border-right: 1px solid var(--border);
}
.segmented a:last-child { border-right: 0; }
.segmented a:hover { background: var(--surface-sunk); text-decoration: none; }
.segmented a[aria-current="true"] { background: var(--brand); color: #fff; }

.insight {
    display: flex; gap: .75rem; align-items: flex-start;
    padding: .75rem .875rem; border-radius: var(--radius-sm);
    background: var(--surface-2); border: 1px solid var(--border);
    font-size: .875rem;
}
.insight svg { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 1px; color: var(--text-muted); }
.insight--ok     { background: var(--ok-soft);     border-color: var(--ok-border); }
.insight--ok svg { color: var(--ok); }
.insight--warn   { background: var(--warn-soft);   border-color: var(--warn-border); }
.insight--warn svg { color: var(--warn); }
.insight--danger { background: var(--danger-soft); border-color: var(--danger-border); }
.insight--danger svg { color: var(--danger); }

/* ==========================================================================
   PAGINATION
   ========================================================================== */

.pager {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; flex-wrap: wrap;
    padding: .75rem 1.125rem;
    border-top: 1px solid var(--border);
    background: var(--surface-2);
    border-radius: 0 0 var(--radius) var(--radius);
}
.pager__summary { font-size: .8125rem; color: var(--text-muted); }
.pager__nav { display: flex; align-items: center; gap: .25rem; flex-wrap: wrap; }

.pager__btn {
    display: inline-flex; align-items: center; gap: .25rem;
    min-width: 32px; height: 32px; padding: 0 .5rem;
    justify-content: center;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    font-size: .8125rem; font-weight: 600;
    text-decoration: none;
    transition: background .12s, border-color .12s;
}
.pager__btn:hover { background: var(--surface-sunk); text-decoration: none; }
.pager__btn--current {
    background: var(--brand); border-color: var(--brand); color: #fff; cursor: default;
}
.pager__btn--current:hover { background: var(--brand); }
.pager__btn--off { opacity: .45; cursor: not-allowed; }
.pager__btn--off:hover { background: var(--surface); }
.pager__gap { padding: 0 .25rem; color: var(--text-subtle); }

@media (max-width: 640px) {
    .pager { justify-content: center; }
    .pager__summary { width: 100%; text-align: center; }
}

/* ==========================================================================
   TASK ATTACHMENTS
   ========================================================================== */

/* Chips under a task row, on both dashboards. */
.task__files { display: flex; flex-wrap: wrap; gap: .375rem; margin-top: .5rem; }

.filechip {
    display: inline-flex; align-items: center; gap: .375rem;
    max-width: 100%;
    padding: .1875rem .4375rem .1875rem .1875rem;
    border: 1px solid var(--border);
    border-radius: 99px;
    background: var(--surface-2);
    color: var(--text-muted);
    font-size: .75rem;
    text-decoration: none;
    transition: border-color .12s, background .12s;
}
.filechip:hover {
    text-decoration: none;
    border-color: var(--brand-border);
    background: var(--brand-soft);
}
.filechip__type {
    background: var(--brand); color: #fff;
    border-radius: 99px;
    padding: .0625rem .375rem;
    font-size: .625rem; font-weight: 700; letter-spacing: .03em;
    flex: 0 0 auto;
}
.filechip__name {
    max-width: 16rem;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    color: var(--text);
}
.filechip__read {
    display: inline-flex; align-items: center; gap: .1875rem;
    color: var(--brand); font-weight: 650;
    flex: 0 0 auto;
}

/* Full list on the task page. */
.filelist { list-style: none; margin: 0; padding: 0; }

.fileitem {
    display: flex; align-items: center; gap: .875rem;
    padding: .75rem 1.125rem;
    border-bottom: 1px solid var(--border);
}
.fileitem:last-child { border-bottom: 0; }
.fileitem:hover { background: var(--surface-2); }

.fileitem__type {
    flex: 0 0 auto;
    width: 44px; height: 44px;
    display: grid; place-items: center;
    border-radius: var(--radius-sm);
    background: var(--brand-soft);
    color: var(--brand);
    font-size: .625rem; font-weight: 700; letter-spacing: .03em;
}
.fileitem__body { flex: 1; min-width: 0; }
.fileitem__name {
    display: block; font-weight: 600; font-size: .9063rem; color: var(--text);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fileitem__meta { display: block; font-size: .8125rem; color: var(--text-muted); }
.fileitem__actions { display: flex; align-items: center; gap: .25rem; flex: 0 0 auto; }

@media (max-width: 640px) {
    .fileitem { flex-wrap: wrap; }
    .fileitem__actions { width: 100%; justify-content: flex-end; }
    .filechip__name { max-width: 9rem; }
}

/* ==========================================================================
   NOTIFICATION BELL
   ========================================================================== */

.bell { position: relative; }
.bell__button { position: relative; }

.bell__badge {
    position: absolute; top: -5px; right: -5px;
    min-width: 17px; height: 17px; padding: 0 4px;
    border-radius: 99px;
    background: var(--danger); color: #fff;
    font-size: .625rem; font-weight: 700; line-height: 17px;
    text-align: center;
    border: 2px solid var(--surface);
    box-sizing: content-box;
}

.bell__panel {
    position: absolute; right: 0; top: calc(100% + .5rem);
    width: min(360px, calc(100vw - 2rem));
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 40;
    overflow: hidden;
}
.bell__panel[hidden] { display: none; }

.bell__head {
    display: flex; align-items: center; justify-content: space-between;
    padding: .75rem .875rem;
    border-bottom: 1px solid var(--border);
    background: var(--surface-2);
    font-size: .875rem;
}

.bell__list { list-style: none; margin: 0; padding: 0; max-height: 22rem; overflow-y: auto; }

.bell__item {
    display: flex; gap: .625rem; align-items: flex-start;
    padding: .625rem .875rem;
    border-bottom: 1px solid var(--border);
}
.bell__item:last-child { border-bottom: 0; }
.bell__item--unread { background: var(--brand-soft); }

.bell__title {
    display: block; font-size: .875rem; font-weight: 600; color: var(--text);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.bell__meta { display: block; font-size: .75rem; color: var(--text-muted); }

.bell__empty { padding: 1.5rem .875rem; text-align: center; color: var(--text-muted); font-size: .875rem; margin: 0; }

.bell__all {
    display: block; padding: .625rem .875rem; text-align: center;
    border-top: 1px solid var(--border); background: var(--surface-2);
    font-size: .8125rem; font-weight: 600;
}
.bell__all:hover { text-decoration: none; background: var(--surface-sunk); }

/* ==========================================================================
   FEED (full notifications page)
   ========================================================================== */

.feed { list-style: none; margin: 0; padding: 0; }

.feeditem {
    display: flex; gap: .875rem; align-items: flex-start;
    padding: .875rem 1.125rem;
    border-bottom: 1px solid var(--border);
}
.feeditem:last-child { border-bottom: 0; }
.feeditem:hover { background: var(--surface-2); }
.feeditem--unread { background: var(--brand-soft); }

.feeditem__icon {
    width: 34px; height: 34px; flex: 0 0 auto;
    border-radius: 9px;
    display: grid; place-items: center;
    background: var(--surface-sunk); color: var(--text-muted);
}
.feeditem__icon svg { width: 16px; height: 16px; }
.feeditem__icon--ok      { background: var(--ok-soft);     color: var(--ok); }
.feeditem__icon--danger  { background: var(--danger-soft); color: var(--danger); }
.feeditem__icon--brand   { background: var(--brand-soft);  color: var(--brand); }
.feeditem__icon--neutral { background: var(--surface-sunk); color: var(--text-muted); }

.feeditem__body { flex: 1; min-width: 0; }
.feeditem__title { display: block; font-weight: 600; font-size: .9375rem; }
.feeditem__meta {
    display: flex; align-items: center; gap: .375rem; flex-wrap: wrap;
    font-size: .8125rem; color: var(--text-muted); margin-top: .125rem;
}
.feeditem__text { display: block; font-size: .8125rem; color: var(--text-muted); margin-top: .25rem; }
.feeditem__time { font-size: .75rem; color: var(--text-subtle); flex: 0 0 auto; white-space: nowrap; }

/* ==========================================================================
   NOTES
   ========================================================================== */

.notelist { list-style: none; margin: 0; padding: 0; }

.note {
    padding: .875rem 1.125rem;
    border-bottom: 1px solid var(--border);
    border-left: 3px solid transparent;
}
.note:last-child { border-bottom: 0; }
.note--mine { border-left-color: var(--brand); }
.note--unread { background: var(--brand-soft); border-left-color: var(--info); }

.note__head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.note__time { font-size: .75rem; color: var(--text-subtle); }
.note__subject { font-weight: 650; margin: .375rem 0 .125rem; }
.note__body { margin: .25rem 0 0; font-size: .9063rem; color: var(--text); white-space: pre-line; }
.note__actions { margin-top: .5rem; }
