/* Loggd · Deep blue theme */
@font-face {
  font-family: "Geist";
  src: url("/vendor/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ocean: #1d46b8;
  --ocean-dark: #0c2a8a;
  --ocean-ink: #ffffff;
  --mist: #e7edfc;
  --mist-ink: #1d46b8;
  --on-ocean-soft: #c8d4f6;
  --ink: #121316;
  --ink-2: #3a3d45;
  --muted: #5b5f69;
  --faint: #8a8e98;
  --paper: #f5f6f8;
  --surface: #ffffff;
  --line: #dfe3ea;
  --line-soft: #eceef2;
  --field: #f5f6f8;
  --seg: #eceef2;
  --done: #1d7a55;
  --done-bg: #e3f3eb;
  --due: #a35f00;
  --due-line: #d9a24a;
  --side: #0b2272;
  --miss: #b3261e;
  --miss-bg: #fdf3f2;
  --miss-line: #e9a7a1;
  --danger: #b3261e;
  --shadow: 0 8px 24px rgba(18, 19, 22, 0.10);
  --font: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ocean: #4a78e8;
    --ocean-dark: #2f5bd0;
    --ocean-ink: #ffffff;
    --mist: #18233f;
    --mist-ink: #a9c0f5;
    --on-ocean-soft: #d6e2f5;
    --ink: #eef0f4;
    --ink-2: #cdd1d9;
    --muted: #a3a8b3;
    --faint: #7d828d;
    --paper: #0f1114;
    --surface: #181b20;
    --line: #2a2e36;
    --line-soft: #22262d;
    --field: #111317;
    --seg: #22262d;
    --done: #5cc597;
    --done-bg: #183128;
    --due: #f0b55a;
    --due-line: #8a6420;
    --side: #16233a;
    --miss: #ff9b92;
    --miss-bg: #2a1716;
    --miss-line: #7d3a35;
    --danger: #ff8a80;
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; background: var(--paper); color: var(--ink); }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  min-height: 100dvh;
}
[hidden] { display: none !important; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--ocean); }
:focus-visible { outline: 2px solid var(--ocean); outline-offset: 2px; }
h1, h2, h3 { margin: 0; letter-spacing: -0.03em; text-wrap: balance; }
p { margin: 0; }

.wrap {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}

.splash { min-height: 100dvh; display: grid; place-items: center; }

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); }
.logo b { font-size: 25px; font-weight: 600; letter-spacing: -0.05em; line-height: 1; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 12px; padding: 14px 16px; font-weight: 600; font-size: 16px;
  background: var(--mist); color: var(--mist-ink); text-decoration: none; min-height: 48px;
}
.btn.primary { background: var(--ocean); color: var(--ocean-ink); }
.btn.primary:active { background: var(--ocean-dark); }
.btn.ghost { background: transparent; color: var(--muted); padding: 8px 10px; min-height: 0; font-weight: 500; }
.btn.danger { background: transparent; color: var(--danger); box-shadow: inset 0 0 0 1px var(--line); }
.btn.small { padding: 9px 12px; font-size: 14px; border-radius: 10px; min-height: 40px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: default; }
.link { background: none; border: 0; padding: 0; color: var(--ocean); font-weight: 600; text-decoration: none; }

/* ---------- fields ---------- */
.field { display: grid; gap: 6px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.field input, .field textarea, .field select {
  width: 100%; font-size: 16px; color: var(--ink); background: var(--field);
  border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; min-height: 48px;
}
.field input[type="date"] { -webkit-appearance: none; appearance: none; display: block; max-width: 100%; text-align: left; }
.field input[type="date"]::-webkit-date-and-time-value { text-align: left; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--ocean); box-shadow: 0 0 0 1px var(--ocean); }
.field textarea { resize: vertical; min-height: 76px; line-height: 1.4; }
.field .hint { font-weight: 400; color: var(--muted); font-size: 13px; }
.pw { position: relative; }
.pw input { padding-right: 64px; }
.pw button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--ocean); font-weight: 600; font-size: 14px; padding: 8px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); }
.check input { width: 20px; height: 20px; accent-color: var(--ocean); margin: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.formerr { color: var(--danger); font-size: 14px; font-weight: 500; }

/* ---------- auth ---------- */
.auth { min-height: 100dvh; display: flex; flex-direction: column; padding-top: max(56px, calc(env(safe-area-inset-top) + 40px)); padding-bottom: max(28px, env(safe-area-inset-bottom)); }
.auth .head { display: grid; justify-items: center; gap: 12px; text-align: center; }
.auth h1 { font-size: 30px; font-weight: 600; }
.auth .sub { color: var(--muted); font-size: 15px; }
.auth form { margin-top: 32px; display: grid; gap: 16px; }
.auth .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.auth .or { display: flex; align-items: center; gap: 12px; margin: 22px 0; color: var(--faint); font-size: 13px; }
.auth .or::before, .auth .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth .foot { margin-top: auto; padding-top: 28px; text-align: center; color: var(--muted); font-size: 15px; }
.auth .note { background: var(--surface); border-radius: 12px; padding: 12px 14px; box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; color: var(--ink-2); }

/* ---------- app shell ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top); background: var(--surface); z-index: 20; }
.top { position: sticky; top: 0; z-index: 10; padding-top: env(safe-area-inset-top); color: #ffffff;
  background: linear-gradient(160deg, #2449b0 0%, #0c2a8a 60%, #071d66 100%); box-shadow: 0 6px 20px rgba(12, 42, 138, 0.18); }
.top .logo b, .top .pagetitle { color: #ffffff; }
.top .avatar { background: rgba(255, 255, 255, 0.16); color: #ffffff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25); }
.top .monthbar { background: rgba(255, 255, 255, 0.10); border-radius: 14px; padding: 4px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); }
.top .monthbar span { color: #ffffff; }
.top .monthbar .iconbtn { width: 36px; height: 36px; border: 0; background: rgba(255, 255, 255, 0.14); color: #ffffff; }
.top .wrap { padding-top: 12px; padding-bottom: 12px; display: grid; gap: 12px; }
.top .brandrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.top .pagetitle { font-size: 26px; font-weight: 600; letter-spacing: -0.04em; }
.avatar { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--mist); color: var(--mist-ink); font-size: 13px; font-weight: 600; display: grid; place-items: center; }
.monthbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.monthbar span { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }
.iconbtn { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 20px; display: grid; place-items: center; line-height: 1; }

main.wrap { padding-top: 16px; padding-bottom: calc(120px + env(safe-area-inset-bottom)); display: grid; gap: 18px; }
main.wrap.withfab { padding-bottom: calc(170px + env(safe-area-inset-bottom)); }

.tabs {
  position: fixed; z-index: 10; left: 50%; transform: translateX(-50%);
  bottom: calc(10px + env(safe-area-inset-bottom)); width: min(560px, calc(100% - 24px));
  padding: 6px; border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6);
  box-shadow: 0 10px 30px rgba(12, 42, 138, 0.16), 0 1px 3px rgba(12, 42, 138, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}
.tabs .inner { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; }
.tabs button { background: none; border: 0; display: grid; justify-items: center; gap: 2px; font-size: 11px; font-weight: 500; color: var(--muted); padding: 7px 0 6px; border-radius: 22px; transition: background-color .15s, color .15s; }
.tabs button[aria-current="page"] { color: var(--ocean); font-weight: 600; background: var(--mist); }
.tabs svg { width: 24px; height: 24px; }

.fab {
  position: fixed; z-index: 11; width: 58px; height: 58px; border-radius: 18px; border: 0;
  background: var(--ocean); color: var(--ocean-ink); font-size: 30px; line-height: 1;
  box-shadow: 0 8px 20px rgba(31, 78, 140, 0.35);
  right: max(18px, calc(50vw - 262px)); bottom: calc(96px + env(safe-area-inset-bottom));
  display: grid; place-items: center;
}

/* ---------- content blocks ---------- */
.cols { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
.col { display: grid; gap: 18px; min-width: 0; }
.rail { display: grid; gap: 14px; min-width: 0; align-content: start; }
.greet { font-size: 22px; font-weight: 600; letter-spacing: -0.03em; }
.railcard { display: none; }
.rc { display: grid; gap: 4px; padding: 14px 16px; justify-items: start; }
.rc + .rc { box-shadow: inset 0 1px 0 var(--line-soft); }
.rc b { font-size: 16px; font-weight: 600; }
.rc .btn { margin-top: 6px; }
.rc .kicker { padding-left: 0; font-size: 12px; }
.desktitle, .tabs .sidefoot { display: none; }
.hero { position: relative; overflow: hidden; background: linear-gradient(135deg, var(--ocean) 0%, var(--ocean-dark) 100%); color: var(--ocean-ink); border-radius: 18px; padding: 18px 20px; display: grid; gap: 14px; }
.hero::after { content: ""; position: absolute; right: -26px; bottom: -40px; width: 170px; height: 170px; background: var(--loggd-bg) no-repeat center / contain; opacity: 0.07; transform: rotate(-8deg); pointer-events: none; }
.hero > * { position: relative; z-index: 1; }
.herotop { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.prog { display: grid; gap: 6px; }
.prog .bar { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.18); overflow: hidden; }
.prog .bar span { display: block; height: 100%; border-radius: inherit; background: #ffffff; }
.progtext { font-size: 13px; color: var(--on-ocean-soft); }
.hero .label { font-size: 13px; color: var(--on-ocean-soft); }
.hero .big { font-size: 36px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.hero .stats { display: flex; gap: 22px; font-size: 13px; color: var(--on-ocean-soft); text-align: right; }
.hero .stats b { display: block; color: var(--ocean-ink); font-size: 20px; font-weight: 600; }

.section { display: grid; gap: 10px; }
.section > .shead { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.section h2 { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.section .shead small { font-size: 13px; color: var(--muted); }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding-left: 4px; }

.card { background: var(--surface); border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); }
.list { display: grid; }
.list > * + * { box-shadow: inset 0 1px 0 var(--line-soft); }

.item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; width: 100%; background: none; border: 0; text-align: left; color: inherit; }
button.item { cursor: pointer; }
.item .main { display: grid; gap: 3px; min-width: 0; }
.item .t { font-size: 16px; font-weight: 600; }
.item .m { font-size: 13px; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.item .amt { font-size: 15px; font-weight: 600; white-space: nowrap; }

.up { background: var(--surface); border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); }
.card.misscard { background: var(--surface); border: 1.5px solid var(--miss-line); box-shadow: none; overflow: hidden; }
.missrow { padding-bottom: 12px; }
.missrow + .missrow { border-top: 1px solid var(--line-soft); }
.missrow .item { padding-bottom: 8px; }
.missrow .t::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--miss); margin-right: 8px; vertical-align: 2px; }
.upacts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 14px; }
.upacts .btn { width: 100%; }
.misshead { display: inline-flex; align-items: center; gap: 8px; color: var(--miss); }
.misshead .count { background: var(--miss); color: #fff; font-size: 12px; font-weight: 700; border-radius: 999px; min-width: 22px; height: 22px; padding: 0 7px; display: inline-grid; place-items: center; letter-spacing: 0; }
.item[role="button"] { cursor: pointer; }
.when { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); white-space: nowrap; }
.chev { font-size: 20px; color: var(--faint); line-height: 1; }
.btn.armed { background: var(--miss); color: #fff; box-shadow: none; }
.backbar { display: flex; align-items: center; margin: -4px 0 -6px -6px; }
.back { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; color: var(--ocean); font-size: 17px; font-weight: 600; padding: 8px 10px 8px 6px; border-radius: 10px; min-height: 44px; }
.back span { font-size: 26px; line-height: 1; margin-top: -3px; }
.back.light { color: #fff; background: rgba(255,255,255,0.14); padding-right: 14px; }

.pill { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 3px 9px; background: var(--mist); color: var(--mist-ink); white-space: nowrap; }
.pill.done { background: var(--done-bg); color: var(--done); }

.empty { text-align: center; padding: 28px 18px; display: grid; gap: 10px; justify-items: center; color: var(--muted); }
.empty b { color: var(--ink); font-size: 17px; }

.notice { background: var(--surface); border-radius: 14px; padding: 12px 14px; box-shadow: inset 0 0 0 1.5px var(--due-line); font-size: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

/* ---------- sheet ---------- */
.overlay { position: fixed; inset: 0; z-index: 30; background: rgba(10, 12, 16, 0.5); display: flex; align-items: flex-end; justify-content: center; }
@media (min-width: 640px) { .overlay { align-items: center; padding: 24px; } }
.sheet {
  background: var(--surface); width: 100%; max-width: 560px;
  max-height: calc(100% - max(20px, env(safe-area-inset-top)));
  overflow-x: hidden; overflow-y: auto; -webkit-overflow-scrolling: touch; touch-action: pan-y;
  border-radius: 24px 24px 0 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px;
  padding: 10px max(20px, env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  overscroll-behavior: contain;
}
@media (min-width: 640px) { .sheet { border-radius: 24px; padding-bottom: 24px; } }
.sheet form, .sheet > div { display: grid; grid-template-columns: minmax(0, 1fr); }
.sheet * { min-width: 0; }
.sheet .stepper, .sheet .stepper * { min-width: revert; }
.sheet .grab { justify-self: center; width: 40px; height: 5px; border-radius: 3px; background: var(--line); }
.sheet .shead { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sheet h2 { font-size: 24px; font-weight: 600; }
@media (prefers-reduced-motion: no-preference) { .sheet { animation: rise 0.2s ease-out; } @keyframes rise { from { transform: translateY(24px); opacity: 0.6; } } }

.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--seg); border-radius: 12px; padding: 4px; }
.seg label { position: relative; text-align: center; padding: 10px; border-radius: 9px; font-size: 15px; font-weight: 500; color: var(--muted); cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked) { background: var(--surface); color: var(--mist-ink); font-weight: 600; box-shadow: 0 1px 3px rgba(18, 19, 22, 0.14); }
.seg label:has(input:focus-visible) { outline: 2px solid var(--ocean); }

.types { display: grid; gap: 8px; }
.type { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 14px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; }
.type input { position: absolute; opacity: 0; pointer-events: none; }
.type .tt { display: grid; gap: 2px; }
.type .tt b { font-size: 16px; font-weight: 600; }
.type .tt small { font-size: 13px; color: var(--muted); }
.type .p { font-size: 15px; font-weight: 600; }
.type:has(input:checked) { background: var(--mist); box-shadow: inset 0 0 0 2px var(--ocean); color: var(--mist-ink); }
.type:has(input:focus-visible) { outline: 2px solid var(--ocean); }

.stepper { display: flex; align-items: center; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.stepper button { width: 48px; height: 46px; border: 0; background: var(--field); font-size: 22px; }
.stepper output { min-width: 46px; text-align: center; font-size: 18px; font-weight: 600; }
.rowline { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rowline > b { font-size: 16px; font-weight: 600; }

.att { display: grid; gap: 10px; }
.att .ah { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.att .ah b { font-size: 16px; font-weight: 600; }
.att .ah small { font-size: 13px; color: var(--faint); }
.thumbs { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.thumb { position: relative; width: 64px; height: 84px; border-radius: 10px; overflow: hidden; background: var(--field); box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--muted); border: 0; padding: 0; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .x { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(18, 19, 22, 0.75); color: #fff; font-size: 13px; line-height: 22px; padding: 0; }
.thumb.sel { box-shadow: inset 0 0 0 3px var(--ocean); }
.thumb.dim img { opacity: 0.6; }
.attbtn svg { width: 16px; height: 16px; }

.lightbox { position: fixed; inset: 0; z-index: 40; background: rgba(0, 0, 0, 0.9); display: grid; place-items: center; padding: calc(16px + env(safe-area-inset-top)) 16px calc(16px + env(safe-area-inset-bottom)); }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; }

.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(150px + env(safe-area-inset-bottom)); z-index: 50; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 999px; font-size: 14px; max-width: calc(100% - 32px); text-align: center; box-shadow: var(--shadow); }

/* ---------- invoice ---------- */
.invhead { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.invhead .num { font-size: 13px; color: var(--muted); }
.invhead .big { font-size: 38px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.invbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.invbtns.one { grid-template-columns: 1fr; }
.invbtns svg { width: 18px; height: 18px; }
.a4wrap { width: 100%; overflow: hidden; border-radius: 4px; box-shadow: 0 1px 2px rgba(18, 19, 22, 0.08), 0 10px 28px rgba(18, 19, 22, 0.10); background: #fff; cursor: zoom-in; }
.a4wrap.full { cursor: default; box-shadow: none; border-radius: 0; }
.a4 {
  width: 794px; min-height: 1123px; transform-origin: top left; background: #ffffff; color: #111111;
  font-family: Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.45; padding: 76px 84px;
  font-variant-numeric: normal;
}
.a4 .r { text-align: right; }
.a4 .arow, .a4 .mid { display: flex; justify-content: space-between; gap: 24px; }
.a4 .arow > *, .a4 .mid > * { min-width: 0; overflow-wrap: anywhere; }
.a4 .nm { font-weight: 700; font-size: 19px; }
.a4 .ttl { font-weight: 700; font-size: 35px; color: #555555; line-height: 1.1; }
.a4 .meta { margin-top: 38px; }
.a4 .mid { margin-top: 64px; }
.a4 .lnk { color: #1a3fc4; text-decoration: underline; }
.a4 table { width: 100%; border-collapse: collapse; margin-top: 48px; table-layout: fixed; }
.a4 th, .a4 td.b { border: 1px solid #bfbfbf; padding: 7px 10px; overflow-wrap: anywhere; }
.a4 th { font-weight: 700; text-align: center; white-space: nowrap; overflow-wrap: normal; }
.a4 td.c { text-align: center; }
.a4 td.n { text-align: right; }
.a4 td.tl { text-align: right; font-weight: 700; padding: 7px 10px; }
.a4 .sig { margin-top: 44px; }
.a4 .pay { margin-top: 110px; }
.a4 .pay .lines { margin-top: 16px; }
.a4 .ty { text-align: center; margin-top: 22px; }
.fullinv { position: fixed; inset: 0; z-index: 40; background: #50555f; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; padding: 0 0 calc(24px + env(safe-area-inset-bottom)); }
.fullbar { display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 1; background: #50555f; padding: calc(8px + env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) 8px max(12px, env(safe-area-inset-left)); }
.fullframe { margin: 4px auto 0; overflow: hidden; background: #fff; box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35); }
.fullframe .a4 { transform-origin: top left; }

/* ---------- totals ---------- */
.yearseg { display: flex; background: var(--seg); border-radius: 10px; padding: 3px; gap: 2px; overflow-x: auto; }
.yearseg button { border: 0; background: transparent; color: var(--muted); border-radius: 8px; padding: 7px 12px; font-size: 14px; font-weight: 500; }
.yearseg button[aria-pressed="true"] { background: var(--surface); color: var(--mist-ink); font-weight: 600; box-shadow: 0 1px 3px rgba(18, 19, 22, 0.14); }
.bars { height: 150px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; align-items: end; box-shadow: inset 0 -1px 0 var(--line); }
.bars div { background: var(--mist); border-radius: 5px 5px 0 0; min-height: 2px; }
.bars div.has { background: var(--ocean); }
.bars div.cur { background: #6f9be0; }
.barlabels { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; font-size: 11px; color: var(--faint); text-align: center; }
.barlabels .cur { color: var(--ink); font-weight: 600; }
.mrow { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; font-size: 15px; }
.mrow + .mrow { box-shadow: inset 0 1px 0 var(--line-soft); }
.mrow b { font-weight: 600; }
.mrow small { color: var(--faint); }

/* ---------- history ---------- */
.histgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.histcard { border: 0; text-align: left; color: inherit; padding: 16px; display: grid; gap: 6px; cursor: pointer; }
.histcard:hover { box-shadow: inset 0 0 0 1.5px var(--ocean); }
.histcard .hc-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.histcard .hc-top b { font-size: 17px; font-weight: 600; }
.histcard .hc-amt { font-size: 26px; font-weight: 600; letter-spacing: -0.03em; }
.histcard .m { font-size: 13px; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.histcard .hc-go { font-size: 14px; font-weight: 600; color: var(--ocean); margin-top: 2px; }
.msgquote { font-size: 13px; color: var(--ink-2); font-style: italic; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }

/* ---------- me ---------- */
.profile { display: flex; align-items: center; gap: 14px; padding: 16px; }
.profile .av { width: 52px; height: 52px; border-radius: 50%; background: var(--ocean); color: var(--ocean-ink); font-size: 18px; font-weight: 600; display: grid; place-items: center; flex-shrink: 0; }
.profile .who { display: grid; gap: 2px; min-width: 0; }
.profile .who b { font-size: 18px; font-weight: 600; }
.profile .who span { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.navrow { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; width: 100%; background: none; border: 0; text-align: left; color: var(--ink); font-size: 16px; }
.navrow span:last-child { color: var(--muted); font-size: 15px; text-align: right; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.navrow.danger, .navrow.danger span:last-child { color: var(--danger); font-weight: 500; }
@media (max-width: 440px) { .grid2 { grid-template-columns: 1fr; } }
.small-print { font-size: 13px; color: var(--muted); }

/* ---------- laptop layout ---------- */
.sidelogo { display: none; }
@media (min-width: 900px) {
  body:has(.tabs) { padding-left: 232px; }
  .wrap { max-width: 780px; }
  .tabs { top: 0; bottom: 0; left: 0; right: auto; transform: none; width: 232px; padding: 22px 14px; border-radius: 0; -webkit-backdrop-filter: none; backdrop-filter: none; background: linear-gradient(180deg, #0c2a8a 0%, var(--side) 100%); box-shadow: none; display: flex; flex-direction: column; gap: 28px; }
  .tabs .sidefoot { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 10px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, 0.08); color: #ffffff; text-align: left; width: 100%; }
  .sidefoot:hover { background: rgba(255, 255, 255, 0.14); }
  .sidefoot .av { width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; background: #ffffff; color: var(--side); font-size: 13px; font-weight: 700; display: grid; place-items: center; }
  .sidefoot .who { display: grid; min-width: 0; }
  .sidefoot .who b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sidefoot .who small { font-size: 12px; color: rgba(255, 255, 255, 0.65); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .top { color: var(--ink); background: linear-gradient(180deg, var(--surface) 0%, var(--paper) 100%); box-shadow: inset 0 -1px 0 var(--line); }
  .top .monthbar { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), 0 1px 2px rgba(12, 42, 138, 0.06); }
  .top .monthbar span { color: var(--ink); }
  .top .monthbar .iconbtn { color: var(--ink); }
  .top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 22px; padding-bottom: 18px; }
  .top .brandrow { flex: 1; min-width: 0; }
  .top .logo, .top .pagetitle, .top .avatar { display: none; }
  .desktitle { display: grid; gap: 2px; }
  .desktitle h1 { font-size: 28px; font-weight: 600; letter-spacing: -0.04em; }
  .desktitle p { font-size: 15px; color: var(--muted); }
  .monthbar { gap: 6px; background: var(--paper); border-radius: 12px; padding: 4px; box-shadow: inset 0 0 0 1px var(--line); }
  .monthbar span { font-size: 16px; min-width: 150px; text-align: center; }
  .top .monthbar .iconbtn { width: 34px; height: 34px; border: 0; background: transparent; }
  .top .monthbar .iconbtn:hover { background: var(--mist); }
  .wrap { max-width: 1040px; }
  main.wrap:not(.wide) > * { width: 100%; max-width: 780px; margin-left: auto; margin-right: auto; }
  .cols { grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
  .rail { grid-column: 2; grid-row: 1; position: sticky; top: calc(env(safe-area-inset-top) + 110px); }
  .col { grid-column: 1; grid-row: 1; }
  .greet { display: none; }
  .railcard { display: block; }
  .missrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 14px 4px 0; }
  .missrow .item { padding-bottom: 12px; flex: 1; min-width: 0; }
  .upacts { padding: 0; grid-template-columns: auto auto; flex-shrink: 0; }
  .sidelogo { display: inline-flex; padding: 0 10px; gap: 12px; }
  .tabs .sidelogo svg { width: 44px; height: 44px; flex: none; }
  .sidelogo b { color: #ffffff; font-size: 31px; }
  .tabs .inner { grid-template-columns: 1fr; gap: 4px; max-width: none; margin: 0; }
  .tabs button { display: flex; align-items: center; gap: 12px; font-size: 15px; padding: 11px 12px; border-radius: 10px; justify-content: flex-start; color: rgba(255, 255, 255, 0.72); }
  .tabs button:hover { background: rgba(255, 255, 255, 0.08); color: #ffffff; }
  .tabs button[aria-current="page"] { background: rgba(255, 255, 255, 0.16); color: #ffffff; }
  .tabs button:focus-visible { outline-color: #ffffff; }
  .top .logo { visibility: hidden; }
  main.wrap, main.wrap.withfab { padding-bottom: 64px; }
  .fab { right: 32px; bottom: 32px; }
  .toast { bottom: 40px; margin-left: 116px; }
  .hero .big { font-size: 42px; }
  .card.list .item:hover, .up .item[role="button"]:hover { background: var(--paper); }
}

/* ---------- sync / offline ---------- */
.syncpill { justify-self: center; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--mist); color: var(--mist-ink); }
.syncpill.off { background: var(--miss-bg); color: var(--miss); box-shadow: inset 0 0 0 1px var(--miss-line); }
main.wrap.wide > .syncpill { justify-self: start; }

/* ---------- toast with Undo ---------- */
.toast.withaction { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 8px 8px 8px 18px; text-align: left; width: min(calc(100% - 32px), 440px); }
.toastbtn { border: 0; background: rgba(255, 255, 255, 0.16); color: inherit; font-weight: 700; border-radius: 999px; padding: 6px 14px; }

/* ---------- pills ---------- */
.pill.miss { background: var(--miss-bg); color: var(--miss); }

/* ---------- first-time setup ---------- */
.setup .head { gap: 10px; }
.stepdots { display: flex; gap: 6px; margin-top: 6px; }
.stepdots span { width: 28px; height: 5px; border-radius: 3px; background: var(--line); }
.stepdots span.on { background: var(--ocean); }
.setup form .btn.ghost { justify-self: center; }

/* ---------- notifications ---------- */
.togglerow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; cursor: pointer; }
.togglerow .main { display: grid; gap: 2px; }
.togglerow b { font-size: 16px; font-weight: 600; }
.togglerow small { font-size: 13px; color: var(--muted); }
.switch { position: relative; width: 50px; height: 30px; flex-shrink: 0; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.switch .knob { position: absolute; inset: 0; border-radius: 999px; background: var(--line); transition: background 0.15s; pointer-events: none; }
.switch .knob::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); transition: transform 0.15s; }
.switch input:checked + .knob { background: var(--ocean); }
.switch input:checked + .knob::after { transform: translateX(20px); }
.switch input:focus-visible + .knob { outline: 2px solid var(--ocean); outline-offset: 2px; }
.note { background: var(--surface); border-radius: 12px; padding: 12px 14px; box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.notifon { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.notifon .row { display: flex; gap: 8px; }

/* ---------- handed in ---------- */
.handed { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px 10px 14px; border-radius: 12px; background: var(--done-bg); }
.handed .pill.done { background: transparent; padding: 0; font-size: 14px; }
.handbtn { color: var(--ink-2); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; }
.handbtn:hover { box-shadow: inset 0 0 0 1.5px var(--ocean); color: var(--ocean); }

/* ---------- calendar ---------- */
.calbtn { gap: 6px; }
.calcard { padding: 14px; display: grid; gap: 14px; }
.calwrap { display: grid; gap: 10px; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.calhead { text-align: center; font-size: 12px; font-weight: 600; color: var(--faint); padding-bottom: 2px; }
.calday { aspect-ratio: 1 / 1; max-width: 100%; border: 0; border-radius: 10px; background: transparent; color: var(--ink); display: grid; grid-template-rows: 1fr auto; justify-items: center; align-items: center; padding: 4px 0 6px; font-size: 15px; }
.calday.has { background: var(--paper); }
.calday:hover { background: var(--mist); }
.calday.today .num { background: var(--ocean); color: var(--ocean-ink); border-radius: 50%; width: 28px; height: 28px; display: grid; place-items: center; font-weight: 700; }
.calday.sel { box-shadow: inset 0 0 0 2px var(--ocean); }
.dots { display: flex; gap: 3px; min-height: 7px; }
.dots i, .callegend i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
i.done { background: var(--ocean); }
i.planned { box-shadow: inset 0 0 0 1.5px var(--ocean); }
i.missed { background: var(--miss); }
.callegend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.callegend span { display: inline-flex; align-items: center; gap: 6px; }
.caldetail { display: grid; gap: 10px; }
.caldetail > b { font-size: 16px; }
.caldetail .btn { justify-self: start; }
.calwrap { max-width: 460px; width: 100%; }
@media (min-width: 900px) {
  .calcard { grid-template-columns: minmax(0, 460px) minmax(0, 1fr); align-items: start; gap: 24px; }
  .calday { font-size: 14px; }
}

/* Printing the invoice: only the A4 sheet, full size */
#printarea { display: none; }
@media print {
  @page { size: A4; margin: 0; }
  html, body { background: #fff !important; margin: 0 !important; padding: 0 !important; }
  body > *:not(#printarea) { display: none !important; }
  #printarea { display: block !important; }
  #printarea .a4 { transform: none !important; width: 210mm; min-height: 0; height: 296mm; overflow: hidden; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Front page */
.madeby { text-align: center; color: var(--faint); font-size: 13px; padding: 22px 0 6px; }
.madeby a { color: var(--muted); font-weight: 600; text-decoration: none; }
.madeby a:hover { color: var(--ink); text-decoration: underline; }
.backhome { align-self: flex-start; margin-bottom: 8px; font-size: 15px; }
.auth { padding-top: max(20px, env(safe-area-inset-top)); }
.auth .head { margin-top: 24px; }

.landing2 { background: var(--paper); color: var(--ink); overflow-x: hidden; }
.landing2 .wrap { max-width: 1120px; }
.landing2 h2 { font-size: clamp(28px, 5vw, 42px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.1; max-width: 640px; }
.lbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; padding: 10px 16px; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; transition: transform .15s, background-color .15s, box-shadow .15s; }
.lbtn svg { width: 18px; height: 18px; }
.lbtn.big { padding: 15px 22px; font-size: 16px; border-radius: 14px; }
.lbtn.light { background: #ffffff; color: #0c2a8a; box-shadow: 0 8px 24px rgba(3, 13, 51, 0.25); }
.lbtn.light:hover { transform: translateY(-1px); }
.lbtn.ghost { background: rgba(255, 255, 255, 0.10); color: #ffffff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22); }
.lbtn.ghost:hover { background: rgba(255, 255, 255, 0.18); }
.lbtn.solid { background: var(--ocean); color: #ffffff; box-shadow: 0 8px 20px rgba(29, 70, 184, 0.3); }
.lbtn.solid:hover { background: var(--ocean-dark); }

/* hero */
.lhero2 { position: relative; color: #ffffff; padding-bottom: 56px; padding-top: env(safe-area-inset-top);
  background: radial-gradient(900px 500px at 85% 20%, rgba(90, 143, 255, 0.35), transparent 60%), radial-gradient(700px 500px at 0% 100%, rgba(31, 80, 214, 0.35), transparent 60%), linear-gradient(160deg, #1d3fa6 0%, #0c2a8a 45%, #061650 100%); }
.lhero2::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 70%); mask-image: radial-gradient(ellipse at 70% 30%, #000 0%, transparent 70%); }
.lhero2 > * { position: relative; z-index: 1; }
.lnav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.lnav-logo b { color: #ffffff; }
.lnav-links { display: flex; gap: 4px; background: rgba(255,255,255,.08); padding: 5px; border-radius: 14px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.lnav-links a { color: rgba(255,255,255,.85); text-decoration: none; font-size: 15px; font-weight: 500; padding: 7px 14px; border-radius: 10px; }
.lnav-links a:hover { background: rgba(255,255,255,.12); color: #ffffff; }
.lnav-cta { display: flex; gap: 8px; }
.lhero2-in { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; padding-top: 32px; }
.leyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #c8d4f6; }
.lhero2 h1 { font-size: clamp(42px, 7vw, 72px); font-weight: 750; letter-spacing: -0.05em; line-height: 1.02; margin: 18px 0 20px; }
.lhero2 h1 span { background: linear-gradient(90deg, #ffffff 0%, #9dbbff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lhero2-copy > p { font-size: 18px; line-height: 1.6; color: rgba(255,255,255,.82); max-width: 520px; }
.lhero2-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.lticks { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: rgba(255,255,255,.75); }
.lticks li::before { content: "✓"; margin-right: 7px; color: #9dbbff; font-weight: 700; }

/* phone mock */
.lhero2-art { display: grid; place-items: center; }
.lphone { width: 290px; border-radius: 40px; padding: 12px; background: linear-gradient(160deg, #2a3550, #0d1322); box-shadow: 0 40px 80px rgba(3, 10, 40, .55), inset 0 0 0 1px rgba(255,255,255,.12); transform: rotate(-3deg); }
.lphone > * { border-radius: 0; }
.lph-top { background: linear-gradient(160deg, #2449b0, #0c2a8a); border-radius: 30px 30px 0 0; padding: 22px 16px 14px; display: grid; gap: 10px; }
.lph-logo { display: inline-flex; align-items: center; gap: 6px; }
.lph-logo b { color: #fff; font-size: 16px; letter-spacing: -0.04em; }
.lph-month { background: rgba(255,255,255,.12); border-radius: 10px; padding: 6px; text-align: center; font-size: 13px; font-weight: 600; }
.lph-body { background: #f4f6fa; color: #121316; border-radius: 0 0 30px 30px; padding: 12px 12px 18px; display: grid; gap: 7px; }
.lph-hero { background: linear-gradient(135deg, #1d46b8, #0c2a8a); color: #fff; border-radius: 14px; padding: 12px 14px; display: grid; gap: 2px; }
.lph-hero small { font-size: 10px; opacity: .8; }
.lph-hero b { font-size: 26px; letter-spacing: -0.04em; }
.lph-hero i { height: 5px; border-radius: 3px; background: rgba(255,255,255,.25); margin-top: 6px; overflow: hidden; }
.lph-hero i span { display: block; width: 80%; height: 100%; background: #fff; border-radius: 3px; }
.lph-k { font-size: 10px; font-weight: 700; color: #5b5f69; text-transform: uppercase; letter-spacing: .08em; margin-top: 4px; }
.lph-row { background: #fff; border-radius: 11px; padding: 9px 11px; display: flex; align-items: center; justify-content: space-between; gap: 8px; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.lph-row span { display: grid; }
.lph-row b { font-size: 12px; font-weight: 600; }
.lph-row small { font-size: 10px; color: #5b5f69; }
.lph-row strong { font-size: 12px; }
.lph-row em { font-style: normal; font-size: 10px; font-weight: 600; background: #1d46b8; color: #fff; border-radius: 7px; padding: 5px 8px; white-space: nowrap; }

/* sections */
.lsec { padding-top: 56px; padding-bottom: 0; }
.lkick { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ocean); margin-bottom: 12px; }
.lsteps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.lstep { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--surface) 55%, var(--mist) 140%); border-radius: 20px; padding: 20px 20px 22px; box-shadow: inset 0 0 0 1px var(--line), 0 1px 2px rgba(12,42,138,.04); display: grid; gap: 8px; align-content: start; }
.lstep::after { content: attr(data-n); position: absolute; right: 14px; bottom: -34px; font-size: 128px; font-weight: 800; letter-spacing: -0.06em; line-height: 1; color: var(--ocean); opacity: .07; pointer-events: none; }
.lstep > * { position: relative; z-index: 1; }
.lstep-top { display: flex; align-items: center; gap: 12px; }
.lstep-top h3 { margin-top: 0; }
.lstep-n { width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px; display: grid; place-items: center; font-weight: 700; color: #fff; background: linear-gradient(160deg, #2449b0, #0c2a8a); box-shadow: 0 6px 14px rgba(12,42,138,.25); }
.lstep h3, .lfeat h3 { font-size: 18px; font-weight: 650; letter-spacing: -0.02em; margin-top: 6px; }
.lstep p, .lfeat p { color: var(--muted); font-size: 15px; line-height: 1.55; }
.lfeats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.lfeat { padding: 20px; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 8px; align-content: start; transition: transform .2s, box-shadow .2s; }
.lfeat:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--line), 0 12px 30px rgba(12,42,138,.08); }
.lfeat-i { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--mist); color: var(--ocean); }
.lfeat-i svg { width: 22px; height: 22px; }

/* invoice split */
.lsplit { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding-bottom: 56px; }
.lsplit-copy p { color: var(--muted); font-size: 17px; line-height: 1.6; margin: 16px 0 26px; max-width: 460px; }
.lsplit-art { display: grid; place-items: center; padding: 30px; border-radius: 28px; background: radial-gradient(500px 300px at 70% 20%, rgba(90,143,255,.25), transparent 70%), linear-gradient(160deg, #e7edfc, #d5def6); }
.lpaper { width: 100%; max-width: 440px; background: #fff; color: #111; border-radius: 6px; padding: 26px 24px; font-family: Helvetica, Arial, sans-serif; font-size: 10px; box-shadow: 0 24px 50px rgba(12,42,138,.16); display: grid; gap: 16px; }
.lp-head { display: flex; justify-content: space-between; gap: 16px; }
.lp-head div { display: grid; gap: 2px; }
.lp-head b { font-size: 13px; }
.lp-r { text-align: right; }
.lp-r strong { font-size: 20px; color: #555; letter-spacing: .02em; }
.lpaper table { width: 100%; border-collapse: collapse; }
.lpaper th, .lpaper td { border: 1px solid #bbb; padding: 4px 6px; text-align: left; font-size: 9.5px; line-height: 1.3; font-weight: 400; color: #111; }
.lpaper td:nth-child(2) { white-space: nowrap; }
.lpaper th { font-size: 8.5px; font-weight: 700; text-transform: uppercase; text-align: center; }
.lpaper td:nth-child(1), .lpaper td:nth-child(3) { text-align: center; }
.lpaper td:last-child { text-align: right; }
.lpaper tfoot td { border: 0; font-weight: 700; text-align: right; }
@media (max-width: 420px) { .lpaper { padding: 18px 14px; } .lpaper td:nth-child(2) { white-space: normal; } }
.lpaper tfoot td:last-child { border: 1px solid #bbb; }
.lpaper tfoot td:first-child { text-align: right; }
.lp-foot { display: grid; gap: 2px; }

/* Zip Sites section */
.lzip { position: relative; overflow: hidden; background: radial-gradient(800px 300px at 50% 120%, rgba(31, 200, 170, .22), transparent 70%), #07090d; color: #ffffff; padding: 64px 0; }
.lzip-stars { position: absolute; inset: 0; opacity: .7; pointer-events: none;
  background-image: radial-gradient(1px 1px at 10% 20%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 30% 70%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 55% 15%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 75% 45%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 90% 80%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 20% 90%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 85% 12%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 45% 55%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 65% 85%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 5% 60%, #fff 50%, transparent 51%); }
.lzip-in { position: relative; display: grid; justify-items: center; text-align: center; gap: 18px; }
.lzip-brand { display: inline-flex; align-items: center; gap: 10px; }
.lzip-logo svg { width: 38px; height: 38px; display: block; }
.lzip-word { font-size: 28px; font-weight: 700; letter-spacing: -0.03em; }
.lzip-word em { font-style: normal; color: #1fc8aa; }
.lzip h2 { max-width: none; }
.lzip h2 span { color: #1fc8aa; }
.lzip p { color: rgba(255,255,255,.72); font-size: 17px; line-height: 1.6; max-width: 560px; }
.lzip-btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 8px; }
.lzip-btn { display: inline-flex; align-items: center; gap: 10px; background: #1fc8aa; color: #04201b; font-weight: 700; text-decoration: none; padding: 14px 22px; border-radius: 14px; box-shadow: 0 10px 30px rgba(31,200,170,.35); }
.lzip-btn:hover { background: #2fd8ba; }
.lzip-link { display: inline-flex; align-items: center; gap: 8px; color: #ffffff; font-weight: 600; text-decoration: none; padding: 14px 20px; border-radius: 14px; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); }
.lzip-link:hover { background: rgba(255,255,255,.1); }
.lzip-btn svg, .lzip-link svg { width: 18px; height: 18px; }

/* footer */
.lfoot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 22px; padding-bottom: max(22px, env(safe-area-inset-bottom)); color: var(--muted); font-size: 13px; }
.lfoot .logo b { font-size: 24px; }
.lfoot .madeby { padding: 0; }

@media (max-width: 899px) {
  .lnav-links { display: none; }
  .lhero2-in, .lsplit { grid-template-columns: 1fr; }
  .lhero2-in { padding-top: 24px; gap: 40px; }
  .lsteps, .lfeats { grid-template-columns: 1fr; }
  .lsplit-art { order: 2; padding: 22px; }
}
@media (max-width: 520px) {
  .hide-sm { display: none; }
  .lhero2-btns .lbtn { flex: 1 1 100%; }
  .lphone { width: 260px; }
  .lsec { padding-top: 44px; }
  .lfoot { justify-content: center; text-align: center; }
}
@media (min-width: 600px) and (max-width: 899px) { .lfeats { grid-template-columns: 1fr 1fr; } }

@media (prefers-color-scheme: dark) and (max-width: 899px) {
  .tabs { background: rgba(28, 31, 38, 0.82); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
}

/* Log in / sign up */
.authpage { min-height: 100dvh; display: grid; grid-template-rows: auto 1fr; background: var(--paper); }
.authside { position: relative; overflow: hidden; color: #ffffff; display: grid; gap: 14px; align-content: start;
  padding: calc(env(safe-area-inset-top) + 18px) 20px 26px;
  background: radial-gradient(600px 300px at 90% 0%, rgba(90, 143, 255, 0.35), transparent 60%), linear-gradient(160deg, #1d3fa6 0%, #0c2a8a 50%, #061650 100%); }
.authside::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse at 80% 0%, #000 0%, transparent 70%); mask-image: radial-gradient(ellipse at 80% 0%, #000 0%, transparent 70%); }
.authside > * { position: relative; z-index: 1; }
.authlogo { background: none; border: 0; padding: 0; cursor: pointer; justify-self: start; }
.authlogo b { color: #ffffff; }
.authside h2 { font-size: 24px; font-weight: 700; letter-spacing: -0.04em; line-height: 1.15; }
.authside p { color: rgba(255,255,255,.8); font-size: 15px; line-height: 1.5; max-width: 420px; }
.authside .lticks, .authside-foot { display: none; }
.authpage .auth { min-height: 0; padding-top: 16px; }
.authpage .auth .head { margin-top: 4px; justify-items: start; text-align: left; gap: 4px; }
.authpage .auth .head > span { display: none; }
.authpage .auth h1 { font-size: 28px; }
.authpage .auth form { background: var(--surface); border-radius: 20px; padding: 20px; margin-top: 18px; box-shadow: inset 0 0 0 1px var(--line), 0 10px 30px rgba(12,42,138,.06); }
.authpage .auth .foot { margin-top: 0; padding-top: 18px; }
@media (min-width: 900px) {
  .authpage { grid-template-rows: none; grid-template-columns: minmax(360px, 39%) 1fr; }
  .authside { border-radius: 0; min-height: 100dvh; position: sticky; top: 0; padding: 40px 48px; align-content: space-between; }
  .authside-copy { display: grid; gap: 16px; }
  .authside h2 { font-size: 44px; line-height: 1.05; letter-spacing: -0.05em; max-width: 460px; }
  .authside p { font-size: 17px; }
  .authside .lticks { display: flex; }
  .authside-foot { display: block; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.6); }
  .authmain { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
  .authmain .auth { width: 100%; max-width: 460px; padding: 0; }
}
.installsteps { margin: 0; padding: 16px 18px 16px 40px; display: grid; gap: 12px; font-size: 15px; line-height: 1.45; }
.installsteps li::marker { color: var(--ocean); font-weight: 700; }
.lzip-ask { display: grid; gap: 6px; max-width: 560px; margin-top: 10px; }
.lzip-ask b { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; color: #ffffff; }
.lzip-ask span { color: rgba(255,255,255,.75); font-size: 16px; line-height: 1.55; }
.lzip-mail { color: rgba(255,255,255,.6); font-size: 14px; }
.lzip-mail a { color: #1fc8aa; text-decoration: none; font-weight: 600; }
.member { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; row-gap: 8px; align-items: center; padding: 14px 16px; }
.member + .member { border-top: 1px solid var(--line); }
.member-info { grid-row: span 2; min-width: 0; display: grid; gap: 2px; text-align: left; }
.member-info b { font-size: 16px; }
.member-info span { font-size: 14px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-info small { font-size: 13px; color: var(--muted); }
.member .link { white-space: nowrap; justify-self: end; }
.calic { display: inline-flex; }
.calic svg { width: 17px; height: 17px; display: block; }
/* Regular classes editor */
.regs { display: grid; gap: 10px; }
.regrow { display: grid; grid-template-columns: 1.25fr 1fr 0.9fr 36px; gap: 8px; align-items: end; padding: 12px; border-radius: 14px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.regf { display: grid; gap: 4px; min-width: 0; }
.regf > span { font-size: 12px; font-weight: 600; color: var(--muted); }
.regf select, .regf input { width: 100%; min-width: 0; box-sizing: border-box; font: inherit; font-size: 15px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 8px; min-height: 44px; color: var(--ink); }
.regf .money { position: relative; }
.regf .money b { position: absolute; left: 9px; top: 50%; transform: translateY(-50%); font-weight: 600; color: var(--muted); pointer-events: none; }
.regf .money input { padding-left: 22px; }
.regx { width: 36px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; }
.regx:hover { background: rgba(200,40,40,.08); color: #c62828; }
.regadd { justify-self: start; }
@media (max-width: 520px) { .regrow { grid-template-columns: 1fr 1fr 36px; } .regrow .regf:nth-child(1) { grid-column: 1 / 3; } .regx { grid-row: 1; grid-column: 3; } }
.link.danger { color: #c62828; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); font-weight: 600; cursor: pointer; }
.linkbtn:hover { color: var(--ink); text-decoration: underline; }
.signup-priv { margin: 4px 0 0; text-align: center; }
.signup-priv .linkbtn { color: var(--ocean); }
.privacy { display: grid; gap: 14px; line-height: 1.55; }
.privacy > p { margin: 0; color: var(--ink-2); }
.privsec { display: grid; gap: 6px; }
.privsec h3 { margin: 0; font-size: 16px; }
.privsec p { margin: 0; color: var(--ink-2); font-size: 15px; }
.privsec ul { margin: 0; padding-left: 20px; display: grid; gap: 4px; color: var(--ink-2); font-size: 15px; }
.privsec a { color: var(--ocean); font-weight: 600; }
.lzip ~ .lfoot .linkbtn, .lfoot .linkbtn { color: var(--muted); }
.lclosed { margin: 14px 0 0; font-size: 14px; color: rgba(255,255,255,.7); }
.link.armed { color: #c62828; }
.temppw { display: grid; gap: 4px; margin: 0 16px 14px; padding: 12px 14px; border-radius: 12px; background: var(--mist); }
.temppw span { font-size: 14px; color: var(--ink-2); }
.temppw b { font-size: 20px; letter-spacing: .06em; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink); user-select: all; }
.temppw small { font-size: 13px; color: var(--muted); }
