/* Kenton OS: shared styles for the Brief, Tasks, Goals, Training, Discover, reviews and rules pages. */
:root {
  --bg: #EDF0F3; --card: #FFFFFF; --ink: #14202B; --muted: #4F5D6B; --faint: #8A97A4; --line: #EDF0F3; --line2: #F3F5F7;
  --border: #C5CDD5; --border2: #DDE2E7; --accent: #B8501A; --accent-soft: #FBF1EB; --accent-line: #E8C3AC; --link: #1F5C99;
  --chip: #E3EDF7; --night: #14202B; --night-ink: #A9C4E0; --warn: #A23A1E; --head: #F6F8FA;
  --good: #1E6B3D; --good-soft: #BFD9C8; --warn-soft: #E8B9AC; --plan: #9FB3C8; --plan-soft: #D5DDE5;
  --violet: #5B3F99; --violet-soft: #EFEAF7; --gold: #7A5C00; --gold-soft: #F7F1DC;
  /* Goal colours: a new goal takes the next one (KOS.goalColour) */
  --goal1: #1E8A4C; --goal2: #C27C0E; --goal3: #C2387A; --goal4: #6E4BC7; --goal5: #0B8BA6; --goal6: #C23B32; --goal7: #3D6FB8; --goal8: #7A6A3A;
  --sans: 'IBM Plex Sans', system-ui, sans-serif; --mono: 'IBM Plex Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); -webkit-text-size-adjust: 100%; }
a { color: var(--link); } a:hover { color: var(--ink); }
button, input, select, textarea { font-family: var(--sans); color: var(--ink); }
.sr { position: absolute; left: -9999px; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }

/* Header */
header.top { background: var(--card); border-bottom: 1px solid var(--border2); padding: 12px 24px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; position: sticky; top: 0; z-index: 5; }
.hello { display: flex; flex-direction: column; min-width: 0; }
.hello b { font-size: 20px; font-weight: 600; }
.hello span { font-size: 13px; color: var(--muted); }
.cap { flex: 1 1 260px; display: flex; gap: 8px; min-width: 0; }
.cap input { flex: 1; min-width: 0; height: 44px; border: 1px solid var(--border); border-radius: 10px; padding: 0 14px; font-size: 14px; }
nav.tabs { display: flex; gap: 4px; flex-wrap: wrap; }
nav.tabs a { text-decoration: none; padding: 8px 12px; border-radius: 8px; color: var(--ink); font-size: 14px; }
nav.tabs a.on { background: var(--ink); color: #fff; }
.grow { flex: 1; }

/* Buttons */
.btn { height: 44px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--card); font-size: 14px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); }
.btn.primary { background: var(--accent); color: #fff; border: none; font-weight: 600; }
.btn.dark { background: var(--ink); color: #fff; border: none; }
.btn.small { height: 36px; font-size: 13px; padding: 0 12px; }
.btn:disabled { opacity: .5; cursor: default; }
.linkbtn { background: none; border: none; color: var(--link); font-size: 14px; cursor: pointer; padding: 0 8px; min-height: 36px; }
.pill { height: 32px; padding: 0 11px; border-radius: 16px; border: 1px solid var(--border); background: var(--card); font-size: 12px; cursor: pointer; }
.pill.sug { border: 1px dashed var(--accent); }
.pill.on { border: 2px solid var(--accent); background: var(--accent); color: #fff; }
.seg { display: inline-flex; background: var(--bg); border-radius: 8px; padding: 3px; flex-wrap: wrap; }
.seg button { height: 34px; padding: 0 10px; border: none; border-radius: 6px; background: transparent; font-size: 12px; font-weight: 500; cursor: pointer; }
.seg button.on { background: var(--ink); color: #fff; }

/* Layout */
main { padding: 20px 24px 40px; display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; max-width: 1440px; margin: 0 auto; }
.col { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.h b { font-size: 16px; font-weight: 600; }
.count { font-family: var(--mono); font-size: 12px; background: var(--accent); color: #fff; padding: 2px 8px; border-radius: 10px; margin-left: 4px; }
.card { background: var(--card); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.card.pad { padding: 16px 18px; }
.tag { align-self: flex-start; font-family: var(--mono); font-size: 11px; color: var(--link); background: var(--chip); padding: 3px 7px; border-radius: 6px; text-transform: uppercase; }
.kicker { font-family: var(--mono); font-size: 10px; letter-spacing: 1px; color: var(--muted); }
.empty { font-size: 14px; color: var(--muted); background: var(--card); border-radius: 12px; padding: 14px; }
.stat { font-size: 13px; color: var(--muted); line-height: 1.5; }
.stat b { color: var(--ink); font-weight: 500; }
.row { display: flex; gap: 8px; align-items: center; }
.kv { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.kv span:last-child { color: var(--muted); text-align: right; }
.night { background: var(--night); color: #fff; border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.night .k { font-family: var(--mono); font-size: 10px; letter-spacing: 1px; color: var(--night-ink); }
.night p { margin: 0; font-size: 13px; line-height: 1.5; }
.night .btn { height: 36px; font-size: 13px; }
.night .btn.light { background: #fff; color: var(--ink); border: none; font-weight: 600; }
.night .btn.ghost { background: transparent; color: #fff; border: 1px solid var(--muted); }
.night.warn { background: var(--warn); }
.night.warn .k { color: #F7D9CF; }
.alert { background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.alert b { font-size: 14px; color: var(--warn); }
.alert span { font-size: 13px; line-height: 1.5; }

/* Item rows (signifiers) */
.it { display: flex; gap: 8px; align-items: center; min-height: 44px; border-bottom: 1px solid var(--line2); }
.it .sig { width: 40px; height: 40px; flex: none; border: none; background: none; padding: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; border-radius: 8px; color: var(--ink); }
.it .sig:hover { background: var(--line); }
.it .sig .mk { font-family: var(--mono); font-size: 20px; font-weight: 500; }
.it .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.it .tx > span:first-child { font-size: 14px; line-height: 1.35; }
.it .tx small { font-size: 12px; color: var(--muted); }
.it .meta { font-size: 12px; color: var(--muted); white-space: nowrap; }
.it .meta.late, .it small.late { color: var(--warn); }
.it.closed .tx > span:first-child { color: var(--muted); }
.it.dropped .tx > span:first-child { text-decoration: line-through; color: var(--muted); }
.it .added { font-family: var(--mono); font-size: 10px; color: var(--link); background: var(--chip); padding: 2px 6px; border-radius: 5px; }
.it .more { width: 40px; height: 44px; flex: none; border: none; background: transparent; color: var(--muted); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.acts { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 12px 48px; border-bottom: 1px solid var(--line2); }
.acts button { height: 36px; padding: 0 12px; border: 1px solid var(--border); border-radius: 18px; background: var(--card); font-size: 13px; cursor: pointer; }
.acts input[type=date], .acts input[type=text] { height: 36px; border: 1px solid var(--border); border-radius: 10px; padding: 0 10px; font-size: 13px; }
.grp { display: flex; flex-direction: column; padding-bottom: 10px; }
.grp-t { font-size: 16px; font-weight: 600; color: var(--ink); padding: 4px 0 6px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.grp-t small { font-size: 12px; color: var(--muted); font-weight: 400; }
.showall { font-size: 13px; padding: 10px 0; background: none; border: none; color: var(--link); text-align: left; cursor: pointer; }

/* Account menu */
.me { position: relative; }
.avatar { width: 44px; height: 44px; border-radius: 22px; border: none; background: var(--ink); color: #fff; font: 600 16px var(--sans); cursor: pointer; }
.menu { position: absolute; right: 0; top: 52px; background: var(--card); border: 1px solid var(--border2); border-radius: 12px; box-shadow: 0 8px 24px rgba(20,32,43,.15); padding: 8px; min-width: 250px; display: none; flex-direction: column; z-index: 15; }
.menu.on { display: flex; }
.menu .who { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.menu .who b { display: block; font-size: 15px; }
.menu .who span { font-size: 12px; color: var(--muted); }
.menu button, .menu a { text-align: left; background: none; border: none; padding: 10px; border-radius: 8px; font-size: 14px; cursor: pointer; color: var(--ink); text-decoration: none; min-height: 44px; display: flex; align-items: center; }
.menu button:hover, .menu a:hover { background: var(--bg); }
.menu hr { border: none; border-top: 1px solid var(--line); margin: 4px 0; width: 100%; }

/* Banners and section errors */
.banner { background: var(--warn); color: #fff; font-size: 14px; padding: 10px 24px; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.banner.offline { background: var(--ink); }
.banner button { background: rgba(255,255,255,.15); color: #fff; border: 1px solid rgba(255,255,255,.4); border-radius: 8px; height: 36px; padding: 0 12px; font-size: 13px; cursor: pointer; }
.secerr { font-size: 13px; color: var(--warn); background: var(--card); border-radius: 12px; padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.stamp { font-size: 12px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.stamp button { background: none; border: none; color: var(--link); font-size: 12px; cursor: pointer; padding: 4px; }

/* Sheets */
.scrim { position: fixed; inset: 0; background: rgba(20,32,43,.55); display: none; z-index: 20; align-items: flex-end; justify-content: center; }
.scrim.on { display: flex; }
.sheet { background: var(--card); width: 100%; max-width: 520px; border-radius: 22px 22px 0 0; padding: 12px 18px 28px; display: flex; flex-direction: column; gap: 16px; max-height: 92vh; overflow-y: auto; }
@media (min-width: 700px) { .scrim { align-items: center; } .sheet { border-radius: 18px; } }
.grab { align-self: center; width: 40px; height: 5px; border-radius: 3px; background: var(--border); }
.sheet h3 { margin: 0; font-size: 19px; font-weight: 600; line-height: 1.3; }
.sheet .sub { font-size: 14px; color: var(--muted); line-height: 1.4; }
.sheet .row .btn { height: 50px; font-size: 16px; }
.opt { display: flex; gap: 12px; align-items: flex-start; text-align: left; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border2); background: var(--card); cursor: pointer; width: 100%; }
.opt .dot { width: 20px; height: 20px; border-radius: 10px; border: 1.5px solid var(--faint); flex: none; margin-top: 2px; }
.opt.on { border: 2px solid var(--accent); background: var(--accent-soft); }
.opt.on .dot { border: 6px solid var(--accent); }
.opt b { display: block; font-size: 15px; font-weight: 600; }
.opt span { font-size: 13px; color: var(--muted); line-height: 1.35; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 13px; color: var(--muted); }
.field input[type=text], .field input[type=date], .field input[type=time], .field input[type=email], .field input[type=password], .field select, .field textarea { height: 44px; border: 1px solid var(--border); border-radius: 10px; padding: 0 12px; font-size: 15px; background: var(--card); }
.field textarea { height: auto; padding: 10px 12px; resize: vertical; font-size: 16px; line-height: 1.45; }
.check { display: flex; gap: 10px; align-items: center; font-size: 14px; min-height: 44px; }
.check input { width: 20px; height: 20px; }

/* Toast */
#toast { position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 14px; display: none; z-index: 30; gap: 12px; align-items: center; max-width: 92vw; }
#toast.on { display: flex; }
#toast button { background: none; border: none; color: var(--night-ink); font-size: 14px; cursor: pointer; }

/* Phone */
.bottom { display: none; }
@media (max-width: 760px) {
  header.top { padding: 16px 16px 8px; position: static; background: transparent; border: none; justify-content: space-between; flex-wrap: nowrap; }
  .hello b { font-size: 26px; letter-spacing: -.3px; }
  header.top .cap, header.top nav.tabs { display: none; }
  main { padding: 8px 16px 120px; gap: 22px; }
  main > * { flex: 1 1 100% !important; }
  .banner { padding: 10px 16px; }
  .bottom { display: grid; position: fixed; left: 0; right: 0; bottom: 0; height: 84px; background: var(--card); border-top: 1px solid var(--border2); grid-template-columns: repeat(6, minmax(0, 1fr)); align-items: center; padding-bottom: 14px; z-index: 10; }
  .bottom a, .bottom button { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; color: var(--muted); text-decoration: none; background: none; border: none; cursor: pointer; }
  .bottom .on { color: var(--accent); font-weight: 600; }
  .bottom .fab { justify-self: center; width: 56px; height: 56px; border-radius: 28px; background: var(--ink); color: #fff; justify-content: center; margin-top: -24px; }
}

/* Sign in */
.signin { max-width: 360px; margin: 18vh auto 0; padding: 24px; background: var(--card); border-radius: 14px; display: flex; flex-direction: column; gap: 12px; }
.signin b { font-size: 20px; }
.err { color: var(--warn); font-size: 13px; min-height: 16px; }

/* Habit chips */
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 8px; }
.chip { min-height: 36px; padding: 0 12px; border-radius: 18px; border: 1px solid var(--border); background: var(--card); font-size: 13px; cursor: pointer; }
.chip.on { background: var(--chip); border-color: var(--link); color: var(--link); }

.iconbtn { width: 44px; height: 44px; border-radius: 22px; border: 1px solid var(--border); background: var(--card); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.iconbtn:disabled { opacity: .5; }
@media (max-width: 760px) { header.top .iconbtn { margin-left: auto; } header.top .me { margin-left: 8px; } }

.it .tx small a.maillink { color: var(--accent); text-decoration: underline; }
.rownote { font-size: 13px; color: var(--muted); line-height: 1.4; padding: 2px 0 6px 40px; }

/* ---------- Shared parts every page uses (consistency run, 17 Oct 2026) ---------- */
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.good { color: var(--good); } .bad { color: var(--warn); }
/* Headings, one rule for every page (18 Oct): column headings 20px; card titles and group titles (Today, This week) 16px */
.ttl { font-size: 16px; font-weight: 600; }
.col > .h { min-height: 36px; align-items: center; }
.col > .h > b { font-size: 20px; }
.seg a { height: 34px; padding: 0 10px; border-radius: 6px; font-size: 12px; font-weight: 500; display: inline-flex; align-items: center; text-decoration: none; color: var(--ink); }
.seg a.on { background: var(--ink); color: #fff; }
.back { align-self: flex-start; padding-left: 0; }
.cap.inline { flex: none; }
/* Section headings, foldable */
h2.sec { margin: 14px 0 0; font-size: 18px; font-weight: 600; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; width: 100%; }
h2.sec small { font-size: 13px; font-weight: 400; color: var(--muted); }
.sectog { background: none; border: none; padding: 0; font: inherit; color: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.sectog svg { transition: transform .15s; } .sectog[aria-expanded=true] svg { transform: rotate(90deg); }
/* Number tiles */
.srow { display: flex; gap: 8px; align-items: baseline; font-size: 14px; line-height: 1.4; min-width: 0; }
.meter { display: block; height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.meter > i { display: block; height: 100%; border-radius: 3px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.tile { background: var(--card); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.card .tile { background: var(--bg); }
.tile b { font-family: var(--mono); font-size: 22px; font-weight: 500; font-variant-numeric: tabular-nums; }
.tile b small { font-family: var(--sans); font-size: 13px; color: var(--muted); font-weight: 400; margin-left: 4px; }
.tile > span { font-size: 12px; color: var(--muted); line-height: 1.4; }
.tile.dark { background: var(--night); color: #fff; }
.tile.dark .kicker, .tile.dark > span { color: var(--night-ink); }
/* A note that needs attention */
.note { font-size: 13px; line-height: 1.5; background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 10px; padding: 10px 14px; }
/* Dismiss or remove a thing that isn't an item (items use Drop) */
.x { width: 36px; height: 36px; flex: none; border: none; background: transparent; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; }
.x:hover { color: var(--warn); background: var(--line); }
/* Decision rows: an item with a choice of what happens to it */
.dec { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; padding: 6px 0; border-top: 1px solid var(--line2); }
.dec.applied { opacity: .55; }
.dec .what { flex: 1 1 280px; min-width: 0; display: flex; gap: 2px; align-items: center; }
.dec .what .sig { width: 40px; height: 40px; flex: none; display: flex; align-items: center; justify-content: center; color: var(--ink); }
.dec .what .sig .mk { font-family: var(--mono); font-size: 20px; font-weight: 500; }
.dec .what .tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dec .what .tx > span { font-size: 14px; line-height: 1.35; }
.dec .what .tx small { font-size: 12px; color: var(--muted); }
.dec .choices { display: flex; flex-wrap: wrap; gap: 5px; }
/* Tags: one chip style, coloured by meaning */
.tag.t-blue { background: var(--chip); color: var(--link); }
.tag.t-violet { background: var(--violet-soft); color: var(--violet); }
.tag.t-accent { background: var(--accent-soft); color: var(--accent); }
.tag.t-gold { background: var(--gold-soft); color: var(--gold); }
.tag.t-grey { background: var(--line); color: var(--muted); }
.tag.t-good { background: var(--good-soft); color: var(--good); }
.tag.t-warn { background: var(--warn-soft); color: var(--warn); }
/* Small inputs inside rows */
.inrow input[type=text], .inrow input[type=number], .inrow input[type=time], .inrow input[type=date], .inrow select { height: 36px; border: 1px solid var(--border); border-radius: 8px; padding: 0 8px; font-size: 13px; background: var(--card); min-width: 0; }
.inrow input[type=number] { font-family: var(--mono); text-align: right; }
.opt:disabled { opacity: .55; cursor: default; }

/* ---------- Wizards: step indicator, footer, and editable lists (18 Oct 2026) ---------- */
.wiz { flex: 1 1 100%; max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.wiz .q { font-size: 19px; font-weight: 600; line-height: 1.35; margin: 0; }
.wiz .field textarea { min-height: 96px; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; }
.steps li { display: flex; }
.steps li > span, .steps li > button { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 4px; border-radius: 18px; background: var(--card); border: 1px solid var(--border2); font: 13px var(--sans); color: var(--muted); }
.steps li > button { cursor: pointer; color: var(--ink); }
.steps .num { font-style: normal; font-family: var(--mono); font-size: 12px; width: 26px; height: 26px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; background: var(--line); color: var(--muted); }
.steps li.on > span { background: var(--ink); color: #fff; border-color: var(--ink); }
.steps li.on .num { background: var(--accent); color: #fff; }
.steps li.done .num { background: var(--good-soft); color: var(--good); }
@media (max-width: 760px) { .steps li:not(.on) .lb { display: none; } .steps li:not(.on) > span, .steps li:not(.on) > button { padding-right: 4px; } }
.wizfoot { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding-top: 4px; }
.wizfoot .stat { flex: 1 1 200px; text-align: center; }
.wizfoot .btn.primary { min-width: 140px; }
/* An editable list: one line per thing, with its inputs and an .x to remove it */
.lines { display: flex; flex-direction: column; }
.line { display: flex; gap: 8px; align-items: center; padding: 6px 0; border-top: 1px solid var(--line2); flex-wrap: wrap; }
.line:first-child { border-top: none; }
.line .grow { min-width: 0; }
.line input[type=text], .line input[type=number], .line input[type=date], .line select { height: 40px; border: 1px solid var(--border); border-radius: 8px; padding: 0 10px; font-size: 14px; background: var(--card); min-width: 0; }
.line input[type=number] { font-family: var(--mono); width: 72px; text-align: right; }
.line .lab { font-size: 12px; color: var(--muted); }
/* The edit box under a decision row you chose to change */
.decedit { display: flex; gap: 8px; padding: 0 0 8px 42px; flex-wrap: wrap; }
.decedit input, .decedit select { height: 36px; border: 1px solid var(--border); border-radius: 8px; padding: 0 8px; font-size: 13px; background: var(--card); flex: 1 1 180px; min-width: 0; }
.decedit select { flex: 0 1 auto; }
.indent { padding-left: 28px; }
@media (max-width: 760px) { .indent { padding-left: 12px; } .decedit { padding-left: 0; } }
.quick { display: flex; flex-wrap: wrap; gap: 6px; }

/* Set rows: one set of an exercise, weight and reps, with the BuJo bullet to tick it (gym logger, 19 Oct 2026) */
.setrows { display: flex; flex-direction: column; }
.setrow { display: flex; align-items: center; gap: 8px; padding: 4px 0; border-top: 1px solid var(--line2); }
.setrow .sn { font-size: 13px; color: var(--muted); width: 44px; flex: none; }
.setrow input { height: 44px; width: 78px; min-width: 0; border: 1px solid var(--border); border-radius: 8px; padding: 0 8px; font: 500 16px var(--mono); text-align: right; background: var(--card); }
.setrow .u { font-size: 12px; color: var(--muted); }
.setrow .sig { margin-left: auto; width: 44px; height: 44px; flex: none; border: none; background: none; padding: 0; display: flex; align-items: center; justify-content: center; cursor: pointer; border-radius: 8px; color: var(--ink); }
.setrow .sig:hover { background: var(--line); }
.setrow.done input { background: var(--line2); color: var(--muted); }
@media (max-width: 380px) { .setrow input { width: 64px; } .setrow .sn { width: 38px; } }

/* Day plan (KOS.dayPlanHTML) */
.dayplan { position: relative; margin-top: 4px; }
.dp-hour { position: absolute; left: 0; right: 0; border-top: 1px solid var(--border); }
.dp-hour span { position: absolute; left: 0; top: -1px; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.dp-blk { position: absolute; border-radius: 6px; padding: 1px 6px; font-size: 12px; line-height: 1.25; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; border-left: 3px solid var(--accent); background: var(--accent-soft); color: var(--ink); }
.dp-blk b { font-weight: 600; font-variant-numeric: tabular-nums; }
.dp-blk.dp-event { border-left-color: var(--plan); background: var(--plan-soft); }
.dp-blk.dp-exercise { border-left-color: var(--good); background: var(--good-soft); }
.dp-blk.done { opacity: .55; text-decoration: line-through; }
.dp-now { position: absolute; left: 36px; right: 0; border-top: 2px solid var(--warn); }
.dp-now::before { content: ''; position: absolute; left: -4px; top: -5px; width: 8px; height: 8px; border-radius: 4px; background: var(--warn); }
.dp-empty { position: absolute; left: 44px; top: 8px; font-size: 13px; color: var(--muted); }
.dp-key { display: flex; flex-wrap: wrap; gap: 12px; font-size: 11px; color: var(--muted); padding-top: 6px; }
.dp-hint { flex-basis: 100%; }
.dayplan { cursor: copy; }
.dp-blk { cursor: pointer; }
.dp-blk.locked { cursor: default; background-image: repeating-linear-gradient(135deg, transparent 0 6px, var(--border) 6px 7px); }
.dp-blk:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.dp-blk.dragging { opacity: .85; box-shadow: 0 4px 12px rgba(0,0,0,.18); z-index: 2; }
.dp-grip { position: absolute; left: 0; right: 0; bottom: 0; height: 6px; cursor: ns-resize; }
@media (pointer: coarse) { .dp-grip { display: none; } }
.grp-t .sectog { font-size: 16px; font-weight: 600; }
.dp-k::before { content: ''; display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 4px; vertical-align: -1px; background: var(--accent-soft); border-left: 3px solid var(--accent); }
.dp-k.dp-event::before { background: var(--plan-soft); border-left-color: var(--plan); }
.dp-k.dp-exercise::before { background: var(--good-soft); border-left-color: var(--good); }
