/* SavTasks — look of the app. Same arrangement of the other apps of SavOffice (they belong together); colours come from
   the SavComponents tokens (Soft style) with its own primary: the teal of SavTasks, and the yellow of the suite. --c is the
   colour of a list on screen, --p the colour of a priority. */
@font-face { font-family: "Stack Sans Notch"; src: url(../../assets/fonts/stack-sans-notch.ttf); font-display: swap; }

:root, .sav-theme-light { --sav-color-primary: #0b7a87; --sav-color-on-primary: #fff; --sav-color-bg: #f2f8f8; --sav-color-surface: #fff; --sav-color-surface-2: #e3f0f1; --sav-color-text: #0f2629; --sav-color-text-muted: #557174; --sav-color-border: #d5e6e8; --sav-indicator-l: .55; --sav-font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; --c: #0b7a87; --sun: #ffd166; --sun-ink: #5b3f00; --grid: #e2eeef; --grid-2: #f7fbfb; --ok: #138a52; --ok-bg: #dcf4e7; --mid: #a66400; --mid-bg: #fff0cc; --no: #b42335; --tint: 9%; }
.sav-theme-dark { --sav-color-primary: #5fd0dc; --sav-color-on-primary: #04262a; --sav-color-bg: #0f1718; --sav-color-surface: #162122; --sav-color-surface-2: #1e2c2e; --sav-color-text: #e6f3f4; --sav-color-text-muted: #9ab8bb; --sav-color-border: #2a3b3d; --sav-color-input-bg: #121c1d; --sun: #f5c451; --sun-ink: #2a1d00; --grid: #253537; --grid-2: #131d1e; --ok: #4fd18f; --ok-bg: #12301f; --mid: #f0b44a; --mid-bg: #33260c; --no: #ff8090; --tint: 20%; }
@media (prefers-color-scheme: dark) { .sav-theme-auto { --sav-color-primary: #5fd0dc; --sav-color-on-primary: #04262a; --sav-color-bg: #0f1718; --sav-color-surface: #162122; --sav-color-surface-2: #1e2c2e; --sav-color-text: #e6f3f4; --sav-color-text-muted: #9ab8bb; --sav-color-border: #2a3b3d; --sav-color-input-bg: #121c1d; --sun: #f5c451; --sun-ink: #2a1d00; --grid: #253537; --grid-2: #131d1e; --ok: #4fd18f; --ok-bg: #12301f; --mid: #f0b44a; --mid-bg: #33260c; --no: #ff8090; --tint: 20%; } }

*, ::before, ::after { box-sizing: border-box; }
html { height: 100%; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100%; background: var(--sav-color-bg); color: var(--sav-color-text); font: 400 15px/1.5 var(--sav-font); -webkit-tap-highlight-color: transparent; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
a { color: color-mix(in oklab, var(--sav-color-primary) 85%, var(--sav-color-text)); }
:focus-visible { outline: 2px solid var(--sav-color-focus); outline-offset: 2px; }
/* these SavComponents draw their own focus ring inside: a second outline around them made two loose lines across menus */
sav-menu-item:focus-visible, sav-tree-item:focus-visible, sav-radio:focus-visible { outline: none; }
kbd { font: 500 .74rem/1 var(--sav-font); color: var(--sav-color-text-muted); }
.muted { color: var(--sav-color-text-muted); } .small { font-size: .82rem; } .hint { font-size: .8rem; } .center { text-align: center; } .grow { flex: 1; min-width: 0; } .spacer { flex: 1; }
.stack { display: grid; gap: .6rem; grid-template-columns: minmax(0, 1fr); } .form { display: grid; gap: .95rem; grid-template-columns: minmax(0, 1fr); }
.prow { display: flex; align-items: center; gap: .5rem; min-width: 0; } .prow.wrap { flex-wrap: wrap; } .prow.end { align-items: flex-end; } .prow0 { display: flex; align-items: center; } .prow > sav-number-input, .prow > sav-select, .prow > .cf { flex: 1; min-width: 0; }
.grid2 { display: grid; gap: .9rem; grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid3 { display: grid; gap: .9rem; grid-template-columns: repeat(3, minmax(0, 1fr)); } .w9 { width: 10.5rem; }
.flabel { font-size: .76rem; color: var(--sav-color-text-muted); display: block; margin-bottom: .2rem; }
.wait { min-height: 60dvh; display: grid; place-items: center; padding: 1rem; }
sav-dialog h3 { font-size: .98rem; } .dlg-err { margin-top: .8rem; } .segm.wide { display: block; } .ctxm { position: fixed; z-index: 70; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: .8rem; }


/* first page, as in SavPresentations: bar, title and a fan of pages, six features */
.landing, .authp { min-height: 100dvh; display: flex; flex-direction: column; }
.ltop { display: flex; align-items: center; gap: .6rem; padding: 1rem clamp(1rem, 4vw, 3rem); padding-top: max(1rem, env(safe-area-inset-top)); } .ltop .spacer { flex: 1; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-size: 1.18rem; letter-spacing: -.015em; color: inherit; text-decoration: none; } .brand b { font-weight: 700; } .brand img { border-radius: 9px; }
.lmain { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 3rem); }
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; padding: clamp(1.5rem, 6vh, 5rem) 0 5rem; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 4rem); line-height: 1.02; letter-spacing: -.045em; font-weight: 700; text-wrap: balance; }
.hero-t > p { margin: 1.2rem 0 1.6rem; font-size: 1.12rem; color: var(--sav-color-text-muted); max-width: 34rem; text-wrap: pretty; } .hero-t small { display: block; margin-top: 1rem; color: var(--sav-color-text-muted); }
/* the pages go down to the right: the upper part of each one (its title) is what shows above the next */
.l-stage { position: relative; aspect-ratio: 1 / .94; }
.l-card { position: absolute; width: 42%; aspect-ratio: 3 / 4; left: calc(2% + var(--i) * 9.4%); top: calc(1% + var(--i) * 5.2%); border-radius: 6px; background: #fff; box-shadow: 0 14px 40px rgb(10 60 66 / .2); will-change: transform, opacity; backface-visibility: hidden; pointer-events: none; }
.l-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 34px 80px rgb(10 60 66 / .34); opacity: var(--lift, 0); }
.feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 2rem 2.5rem; padding: 2rem 0 3rem; border-top: 1px solid var(--sav-color-border); }
.feat sav-icon { font-size: 1.5rem; color: var(--sav-color-primary); } .feat h3 { margin: .5rem 0 .2rem; font-size: 1.05rem; } .feat p { color: var(--sav-color-text-muted); }
.amain { flex: 1; display: grid; place-items: center; padding: 1rem; } .aw { width: min(26rem, 100%); } .auth { --sav-card-padding: 1.8rem; display: block; }
.gbox { display: grid; justify-content: center; min-height: 44px; } .auth .idl-savbtn, .auth .idl-sav { margin-top: 0; }
.landing > .credit, .authp > .credit { width: 100%; max-width: 1680px; margin: auto auto 0; padding: 1rem clamp(1rem, 4vw, 3rem); }
@media (max-width: 900px) { .hero { grid-template-columns: minmax(0, 1fr); padding-bottom: 3rem; } .l-stage { max-width: 34rem; width: 100%; justify-self: center; } }
.credit { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; align-items: center; padding: 1.1rem 0; color: var(--sav-color-text-muted); font-size: .85rem; margin-top: auto; } .credit a { color: inherit; } .sig { font-family: "Stack Sans Notch", sans-serif; }

/* home: as in SavPresentations (header, side menu with folders and space, quick start card, cards), with the pages of Documents */
.home { min-height: 100dvh; display: flex; flex-direction: column; }
.htop { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 1rem; padding: .7rem clamp(.8rem, 2vw, 1.6rem); padding-top: max(.7rem, env(safe-area-inset-top)); background: color-mix(in oklab, var(--sav-color-bg) 88%, transparent); backdrop-filter: blur(10px); }
.hsearch { flex: 0 1 30rem; } .htop .hsearch + .spacer { flex: 1; }
.hbody { flex: 1; display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 1.6rem; width: 100%; max-width: 1680px; margin: 0 auto; padding: .6rem clamp(.8rem, 2vw, 1.6rem) 2rem; align-content: start; }
.hside { display: flex; flex-direction: column; gap: .15rem; align-self: start; position: sticky; top: 4.6rem; }
.newbtn { margin-bottom: .8rem; }
.navh { display: flex; align-items: center; justify-content: space-between; padding: .9rem .2rem .2rem .8rem; font-size: .8rem; font-weight: 600; color: var(--sav-color-text-muted); }
.hmain { min-width: 0; } .hmain h2 { font-size: 1rem; margin: 1.4rem 0 .7rem; }
.hhead { display: flex; align-items: center; gap: .5rem; margin-bottom: 1rem; flex-wrap: wrap; } .hhead h1 { font-size: 1.5rem; letter-spacing: -.025em; } .hhead .spacer { flex: 1; }
.quick { --sav-card-padding: 1rem 1.2rem 1.2rem; display: block; } .quick .qhead { display: flex; justify-content: space-between; align-items: center; margin-bottom: .7rem; } .quick .qhead h2 { margin: 0; }
.qrow { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(8.6rem, 1fr); gap: .9rem; overflow-x: auto; scrollbar-width: none; padding: 4px; margin: -4px; } .qrow::-webkit-scrollbar { display: none; }
.tile { --sav-card-padding: 0; min-width: 0; cursor: pointer; } .tile::part(body) { min-width: 0; } .tile:focus-visible { outline: 2px solid var(--sav-color-focus); outline-offset: 2px; border-radius: var(--sav-radius-lg); }
.tile.on::part(base) { border-color: var(--sav-color-primary); box-shadow: 0 0 0 2px var(--sav-color-primary); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1.2rem; } .grid.tpls { grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); }
.rows { display: grid; gap: .4rem; } .rows .card::part(body) { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); align-items: center; } .rows .cthumb { aspect-ratio: auto; height: 3.9rem; padding: 6px 14px 0; }
.card { --sav-radius-lg: 16px; } .card .cthumb { border-radius: calc(var(--sav-radius-lg) - 1px) calc(var(--sav-radius-lg) - 1px) 0 0; } .rows .card .cthumb { border-radius: calc(var(--sav-radius-lg) - 1px) 0 0 calc(var(--sav-radius-lg) - 1px); } .card.away .cthumb { opacity: .45; }
.cinfo { display: flex; align-items: center; gap: .4rem; padding: .7rem .4rem .7rem .9rem; } .cinfo > div:first-child { flex: 1; min-width: 0; display: grid; }
.cinfo b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; } .cinfo small { color: var(--sav-color-text-muted); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.starb { opacity: 0; transition: opacity .15s; } .card:hover .starb, .card:focus-within .starb, .starb.on, .starb:focus-within { opacity: 1; } .starb.on { --sav-tint: 80%; }
.home > .credit { width: 100%; max-width: 1680px; margin: auto auto 0; padding: 1rem clamp(.8rem, 2vw, 1.6rem); }
/* sharing, as in SavPresentations */
.share { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.1rem; } .share section { display: grid; grid-template-columns: minmax(0, 1fr); gap: .6rem; } .share h3 { font-size: .95rem; }
.linkrow { display: flex; gap: .6rem; align-items: center; } .linkrow code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: var(--sav-color-surface-2); padding: .5rem .7rem; border-radius: 8px; }
/* settings */
.smain { width: 100%; max-width: 1080px; margin: 0 auto; padding: 1rem clamp(.8rem, 3vw, 2rem) 2rem; } .shd { display: flex; align-items: center; gap: .6rem; margin-bottom: .4rem; flex-wrap: wrap; } .shd h1 { font-size: 1.5rem; letter-spacing: -.025em; }
.sgrid { columns: 2 26rem; column-gap: 1.2rem; margin-top: 1rem; } .scard { display: block; break-inside: avoid; margin-bottom: 1.2rem; } .shead { display: flex; gap: .6rem; align-items: center; } .shead sav-icon { color: var(--sav-color-primary); } .scard h4 { font-size: .9rem; margin-top: .4rem; }
@media (max-width: 900px) {
  .hbody { grid-template-columns: minmax(0, 1fr); gap: .8rem; } .htop { flex-wrap: wrap; } .hsearch { order: 3; flex: 1 0 100%; margin: 0; }
  .hside { position: static; flex-direction: row; overflow-x: auto; align-items: center; gap: .3rem; scrollbar-width: none; } .hside .newbtn { margin: 0; flex: none; } .hside sav-menu { flex: none; } .hside sav-menu::part(base) { display: flex; flex-direction: row; } .hside sav-menu-item { white-space: nowrap; } .hside sav-tree { min-width: 12rem; }
  .navh sav-label, .nofold, .quota { display: none; } .navh { padding: 0; }
  .qrow { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; overflow: visible; }
}
@media (max-width: 640px) { .grid, .grid.tpls { grid-template-columns: 1fr 1fr; gap: .8rem; } .starb { opacity: 1; } .rows .card::part(body) { grid-template-columns: 5rem minmax(0, 1fr); } .qrow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }


/* how it works: a section of its own between the features and the footer (as in SavSchedules) */
.how { padding: 1rem 0 3.5rem; } .how h2 { font-size: 1.4rem; letter-spacing: -.02em; margin-bottom: 1.2rem; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.4rem; } .steps li { display: flex; gap: .9rem; align-items: start; } .steps li > div { display: grid; gap: .15rem; }
.num { flex: none; width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--sun); color: var(--sun-ink); }
.feat sav-icon { color: var(--sav-color-primary); }

/* ------------------------------------------------------------------ home */
.sidebox { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: 1.2rem; padding: .9rem; border-radius: 14px; background: var(--sav-color-surface); border: 1px solid var(--sav-color-border); }
.sidebox > div { display: grid; } .sidebox strong { font-size: 1.35rem; letter-spacing: -.02em; }
.qt { --sav-radius-lg: 14px; } .qt::part(body) { display: flex; gap: .7rem; align-items: center; padding: .8rem .9rem; } .qt > div:last-child { display: grid; min-width: 0; } .qt strong { font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .qt small { font-size: .76rem; }
.qpic { flex: none; width: 2.4rem; height: 2.4rem; border-radius: 12px; display: grid; place-items: center; font-size: 1.2rem; background: color-mix(in oklab, var(--sav-color-primary) 13%, transparent); color: var(--sav-color-primary); }
.qrow { grid-auto-columns: minmax(12.5rem, 1fr); }
.cthumb { position: relative; aspect-ratio: 16 / 8; display: flex; align-items: center; gap: 1rem; padding: 0 1.1rem; background: color-mix(in oklab, var(--c) var(--tint), var(--sav-color-surface)); border-radius: 15px 15px 0 0; overflow: hidden; }
.cthumb::after { content: ""; position: absolute; right: -18%; top: -40%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: color-mix(in oklab, var(--c) 10%, transparent); }
.tear { position: relative; z-index: 1; flex: none; width: 3.6rem; border-radius: 10px; overflow: hidden; background: var(--sav-color-surface); box-shadow: 0 6px 16px rgb(20 30 60 / .14); text-align: center; }
.tear b { display: block; background: var(--c); color: #fff; font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; padding: .18rem 0; } .tear span { display: block; font-size: 1.45rem; font-weight: 700; padding: .1rem 0 .25rem; letter-spacing: -.03em; }
.tstat { position: relative; z-index: 1; flex: 1; min-width: 0; display: grid; gap: .1rem; } .tstat strong { font-size: 1.5rem; letter-spacing: -.03em; line-height: 1.1; } .tstat small { color: var(--sav-color-text-muted); } .tstat sav-progress-bar { margin-top: .35rem; }
.ckind { position: absolute; z-index: 1; right: .7rem; bottom: .55rem; color: var(--c); font-size: 1.1rem; opacity: .8; }
.cthumb.guest { flex-direction: column; justify-content: center; gap: .4rem; color: var(--c); font-weight: 600; } .cthumb.guest sav-icon { font-size: 1.8rem; }
.cbadges { position: absolute; left: .6rem; top: .6rem; z-index: 2; display: flex; gap: .3rem; flex-wrap: wrap; }
.card { position: relative; } .card.away { opacity: .7; }
.rows .card::part(body) { display: grid; grid-template-columns: 11rem minmax(0, 1fr); align-items: center; } .rows .cthumb { aspect-ratio: auto; height: 4.6rem; border-radius: 15px 0 0 15px; padding: 0 .7rem; gap: .6rem; } .rows .tear { width: 2.9rem; } .rows .tear span { font-size: 1.1rem; } .rows .tstat strong { font-size: 1.05rem; } .rows .tstat small, .rows .ckind { display: none; } .rows .cbadges { position: static; grid-column: 2; grid-row: 1; justify-self: end; padding-right: 3rem; }
.kinds { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; } .kindt { --sav-radius-lg: 18px; } .kindt::part(body) { display: grid; gap: .8rem; padding: 1.1rem; } .ktext { display: grid; gap: .25rem; } .ktext strong { font-size: 1.05rem; }
.kpic { width: 3.2rem; height: 3.2rem; border-radius: 16px; display: grid; place-items: center; font-size: 1.5rem; background: var(--sav-color-primary); color: var(--sav-color-on-primary); } .k-slots .kpic { background: var(--sun); color: var(--sun-ink); }
.presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: .6rem; } .pret::part(body) { display: flex; gap: .7rem; align-items: center; padding: .7rem .8rem; } .pret sav-icon { font-size: 1.2rem; color: var(--sav-color-primary); } .pret > div { display: grid; }
@media (max-width: 640px) { .kinds { grid-template-columns: 1fr; } .rows .card::part(body) { grid-template-columns: 7rem minmax(0, 1fr); } .rows .tstat { display: none; } .qrow { grid-template-columns: minmax(0, 1fr); } }

/* dates written by the browser start with a capital letter, the rest stays as the language writes it */
.fin strong::first-letter, .mlist b::first-letter, .rtext b::first-letter, .finpick strong::first-letter, .stat strong::first-letter { text-transform: uppercase; }
@media (max-width: 640px) { .blk em { display: none; } .blk.has { box-shadow: inset 0 -3px 0 var(--ok); } }

/* settings: sections on the side, rows "what it is | control" (as in SavPresentations) */
.otabs { margin-top: 1rem; --sav-tab-vertical-rail: transparent; } .otabs[placement="start"] { min-height: 60vh; }
.osec { display: grid; gap: .5rem; max-width: 46rem; } .osec h2 { font-size: 1.25rem; letter-spacing: -.015em; margin: 0; } .osec > .muted { margin: 0 0 .4rem; }
.ocard { --sav-card-padding: 0; margin: 0; } .orows { display: grid; }
.orow { display: flex; align-items: center; gap: 1rem 1.6rem; padding: .95rem 1.2rem; border-bottom: 1px solid var(--sav-color-border); } .orow:last-child { border-bottom: 0; }
.orow-t { flex: 1; min-width: 0; display: grid; gap: .15rem; } .orow-t small { color: var(--sav-color-text-muted); font-size: .84rem; } .orow-c { flex: none; max-width: 55%; display: flex; justify-content: flex-end; } .orow-c > sav-select, .orow-c > sav-input { width: 15rem; max-width: 100%; }
@media (max-width: 700px) { .orow { flex-wrap: wrap; } .orow-c { max-width: 100%; width: 100%; justify-content: flex-start; } .orow-c > sav-select, .orow-c > sav-input { width: 100%; } }

/* first page on phones: the top bar fits (the language as an icon), the features close together, nothing moves on touch */
@media (max-width: 600px) {
  .ltop { gap: .3rem; padding-left: 1rem; padding-right: 1rem; }
  .langb .lbl { display: none; }
  .hero { gap: 1.4rem; padding-top: 1.2rem; padding-bottom: 2rem; }
  .hero-t > p { margin: .9rem 0 1.2rem; font-size: 1.02rem; }
  .hero-t .prow sav-button, .hero-t .row sav-button { flex: 1 1 auto; }
  .feats { grid-template-columns: minmax(0, 1fr); gap: 1.1rem; padding: 1.4rem 0 2rem; }
  .how { padding: .4rem 0 2.2rem; } .how h2 { font-size: 1.25rem; margin-bottom: 1rem; } .steps { gap: 1.1rem; }
  .feat { display: grid; grid-template-columns: 2.2rem minmax(0, 1fr); column-gap: .7rem; align-items: start; }
  .feat sav-icon { grid-row: span 2; font-size: 1.35rem; margin-top: .1rem; }
  .feat h3 { margin: 0 0 .1rem; font-size: 1rem; }
  .feat p { font-size: .92rem; }
  .landing > .credit, .authp > .credit { padding-left: 1rem; padding-right: 1rem; }
}
@media (max-width: 360px) { .ltop .brand span, .ltop .brand b { display: none; } }


/* ------------------------------------------------------------------ first page: the small lists of the fan */
.kicker { display: inline-flex; align-items: center; gap: .35rem; margin-bottom: 1rem; padding: .25rem .7rem; border-radius: 999px; background: color-mix(in oklab, var(--sav-color-primary) 11%, transparent); color: var(--sav-color-primary); font-size: .82rem; font-weight: 600; }
.lp { position: absolute; inset: 0; padding: 9% 8%; display: flex; flex-direction: column; gap: 4.5%; color: #0f2629; font: 500 11px/1.2 var(--sav-font); }
.lp-bar { display: flex; align-items: center; gap: 6px; margin-bottom: 2%; } .lp-bar b { font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .lp-dot { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.lp-row { display: flex; align-items: center; gap: 7px; padding: 3px 0; border-bottom: 1px solid #e6f0f1; } .lp-row span { height: 6px; border-radius: 3px; background: #d9e7e9; } .lp-row em { margin-left: auto; width: 16px; height: 6px; border-radius: 3px; background: color-mix(in oklab, var(--c) 35%, #fff); }
.lp-box { width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--c); flex: none; } .lp-row.done .lp-box { background: var(--c); } .lp-row.done span { background: #eef4f4; }
.lp-board { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; } .lp-col { display: flex; flex-direction: column; gap: 5px; padding: 5px; border-radius: 7px; background: #eef5f6; } .lp-col small { font-size: 7.5px; font-weight: 700; text-transform: uppercase; color: #557174; }
.lp-card { height: 22px; border-radius: 5px; background: #fff; border-left: 3px solid var(--c); display: flex; align-items: center; padding: 0 4px; box-shadow: 0 1px 2px rgb(0 0 0 / .06); } .lp-card span { height: 5px; border-radius: 3px; background: #d9e7e9; }
.lp-sec { font-size: 8.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #557174; margin-top: 3%; } .lp-sec:first-of-type { color: #c93a2f; }
.lp-remind { align-items: center; justify-content: center; text-align: center; gap: 7%; } .lp-bell { width: 34%; aspect-ratio: 1; border-radius: 22%; display: grid; place-items: center; background: #ffd166; color: #5b3f00; font-size: 26px; } .lp-remind b { font-size: 12px; } .lp-time { font-size: 18px; font-weight: 700; color: #0b7a87; letter-spacing: -.02em; }
.lp-sync { justify-content: center; align-items: center; gap: 6%; } .lp-ticket { width: 100%; border: 1px dashed #bfd8db; border-radius: 10px; padding: 8px; display: grid; gap: 3px; } .lp-ticket small { color: #0b7a87; font-weight: 700; } .lp-ticket strong { font-size: 13px; } .lp-ticket i { height: 5px; width: 60%; border-radius: 3px; background: #ffd166; }
.lp-arrow { color: #0b7a87; transform: rotate(90deg); font-size: 18px; } .lp-mini { width: 100%; display: grid; gap: 5px; } .lp-mini i { height: 16px; border-radius: 5px; background: #fbefed; } .lp-mini i.on { background: color-mix(in oklab, #c93a2f 18%, #fff); border-left: 3px solid #c93a2f; }

/* ------------------------------------------------------------------ the app: bar, side, main */
.tapp { height: 100dvh; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: var(--sav-color-bg); }
.ttop { display: flex; align-items: center; gap: .7rem; padding: .55rem clamp(.6rem, 1.6vw, 1.2rem); padding-top: max(.55rem, env(safe-area-inset-top)); min-width: 0; }
.ttop .brand { flex: none; } .tsearch { flex: 0 1 20rem; min-width: 8rem; }
.umenu { display: flex; align-items: center; gap: .35rem; }
.tbody { display: grid; grid-template-columns: 16.5rem minmax(0, 1fr); min-height: 0; }
.tside { min-height: 0; overflow: auto; padding: .4rem .6rem 1.2rem clamp(.6rem, 1.6vw, 1.2rem); scrollbar-width: thin; }
.twrap { min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr); padding: 0 clamp(.6rem, 1.6vw, 1.2rem) clamp(.6rem, 1.6vw, 1.2rem) 0; }
.tmain { min-height: 0; display: flex; flex-direction: column; background: var(--sav-color-surface); border: 1px solid var(--sav-color-border); border-radius: 18px; overflow: hidden; }
.only-mobile { display: none; } .tbottom { display: none; }
.lk { font-size: .78em; opacity: .7; flex: none; }

/* side */
.side { display: grid; gap: .1rem; align-content: start; }
.sbtns { display: grid; gap: .45rem; margin-bottom: .7rem; } .newbtn { width: 100%; }
.vrow, .lrow { display: flex; align-items: center; gap: .6rem; padding: .42rem .55rem; border-radius: 10px; color: inherit; text-decoration: none; font-size: .92rem; cursor: pointer; min-height: 2.3rem; }
.vrow sav-icon { color: var(--c, var(--sav-color-text-muted)); font-size: 1.05rem; flex: none; } .vrow span, .lrow span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vrow:hover, .lrow:hover { background: var(--sav-color-surface-2); } .vrow.on, .lrow.on { background: color-mix(in oklab, var(--c, var(--sav-color-primary)) 14%, var(--sav-color-surface)); font-weight: 600; }
.lrow:focus-visible, .vrow:focus-visible { outline: 2px solid var(--sav-color-focus); outline-offset: -2px; }
.ldot { width: .7rem; height: .7rem; border-radius: 4px; background: var(--c); flex: none; margin: 0 .2rem; } .licon { color: var(--c); font-size: 1.05rem; flex: none; }
.lrow small { font-variant-numeric: tabular-nums; font-size: .78rem; }
.lsort { display: grid; } .lsort > .lrow[data-sav-dragging] { background: var(--sav-color-surface); }
.shead { display: flex; align-items: center; justify-content: space-between; padding: .9rem .2rem .2rem .55rem; font-size: .76rem; font-weight: 650; color: var(--sav-color-text-muted); text-transform: uppercase; letter-spacing: .04em; min-height: 2.4rem; }
.snone { padding: .2rem .55rem; } .sarch { margin-top: .3rem; font-size: .88rem; } .stack0 { display: grid; }
.tags { display: flex; flex-wrap: wrap; gap: .3rem; padding: .2rem .4rem; } .tagl { display: inline-flex; gap: .3rem; align-items: baseline; padding: .15rem .55rem; border-radius: 99px; background: var(--sav-color-surface-2); color: inherit; text-decoration: none; font-size: .8rem; } .tagl small { color: var(--sav-color-text-muted); font-size: .7rem; } .tagl.on, .tagl:hover { background: color-mix(in oklab, var(--sav-color-primary) 16%, var(--sav-color-surface)); }
.sfoot { display: grid; gap: .1rem; margin-top: 1.2rem; padding-top: .8rem; border-top: 1px solid var(--sav-color-border); }
.oapp { display: flex; align-items: center; gap: .6rem; padding: .4rem .55rem; border-radius: 10px; color: var(--sav-color-text-muted); text-decoration: none; font-size: .86rem; } .oapp:hover { background: var(--sav-color-surface-2); color: var(--sav-color-text); } .oapp img { border-radius: 5px; }

/* the head of a view and the quick add */
.vhead { display: flex; align-items: center; gap: .8rem; padding: 1rem clamp(.9rem, 2vw, 1.6rem) .6rem; flex-wrap: wrap; }
.vicon { width: 2.4rem; height: 2.4rem; border-radius: 12px; display: grid; place-items: center; background: color-mix(in oklab, var(--c) 15%, var(--sav-color-surface)); color: var(--c); font-size: 1.25rem; flex: none; }
.vtitle { display: grid; min-width: 0; } .vtitle h1 { font-size: 1.45rem; letter-spacing: -.025em; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .vtitle small::first-letter { text-transform: uppercase; }
.qbox { padding: 0 clamp(.9rem, 2vw, 1.6rem) .5rem; } .qadd { width: 100%; } .qadd::part(base) { border-radius: 14px; }
.qhints { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; min-height: 0; padding-top: .35rem; } .qhints:empty { display: none; } .qhints small { margin-right: .2rem; }
.vbody { flex: 1; min-height: 0; overflow: auto; padding: .3rem clamp(.5rem, 1.6vw, 1.2rem) 2rem; scrollbar-width: thin; }
.vbody.isboard { padding: 0; overflow: hidden; display: flex; }

/* groups and rows of tasks */
.tgroup { margin-top: .9rem; } .tgroup:first-child { margin-top: .3rem; }
.ghead { display: flex; align-items: center; gap: .5rem; font-size: .86rem; font-weight: 650; padding: .3rem .5rem; color: var(--sav-color-text); } .ghead::first-letter { text-transform: uppercase; }
.ghead small { color: var(--sav-color-text-muted); font-weight: 500; } .ghead sav-button { margin-left: auto; } .tgroup.late .ghead { color: var(--no); }
.gempty { color: var(--sav-color-text-muted); font-size: .84rem; padding: .25rem .6rem .6rem 2.6rem; }
.tlist { display: grid; gap: 0; }
.trow { position: relative; display: flex; align-items: flex-start; gap: .55rem; padding: .55rem .5rem .55rem .6rem; border-radius: 12px; cursor: pointer; outline: none; transition: background .12s, opacity .3s; }
.trow + .trow::before { content: ""; position: absolute; left: 2.6rem; right: .6rem; top: 0; border-top: 1px solid var(--grid); }
.trow:hover { background: var(--grid-2); } .trow:focus-visible { box-shadow: inset 0 0 0 2px var(--sav-color-focus); }
.trow.done .ttitle { text-decoration: line-through; color: var(--sav-color-text-muted); } .trow.ticking.done { opacity: .55; }
.tinfo { display: grid; flex: 1; min-width: 0; gap: .22rem; }
.ttitle { font-size: .95rem; line-height: 1.35; overflow-wrap: anywhere; }
.tmeta { display: flex; flex-wrap: wrap; gap: .25rem .7rem; font-size: .76rem; color: var(--sav-color-text-muted); }
.m { display: inline-flex; align-items: center; gap: .25rem; white-space: nowrap; } .m sav-icon { font-size: .95em; }
.m.due.late { color: var(--no); font-weight: 600; } .m.due.now { color: var(--sav-color-primary); font-weight: 600; } .m.ok { color: var(--ok); } .m.app { color: var(--sav-color-text-muted); }
.m.tag { color: color-mix(in oklab, var(--sav-color-primary) 75%, var(--sav-color-text)); text-decoration: none; } .m.tag:hover { text-decoration: underline; }
.m.lst i { width: .5rem; height: .5rem; border-radius: 3px; background: var(--c); }
.grip { display: inline-flex; align-items: center; align-self: center; margin-left: -.35rem; color: var(--sav-color-text-muted); opacity: 0; cursor: grab; touch-action: none; } .trow:hover .grip, .trow:focus-within .grip { opacity: .7; }
.tlist > [data-sav-dragging] { background: var(--sav-color-surface); }
/* the tick: round, its ring in the colour of the priority */
.tcheck { --sav-color-primary: var(--p, var(--ok)); flex: none; margin-top: .05rem; }
.tcheck::part(input) { border-radius: 50%; border-width: 2px; border-color: var(--p, color-mix(in oklab, var(--sav-color-text-muted) 65%, transparent)); background: color-mix(in oklab, var(--p, transparent) 9%, var(--sav-color-surface)); }
.tcheck::part(input):checked { background: var(--p, var(--ok)); border-color: var(--p, var(--ok)); }
.tcheck.big { transform: scale(1.18); margin: .45rem .2rem 0; }
.tstar { flex: none; margin: -.2rem -.2rem 0 0; opacity: 0; } .trow:hover .tstar, .trow:focus-within .tstar, .tstar.on { opacity: 1; } .tstar.on { --sav-tint: 80%; }
.donebox { margin-top: 1rem; } .donebox > sav-button { margin: .3rem 0 0 .4rem; }

/* SavSchedules */
.slist { display: grid; gap: .1rem; }
.srow { display: grid; grid-template-columns: 2rem minmax(0, 1fr) auto auto; gap: .7rem; align-items: center; padding: .55rem .6rem; border-radius: 12px; color: inherit; text-decoration: none; }
.srow:hover { background: var(--grid-2); } .srow > div { display: grid; min-width: 0; } .srow b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .srow small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .78rem; }
.sic { width: 2rem; height: 2rem; border-radius: 10px; display: grid; place-items: center; background: color-mix(in oklab, var(--c) 15%, var(--sav-color-surface)); color: var(--c); }
.swhen { display: grid; justify-items: end; font-size: .82rem; } .swhen .late { color: var(--no); font-weight: 600; } .swhen span::first-letter { text-transform: uppercase; }
.schnote { display: block; margin: .4rem 0 .6rem; }

/* ------------------------------------------------------------------ board */
.board { flex: 1; min-width: 0; display: flex; gap: .8rem; align-items: flex-start; overflow-x: auto; overflow-y: hidden; padding: .4rem clamp(.6rem, 1.6vw, 1.2rem) 1rem; scrollbar-width: thin; height: 100%; }
.bcol { flex: 0 0 18.5rem; max-height: 100%; display: flex; flex-direction: column; background: color-mix(in oklab, var(--sav-color-surface-2) 70%, var(--sav-color-surface)); border-radius: 16px; padding: .35rem .35rem .45rem; }
.bcol.isdone { background: color-mix(in oklab, var(--ok) 7%, var(--sav-color-surface)); }
.bhead { display: flex; align-items: center; gap: .45rem; padding: .35rem .3rem .45rem .55rem; font-size: .9rem; } .bhead b { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .bhead small { font-variant-numeric: tabular-nums; } .bdone { color: var(--ok); }
.bcards { display: flex; flex-direction: column; gap: .45rem; min-height: 2.5rem; overflow-y: auto; padding: .1rem .15rem .3rem; scrollbar-width: thin; }
.bcard { position: relative; display: grid; gap: .35rem; padding: .6rem .55rem .6rem .65rem; border-radius: 12px; background: var(--sav-color-surface); border: 1px solid var(--sav-color-border); box-shadow: 0 1px 2px rgb(10 40 45 / .05); cursor: pointer; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: manipulation; }
.bcard.p1, .bcard.p2, .bcard.p3 { border-left: 3px solid var(--p); }
.bcard:hover { border-color: color-mix(in oklab, var(--c) 40%, var(--sav-color-border)); } .bcard:focus-visible { outline: 2px solid var(--sav-color-focus); }
.btop { display: flex; align-items: flex-start; gap: .45rem; } .btop .ttitle { flex: 1; min-width: 0; font-size: .9rem; }
.bcard .tmeta { padding-left: 1.9rem; } .bcard.done .ttitle { text-decoration: line-through; color: var(--sav-color-text-muted); }
.bmenu { margin: -.25rem -.3rem 0 0; opacity: 0; } .bcard:hover .bmenu, .bcard:focus-within .bmenu { opacity: 1; }
.bcard.lifted { opacity: 0; } .bph { border-radius: 12px; border: 2px dashed color-mix(in oklab, var(--c) 55%, transparent); background: color-mix(in oklab, var(--c) 7%, transparent); flex: none; }
.bghost { position: fixed; z-index: 1000; pointer-events: none; transform: rotate(2.5deg); box-shadow: 0 16px 36px rgb(10 40 45 / .25); }
body.dragging, body.dragging * { cursor: grabbing !important; }
.badd { display: grid; gap: .4rem; padding: .3rem .15rem 0; } .bmore { padding: .2rem .6rem; font-size: .78rem; }
.addcol { background: none; border: 2px dashed var(--sav-color-border); align-self: stretch; max-height: 6rem; justify-content: center; }
.coledit { display: grid; gap: .45rem; } .colrow { display: flex; align-items: center; gap: .3rem; } .colrow sav-input { flex: 1; min-width: 0; }

/* ------------------------------------------------------------------ Gantt */
.gantt { --gname: 15rem; flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.gtools { display: flex; align-items: center; gap: .6rem; padding: .2rem clamp(.6rem, 1.6vw, 1.2rem) .6rem; flex-wrap: wrap; } .ghint { margin-left: auto; font-size: .78rem; }
.gscroll { flex: 1; min-height: 0; overflow: auto; border-top: 1px solid var(--grid); scrollbar-width: thin; overscroll-behavior: contain; }
.gthead { position: sticky; top: 0; z-index: 4; display: flex; width: max-content; min-width: 100%; background: var(--sav-color-surface); border-bottom: 1px solid var(--grid); }
.gcorner { position: sticky; left: 0; z-index: 2; flex: none; width: var(--gname); display: flex; align-items: flex-end; padding: 0 .8rem .45rem; background: var(--sav-color-surface); border-right: 1px solid var(--grid); font-size: .78rem; color: var(--sav-color-text-muted); }
.gtime { position: relative; flex: none; height: 3.4rem; } .gmonths, .gdays { position: absolute; left: 0; right: 0; } .gmonths { top: 0; height: 1.5rem; } .gdays { top: 1.5rem; bottom: 0; }
.gmon { position: absolute; top: .3rem; padding-left: .45rem; border-left: 1px solid var(--grid); font-size: .74rem; font-weight: 650; white-space: nowrap; text-transform: capitalize; height: 1.2rem; }
.gday { position: absolute; top: 0; bottom: 0; display: grid; justify-items: center; align-content: center; line-height: 1.05; font-variant-numeric: tabular-nums; }
.gday small { font-size: .6rem; color: var(--sav-color-text-muted); text-transform: uppercase; } .gday b { font-size: .74rem; font-weight: 600; }
.gday.we { color: var(--sav-color-text-muted); } .gday.wk { justify-items: start; padding-left: .3rem; border-left: 1px solid var(--grid); }
.gday.now b { color: var(--sav-color-on-primary); background: var(--sav-color-primary); border-radius: 99px; padding: 0 .3rem; }
.gbody { position: relative; width: calc(var(--gname) + var(--w)); min-width: 100%; padding-bottom: 2rem; }
.gcols { position: absolute; top: 0; bottom: 0; left: var(--gname); pointer-events: none; } .gwe { position: absolute; top: 0; bottom: 0; background: var(--grid-2); }
.gnow { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: #e5484d; opacity: .75; z-index: 1; }
.grow, .gsep { position: relative; display: flex; height: var(--row); border-bottom: 1px solid color-mix(in oklab, var(--grid) 70%, transparent); }
.grow:hover { background: color-mix(in oklab, var(--c) 5%, transparent); }
.gname { position: sticky; left: 0; z-index: 3; flex: none; width: var(--gname); display: flex; align-items: center; gap: .5rem; padding: 0 .6rem 0 .8rem; background: var(--sav-color-surface); border-right: 1px solid var(--grid); cursor: pointer; font-size: .88rem; min-width: 0; }
.gname span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .gname:hover span { color: var(--sav-color-primary); } .gname:focus-visible { outline: 2px solid var(--sav-color-focus); outline-offset: -2px; }
.grow.done .gname span { text-decoration: line-through; color: var(--sav-color-text-muted); } .gname .tcheck { margin: 0; }
.gtrack { position: relative; flex: none; width: var(--w); } .gtrack.free { cursor: copy; }
.gsep { height: 2.2rem; background: var(--grid-2); } .gsep .gname { background: var(--grid-2); font-size: .76rem; font-weight: 650; color: var(--sav-color-text-muted); text-transform: uppercase; letter-spacing: .04em; cursor: default; }
.gsep .gtrack small { position: sticky; left: calc(var(--gname) + .8rem); display: inline-block; padding: .55rem .8rem; font-size: .78rem; }
.gghost { position: absolute; top: 8px; bottom: 8px; border-radius: 7px; border: 2px dashed color-mix(in oklab, var(--c) 60%, transparent); background: color-mix(in oklab, var(--c) 10%, transparent); pointer-events: none; }
.gb { position: absolute; top: 7px; bottom: 7px; z-index: 2; display: flex; align-items: center; min-width: 10px; border-radius: 8px; background: color-mix(in oklab, var(--c) 30%, var(--sav-color-surface)); border: 1px solid color-mix(in oklab, var(--c) 70%, transparent); color: var(--sav-color-text); overflow: hidden; cursor: grab; touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.gfill { position: absolute; inset: 0 auto 0 0; background: color-mix(in oklab, var(--c) 62%, var(--sav-color-surface)); pointer-events: none; }
.gb .glabel { position: relative; padding: 0 .6rem; font-size: .76rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.gb.done { opacity: .55; } .gb:hover { box-shadow: 0 2px 8px color-mix(in oklab, var(--c) 35%, transparent); } .gb:focus-visible, .gm:focus-visible { outline: 2px solid var(--sav-color-focus); outline-offset: 2px; }
.gh { position: absolute; top: 0; bottom: 0; width: 9px; cursor: ew-resize; z-index: 1; } .gh.l { left: 0; } .gh.r { right: 0; }
.gb:hover .gh::after { content: ""; position: absolute; top: 25%; bottom: 25%; left: 3px; width: 3px; border-radius: 2px; background: color-mix(in oklab, var(--c) 80%, #000); opacity: .5; }
.gm { position: absolute; top: 50%; z-index: 2; width: 18px; height: 18px; margin: -9px 0 0 -9px; cursor: grab; touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.gdia { position: absolute; inset: 2px; transform: rotate(45deg); border-radius: 3px; background: var(--c); box-shadow: 0 0 0 2px var(--sav-color-surface); } .gm.done .gdia { opacity: .5; }
.gm .gh.r { right: -10px; width: 10px; }
.glabel.out { position: absolute; top: 50%; transform: translateY(-50%); z-index: 1; font-size: .76rem; color: var(--sav-color-text-muted); white-space: nowrap; pointer-events: none; }
.gdrag { cursor: grabbing; box-shadow: 0 8px 22px rgb(10 40 45 / .25); z-index: 5; }
.gtip { position: fixed; z-index: 1000; padding: .3rem .6rem; border-radius: 8px; background: var(--sav-color-text); color: var(--sav-color-surface); font-size: .76rem; font-weight: 600; white-space: nowrap; pointer-events: none; box-shadow: 0 6px 18px rgb(0 0 0 / .2); }
.gempty { padding: 3rem 1rem; }
@media (max-width: 640px) { .gantt { --gname: 8.5rem; } .ghint { display: none; } .gname { font-size: .82rem; gap: .35rem; padding: 0 .4rem 0 .5rem; } .gtools { padding: .1rem .7rem .5rem; } }

/* ------------------------------------------------------------------ "New": the dialog in the middle */
.nkinds { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; }
.nkind { --sav-card-padding: 0; --sav-radius-lg: 14px; min-width: 0; cursor: pointer; } .nkind::part(body) { min-width: 0; }
.nkind.on::part(base) { border-color: var(--sav-color-primary); box-shadow: 0 0 0 2px var(--sav-color-primary); }
.nkind:focus-visible { outline: 2px solid var(--sav-color-focus); outline-offset: 2px; border-radius: 14px; }
.ntext { display: grid; gap: .1rem; padding: .55rem .7rem .65rem; } .ntext b { display: flex; align-items: center; gap: .3rem; font-size: .86rem; font-weight: 650; } .ntext b sav-icon { color: var(--sav-color-primary); }
.ntext small { color: var(--sav-color-text-muted); font-size: .74rem; line-height: 1.3; }
.nth { position: relative; aspect-ratio: 16 / 10; padding: 12% 12% 8%; background: var(--sav-color-surface-2); border-radius: 13px 13px 0 0; overflow: hidden; display: flex; flex-direction: column; gap: 9%; }
.nl { display: block; height: 5px; border-radius: 3px; background: color-mix(in oklab, var(--sav-color-text-muted) 35%, transparent); }
.nrow { display: flex; align-items: center; gap: 7%; } .nbox { flex: none; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--sav-color-primary); } .nbox.on { background: var(--sav-color-primary); }
.ntask { justify-content: center; gap: 12%; } .ntask .nrow { padding: 8% 7%; border-radius: 8px; background: var(--sav-color-surface); box-shadow: 0 2px 6px rgb(0 0 0 / .08); }
.nmeta { display: flex; gap: 6%; padding-left: 7%; } .nchip { display: block; width: 28%; height: 6px; border-radius: 3px; background: color-mix(in oklab, var(--sav-color-primary) 45%, transparent); } .nchip.s { width: 16%; background: var(--sun); }
.nbell { position: absolute; right: 9%; top: 10%; color: var(--sun-ink); background: var(--sun); border-radius: 7px; padding: 2px; font-size: .8rem; display: grid; }
.nlist { justify-content: center; gap: 13%; }
.nboard { flex-direction: row; gap: 6%; padding-top: 10%; } .ncol { flex: 1; display: flex; flex-direction: column; gap: 9%; padding: 7% 6%; border-radius: 6px; background: color-mix(in oklab, var(--sav-color-text-muted) 12%, transparent); }
.ncard { display: block; padding: 18% 10%; border-radius: 4px; background: var(--sav-color-surface); border-left: 3px solid var(--sav-color-primary); }
.ngantt { justify-content: space-around; gap: 0; } .ngrow { position: relative; height: 9px; } .nbar { position: absolute; top: 0; bottom: 0; border-radius: 4px; background: var(--sav-color-primary); }
.ndia { position: absolute; top: 0; width: 9px; height: 9px; transform: rotate(45deg); background: var(--sun); border-radius: 2px; }
.ntable { justify-content: center; gap: 0; padding-top: 10%; } .ntr { display: flex; gap: 6%; padding: 6% 4%; border-bottom: 1px solid color-mix(in oklab, var(--sav-color-text-muted) 18%, transparent); } .ntr.head .nl { background: var(--sav-color-primary); opacity: .7; }
.nmatrix { display: grid; grid-template-columns: 1fr 1fr; gap: 6%; } .nq { display: flex; flex-direction: column; gap: 12%; padding: 10%; border-radius: 5px; background: color-mix(in oklab, var(--q) 18%, var(--sav-color-surface)); border-top: 3px solid var(--q); }
.nform { min-height: 12rem; } .nname { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .9rem; align-items: end; }
.ntpls { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .25rem; } .ntplinfo { margin-top: .5rem; }
@media (max-width: 760px) { .nkinds { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .nkinds { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; } .nth, .ntext small { display: none; } .ntext { padding: .6rem .7rem; } .newdlg .grid3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .newdlg .grid3 > :first-child { grid-column: 1 / -1; } .nname { grid-template-columns: minmax(0, 1fr) auto; } }

/* the Eisenhower matrix: a board two by two */
.board.bmatrix { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: .7rem; overflow: auto; align-items: stretch; }
.bmatrix .bcol { flex: none; max-height: none; min-height: 12rem; border-top: 4px solid var(--q); background: color-mix(in oklab, var(--q) 7%, var(--sav-color-surface)); }
.bmatrix .q1 { --q: #c93a2f; } .bmatrix .q2 { --q: #0b7a87; } .bmatrix .q3 { --q: #c27a06; } .bmatrix .q4 { --q: #8a8f9d; }
.bht { display: grid; min-width: 0; line-height: 1.25; } .bq { color: var(--q, var(--sav-color-text-muted)); font-weight: 600; font-size: .74rem; }
.bmatrix .bcards { flex: 1; }
@media (max-width: 640px) { .board.bmatrix { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; scroll-snap-type: none; } .bmatrix .bcol { flex-basis: auto; min-height: 9rem; } }

/* ------------------------------------------------------------------ table */
.twrapt { overflow-x: auto; margin: 0 -.2rem; padding: 0 .2rem 1rem; }
.ttable { width: 100%; min-width: 46rem; border-collapse: separate; border-spacing: 0; font-size: .88rem; }
.ttable th { position: sticky; top: 0; z-index: 2; background: var(--sav-color-surface); text-align: left; font-weight: 600; font-size: .78rem; color: var(--sav-color-text-muted); border-bottom: 1px solid var(--sav-color-border); padding: 0; white-space: nowrap; }
.tsort { display: inline-flex; align-items: center; gap: .25rem; width: 100%; border: 0; background: none; color: inherit; font: inherit; padding: .55rem .6rem; cursor: pointer; text-align: left; } .tsort:hover { color: var(--sav-color-text); }
.ttable th[aria-sort] .tsort { color: var(--sav-color-text); }
.ttable td { padding: .3rem .6rem; border-bottom: 1px solid var(--grid); vertical-align: middle; white-space: nowrap; }
.ttable tbody tr:hover td { background: var(--grid-2); } .ttable tr.done .tname { text-decoration: line-through; color: var(--sav-color-text-muted); }
.ttable .tc-title { position: sticky; left: 0; z-index: 1; background: var(--sav-color-surface); width: 34%; min-width: 14rem; max-width: 26rem; }
.ttable th.tc-title { z-index: 3; } .ttable .tc-menu { width: 2.4rem; text-align: right; } .ttable .tc-progress { width: 9rem; }
.ttl { display: flex; align-items: center; gap: .55rem; min-width: 0; } .ttl .tcheck { margin: 0; }
.tname { flex: 1; min-width: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; padding: .35rem 0; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .tname:hover { color: var(--sav-color-primary); }
.tstarred { color: #c27a06; font-size: .85em; flex: none; }
.tcell { display: inline-flex; align-items: center; gap: .3rem; border: 0; background: none; color: inherit; font: inherit; padding: .3rem .4rem; margin-left: -.4rem; border-radius: 8px; cursor: pointer; } .tcell:hover { background: var(--sav-color-surface-2); }
.tcaret { opacity: 0; font-size: .8em; color: var(--sav-color-text-muted); } .tcell:hover .tcaret, .tcell:focus-visible .tcaret { opacity: 1; }
.tstat { padding: .1rem .55rem; border-radius: 99px; background: color-mix(in oklab, var(--c) 14%, var(--sav-color-surface)); font-size: .8rem; font-weight: 600; } .tstat.ok { background: var(--ok-bg); color: var(--ok); }
.tcell .late { color: var(--no); font-weight: 600; } .tcell .now { color: var(--sav-color-primary); font-weight: 600; }
.tprio { display: inline-flex; align-items: center; gap: .35rem; } .tprio i { width: .55rem; height: .55rem; border-radius: 50%; background: var(--p); }
.ttags { display: inline-flex; gap: .4rem; } .tprog { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem; align-items: center; } .tprog small { color: var(--sav-color-text-muted); font-variant-numeric: tabular-nums; }
@media (hover: none) { .tcaret { opacity: .6; } }
@media (max-width: 640px) { .ttable .tc-title { min-width: 11rem; width: 11rem; } }

/* ------------------------------------------------------------------ habits */
.habits { padding: .2rem 0 1.5rem; overflow-x: auto; }
.hgrid { display: grid; min-width: 34rem; }
.hrow { display: grid; grid-template-columns: minmax(10rem, 1.6fr) repeat(7, minmax(2.4rem, 1fr)) 6.5rem; align-items: center; gap: .3rem; padding: .35rem .5rem; border-bottom: 1px solid var(--grid); }
.hhead { position: sticky; top: 0; z-index: 2; background: var(--sav-color-surface); border-bottom-color: var(--sav-color-border); }
.hname { display: flex; align-items: center; gap: .2rem; min-width: 0; font-size: .82rem; font-weight: 600; color: var(--sav-color-text-muted); }
.hbtn { display: grid; gap: .05rem; border: 0; background: none; color: inherit; font: inherit; text-align: left; padding: .3rem .2rem; cursor: pointer; border-radius: 8px; } .hbtn:hover { background: var(--sav-color-surface-2); }
.hbtn span { font-size: .92rem; font-weight: 550; color: var(--sav-color-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .hbtn small { font-size: .74rem; color: var(--sav-color-text-muted); font-weight: 400; }
.hday { display: grid; justify-items: center; line-height: 1.15; } .hday small { font-size: .68rem; color: var(--sav-color-text-muted); text-transform: capitalize; } .hday b { font-size: .86rem; font-variant-numeric: tabular-nums; }
.hday.now b { color: var(--sav-color-on-primary); background: var(--sav-color-primary); border-radius: 99px; padding: 0 .4rem; }
.hcell { justify-self: center; width: 2.1rem; height: 2.1rem; border-radius: 10px; border: 2px solid color-mix(in oklab, var(--c) 45%, var(--sav-color-border)); background: var(--sav-color-surface); color: #fff; display: grid; place-items: center; cursor: pointer; font-size: 1rem; transition: background .12s, transform .12s; }
.hcell:hover:not(:disabled) { transform: scale(1.06); } .hcell.on { background: var(--c); border-color: var(--c); }
.hcell.off:not(.on) { opacity: .35; border-style: dashed; } .hcell.now { box-shadow: 0 0 0 2px var(--sav-color-surface), 0 0 0 4px color-mix(in oklab, var(--sav-color-primary) 55%, transparent); }
.hcell:disabled { opacity: .18; cursor: default; }
.hstreak { display: grid; justify-items: end; line-height: 1.2; } .hstreak small { font-size: .7rem; color: var(--sav-color-text-muted); } .hhead .hstreak small { font-weight: 600; }
.hfire { display: inline-flex; align-items: center; gap: .2rem; font-weight: 700; color: #c2630a; } .hfire sav-icon { font-size: 1rem; }
.hchips { display: flex; flex-wrap: wrap; gap: .45rem; padding: .2rem .5rem .4rem; }
.hchip { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .8rem .4rem .6rem; border-radius: 99px; border: 1px solid var(--sav-color-border); background: var(--sav-color-surface); color: inherit; font: inherit; font-size: .88rem; cursor: pointer; }
.hchip:hover { border-color: var(--sav-color-primary); } .hchip.on { background: var(--ok-bg); border-color: transparent; color: var(--ok); } .hchip.on span { text-decoration: line-through; }
.hchip small { display: inline-flex; align-items: center; gap: .1rem; color: #c2630a; font-weight: 700; }
.hdays { display: flex; gap: .3rem; flex-wrap: wrap; } .hdaybtn { width: 2.3rem; height: 2.3rem; border-radius: 50%; border: 1px solid var(--sav-color-border); background: var(--sav-color-surface); color: inherit; font: inherit; font-weight: 600; cursor: pointer; text-transform: uppercase; }
.hdaybtn.on { background: var(--sav-color-primary); border-color: var(--sav-color-primary); color: var(--sav-color-on-primary); }
.hstats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; } .hstats > div { display: grid; padding: .6rem .7rem; border-radius: 12px; background: var(--sav-color-surface-2); } .hstats b { font-size: 1.3rem; letter-spacing: -.02em; } .hstats small { font-size: .74rem; color: var(--sav-color-text-muted); }
.nhabits { justify-content: center; gap: 12%; } .nhrow { display: flex; gap: 6%; } .nhd { flex: 1; aspect-ratio: 1; border-radius: 3px; border: 1.5px solid color-mix(in oklab, var(--sav-color-primary) 45%, transparent); } .nhd.on { background: var(--sav-color-primary); border-color: var(--sav-color-primary); }
@media (max-width: 640px) { .hrow { grid-template-columns: minmax(0, 1fr) repeat(7, 1.75rem) 2.3rem; gap: .15rem; padding: .3rem .2rem; } .hcell { width: 1.6rem; height: 1.6rem; border-radius: 8px; font-size: .85rem; } .hstreak small, .hhead .hname > span { display: none; } .hhead .hstreak small { display: block; } .hgrid { min-width: 0; } .hday small { font-size: .6rem; } .hday b { font-size: .78rem; } .hbtn span { font-size: .86rem; } .hbtn small { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; } }

/* "Add" in the head of a list; the last row of a Gantt opens the same dialog */
.adddlg .addin { display: flex; align-items: center; gap: .35rem; margin-top: -.4rem; } .adddlg .addin sav-icon { color: var(--sav-color-primary); }
.qpick { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; margin-top: .25rem; }
.qbtn { display: grid; gap: .1rem; text-align: left; padding: .55rem .7rem; border-radius: 12px; border: 1px solid var(--sav-color-border); border-top: 3px solid var(--q); background: color-mix(in oklab, var(--q) 7%, var(--sav-color-surface)); color: inherit; font: inherit; cursor: pointer; }
.qbtn b { font-size: .86rem; } .qbtn small { color: var(--q); font-weight: 600; font-size: .74rem; } .qbtn.on { box-shadow: 0 0 0 2px var(--q); }
.gaddr { cursor: pointer; } .gaddr .gname.gaddname { gap: .5rem; color: var(--sav-color-text-muted); font-size: .86rem; } .gaddr:hover .gname.gaddname { color: var(--sav-color-primary); }
.gaddr .gtrack { cursor: pointer; } .gaddr:hover .gtrack { background: color-mix(in oklab, var(--c) 5%, transparent); } .gaddr:focus-visible { outline: 2px solid var(--sav-color-focus); outline-offset: -2px; }
@media (max-width: 640px) { .addb .lbl { display: none; } }

/* ------------------------------------------------------------------ one task (drawer) */
.tdet .dbody { padding-bottom: .4rem; }
@media (min-width: 760px) { .tdet .dbody { grid-template-columns: minmax(0, 1fr); } }
.dbody { display: grid; gap: 1rem; }
.dhead { display: flex; align-items: flex-start; gap: .4rem; } .dtitle { flex: 1; } .dtitle::part(textarea), .dtitle::part(input) { font-size: 1.12rem; font-weight: 600; }
.dsec { display: grid; gap: .55rem; } .dquick { display: flex; flex-wrap: wrap; gap: .35rem; } .dremind { display: grid; gap: .45rem; } .dremind small { display: flex; align-items: center; gap: .3rem; }
.prio { display: block; }
.cl { display: grid; gap: .1rem; } .cl sav-progress-bar { margin-bottom: .35rem; }
.clrow { display: flex; align-items: center; gap: .45rem; padding: .1rem 0; } .clrow.done .clt { text-decoration: line-through; color: var(--sav-color-text-muted); }
.clt, .cladd { flex: 1; min-width: 0; border: 0; border-bottom: 1px solid transparent; background: none; color: inherit; font: inherit; font-size: .92rem; padding: .3rem .1rem; outline: none; }
.clt:focus, .cladd:focus { border-bottom-color: var(--sav-color-primary); } .cladd { border-bottom-color: var(--sav-color-border); margin-top: .2rem; } .cladd::placeholder { color: var(--sav-color-text-muted); }
.dlinks { display: grid; gap: .55rem; } .dlinks:empty { display: none; }
.app-card { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: .3rem .7rem; align-items: center; padding: .7rem .8rem; border-radius: 14px; border: 1px solid var(--sav-color-border); background: var(--grid-2); }
.app-card > div:nth-child(2) { display: grid; min-width: 0; } .app-card img { border-radius: 7px; } .app-card .prow { grid-column: 2; margin-top: .2rem; }
.dinfo { text-align: right; }
.picks { display: flex; flex-wrap: wrap; gap: .35rem; min-height: 1.6rem; align-items: center; }
.icons { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: .3rem; }
.icb { aspect-ratio: 1; border: 1px solid var(--sav-color-border); border-radius: 10px; background: var(--sav-color-surface); color: inherit; display: grid; place-items: center; cursor: pointer; font-size: 1.05rem; padding: 0; } .icb:hover { background: var(--sav-color-surface-2); }
.icb.on { border-color: var(--sav-color-primary); box-shadow: 0 0 0 2px var(--sav-color-primary); color: var(--sav-color-primary); }
.cf { display: grid; justify-items: start; } .cbtn { --c: transparent; } .cbtn::part(base) { background: var(--c); min-width: 2.4rem; } .cpop { display: grid; gap: .6rem; }
.keys { display: grid; gap: .4rem; } .krow { display: flex; justify-content: space-between; align-items: center; padding: .25rem 0; border-bottom: 1px solid var(--sav-color-border); } .krow kbd { font-size: .82rem; padding: .1rem .45rem; border: 1px solid var(--sav-color-border); border-radius: 6px; }
.shared { margin: .9rem 1.2rem 0; }

/* what's new and the version */
.credit .vlink { font-variant-numeric: tabular-nums; text-decoration: none; padding: .05rem .5rem; border-radius: 99px; border: 1px solid var(--sav-color-border); } .credit .vlink:hover { border-color: currentColor; }
.chlog .vlist { display: grid; gap: 1rem; margin-top: 1.2rem; max-width: 46rem; }
.vcard { background: var(--sav-color-surface); border: 1px solid var(--sav-color-border); border-radius: 16px; padding: 1rem 1.2rem 1.1rem; }
.chhead { display: flex; align-items: center; gap: .6rem; } .chhead .grow { flex: 1; } .chhead time { color: var(--sav-color-text-muted); font-size: .85rem; }
.vnow { color: var(--sav-color-primary); font-weight: 600; } .vcard ul { margin: .75rem 0 0; padding-left: 1.2rem; display: grid; gap: .4rem; } .vcard li { line-height: 1.45; }

/* ------------------------------------------------------------------ tablets and phones */
@media (max-width: 1100px) { .tbody { grid-template-columns: 14.5rem minmax(0, 1fr); } }
@media (max-width: 900px) {
  .tbody { grid-template-columns: minmax(0, 1fr); } .tside { display: none; } .only-mobile { display: inline-flex; } .twrap { padding: 0 .4rem .4rem; }
  .ttop { gap: .4rem; } .ttop .brand span { display: none; } .tsearch { flex: 1 1 auto; } .tmain { border-radius: 14px; }
  .tdrawer { --size: min(20rem, 88vw); } .tdrawer .side { padding: .2rem; }
  .tbottom { display: block; }
  .grip { display: none; } .tstar, .bmenu { opacity: 1; } .tstar:not(.on) { opacity: .55; }
}
@media (max-width: 640px) {
  .vhead { padding: .8rem .8rem .5rem; gap: .6rem; } .vtitle h1 { font-size: 1.25rem; } .vicon { width: 2.1rem; height: 2.1rem; font-size: 1.1rem; }
  .vsel { order: 5; } .vhead > .spacer { display: none; } .vtitle { flex: 1; }
  .qbox { padding: 0 .7rem .4rem; } .vbody { padding: .2rem .3rem 1.5rem; }
  .trow { padding: .6rem .4rem .6rem .5rem; } .trow + .trow::before { left: 2.4rem; }
  .board { scroll-snap-type: x mandatory; gap: .6rem; padding: .3rem .7rem 1rem; } .bcol { flex-basis: calc(100vw - 3.2rem); scroll-snap-align: center; } .addcol { flex-basis: 12rem; }
  .srow { grid-template-columns: 2rem minmax(0, 1fr) auto; } .srow > .lk { display: none; }
  .icons { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (hover: none) { .tstar:not(.on) { opacity: .5; } .bmenu { opacity: 1; } }

/* the language in the footer: as wide as its name (never cut), as in the other apps of SavOffice */
.langs { width: max-content; max-width: 100%; }

/* ------------------------------------------------------------------ time tracked (track.js) */
/* the timer in the bar, while it runs */
.ttimer { display: flex; align-items: center; gap: .2rem; flex: none; } .ttimer[hidden] { display: none; }
.ttgo { flex: none; } .ttgo::part(label) { display: flex; align-items: center; gap: .45rem; }
.ttname { max-width: 12rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .ttclock { font-variant-numeric: tabular-nums; font-weight: 700; }
.ttdot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--no); flex: none; animation: ttpulse 1.4s ease-in-out infinite; }
@keyframes ttpulse { 50% { opacity: .35; } } @media (prefers-reduced-motion: reduce) { .ttdot { animation: none; } }
/* in the rows of tasks: start on hover (always shown when it runs there) */
.tplay { flex: none; margin: -.2rem -.3rem 0 0; opacity: 0; } .trow:hover .tplay, .trow:focus-within .tplay, .tplay.on { opacity: 1; }
.m.mtime.on { color: var(--no); font-weight: 600; }
/* a span of time */
.telist { display: grid; gap: 0; }
.terow { display: flex; align-items: center; gap: .6rem; padding: .5rem .55rem; border-radius: 10px; cursor: pointer; min-width: 0; }
.terow:hover { background: var(--grid-2); } .terow:focus-visible { outline: 2px solid var(--sav-color-focus); outline-offset: -2px; } .terow.on .tedur { color: var(--no); }
.tedot { width: .6rem; height: .6rem; border-radius: 3px; background: var(--c); flex: none; }
.teinfo { display: grid; flex: 1; min-width: 0; } .teinfo b { font-weight: 550; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .teinfo small { font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tedur { font-variant-numeric: tabular-nums; font-weight: 600; font-size: .9rem; white-space: nowrap; flex: none; }
/* in the detail of a task */
.dtt { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; } .dttot { display: grid; line-height: 1.2; margin-right: auto; } .dttot small { font-size: .72rem; }
.dtime .telist { margin-top: .3rem; }
/* the view "Time" */
.tvacts { gap: .35rem; flex-wrap: wrap; }
.tvtools { display: flex; align-items: flex-end; flex-wrap: wrap; gap: .5rem .7rem; padding: 0 clamp(.9rem, 2vw, 1.6rem) .6rem; }
.tvtools > .spacer { flex: 1; } .tvnav { display: flex; align-items: center; gap: .15rem; } .tvrange { display: flex; gap: .5rem; } .tvrange sav-date-picker { width: 10.5rem; } .tvsel { min-width: 10rem; }
.tvbody { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: .2rem; }
.tvstats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; padding: .4rem .3rem .2rem; }
.tvhint { display: flex; align-items: center; gap: .3rem; padding: .3rem .5rem 0; }
.tvbody sav-table { margin: .1rem .2rem 0; } .tvbody td, .tvbody th { white-space: nowrap; } .tvbody td:first-child { white-space: normal; }
.tvname { display: inline-flex; align-items: center; gap: .45rem; } .tvlink { color: inherit; } .tvtot td { font-weight: 700; }
.tvday { margin-top: .4rem; } .tvday .ghead { font-size: .82rem; } .tvday .ghead small { margin-left: auto; font-variant-numeric: tabular-nums; }
.trates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
@media (max-width: 900px) { .ttname { display: none; } .tplay:not(.on) { display: none; } .ttimer ~ .tsearch { min-width: 0; } }
@media (max-width: 420px) { .ttgo sav-icon[slot="prefix"] { display: none; } .ttop:has(.ttimer:not([hidden])) .brand { display: none; } }
@media (max-width: 640px) {
  .tvtools { padding: 0 .7rem .5rem; } .tvtools > .spacer { display: none; } .tvsel { flex: 1 1 9rem; min-width: 0; } .tvrange { width: 100%; } .tvrange sav-date-picker { flex: 1; width: auto; min-width: 0; }
  .tvstats { gap: .4rem; padding: .3rem 0 .1rem; --sav-stat-size: 1.15rem; } .tvstats sav-stat::part(icon) { display: none; } .tvstats sav-stat::part(label) { font-size: .72rem; } .tvacts { width: 100%; } .tvacts > :last-child { margin-left: auto; }
  .trates { grid-template-columns: minmax(0, 1fr); } .terow { padding: .5rem .35rem; }
}
@media (hover: none) { .tplay:not(.on) { display: none; } }
.tvbody .tvn { text-align: right; font-variant-numeric: tabular-nums; }
