.dashboard-main{--bg:#fff;--panel:#fff;--panel-2:#f5f5f3;--line:#e5e5e3;--text:#181818;--muted:#5b5b5b;--dim:#777;max-width:none;padding:32px clamp(24px,3vw,52px) 60px;background:#fff;color:#181818}
.app:has(.dashboard-main){background:#fff}
.app:has(.dashboard-main) aside{--panel:#fff;--panel-2:#f5f5f3;--line:#e5e5e3;--text:#181818;--muted:#5b5b5b;--accent:#f2f2f0;--on-accent:#181818;background:#fff;color:#181818;border-color:#e5e5e3}
.app:has(.dashboard-main) .mobile-menu-toggle{background:#fff;color:#181818;border-color:#e5e5e3}
.app:has(.dashboard-main) nav.side button.on{background:#f2f2f0;color:#181818}
#page-dashboard{max-width:1500px;margin:0 auto}
/* Baseline: a title lines up with the link or count beside it whatever their heights. */
.home-heading,.home-section-head{display:flex;align-items:baseline;justify-content:space-between;gap:20px}
.home-heading{align-items:center;margin:8px 0 36px}
.home-heading h1{font-size:clamp(24px,2.25vw,32px);line-height:1.12;font-weight:600;letter-spacing:-.045em}
.home-date{color:var(--muted);font-size:14px;margin-top:8px}
.home-date::first-letter,.home-task-month::first-letter{text-transform:uppercase}
/* A grey track with the chosen period raised on it in white. Once dashboard.js has measured the buttons, a thumb behind
   them slides to the chosen one; until then (or without JS) the pressed button paints itself. */
.home-range{position:relative;isolation:isolate;display:inline-flex;flex:0 0 auto;gap:4px;padding:4px;background:#ededeb;border-radius:12px}
.home-range.has-thumb::before{content:"";position:absolute;z-index:-1;top:4px;bottom:4px;left:0;width:var(--thumb-w);transform:translateX(var(--thumb-x));border-radius:8px;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.08),0 1px 6px rgba(0,0,0,.05);transition:transform .26s cubic-bezier(.22,1,.36,1),width .26s cubic-bezier(.22,1,.36,1)}
@media(prefers-reduced-motion:reduce){.home-range.has-thumb::before{transition:none}}
.home-range button{position:relative;padding:8px 12px;border:0;border-radius:8px;background:transparent;color:var(--muted);font-size:12px;font-weight:600;cursor:pointer;white-space:nowrap;transition:background-color .18s ease,color .18s ease,box-shadow .18s ease}
.home-range button::after{content:"";position:absolute;inset:-5px 0}
.home-range button:hover{color:var(--text)}
.home-range button[aria-pressed="true"]{color:#181818}
.home-range:not(.has-thumb) button[aria-pressed="true"]{background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.08),0 1px 6px rgba(0,0,0,.05)}
@media(forced-colors:active){.home-range button[aria-pressed="true"]{outline:2px solid Highlight;outline-offset:-2px}}
.home-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:24px;align-items:stretch}
.home-main-column,.home-side-column{display:grid;gap:24px;min-width:0}
.home-side-column{grid-template-rows:max-content minmax(max-content,1fr)}
.home-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.home-metric{min-width:0;min-height:200px;padding:20px 20px 16px;background:#fff;border:1px solid #e5e5e3;border-radius:16px;color:#181818;display:flex;flex-direction:column;box-shadow:0 3px 14px rgba(0,0,0,.025)}
.home-metric[data-metric="skatijumi"]{--metric-color:#078cf2;--metric-soft:#e9f5ff;--metric-border:#cbe9ff}
.home-metric[data-metric="sekotaji"]{--metric-color:#08b96b;--metric-soft:#e8fbf2;--metric-border:#c8f1dc}
.home-metric[data-metric="sasniegums"]{--metric-color:#9254e8;--metric-soft:#f4edff;--metric-border:#e5d5ff}
.home-metric-top{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.home-metric-icon{display:grid;place-items:center;width:32px;height:32px;border:1px solid var(--metric-border,#e5e5e3);border-radius:9px;background:var(--metric-soft,#f7f7f6);color:var(--metric-color,#434343);font-size:16px;line-height:1}
.home-metric-icon svg{display:block;width:20px;height:20px}
.home-metric-period{font-size:12px;color:#777;white-space:nowrap}
.home-metric-label{color:#616161;font-size:12px;margin-top:16px}
.home-metric-value{font-size:clamp(24px,2.25vw,32px);font-weight:600;line-height:1.1;letter-spacing:-.04em;font-variant-numeric:tabular-nums;margin-top:4px}
.home-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
/* Rolling digits (portal/number-roll.js). A column keeps the text's width and baseline through its own copy of the
   digit, which is shown while the digit rests; a moving digit is a strip of digits scrolling in a window that reaches
   .2em past the column at the top and bottom, fading out over that .2em, and .35em at the sides so the blur (at most
   .12em, see number-roll.js) is not cut off. Strip digits are .4em further apart than text lines, so the neighbours
   of the digit in view sit wholly outside the window. */
.number-roll-col,.number-roll-sep{display:inline-block;white-space:pre}
.number-roll-col{position:relative}
.number-roll-ghost{visibility:hidden}
.number-roll-view{position:absolute;inset:-.2em -.35em;overflow:hidden;pointer-events:none;-webkit-mask-image:linear-gradient(transparent,#000 .2em,#000 calc(100% - .2em),transparent);mask-image:linear-gradient(transparent,#000 .2em,#000 calc(100% - .2em),transparent)}
.number-roll-strip{position:absolute;top:0;left:.35em}
.number-roll-strip>span{display:block;padding:.2em 0}
.home-metric-sparkline{display:block;width:100%;height:32px;margin-top:8px;color:var(--metric-color,#555);overflow:hidden}
.home-metric-sparkline stop{stop-color:currentColor}
.home-metric-sparkline .spark-line{fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.home-metrics.is-range-animating .home-metric-sparkline{animation:home-spark-reveal .52s cubic-bezier(.2,.8,.2,1) both}
.home-metric-sparkline-empty{display:flex;align-items:center;min-height:32px;margin-top:8px;color:#888;font-size:12px}
.home-metric-note{color:#777;font-size:12px;margin-top:auto;padding-top:8px}
.home-chart-panel,.home-upcoming,.home-tasks{border:1px solid var(--line);border-radius:17px;background:var(--panel)}
.home-chart-panel{background:#fff;border-color:#e5e5e3;color:#181818;padding:24px 24px 20px;min-height:392px}
.home-section-head h2,.home-actions h2{font-size:16px;line-height:1.25;font-weight:600;letter-spacing:-.01em}
.home-chart-panel .home-section-head p:last-child{color:#616161;font-size:12px;margin-top:4px}
.home-inline-link{border:0;background:transparent;color:inherit;cursor:pointer;white-space:nowrap;font-size:12px;font-weight:600;padding:8px 0;text-align:right}
.home-inline-link:hover>span:not([aria-hidden]){text-decoration:underline;text-underline-offset:3px}
.home-inline-link>span[aria-hidden="true"],.home-tracking-link>span[aria-hidden="true"]{display:inline-block;transition:transform .18s cubic-bezier(.2,.8,.2,1)}
.home-inline-link:hover>span[aria-hidden="true"],.home-tracking-link:hover>span[aria-hidden="true"]{transform:translate(2px,-2px)}
.home-chart-panel .home-inline-link{color:#4c4c4c}
.home-chart-legend{display:flex;flex-wrap:wrap;gap:8px 20px;margin-top:16px;color:#56616f;font-size:12px;font-weight:600}
.home-chart-legend[hidden]{display:none}
.home-chart-legend-item{display:inline-flex;align-items:center;gap:8px}
.home-chart-legend-item small{font-size:12px;font-weight:400;color:#75808b}
.home-chart-legend-swatch{display:inline-block;width:16px;height:0;border-top:3px solid #078cf2;border-radius:3px}
.home-chart-legend-clicks .home-chart-legend-swatch{border-color:#16b841}
.home-chart{position:relative;margin-top:20px;min-height:252px}
.home-chart-legend:not([hidden]) + .home-chart{margin-top:16px}
.home-chart svg{display:block;width:100%;height:252px;overflow:visible;touch-action:pan-y}
.home-chart svg:focus{outline:none}
.home-chart .grid-line{stroke:#e8ecf1;stroke-width:1;stroke-dasharray:3 5;vector-effect:non-scaling-stroke}
.home-chart .plot-area{fill:url(#home-chart-fill)}
.home-chart .plot-area-clicks{fill:url(#home-chart-clicks-fill)}
.home-chart svg.range-animate :is(.plot-area,.plot-area-clicks){animation:home-area-in .48s ease-out both}
.home-chart svg.range-animate :is(.grid-line,.axis-label){animation:home-area-in .3s ease-out both}
.home-chart #home-chart-fill stop,.home-chart #results-chart-fill stop{stop-color:#078cf2}
.home-chart #home-chart-fill stop:first-child,.home-chart #results-chart-fill stop:first-child{stop-opacity:.28}
.home-chart .plot-line{fill:none;stroke:#078cf2;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.home-chart .plot-line-clicks{fill:none;stroke:#16b841;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.home-chart svg.range-animate :is(.plot-line,.plot-line-clicks){stroke-dasharray:var(--line-length);animation:home-line-draw .6s cubic-bezier(.2,.8,.2,1) both}
.home-chart .plot-dot,.home-chart .plot-active-dot{fill:#078cf2;stroke:#fff;stroke-width:2;vector-effect:non-scaling-stroke}
.home-chart .plot-dot-clicks,.home-chart .plot-active-dot-clicks{fill:#16b841;stroke:#fff;stroke-width:2;vector-effect:non-scaling-stroke}
.home-chart svg.range-animate .plot-dot{animation:home-area-in .2s ease-out .4s both}
.home-chart svg.range-animate .plot-dot-clicks{animation:home-area-in .2s ease-out .4s both}
.home-chart svg.clicks-only :is(.plot-line,.plot-dot,.plot-active-dot){stroke:#16b841}
.home-chart svg.clicks-only :is(.plot-dot,.plot-active-dot){fill:#16b841;stroke:#fff}
.home-chart svg.clicks-only #home-chart-fill stop{stop-color:#16b841}
@keyframes home-line-draw{from{stroke-dashoffset:var(--line-length)}to{stroke-dashoffset:0}}
@keyframes home-area-in{from{opacity:0}to{opacity:1}}
@keyframes home-spark-reveal{from{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0 0 0 0)}}
.home-chart .plot-active-halo{fill:#078cf2;fill-opacity:.18}
.home-chart .plot-active-halo-clicks{fill:#16b841;fill-opacity:.18}
.home-chart svg:is(.clicks-only,.active-clicks) .plot-active-halo{fill:#16b841}
.home-chart svg.active-clicks .plot-active-dot{fill:#16b841}
.home-chart .plot-guide{stroke:#49a9f5;stroke-width:1;stroke-dasharray:4 4;vector-effect:non-scaling-stroke}
.home-chart .plot-switch{stroke:#78818d;stroke-width:1;stroke-dasharray:3 4;stroke-opacity:.6;vector-effect:non-scaling-stroke}
.home-chart .plot-hit-area{fill:transparent;pointer-events:all}
.home-chart svg [hidden]{display:none}
.home-chart .axis-label{fill:#78818d;font-family:var(--font-body);font-size:12px;font-variant-numeric:tabular-nums}
.home-chart .date-label{font-size:12px}
.home-chart .click-axis-label{fill:#78818d}
.home-chart-tooltip{position:absolute;z-index:2;min-width:112px;padding:8px 12px;border:1px solid #dce4ef;border-radius:9px;background:#fff;box-shadow:0 8px 24px rgba(30,50,80,.13);pointer-events:none;white-space:nowrap}
.home-chart-tooltip[hidden]{display:none}
.home-chart-tooltip-date{display:block;color:#717b89;font-size:12px;line-height:1.3}
.home-chart-tooltip-value{display:block;margin-top:4px;color:#263e5e;font-size:16px;line-height:1.2;font-variant-numeric:tabular-nums}
.home-chart-tooltip-clicks{display:block;margin-top:4px;color:#208643;font-size:12px;font-weight:600;font-variant-numeric:tabular-nums}
/* With both lines drawn: the line's figure on the left in its blue, unique clicks on the right in their green. */
.home-chart-tooltip-row{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin-top:4px}
.home-chart-tooltip-row .home-chart-tooltip-value{margin-top:0}
.home-chart-tooltip.has-clicks .home-chart-tooltip-value{color:#1a6fc4}
.home-chart-tooltip-row .home-chart-tooltip-clicks{margin-top:0;font-size:16px;line-height:1.2;font-weight:700}
.home-chart-empty{display:grid;place-items:center;align-content:center;text-align:center;min-height:212px;padding:24px;border:1px dashed #d9d9d6;border-radius:12px;color:#777;font-size:14px}
.home-chart-empty strong{display:block;color:#181818;font-size:16px;margin-bottom:4px}
.home-upcoming{padding:24px 24px 8px}
.home-upcoming .home-section-head{margin-bottom:20px}
.home-upcoming .home-inline-link{color:var(--muted)}
.home-table{width:100%;border-collapse:collapse;table-layout:fixed}
.home-table th{padding:12px 8px;color:var(--dim);font-size:12px;text-transform:uppercase;letter-spacing:.07em;font-weight:600;text-align:left;border-bottom:1px solid var(--line)}
.home-table th:first-child,.home-table td:first-child{padding-left:0;width:116px}
.home-table th:nth-child(2){width:auto}
.home-table th:nth-child(3){width:120px}
.home-table th:last-child,.home-table td:last-child{text-align:right;width:80px;padding-right:0}
.home-table td{height:68px;padding:12px 8px;border-bottom:1px solid var(--line);font-size:12px;color:var(--muted)}
.home-table tr:last-child td{border-bottom:0}
.home-table time{display:block;color:var(--text);font-size:12px;font-weight:600;font-variant-numeric:tabular-nums}
.home-table .home-time{display:block;color:var(--dim);font-size:12px}
.home-post-button{display:flex;align-items:center;gap:12px;max-width:100%;border:0;background:transparent;color:var(--text);font-size:14px;font-weight:600;text-align:left;cursor:pointer}
.home-post-button:hover span:last-child{text-decoration:underline;text-underline-offset:3px}
.home-post-button span:last-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.home-post-thumb{width:36px;height:44px;flex:0 0 36px;object-fit:cover;border:1px solid var(--line);border-radius:7px;background:var(--panel-2);filter:none}
.home-post-fallback{display:grid;place-items:center;color:var(--muted)}
.home-status{display:inline-flex;align-items:center;gap:8px;padding:4px 8px;border-radius:999px;border:1px solid var(--status-border,#e4e4e2);background:var(--status-bg,#f6f6f5);color:var(--status-ink,#555);font-size:12px;font-weight:600;white-space:nowrap}
.home-status::before{content:"";width:4px;height:4px;border-radius:50%;background:currentColor}
.home-status[data-status="blue"]{--status-bg:#e9f5ff;--status-border:#cbe9ff;--status-ink:#0879d4}
.home-status[data-status="amber"]{--status-bg:#fff6df;--status-border:#ffe2a3;--status-ink:#a85f00}
.home-status[data-status="purple"]{--status-bg:#f4edff;--status-border:#e5d5ff;--status-ink:#7a3ed6}
.home-status[data-status="red"]{--status-bg:#fff0ed;--status-border:#ffcfc7;--status-ink:#c73f31}
.home-empty{padding:24px 8px 28px;color:var(--muted);font-size:14px}
.home-empty strong{display:block;color:var(--text);font-size:16px;margin-bottom:4px}
.home-empty button{display:inline-block;margin-top:12px;border:1px solid var(--line);background:var(--panel-2);color:var(--text);border-radius:8px;padding:8px 12px;cursor:pointer;font-size:12px;font-weight:600}
:is(.home-chart-empty,.home-task-empty,.home-tracking-empty) button{display:block;margin:12px auto 0;border:1px solid var(--line);background:var(--panel-2);color:var(--text);border-radius:8px;padding:8px 12px;cursor:pointer;font-size:12px;font-weight:600}
.home-tracking-empty button{margin-left:0}
.home-chart-empty span{display:block}
.home-tasks{display:flex;flex-direction:column;min-height:392px;padding:24px 20px 12px;color-scheme:light}
.home-task-count{display:grid;place-items:center;min-width:48px;height:28px;padding:0 8px;border:1px solid var(--line);border-radius:999px;background:#f8f8f7;color:var(--muted);font-size:12px;font-weight:600;font-variant-numeric:tabular-nums}
.home-task-progress-copy{display:flex;justify-content:space-between;gap:8px;margin-top:24px;color:var(--muted);font-size:12px}
.home-task-progress-copy strong{color:var(--text);font-size:12px;font-variant-numeric:tabular-nums}
.home-task-track{height:8px;margin-top:8px;overflow:hidden;border-radius:999px;background:#e9e9e7}
.home-task-track span{display:block;width:0;height:100%;border-radius:inherit;background:#246df0;transition:width .55s cubic-bezier(.22,1,.36,1),background-color .28s ease}
.home-task-track.is-complete span{background:#20a464;transition-delay:0s,.38s}
@media(prefers-reduced-motion:reduce){.home-task-track span,.home-task-track.is-complete span{transition:none}}
/* The 10 px side padding (cancelled by the margin) keeps the delete button's hit area inside the scroll box, which would clip it. */
.home-task-list{min-height:172px;max-height:360px;margin:16px -10px 0;padding:0 10px;overflow-y:auto;scrollbar-width:thin}
.home-task-item{display:flex;align-items:flex-start;gap:12px;min-height:64px;padding:12px 0;border-top:1px solid var(--line)}
/* The box is drawn by CSS so ticking it can animate; the input is still a real checkbox for the keyboard and screen readers.
   Fill and tick are transitions (a rebuilt list shows them settled); the pop and halo are keyframes that only run
   while tasks.js has put .is-ticked on the box, so they play for a press and never on a re-render. */
.home-task-check{position:relative;isolation:isolate;display:grid;flex:0 0 20px;width:20px;height:20px;margin-top:4px}
.home-task-check input{grid-area:1/1;appearance:none;width:20px;height:20px;margin:0;border:1.5px solid #c4c4c0;border-radius:6px;background:var(--panel);cursor:pointer;transition:background-color .16s ease,border-color .16s ease,transform .16s cubic-bezier(.22,1,.36,1)}
.home-task-check input:active,.home-task-check input:active+svg{transform:scale(.86)}
.home-task-check input:checked{border-color:#246df0;background:#246df0}
@media(hover:hover){
  .home-task-check input:hover,.home-task-item:has(.home-task-body label:hover) .home-task-check input{border-color:#93938f}
  .home-task-check input:checked:hover,.home-task-item:has(.home-task-body label:hover) .home-task-check input:checked{border-color:#1d5fd6;background:#1d5fd6}
}
.home-task-check svg{grid-area:1/1;width:20px;height:20px;color:#fff;pointer-events:none;transition:transform .16s cubic-bezier(.22,1,.36,1)}
/* pathLength="1": a dash of 1 is the whole tick. The gap is longer and the offset a hair past it, so no round cap dot is left behind. */
.home-task-check path{fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:1 2;stroke-dashoffset:1.02;transition:stroke-dashoffset .12s ease-in}
.home-task-check input:checked+svg path{stroke-dashoffset:0;transition:stroke-dashoffset .28s cubic-bezier(.65,0,.35,1) .07s}
/* The halo keeps the box's shape: a circle growing past a square pokes out of its sides as bumps first. */
.home-task-check::before{content:"";position:absolute;z-index:-1;inset:0;border-radius:7px;background:rgba(36,109,240,.22);opacity:0;pointer-events:none}
/* The tick pops with the box. It has to: Chrome doesn't repaint the drawing tick over a box whose transform is animating. */
.home-task-check.is-ticked input:checked,.home-task-check.is-ticked input:checked+svg{animation:home-check-pop .44s cubic-bezier(.33,1,.68,1)}
.home-task-check.is-ticked::before{animation:home-check-ripple .5s cubic-bezier(.22,1,.36,1) .03s}
@keyframes home-check-pop{0%{transform:scale(.86)}40%{transform:scale(1.14)}72%{transform:scale(.97)}100%{transform:scale(1)}}
@keyframes home-check-ripple{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1.75)}}
.home-task-body{flex:1;min-width:0}
.home-task-body label{display:block;overflow-wrap:anywhere;color:var(--text);font-size:12px;font-weight:600;line-height:1.4;cursor:pointer;transition:color .2s ease}
.home-task-body time{display:block;color:var(--dim);font-size:12px}
/* Under the title: the description (three lines; a click shows the rest), then the date and the person on one line. */
.home-task-desc{display:-webkit-box;margin-top:2px;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:3;color:var(--muted);font-size:12px;line-height:1.45;white-space:pre-line;overflow-wrap:anywhere;cursor:default}
.home-task-desc[data-open]{display:block}
.home-task-item[data-done="true"] .home-task-desc{color:var(--dim)}
.home-task-meta{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px;margin-top:4px}
.home-task-assignee{display:inline-flex;align-items:center;gap:6px;min-width:0;max-width:100%;color:var(--muted);font-size:12px;font-weight:500}
.home-task-assignee > span[aria-hidden]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.home-task-avatar{flex:none;display:grid;place-items:center;width:18px;height:18px;overflow:hidden;border-radius:50%;background:hsl(var(--hue,220) 70% 92%);color:hsl(var(--hue,220) 45% 30%);font-size:9px;font-weight:600;line-height:1;letter-spacing:.02em}
.home-task-avatar img{display:block;width:100%;height:100%;object-fit:cover}
.home-task-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
/* The strike is a background so it can be drawn left to right; on an inline span it runs on across wrapped lines. */
.home-task-title{background:linear-gradient(currentColor,currentColor) 0 .64em/0 1.5px no-repeat;transition:background-size .2s cubic-bezier(.65,0,.35,1)}
.home-task-item[data-done="true"] .home-task-body label{color:var(--dim);transition:color .3s ease .12s}
.home-task-item[data-done="true"] .home-task-title{background-size:100% 1.5px;transition:background-size .36s cubic-bezier(.65,0,.35,1) .1s}
@media(prefers-reduced-motion:reduce){
  .home-task-check input:active,.home-task-check input:active+svg{transform:none}
  .home-task-check path,.home-task-check input:checked+svg path,.home-task-title,.home-task-item[data-done="true"] .home-task-title{transition:none}
  .home-task-check.is-ticked input:checked,.home-task-check.is-ticked input:checked+svg,.home-task-check.is-ticked::before{animation:none}
}
/* !important: the dark theme's border and the hover colours would otherwise win over the system colours. */
@media(forced-colors:active){
  .home-task-check input{forced-color-adjust:none;border-color:ButtonText!important;background:Canvas!important}
  .home-task-check input:checked{border-color:Highlight!important;background:Highlight!important}
  .home-task-check svg{forced-color-adjust:none;color:HighlightText}
  .home-task-check::before{display:none}
}
.home-task-delete{position:relative;flex:0 0 24px;width:24px;height:24px;border:0;border-radius:6px;background:transparent;color:var(--dim);font-size:16px;display:grid;place-items:center;padding:0;cursor:pointer}
.home-task-delete::after{content:"";position:absolute;inset:-10px}
.home-task-delete:hover{background:#f2f2f0;color:var(--text)}
.home-task-empty{padding:28px 8px;text-align:center;color:var(--muted);font-size:12px;line-height:1.5}
.home-task-error{margin:8px 0;font-size:12px}
.home-task-add{position:relative;margin-top:auto}
/* Floats above "Add task" instead of pushing the card, and every card under it, down. Grows out of the + icon. */
.home-task-form{position:absolute;z-index:5;left:-8px;right:-8px;bottom:calc(100% + 8px);padding:12px;border-radius:18px;background:#fff;box-shadow:0 0 0 1px rgba(0,0,0,.07),0 2px 6px rgba(0,0,0,.05),0 16px 36px -6px rgba(0,0,0,.16);transform-origin:22px 100%;transition:opacity .18s cubic-bezier(.2,.8,.2,1),transform .18s cubic-bezier(.2,.8,.2,1),display .18s allow-discrete}
.home-task-form[hidden]{display:none;opacity:0;transform:translateY(6px) scale(.96);transition-duration:.12s}
@starting-style{.home-task-form:not([hidden]){opacity:0;transform:translateY(6px) scale(.96)}}
@media(prefers-reduced-motion:reduce){.home-task-form{transition-property:opacity,display}}
.home-task-form label{display:block;margin:0 0 4px;color:var(--muted);font-size:12px;font-weight:600}
.home-task-form input{width:100%;min-height:36px;margin-bottom:12px;padding:8px 8px;border:1px solid #d7d7d4;border-radius:6px;background:#fff;color:#181818;font-size:12px}
.home-task-form textarea{display:block;width:100%;min-height:52px;max-height:140px;margin-bottom:12px;padding:8px;border:1px solid #d7d7d4;border-radius:6px;background:#fff;color:#181818;font-size:12px;line-height:1.45;resize:vertical;field-sizing:content}
/* Date and person side by side while both fit, one under the other when the card is narrow. */
.home-task-form-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(128px,1fr));gap:0 8px}
.home-task-form-row > div{min-width:0}
.home-task-form .v-control{width:100%;height:36px;min-height:36px;margin-bottom:12px;padding:0 8px;border-color:#d7d7d4;border-radius:6px;background:#fff;color:#181818;font-size:12px}
.home-task-form .home-task-error{margin:0 0 12px}
.home-task-form-actions{display:flex;justify-content:flex-end;gap:8px}
.home-task-form-actions button{min-height:32px;padding:4px 12px;border:1px solid var(--line);border-radius:6px;background:#fff;color:var(--text);font-size:12px;font-weight:600;cursor:pointer}
.home-task-form-actions button[type="submit"]{background:#ededeb}
.home-add-task{display:flex;align-items:center;gap:12px;width:100%;min-height:56px;padding:12px 0;border:0;border-top:1px solid var(--line);background:transparent;color:var(--text);text-align:left;font-size:12px;font-weight:600;cursor:pointer}
.home-add-task:is(:hover,[aria-expanded="true"]){color:#246df0}
.home-add-task[aria-expanded="true"] span[aria-hidden="true"]{background:#dceaff}
.home-add-task span[aria-hidden="true"]{display:grid;place-items:center;flex:none;width:28px;height:28px;border:1px solid #cfe0ff;border-radius:50%;background:#eaf2ff;color:#246df0;transition:transform .18s cubic-bezier(.2,.8,.2,1),background-color .18s ease}
.home-add-task-icon::before{content:"";width:16px;height:16px;background:currentColor;-webkit-mask:url(/icons/ui/plus.svg) center/contain no-repeat;mask:url(/icons/ui/plus.svg) center/contain no-repeat}
.home-add-task:hover span[aria-hidden="true"]{transform:scale(1.08);background:#dceaff}
.home-actions{border:1px solid #e5e5e3;border-radius:17px;background:#fff;color:#181818;padding:20px 20px 16px}
.home-actions h2{margin-bottom:16px}
.home-tracking-item{padding:12px 0;border-top:1px solid #e5e5e3}
.home-tracking-name{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:600}
.home-tracking-values{display:flex;gap:24px;margin-top:8px}
.home-tracking-values>span{display:flex;align-items:baseline;gap:4px;min-width:0}
.home-tracking-values strong{font-size:20px;line-height:1.2;font-variant-numeric:tabular-nums}
.home-tracking-values small{color:#777;font-size:12px}
.home-tracking-empty{padding:16px 0;border-top:1px solid #e5e5e3;color:#777;font-size:12px;line-height:1.5}
.home-tracking-note{margin:8px 0 12px;color:#777;font-size:12px;line-height:1.4}
.home-tracking-link{display:flex;justify-content:space-between;align-items:center;gap:8px;width:100%;padding:12px 0 0;border:0;border-top:1px solid #e5e5e3;background:transparent;color:#181818;text-align:left;cursor:pointer;font-size:12px;font-weight:600}
.home-tracking-link:hover{text-decoration:underline;text-underline-offset:3px}
@media(max-width:1200px){.home-layout{grid-template-columns:minmax(0,1fr) 280px;gap:16px}.home-main-column,.home-side-column{gap:16px}.home-metrics{gap:12px}.home-metric{padding:16px 16px}}
@media(max-width:1080px){.home-layout{grid-template-columns:minmax(0,1fr);align-items:start}.home-side-column{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:auto;align-items:start}}
@media(max-width:900px){.dashboard-main{padding:20px 20px 40px}}
@media(max-width:680px){.home-heading{align-items:flex-start;flex-direction:column;gap:16px}.home-range{width:100%;display:grid;grid-template-columns:repeat(3,1fr)}.home-range button{padding:8px 8px}.home-metrics{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.home-metric{min-height:172px;padding:16px 12px;border-radius:12px}.home-metric-icon{width:28px;height:28px}.home-metric-icon svg{width:16px;height:16px}.home-metric-period{display:none}.home-metric-label{font-size:12px;margin-top:16px}.home-metric-value{font-size:clamp(20px,5vw,24px)}.home-metric-sparkline{height:28px;margin-top:8px}.home-metric-sparkline-empty{min-height:28px;margin-top:8px;font-size:12px}.home-metric-note{font-size:12px;line-height:1.3}.home-chart-panel,.home-upcoming{padding:20px 16px}.home-side-column{grid-template-columns:1fr}.home-table th:nth-child(3),.home-table td:nth-child(3){display:none}.home-table th:first-child,.home-table td:first-child{width:96px}.home-table th:last-child,.home-table td:last-child{width:68px}}
@media(max-width:380px){.home-chart-panel .home-section-head{flex-wrap:wrap}.home-metric-note{display:none}.home-metric{min-height:152px}}

/* Keep the dashboard on the same dark surfaces as the rest of the app. */
:root[data-theme="dark"] .dashboard-main{--bg:#181b22;--panel:#222630;--panel-2:#2c313d;--line:#3c4350;--text:#f5f7fa;--muted:#bdc5d1;--dim:#969fae;background:var(--bg);color:var(--text);color-scheme:dark}
:root[data-theme="dark"] .app:has(.dashboard-main){background:#181b22}
:root[data-theme="dark"] .app:has(.dashboard-main) aside{--panel:#222630;--panel-2:#2c313d;--line:#3c4350;--text:#f5f7fa;--muted:#bdc5d1;--accent:#f0f0f0;--on-accent:#181b22;background:var(--panel);color:var(--text);border-color:var(--line)}
:root[data-theme="dark"] .app:has(.dashboard-main) .mobile-menu-toggle{background:#222630;color:#f5f7fa;border-color:#3c4350}
:root[data-theme="dark"] .app:has(.dashboard-main) nav.side button.on{background:#2c313d;color:#f5f7fa}
:root[data-theme="dark"] .home-range{background:var(--panel)}
:root[data-theme="dark"] .home-range button[aria-pressed="true"]{color:#f5f7fa}
:root[data-theme="dark"] .home-range:not(.has-thumb) button[aria-pressed="true"],:root[data-theme="dark"] .home-range.has-thumb::before{background:#3a4250;box-shadow:0 1px 2px rgba(0,0,0,.35),0 1px 6px rgba(0,0,0,.2)}
:root[data-theme="dark"] .home-metric{background:var(--panel);border-color:var(--line);color:var(--text);box-shadow:0 4px 18px #0002}
:root[data-theme="dark"] .home-metric[data-metric="skatijumi"]{--metric-color:#70baff;--metric-soft:#1d3851;--metric-border:#315b7d}
:root[data-theme="dark"] .home-metric[data-metric="sekotaji"]{--metric-color:#65dda5;--metric-soft:#1c4436;--metric-border:#2d6952}
:root[data-theme="dark"] .home-metric[data-metric="sasniegums"]{--metric-color:#c6a2ff;--metric-soft:#3b3154;--metric-border:#5a477e}
:root[data-theme="dark"] :is(.home-metric-period,.home-metric-note,.home-tracking-values small,.home-tracking-empty,.home-tracking-note){color:var(--dim)}
:root[data-theme="dark"] :is(.home-metric-label,.home-chart-panel .home-section-head p:last-child,.home-chart-panel .home-inline-link){color:var(--muted)}
:root[data-theme="dark"] .home-metric-sparkline-empty{color:var(--dim)}
:root[data-theme="dark"] :is(.home-chart-panel,.home-actions){background:var(--panel);border-color:var(--line);color:var(--text)}
:root[data-theme="dark"] .home-chart-legend{color:var(--muted)}
:root[data-theme="dark"] .home-chart-legend-item small{color:var(--dim)}
:root[data-theme="dark"] .home-chart .grid-line{stroke:#404c5b}
:root[data-theme="dark"] .home-chart .axis-label{fill:#a5b2c3}
:root[data-theme="dark"] .home-chart .click-axis-label{fill:#79d79b}
:root[data-theme="dark"] .home-chart :is(.plot-dot,.plot-active-dot,.plot-dot-clicks,.plot-active-dot-clicks){stroke:var(--panel)}
:root[data-theme="dark"] .home-chart-tooltip{background:#2c313d;border-color:#485569;box-shadow:0 8px 24px #0005}
:root[data-theme="dark"] .home-chart-tooltip-date{color:#bdc5d1}
:root[data-theme="dark"] .home-chart-tooltip-value{color:#f5f7fa}
:root[data-theme="dark"] .home-chart-tooltip-clicks{color:#79d79b}
:root[data-theme="dark"] .home-chart-tooltip.has-clicks .home-chart-tooltip-value{color:#8ac8ff}
:root[data-theme="dark"] .home-chart-empty{border-color:var(--line);color:var(--muted)}
:root[data-theme="dark"] .home-chart-empty strong{color:var(--text)}
:root[data-theme="dark"] .home-status{--status-bg:#303742;--status-border:#48515e;--status-ink:#d5dce6}
:root[data-theme="dark"] .home-status[data-status="blue"]{--status-bg:#1d3851;--status-border:#315b7d;--status-ink:#8ac8ff}
:root[data-theme="dark"] .home-status[data-status="amber"]{--status-bg:#493b24;--status-border:#79603a;--status-ink:#f0ca81}
:root[data-theme="dark"] .home-status[data-status="purple"]{--status-bg:#3b3154;--status-border:#5a477e;--status-ink:#d3b7ff}
:root[data-theme="dark"] .home-status[data-status="red"]{--status-bg:#4c3036;--status-border:#79505a;--status-ink:#ffb3bc}
:root[data-theme="dark"] .home-tasks{color-scheme:dark}
:root[data-theme="dark"] .home-task-count{background:var(--panel-2)}
:root[data-theme="dark"] .home-task-track{background:#3c4350}
:root[data-theme="dark"] .home-task-delete:hover{background:var(--panel-2)}
:root[data-theme="dark"] .home-task-check input:not(:checked){border-color:#5b6372}
:root[data-theme="dark"] .home-task-check::before{background:rgba(92,150,255,.3)}
@media(hover:hover){
  :root[data-theme="dark"] .home-task-check input:not(:checked):hover,:root[data-theme="dark"] .home-task-item:has(.home-task-body label:hover) .home-task-check input:not(:checked){border-color:#8a93a3}
  :root[data-theme="dark"] .home-task-check input:checked:hover,:root[data-theme="dark"] .home-task-item:has(.home-task-body label:hover) .home-task-check input:checked{border-color:#3d80f5;background:#3d80f5}
}
:root[data-theme="dark"] .home-task-form{background:var(--panel-2);box-shadow:0 0 0 1px rgba(255,255,255,.08),0 16px 36px -6px rgba(0,0,0,.5)}
:root[data-theme="dark"] :is(.home-task-form input,.home-task-form textarea,.home-task-form .v-control){background:#181b22;border-color:var(--line);color:var(--text)}
:root[data-theme="dark"] .home-task-avatar{background:hsl(var(--hue,220) 30% 25%);color:hsl(var(--hue,220) 75% 86%)}
:root[data-theme="dark"] .home-task-form-actions button{background:var(--panel);color:var(--text)}
:root[data-theme="dark"] .home-task-form-actions button[type="submit"]{background:#3a4250}
:root[data-theme="dark"] .home-add-task span[aria-hidden="true"]{background:#1d3851;border-color:#315b7d;color:#8ac8ff}
:root[data-theme="dark"] .home-add-task:is(:hover,[aria-expanded="true"]) span[aria-hidden="true"]{background:#284a68}
:root[data-theme="dark"] :is(.home-tracking-item,.home-tracking-empty,.home-tracking-link){border-color:var(--line)}
:root[data-theme="dark"] .home-tracking-link{color:var(--text)}
