/* Layout: a Tel Aviv street-sign poster. Hard edges, 2px ink rules, solid colour bars for each board,
   a giant day number as the masthead, and the Claude column set as one solid ink block. No rounded cards. */
:root {
  --paper: #f4f4ee; --paper-2: #e9e9e1; --ink: #101114; --ink-2: #4a4d57; --ink-3: #858894;
  --line: #101114; --line-soft: #d6d6cc;
  --cobalt: #1d3bff; --on-color: #ffffff; --sun: #ffd60a;
  --critical: #e4322b; --high: #ff7a00; --medium: #1d3bff; --low: #858894; --ok: #0a9a5a; --danger: #e4322b; --warn: #b85c00;
  --font-display: "Secular One", "Rubik", "Heebo", system-ui, sans-serif;
  --font-body: "Assistant", "Heebo", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  /* legacy names still used by a few rules */
  --bg: var(--paper); --surface: var(--paper); --surface-2: var(--paper-2); --line-strong: var(--ink);
  --accent: var(--cobalt); --accent-ink: var(--on-color); --accent-soft: var(--paper-2);
  --danger-soft: var(--paper-2); --warn-soft: var(--sun);
  --radius: 0; --shadow: 8px 8px 0 var(--cobalt);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --paper: #0f1012; --paper-2: #1b1c20; --ink: #f2f2ea; --ink-2: #b6b8bf; --ink-3: #7b7e88;
  --line: #f2f2ea; --line-soft: #2a2c31;
  --cobalt: #5d74ff; --sun: #ffd60a; --ok: #3fcf8e; --danger: #ff6b63; --warn: #ffb257; --low: #7b7e88;
  --shadow: 8px 8px 0 var(--cobalt);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { font-family: var(--font-body); font-size: 18px; line-height: 1.45; background: var(--paper); color: var(--ink);
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-block: 0 90px; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--cobalt); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
h1, h2, h3 { text-wrap: balance; }

/* ------------------------------------------------------------ masthead */
.top { position: sticky; top: 0; z-index: 20; background: var(--paper); padding-block: 18px 0; margin-bottom: 26px; border-bottom: 3px solid var(--line); }
.top-row { display: flex; align-items: flex-end; gap: 28px; flex-wrap: wrap; max-width: 1320px; margin: 0 auto; padding-bottom: 14px; }
.day { display: flex; align-items: center; gap: 14px; margin: 0; font-weight: 400; line-height: 1; }
.day .dnum { font-family: var(--font-display); font-size: 54px; line-height: 1; min-width: 78px; height: 78px; padding: 0 12px; display: grid; place-items: center; background: var(--cobalt); color: var(--on-color); font-variant-numeric: tabular-nums; }
.day .dtxt { display: flex; flex-direction: column; gap: 4px; }
.day .dwk { font-family: var(--font-display); font-size: 30px; line-height: 1.05; }
.day .dmo { font-family: var(--font-mono); font-size: 13px; color: var(--ink-2); letter-spacing: .06em; text-transform: uppercase; }
.day .dmo b { font-weight: 500; color: var(--ink); }
.tabs { display: flex; gap: 26px; align-self: stretch; align-items: flex-end; }
.tabs button { border: 0; background: transparent; padding: 10px 0 12px; font-family: var(--font-display); font-size: 21px; cursor: pointer; color: var(--ink-3); position: relative; margin-bottom: -17px; border-bottom: 5px solid transparent; }
.tabs button:hover { color: var(--ink); }
.tabs button.active { color: var(--ink); border-bottom-color: var(--ink); }
.tabs button .n { font-family: var(--font-mono); font-size: 12px; margin-inline-start: 6px; background: var(--sun); color: #101114; padding: 2px 6px; vertical-align: middle; font-weight: 500; }
.top-tools { display: flex; gap: 10px; align-items: center; margin-inline-start: auto; }
.search { width: 240px; max-width: 40vw; border: 0; border-bottom: 2px solid var(--line); padding: 8px 2px; background: transparent; font-size: 17px; }
.search::placeholder { color: var(--ink-3); }
.search:focus { outline: none; border-bottom-color: var(--cobalt); }
.btn { border: 2px solid var(--line); background: transparent; border-radius: 0; padding: 8px 16px; cursor: pointer; line-height: 1.3; font-weight: 600; }
.btn:hover { background: var(--sun); color: #101114; border-color: var(--line); }
.btn.primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn.primary:hover { background: var(--cobalt); border-color: var(--cobalt); color: var(--on-color); }
.btn.sm { padding: 3px 10px; font-size: 14px; }
.btn.icon { padding: 8px 12px; }
.btn.ghost { border-color: transparent; background: transparent; font-weight: 600; }
.btn.ghost:hover { background: var(--sun); color: #101114; }
.btn.danger { color: var(--danger); border-color: var(--danger); }
.btn.danger:hover { background: var(--danger); color: var(--on-color); }
.menu-wrap { position: relative; }
.menu { position: absolute; inset-inline-end: 0; top: 48px; background: var(--paper); border: 2px solid var(--line); box-shadow: var(--shadow); min-width: 240px; padding: 6px; z-index: 30; }
.menu button { display: block; width: 100%; text-align: start; border: 0; background: transparent; padding: 9px 12px; cursor: pointer; }
.menu button:hover { background: var(--sun); color: #101114; }

/* ------------------------------------------------------------ page */
.view { max-width: 1320px; margin: 0 auto; }
.today-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(300px, 1.05fr); gap: 36px; align-items: start; }
@media (max-width: 900px) { .today-grid { grid-template-columns: 1fr; gap: 24px; } }
.panel { background: transparent; border: 0; border-radius: 0; padding: 0; min-width: 0; }
.panel + .panel { margin-top: 36px; }
.panel-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; border-bottom: 3px solid var(--line); padding-bottom: 8px; }
.panel-head h2 { font-family: var(--font-display); font-size: 28px; font-weight: 400; margin: 0; }
.panel-head .n { font-family: var(--font-mono); color: var(--ink-2); font-size: 14px; }
.panel-head .spacer { flex: 1; }
.empty { color: var(--ink-3); padding: 18px 2px; font-size: 17px; }

/* ------------------------------------------------------------ grouped table */
.group { margin-bottom: 34px; }
.group-head { display: flex; align-items: center; gap: 14px; padding: 10px 16px; cursor: pointer; user-select: none; background: var(--sec, var(--ink)); color: var(--on-color); border: 0; }
.group-head .dot { display: none; }
.group-head h2 { font-family: var(--font-display); font-size: 24px; font-weight: 400; margin: 0; color: var(--on-color); letter-spacing: .01em; }
.group-head .n { font-family: var(--font-mono); font-size: 15px; color: var(--on-color); opacity: .85; }
.group-head .stat { font-family: var(--font-mono); color: var(--on-color); font-size: 13px; margin-inline-start: auto; opacity: .9; }
.group-head .stat b { color: var(--sun); font-weight: 600; }
.group-head .caret { color: var(--on-color); font-size: 13px; opacity: .8; }
.tbl { width: 100%; border-collapse: collapse; background: transparent; border: 0; border-bottom: 2px solid var(--line); }
.tbl.plain { border: 0; }
.tbl th { text-align: start; font-family: var(--font-mono); font-weight: 400; font-size: 11.5px; color: var(--ink-3); padding: 9px 12px 7px; border-bottom: 1px solid var(--line-soft); letter-spacing: .08em; text-transform: uppercase; }
.tbl td { padding: 13px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: color-mix(in srgb, var(--sun) 22%, var(--paper)); }
.tbl .c-check { width: 46px; padding-inline-end: 0; }
.tbl .c-due { width: 160px; white-space: nowrap; }
.tbl .c-pri { width: 112px; }
.tbl .c-snooze { width: 60px; text-align: center; }
.tbl .c-claude { width: 170px; }
.tbl .c-com { width: 64px; text-align: center; }
.com-btn { border: 0; background: transparent; cursor: pointer; color: var(--ink-3); font-size: 14px; display: inline-flex; gap: 5px; align-items: center; padding: 4px 8px; opacity: 0; }
.com-btn.has, .tbl tr:hover .com-btn, .com-btn:focus-visible { opacity: 1; }
.com-btn.has { color: var(--ink); }
.com-btn:hover { background: var(--ink); color: var(--paper); }
.lastc { display: block; width: 100%; color: var(--ink-2); font-size: 14px; cursor: pointer; margin-top: 5px; background: transparent; border-inline-start: 3px solid var(--line-soft); padding: 1px 10px; max-width: 60ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lastc:hover { border-color: var(--cobalt); color: var(--ink); }
.pri-wrap { position: relative; display: inline-block; }
.pri-wrap::after { content: '▾'; position: absolute; inset-inline-end: 7px; top: 50%; transform: translateY(-50%); font-size: 11px; pointer-events: none; color: inherit; opacity: 0; }
.tbl tr:hover .pri-wrap::after, .pri-wrap:focus-within::after { opacity: .9; }
.seg { display: inline-flex; border: 2px solid var(--line); }
.seg button { border: 0; background: transparent; padding: 4px 14px; cursor: pointer; color: var(--ink-2); font-size: 14px; white-space: nowrap; font-weight: 600; }
.seg button + button { border-inline-start: 2px solid var(--line); }
.seg button.on { background: var(--ink); color: var(--paper); }
.tgroup { margin-top: 22px; }
.tgroup-head { display: flex; align-items: center; gap: 12px; padding: 6px 14px; background: var(--sec, var(--ink)); color: var(--on-color); }
.tgroup-head h3 { margin: 0; font-family: var(--font-display); font-size: 19px; font-weight: 400; }
.tgroup-head .n { font-family: var(--font-mono); color: var(--on-color); opacity: .85; font-size: 14px; }
.tgroup-head .dot { display: none; }
@media (max-width: 760px) { .tbl .c-claude, .tbl th.c-claude, .tbl .c-snooze, .tbl th.c-snooze, .tbl .c-com, .tbl th.c-com { display: none; } }
.check { width: 26px; height: 26px; border-radius: 0; border: 2px solid var(--line); background: transparent; cursor: pointer; display: grid; place-items: center; padding: 0; }
.check:hover { background: var(--sun); }
.check.on { background: var(--ink); border-color: var(--ink); color: var(--paper); font-size: 14px; }
.ttl { cursor: pointer; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; min-width: 0; }
.ttl .t { font-weight: 600; font-size: 18px; }
.ttl .t:hover { color: var(--cobalt); }
.ttl .sub { color: var(--ink-3); font-size: 14px; }
.done .ttl .t { text-decoration: line-through; color: var(--ink-3); font-weight: 400; }
.due-wrap { display: flex; align-items: center; gap: 4px; }
.qa { border: 0; background: transparent; cursor: pointer; opacity: 0; padding: 2px 6px; font-size: 14px; color: var(--ink-2); }
.tbl tr:hover .qa, .qa:focus-visible { opacity: 1; }
.qa:hover { background: var(--ink); color: var(--paper); }
.due-btn { border: 0; background: transparent; padding: 2px 8px; margin: -2px -8px; cursor: pointer; white-space: nowrap; font-family: var(--font-mono); font-size: 15px; }
.due-btn:hover { background: var(--paper-2); }
.due-btn.late { background: var(--sun); color: #101114; font-weight: 600; margin: -2px 0; }
.due-btn.late:hover { background: var(--ink); color: var(--paper); }
.due-btn.today { color: var(--cobalt); font-weight: 600; box-shadow: inset 0 0 0 2px var(--cobalt); margin: -2px 0; }
.due-btn.none { color: var(--ink-3); }
.due-edit { border: 2px solid var(--cobalt); padding: 2px 6px; background: var(--paper); width: 100%; font-family: var(--font-mono); }
.pill { display: inline-block; font-size: 13px; padding: 3px 10px; border-radius: 0; line-height: 1.4; white-space: nowrap; font-weight: 600; letter-spacing: .02em; }
.pill-critical { background: var(--critical); color: var(--on-color); }
.pill-high { background: var(--high); color: var(--on-color); }
.pill-medium { background: transparent; color: var(--medium); box-shadow: inset 0 0 0 2px var(--medium); }
.pill-low { background: transparent; color: var(--low); box-shadow: inset 0 0 0 2px var(--low); }
select.pri { appearance: none; -webkit-appearance: none; border: 0; cursor: pointer; font-size: 13px; padding: 3px 22px 3px 10px; border-radius: 0; }
[dir="rtl"] select.pri { padding: 3px 10px 3px 22px; }
.snz { font-family: var(--font-mono); font-size: 13px; color: var(--warn); font-weight: 600; white-space: nowrap; }
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; padding: 2px 8px; border-radius: 0; background: transparent; color: var(--ink-2); border: 1px solid var(--ink-3); text-decoration: none; max-width: 100%; }
.chip .tx { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip.quiet { border-color: var(--line-soft); color: var(--ink-3); }
.chip.pr-OPEN { color: var(--ok); border-color: var(--ok); }
.chip.pr-MERGED { color: var(--ink-3); border-color: var(--line-soft); }
.chip.env { color: var(--ink-2); }
.quick { display: flex; gap: 8px; padding: 6px 12px; }
.quick input { flex: 1; border: 0; background: transparent; padding: 4px 0; }
.quick input::placeholder { color: var(--ink-3); }
.quick input:focus { outline: none; }

/* big checklist tables (Today) */
.tbl.big thead { display: none; }
.tbl.big td { padding: 16px 12px; border-bottom: 1px solid var(--line-soft); }
.tbl.big .ttl { flex-direction: column; gap: 2px; align-items: flex-start; }
.tbl.big .ttl .t { font-size: 21px; font-weight: 600; }
.tbl.big .ttl .sub { font-size: 14px; }
.tbl.big .ttl .sub::before { content: none; }
.tbl.big .c-due { font-size: 16px; }

/* focus strip */
.focus-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; border-bottom: 3px solid var(--line); padding-bottom: 10px; margin-bottom: 4px; }
.focus-head h2 { margin: 0; font-size: 34px; font-family: var(--font-display); font-weight: 400; line-height: 1; }
.focus-head .lead { color: var(--ink-2); font-size: 16px; }
.push { margin-inline-start: auto; }
.push-confirm { display: inline-flex; gap: 6px; align-items: center; margin-inline-start: auto; }
.rest { margin-top: 14px; }
.rest summary { cursor: pointer; color: var(--ink-2); padding: 8px 2px; list-style: none; font-weight: 600; border-bottom: 1px solid var(--line-soft); }
.rest summary::-webkit-details-marker { display: none; }
.rest summary:hover { color: var(--ink); }

/* ------------------------------------------------------------ claude column (Today): one solid ink block */
.cl-panel { background: var(--ink); color: var(--paper); padding: 20px 22px 24px; border: 0; }
.cl-panel .panel-head { border-bottom-color: var(--paper); margin-bottom: 4px; }
.cl-panel .panel-head h2 { color: var(--paper); }
.cl-panel .btn.ghost { color: var(--paper); }
.cl-panel .btn.ghost:hover { background: var(--sun); color: #101114; }
.cl-panel .sync { display: flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); margin-bottom: 22px; letter-spacing: .04em; }
.cl-panel .sync i { width: 8px; height: 8px; background: var(--ok); }
.cl-panel .faint { color: var(--ink-3); }
.eyebrow { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin: 24px 0 6px; }
.eyebrow:first-of-type { margin-top: 0; }
.eyebrow b { font-weight: 500; font-size: 11px; min-width: 20px; height: 18px; padding: 0 5px; background: var(--sun); color: #101114; display: inline-grid; place-items: center; }
.cl-list { display: flex; flex-direction: column; }
.cl-card { position: relative; display: flex; align-items: center; gap: 12px; direction: ltr; text-align: left; padding: 12px 2px; border-top: 1px solid color-mix(in srgb, var(--paper) 22%, transparent); color: var(--paper); text-decoration: none; }
.cl-card:last-child { border-bottom: 1px solid color-mix(in srgb, var(--paper) 22%, transparent); }
.cl-card:hover .t { color: var(--sun); }
.cl-card .dot { flex: none; width: 9px; height: 9px; background: var(--sun); }
.cl-card.later .dot { background: transparent; border: 2px solid var(--ink-3); width: 9px; height: 9px; }
.cl-card .body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.cl-card .t { font-size: 17px; font-weight: 400; line-height: 1.3; }
.cl-card .s.one { color: var(--ink-3); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-card .mk { flex: none; display: inline-flex; align-items: center; gap: 4px; border: 1.5px solid var(--paper); background: var(--ink); color: var(--paper); padding: 3px 10px 3px 8px; font-size: 13px; cursor: pointer; direction: rtl; font-weight: 600; }
.cl-card .mk span { font-size: 15px; line-height: 1; }
.cl-card .mk:hover { background: var(--sun); border-color: var(--sun); color: #101114; }
@media (hover: hover) { .cl-card .mk { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); opacity: 0; transition: opacity .15s ease; } .cl-card:hover .mk, .cl-card:focus-within .mk { opacity: 1; } }
[dir="ltr"] .cl-card .mk { direction: ltr; }

/* claude view */
.cl-row { display: flex; gap: 10px; padding: 12px 2px; border-top: 1px solid var(--line-soft); align-items: flex-start; }
.cl-row:first-of-type { border-top: 0; }
.cl-row .ico { flex: none; width: 20px; text-align: center; color: var(--ink-2); }
.cl-row .main { flex: 1; min-width: 0; }
.cl-row .t { font-weight: 600; }
.cl-row .s { color: var(--ink-2); font-size: 14.5px; }
.cl-row .meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.cl-row .acts { flex: none; display: flex; gap: 4px; }
.cl-row.dim { opacity: .6; }
.cl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
@media (max-width: 900px) { .cl-grid { grid-template-columns: 1fr; } }
.cl-note { color: var(--ink-2); font-size: 15px; margin: 0 0 14px; }
.on { width: 9px; height: 9px; background: var(--ok); display: inline-block; }
.off { width: 9px; height: 9px; background: var(--line-soft); display: inline-block; }

/* ------------------------------------------------------------ drawer */
.drawer { position: fixed; top: 0; inset-inline-end: 0; height: 100%; width: min(700px, 96vw); background: var(--paper); border-inline-start: 4px solid var(--ink);
  z-index: 40; overflow-y: auto; padding: 26px 30px 60px; }
.d-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.d-head select { border: 2px solid var(--line); padding: 5px 12px; background: transparent; font-size: 15px; font-weight: 600; }
.d-head .close { margin-inline-start: auto; }
.d-title { width: 100%; font-family: var(--font-display); font-size: 32px; font-weight: 400; border: 0; background: transparent; padding: 6px 0; outline: none; resize: none; line-height: 1.2; }
.d-title:focus { border-bottom: 3px solid var(--cobalt); }
.frow { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 12px 0; }
.frow label { color: var(--ink-2); min-width: 64px; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; }
.frow input[type=date], .frow select, .frow input[type=text] { border: 2px solid var(--line); padding: 7px 12px; background: transparent; font-size: 16px; }
.snooze-note { font-size: 14px; color: var(--warn); font-family: var(--font-mono); }
.sec-title { font-family: var(--font-mono); font-weight: 500; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; margin: 30px 0 8px; color: var(--ink-3); display: flex; align-items: center; gap: 8px; border-bottom: 2px solid var(--line); padding-bottom: 6px; }
.notes { width: 100%; min-height: 84px; font-size: 16px; border: 2px solid var(--line-soft); padding: 8px 10px; background: transparent; resize: vertical; }
.notes:focus { outline: none; border-color: var(--ink); }
.sub { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line-soft); }
.sub input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--ink); }
.sub .st { flex: 1; border: 0; background: transparent; padding: 3px 4px; }
.sub .st:focus { outline: none; background: var(--paper-2); }
.sub.done .st { text-decoration: line-through; color: var(--ink-3); }
.sub .x { opacity: 0; border: 0; background: transparent; cursor: pointer; color: var(--ink-3); }
.sub:hover .x { opacity: 1; }
.add-inline { width: 100%; border: 2px dashed var(--line-soft); background: transparent; padding: 6px 10px; margin-top: 6px; }
.add-inline:focus { outline: none; border-color: var(--ink); border-style: solid; }
.links { display: flex; flex-wrap: wrap; gap: 6px; }
.links .rm { border: 0; background: transparent; color: var(--ink-3); cursor: pointer; padding: 0 4px; }
.comment { border-top: 1px solid var(--line-soft); padding: 12px 0; }
.comment .when { color: var(--ink-3); font-size: 12.5px; display: flex; gap: 8px; font-family: var(--font-mono); }
.comment .when .del { margin-inline-start: auto; opacity: 0; cursor: pointer; border: 0; background: transparent; color: var(--ink-3); }
.comment:hover .when .del { opacity: 1; }
.comment .body { white-space: pre-wrap; word-break: break-word; margin-top: 4px; }
.atts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.att img { max-width: 220px; max-height: 160px; border: 2px solid var(--line); display: block; cursor: zoom-in; }
.att .f { display: inline-flex; gap: 6px; align-items: center; padding: 6px 10px; border: 2px solid var(--line); text-decoration: none; color: var(--ink); }
.att .rm { border: 0; background: transparent; color: var(--ink-3); cursor: pointer; font-size: 12px; }
.composer { margin-top: 12px; border: 2px solid var(--line); padding: 8px 10px; background: transparent; }
.composer textarea { width: 100%; min-height: 76px; font-size: 16px; border: 0; background: transparent; resize: vertical; outline: none; }
.composer .c-foot { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.composer .hint { color: var(--ink-3); font-size: 12.5px; margin-inline-start: auto; font-family: var(--font-mono); }
.hist { font-size: 13.5px; color: var(--ink-2); font-family: var(--font-mono); }
.hist div { padding: 3px 0; }
.d-foot { display: flex; gap: 8px; margin-top: 34px; padding-top: 16px; border-top: 3px solid var(--line); }
.d-foot .btn { padding: 9px 18px; font-size: 16px; }
.d-foot .danger { margin-inline-start: auto; }

/* ------------------------------------------------------------ modal */
.modal { position: fixed; inset: 0; background: color-mix(in srgb, var(--ink) 55%, transparent); z-index: 50; display: grid; place-items: center; padding: 20px; }
.box { background: var(--paper); border: 3px solid var(--ink); width: min(720px, 96vw); max-height: 90vh; overflow: auto; padding: 22px 24px; box-shadow: var(--shadow); }
.box h2 { margin: 0 0 14px; font-family: var(--font-display); font-weight: 400; font-size: 26px; }
.form input[type=text], .form select, .form input[type=date] { border: 2px solid var(--line); padding: 8px 10px; background: transparent; width: 100%; }
.foot { display: flex; gap: 8px; justify-content: flex-end; margin-top: 18px; }
.picker-list { max-height: 50vh; overflow: auto; border: 2px solid var(--line); margin-top: 8px; }
.picker-list .cl-row { cursor: pointer; padding: 8px 10px; }
.picker-list .cl-row:hover { background: var(--sun); color: #101114; }
.imp-group { border: 2px solid var(--line); padding: 10px; margin-bottom: 10px; }
.imp-group .gh { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; font-weight: 600; }
.imp-group table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.imp-group td { padding: 3px 4px; border-top: 1px solid var(--line-soft); }
.imp-group td.done { color: var(--ink-3); text-decoration: line-through; }

.toast { position: fixed; bottom: 24px; inset-inline-start: 50%; transform: translateX(-50%); background: var(--sun); color: #101114; border: 2px solid #101114; padding: 10px 18px; z-index: 60; box-shadow: 6px 6px 0 #101114; display: flex; align-items: center; gap: 16px; font-size: 17px; font-weight: 600; }
.toast-act { background: transparent; border: 0; color: #101114; font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; cursor: pointer; padding: 2px 4px; }
.toast-act:hover { color: var(--cobalt); }
[dir="rtl"] .toast { transform: translateX(50%); }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.88); z-index: 70; display: grid; place-items: center; cursor: zoom-out; }
.lightbox img { max-width: 95vw; max-height: 95vh; }
@media (prefers-reduced-motion: no-preference) { .tabs button, .btn, .check, .cl-card .t { transition: background .12s, color .12s, border-color .12s; } }

/* ------------------------------------------------------------ phone */
@media (max-width: 600px) {
  body { font-size: 17px; }
  .top { margin-bottom: 18px; }
  .top-row { gap: 12px; }
  .day .dnum { font-size: 40px; min-width: 58px; height: 58px; }
  .day .dwk { font-size: 22px; }
  .tabs { gap: 16px; width: 100%; order: 3; }
  .tabs button { font-size: 18px; margin-bottom: -15px; }
  .top-tools { margin-inline-start: 0; width: 100%; }
  .search { max-width: none; flex: 1; }
  .focus-head h2 { font-size: 28px; }
  .tbl.big .ttl .t { font-size: 18px; }
  .cl-panel { padding: 16px 16px 18px; }
}

/* Hebrew has no mono face: small labels use the body face with a little spacing instead */
[lang="he"] .dmo, [lang="he"] .eyebrow, [lang="he"] .tbl th, [lang="he"] .frow label, [lang="he"] .sec-title, [lang="he"] .cl-panel .sync, [lang="he"] .group-head .stat, [lang="he"] .panel-head .n { font-family: var(--font-body); letter-spacing: .02em; font-weight: 600; font-size: 13px; }

/* icons: drawn, square, inherit colour */
.ic { width: 15px; height: 15px; flex: none; vertical-align: -2px; fill: none; }
.ic.sm { width: 12px; height: 12px; vertical-align: -1px; }
.panel-head h2 .ic { width: 22px; height: 22px; vertical-align: -3px; margin-inline-end: 10px; }
.cl-row .ico .ic { width: 16px; height: 16px; margin-top: 4px; }
.chip .ic { width: 12px; height: 12px; }
.lastc .ic { vertical-align: -3px; margin-inline-end: 2px; color: var(--ink-3); }
.snz .ic { width: 12px; height: 12px; margin-inline-end: 3px; }
.btn .ic { margin-inline-end: 4px; }

/* one orchestrated moment: the day number stamps in, the bars settle, the toast rises */
@media (prefers-reduced-motion: no-preference) {
  .day .dnum { animation: stamp .45s cubic-bezier(.2, 1.4, .3, 1) both; }
  .group-head, .tgroup-head { animation: settle .35s ease-out both; }
  .toast { animation: rise .22s ease-out both; }
  .check.on { animation: stamp .3s cubic-bezier(.2, 1.4, .3, 1) both; }
  .done .ttl .t { text-decoration-color: var(--ink-3); transition: color .25s; }
}
@keyframes stamp { from { transform: scale(1.25); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes settle { from { transform: translateY(-4px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes rise { from { transform: translate(-50%, 12px); opacity: 0; } }
[dir="rtl"] .toast { animation-name: rise-rtl; }
@keyframes rise-rtl { from { transform: translate(50%, 12px); opacity: 0; } to { transform: translate(50%, 0); opacity: 1; } }

/* tighter secondary type */
.ttl .sub { font-size: 13.5px; }
.tbl th { padding-bottom: 6px; }
.tbl.big tbody tr:hover td { background: color-mix(in srgb, var(--sun) 22%, var(--paper)); }
.empty { border: 2px dashed var(--line-soft); padding: 22px; text-align: center; }

/* repeating tasks + date-with-lateness on the Today board */
.rep { display: inline-flex; align-items: center; gap: 4px; color: var(--cobalt); font-weight: 600; }
.rep .ic { width: 13px; height: 13px; }
.rep-sel.set { color: var(--cobalt); font-weight: 600; }
.rep-hint { font-size: 13px; display: inline-flex; align-items: center; gap: 4px; }
.due-btn.big.late { display: inline-flex; flex-direction: column; align-items: flex-start; line-height: 1.15; padding: 4px 8px; }
.due-btn.big.late .dd { font-size: 16px; font-weight: 600; }
.due-btn.big.late .ld { font-size: 12px; font-weight: 500; opacity: .85; font-family: var(--font-body); letter-spacing: .01em; }

/* in progress (בטיפול): cobalt tag on the row, pinned to the top by the sort */
.wk { border: 2px solid var(--cobalt); color: var(--cobalt); background: transparent; font-size: 12px; font-weight: 700; padding: 1px 8px; cursor: pointer; line-height: 1.4; letter-spacing: .02em; opacity: 0; transition: opacity .12s; }
.tbl tbody tr:hover .wk, .wk:focus-visible { opacity: 1; }
.wk.set { opacity: 1; background: var(--cobalt); color: var(--on-color); }
.wk:hover { background: var(--cobalt); color: var(--on-color); }
.wk.set:hover { background: var(--ink); border-color: var(--ink); }
tr.working td { background: color-mix(in srgb, var(--cobalt) 8%, var(--paper)); }
tr.working td:first-child { border-inline-start: 5px solid var(--cobalt); }
tr.working .ttl .t { color: var(--cobalt); }
.wk-btn { border-color: var(--cobalt); color: var(--cobalt); }
.wk-btn.set { background: var(--cobalt); color: var(--on-color); }
@media (hover: none) { .wk { opacity: .55; } }

/* skills panel: custom slash commands, click to copy */
.sk-panel { margin-top: 36px; }
.sk-hint { font-size: 13px; color: var(--ink-3); }
.sk-group { margin-bottom: 8px; }
.sk-group .eyebrow { color: var(--ink-2); }
.sk-group .eyebrow b { background: var(--sec); color: var(--on-color); }
.sk { display: flex; width: 100%; align-items: baseline; gap: 12px; padding: 9px 2px; border: 0; border-top: 1px solid var(--line-soft); background: transparent; cursor: pointer; text-align: start; color: inherit; }
.sk:last-child { border-bottom: 1px solid var(--line-soft); }
.sk code { flex: none; direction: ltr; font-family: var(--font-mono); font-size: 15px; font-weight: 500; color: var(--sec); padding: 1px 7px; border: 2px solid var(--sec); unicode-bidi: isolate; }
.sk span { flex: 1; min-width: 0; font-size: 14px; color: var(--ink-2); line-height: 1.35; }
.sk:hover { background: color-mix(in srgb, var(--sun) 25%, var(--paper)); }
.sk:hover code, .sk.did code { background: var(--sec); color: var(--on-color); }
.sk.did { background: var(--sun); }

/* push menu under the fast-forward button */
.due-wrap { position: relative; }
.snz-menu { position: absolute; top: calc(100% + 6px); inset-inline-end: 0; z-index: 25; min-width: 220px; background: var(--paper); border: 2px solid var(--line); box-shadow: var(--shadow); padding: 4px; display: flex; flex-direction: column; }
.snz-menu button { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; width: 100%; border: 0; background: transparent; padding: 9px 12px; cursor: pointer; font-size: 16px; font-weight: 600; text-align: start; color: inherit; }
.snz-menu button small { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-3); font-weight: 400; direction: ltr; }
.snz-menu button:hover, .snz-menu button:focus-visible { background: var(--sun); color: #101114; outline: none; }
.snz-menu button:hover small { color: #101114; }
[lang="he"] .snz-menu button small { font-family: var(--font-body); font-size: 13px; direction: rtl; }

/* pinned claude.ai chats in the Today column */
.eyebrow .eb-note { margin-inline-start: auto; text-transform: none; letter-spacing: 0; color: var(--ink-3); font-size: 11.5px; }
.cl-card.chat .dot { background: var(--paper); }
.cl-card.chat .ic { color: var(--ink-3); flex: none; }
.cl-card.chat:hover .ic { color: var(--sun); }

/* hosted mode */
.cl-panel .sync.wait i { background: var(--sun); }
.cl-card:not([href]) { cursor: default; }
.cl-card:not([href]):hover .t { color: inherit; }
