/* MojiRoditelji — design system (brand board: Forest Green, Sage, Pale Mint, Warm Beige, Cream, Charcoal; Inter + serif headlines) */
@font-face { font-family: "Inter"; src: url("/fonts/Inter-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/Inter-Medium.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/Inter-SemiBold.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/Inter-Bold.woff") format("woff"); font-weight: 700 800; font-display: swap; }
/* Headline serif. Brand board names Merriweather; Lora (OFL, Latin + Cyrillic) is self-hosted as the stand-in.
   To use Merriweather, add its woff files to /public/fonts and point these rules at them. */
@font-face { font-family: "MR Serif"; src: url("/fonts/Lora-Variable.woff") format("woff"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "MR Serif"; src: url("/fonts/Lora-Italic-Variable.woff") format("woff"); font-weight: 400 700; font-style: italic; font-display: swap; }

:root {
  --green: #245C4A; --green-700: #1B4739; --green-800: #173D31; --green-500: #2F7A5E; --green-400: #3E8E6C;
  --sage: #8EB5A1; --mint: #E4EFE8; --mint-50: #F0F6F2; --beige: #F3E4D3; --beige-50: #FAF3EA; --cream: #FAF9F6; --white: #FFFFFF;
  --text: #24332D; --muted: #5E6C66; --line: #E3E8E4; --line-strong: #CFD9D3;
  --success: #32966B; --warning: #D69E36; --critical: #C94B4B; --info: #3C6E8F;
  --success-bg: #E3F3EA; --warning-bg: #FCEFD9; --critical-bg: #FBE6E5; --info-bg: #E3EEF7; --neutral-bg: #EEF1EF;
  --blue-btn: #DDE9F4; --blue-ink: #2E5E86; --pink: #FBE3E0; --pink-ink: #D9534F;
  --radius: 16px; --radius-s: 12px; --shadow: 0 1px 2px rgba(36, 51, 45, .05), 0 4px 16px rgba(36, 51, 45, .05);
  --shadow-lg: 0 12px 40px rgba(36, 51, 45, .12);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Noto Sans", Arial, sans-serif;
  --serif: "MR Serif", "Merriweather", Georgia, "Times New Roman", serif;
  --focus: 0 0 0 3px #FAF9F6, 0 0 0 5px #245C4A;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.5; color: var(--text); background: var(--cream); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { line-height: 1.22; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.015em; }
h1 { font-size: 1.7rem; } h2 { font-size: 1.2rem; } h3, .h3 { font-size: 1.05rem; } .h4 { font-size: .95rem; margin-top: 1rem; }
p { margin: 0 0 .8em; }
a { color: var(--green); text-underline-offset: 2px; }
a:hover { color: var(--green-700); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 8px; }
#main:focus, #main:focus-visible { box-shadow: none; outline: none; }
img, svg { max-width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--green); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; color: #fff; }
.fine { font-size: .85rem; color: var(--muted); }
.lead { font-size: 1.12rem; color: var(--muted); }
.lead-s { color: var(--muted); }
.center { text-align: center; } .break { word-break: break-all; } .pre { white-space: pre-wrap; }
.text-critical { color: var(--critical); } .text-success { color: var(--success); } .text-warning { color: #9A6B14; }
.row { display: flex; align-items: center; } .between { justify-content: space-between; } .end { justify-content: flex-end; }
.gap-s { gap: .5rem; } .wrap-row { flex-wrap: wrap; } .stack { display: grid; gap: 1rem; } .stack-s { display: grid; gap: .5rem; } .stack-l { display: grid; gap: 1.4rem; }
.icon { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.serif { font-family: var(--serif); letter-spacing: -.01em; }
.only-desktop { display: none !important; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 44px; padding: .55rem 1.1rem; border-radius: var(--radius-s);
  border: 1.5px solid transparent; font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer; text-decoration: none; transition: background-color .15s, border-color .15s; white-space: nowrap; }
.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn-primary { background: var(--green); color: #fff; } .btn-primary:hover { background: var(--green-700); color: #fff; }
.btn-secondary { background: var(--white); color: var(--green); border-color: var(--line-strong); } .btn-secondary:hover { background: var(--mint-50); border-color: var(--green); }
.btn-ghost { background: transparent; color: var(--green); } .btn-ghost:hover { background: var(--mint); }
.btn-light { background: #fff; color: var(--green); } .btn-light:hover { background: var(--mint); }
.btn-danger { background: var(--critical); color: #fff; } .btn-danger:hover { background: #A93C3C; color: #fff; }
.btn-danger-ghost { background: transparent; color: var(--critical); } .btn-danger-ghost:hover { background: var(--critical-bg); }
.btn-lg { min-height: 52px; padding: .75rem 1.5rem; font-size: 1.02rem; border-radius: 14px; }
.btn-s { min-height: 36px; padding: .3rem .75rem; font-size: .85rem; }
.btn-block { width: 100%; }
.btn-pill { border-radius: 999px; }
.btn.loading { position: relative; color: transparent !important; }
.btn.loading::after { content: ""; position: absolute; width: 18px; height: 18px; border: 2px solid currentColor; border-color: #fff #fff transparent transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.btn-secondary.loading::after, .btn-ghost.loading::after { border-color: var(--green) var(--green) transparent transparent; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-icon { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; border: 0; background: transparent; color: var(--text); cursor: pointer; position: relative; }
.btn-icon:hover { background: var(--mint); }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }

/* ---------- Badges, pills, status ---------- */
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.badge-ok { background: var(--success-bg); color: #1F6B4A; } .badge-warn { background: var(--warning-bg); color: #8A5E10; }
.badge-missing, .badge-neutral { background: var(--neutral-bg); color: var(--muted); } .badge-info { background: var(--info-bg); color: #2C5672; }
.badge-critical { background: var(--critical-bg); color: #B23B3B; }
.status-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.st { display: flex; align-items: flex-start; gap: .65rem; padding: .6rem .8rem; border-radius: var(--radius-s); background: var(--cream); flex-wrap: wrap; }
.st .dot { width: .7rem; height: .7rem; border-radius: 50%; margin-top: .42rem; flex: none; }
.st > span:not(.dot):not(.sr-only) { flex: 1 1 60%; }
.st-ok { background: var(--success-bg); } .st-ok .dot { background: var(--success); }
.st-warn { background: var(--warning-bg); } .st-warn .dot { background: var(--warning); }
.st-overdue { background: var(--critical-bg); } .st-overdue .dot { background: var(--critical); }
.st-missing { background: var(--neutral-bg); } .st-missing .dot { background: transparent; border: 2px dashed var(--muted); }
.st-info { background: var(--info-bg); } .st-info .dot { background: var(--info); }
.st-neutral .dot { background: var(--line-strong); }
.st .note { display: block; width: 100%; font-style: italic; color: var(--muted); padding-left: 1.4rem; }
.notice { background: var(--mint); border-radius: var(--radius-s); padding: .75rem 1rem; font-size: .92rem; }
.notice-warn { background: var(--warning-bg); } .notice-ok { background: var(--success-bg); }
.notice-premium { background: var(--beige-50); border: 1px solid var(--beige); margin-bottom: 1rem; }
.row-title .badge { margin-left: .45rem; vertical-align: 2px; }
.notice-sandbox { background: #FFF6D9; border: 1.5px dashed var(--warning); font-weight: 600; margin-bottom: 1rem; }

/* ---------- Cards & lists ---------- */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; box-shadow: var(--shadow); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .8rem; }
.card-head h2 { display: flex; align-items: center; gap: .55rem; margin: 0; font-size: 1.08rem; }
.card-head h2 .icon { color: var(--green); }
.link-s { font-size: .85rem; font-weight: 600; text-decoration: none; }
.grid-2 { display: grid; gap: 1rem; } .grid-4 { display: grid; gap: 1rem; }
.plain-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.empty { text-align: center; padding: 2rem 1rem; color: var(--muted); background: var(--white); border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.empty-title { font-weight: 700; color: var(--text); font-size: 1.02rem; }
.skeleton-block { display: grid; gap: .7rem; }
.skeleton { height: 1.1rem; border-radius: 8px; background: linear-gradient(90deg, #ECEFEC 25%, #F5F6F3 50%, #ECEFEC 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.skeleton:nth-child(3n) { width: 70%; } .skeleton:nth-child(3n+2) { width: 85%; }
@keyframes shimmer { to { background-position: -200% 0; } }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { text-align: left; padding: .55rem .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1rem; margin: 0; }
.dl dt { color: var(--muted); } .dl dd { margin: 0; }
.quote { background: var(--cream); border-left: 3px solid var(--sage); padding: .5rem .8rem; border-radius: 8px; }
code { background: var(--neutral-bg); padding: .1rem .35rem; border-radius: 5px; font-size: .88em; }

/* Avatar (initials; photos are not stored) */
.avatar { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--beige); color: var(--green-800); font-weight: 700; flex: none; font-size: 1rem; letter-spacing: .02em; }
.avatar-lg { width: 64px; height: 64px; font-size: 1.35rem; }
.avatar-s { width: 34px; height: 34px; font-size: .82rem; }
.avatar-green { background: var(--green); color: #fff; }
.avatar-wrap { position: relative; display: inline-block; }
.avatar-check { position: absolute; right: -2px; bottom: -2px; width: 22px; height: 22px; border-radius: 50%; background: var(--success); color: #fff; display: grid; place-items: center; border: 2px solid #fff; }
.avatar-check .icon { width: 12px; height: 12px; stroke-width: 3; }

/* Row list (tiles / items) — the core pattern of the designs */
.rows { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.rows.rows-joined { gap: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.rows.rows-joined > li + li { border-top: 1px solid var(--line); }
.row-item { display: flex; align-items: center; gap: .9rem; width: 100%; padding: .9rem 1rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); text-decoration: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.rows-joined .row-item { border: 0; border-radius: 0; box-shadow: none; }
a.row-item:hover, button.row-item:hover { background: var(--mint-50); color: var(--text); }
.row-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; color: var(--green); background: var(--mint); }
.row-icon .icon { width: 22px; height: 22px; }
.row-icon.plain { background: transparent; }
.ri-pink { background: var(--pink); color: var(--pink-ink); } .ri-blue { background: var(--info-bg); color: var(--info); }
.ri-yellow { background: #FFF3C8; color: #C58A00; } .ri-orange { background: #FDE7D6; color: #D9692B; } .ri-beige { background: var(--beige); color: #8A5E10; }
.ri-red { background: var(--critical-bg); color: var(--critical); } .ri-green { background: var(--success-bg); color: var(--success); }
.row-body { flex: 1; min-width: 0; display: grid; gap: .1rem; }
.row-title { font-weight: 650; font-size: 1rem; }
.row-sub { font-size: .87rem; color: var(--muted); }
.row-sub.is-critical { color: var(--critical); font-weight: 600; } .row-sub.is-ok { color: var(--success); font-weight: 600; } .row-sub.is-warn { color: #A26B0C; font-weight: 600; }
.row-end { display: flex; align-items: center; gap: .5rem; flex: none; color: var(--muted); }
.row-amount { font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.count-dot { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--critical); color: #fff; font-size: .75rem; font-weight: 700; display: grid; place-items: center; }
.new-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--critical); }
.check-circle { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line-strong); background: #fff; display: grid; place-items: center; cursor: pointer; color: transparent; padding: 0; }
.check-circle.on { background: var(--success); border-color: var(--success); color: #fff; }
.check-circle .icon { width: 16px; height: 16px; stroke-width: 3; }
.check-box { width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--line-strong); background: #fff; display: grid; place-items: center; flex: none; padding: 0; cursor: pointer; color: transparent; }
.check-box.on { background: var(--success); border-color: var(--success); color: #fff; }
.check-box .icon { width: 14px; height: 14px; stroke-width: 3; }
.dots-btn { border: 0; background: transparent; padding: .3rem .4rem; border-radius: 8px; cursor: pointer; color: var(--muted); font-size: 1.2rem; line-height: 1; }
.dots-btn:hover { background: var(--mint); }
.is-done .row-title { text-decoration: line-through; color: var(--muted); }

/* ---------- Forms ---------- */
.form { display: grid; gap: .9rem; }
.field { display: grid; gap: .3rem; }
.field label, .field .label { font-weight: 600; font-size: .92rem; }
.req { color: var(--critical); }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=date], input[type=time], input[type=datetime-local], input[type=search], select, textarea {
  font: inherit; width: 100%; min-height: 46px; padding: .55rem .8rem; border: 1.5px solid var(--line-strong); border-radius: var(--radius-s); background: #fff; color: var(--text); }
textarea { min-height: auto; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--green); outline: none; box-shadow: 0 0 0 3px rgba(36, 92, 74, .16); }
[aria-invalid=true] { border-color: var(--critical) !important; }
.help { font-size: .84rem; color: var(--muted); }
.field-error, .form-error { color: var(--critical); font-size: .88rem; font-weight: 600; }
.form-error { background: var(--critical-bg); padding: .6rem .8rem; border-radius: var(--radius-s); margin: 0; }
.field-check label { display: flex; gap: .6rem; align-items: flex-start; font-weight: 500; }
.field-check input { width: 22px; height: 22px; margin-top: .1rem; accent-color: var(--green); flex: none; }
.form-heading { margin: .5rem 0 0; }
.form-actions { padding-top: .25rem; flex-wrap: wrap; }
.input-s { min-height: 40px !important; }
.days { display: flex; gap: .35rem; flex-wrap: wrap; }
.day { position: relative; }
.day input { position: absolute; opacity: 0; inset: 0; }
.day span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 40px; border-radius: 10px; border: 1.5px solid var(--line-strong); font-weight: 600; font-size: .85rem; cursor: pointer; }
.day input:checked + span { background: var(--green); color: #fff; border-color: var(--green); }
.day input:focus-visible + span { box-shadow: var(--focus); }
.inline-field { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-top: .8rem; font-weight: 600; }
.inline-field select { width: auto; }
.switch { position: relative; display: inline-flex; width: 46px; height: 26px; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch-ui { width: 46px; height: 26px; background: var(--line-strong); border-radius: 999px; position: relative; transition: background .15s; }
.switch-ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; background: #fff; border-radius: 50%; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked + .switch-ui { background: var(--green); }
.switch input:checked + .switch-ui::after { transform: translateX(20px); }
.switch input:focus-visible + .switch-ui { box-shadow: var(--focus); }
.switch input:disabled + .switch-ui { opacity: .45; }

/* ---------- Dialog & toast ---------- */
.dialog { border: 0; border-radius: 20px; padding: 1.4rem; max-width: min(460px, calc(100vw - 2rem)); width: 100%; box-shadow: var(--shadow-lg); color: var(--text); }
.dialog-wide { max-width: min(620px, calc(100vw - 1rem)); max-height: 90vh; overflow-y: auto; }
.dialog::backdrop { background: rgba(23, 61, 49, .45); }
.toast { position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 20px); background: var(--text); color: #fff; padding: .7rem 1.1rem; border-radius: 12px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 200; max-width: calc(100vw - 2rem); font-weight: 600; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast-err { background: var(--critical); }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 750; color: var(--green); text-decoration: none; font-size: 1.12rem; letter-spacing: -.02em; }
.logo-mark { width: 34px; height: 34px; flex: none; }
.boot { display: grid; place-items: center; min-height: 80vh; } .boot .logo-mark { width: 56px; height: 56px; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .55; } }
.swoosh { display: block; width: 170px; height: 12px; color: var(--sage); margin-top: .2rem; }

/* ---------- App layout ---------- */
.app-layout { min-height: 100vh; padding-bottom: 84px; }
.app-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: .6rem; padding: .6rem 1rem; background: rgba(250, 249, 246, .96); border-bottom: 1px solid var(--line); }
.app-logo { text-decoration: none; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: .35rem; }
.family-select { width: auto; min-height: 38px; max-width: 46vw; font-weight: 600; font-size: .9rem; }
.bell .count { position: absolute; top: 5px; right: 4px; background: var(--critical); color: #fff; font-size: .66rem; font-weight: 700; border-radius: 999px; min-width: 17px; height: 17px; display: grid; place-items: center; padding: 0 4px; border: 2px solid var(--cream); }
.avatar-link { text-decoration: none; }
.side-nav { display: none; }
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; display: grid; grid-template-columns: repeat(5, 1fr); background: #fff; border-top: 1px solid var(--line); padding: .3rem .3rem calc(.3rem + env(safe-area-inset-bottom)); box-shadow: 0 -4px 16px rgba(36, 51, 45, .04); }
.bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .35rem 0; font-size: .72rem; color: var(--muted); text-decoration: none; border-radius: 12px; min-height: 54px; justify-content: center; font-weight: 500; }
.bottom-nav a .icon { width: 1.45em; height: 1.45em; }
.bottom-nav a.active { color: var(--green); font-weight: 700; }
.app-main { padding: 1.1rem 1rem 2rem; max-width: 1180px; margin: 0 auto; outline: none; }
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; }
.page-head h1 { margin: 0; }
.mobile-head { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; margin: -.2rem 0 1rem; }
.mobile-head h1 { text-align: center; font-size: 1.2rem; margin: 0; }
.back-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: var(--text); text-decoration: none; }
.back-btn:hover { background: var(--mint); }
.eyebrow { color: var(--muted); font-weight: 500; font-size: .92rem; margin-bottom: .2rem; }
.greeting { font-size: 1.65rem; margin: 0 0 .25rem; }
.subtitle { color: var(--muted); margin: 0 0 1.2rem; font-size: .95rem; }
.chips { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.chip { border: 1.5px solid var(--line-strong); background: #fff; border-radius: 999px; padding: .4rem 1rem; font: inherit; font-weight: 600; cursor: pointer; min-height: 40px; color: var(--text); }
.chip.active { background: var(--green); border-color: var(--green); color: #fff; }
.segmented { display: flex; gap: .25rem; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: .25rem; margin-bottom: 1rem; }
.segmented a { flex: 1; text-align: center; padding: .5rem .6rem; border-radius: 9px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: .9rem; }
.segmented a.active { background: var(--mint); color: var(--green); }
.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--line); margin-bottom: 1rem; overflow-x: auto; }
.tabs a { padding: .6rem .9rem; text-decoration: none; color: var(--muted); font-weight: 600; border-bottom: 2.5px solid transparent; white-space: nowrap; }
.tabs a.active { color: var(--green); border-color: var(--green); }
.back { display: inline-block; margin-bottom: .8rem; text-decoration: none; font-weight: 600; }
.menu-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.menu-list a { display: flex; gap: .8rem; align-items: center; padding: .95rem 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-s); text-decoration: none; color: var(--text); font-weight: 600; }
.fab-bar { position: fixed; left: 0; right: 0; bottom: calc(66px + env(safe-area-inset-bottom)); padding: .6rem 1rem; z-index: 15; background: linear-gradient(rgba(250,249,246,0), var(--cream) 35%); }
.fab-bar .btn { width: 100%; min-height: 50px; border-radius: 14px; }
.has-fab { padding-bottom: 72px; }
.section-title { font-size: 1rem; margin: 1.4rem 0 .7rem; color: var(--text); }

/* Dashboard */
.parent-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .7rem; margin-bottom: 1rem; }
.parent-mini { display: flex; align-items: center; gap: .75rem; padding: .85rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); text-decoration: none; color: var(--text); }
.parent-mini:hover { background: var(--mint-50); color: var(--text); }
.parent-mini .pm-name { font-weight: 700; font-size: 1.05rem; }
@media (max-width: 719px) {
  .parent-mini { padding: .7rem; gap: .6rem; align-items: flex-start; }
  .parent-mini .avatar-lg { width: 42px; height: 42px; font-size: 1rem; }
  .parent-mini .avatar-check { width: 18px; height: 18px; }
  .pm-status { font-size: .74rem; align-items: flex-start; line-height: 1.3; } .pm-status .icon { width: 13px; height: 13px; margin-top: .1rem; }
  .pm-time { display: none; }
}
.pm-status { display: flex; align-items: center; gap: .3rem; font-size: .82rem; font-weight: 600; color: var(--success); }
.pm-status .icon { width: 15px; height: 15px; }
.pm-status.is-missing { color: var(--muted); } .pm-status.is-warn { color: #A26B0C; } .pm-status.is-critical { color: var(--critical); } .pm-status.is-info { color: var(--info); }
.pm-time { font-size: .8rem; color: var(--muted); }
.pm-chev { margin-left: auto; color: var(--muted); }
.summary-card { background: var(--mint); border: 1px solid #D3E5DA; border-radius: var(--radius); padding: 1rem 1.1rem; }
.summary-card h3 { display: flex; align-items: center; gap: .5rem; font-size: 1.05rem; margin-bottom: .4rem; }
.summary-card h3 .icon { color: var(--green); width: 1.5em; height: 1.5em; }
.summary-card p { margin: 0; color: #3A4A43; }
.today-list { list-style: none; margin: 0; padding: 0; }
.today-list li { display: flex; align-items: center; gap: .75rem; padding: .7rem 0; border-top: 1px solid var(--line); }
.today-list li:first-child { border-top: 0; }
.today-title { flex: 1; font-weight: 550; min-width: 0; }
.today-time { color: var(--muted); font-size: .88rem; white-space: nowrap; min-width: 4.5rem; }
.today-warn { color: var(--warning); }
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.quick { display: grid; justify-items: center; gap: .4rem; text-align: center; padding: 1rem .5rem; border: 1px solid var(--line); border-radius: 14px; background: #fff; text-decoration: none; color: var(--text); font-size: .86rem; font-weight: 550; cursor: pointer; font-family: inherit; }
.quick:hover { background: var(--mint-50); border-color: var(--sage); color: var(--text); }
.quick .icon { width: 26px; height: 26px; color: var(--green); }
.activity { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.activity li { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); padding-bottom: .5rem; font-size: .93rem; }
.activity li:last-child { border-bottom: 0; }
.activity time { white-space: nowrap; }
.disclaimer { margin-top: 1.5rem; }
.comments { list-style: none; padding: 0; margin: 0 0 .8rem; display: grid; gap: .6rem; }
.comments p { margin: .2rem 0 0; }
.parent-hero { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.parent-hero h1 { margin: 0; }

/* Medication hero (parent "Vreme je za terapiju") */
.med-hero { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 1.5rem 1.2rem; text-align: center; box-shadow: var(--shadow); display: grid; gap: .7rem; justify-items: center; }
.med-hero .pill-big { width: 84px; height: 84px; border-radius: 50%; background: var(--pink); color: var(--pink-ink); display: grid; place-items: center; }
.med-hero .pill-big .icon { width: 44px; height: 44px; stroke-width: 2; }
.med-hero h2 { font-size: 1.3em; margin: 0; }
.med-hero .med-name { font-size: 1.1em; color: #3A4A43; }

/* Agenda / calendar */
.month-nav { display: flex; align-items: center; justify-content: space-between; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: .4rem; margin-bottom: 1rem; }
.month-nav strong { font-size: 1.05rem; text-transform: capitalize; }
.agenda { display: grid; gap: 1rem; } .agenda-day h2 { margin-bottom: .5rem; font-size: .92rem; color: var(--muted); font-weight: 600; text-transform: capitalize; }
.day-badge { width: 44px; height: 44px; border-radius: 12px; background: var(--info-bg); color: var(--info); display: grid; place-items: center; font-weight: 700; flex: none; line-height: 1; }
.day-badge small { display: block; font-size: .62rem; font-weight: 600; text-transform: uppercase; margin-top: 2px; }

/* Chat */
.chat-head { display: flex; align-items: center; gap: .75rem; padding: .8rem 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: .8rem; }
.chat-head .row-icon { width: 40px; height: 40px; }
.chat { display: flex; flex-direction: column; gap: .7rem; padding: .4rem 0 1rem; min-height: 40vh; }
.msg { display: flex; align-items: flex-end; gap: .5rem; max-width: 86%; }
.msg.mine { align-self: flex-end; flex-direction: row-reverse; }
.bubble { background: #fff; border: 1px solid var(--line); border-radius: 16px 16px 16px 6px; padding: .6rem .8rem .45rem; box-shadow: var(--shadow); min-width: 120px; }
.msg.mine .bubble { background: var(--mint); border-color: #D3E5DA; border-radius: 16px 16px 6px 16px; }
.bubble .who { font-weight: 700; font-size: .85rem; margin-bottom: .1rem; }
.bubble .text { white-space: pre-wrap; word-wrap: break-word; }
.bubble time { display: block; text-align: right; font-size: .72rem; color: var(--muted); margin-top: .2rem; }
.composer { position: sticky; bottom: calc(70px + env(safe-area-inset-bottom)); display: flex; gap: .5rem; align-items: center; background: var(--cream); padding: .5rem 0; }
.composer input { border-radius: 999px; min-height: 48px; padding-left: 1.1rem; }
.send-btn { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--green); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; }
.send-btn .icon { width: 22px; height: 22px; }
.chat-day { align-self: center; font-size: .75rem; color: var(--muted); background: var(--neutral-bg); padding: .15rem .6rem; border-radius: 999px; }

/* Pricing */
.price-panel { background: var(--green); border-radius: 22px; padding: 1.2rem; color: #fff; display: grid; gap: .9rem; }
.price-panel .brand { color: #fff; }
.price-panel .logo-mark rect { fill: #2E6D58; }
.pricing { display: grid; gap: .9rem; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1.2rem 1.3rem; display: grid; gap: .5rem; align-content: start; color: var(--text); }
.plan h3 { margin: 0; font-size: 1.15rem; display: flex; align-items: center; gap: .4rem; }
.plan ul { list-style: none; padding: 0; margin: .2rem 0 .6rem; display: grid; gap: .4rem; }
.plan li { display: flex; gap: .5rem; align-items: flex-start; font-size: .93rem; }
.plan li .icon { color: var(--success); width: 18px; height: 18px; margin-top: .1rem; stroke-width: 2.6; }
.plan-basic { background: var(--mint); border-color: #D3E5DA; }
.plan-premium { background: var(--beige-50); border-color: var(--beige); }
.plan-muted { background: #F4F5F3; }
.crown { color: #D69E36; }
.price { font-size: 2rem; font-weight: 800; margin: 0; color: var(--text); letter-spacing: -.02em; } .price span { font-size: .95rem; font-weight: 500; color: var(--muted); }
.sandbox-card { border: 2px dashed var(--warning); max-width: 560px; }
.sandbox-label { display: inline-block; background: var(--warning); color: #fff; font-weight: 800; letter-spacing: .12em; padding: .2rem .6rem; border-radius: 6px; }

/* Auth & onboarding */
.auth-page, .onb-page, .center-page { min-height: 100vh; display: grid; place-items: start center; padding: 2rem 1rem 6rem; position: relative; overflow: hidden; }
.center-page { place-items: center; text-align: center; }
.auth-card, .onb-card { width: 100%; max-width: 440px; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 1.8rem 1.5rem; box-shadow: var(--shadow-lg); display: grid; gap: 1rem; position: relative; z-index: 1; }
.onb-card { max-width: 580px; }
.auth-logo { text-decoration: none; justify-self: start; }
.auth-links { text-align: center; font-size: .92rem; }
.lang-picker { display: inline-flex; align-items: center; gap: .35rem; color: var(--green); }
.lang-picker .icon { width: 18px; height: 18px; flex: none; }
.lang-select { min-height: 38px; font-size: .88rem; width: auto; padding: .3rem .6rem; font-weight: 600; }
.auth-top { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; display: inline-flex; align-items: center; gap: .35rem; min-height: 42px; padding: .4rem .7rem; border-radius: 10px; cursor: pointer; font-weight: 700; color: var(--green); border: 1.5px solid var(--line-strong); background: #fff; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary .icon { width: 18px; height: 18px; }
.lang-menu[open] summary { border-color: var(--green); }
.lang-menu-list { position: absolute; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); padding: .35rem; display: grid; min-width: 200px; z-index: 30; }
.lang-menu-list a { padding: .55rem .75rem; border-radius: 8px; text-decoration: none; color: var(--text); font-weight: 500; }
.lang-menu-list a:hover { background: var(--mint); }
.lang-menu-list a[aria-current] { font-weight: 700; color: var(--green); background: var(--mint-50); }
.onb-progress { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; align-items: center; }
.onb-progress > span:not(.onb-step-label) { height: 6px; border-radius: 3px; background: var(--line); }
.onb-progress > span.done { background: var(--green); }
.onb-step-label { grid-column: 1 / -1; font-size: .8rem; color: var(--muted); }
.choice-grid { display: grid; gap: .8rem; }
.choice { display: grid; gap: .3rem; text-align: left; padding: 1.1rem; border: 1.5px solid var(--line); border-radius: var(--radius); background: #fff; font: inherit; cursor: pointer; color: var(--text); }
button.choice:hover { border-color: var(--green); background: var(--mint-50); }
.choice span { color: var(--muted); }
.hills { position: absolute; left: 0; right: 0; bottom: 0; height: 160px; pointer-events: none; z-index: 0; }
.hills svg { width: 100%; height: 100%; display: block; }

/* Admin */
.admin-layout { min-height: 100vh; }
.admin-tabs { padding: 0 1rem; background: #fff; }
.admin-main { padding: 1rem; max-width: 1200px; margin: 0 auto; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .8rem; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; display: grid; gap: .15rem; }
.stat-label { font-size: .8rem; color: var(--muted); font-weight: 600; } .stat-value { font-size: 1.5rem; font-weight: 800; color: var(--green); }
.bars { display: grid; grid-template-columns: repeat(8, 1fr); gap: .5rem; align-items: end; height: 170px; }
.bar-col { display: grid; gap: .2rem; justify-items: center; align-content: end; height: 100%; }
.bar { width: 70%; background: var(--green); border-radius: 6px 6px 0 0; min-height: 3px; }
.bar-h0 { height: 3px; } .bar-h1 { height: 12px; } .bar-h2 { height: 24px; } .bar-h3 { height: 36px; } .bar-h4 { height: 48px; } .bar-h5 { height: 60px; }
.bar-h6 { height: 72px; } .bar-h7 { height: 84px; } .bar-h8 { height: 96px; } .bar-h9 { height: 108px; } .bar-h10 { height: 120px; }
.consent-table td { text-align: center; } .consent-table th[scope=row] { min-width: 9rem; }
.danger-zone { border-top: 1px solid var(--critical-bg); margin-top: 1.2rem; padding-top: 1rem; }
.invite-card { margin-top: 1rem; background: var(--mint-50); }
.code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.3rem; font-weight: 700; letter-spacing: .08em; color: var(--green); }
.sub-details { margin-top: .8rem; }
.sub-details summary { cursor: pointer; font-weight: 650; color: var(--green); padding: .3rem 0; }

/* ---------- Parent (simplified) mode ---------- */
body.parent-mode { font-size: 20px; background: var(--cream); }
body.scale-115 { font-size: 23px; } body.scale-13 { font-size: 26px; } body.scale-15 { font-size: 30px; }
.parent-app { max-width: 560px; margin: 0 auto; padding: 0 1rem 7rem; }
.parent-header { display: flex; align-items: center; justify-content: center; padding: 1.1rem 0 .6rem; position: relative; }
.parent-header .brand { font-size: 1.05em; }
.parent-back { position: absolute; left: 0; font-weight: 700; font-size: .95em; text-decoration: none; padding: .5rem .2rem; }
.parent-main h1 { font-size: 1.75em; color: #17302A; text-align: center; margin: .6rem 0 1rem; }
.parent-hello { font-size: .9em; color: var(--muted); font-weight: 500; margin: .4rem 0 0; text-align: center; }
.parent-sub { color: #3E4D47; }
.big-grid { display: grid; gap: .8rem; }
.big-btn { display: flex; align-items: center; gap: .9rem; width: 100%; min-height: 72px; padding: .9rem 1.2rem; font: inherit; font-size: 1.02em; font-weight: 650; text-align: left;
  color: #1E3A5A; background: var(--blue-btn); border: 0; border-radius: 16px; cursor: pointer; text-decoration: none; box-shadow: 0 1px 2px rgba(36,51,45,.06); }
.big-btn .icon { width: 1.5em; height: 1.5em; stroke-width: 2.1; color: var(--blue-ink); }
.big-btn:hover { filter: brightness(.97); color: #1E3A5A; }
.big-btn:disabled { opacity: .6; }
.big-ok { background: var(--green-400); color: #fff; } .big-ok .icon { color: #fff; } .big-ok:hover { color: #fff; }
.big-help, .big-warn { background: #F7E4C3; color: #5C3A06; } .big-help .icon, .big-warn .icon { color: #C27A12; } .big-help:hover, .big-warn:hover { color: #5C3A06; }
.big-grey { background: #EEF1EF; color: var(--text); } .big-grey .icon { color: var(--muted); }
.big-secondary { background: #fff; border: 2px solid var(--green); color: var(--green); justify-content: center; } .big-secondary .icon { color: var(--green); }
.big-center { justify-content: center; }
.parent-link { background: none; border: 0; font: inherit; font-size: .9em; color: var(--green); font-weight: 650; text-decoration: underline; padding: .8rem 0; cursor: pointer; text-align: center; display: block; margin: 0 auto; }
.parent-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: #fff; border-top: 1px solid var(--line); display: flex; justify-content: center; padding-bottom: env(safe-area-inset-bottom); }
.parent-bar-inner { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; width: 100%; max-width: 560px; }
.parent-bar a { display: grid; justify-items: center; gap: .1rem; padding: .7rem .3rem; text-decoration: none; color: var(--text); font-size: .7em; font-weight: 600; position: relative; }
.parent-bar a + a { border-left: 1px solid var(--line); }
.parent-bar .icon { width: 1.5em; height: 1.5em; }
.parent-bar .aa { font-weight: 800; font-size: 1.15em; line-height: 1.3em; letter-spacing: -.04em; }
.parent-bar .count-dot { position: absolute; top: .4rem; right: 30%; }
.parent-label { font-weight: 700; }
.parent-textarea { font-size: 1em; border-width: 2px; }
.parent-notice { background: #EEF1EF; border-radius: 12px; padding: .8rem 1rem; font-size: .8em; color: #3E4D47; }
.parent-thanks { text-align: center; display: grid; gap: 1rem; justify-items: center; padding-top: 2rem; }
.thanks-mark { width: 96px; height: 96px; border-radius: 50%; background: var(--success-bg); display: grid; place-items: center; color: var(--success); }
.thanks-mark .icon { width: 56px; height: 56px; stroke-width: 2.6; }
.dose-list, .call-list, .sched-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .8rem; }
.dose { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: .9rem 1rem; display: flex; align-items: center; gap: .9rem; }
.dose .row-icon { width: 2.3em; height: 2.3em; }
.dose-info { flex: 1; display: grid; gap: .05rem; } .dose-time { font-weight: 800; color: var(--green); } .dose-name { font-weight: 700; } .dose-dosage { color: #3E4D47; font-size: .9em; }
.dose-taken { background: var(--success-bg); border-color: #BFE1CD; }
.dose .check-circle { width: 1.8em; height: 1.8em; }
.call-btn span { display: grid; } .call-btn small { font-weight: 500; font-size: .78em; color: #3E4D47; }
.sched-list li { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: .9rem 1rem; }
.ok-text { color: var(--success); font-weight: 800; }

/* ---------- Landing ---------- */
.landing { background: var(--cream); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 1.2rem; } .wrap.narrow, .narrow { max-width: 780px; }
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(250, 249, 246, .95); border-bottom: 1px solid var(--line); }
.site-header .row { justify-content: space-between; gap: 1rem; min-height: 68px; }
.site-nav { display: none; gap: 1.6rem; } .site-nav a { text-decoration: none; color: var(--text); font-weight: 600; font-size: .95rem; }
section { padding: 3rem 0; }
.app section:not(.card), .parent-app section:not(.card) { padding: 0; }
.dash { display: grid; gap: 1rem; }
.display { font-family: var(--serif); font-weight: 700; color: #17302A; letter-spacing: -.02em; line-height: 1.12; }
.hero { padding: 2.5rem 0 0; position: relative; overflow: hidden; }
.hero-grid { display: grid; gap: 2rem; align-items: center; position: relative; z-index: 1; }
.hero h1 { font-size: 2.2rem; margin-bottom: .2rem; }
.hero .swoosh { width: 220px; margin-bottom: 1.2rem; }
.hero-checks { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; margin-top: 1rem; font-size: .9rem; color: var(--muted); list-style: none; padding: 0; }
.hero-checks li { display: flex; gap: .35rem; align-items: center; } .hero-checks .icon { color: var(--success); width: 18px; height: 18px; stroke-width: 2.6; }
.hero-visual { position: relative; min-height: 420px; }
.hero-photo { width: 100%; height: 100%; min-height: 420px; object-fit: cover; border-radius: 28px; display: block; box-shadow: var(--shadow-lg); }
.hero-phone { position: absolute; right: -10px; bottom: -24px; width: 190px; display: none; z-index: 3; }
.hero-hills { height: 120px; margin-top: -40px; position: relative; z-index: 0; }
.hero-hills svg { width: 100%; height: 100%; display: block; }
.feature-icons { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; }
.fi { display: grid; justify-items: center; gap: .45rem; text-align: center; padding: 1rem .6rem; border-radius: 18px; background: var(--mint); color: var(--text); font-weight: 600; font-size: .9rem; }
.fi .icon { width: 30px; height: 30px; color: var(--green); }
.band { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band-green { background: var(--green); color: #fff; } .band-green .display { color: #fff; } .band-green .lead { color: var(--mint); }
.split { display: grid; gap: 2rem; align-items: center; }
.photo { width: 100%; border-radius: 24px; display: block; object-fit: cover; box-shadow: var(--shadow); }
.photo-tall { aspect-ratio: 4 / 5; } .photo-wide { aspect-ratio: 16 / 10; }
.problem-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .8rem; }
.problem-list li { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: .9rem 1rem; }
.problem-list strong { display: block; margin-bottom: .15rem; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.steps li { display: flex; gap: 1rem; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1rem 1.1rem; }
.step-n { flex: none; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-weight: 800; }
.benefits { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.benefits li { display: flex; gap: .9rem; align-items: center; background: var(--mint-50); border: 1px solid #DCEAE1; border-radius: 16px; padding: .85rem 1rem; }
.benefits .icon { width: 30px; height: 30px; color: var(--green); flex: none; }
.benefits strong { display: block; } .benefits span { color: var(--muted); font-size: .92rem; }
.legend { list-style: none; padding: 0; display: grid; gap: .6rem; }
.checks { list-style: none; padding: 0; display: grid; gap: .6rem; }
.checks li { padding-left: 1.8rem; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 800; }
.early { background: var(--beige-50); border: 1px solid var(--beige); border-radius: 28px; overflow: hidden; display: grid; }
.early-body { padding: 1.8rem 1.5rem; align-self: center; }
.early-points { list-style: none; padding: 0; margin: 1.2rem 0; display: grid; gap: .8rem; }
.early-points li { display: flex; gap: .9rem; align-items: center; font-weight: 650; font-size: 1.08rem; }
.early-points .row-icon { width: 52px; height: 52px; border-radius: 14px; }
.early-photo { min-height: 280px; width: 100%; height: 100%; object-fit: cover; display: block; }
.mt-l { margin-top: 1.6rem; } .heart-title { margin-top: 1.4rem; font-size: 1.5rem; } .panel-note { color: #E4EFE8; margin: 0; } .final-inner { position: relative; z-index: 1; }
.faq { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: .95rem 1.1rem; margin-bottom: .6rem; }
.faq summary { cursor: pointer; font-weight: 650; }
.faq p { margin: .7rem 0 0; color: var(--muted); }
.final-cta { background: var(--green); color: #fff; position: relative; overflow: hidden; padding-bottom: 5rem; }
.final-cta .display { color: #fff; font-size: 1.9rem; } .final-cta .lead { color: var(--mint); }
.final-cta .hills { height: 110px; opacity: .55; }
.site-footer { padding: 2.5rem 0 3rem; border-top: 1px solid var(--line); font-size: .93rem; background: #fff; }
.footer-grid { display: grid; gap: 1.5rem; margin-bottom: 1.5rem; } .footer-grid h3 { font-size: 1rem; }
.lang-switch { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1rem; }
.lang-switch a[aria-current] { font-weight: 800; text-decoration: none; color: var(--text); }
.legal { padding-top: 2rem; padding-bottom: 3rem; }
.hide-sm { display: none; }

/* Phone mockup (landing previews, pure HTML) */
.phone { background: #1d2522; border-radius: 34px; padding: 9px; box-shadow: var(--shadow-lg); aspect-ratio: 9 / 18.5; display: flex; width: 100%; max-width: 270px; margin: 0 auto; }
.phone-screen { background: var(--cream); border-radius: 27px; overflow: hidden; padding: 1.5rem .7rem .9rem; font-size: 11px; position: relative; flex: 1; min-width: 0; }
.phone-screen::before { content: ""; position: absolute; top: 7px; left: 50%; transform: translateX(-50%); width: 34%; height: 13px; background: #1d2522; border-radius: 999px; }
.phone-screen .brand { font-size: 12px; } .phone-screen .logo-mark { width: 20px; height: 20px; }
.ps-title { font-weight: 800; font-size: 15px; margin: .6rem 0 .1rem; }
.ps-sub { color: var(--muted); font-size: 10px; margin-bottom: .6rem; }
.ps-parents { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; margin-bottom: .5rem; }
.ps-parent { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .45rem; display: grid; justify-items: center; text-align: center; gap: .2rem; }
.ps-parent .avatar { width: 26px; height: 26px; font-size: 10px; }
.ps-parent b { display: block; font-size: 11px; } .ps-parent i { font-style: normal; color: var(--success); font-weight: 600; font-size: 9px; }
.ps-row { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: .45rem .55rem; display: flex; gap: .5rem; align-items: center; margin-bottom: .35rem; }
.ps-row .icon { width: 16px; height: 16px; color: var(--green); }
.ps-row b { display: block; font-size: 11px; } .ps-row span { color: var(--muted); font-size: 9.5px; } .ps-row span.red { color: var(--critical); font-weight: 600; }
.ps-big { border-radius: 10px; padding: .6rem .7rem; font-weight: 700; font-size: 11.5px; margin-bottom: .35rem; display: flex; gap: .4rem; align-items: center; background: var(--blue-btn); color: #1E3A5A; }
.ps-big.ok { background: var(--green-400); color: #fff; } .ps-big.help { background: #F7E4C3; color: #5C3A06; }
.ps-big .icon { width: 15px; height: 15px; }
.ps-q { text-align: center; font-weight: 800; font-size: 16px; margin: .7rem 0 .7rem; }

/* ---------- Larger screens ---------- */
@media (min-width: 720px) {
  h1 { font-size: 1.95rem; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .pricing { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .choice-grid { grid-template-columns: 1fr 1fr; }
  .hide-sm { display: inline-flex; }
  .hero h1 { font-size: 3rem; }
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .hero-phone { display: block; width: 215px; right: auto; left: -105px; bottom: -36px; }
  .hero-phone .phone { max-width: none; }
  .hero-visual { min-height: 480px; }
  .hero-photo { min-height: 480px; }
  .hero-grid > :first-child { position: relative; z-index: 2; padding-right: 60px; }
  .split { grid-template-columns: 1fr 1fr; gap: 3rem; }
  .split.reverse > :first-child { order: 2; }
  .feature-icons { grid-template-columns: repeat(5, 1fr); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
  .site-nav { display: flex; }
  .toast { bottom: 24px; }
  .early { grid-template-columns: 1.1fr .9fr; }
  .display-xl { font-size: 2.6rem; }
}
@media (min-width: 1000px) {
  .only-desktop { display: revert !important; }
  .only-mobile { display: none !important; }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .app-layout { display: grid; grid-template-columns: 250px 1fr; grid-template-rows: auto 1fr; padding-bottom: 0; background: linear-gradient(90deg, var(--green) 0 250px, var(--cream) 250px); }
  .app-layout > .app-header { grid-column: 2; background: transparent; border-bottom: 0; padding: 1rem 2rem 0; position: static; }
  .app-layout > .app-header .app-logo { display: none; }
  .side-nav { display: flex; flex-direction: column; gap: .15rem; padding: 1.2rem .8rem; background: var(--green); grid-row: 1 / span 2; grid-column: 1; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
  .side-nav .side-logo { padding: .2rem .6rem 1.4rem; text-decoration: none; }
  .side-nav .side-logo .brand { color: #fff; }
  .side-nav .side-logo .logo-mark rect { fill: #2E6D58; }
  .side-nav a.nav-item { display: flex; gap: .75rem; align-items: center; padding: .62rem .8rem; border-radius: 10px; color: #E8F1EC; text-decoration: none; font-weight: 500; font-size: .94rem; }
  .side-nav a.nav-item .icon { width: 1.2em; height: 1.2em; opacity: .95; }
  .side-nav a.nav-item:hover { background: rgba(255, 255, 255, .08); color: #fff; }
  .side-nav a.nav-item.active { background: rgba(228, 239, 232, .18); color: #fff; font-weight: 650; }
  .side-nav .side-sep { height: 1px; background: rgba(255, 255, 255, .15); margin: .8rem .6rem; }
  .side-nav .nav-count { margin-left: auto; }
  .bottom-nav, .fab-bar { display: none; }
  .has-fab { padding-bottom: 0; }
  .mobile-head { display: none; }
  .app-main { padding: .4rem 2rem 3rem; width: 100%; }
  .greeting { font-size: 2rem; }
  .dash-top { display: grid; grid-template-columns: 1fr 1fr .9fr; gap: 1rem; margin-bottom: 1rem; }
  .dash-top .parent-row { display: contents; }
  .dash-main { display: grid; grid-template-columns: 1.45fr 1fr; gap: 1rem; align-items: start; }
  .hero h1 { font-size: 2.65rem; }
}
@media (max-width: 999px) { .only-desktop-flex { display: none !important; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media print { .app-header, .side-nav, .bottom-nav, .site-header, .fab-bar { display: none; } }

/* Install app (PWA) */
[data-install][hidden] { display: none !important; }
.install-banner { display: flex; align-items: center; gap: .8rem; background: #fff; border: 1.5px solid var(--sage); border-radius: var(--radius); padding: .8rem .9rem; box-shadow: var(--shadow); }
.install-banner img { border-radius: 10px; flex: none; }
.install-banner .row-body strong { font-size: .95rem; }
.install-dialog { text-align: center; }
.install-icon { border-radius: 16px; display: block; margin: 0 auto .6rem; box-shadow: var(--shadow); }
.install-steps { text-align: left; padding-left: 1.3rem; margin: 1rem 0 1.2rem; display: grid; gap: .6rem; }
.install-steps li { padding-left: .2rem; }
.install-hero { margin-top: .8rem; }
.center-row { justify-content: center; }

/* ---------- Owner dashboard ---------- */
.owner-hero h1 { font-family: "MR Serif", Georgia, serif; font-size: 1.9rem; margin: 0; color: var(--green); }
.owner-hero p { margin: .2rem 0 0; color: var(--muted); }
.kpi-title { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 .5rem; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .8rem; }
.kpi { display: flex; gap: .8rem; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1rem; }
.kpi > div { display: grid; gap: .1rem; min-width: 0; }
.kpi-ic { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: #EEF3EF; color: var(--green); }
.kpi-label { font-size: .85rem; color: var(--muted); font-weight: 600; }
.kpi-value { font-size: 1.7rem; font-weight: 800; color: var(--ink, #1f2a26); line-height: 1.1; }
.kpi.k-green .kpi-ic { background: var(--green); color: #fff; }
.kpi.k-gold .kpi-ic { background: #F6EBD6; color: #9A6B12; }
.kpi.k-warn { border-color: #E9B44C; } .kpi.k-warn .kpi-ic { background: #FDF1D8; color: #9A6B12; }
.owner-recent li { padding: .55rem 0; border-bottom: 1px solid var(--line); } .owner-recent li:last-child { border-bottom: 0; }
.right { text-align: right; }
.bar-n { text-align: center; }
@media (max-width: 640px) {
  .kpis { grid-template-columns: 1fr 1fr; gap: .6rem; }
  .kpi { flex-direction: column; gap: .5rem; padding: .8rem; }
  .kpi-ic { width: 34px; height: 34px; border-radius: 10px; }
  .kpi-value { font-size: 1.4rem; }
  .admin-layout .app-header strong { display: none; }
}
