/* Colony Tasks: the tasks landing page (/colony-tasks). Loads after home.css, which supplies only the top bar, buttons, FAQ and footer.
   Idea: the page IS a to-do list that has been done. Every section is one item with a ticked box and a status word, and the status words are the product's own six core
   statuses (backlog, to do, in progress, blocked, done, cancelled), so the page teaches the one idea Colony Tasks is built on: name your columns however you like, and every
   column still means one of six things (the hero board and the mapping table in the Boards item show it). The mocks are the real screens (the board, Plan my day, the approval strip, a goal, the customer progress page), drawn flat.
   No glow, no tilt, no gradient: flat colour, hairlines, real type.

   COLOUR (60 / 30 / 10, measured; pinned by CRMAdmin.Tests/TasksLandingTests.cs and BookingLandingTests.Pairs):
     60% paper #F4F1EA with white surfaces; 30% ink #0F172A (a cool navy, hue 260, the near-complement of the paper's warmth) for type and structure; 10% signal.
     Orange #FF6B35 is the ONE action colour (buttons, the chosen item) and never carries a status. Status colours are semantic and each is paired with a word, never colour alone:
     done green #146C2E, in progress pen blue #1D3FBF, blocked red #A5241A, waiting amber #7A4A06. The dark band and the sign-in side panel are an indigo ink (#141C3A, #1B2447)
     so Tasks reads as its own product next to Sign (plain ink) and Booking (green ink).
       ink on paper 15.8:1 | muted #475569 on paper 6.7:1 | orange-ink #B3400B on paper 5.1:1, on white 5.8:1 | ink on orange fill 6.3:1
       green #146C2E on its tint #E4F4E9 5.7:1 | blue #1D3FBF on #E8EDFB 7.1:1 | red #A5241A on #FDEEEC 6.5:1 | amber #7A4A06 on #FFF1DC 6.7:1
       night #141C3A: text #E6EAF5 13.9:1, muted #AEB8D6 8.5:1, orange on it 5.9:1
   ACCESSIBILITY: everything is sized in rem so the accessibility button's "Text size" scales the whole page; logical properties so a right-to-left page mirrors;
   decorative screens are inert (not focusable, not read) and each has its meaning in the text beside it; the one animation (a tick drawing itself) runs once, and the base CSS
   is the finished state, so "Pause animations", prefers-reduced-motion and forced-colors all show the finished picture. */

.tk-page {
    --tk-paper: #F4F1EA;
    --tk-paper-2: #FBF9F4;
    --tk-paper-3: #ECE7DB;
    --tk-surface: #FFFFFF;
    --tk-ink: #0F172A;
    --tk-ink-2: #1E293B;
    --tk-muted: #475569;
    --tk-line: #D8D2C2;                  /* decoration only: never the only thing that shows a control's edge */
    --tk-edge: #6B7788;                  /* the edge of anything you can press: 4.6:1 on white */
    --tk-orange: #FF6B35;
    --tk-orange-hover: color-mix(in oklab, #FF6B35 82%, white);
    --tk-orange-ink: #B3400B;
    --tk-orange-tint: #FFF1EA;
    --tk-done: #146C2E;   --tk-done-tint: #E4F4E9;
    --tk-doing: #1D3FBF;  --tk-doing-tint: #E8EDFB;
    --tk-blocked: #A5241A; --tk-blocked-tint: #FDEEEC;
    --tk-wait: #7A4A06;   --tk-wait-tint: #FFF1DC;
    --tk-night: #141C3A;
    --tk-night-text: #E6EAF5;
    --tk-night-muted: #AEB8D6;
    --tk-display: 'Archivo', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --tk-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --tk-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
    --tk-gutter: clamp(1.1rem, 4vw, 2rem);
    --tk-measure: 40rem;

    font-family: var(--tk-body); color: var(--tk-ink); background: var(--tk-paper); line-height: 1.6; color-scheme: light; overflow-x: clip;
    font-optical-sizing: auto;
}
.tk-page *, .tk-page *::before, .tk-page *::after { box-sizing: border-box; }
.tk-page :where(h1, h2, h3, p, ul, ol, dl, dd, figure, table) { margin: 0; }   /* :where keeps this reset at zero specificity, so a class like .tk-lede can set its own margin */
.tk-page :where(ul, ol) { padding: 0; list-style: none; }
.tk-page :where(h1, h2, h3) { font-family: var(--tk-display); letter-spacing: -.028em; line-height: 1.06; text-wrap: balance; color: var(--tk-ink); }
.tk-page p { text-wrap: pretty; }
.tk-page :target { scroll-margin-block-start: 5.5rem; }
.tk-wrap { inline-size: 100%; max-inline-size: 76rem; margin-inline: auto; padding-inline: var(--tk-gutter); }
.tk-vh { position: absolute !important; inline-size: 1px; block-size: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.tk-brand, .tk-page .sg-brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; }
.tk-tag, .tk-page .sg-brand-tag { font-family: var(--tk-display); font-weight: 800; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--tk-ink); background: var(--tk-orange); padding: .22rem .55rem; border-radius: .375rem; }
.tk-page .home-nav-links { gap: 1.25rem; margin-inline-start: 1rem; }
.tk-page .home-nav-links a, .tk-page .home-nav-signin, .tk-page .home-nav .home-btn { white-space: nowrap; }
.tk-btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-block-size: 3.1rem; padding: .8rem 1.6rem; border-radius: .75rem; border: 2px solid transparent; font-family: var(--tk-display); font-weight: 700; font-size: 1.05rem; text-decoration: none; cursor: pointer; transition: background-color .15s ease; }
.tk-btn.primary { background: var(--tk-orange); color: var(--tk-ink); }
.tk-btn.primary:hover { background: var(--tk-orange-hover); color: var(--tk-ink); }
.tk-btn.line { border-color: var(--tk-ink); color: var(--tk-ink); background: transparent; }
.tk-btn.line:hover { background: var(--tk-ink); color: #fff; }

/* status chip: a word AND a colour, always */
.tk-chip { display: inline-block; font-size: .72rem; font-weight: 700; line-height: 1; padding: .22rem .5rem; border-radius: .3rem; white-space: nowrap; background: var(--tk-paper-3); color: var(--tk-ink); }
.tk-chip.todo { background: var(--tk-paper-3); color: var(--tk-ink); }
.tk-chip.doing { background: var(--tk-doing-tint); color: var(--tk-doing); }
.tk-chip.blocked { background: var(--tk-blocked-tint); color: var(--tk-blocked); }
.tk-chip.done { background: var(--tk-done-tint); color: var(--tk-done); }
.tk-chip.wait { background: var(--tk-wait-tint); color: var(--tk-wait); }
.tk-chip.hot { background: var(--tk-orange-tint); color: var(--tk-orange-ink); }

/* ───────────── Hero ───────────── */
.tk-hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2.5rem, 5vw, 4.5rem); border-block-end: 1px solid var(--tk-line); }
.tk-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.tk-hero h1 { font-size: clamp(2.7rem, 6.2vw, 5.2rem); font-weight: 800; letter-spacing: -.035em; line-height: .98; }
.tk-hero h1 span { color: var(--tk-orange-ink); display: block; }
.tk-page .tk-lede {   /* .home-page p (0,1,1) in home.css would beat a lone class, so these carry .tk-page */ margin-block-start: 1.5rem; font-size: clamp(1.08rem, 1.5vw, 1.25rem); color: var(--tk-ink-2); max-inline-size: 34rem; }
.tk-cta { margin-block-start: 2rem; display: flex; flex-wrap: wrap; gap: .8rem; }
.tk-page .tk-fine { margin-block-start: 1.1rem; color: var(--tk-muted); font-size: .92rem; }
.tk-page .tk-fine a { color: var(--tk-ink); font-weight: 600; text-underline-offset: .2em; }
.tk-page .tk-sample { margin-block-start: .6rem; font-size: .72rem; color: var(--tk-muted); text-align: end; }

/* ───────────── Screens (decorative, drawn from the real pages) ───────────── */
.tk-screen { container-type: inline-size; position: relative; }
.tk-card { background: var(--tk-surface); border: 1px solid var(--tk-line); border-radius: .9rem; padding: 1.1rem; }
.tk-card + .tk-card { margin-block-start: .7rem; }
.tk-card .tk-h { margin: 0 0 .6rem; font-family: var(--tk-display); font-size: .82rem; font-weight: 700; color: var(--tk-ink); display: flex; justify-content: space-between; align-items: center; gap: .6rem; }
.tk-mono { font-family: var(--tk-mono); font-variant-numeric: tabular-nums; }
.tk-board { background: var(--tk-surface); border: 1px solid var(--tk-ink); border-radius: .9rem; padding: .8rem; box-shadow: 0 .2rem 0 var(--tk-ink); }
.tk-board-top { display: flex; justify-content: space-between; align-items: center; gap: .6rem; margin-block-end: .7rem; font-size: .78rem; }
.tk-board-top b { font-family: var(--tk-display); font-size: .95rem; }
.tk-board-top small { color: var(--tk-muted); }
.tk-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; }
.tk-col { background: var(--tk-paper-2); border: 1px solid var(--tk-line); border-block-start: 3px solid var(--tk-edge); border-radius: .5rem; padding: .45rem; min-block-size: 9rem; }
.tk-col.doing { border-block-start-color: var(--tk-doing); }
.tk-col.blocked { border-block-start-color: var(--tk-blocked); }
.tk-col.done { border-block-start-color: var(--tk-done); }
.tk-col-h { display: flex; justify-content: space-between; align-items: baseline; gap: .3rem; margin-block-end: .4rem; font-size: .66rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--tk-ink); }
.tk-col-h small { font-weight: 600; color: var(--tk-muted); letter-spacing: 0; }
.tk-task { background: var(--tk-surface); border: 1px solid var(--tk-line); border-radius: .4rem; padding: .4rem .45rem; font-size: .72rem; line-height: 1.3; }
.tk-task + .tk-task { margin-block-start: .35rem; }
.tk-task b { display: block; font-weight: 600; color: var(--tk-ink); }
.tk-task .meta { display: flex; justify-content: space-between; align-items: center; gap: .3rem; margin-block-start: .3rem; color: var(--tk-muted); font-size: .66rem; }
.tk-task.cut b { text-decoration: line-through; text-decoration-thickness: 1px; color: var(--tk-muted); }
.tk-who { display: inline-grid; place-items: center; inline-size: 1.35rem; block-size: 1.35rem; border-radius: 50%; background: var(--tk-ink); color: #fff; font-size: .58rem; font-weight: 700; flex: none; }
.tk-who.b { background: var(--tk-doing); } .tk-who.c { background: var(--tk-done); } .tk-who.d { background: var(--tk-orange-ink); }
.tk-hero .tk-task.pick { animation: tk-land .6s ease-out 1s both; }
@keyframes tk-land { from { transform: translateY(-.5rem); opacity: .2; } }

/* ───────────── The list (the page's sections) ───────────── */
.tk-intro { padding-block: clamp(3rem, 7vw, 6rem) 1rem; }
.tk-intro h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 800; max-inline-size: 22ch; }
.tk-intro p { margin-block-start: 1.1rem; color: var(--tk-muted); font-size: 1.1rem; max-inline-size: var(--tk-measure); }
.tk-list { padding-block: 1rem clamp(3rem, 7vw, 6rem); }
.tk-item { display: grid; grid-template-columns: 7rem minmax(0, 1fr); column-gap: clamp(1rem, 3vw, 2.5rem); padding-block: clamp(2.2rem, 5vw, 4rem); border-block-start: 1px solid var(--tk-line); }
.tk-item:first-child { border-block-start: 2px solid var(--tk-ink); }
.tk-mark { position: sticky; inset-block-start: 5.2rem; align-self: start; padding-block-start: .3rem; }
.tk-box { display: block; inline-size: 2.4rem; block-size: 2.4rem; border: 2px solid var(--tk-ink); border-radius: .5rem; background: var(--tk-done-tint); color: var(--tk-done); }
.tk-box svg { display: block; inline-size: 100%; block-size: 100%; }
.tk-box path { fill: none; stroke: currentColor; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 0; animation: tk-tick .7s ease-out .15s both; }
@keyframes tk-tick { from { stroke-dashoffset: 30; } }
.tk-mark .tk-state { display: block; margin-block-start: .5rem; font-family: var(--tk-mono); font-size: .72rem; font-weight: 600; color: var(--tk-done); }
.tk-mark .tk-num { display: block; margin-block-start: .15rem; font-family: var(--tk-mono); font-size: .72rem; color: var(--tk-muted); }
.tk-item h3 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 800; max-inline-size: 20ch; }
.tk-page .tk-item-lede { margin-block-start: 1rem; color: var(--tk-ink-2); font-size: 1.08rem; max-inline-size: var(--tk-measure); }
.tk-item-body { margin-block-start: clamp(1.5rem, 3vw, 2.4rem); }
.tk-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.tk-page .tk-note { margin-block-start: 1.1rem; padding-inline-start: 1rem; border-inline-start: 3px solid var(--tk-doing); color: var(--tk-ink-2); font-size: .98rem; max-inline-size: var(--tk-measure); }
.tk-page .tk-note strong { color: var(--tk-ink); }
.tk-page .tk-note a { color: var(--tk-orange-ink); font-weight: 600; text-underline-offset: .2em; }
.tk-page .tk-note a:hover { color: var(--tk-ink); }

/* a plain list of abilities: a bold lead and one line */
.tk-abilities { border-block-start: 2px solid var(--tk-ink); }
.tk-abilities li { padding-block: .8rem; border-block-end: 1px solid var(--tk-line); }
.tk-abilities strong { display: block; font-family: var(--tk-display); font-size: 1.02rem; }
.tk-abilities span { color: var(--tk-ink-2); font-size: .98rem; }

/* real tables, in real text */
.tk-table { inline-size: 100%; border-collapse: collapse; font-size: .92rem; background: var(--tk-surface); border: 1px solid var(--tk-line); }
.tk-table caption { text-align: start; padding-block-end: .5rem; font-family: var(--tk-display); font-weight: 700; font-size: .9rem; caption-side: top; }
.tk-table th, .tk-table td { text-align: start; padding: .6rem .75rem; border-block-end: 1px solid var(--tk-line); vertical-align: top; }
.tk-table thead th { background: var(--tk-paper-3); font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; }
.tk-table tbody tr:last-child td, .tk-table tbody tr:last-child th { border-block-end: 0; }
.tk-table tbody th { font-weight: 600; }

/* new task and import (item 1) */
.tk-form { display: grid; gap: .55rem; font-size: .8rem; }
.tk-field { border: 1.5px solid var(--tk-edge); border-radius: .5rem; padding: .45rem .6rem; background: var(--tk-surface); }
.tk-field small { display: block; color: var(--tk-muted); font-size: .66rem; font-weight: 600; }
.tk-field b { font-weight: 600; }
.tk-row { display: flex; flex-wrap: wrap; gap: .4rem; }
.tk-import { margin-block-start: .7rem; display: flex; justify-content: space-between; align-items: center; gap: .8rem; background: var(--tk-doing-tint); color: var(--tk-doing); border-radius: .6rem; padding: .6rem .8rem; font-size: .76rem; font-weight: 600; }
.tk-import u { text-underline-offset: .18em; }

/* plan my day (item 2) */
.tk-day { font-size: .78rem; }
.tk-slot { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr); gap: .6rem; padding-block: .4rem; border-block-start: 1px solid var(--tk-line); align-items: start; }
.tk-slot:first-of-type { border-block-start: 0; }
.tk-slot time { font-family: var(--tk-mono); font-size: .7rem; color: var(--tk-muted); padding-block-start: .15rem; }
.tk-busy { background: var(--tk-paper-3); border-radius: .4rem; padding: .4rem .55rem; color: var(--tk-ink-2); }
.tk-pick { display: grid; grid-template-columns: 1.1rem minmax(0, 1fr); gap: .5rem; align-items: start; background: var(--tk-orange-tint); border: 1.5px solid var(--tk-orange-ink); border-radius: .4rem; padding: .4rem .55rem; }
.tk-pick i { inline-size: 1.05rem; block-size: 1.05rem; border: 2px solid var(--tk-ink); border-radius: .25rem; background: var(--tk-ink); color: #fff; display: grid; place-items: center; font-style: normal; font-size: .7rem; line-height: 1; }
.tk-pick b { display: block; font-weight: 600; }
.tk-pick small { color: var(--tk-ink-2); font-size: .68rem; }
.tk-accept { margin-block-start: .7rem; background: var(--tk-orange); color: var(--tk-ink); border-radius: .6rem; text-align: center; font-family: var(--tk-display); font-weight: 800; padding: .6rem; font-size: .85rem; }

/* approval strip and people (item 4) */
.tk-approval { margin-block-start: .6rem; border: 1.5px solid var(--tk-wait); background: var(--tk-wait-tint); color: var(--tk-wait); border-radius: .5rem; padding: .5rem .65rem; font-size: .74rem; font-weight: 600; }
.tk-people { display: flex; align-items: center; gap: .35rem; margin-block-start: .6rem; font-size: .72rem; color: var(--tk-muted); flex-wrap: wrap; }
.tk-pool { margin-block-start: .6rem; display: flex; justify-content: space-between; align-items: center; gap: .6rem; border: 1.5px dashed var(--tk-edge); border-radius: .5rem; padding: .5rem .65rem; font-size: .74rem; }
.tk-pool b { font-weight: 600; }
.tk-take { background: var(--tk-ink); color: #fff; border-radius: .4rem; padding: .25rem .6rem; font-weight: 700; font-size: .7rem; }

/* goals (item 5) */
.tk-goal { font-size: .8rem; }
.tk-goal-t { font-family: var(--tk-display); font-weight: 800; font-size: 1rem; }
.tk-goal small { color: var(--tk-muted); }
.tk-kr { margin-block-start: .8rem; }
.tk-kr-top { display: flex; justify-content: space-between; gap: .6rem; font-weight: 600; }
.tk-kr-top span { color: var(--tk-muted); font-weight: 500; white-space: nowrap; }
.tk-bar { display: block; block-size: .55rem; border-radius: .3rem; background: var(--tk-paper-3); margin-block-start: .3rem; overflow: hidden; border: 1px solid var(--tk-line); }
.tk-bar i { display: block; block-size: 100%; background: var(--tk-doing); }
.tk-bar i.full { background: var(--tk-done); }
.tk-kind { margin-inline-start: .35rem; }

/* customer progress page (item 6) */
.tk-progress { background: var(--tk-surface); border: 1px solid var(--tk-ink); border-radius: .9rem; padding: 1rem; box-shadow: 0 .2rem 0 var(--tk-ink); font-size: .8rem; }
.tk-progress-h { font-family: var(--tk-display); font-weight: 800; font-size: 1.05rem; }
.tk-progress small { color: var(--tk-muted); }
.tk-steps { margin-block-start: .8rem; }
.tk-steps li { display: grid; grid-template-columns: 1.3rem minmax(0, 1fr) auto; gap: .5rem; align-items: center; padding-block: .4rem; border-block-start: 1px solid var(--tk-line); }
.tk-steps .dot { inline-size: 1.15rem; block-size: 1.15rem; border-radius: 50%; border: 2px solid var(--tk-edge); }
.tk-steps .dot.done { background: var(--tk-done); border-color: var(--tk-done); }
.tk-steps .dot.doing { border-color: var(--tk-doing); background: var(--tk-doing-tint); }
.tk-page .tk-readonly { margin-block-start: .7rem; font-size: .72rem; color: var(--tk-muted); }

/* ───────────── What it does not do ───────────── */
.tk-limits { background: var(--tk-paper-3); padding-block: clamp(2.5rem, 6vw, 4.5rem); border-block: 1px solid var(--tk-line); }
.tk-limits h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 800; max-inline-size: 24ch; }
.tk-limits ul { margin-block-start: 1.6rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 2.5rem; }
.tk-limits li { padding-block-start: .8rem; border-block-start: 2px solid var(--tk-ink); color: var(--tk-ink-2); }
.tk-limits li strong { color: var(--tk-ink); display: block; }
.tk-limits p { margin-block-start: 1.4rem; color: var(--tk-ink-2); }
.tk-limits p a { color: var(--tk-ink); font-weight: 600; text-underline-offset: .2em; }

/* ───────────── Trial + FAQ ───────────── */
.tk-trial { padding-block: clamp(3rem, 7vw, 6rem); }
.tk-trial-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.tk-trial h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); font-weight: 800; max-inline-size: 16ch; }
.tk-trial-in p { margin-block-start: 1rem; color: var(--tk-ink-2); max-inline-size: 34rem; }
.tk-faq details { border-block-end: 1px solid var(--tk-line); padding-block: .2rem; }
.tk-faq details:first-child { border-block-start: 2px solid var(--tk-ink); }
.tk-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-block-size: 3.25rem; padding-block: .7rem; font-family: var(--tk-display); font-weight: 700; font-size: 1.05rem; color: var(--tk-ink); }
.tk-faq summary::-webkit-details-marker { display: none; }
.tk-faq summary::after { content: "+"; font-family: var(--tk-mono); font-size: 1.4rem; line-height: 1; color: var(--tk-orange-ink); }
.tk-faq details[open] summary::after { content: "\2212"; }
.tk-faq details p { margin-block: 0 .9rem; color: var(--tk-ink-2); max-inline-size: var(--tk-measure); }
.tk-close { background: var(--tk-night); color: var(--tk-night-text); padding-block: clamp(3rem, 7vw, 5.5rem); }
.tk-close h2 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 800; max-inline-size: 18ch; }
.tk-close p { margin-block-start: 1rem; color: var(--tk-night-muted); font-size: 1.1rem; max-inline-size: 34rem; }
.tk-close .tk-cta { margin-block-start: 1.8rem; }
.tk-close .tk-btn.line { border-color: var(--tk-night-text); color: var(--tk-night-text); }
.tk-close .tk-btn.line:hover { background: var(--tk-night-text); color: var(--tk-night); }
.tk-more { padding-block: 2rem; color: var(--tk-muted); font-size: .95rem; }
.tk-more a { color: var(--tk-ink); font-weight: 600; text-underline-offset: .2em; }

/* ───────────── Responsive (the screens answer to their own width via container queries where it matters) ───────────── */
@container (max-width: 30rem) { .tk-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 62rem) {
    .tk-hero-grid, .tk-two, .tk-trial-in { grid-template-columns: 1fr; }
}
@media (max-width: 46rem) {
    .tk-item { grid-template-columns: minmax(0, 1fr); row-gap: .8rem; }
    .tk-mark { position: static; display: flex; align-items: center; gap: .8rem; padding: 0; }
    .tk-mark .tk-state { margin: 0; }
    .tk-mark .tk-num { margin: 0; }
    .tk-limits ul { grid-template-columns: 1fr; }
    .tk-tag, .tk-page .sg-brand-tag { display: none; }
}

/* ───────────── Preferences ───────────── */
@media (prefers-contrast: more) {
    .tk-page { --tk-line: #8B8573; --tk-muted: #334155; }
    .tk-card, .tk-board, .tk-col, .tk-task { border-color: var(--tk-ink); }
}
@media (prefers-reduced-motion: reduce) {
    .tk-hero .tk-task.pick, .tk-box path { animation: none; }
    .tk-btn { transition: none; }
}
@media (forced-colors: active) {
    .tk-card, .tk-board, .tk-col, .tk-task, .tk-progress, .tk-field, .tk-box, .tk-pick, .tk-approval, .tk-pool, .tk-table { border: 1px solid CanvasText; box-shadow: none; }
    .tk-btn.primary, .tk-accept { forced-color-adjust: none; background: Highlight; color: HighlightText; }
    .tk-chip { border: 1px solid CanvasText; }
    .tk-bar i, .tk-steps .dot.done { forced-color-adjust: none; background: Highlight; }
    .tk-task.cut b { text-decoration: line-through; }
}
@media print { .tk-page .home-nav, .tk-close, .tk-mark { position: static; } }

/* The top bar drops its in-page links when the page is narrow IN REM, so a larger "Text size" (which raises the rem) collapses it sooner instead of overflowing. */
@media (max-width: 66rem) { .tk-page .home-nav-links { display: none; } }
@media (max-width: 30rem) { .tk-page .home-nav-signin { padding-inline: .5rem; } .tk-page .home-nav .home-btn { padding-inline: .8rem; } }
