/* Nokhatha app layout. Mobile first, a side rail from 960px. */

html, body { min-height: 100%; }
body.locked { overflow: hidden; }

.skip {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 10px; background: var(--ink); color: var(--on-ink); text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }

.boot-error { padding: 40px 24px; text-align: center; color: var(--ink-2); }

/* shell */
.app { min-height: 100dvh; }
.col { min-width: 0; }

.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(10px + env(safe-area-inset-top)) 18px 10px;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
}
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: 21px; line-height: 1; }
.brand .mark { width: 30px; height: 30px; }
.top-season {
  font-size: 13px; font-weight: 600; color: var(--ink-2);
  padding: 5px 12px 5px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line);
  display: inline-flex; align-items: center; gap: 7px;
}
.top-season::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sadu); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sadu) 18%, transparent); }

.page { max-width: 720px; margin: 0 auto; padding: 6px 18px calc(104px + env(safe-area-inset-bottom)); outline: none; }

.tabbar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  backdrop-filter: saturate(1.4) blur(16px);
  border-top: 1px solid var(--line);
}
.tab {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 9px 0 5px; border-radius: 12px;
  color: var(--ink-3); text-decoration: none; font-size: 11.5px; font-weight: 600; line-height: 1.2;
}
.tab .ic { width: 24px; height: 24px; }
.tab.on { color: var(--ink); }
.tab.on::before {
  content: ""; position: absolute; top: 1px; width: 6px; height: 6px; border-radius: 50%; background: var(--sadu);
}
.tab span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* page heads */
.back { display: inline-flex; align-items: center; gap: 4px; margin: 4px 0 0; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 14px; }
.back .ic { width: 18px; height: 18px; }
.ph { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 8px 0 12px; }
.h1 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 30px; line-height: 1.25; letter-spacing: -.2px; }
.band { margin: 14px 0 18px; }

.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0; margin: 0 -18px; padding-inline: 18px; }
.chips::-webkit-scrollbar { display: none; }
.chips.wrap { flex-wrap: wrap; overflow: visible; margin: 0; padding-inline: 0; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; padding: 0 15px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2);
  font-size: 14.5px; font-weight: 500; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.chip .ic { width: 18px; height: 18px; }
.chip:hover { border-color: var(--ink-3); }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--on-ink); font-weight: 600; }
.chip-add { border-style: dashed; color: var(--ink-3); }

/* sections and lists */
.sec { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 26px 0 10px; }
.sec h2 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 20px; line-height: 1.3; }
.sec.sec-sm { margin: 22px 0 8px; }
.sec h3 { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .3px; color: var(--ink-3); text-transform: uppercase; }
.count {
  min-width: 26px; height: 26px; padding: 0 8px; border-radius: 999px; display: inline-grid; place-items: center;
  background: var(--tint-overdue); color: var(--overdue); font-size: 13px; font-weight: 700;
}

.list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.list + .list { margin-top: 12px; }

.row { position: relative; display: flex; align-items: center; gap: 10px; padding-block: 10px; padding-inline: 14px 12px; }
.row + .row, .list > li + li { border-top: 1px solid var(--line); }
.row-body {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px;
  padding: 4px 0; margin: 0; border: 0; background: none; text-align: start; cursor: pointer; color: inherit;
}
.row.plain { padding: 14px 16px; }
.row-ic {
  flex: none; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center;
  background: var(--tint-ok); color: var(--ok);
}
.s-overdue .row-ic { background: var(--tint-overdue); color: var(--overdue); }
.s-today .row-ic, .s-soon .row-ic { background: var(--tint-soon); color: var(--soon-ink); }
.s-unset .row-ic, .s-off .row-ic { background: color-mix(in srgb, var(--ink-3) 12%, var(--surface)); color: var(--ink-3); }
.row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.row-title {
  font-weight: 600; font-size: 15.5px; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.s-off .row-title { color: var(--ink-3); text-decoration: line-through; text-decoration-thickness: 1px; }
.row-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.row-meta .rel { font-weight: 600; color: var(--ink-2); }
.s-overdue .rel { color: var(--overdue); }
.s-today .rel, .s-soon .rel { color: var(--soon-ink); }
.s-ok .rel { color: var(--ok); }
.row-meta .date { color: var(--ink-3); }
.row-meta .asset {
  font-size: 12px; font-weight: 600; color: var(--ink-2);
  padding: 0 8px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 7%, transparent);
}
.row.trial .row-title::after {
  content: ""; display: inline-block; width: 7px; height: 7px; margin-inline-start: 7px; border-radius: 50%;
  background: var(--soon); vertical-align: middle;
}
.row-amt { flex: none; display: flex; flex-direction: column; align-items: flex-end; text-align: end; line-height: 1.3; }
.row-amt b { font-weight: 700; font-size: 15px; white-space: nowrap; }
.row-amt small { font-size: 12px; color: var(--ink-3); }
.row-tag { color: var(--ink-3); }

.weave { display: block; width: 100%; max-width: 240px; height: 5px; margin-top: 5px; border-radius: 3px; background: color-mix(in srgb, var(--ink) 8%, transparent); overflow: hidden; --wc: var(--ok); }
.weave > i {
  display: block; height: 100%; width: calc(var(--p, 0) * 100%); border-radius: inherit;
  background: repeating-linear-gradient(120deg, var(--wc) 0 5px, color-mix(in srgb, var(--wc) 55%, transparent) 5px 8px);
}
.s-overdue .weave { --wc: var(--overdue); }
.s-today .weave, .s-soon .weave { --wc: var(--soon); }

.done {
  flex: none; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  border: 1.6px solid var(--line); background: var(--surface); color: var(--ink-3);
  transition: border-color .15s ease, color .15s ease, background-color .15s ease, transform .1s ease;
}
.done:hover { border-color: var(--ok); color: var(--ok); }
.done:active { transform: scale(.94); }
.s-overdue .done { border-color: color-mix(in srgb, var(--overdue) 45%, var(--line)); }
.done.txt { width: auto; min-width: 64px; padding: 0 14px; border-radius: 999px; font-size: 13.5px; font-weight: 700; color: var(--ink); }

.row.leaving { animation: row-done .42s ease forwards; }
.row.leaving .done { background: var(--ok); border-color: var(--ok); color: var(--on-ink); }
@keyframes row-done {
  0% { background: var(--surface); }
  35% { background: var(--tint-ok); opacity: 1; }
  100% { background: var(--tint-ok); opacity: 0; transform: scale(.98); }
}

.empty { display: grid; justify-items: center; gap: 10px; padding: 28px 20px; text-align: center; color: var(--ink-2); background: var(--surface); border: 1px dashed var(--line); border-radius: 20px; }
.empty > .ic { width: 30px; height: 30px; color: var(--ok); }
.empty p { margin: 0; max-width: 38ch; }
.empty.big { padding: 40px 22px; gap: 14px; border-style: solid; }
.ic-xl { width: 40px; height: 40px; color: var(--ink-3); }
.empty.big .ic-xl { color: var(--ink-3); }
.mark-lg { width: 72px; height: 72px; }
.mark-xl { width: 104px; height: 104px; margin: 0 auto; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 0; }
.actions .btn { flex: 1 1 auto; }
.actions.two > * { flex: 1 1 calc(50% - 5px); }

.lede { margin: 0 0 14px; color: var(--ink-2); font-size: 15.5px; line-height: 1.75; max-width: 60ch; }
.lede.small { font-size: 14px; margin-bottom: 10px; }
.fine { margin: 18px 0 0; font-size: 13px; color: var(--ink-3); line-height: 1.7; }
.fine a { color: var(--ink); font-weight: 600; }

/* today */
.greet { display: flex; flex-direction: column; margin: 2px 0 4px; }
.greet > span:first-child { font-family: var(--font-display); font-weight: 600; font-size: 24px; line-height: 1.3; }
.greet-d { font-size: 14px; color: var(--ink-3); }
.dial-wrap { max-width: 380px; margin: 4px auto 10px; }
.tip {
  display: flex; align-items: flex-start; gap: 10px; margin: 6px 0 0; padding: 14px 16px;
  border-radius: 18px; background: var(--surface); border: 1px solid var(--line);
  font-size: 14.5px; line-height: 1.7; color: var(--ink-2);
}
.tip .ic { color: var(--sadu); margin-top: 3px; width: 18px; height: 18px; }

.ask {
  margin: 14px 0 0; padding: 16px; border-radius: 20px;
  background: color-mix(in srgb, var(--rutab) 11%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--rutab) 32%, var(--line));
}
.ask.no { background: var(--tint-overdue); border-color: color-mix(in srgb, var(--overdue) 30%, var(--line)); }
.ask-q { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 19px; line-height: 1.4; }
.ask-d { margin: 4px 0 0; font-size: 14px; color: var(--ink-2); }
.ask-note { margin: 8px 0 0; font-size: 13.5px; color: var(--ink-2); padding: 8px 12px; border-radius: 12px; background: var(--surface); }
.ask-b { display: flex; gap: 8px; margin-top: 12px; }
.ask-b .btn { flex: 1; min-height: 44px; }

.strip {
  display: flex; align-items: center; gap: 12px; margin: 14px 0 0; padding: 14px 16px;
  border-radius: 18px; background: var(--surface); border: 1px solid var(--line);
  text-decoration: none; font-weight: 600;
}
.strip > .ic:first-child { color: var(--ok); }
.strip span { flex: 1; }
.chev { color: var(--ink-3); width: 18px; height: 18px; }

/* car */
.odo {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 16px; margin-bottom: 4px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line);
}
.odo-t { display: flex; flex-direction: column; min-width: 0; }
.odo-l { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.odo-v { font-family: var(--font-display); font-weight: 600; font-size: 28px; line-height: 1.3; }
.odo-s { font-size: 13px; color: var(--ink-2); }

/* totals and spend */
.total { display: flex; flex-direction: column; gap: 2px; padding: 18px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.total + .total { margin-top: 12px; }
.total-l { font-size: 13.5px; color: var(--ink-3); font-weight: 600; }
.big { font-family: var(--font-display); font-weight: 600; font-size: 40px; line-height: 1.15; letter-spacing: -.3px; }
.total-s { font-size: 14px; color: var(--ink-2); }
.total-o { font-size: 14px; color: var(--ink-2); font-weight: 600; }
.bars { display: grid; gap: 12px; margin-top: 16px; }
.bar { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; }
.bar-l { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.bar-l .ic { width: 18px; height: 18px; color: var(--ink-3); }
.bar-v { font-size: 14px; font-weight: 700; }
.bar-t { grid-column: 1 / -1; height: 8px; border-radius: 4px; background: color-mix(in srgb, var(--ink) 7%, transparent); overflow: hidden; }
.bar-t i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); border-radius: inherit; background: var(--ink); }
.year-nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin: 0 0 14px; }
.year-nav strong { font-family: var(--font-display); font-size: 22px; }
.year-nav > :last-child { justify-self: end; }
.year-nav .btn { min-height: 40px; padding: 0 10px; }

/* more */
.nav-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; text-decoration: none; }
.nav-row .row-ic { background: color-mix(in srgb, var(--ink) 6%, var(--surface)); color: var(--ink); }
.nav-l { flex: 1; font-weight: 600; }
.nav-n { font-size: 13px; font-weight: 700; color: var(--ink-3); }

/* travel */
.progress-l { margin: 0 0 10px; font-weight: 700; font-size: 14px; color: var(--ink-2); }
.check-row { display: flex; align-items: center; gap: 12px; padding: 13px 16px; cursor: pointer; line-height: 1.55; }
.check-row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.box {
  flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  border: 1.6px solid var(--line); color: transparent; transition: background-color .15s ease, border-color .15s ease;
}
.box .ic { width: 16px; height: 16px; stroke-width: 2.4; }
.check-row input:checked + .box { background: var(--ok); border-color: var(--ok); color: var(--on-ink); }
.check-row input:checked ~ span:last-child { color: var(--ink-3); text-decoration: line-through; text-decoration-thickness: 1px; }
.check-row input:focus-visible + .box { outline: 2.5px solid var(--ok); outline-offset: 2px; }

/* technicians */
.row.tech { flex-wrap: wrap; }
.tech-b { display: flex; gap: 8px; }
.tech-b .btn { min-height: 40px; padding: 0 12px; font-size: 14px; }
.tech-b .btn .ic { width: 18px; height: 18px; }

/* settings */
.setting { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 0; border-bottom: 1px solid var(--line); }
.setting-l { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.setting-l .ic { color: var(--ink-3); }
.setting .input { width: auto; min-width: 200px; }
.segc { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; padding: 3px; border-radius: 13px; background: color-mix(in srgb, var(--ink) 6%, var(--bg)); border: 1px solid var(--line); }
.segc button {
  min-height: 38px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; color: var(--ink-2);
  font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap;
}
.segc button.on { background: var(--surface); color: var(--ink); font-weight: 700; box-shadow: 0 1px 3px rgb(18 23 40 / .14); }
.field .segc { display: grid; }

/* about */
.about { display: grid; justify-items: center; gap: 4px; padding: 10px 0 18px; text-align: center; }
.about-name { margin: 8px 0 0; font-family: var(--font-display); font-weight: 600; font-size: 30px; }
.about-v { margin: 0; font-size: 13px; color: var(--ink-3); }

/* forms */
.field { display: grid; gap: 7px; margin: 14px 0 0; min-width: 0; }
.field > span { font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.input {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 13px;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-size: 16px;
}
.input:focus { outline: none; border-color: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 22%, transparent); }
.input::placeholder { color: var(--ink-3); opacity: .8; }
select.input { appearance: none; background-image: none; cursor: pointer; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.switches { display: grid; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--surface); }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; cursor: pointer; font-weight: 500; }
.switches .switch-row + .switch-row { border-top: 1px solid var(--line); }
#sheet-root > .sheet > .switch-row { margin-top: 14px; border: 1px solid var(--line); border-radius: 14px; }
.switch {
  appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 48px; height: 30px; margin: 0;
  border-radius: 999px; background: color-mix(in srgb, var(--ink) 16%, var(--bg)); cursor: pointer; transition: background-color .18s ease;
}
.switch::before {
  content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 24px; height: 24px; border-radius: 50%;
  background: #FFFFFF; box-shadow: 0 1px 3px rgb(18 23 40 / .3); transition: transform .18s ease;
}
.switch:checked { background: var(--ok); }
.switch:checked::before { transform: translateX(18px); }
[dir="rtl"] .switch:checked::before { transform: translateX(-18px); }

.file { position: relative; overflow: hidden; }
.file input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.file:focus-within { outline: 2.5px solid var(--ok); outline-offset: 2px; }
.receipt { width: 100%; max-height: 300px; object-fit: contain; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); }

/* onboarding */
.onb { min-height: 100dvh; display: grid; }
.welcome {
  width: 100%; max-width: 520px; margin: 0 auto; padding: calc(36px + env(safe-area-inset-top)) 22px calc(28px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 12px; justify-content: center; text-align: center;
}
.welcome > .segc { align-self: center; margin: 6px 0 4px; }
.w-name { margin: 6px 0 0; font-family: var(--font-display); font-weight: 700; font-size: 56px; line-height: 1.1; }
.w-tag { margin: 0; font-family: var(--font-display); font-size: 21px; color: var(--overdue); }
.w-body { margin: 0 0 6px; color: var(--ink-2); line-height: 1.8; }
.w-foot { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin: 8px 0 0; font-size: 13.5px; color: var(--ink-3); }
.w-foot .ic { width: 16px; height: 16px; }
.welcome.setup { text-align: start; justify-content: flex-start; }
.welcome.setup .btn-primary { margin-top: 18px; }
.step { margin: 0; font-size: 13px; font-weight: 700; color: var(--overdue); letter-spacing: .3px; }
.last-q { padding: 14px 0; border-bottom: 1px solid var(--line); }
.last-q p { margin: 0 0 10px; font-weight: 600; }
.last-q .chip { min-height: 36px; padding: 0 13px; font-size: 14px; }

/* sheets */
#sheet-root .backdrop { position: fixed; inset: 0; z-index: 50; background: rgb(12 16 30 / .42); animation: fade-in .2s ease both; }
.sheet {
  position: fixed; z-index: 51; inset-inline: 0; bottom: 0;
  max-height: 90dvh; overflow-y: auto; overscroll-behavior: contain;
  padding: 10px 20px calc(24px + env(safe-area-inset-bottom));
  background: var(--surface); border-radius: 26px 26px 0 0;
  box-shadow: 0 -18px 50px rgb(12 16 30 / .22);
  animation: sheet-up .3s cubic-bezier(.2, .8, .2, 1) both;
  outline: none;
}
.grip { width: 42px; height: 5px; margin: 0 auto 8px; border-radius: 3px; background: var(--line); }
.sheet-x {
  position: absolute; top: 12px; inset-inline-end: 12px; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; border: 0; background: color-mix(in srgb, var(--ink) 6%, transparent); color: var(--ink-2); cursor: pointer;
}
.sheet-x .ic { width: 20px; height: 20px; }
.sheet > .btn-block { margin-top: 12px; }
.sheet > .btn-primary.btn-block { margin-top: 18px; }
.sh-head { display: flex; align-items: flex-start; gap: 12px; padding-top: 8px; padding-inline-end: 48px; }
.sh-title { margin: 0; padding-inline-end: 44px; font-family: var(--font-display); font-weight: 600; font-size: 22px; line-height: 1.35; }
.sh-head .sh-title { padding: 0; }
.sh-head .row-meta { margin: 2px 0 0; }
.sh-h { margin: 22px 0 8px; font-size: 13px; font-weight: 700; color: var(--ink-3); letter-spacing: .3px; }
.why { margin: 14px 0 0; padding: 14px 16px; border-radius: 16px; background: var(--bg); line-height: 1.8; font-size: 15px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 14px 0 0; }
.facts div { padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); }
.facts dt { font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.facts dd { margin: 2px 0 0; font-weight: 600; font-size: 14.5px; line-height: 1.5; }
.done-form { margin-top: 6px; }
.done-form .btn-primary { margin-top: 16px; }
.sheet .actions { margin-top: 12px; }
.tech-line { margin-top: 18px; padding: 14px; border-radius: 16px; background: var(--bg); }
.tech-line p { margin: 0; font-weight: 600; }
.tech-line .actions { margin-top: 10px; }
.hist { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.hist li { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 10px 14px; font-size: 14px; }
.hist li + li { border-top: 1px solid var(--line); }
.hist li span:first-child { font-weight: 600; min-width: 110px; }

@keyframes sheet-up { from { transform: translateY(100%); } }
@keyframes sheet-pop { from { transform: translate(-50%, -46%); opacity: 0; } }

/* toast and update bar */
.toast {
  position: fixed; z-index: 60; inset-inline: 14px; bottom: calc(86px + env(safe-area-inset-bottom));
  max-width: 460px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 13px 16px; border-radius: 16px; background: var(--ink); color: var(--on-ink);
  font-size: 14.5px; font-weight: 500; box-shadow: 0 10px 30px rgb(12 16 30 / .28);
  animation: toast-in .25s cubic-bezier(.2, .8, .2, 1) both;
}
.toast button { flex: none; border: 0; background: none; color: var(--toast-accent); font-weight: 700; cursor: pointer; padding: 6px 4px; }
@keyframes toast-in { from { transform: translateY(16px); opacity: 0; } }
.update {
  position: fixed; z-index: 55; inset-inline: 14px; top: calc(12px + env(safe-area-inset-top));
  max-width: 460px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 10px 10px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgb(12 16 30 / .16); font-weight: 600; font-size: 14px;
}
.update .btn { min-height: 40px; }

/* wider screens */
@media (min-width: 560px) {
  .page { padding-inline: 28px; }
  .chips { margin: 0 -28px; padding-inline: 28px; }
  .chips.wrap { margin: 0; padding-inline: 0; }
}

@media (min-width: 720px) {
  .sheet {
    inset: auto; left: 50%; top: 50%; bottom: auto; transform: translate(-50%, -50%);
    width: min(560px, 92vw); max-height: 86vh; border-radius: 24px; padding: 14px 26px 26px;
    animation-name: sheet-pop; animation-duration: .22s;
  }
  .grip { display: none; }
  .toast { bottom: 28px; }
}

@media (min-width: 960px) {
  .app { display: grid; grid-template-columns: 232px minmax(0, 1fr); }
  .tabbar {
    position: sticky; top: 0; bottom: auto; height: 100dvh; grid-row: 1; grid-column: 1;
    display: flex; flex-direction: column; gap: 4px; padding: 84px 14px 24px;
    background: transparent; border-top: 0; border-inline-end: 1px solid var(--line);
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .tab { flex-direction: row; gap: 12px; padding: 11px 14px; font-size: 15px; font-weight: 600; }
  .tab.on { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
  .tab.on::before { position: absolute; top: 50%; inset-inline-start: 4px; margin-top: -3px; }
  .col { grid-column: 2; }
  .top { padding-inline: 32px; }
  .page { max-width: 1040px; padding: 8px 32px 56px; }
  .page:not(.page-today) > * { max-width: 720px; }
  .chips { margin: 0; padding-inline: 0; }
  .today { display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); gap: 36px; align-items: start; }
  .today-dial { position: sticky; top: 76px; }
  .today-list > .sec:first-child { margin-top: 8px; }
  .toast { bottom: 32px; }
}

.more-asks { display: block; margin: 8px 4px 0; font-size: 14px; font-weight: 600; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }

.install {
  display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 14px; padding: 14px 16px;
  border-radius: 18px; background: var(--tint-ok); border: 1px solid color-mix(in srgb, var(--ok) 30%, var(--line));
}
.install > .ic { color: var(--ok); margin-top: 3px; }
.install-t { margin: 0; font-weight: 700; }
.install-b { margin: 2px 0 6px; font-size: 14px; line-height: 1.7; color: var(--ink-2); }
.install .btn { min-height: 38px; padding: 0 12px; margin-inline-start: -12px; }
.backup-when { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.backup-when .ic { width: 18px; height: 18px; color: var(--ok); }

.add-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; }
.add-row .input { min-width: 0; }
.add-row select.input { width: auto; padding-inline: 12px; }
.add-row .btn { min-height: 48px; padding: 0 14px; }
.chip small { font-size: 12px; opacity: .75; font-weight: 500; }
.chip .x { width: 15px; height: 15px; opacity: .8; }

/* weather */
.wx { position: relative; display: grid; gap: 6px; margin: 4px 0 14px; padding: 14px 16px 26px; border-radius: 18px;
  background: color-mix(in srgb, var(--rutab) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--rutab) 30%, var(--line)); }
.wx.calm { display: flex; align-items: flex-start; gap: 10px; padding-bottom: 26px; background: var(--surface); border-color: var(--line); color: var(--ink-2); font-size: 14.5px; line-height: 1.7; }
.wx.calm > .ic { color: var(--ok); margin-top: 3px; }
.wx-a { display: flex; align-items: flex-start; gap: 10px; margin: 0; font-size: 14.5px; font-weight: 600; line-height: 1.7; }
.wx-a .ic { flex: none; margin-top: 3px; color: var(--soon-ink); }
.wx-a.wx-dust_heavy .ic, .wx-a.wx-rain .ic, .wx-a.wx-wind .ic { color: var(--overdue); }
.wx-a.wx-cold .ic { color: var(--ok); }
.wx-src { position: absolute; inset-inline-end: 14px; bottom: 7px; font-size: 11px; color: var(--ink-3); text-decoration: none; }
.wx-src:hover { text-decoration: underline; }
