/* ============================================================
   Hub design system – Aufgaben (tasks module)
   task rows/cards · map background · checkbox · board · calendar ·
   timeline · side panel · editor · quick/palette · focus · review/done
   ============================================================ */

/* ---------- Due tags / priority ---------- */
.tag.due { gap: 4px; } .tag.due .i { width: 12px; height: 12px; stroke-width: 2.2; }
.tag.due.today { background: var(--accent-soft); color: var(--accent-ink); }
.tag.due.over { background: var(--danger-soft); color: var(--danger); }
.tag.due.soon { background: var(--warn-soft); color: var(--warn); }
.tag.sub { gap: 7px; }
.tag.sub .segs { display: inline-flex; gap: 2px; }
.tag.sub .segs i { display: block; width: 7px; height: 4px; border-radius: 2px; background: var(--border-strong); }
.tag.sub .segs i.on { background: var(--accent); }
.tag.sub.all { color: var(--ok); } .tag.sub.all .segs i.on { background: var(--ok); }
.tag.loc { cursor: pointer; max-width: 180px; } .tag.loc:hover { background: var(--surface-3); }
.tag.loc .i { width: 12px; height: 12px; } .tag.loc span { overflow: hidden; text-overflow: ellipsis; }
.prio { display: inline-flex; align-items: center; color: var(--text-3); }
.prio.p2 { color: var(--info); } .prio.p3 { color: var(--warn); } .prio.p4 { color: var(--danger); }
.prio .i { width: 14px; height: 14px; stroke-width: 2.2; } .prio.p4 .i, .prio.p3 .i { fill: currentColor; }

/* ---------- Task rows & cards ---------- */
.trow, .card {
  position: relative; overflow: hidden; border-radius: var(--r); background: var(--surface); color: var(--text);
  box-shadow: inset 0 0 0 1px var(--border), var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), opacity 300ms; animation: rise 220ms var(--ease) both;
}
@media (hover: hover) { .trow:hover, .card:hover { box-shadow: inset 0 0 0 1px var(--border-strong), var(--shadow-md); transform: translateY(-1px); } }
.trow { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px 12px 12px; cursor: pointer; }
.trow .body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; position: relative; }
.trow .title { font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; letter-spacing: -0.005em; }
.trow .meta, .card .meta { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; color: var(--text-3); font-size: 12px; position: relative; }
.trow .meta:empty, .card .meta:empty { display: none; }
.trow .meta .time { display: inline-flex; align-items: center; gap: 3px; font-weight: 600; }
.trow .meta .time .i { width: 12px; height: 12px; }
.trow.done { opacity: .55; } .trow.done .title { text-decoration: line-through; color: var(--text-2); }
.tile { width: 36px; height: 36px; border-radius: 11px; flex: none; display: grid; place-items: center; font-weight: 800; font-size: 14px; letter-spacing: -0.02em; background: var(--tile-bg); color: var(--tile-fg); position: relative; }
.tile .i { width: 18px; height: 18px; stroke-width: 2.2; }
.card { padding: 12px 13px 11px; cursor: grab; user-select: none; -webkit-user-select: none; touch-action: pan-y; display: flex; gap: 11px; align-items: flex-start; }
.card .cbody { flex: 1; min-width: 0; position: relative; }
.card .title { font-weight: 600; font-size: 14px; line-height: 1.38; overflow-wrap: anywhere; }
.card .range { font-size: 12.5px; color: var(--text-2); font-weight: 600; margin-top: 2px; }
.card .meta { margin-top: 7px; }
.card.dragging { opacity: .25; }
.card.done .title { text-decoration: line-through; } .card.done { opacity: .6; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .trow.tinted, :root:not([data-theme="light"]) .card.tinted { background: color-mix(in srgb, var(--p) 26%, rgba(30, 30, 36, 0.92)); }
  :root:not([data-theme="light"]) .card.tinted .tag, :root:not([data-theme="light"]) .trow.tinted .tag { background: rgba(0, 0, 0, .3); color: color-mix(in srgb, var(--text) 85%, transparent); }
  :root:not([data-theme="light"]) .card.tinted .tag.proj, :root:not([data-theme="light"]) .trow.tinted .tag.proj { color: color-mix(in srgb, var(--p) 55%, #fff); }
  :root:not([data-theme="light"]) .card.tinted .range, :root:not([data-theme="light"]) .trow.tinted .meta { color: color-mix(in srgb, var(--text) 78%, transparent); }
}
/* map background */
.mapbg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.mapbg .tiles { position: absolute; left: 50%; top: 50%; width: 768px; height: 512px; transform: translate(-50%, -50%); display: grid; grid-template-columns: repeat(3, 256px); opacity: .55; filter: saturate(.55) contrast(.9); }
.mapbg img { width: 256px; height: 256px; display: block; }
.mapbg .fade { position: absolute; inset: 0; background: linear-gradient(90deg, var(--surface) 0%, color-mix(in srgb, var(--surface) 85%, transparent) 45%, color-mix(in srgb, var(--surface) 45%, transparent) 100%); }
.mapbg .pin { position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; border-radius: 50%; background: var(--p, var(--accent)); box-shadow: 0 0 0 3px #fff, 0 0 0 7px color-mix(in srgb, var(--p, var(--accent)) 35%, transparent); transform: translate(-50%, -50%); }
.mapbg .attr { position: absolute; right: 6px; bottom: 3px; font-size: 8.5px; color: var(--text-3); opacity: .85; letter-spacing: 0; }
.has-map > :not(.mapbg) { position: relative; z-index: 1; }
.card.has-map, .trow.has-map { min-height: 104px; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .mapbg .tiles { opacity: .5; filter: invert(1) hue-rotate(180deg) saturate(.4) brightness(.75) contrast(1.05); }
  :root:not([data-theme="light"]) .mapbg .fade { background: linear-gradient(90deg, color-mix(in srgb, var(--p, #1b1b20) 26%, rgba(30,30,36,.96)) 0%, color-mix(in srgb, var(--p, #1b1b20) 22%, rgba(30,30,36,.78)) 40%, color-mix(in srgb, var(--p, #1b1b20) 18%, rgba(30,30,36,.3)) 100%); }
  :root:not([data-theme="light"]) .mapbg .pin { box-shadow: 0 0 0 3px #16151a, 0 0 0 7px color-mix(in srgb, var(--p, var(--accent)) 40%, transparent); }
}

.check { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--border-strong); flex: none; margin-top: 6px; display: grid; place-items: center; color: transparent; transition: all var(--dur) var(--ease); background: transparent; }
.check:hover { border-color: var(--accent); background: var(--accent-soft); }
.check.on { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.check .i { width: 13px; height: 13px; stroke-width: 3; }
.check.p4 { border-color: var(--danger); } .check.p3 { border-color: var(--warn); } .check.p2 { border-color: var(--info); }
.check.pop { animation: popcheck 380ms var(--ease); }
@keyframes popcheck { 0% { transform: scale(1) } 40% { transform: scale(1.35) } 100% { transform: scale(1) } }
.confetti { position: fixed; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); pointer-events: none; z-index: 500; }
.confetti:nth-child(odd) { background: var(--ok); }

/* ---------- Board ---------- */
.board { display: flex; gap: 14px; overflow-x: auto; overflow-y: hidden; padding: 4px 0 16px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; height: calc(100dvh - var(--board-top, 150px) - var(--nav-h) - env(safe-area-inset-bottom) - 10px); min-height: 320px; }
.col { flex: 0 0 min(84vw, 310px); display: flex; flex-direction: column; scroll-snap-align: start; min-width: 0; max-height: 100%; border-radius: var(--r-lg); }
@media (min-width: 900px) { .col { flex: 1 1 0; min-width: 270px; max-width: 420px; } }
.col-h { display: flex; align-items: center; gap: 8px; padding: 6px 8px 10px 6px; font-weight: 800; font-size: 15px; letter-spacing: -0.01em; }
.col-h .n { color: var(--text-3); font-weight: 600; font-size: 13px; }
.col-h .add { margin-left: auto; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: var(--text-3); }
.col-h .add:hover { background: var(--surface-3); color: var(--text); }
.col-h .add .i { width: 16px; height: 16px; stroke-width: 2.2; }
.col-body { flex: 1; overflow-y: auto; padding: 2px 2px 12px; display: flex; flex-direction: column; gap: 10px; min-height: 60px; scrollbar-width: thin; border-radius: var(--r); transition: background var(--dur); }
.col-body.over { background: var(--surface-2); }
.col.is-done .card { opacity: .62; } .col.is-done .card .title { text-decoration: line-through; }
.placeholder { border-radius: var(--r); border: 1.5px dashed var(--border-strong); flex: none; display: grid; place-items: center; color: var(--text-3); font-size: 12.5px; font-weight: 600; }
.placeholder::after { content: "Karte hier ablegen"; }
.drag-ghost { position: fixed; z-index: 1000; pointer-events: none; transform: rotate(-3deg) scale(1.04); box-shadow: var(--shadow-lg); cursor: grabbing; opacity: .97; width: var(--w); }
body.dragging { user-select: none; -webkit-user-select: none; cursor: grabbing; } body.dragging * { cursor: grabbing !important; }
.inline-add { display: flex; gap: 6px; padding: 0 2px 8px; } .inline-add .input { height: 38px; font-size: 14px; }

/* ---------- Calendar ---------- */
.cal-nav { display: flex; align-items: center; gap: 6px; margin: 2px 0 14px; flex-wrap: wrap; }
.cal-nav .title { font-weight: 800; font-size: 15px; margin: 0 6px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -0.01em; }
.cal-nav .seg { margin-left: auto; }
.week { display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 900px) { .week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; align-items: start; } }
.day { border-radius: var(--r-lg); padding: 8px; min-height: 92px; display: flex; flex-direction: column; gap: 6px; transition: background var(--dur); background: var(--surface-2); }
.day.today { box-shadow: inset 0 0 0 1.5px var(--accent); }
.day.past { opacity: .75; } .day.over { background: var(--accent-soft); }
.day-h { display: flex; align-items: baseline; gap: 7px; padding: 4px 6px 6px; }
.day-h .wd { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--text-2); }
.day-h .d { font-size: 19px; font-weight: 800; letter-spacing: -0.03em; }
.day.today .d { color: var(--accent-ink); }
.day-h .n { margin-left: auto; font-size: 12px; color: var(--text-3); }
.day .card { padding: 9px 10px 8px; gap: 8px; }
@media (min-width: 900px) and (max-width: 1500px) { .day .card .tile { display: none; } }
.day .add { color: var(--text-3); font-size: 12.5px; font-weight: 600; padding: 6px 8px; border-radius: 8px; text-align: left; opacity: 0; transition: opacity var(--dur); }
.day:hover .add, .day:focus-within .add { opacity: 1; } @media (hover: none) { .day .add { opacity: 1; } }
.month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.month .wdh { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); font-weight: 800; padding: 4px 6px; }
.mday { background: var(--surface); border-radius: 12px; min-height: 76px; padding: 6px 7px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; box-shadow: inset 0 0 0 1px var(--border); transition: box-shadow var(--dur), background var(--dur); }
.mday:hover { box-shadow: inset 0 0 0 1px var(--border-strong); }
.mday.out { opacity: .4; } .mday.today { box-shadow: inset 0 0 0 1.5px var(--accent); } .mday.over { background: var(--accent-soft); }
.mday .d { font-size: 12px; font-weight: 800; color: var(--text-2); } .mday.today .d { color: var(--accent-ink); }
.mday .mt { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 1px 5px; border-radius: 5px; background: color-mix(in srgb, var(--p, var(--text-3)) 16%, transparent); color: var(--text); cursor: grab; font-weight: 600; }
.mday .mt.done { opacity: .5; text-decoration: line-through; }
.mday .more { font-size: 10.5px; color: var(--text-3); }
@media (min-width: 900px) { .mday { min-height: 110px; } .mday .mt { font-size: 12px; } }

/* Day timeline */
.timeline { position: relative; display: grid; grid-template-columns: 52px 1fr; margin-top: 6px; }
.timeline .axis { position: relative; }
.timeline .hour { height: var(--hh, 64px); font-size: 11.5px; font-weight: 700; color: var(--text-3); position: relative; }
.timeline .hour span { position: absolute; top: -8px; right: 10px; }
.timeline .lane { position: relative; border-left: 1.5px dotted var(--border-strong); }
.timeline .hline { position: absolute; left: 0; right: 0; border-top: 1px dashed var(--border); }
.timeline .ev { position: absolute; left: 10px; right: 4px; min-height: 40px; padding: 7px 12px 7px 9px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border), var(--shadow-sm); cursor: pointer; overflow: hidden; display: flex; gap: 10px; align-items: center; }
.timeline .ev .tile { width: 30px; height: 30px; border-radius: 9px; font-size: 12px; }
.timeline .ev .t { font-weight: 700; font-size: 13.5px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.timeline .ev .r { font-size: 12px; color: var(--text-2); font-weight: 600; }
.timeline .ev.done { opacity: .5; } .timeline .ev.done .t { text-decoration: line-through; }
.timeline .ev.current { box-shadow: inset 0 0 0 1.5px var(--accent), var(--shadow-md); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .timeline .ev.tinted { background: color-mix(in srgb, var(--p) 28%, rgba(30,30,36,.94)); } :root:not([data-theme="light"]) .timeline .ev.tinted .r { color: color-mix(in srgb, var(--text) 78%, transparent); } }
.timeline .now { position: absolute; left: -52px; right: 0; height: 0; border-top: 2px solid var(--accent); z-index: 3; pointer-events: none; }
.timeline .now::before { content: attr(data-time); position: absolute; left: 4px; top: -9px; font-size: 11px; font-weight: 800; color: var(--accent-ink); font-variant-numeric: tabular-nums; background: var(--bg); padding: 0 3px; border-radius: 4px; }
.timeline .now::after { content: attr(data-left); position: absolute; right: 8px; top: 3px; font-size: 11px; font-weight: 700; color: var(--accent-ink); }
.allday { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.allday .chip { height: 30px; font-size: 12.5px; max-width: 100%; } .allday .chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.allday .chip.done { opacity: .5; text-decoration: line-through; }

/* ---------- Side panel (mini calendar + agenda) ---------- */
.side-panel h3 { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--text-2); margin: 0 0 8px; }
.side-panel .today-big { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; margin: 0; line-height: 1.1; }
.side-panel .today-sub { color: var(--text-3); font-size: 12.5px; font-weight: 600; }
.mini { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.mini .w { font-size: 10px; font-weight: 800; color: var(--text-3); text-transform: uppercase; padding: 4px 0; }
.mini button { height: 32px; border-radius: 10px; font-size: 12.5px; font-weight: 600; color: var(--text-2); position: relative; }
.mini button:hover { background: var(--surface-2); }
.mini button.out { color: var(--text-3); opacity: .45; }
.mini button.today { background: var(--primary); color: var(--primary-text); }
.mini button.has::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); transform: translateX(-50%); }
.mini button.today.has::after { background: var(--primary-text); }
.mini-nav { display: flex; align-items: center; gap: 4px; margin-bottom: 6px; }
.mini-nav .t { flex: 1; font-weight: 800; font-size: 13.5px; }
.agenda { display: flex; flex-direction: column; gap: 4px; }
.agenda .ag { display: flex; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 12px; cursor: pointer; }
.agenda .ag:hover { background: var(--surface-2); }
.agenda .ag .tx { min-width: 0; flex: 1; }
.agenda .ag .t { font-size: 13px; font-weight: 700; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agenda .ag .s { font-size: 11.5px; color: var(--text-3); font-weight: 600; }
.agenda .ag .tile { width: 30px; height: 30px; border-radius: 9px; font-size: 12px; }
.agenda .ag.done { opacity: .5; }
.agenda .nowmark { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 800; color: var(--accent-ink); padding: 2px 8px; }
.agenda .nowmark::after { content: ""; flex: 1; height: 1.5px; background: var(--accent); }

/* ---------- Editor ---------- */
.notes-wrap .tabs { display: flex; gap: 2px; margin-bottom: 6px; }
.notes-wrap .tabs button { font-size: 12.5px; font-weight: 700; color: var(--text-3); padding: 4px 10px; border-radius: 999px; }
.notes-wrap .tabs button.active { background: var(--surface-3); color: var(--text); }
.md { line-height: 1.55; font-size: 14.5px; padding: 10px 12px; background: var(--surface-2); border-radius: 12px; min-height: 120px; overflow-wrap: anywhere; }
.md > :first-child { margin-top: 0; } .md > :last-child { margin-bottom: 0; }
.md h1, .md h2, .md h3 { font-size: 15px; margin: 14px 0 6px; letter-spacing: -0.01em; } .md h1 { font-size: 17px; }
.md p { margin: 0 0 10px; } .md ul, .md ol { margin: 0 0 10px; padding-left: 22px; } .md li { margin: 2px 0; }
.md li.task { list-style: none; margin-left: -20px; display: flex; gap: 7px; align-items: flex-start; }
.md li.task .box { width: 15px; height: 15px; border-radius: 4px; border: 1.5px solid var(--border-strong); display: inline-grid; place-items: center; margin-top: 3px; flex: none; color: transparent; }
.md li.task .box.on { background: var(--accent); border-color: var(--accent); color: var(--accent-text); } .md li.task .box .i { width: 10px; height: 10px; stroke-width: 3.5; }
.md code { font-size: 13px; background: var(--surface-3); } .md pre { background: var(--surface-3); padding: 10px 12px; border-radius: 8px; overflow-x: auto; font-family: var(--mono); font-size: 12.5px; line-height: 1.5; } .md pre code { background: none; padding: 0; }
.md blockquote { margin: 0 0 10px; padding: 2px 12px; border-left: 3px solid var(--border-strong); color: var(--text-2); } .md hr { border: 0; border-top: 1px solid var(--border-strong); margin: 12px 0; } .md a { word-break: break-all; }
.labels-in { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 42px; padding: 4px 6px; border-radius: 14px; background: var(--surface-2); border: 1px solid transparent; }
.labels-in:focus-within { border-color: var(--accent); background: var(--surface-solid); box-shadow: 0 0 0 4px var(--accent-soft); }
.labels-in .tag { height: 26px; padding: 0 4px 0 9px; font-size: 12.5px; }
.labels-in .tag button { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 5px; color: inherit; opacity: .6; } .labels-in .tag button:hover { opacity: 1; background: rgba(0,0,0,.08); }
.labels-in input { flex: 1; min-width: 90px; height: 30px; border: 0; background: none; outline: none; padding: 0 6px; }
.meta-line { color: var(--text-3); font-size: 12px; }
.subtasks { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
.subrow { display: flex; align-items: center; gap: 8px; padding: 2px 0; }
.subrow .check.sm { width: 20px; height: 20px; margin: 0; }
.subrow .subtitle { flex: 1; min-width: 0; height: 32px; border: 0; background: transparent; border-bottom: 1px solid transparent; padding: 0 4px; outline: none; }
.subrow .subtitle:focus { border-bottom-color: var(--accent); }
.subrow.done .subtitle { text-decoration: line-through; color: var(--text-3); }
.subrow .iconbtn { width: 26px; height: 26px; opacity: .5; } .subrow:hover .iconbtn { opacity: 1; }
details.more summary { cursor: pointer; font-size: 13px; color: var(--text-2); font-weight: 700; list-style: none; }
details.more summary::before { content: "▸ "; } details.more[open] summary::before { content: "▾ "; }
.geo-hint { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-3); min-height: 18px; }
.geo-hint.ok { color: var(--ok); } .geo-hint .i { width: 13px; height: 13px; }

/* Quick add / palette / what-now */
.quick .input { height: 52px; font-size: 17px; font-weight: 600; border-radius: 16px; }
.quick .preview { display: flex; flex-wrap: wrap; gap: 6px; min-height: 28px; margin-top: 10px; }
.quick .preview .tag { height: 26px; font-size: 12.5px; padding: 0 9px; }
.quick .help { color: var(--text-3); font-size: 12.5px; margin-top: 12px; line-height: 1.7; } .quick .help b { color: var(--text-2); font-weight: 700; }
.wn-item { display: flex; align-items: stretch; gap: 8px; } .wn-item .trow { flex: 1; } .wn-item > .btn { align-self: center; flex: none; }
.pal .searchbar { margin: 0 0 8px; }
.pal-list { max-height: min(60dvh, 480px); overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.pal-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; cursor: pointer; font-size: 14px; font-weight: 600; }
.pal-item.sel { background: var(--surface-3); }
.pal-item .lbl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pal-item .kbd { margin-left: auto; }

/* ---------- Focus mode ---------- */
.focus { position: fixed; inset: 0; z-index: 400; display: flex; flex-direction: column; padding: calc(16px + env(safe-area-inset-top)) 20px calc(16px + env(safe-area-inset-bottom)); animation: fade 200ms var(--ease); background: color-mix(in srgb, var(--bg) 72%, transparent); -webkit-backdrop-filter: blur(30px) saturate(1.4); backdrop-filter: blur(30px) saturate(1.4); }
.focus.break { background: color-mix(in srgb, var(--ok) 12%, var(--bg)); }
.ftop { display: flex; justify-content: space-between; align-items: center; }
.fmode { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--text-3); }
.fcenter { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 18px; max-width: 720px; margin: 0 auto; width: 100%; }
.ftitle { font-size: clamp(20px, 3.2vw, 30px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.25; }
.fsub-label { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--accent-ink); margin-bottom: 6px; }
.fsub-title { font-size: clamp(17px, 2.4vw, 22px); color: var(--text-2); font-weight: 600; }
.ftime { font-size: clamp(56px, 12vw, 112px); font-weight: 800; letter-spacing: -0.05em; line-height: 1; margin: 10px 0; }
.fbottom { display: flex; flex-direction: column; align-items: center; gap: 4px; } .fstats { font-size: 13px; color: var(--text-2); font-weight: 600; }

/* ---------- Review / done ---------- */
.review-progress { display: flex; align-items: center; gap: 12px; font-size: 12.5px; color: var(--text-3); margin-bottom: 14px; font-weight: 700; }
.review-progress .bar { flex: 1; height: 4px; background: var(--surface-3); border-radius: 2px; overflow: hidden; } .review-progress .fill { display: block; height: 100%; background: var(--accent); }
.review-card { padding: 4px 0 14px 14px; border-left: 3px solid var(--p, var(--border-strong)); margin-bottom: 14px; animation: rise 260ms var(--ease); }
.review-card h3 { margin: 6px 0 8px; font-size: 21px; letter-spacing: -0.03em; line-height: 1.3; font-weight: 800; }
.review-card .meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 10px; }
.review-card .md.small { font-size: 13.5px; min-height: 0; max-height: 160px; overflow: hidden; }
.review-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.done-hero { display: flex; align-items: center; gap: 18px; padding: 10px 4px 20px; }
.done-hero .big { font-size: 60px; font-weight: 800; letter-spacing: -0.05em; color: var(--accent-ink); line-height: 1; font-variant-numeric: tabular-nums; }
.done-hero .lead { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.heat-wrap { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; }
.heat { display: flex; gap: 3px; } .heat-col { display: flex; flex-direction: column; gap: 3px; }
.heat .cell { width: 11px; height: 11px; border-radius: 3px; background: var(--surface-3); display: block; } .heat .cell.empty { background: transparent; }
.heat .cell.l1 { background: color-mix(in srgb, var(--accent) 30%, var(--surface-3)); } .heat .cell.l2 { background: color-mix(in srgb, var(--accent) 55%, var(--surface-3)); } .heat .cell.l3 { background: color-mix(in srgb, var(--accent) 78%, var(--surface-3)); } .heat .cell.l4 { background: var(--accent); }
.heat .cell.today { outline: 1.5px solid var(--text); outline-offset: 1px; }
.heat-days { display: flex; flex-direction: column; gap: 3px; flex: none; } .heat-days span { height: 11px; font-size: 9px; line-height: 11px; color: var(--text-3); width: 16px; }
.heat-months { display: flex; gap: 3px; margin-left: 22px; margin-bottom: 4px; overflow: hidden; } .heat-months .hm { width: 11px; flex: none; font-size: 9px; color: var(--text-3); white-space: nowrap; }

/* forced dark (Styleguide) – mirror of the tinted-card rules in the prefers-color-scheme block above */
:root[data-theme="dark"] .trow.tinted, :root[data-theme="dark"] .card.tinted { background: color-mix(in srgb, var(--p) 26%, rgba(30, 30, 36, 0.92)); }
:root[data-theme="dark"] .card.tinted .tag, :root[data-theme="dark"] .trow.tinted .tag { background: rgba(0, 0, 0, .3); color: color-mix(in srgb, var(--text) 85%, transparent); }
:root[data-theme="dark"] .card.tinted .tag.proj, :root[data-theme="dark"] .trow.tinted .tag.proj { color: color-mix(in srgb, var(--p) 55%, #fff); }
/* forced dark (Styleguide) – mirror of the mapbg and timeline rules in the prefers-color-scheme blocks above */
:root[data-theme="dark"] .mapbg .tiles { opacity: .5; filter: invert(1) hue-rotate(180deg) saturate(.4) brightness(.75) contrast(1.05); }
:root[data-theme="dark"] .mapbg .fade { background: linear-gradient(90deg, color-mix(in srgb, var(--p, #1b1b20) 26%, rgba(30,30,36,.96)) 0%, color-mix(in srgb, var(--p, #1b1b20) 22%, rgba(30,30,36,.78)) 40%, color-mix(in srgb, var(--p, #1b1b20) 18%, rgba(30,30,36,.3)) 100%); }
:root[data-theme="dark"] .mapbg .pin { box-shadow: 0 0 0 3px #16151a, 0 0 0 7px color-mix(in srgb, var(--p, var(--accent)) 40%, transparent); }
:root[data-theme="dark"] .timeline .ev.tinted { background: color-mix(in srgb, var(--p) 28%, rgba(30,30,36,.94)); }
:root[data-theme="dark"] .timeline .ev.tinted .r { color: color-mix(in srgb, var(--text) 78%, transparent); }
