/* SOGpt UI v2 · Tasks page and task drawer. Status is never colour alone: each one carries an icon
   and a word. Links and quiet actions stay neutral; teal marks what needs you. */
:root[data-ui=v2] {
  --tk-run:#8cc4d4; --tk-run-bg:rgba(79,157,179,.16);
  --tk-block:#f59d97; --tk-block-bg:rgba(239,107,99,.15);
  --tk-review:#ecd38a; --tk-review-bg:rgba(231,199,93,.13);
  --tk-done:#86dca8; --tk-done-bg:rgba(82,201,129,.13);
  --tk-need-edge:rgba(79,157,179,.45); --tk-need-bg:rgba(79,157,179,.05);
}
:root[data-ui=v2][data-theme=light] {
  --tk-run:#17404e; --tk-run-bg:rgba(23,64,78,.10);
  --tk-block:#a8322a; --tk-block-bg:rgba(168,50,42,.09);
  --tk-review:#7a5a00; --tk-review-bg:rgba(160,120,0,.12);
  --tk-done:#1d6e41; --tk-done-bg:rgba(29,110,65,.10);
  --tk-need-edge:rgba(23,64,78,.35); --tk-need-bg:rgba(23,64,78,.04);
}
:root[data-ui=v2] #view-tasks.active { display:block; height:100%; overflow:auto; padding:0; background:var(--surface-0); }
.tk-view:not(.active) { display:none; }
.tk-page { max-width:1180px; margin:0 auto; padding:32px 48px 56px; box-sizing:border-box; display:flex; flex-direction:column; gap:22px; color:var(--text-1); font-family:var(--font-ui); }
.tk-ic { flex:none; }
.tk-grow { flex-grow:1; }
.tk-meta { color:var(--text-3); font:400 12.5px/1.45 var(--font-ui); }
.tk-sr { position:absolute!important; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.tk-label { display:flex; align-items:center; gap:6px; margin:0; color:var(--text-3); font:500 11.5px/1 var(--font-mono); letter-spacing:.08em; text-transform:uppercase; }

/* Header */
.tk-head { display:flex; align-items:flex-end; gap:24px; flex-wrap:wrap; }
.tk-head-copy { display:flex; flex-direction:column; gap:10px; min-width:0; flex:1 1 320px; }
.tk-eyebrow { color:var(--text-3); font:500 11.5px/1 var(--font-mono); letter-spacing:.08em; text-transform:uppercase; }
.tk-head h1 { margin:0; font:500 40px/1 var(--font-ui); letter-spacing:-.03em; }
.tk-head p { margin:0; color:var(--text-2); font:400 14.5px/1.45 var(--font-ui); }
.tk-tools { display:flex; align-items:flex-end; gap:12px; flex-wrap:wrap; }
.tk-seg { display:flex; padding:3px; border-radius:10px; background:var(--v2-fill); }
.tk-seg button { display:inline-flex; align-items:center; gap:7px; height:30px; padding:0 12px; border:0; border-radius:8px; background:transparent; color:var(--text-2); font:500 13px/1 var(--font-ui); cursor:pointer; }
.tk-seg button[aria-pressed=true] { background:var(--v2-raised); color:var(--text-1); box-shadow:inset 0 1px 0 rgba(255,255,255,.05); }
.tk-seg-n { color:var(--v2-accent-text); font:600 11.5px/1 var(--font-mono); }
.tk-project { display:flex; flex-direction:column; gap:6px; color:var(--text-3); font:400 12px/1 var(--font-ui); }
.tk-project select, .tk-field select, .tk-field input, .tk-field textarea, .tk-d-body textarea, .tk-status-pick select { box-sizing:border-box; border:1px solid var(--v2-edge-strong); background:var(--v2-panel); color:var(--text-1); font:400 13px/1.4 var(--font-ui); }
.tk-project select { height:36px; min-width:190px; max-width:280px; padding:0 10px; border-radius:9px; }
.tk-project select option, .tk-field select option, .tk-status-pick select option { background:var(--surface-2); color:var(--text-1); }

/* Buttons */
.tk-btn, .tk-btn-primary { display:inline-flex; align-items:center; height:36px; padding:0 14px; border-radius:9px; font:500 13px/1 var(--font-ui); white-space:nowrap; cursor:pointer; }
.tk-btn { border:1px solid var(--v2-edge-strong); background:transparent; color:var(--text-1); }
.tk-btn:hover { background:var(--v2-fill); }
.tk-btn.tk-quiet { border-color:transparent; color:var(--text-2); }
.tk-btn.tk-quiet:hover { color:var(--text-1); }
.tk-btn-primary { border:1px solid var(--v2-action); background:var(--v2-action); color:var(--v2-on-action); }
.tk-btn-primary:hover { filter:brightness(1.06); }
.tk-btn-face { display:inline-flex; align-items:center; gap:8px; }
:is(.tk-btn, .tk-btn-primary):disabled { opacity:.5; cursor:default; }
.tk-ask { display:inline-flex; align-items:center; height:32px; padding:0 2px; border:0; background:none; color:var(--text-2); font:400 13px/1 var(--font-ui); cursor:pointer; text-decoration:underline; text-decoration-color:color-mix(in srgb, currentColor 35%, transparent); text-underline-offset:3px; }
.tk-ask:hover { color:var(--text-1); text-decoration-color:currentColor; }
.tk-link { padding:0; border:0; background:none; color:var(--text-1); font:inherit; cursor:pointer; text-decoration:underline; text-underline-offset:3px; }
.tk-icon-btn { width:32px; height:32px; display:grid; place-items:center; flex:none; padding:0; border:1px solid var(--v2-edge-strong); border-radius:8px; background:transparent; color:var(--text-2); cursor:pointer; }
.tk-icon-btn:hover { color:var(--text-1); background:var(--v2-fill); }
:is(.tk-view, .tk-drawer) :is(button, select, input, textarea):focus-visible { outline:2px solid var(--gold-ring); outline-offset:2px; }

/* Status: colour + icon + word */
.tk-st { display:inline-flex; align-items:center; gap:6px; height:24px; padding:0 9px; border-radius:12px; font:500 12.5px/1 var(--font-ui); white-space:nowrap; }
.tk-st-sm { height:20px; font-size:12px; }
.tk-st-run { background:var(--tk-run-bg); color:var(--tk-run); }
.tk-st-ready { background:var(--v2-fill-strong); color:var(--text-2); }
.tk-st-block { background:var(--tk-block-bg); color:var(--tk-block); }
.tk-st-review { background:var(--tk-review-bg); color:var(--tk-review); }
.tk-st-done { background:var(--tk-done-bg); color:var(--tk-done); }
.tk-c-run { color:var(--tk-run); } .tk-c-ready { color:var(--text-3); } .tk-c-block { color:var(--tk-block); } .tk-c-review { color:var(--tk-review); } .tk-c-done { color:var(--tk-done); }
.tk-code { display:inline-flex; align-items:center; flex:none; height:22px; padding:0 7px; border-radius:6px; border:1px solid var(--v2-edge-strong); color:var(--v2-mist); font:500 11.5px/1 var(--font-mono); letter-spacing:.02em; }
:root[data-ui=v2][data-theme=light] .tk-code { color:var(--text-2); }
.tk-proj { min-width:0; overflow:hidden; color:var(--text-3); font:400 12.5px/1.3 var(--font-ui); white-space:nowrap; text-overflow:ellipsis; }

/* Tiles */
.tk-tiles { display:grid; grid-template-columns:repeat(5, minmax(0, 1fr)); gap:12px; }
.tk-tile { display:flex; flex-direction:column; align-items:flex-start; gap:10px; padding:16px 18px; border:1px solid var(--v2-edge); border-radius:14px; background:var(--v2-card); color:var(--text-1); font-family:var(--font-ui); text-align:left; cursor:pointer; }
.tk-tile:hover { border-color:var(--v2-edge-strong); }
.tk-tile[aria-pressed=true] { border-color:var(--text-2); box-shadow:inset 0 0 0 1px var(--text-2); }
.tk-tile-head { display:flex; align-items:center; gap:8px; color:var(--text-2); font-size:13px; }
.tk-count { font:500 30px/1 var(--font-ui); letter-spacing:-.02em; }
.tk-tile-needs { border-color:var(--tk-need-edge); background:var(--tk-need-bg); }
.tk-tile-needs .tk-tile-head { color:var(--text-1); } .tk-tile-needs .tk-ic { color:var(--tk-run); }
.tk-tile-progress .tk-ic { color:var(--tk-run); } .tk-tile-ready .tk-ic { color:var(--text-3); } .tk-tile-review .tk-ic { color:var(--tk-review); } .tk-tile-done .tk-ic { color:var(--tk-done); }
.tk-filter-note { margin:-8px 0 0; color:var(--text-3); font-size:13px; }

/* Needs you */
.tk-needs { display:flex; flex-direction:column; gap:12px; padding:18px 20px 20px; border:1px solid var(--tk-need-edge); border-radius:16px; background:var(--tk-need-bg); }
.tk-needs > .tk-list-head { padding:0; }
.tk-needs > .tk-list-head > .tk-ic { color:var(--tk-run); }
.tk-list-head { display:flex; align-items:center; gap:10px; padding:16px 18px 14px; }
.tk-list-head h2 { margin:0; font:600 15px/1.2 var(--font-ui); }
.tk-needs .tk-list-head h2 { font-size:16px; }
.tk-card { border:1px solid var(--v2-edge); border-radius:14px; background:var(--v2-card); }
.tk-need { display:grid; grid-template-columns:minmax(0, 1fr) auto; align-items:center; gap:10px 24px; padding:18px 22px; }
.tk-need-main { display:flex; flex-direction:column; gap:10px; min-width:0; }
.tk-top { display:flex; align-items:center; gap:10px; min-width:0; flex-wrap:wrap; }
.tk-num { width:24px; height:24px; flex:none; display:grid; place-items:center; border:1px solid var(--tk-need-edge); border-radius:50%; color:var(--tk-run); font:600 12px/1 var(--font-mono); }
.tk-title-btn { min-width:0; padding:0; border:0; background:none; color:var(--text-1); font:500 15px/1.35 var(--font-ui); text-align:left; cursor:pointer; }
.tk-title-btn:hover { text-decoration:underline; text-underline-offset:3px; text-decoration-color:color-mix(in srgb, currentColor 40%, transparent); }
.tk-quote { margin:0; padding:10px 12px; border-radius:9px; background:var(--v2-fill); color:var(--v2-mist); font:400 13.5px/1.5 var(--font-ui); }
:root[data-ui=v2][data-theme=light] .tk-quote { color:var(--text-1); }
.tk-quote span { color:var(--text-2); font-size:12.5px; }
.tk-note { margin:0; color:var(--v2-mist); font-size:13.5px; line-height:1.5; }
:root[data-ui=v2][data-theme=light] .tk-note { color:var(--text-1); }
.tk-clear { display:flex; align-items:center; gap:12px; padding:16px 18px; border:1px solid var(--v2-edge); border-radius:14px; background:var(--v2-card); }
.tk-clear > .tk-ic { color:var(--tk-done); }
.tk-clear > div { display:flex; flex-direction:column; gap:4px; }
.tk-clear strong { font:600 15px/1.3 var(--font-ui); }

/* In progress */
.tk-group { display:flex; flex-direction:column; gap:12px; }
.tk-group > .tk-list-head { padding:0; }
.tk-full { display:flex; flex-direction:column; gap:14px; padding:20px 22px; }
.tk-body { display:flex; flex-direction:column; gap:6px; }
.tk-body h3 { margin:0; }
.tk-body h3 .tk-title-btn { font-size:18px; letter-spacing:-.01em; }
.tk-brief { margin:0; color:var(--text-2); font:400 14px/1.5 var(--font-ui); }
.tk-src { margin:0; color:var(--text-3); font-size:12.5px; line-height:1.5; }
.tk-latest { color:var(--v2-mist); }
:root[data-ui=v2][data-theme=light] .tk-latest { color:var(--text-1); }
.tk-foot { display:flex; align-items:center; gap:10px; flex-wrap:wrap; padding-top:14px; border-top:1px solid var(--v2-edge); }

/* Lists */
.tk-list { overflow:hidden; border:1px solid var(--v2-edge); border-radius:14px; background:var(--v2-card); }
.tk-row { display:grid; grid-template-columns:20px auto minmax(0, 1fr) auto; align-items:center; gap:14px; padding:14px 18px; border-top:1px solid var(--v2-edge); }
.tk-row-ic { display:grid; place-items:center; }
.tk-row-main { display:flex; flex-direction:column; gap:5px; min-width:0; }
.tk-row-main .tk-title-btn { font-size:14.5px; font-weight:400; }
.tk-row-actions { display:flex; align-items:center; justify-content:flex-end; gap:12px; flex-wrap:wrap; }
.tk-row-actions.tk-left { justify-content:flex-start; }
.tk-none { margin:0; color:var(--text-3); font-size:13.5px; }

/* States */
.tk-empty { display:flex; flex-direction:column; align-items:center; gap:12px; padding:48px 32px; border:1px solid var(--v2-edge); border-radius:16px; background:var(--v2-card); text-align:center; }
.tk-empty > .tk-ic { color:var(--text-3); }
.tk-empty strong { font:500 17px/1.3 var(--font-ui); }
.tk-empty p { max-width:460px; margin:0; color:var(--text-2); font:400 14px/1.55 var(--font-ui); }
.tk-empty .tk-row-actions { justify-content:center; margin-top:4px; }
.tk-loading { display:flex; flex-direction:column; gap:14px; }
.tk-loading p { margin:0; color:var(--text-2); font-size:13px; }
.tk-bones { display:grid; grid-template-columns:repeat(5, minmax(0, 1fr)); gap:12px; }
.tk-bones i, .tk-bone { display:block; height:74px; border-radius:14px; background:var(--v2-fill); }
.tk-bone-lg { height:130px; border-radius:16px; }
.tk-alert { display:flex; align-items:flex-start; gap:14px; padding:20px; border:1px solid rgba(239,107,99,.40); border-radius:14px; background:var(--v2-card); }
.tk-alert > .tk-ic { color:var(--tk-block); margin-top:1px; }
.tk-alert strong { font:600 15px/1.3 var(--font-ui); }
.tk-alert p { margin:6px 0 10px; color:var(--text-2); font-size:13.5px; line-height:1.5; }
.tk-alert .tk-row-actions { justify-content:flex-start; }
.tk-err { margin:0; color:var(--tk-block); font-size:13px; line-height:1.45; }
.tk-err[hidden] { display:none; }

/* Drawer */
.tk-drawer { position:fixed; inset:0 0 0 auto; width:min(560px, 100vw); max-width:100vw; height:100%; max-height:100%; margin:0; padding:0; box-sizing:border-box; border:0; border-left:1px solid var(--v2-edge-strong); background:var(--v2-panel); color:var(--text-1); font-family:var(--font-ui); box-shadow:-24px 0 60px rgba(0,0,0,.45); }
.tk-drawer[open] { display:flex; flex-direction:column; }
.tk-drawer::backdrop { background:rgba(4,5,6,.62); }
:root[data-ui=v2][data-theme=light] .tk-drawer::backdrop { background:rgba(23,64,78,.28); }
.tk-drawer > form { display:flex; flex-direction:column; height:100%; min-height:0; }
.tk-d-head { display:flex; flex-direction:column; gap:12px; padding:22px 28px 18px; border-bottom:1px solid var(--v2-edge); }
.tk-d-head h2 { margin:0; font:500 22px/1.25 var(--font-ui); letter-spacing:-.015em; }
.tk-d-head .tk-meta { margin:0; }
.tk-d-meta { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.tk-status-pick { display:inline-flex; align-items:center; gap:8px; color:var(--text-3); font-size:12.5px; }
.tk-status-pick select { height:32px; padding:0 10px; border-radius:8px; font-weight:500; }
.tk-status-pick.tk-st-run select { border-color:color-mix(in srgb, var(--tk-run) 45%, transparent); background:var(--tk-run-bg); color:var(--tk-run); }
.tk-status-pick.tk-st-block select { border-color:color-mix(in srgb, var(--tk-block) 45%, transparent); background:var(--tk-block-bg); color:var(--tk-block); }
.tk-status-pick.tk-st-ready select { background:var(--v2-fill); }
.tk-status-pick.tk-st-run, .tk-status-pick.tk-st-block, .tk-status-pick.tk-st-ready { height:auto; padding:0; background:none; }
.tk-d-body { flex:1; min-height:0; overflow:auto; padding:22px 28px; display:flex; flex-direction:column; gap:24px; }
.tk-d-sec { display:flex; flex-direction:column; gap:10px; }
.tk-d-sec[hidden] { display:none; }
.tk-text { margin:0; color:var(--v2-mist); font:400 14.5px/1.6 var(--font-ui); white-space:pre-wrap; overflow-wrap:anywhere; }
:root[data-ui=v2][data-theme=light] .tk-text { color:var(--text-1); }
.tk-d-body textarea, .tk-field textarea { width:100%; resize:vertical; padding:12px 14px; border-radius:10px; font-size:14px; line-height:1.5; }
.tk-changes .tk-label { color:var(--tk-review); }
.tk-submit, .tk-decide { padding:16px; border:1px solid var(--v2-edge-strong); border-radius:12px; background:var(--v2-fill); }
.tk-link-row { display:grid; grid-template-columns:32px minmax(0, 1fr) auto; align-items:center; gap:12px; padding:12px 0; border-top:1px solid var(--v2-edge); }
.tk-link-row:first-of-type { border-top:0; }
.tk-link-ic { width:32px; height:32px; display:grid; place-items:center; border-radius:8px; background:var(--v2-fill); color:var(--text-2); }
.tk-link-copy { display:flex; flex-direction:column; gap:3px; min-width:0; font-size:14px; }
.tk-askbox { padding:16px; border:1px solid color-mix(in srgb, var(--tk-run) 25%, transparent); border-radius:12px; background:var(--tk-need-bg); }
.tk-askbox h3 { display:flex; align-items:center; gap:8px; margin:0; font:600 14px/1.3 var(--font-ui); }
.tk-askbox h3 .tk-ic { color:var(--tk-run); }
.tk-chips { display:flex; flex-wrap:wrap; gap:8px; }
.tk-chips button { height:32px; padding:0 12px; border:1px solid var(--v2-edge-strong); border-radius:16px; background:transparent; color:var(--text-1); font:400 13px/1 var(--font-ui); cursor:pointer; }
.tk-chips button:hover { background:var(--v2-fill); }
.tk-steps { margin:0; padding:0; list-style:none; display:flex; flex-direction:column; gap:12px; }
.tk-steps li { display:grid; grid-template-columns:14px minmax(0, 1fr) auto; align-items:start; gap:12px; font-size:13.5px; line-height:1.45; color:var(--text-2); }
.tk-dot { width:8px; height:8px; margin-top:5px; border-radius:50%; background:currentColor; }
.tk-dot.tk-c-ready { color:var(--text-4); }
.tk-d-foot { display:flex; align-items:center; gap:10px; flex-wrap:wrap; padding:16px 28px 20px; border-top:1px solid var(--v2-edge); background:var(--v2-panel); }
.tk-field { display:flex; flex-direction:column; gap:8px; color:var(--text-2); font-size:13px; }
.tk-field select, .tk-field input { height:40px; padding:0 12px; border-radius:10px; font-size:14px; }

/* Tasks from Teams: the @mention as it was posted, then the task it was recorded as. */
.tk-new-tag { display:inline-flex; align-items:center; gap:6px; height:24px; padding:0 10px; border-radius:999px; background:var(--tk-run-bg); color:var(--tk-run); font:500 12.5px/1 var(--font-ui); white-space:nowrap; }
.tk-teams-msg { display:flex; gap:12px; padding:12px 14px; border-radius:10px; background:var(--v2-fill); }
.tk-avatar { width:32px; height:32px; flex:none; display:grid; place-items:center; border-radius:50%; background:var(--v2-fill-strong); color:var(--text-1); font:600 12px/1 var(--font-ui); }
.tk-teams-body { display:flex; flex-direction:column; gap:4px; min-width:0; }
.tk-teams-from { display:flex; align-items:baseline; gap:4px 8px; flex-wrap:wrap; }
.tk-teams-from strong { font:600 13.5px/1.3 var(--font-ui); }
.tk-teams-text { margin:0; color:var(--v2-mist); font:400 13.5px/1.55 var(--font-ui); overflow-wrap:anywhere; }
:root[data-ui=v2][data-theme=light] .tk-teams-text { color:var(--text-1); }
.tk-at { padding:0 3px; border-radius:4px; background:var(--tk-run-bg); color:var(--tk-run); font-weight:600; }
.tk-teams-task { gap:8px; }
.tk-teams-task > .tk-meta { flex:none; }
.tk-due { display:inline-flex; align-items:center; height:24px; padding:0 9px; border:1px solid var(--v2-edge-strong); border-radius:999px; color:var(--text-2); font:500 12px/1 var(--font-ui); white-space:nowrap; }
.tk-due-soon { border-color:color-mix(in srgb, var(--tk-review) 45%, transparent); color:var(--tk-review); }
.tk-due-late { border-color:color-mix(in srgb, var(--tk-block) 45%, transparent); background:var(--tk-block-bg); color:var(--tk-block); }
.tk-due-text.tk-due-soon { color:var(--tk-review); } .tk-due-text.tk-due-late { color:var(--tk-block); }
.tk-teams-src .tk-label { display:flex; align-items:center; gap:6px; }
/* Sample note */
.tk-sample { display:flex; align-items:center; gap:12px; padding:10px 14px; border:1px dashed var(--v2-edge-strong); border-radius:12px; color:var(--text-2); font:400 13px/1.5 var(--font-ui); }
.tk-sample p { flex:1; min-width:0; margin:0; }
.tk-sample-tag { flex:none; padding:3px 9px; border-radius:999px; background:var(--v2-fill-strong); color:var(--text-1); font:600 11px/1.3 var(--font-ui); letter-spacing:.04em; text-transform:uppercase; }
.tk-sample .tk-link { flex:none; }
@media (prefers-reduced-motion: no-preference) {
  .tk-arrive { animation:tk-arrive 520ms cubic-bezier(.2,.7,.2,1) both, tk-glow 2600ms ease-out 200ms both; }
  @keyframes tk-arrive { from { opacity:0; transform:translateY(-10px); } to { opacity:1; transform:none; } }
  @keyframes tk-glow { from { box-shadow:0 0 0 2px var(--tk-run); } to { box-shadow:0 0 0 2px transparent; } }
}

@media (prefers-reduced-motion: no-preference) {
  .tk-drawer[open] { animation:tk-in var(--v2-base, 200ms) var(--v2-ease, ease-out); }
  @keyframes tk-in { from { transform:translateX(24px); opacity:.6; } to { transform:none; opacity:1; } }
}
@media (max-width: 1100px) {
  .tk-tiles { grid-template-columns:repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .tk-page { padding:20px 16px 40px; gap:18px; }
  .tk-head h1 { font-size:30px; }
  .tk-tools { width:100%; }
  .tk-project { flex:1 1 160px; }
  .tk-project select { width:100%; min-width:0; max-width:none; }
  .tk-new { flex:none; }
  .tk-tiles { display:flex; gap:8px; margin:0 -16px; padding:0 16px 2px; overflow-x:auto; scrollbar-width:none; }
  .tk-tile { flex:none; flex-direction:row; align-items:center; gap:8px; height:40px; padding:0 13px; border-radius:20px; }
  .tk-tile-head { font-size:13px; }
  .tk-count { font-size:14px; font-weight:600; }
  .tk-needs { padding:14px; }
  .tk-need { grid-template-columns:minmax(0, 1fr); padding:16px; }
  .tk-need .tk-row-actions { justify-content:stretch; }
  .tk-need .tk-row-actions > * { flex:1; justify-content:center; height:44px; }
  .tk-full { padding:16px; }
  .tk-foot > .tk-grow { display:none; }
  .tk-foot :is(.tk-btn, .tk-btn-primary) { flex:1; justify-content:center; height:44px; }
  .tk-row { grid-template-columns:20px auto minmax(0, 1fr); gap:8px 10px; padding:14px 16px; }
  .tk-row > .tk-row-actions { grid-column:1 / -1; justify-content:flex-start; padding-left:30px; }
  .tk-row-actions :is(.tk-btn, .tk-btn-primary) { height:40px; }
  .tk-sample { flex-wrap:wrap; }
  .tk-sample p { flex-basis:100%; order:3; }
  .tk-sample .tk-link { margin-left:auto; }
  .tk-teams-msg { padding:10px 12px; }
  .tk-drawer { width:100vw; border-left:0; }
  .tk-d-head, .tk-d-body { padding-left:16px; padding-right:16px; }
  .tk-d-foot { padding:12px 16px 16px; }
  .tk-d-foot :is(.tk-btn, .tk-btn-primary) { height:44px; }
}

/* The drawer is a <dialog>: keep its title wrapping and its status picker on one line. Its close
   control follows the site-wide close style (close-actions.css). */
#tk-drawer .tk-d-head h2 { white-space:normal; overflow:visible; text-overflow:clip; overflow-wrap:anywhere; }
#tk-drawer .tk-status-pick { flex-direction:row; align-items:center; gap:8px; }
#tk-drawer .tk-d-head > .tk-top { align-self:stretch; width:100%; box-sizing:border-box; }
