/* Homebase on a laptop. Map first, with floating panels. White by default (neutral greys, one warm amber accent); dark if you choose it. */
:root { --bg: #f6f6f7; --surface: #ffffff; --surface2: #efeff2; --glass: rgba(255,255,255,.97); --ink: #17171a; --muted: #62626b; --line: rgba(20,20,26,.10);
  --accent: #a96a0e; --accent-ink: #fff; --accent-soft: rgba(169,106,14,.11); --ok: #18a46a; --warn: #c98a09; --bad: #e0414a; --shadow: 0 14px 44px rgba(20,20,26,.16); --r: 22px; color-scheme: light; }
:root[data-theme="dark"] { --bg: #0c0c0d; --surface: #18181b; --surface2: #222227; --glass: rgba(21,21,24,.985); --ink: #f5f5f7; --muted: #aeaeb8; --line: rgba(255,255,255,.12);
  --accent: #e6b866; --accent-ink: #1b1306; --accent-soft: rgba(230,184,102,.15); --ok: #4ade94; --warn: #f2b640; --bad: #ff7b80; --shadow: 0 18px 50px rgba(0,0,0,.6); color-scheme: dark; }
@media (prefers-color-scheme: dark) { :root[data-theme="auto"] { --bg: #0c0c0d; --surface: #18181b; --surface2: #222227; --glass: rgba(21,21,24,.985); --ink: #f5f5f7; --muted: #aeaeb8; --line: rgba(255,255,255,.12);
  --accent: #e6b866; --accent-ink: #1b1306; --accent-soft: rgba(230,184,102,.15); --ok: #4ade94; --warn: #f2b640; --bad: #ff7b80; --shadow: 0 18px 50px rgba(0,0,0,.6); color-scheme: dark; } }
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; background: var(--bg); color: var(--ink); font-family: Inter, "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; -webkit-font-smoothing: antialiased; font-size: 16px; line-height: 1.45; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
small { font-size: 13.5px; color: var(--muted); }

/* controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 14px; background: var(--surface2); border: 1px solid var(--line); font-weight: 600; font-size: 15px; text-decoration: none; color: var(--ink); transition: background .15s, transform .12s; white-space: nowrap; }
.btn:hover:not(:disabled) { background: var(--accent-soft); } .btn:active:not(:disabled) { transform: scale(.97); }
.btn.solid { background: var(--accent); color: var(--accent-ink); border-color: transparent; } .btn.solid:hover:not(:disabled) { filter: brightness(1.08); background: var(--accent); }
.btn.bad { color: var(--bad); } .btn.sm { padding: 8px 14px; font-size: 14px; border-radius: 12px; } .btn:disabled { opacity: .4; cursor: not-allowed; }
.link { color: var(--muted); text-decoration: underline; padding: 8px; }
.field { width: 100%; padding: 13px 15px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface2); outline: none; transition: border-color .15s; }
.field:focus { border-color: var(--accent); }
label.l { display: block; font-size: 14px; font-weight: 600; margin: 16px 0 7px; }
.tg { flex: none; position: relative; width: 52px; height: 30px; border-radius: 99px; background: color-mix(in srgb, var(--muted) 45%, transparent); transition: background .2s; }
.tg::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.3); transition: transform .2s; }
.tg.on { background: var(--ok); } .tg.on::after { transform: translateX(22px); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 99px; font-size: 13px; font-weight: 600; background: var(--surface2); border: 1px solid var(--line); color: var(--muted); }
.chip.warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 40%, transparent); }

/* sign in */
#auth { min-height: 100%; display: grid; place-items: center; padding: 24px; background: radial-gradient(900px 500px at 50% -10%, var(--accent-soft), transparent 70%), var(--bg); }
.authbox { width: min(480px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: clamp(24px, 5vw, 40px); box-shadow: var(--shadow); }
.authbox .logo { font-size: 46px; } .authbox h1 { font-size: clamp(30px, 6vw, 40px); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; margin-top: 10px; }
.authbox .tag { margin-top: 10px; color: var(--muted); font-size: 17px; line-height: 1.5; }
.authbox .stack { margin-top: 26px; display: grid; gap: 10px; } .authbox .stack .btn { padding: 15px; font-size: 16px; }
.emojis { display: flex; gap: 8px; flex-wrap: wrap; } .emojis button { width: 48px; height: 48px; border-radius: 14px; border: 2px solid transparent; background: var(--surface2); font-size: 24px; } .emojis button.on { border-color: var(--accent); background: var(--accent-soft); }
.note { border-radius: 18px; padding: 16px 18px; background: var(--surface2); }
.note h4 { font-size: 15px; margin-bottom: 8px; } .note ul { list-style: none; display: grid; gap: 7px; font-size: 15px; }
.note.yes { background: color-mix(in srgb, var(--ok) 11%, var(--surface)); } .note.no { background: color-mix(in srgb, var(--bad) 10%, var(--surface)); }
.err { color: var(--bad); margin-top: 12px; min-height: 22px; font-size: 14.5px; }

/* the map is the app */
#app { position: fixed; inset: 0; } #map { position: fixed; inset: 0; z-index: 0; background: #dfe4ec; }
.leaflet-container { font-family: inherit; }
#map.dark .leaflet-tile { filter: invert(1) grayscale(1) brightness(1.18) contrast(1.12); }
.leaflet-control-attribution { font-size: 11px !important; background: color-mix(in srgb, var(--glass) 90%, transparent) !important; color: var(--muted) !important; border-radius: 8px 0 0 0; } .leaflet-control-attribution a { color: var(--muted) !important; }
.topbar { position: fixed; z-index: 20; top: 16px; left: 16px; right: 16px; display: flex; gap: 12px; align-items: center; pointer-events: none; }
.topbar > * { pointer-events: auto; } .topbar .grow { flex: 1; pointer-events: none; }
.pill { display: flex; align-items: center; gap: 4px; padding: 6px; background: var(--glass); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.brand { padding: 10px 16px; gap: 10px; font-size: 17px; } .brand b { letter-spacing: -.02em; } .brand small { font-size: 14px; }
.actions button { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 13px; font-weight: 600; font-size: 15px; transition: background .15s; }
.actions button:hover { background: var(--accent-soft); } .actions button.sos { color: var(--bad); } .actions .sep { width: 1px; height: 22px; background: var(--line); margin: 0 4px; }
.panel { position: fixed; z-index: 15; top: 84px; bottom: 16px; width: 380px; max-width: calc(100vw - 32px); overflow-y: auto; background: var(--glass); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
#side { left: 16px; padding: 14px; display: flex; flex-direction: column; gap: 14px; } #side > * { flex-shrink: 0; } #chat { right: 16px; width: 410px; display: flex; flex-direction: column; overflow: hidden; }
.sechead { display: flex; justify-content: space-between; align-items: center; padding: 4px 6px 0; } .sechead h3 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }

/* "you" card, with the one switch that matters */
.you { border-radius: 20px; padding: 16px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 14px; }
.you .head { display: flex; gap: 13px; align-items: center; } .you .head b { font-size: 18px; letter-spacing: -.01em; }
.shareline { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px; border-radius: 16px; background: var(--surface2); }
.shareline b { display: block; font-size: 16px; } .shareline small { display: block; margin-top: 2px; line-height: 1.35; }
.quick { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 14px; color: var(--muted); }

/* people */
.ava { flex: none; position: relative; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 27px; background: var(--surface2); box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px color-mix(in srgb, var(--muted) 35%, transparent); }
.ava.on { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--ok); } .ava.paused { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--warn); }
.person { border-radius: 20px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.person.open { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.prow { width: 100%; display: flex; align-items: center; gap: 14px; padding: 14px 16px; text-align: left; }
.pinfo { flex: 1; min-width: 0; } .pinfo b { display: block; font-size: 17px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .pinfo small { display: block; margin-top: 1px; }
.pacts { display: flex; gap: 8px; flex-wrap: wrap; padding: 0 16px 14px; } .pacts .btn { flex: 1 1 auto; }
.offrow { padding: 0 16px 12px; }
.place, .item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); font-size: 15px; }
.item input { width: 20px; height: 20px; accent-color: var(--accent); } .item.done span { text-decoration: line-through; color: var(--muted); }
.empty { color: var(--muted); font-size: 14.5px; padding: 6px; }

/* map dock + chat button */
.dock { position: fixed; z-index: 12; bottom: 22px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; padding: 6px; }
.dock button { padding: 10px 15px; border-radius: 13px; font-weight: 600; font-size: 14.5px; } .dock button:hover { background: var(--accent-soft); } .dock .sq { width: 42px; padding: 10px 0; font-size: 18px; line-height: 1; }
.fab { position: fixed; z-index: 14; right: 16px; bottom: 22px; display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-radius: 18px; background: var(--accent); color: var(--accent-ink); font-weight: 700; box-shadow: var(--shadow); }
.fab .n { background: var(--bad); color: #fff; border-radius: 99px; padding: 1px 8px; font-size: 13px; }
.chathead { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px 6px; } .chathead h2 { font-size: 20px; letter-spacing: -.02em; }
.thr { flex: none; display: flex; gap: 8px; padding: 10px 14px; overflow-x: auto; }
.thr button { flex: none; padding: 8px 15px; border-radius: 99px; background: var(--surface2); font-size: 14.5px; font-weight: 600; color: var(--muted); } .thr button.on { background: var(--accent); color: var(--accent-ink); }
.thr .n { margin-left: 6px; background: var(--bad); color: #fff; border-radius: 99px; padding: 0 7px; font-size: 12px; }
#msgs { flex: 1; overflow-y: auto; padding: 12px 16px; display: flex; flex-direction: column; gap: 9px; }
.b { max-width: 84%; padding: 10px 15px; border-radius: 20px; border-bottom-left-radius: 7px; font-size: 15.5px; line-height: 1.4; word-wrap: break-word; background: var(--surface); border: 1px solid var(--line); align-self: flex-start; }
.b.me { align-self: flex-end; background: var(--accent); color: var(--accent-ink); border: 0; border-bottom-left-radius: 20px; border-bottom-right-radius: 7px; }
.b small { display: block; margin-top: 3px; font-size: 12px; opacity: .65; color: inherit; } .b .who { font-weight: 700; margin: 0 0 3px; opacity: .8; font-size: 13px; }
.b.sys { align-self: center; background: none; border: 0; color: var(--muted); font-size: 13.5px; text-align: center; padding: 2px 8px; }
.b.sos { background: color-mix(in srgb, var(--bad) 16%, var(--surface)); border-color: var(--bad); color: var(--ink); } .b.sos.me { background: var(--bad); color: #fff; }
.b.loc { cursor: pointer; } .b.pending { opacity: .6; }
.composer { flex: none; display: flex; gap: 8px; padding: 14px; border-top: 1px solid var(--line); } .composer .field { border-radius: 99px; padding: 12px 18px; }
#offline { position: fixed; z-index: 30; top: 82px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; align-items: center; padding: 10px 18px; border-radius: 99px; background: var(--surface2); border: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: 14.5px; box-shadow: var(--shadow); }

/* dialogs, call, toasts */
#over { position: fixed; inset: 0; z-index: 2000; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,.62); padding: 16px; } #over.on { display: flex; }
.modal { width: min(520px, 100%); max-height: 92vh; overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 26px; box-shadow: var(--shadow); }
.modal h2 { font-size: 24px; letter-spacing: -.03em; margin-bottom: 4px; } .modal .sub { color: var(--muted); font-size: 15px; margin-bottom: 6px; }
.modal .foot { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; flex-wrap: wrap; }
.seg { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; } .seg .btn.sel { background: var(--accent); color: var(--accent-ink); }
.sw { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); } .sw b { display: block; font-size: 16px; font-weight: 600; } .sw span { color: var(--muted); font-size: 14px; }
.big { font-size: 40px; font-weight: 700; letter-spacing: .22em; text-align: center; padding: 20px 0; background: var(--surface2); border-radius: 18px; margin-top: 14px; }
.msec { margin: 22px 0 4px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
#toasts { position: fixed; z-index: 4000; bottom: 84px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; justify-items: center; pointer-events: none; }
.toast { background: var(--surface2); border: 1px solid var(--line); color: var(--ink); padding: 12px 20px; border-radius: 14px; font-weight: 600; font-size: 15px; box-shadow: var(--shadow); animation: tin .25s ease; max-width: 90vw; } @keyframes tin { from { opacity: 0; transform: translateY(10px); } }

/* map pins */
.pin { position: relative; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; font-size: 27px; background: var(--surface); box-shadow: 0 0 0 3px var(--ok), 0 8px 22px rgba(0,0,0,.35); } .pin.old { opacity: .55; box-shadow: 0 0 0 3px #9a9aa4, 0 8px 22px rgba(0,0,0,.25); }
.pin.parent::after { content: ""; position: absolute; right: -2px; bottom: -2px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); border: 2px solid var(--surface); }
.pinname { position: absolute; top: 56px; left: 50%; transform: translateX(-50%); font-size: 13px; font-weight: 700; background: var(--surface); color: var(--ink); padding: 2px 10px; border-radius: 99px; white-space: nowrap; box-shadow: 0 4px 12px rgba(0,0,0,.25); }

/* smaller windows and phones */
@media (max-width: 1250px) { .dock button:not(.sq) { padding: 10px 11px; font-size: 13.5px; } }
@media (max-width: 1100px) { .panel { width: 340px; } #chat { width: 360px; } .actions button span { display: none; } .actions button { padding: 11px 13px; } }
@media (max-width: 820px) {
  .topbar { top: 10px; left: 10px; right: 10px; } .brand small { display: none; }
  #side { top: auto; left: 10px; right: 10px; bottom: 10px; width: auto; max-height: 52vh; max-width: none; } .dock { bottom: calc(52vh + 20px); }
  #chat { top: 10px; left: 10px; right: 10px; bottom: 10px; width: auto; z-index: 40; } .fab { bottom: calc(52vh + 20px); right: 10px; padding: 12px 16px; } .fab .t { display: none; }
  #toasts { bottom: 20px; } #offline { top: 70px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* screen time */
.stbig { font-size: 34px; font-weight: 700; letter-spacing: -.02em; margin: 2px 0 10px; }
.stbars { display: flex; gap: 8px; align-items: flex-end; height: 110px; padding: 6px 0 0; }
.stbar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; background: none; border: 0; cursor: pointer; padding: 0; color: var(--muted); font: inherit; font-size: 12px; }
.stbar i { display: block; width: 100%; border-radius: 6px; background: var(--surface2); } .stbar.sel i { background: var(--accent); } .stbar.sel { color: var(--ink); }
.starow { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); } .stemo { font-size: 22px; }
.stline { display: flex; justify-content: space-between; gap: 12px; } .stline span, .starow small { color: var(--muted); font-size: 13px; }
.sttrack { height: 6px; border-radius: 3px; background: var(--surface2); margin: 6px 0 2px; overflow: hidden; } .sttrack i { display: block; height: 100%; border-radius: 3px; }

/* the child's lock screen */
#lockov { position: fixed; inset: 0; z-index: 9000; background: #0a0a0b; color: #ececf0; display: grid; place-items: center; text-align: center; padding: 24px; }
.lockbox { max-width: 440px; } .lockico { font-size: 64px; } .lockbox h1 { margin: 6px 0; font-size: 34px; } .lockbox p { color: #9a9aa3; margin: 6px 0; }
.lockleft { font-size: 44px; font-weight: 700; margin: 16px 0; letter-spacing: -.02em; } .lockidea { font-size: 17px; margin-bottom: 20px !important; color: #ececf0 !important; }

.rulesbox { background: var(--surface2); border-radius: 14px; padding: 14px 16px; line-height: 1.55; margin: 8px 0; }


/* ---------- refinement pass ---------- */
::selection { background: var(--accent-soft); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 10px; }
.field:focus-visible { outline: none; }
* { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--muted) 40%, transparent) transparent; }
body { font-feature-settings: "tnum" 1, "cv11" 1; }

.btn { background: var(--surface2); border: 1px solid var(--line); min-height: 42px; transition: background .15s, border-color .15s, transform .12s; }
.btn:hover:not(:disabled) { background: color-mix(in srgb, var(--surface2) 80%, var(--ink) 8%); border-color: color-mix(in srgb, var(--line) 60%, var(--ink) 14%); }
.btn.solid:hover:not(:disabled) { background: var(--accent); filter: brightness(1.1); }
.btn.sm { min-height: 36px; }
.btn.bad { color: var(--bad); } .btn.bad:hover:not(:disabled) { background: color-mix(in srgb, var(--bad) 14%, var(--surface2)); }
.panel, .pill, .modal { backdrop-filter: none; }
.panel { background: var(--glass); border-color: var(--line); }
.person, .place, .item, .you { transition: border-color .15s, background .15s; }
.person:hover { border-color: color-mix(in srgb, var(--line) 50%, var(--ink) 16%); }
.prow { border-radius: 20px; transition: background .15s; } .prow:hover { background: color-mix(in srgb, var(--surface) 90%, var(--ink) 5%); }
.shareline { background: var(--surface2); border: 1px solid var(--line); }
.sechead h3, .msec { color: var(--muted); font-size: 12px; letter-spacing: .1em; }
.chip { background: var(--surface2); }
.fab { box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.actions button { color: var(--ink); } .actions button:hover { background: var(--surface2); }
.dock button:hover { background: var(--surface2); }
.b { background: var(--surface2); border-color: transparent; }
.composer .field { background: var(--surface2); }
.empty { padding: 10px 6px; }
.modal { border-radius: 24px; } .modal h2 { font-size: 22px; }
#map { background: var(--bg); }

/* ---------- the call screen ---------- */
#call { position: fixed; inset: 0; z-index: 3000; display: none; align-items: center; justify-content: center; background: var(--bg); color: var(--ink); }
#call.on { display: flex; }
.callwrap { display: flex; flex-direction: column; align-items: center; width: min(420px, 100%); padding: 32px 24px; min-height: min(720px, 100%); }
.callwrap .who { margin-top: 8px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.avawrap { position: relative; width: 240px; height: 240px; margin: 36px 0 12px; display: grid; place-items: center; }
.avawrap .av { position: relative; z-index: 2; width: 140px; height: 140px; border-radius: 50%; display: grid; place-items: center; font-size: 70px; background: var(--surface2); border: 1px solid var(--line); box-shadow: none; }
.avawrap .rg { position: absolute; width: 140px; height: 140px; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; }
.avawrap.ring .rg { animation: callring 2.2s linear infinite; } .avawrap.ring .rg.b { animation-delay: 1.1s; }
.avawrap.live .rg.live { opacity: .55; border-color: var(--ok); width: 168px; height: 168px; }
@keyframes callring { from { transform: scale(1); opacity: .4; } to { transform: scale(1.8); opacity: 0; } }
#call h2 { font-size: 32px; font-weight: 650; letter-spacing: -.02em; text-align: center; }
#call .stt { margin-top: 8px; font-size: 18px; color: var(--muted); font-variant-numeric: tabular-nums; } #call .stt.live { color: var(--ok); font-size: 22px; font-weight: 600; }
#call .bars { display: flex; gap: 4px; align-items: flex-end; height: 18px; margin-top: 14px; } #call .bars i { width: 4px; border-radius: 2px; background: var(--ok); animation: bar 1s ease-in-out infinite; } #call .bars i:nth-child(2) { animation-delay: .15s; } #call .bars i:nth-child(3) { animation-delay: .3s; } #call .bars i:nth-child(4) { animation-delay: .45s; }
@keyframes bar { 0%, 100% { height: 4px; } 50% { height: 18px; } }
#call .acts { margin-top: auto; padding-top: 40px; display: flex; gap: 28px; justify-content: center; align-items: flex-start; width: 100%; }
#call .act { display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
#call .cb { width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; background: var(--surface2); color: var(--ink); border: 1px solid var(--line); transition: transform .12s, background .15s; }
#call .cb:hover { background: color-mix(in srgb, var(--surface2) 80%, var(--ink) 10%); } #call .cb:active { transform: scale(.94); }
#call .cb.big { width: 78px; height: 78px; } #call .cb svg { width: 30px; height: 30px; fill: currentColor; }
#call .cb.on { background: var(--ink); color: var(--bg); } #call .cb.end { background: var(--bad); color: #fff; border-color: transparent; } #call .cb.accept { background: var(--ok); color: #08101f; border-color: transparent; }
@media (prefers-reduced-motion: reduce) { .avawrap.ring .rg, #call .bars i { animation: none; } }

/* jobs and the weekly summary */
.board { display: flex; flex-wrap: wrap; gap: 6px; } .item .stemo { font-size: 20px; } .item small { display: block; }
.choreform { display: grid; gap: 8px; } .choreopts { display: flex; gap: 8px; flex-wrap: wrap; } .choreopts input[name=minutes] { width: 84px; flex: none; } .choreopts input[type=number] { width: 78px; flex: none; } .choreopts select { flex: 1; min-width: 104px; }
.weekcard { background: var(--surface2); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; margin: 12px 0 4px; display: grid; gap: 10px; }
.weekgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; } .weekgrid span { display: block; font-size: 22px; font-weight: 700; letter-spacing: -.02em; } .weekgrid small { display: block; }

.pinfo small.devwarn { color: var(--warn); }

.seg.grapps { max-height: 180px; overflow-y: auto; }

/* profile photos */
.avimg { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.ava.big { width: 72px; height: 72px; font-size: 34px; }
.pfp-row { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.pfp-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.pin { overflow: hidden; } .pin .avimg { width: 50px; height: 50px; border-radius: 50%; }

/* ---------- the left panel: tabs and control tiles ---------- */
#side { padding: 0; gap: 0; overflow: hidden; }
.stabs { flex: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; padding: 8px 8px 0; border-bottom: 1px solid var(--line); background: var(--glass); }
.stabs button { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 2px 9px; border-radius: 12px 12px 0 0; color: var(--muted); font-weight: 600; font-size: 12.5px; }
.stabs button .ti { font-size: 19px; line-height: 1; } .stabs button:hover { color: var(--ink); background: var(--surface2); }
.stabs button.on { color: var(--ink); background: var(--surface); box-shadow: inset 0 -2px 0 var(--accent); }
.stabs .tb { position: absolute; top: 3px; right: 10px; min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px; background: var(--bad); color: #fff; font: 700 11px/17px system-ui; font-style: normal; text-align: center; }
.stabs .tb.dot { min-width: 9px; width: 9px; height: 9px; padding: 0; top: 6px; right: 14px; background: var(--warn); }
.tabbody { flex: 1; min-height: 0; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 12px; } .tabbody > * { flex-shrink: 0; }
.tabhelp { color: var(--muted); font-size: 14px; margin: 0 2px; }
.ctl { border-radius: 20px; background: var(--surface); border: 1px solid var(--line); padding: 14px; display: grid; gap: 12px; }
.ctl .head { display: flex; gap: 12px; align-items: center; } .ctl .head b { display: block; font-size: 17px; } .ctl .head small { display: block; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tile { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; padding: 12px; border-radius: 16px; background: var(--surface2); border: 1px solid var(--line); transition: border-color .15s, background .15s, transform .1s; min-height: 92px; }
.tile:hover:not(:disabled) { border-color: var(--accent); background: var(--accent-soft); } .tile:active:not(:disabled) { transform: scale(.98); } .tile:disabled { opacity: .45; cursor: not-allowed; }
.tile .te { font-size: 22px; line-height: 1.1; } .tile b { font-size: 14.5px; margin-top: 4px; } .tile small { font-size: 12.5px; line-height: 1.3; color: var(--muted); }
.note-card { border-radius: 16px; padding: 12px 14px; background: var(--surface2); border: 1px solid var(--line); font-size: 14.5px; } .note-card.warn { border-color: color-mix(in srgb, var(--warn) 45%, transparent); }
@media (max-width: 820px) { .stabs button .tn { font-size: 11px; } }

/* ---------- two tabs, and collapsible rows ---------- */
.stabs.two { grid-template-columns: 1fr 1fr; } .stabs.two button { flex-direction: row; justify-content: center; gap: 8px; padding: 12px 6px; font-size: 15px; } .stabs.two button .ti { font-size: 20px; }
.stabs.two .tb { top: 7px; right: calc(50% - 56px); }
.ctlwrap { padding: 0 12px 14px; }
.acc { border-radius: 18px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.acchead { width: 100%; display: flex; align-items: center; gap: 10px; padding: 14px 16px; text-align: left; }
.acchead:hover { background: var(--surface2); } .accl { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; } .accl b { font-size: 16px; } .acci { font-size: 20px; }
.acchead small { color: var(--muted); font-size: 13px; text-align: right; } .accv { color: var(--muted); transition: transform .2s; } .acc.open .accv { transform: rotate(180deg); }
.accl .tb { position: static; display: inline-block; min-width: 19px; height: 19px; padding: 0 6px; border-radius: 10px; background: var(--bad); color: #fff; font: 700 12px/19px system-ui; font-style: normal; text-align: center; }
.accbody { padding: 4px 14px 14px; display: flex; flex-direction: column; gap: 10px; }


/* ================= v3 (2026-10-16): clearer, warmer, no blue ================= */
body { line-height: 1.45; }
.b { position: relative; }
.panel { box-shadow: 0 20px 60px rgba(0,0,0,.65), 0 0 0 1px rgba(255,255,255,.04); }
.you { grid-template-columns: minmax(0, 1fr); }
.you .btn { width: 100%; white-space: normal; text-align: left; justify-content: flex-start; line-height: 1.3; padding: 12px 14px; }
.shareline > div { min-width: 0; }
.person.open { border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); box-shadow: inset 4px 0 0 var(--accent); background: color-mix(in srgb, var(--accent) 5%, var(--surface)); }
.stabs button.on { box-shadow: inset 0 -3px 0 var(--accent); }
.pinfo small { font-size: 13.5px; line-height: 1.35; }

/* the Today card, first thing in the Family tab */
.today { border-radius: 20px; padding: 16px; background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 12%, var(--surface)), var(--surface) 70%); border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line)); display: grid; gap: 12px; }
.today b { display: block; font-size: 18px; letter-spacing: -.01em; } .today small { display: block; margin-top: 2px; }
.tbtns { display: flex; gap: 8px; flex-wrap: wrap; } .tbtns .btn { flex: 1 1 auto; }

/* "what I'm up to" */
.stat { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; padding: 3px 11px; border-radius: 99px; background: var(--accent-soft); color: var(--ink); font-size: 13.5px; font-weight: 600; max-width: 100%; }
.sts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.sts button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: 14px; background: var(--surface2); border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; text-align: center; line-height: 1.2; }
.sts button i { font-style: normal; font-size: 26px; line-height: 1; } .sts button:hover, .sts button.on { border-color: var(--accent); background: var(--accent-soft); }
.pst { position: absolute; right: -8px; top: -8px; z-index: 3; min-width: 26px; height: 26px; padding: 0 3px; border-radius: 99px; display: grid; place-items: center; font-size: 15px; background: var(--surface); border: 2px solid var(--accent); box-shadow: 0 4px 10px rgba(0,0,0,.4); }

/* controls: two main tiles, the rest on request */
.morebtn { width: 100%; padding: 9px 12px; border-radius: 12px; color: var(--muted); font-size: 13.5px; font-weight: 600; text-align: left; } .morebtn:hover { color: var(--ink); background: var(--surface2); }

/* chat: quick replies and reactions */
.qr { flex: none; display: flex; gap: 6px; overflow-x: auto; padding: 10px 14px 0; scrollbar-width: none; } .qr.hidden { display: none; }
.qr button { flex: none; padding: 7px 13px; border-radius: 99px; background: var(--surface2); border: 1px solid var(--line); font-size: 14px; font-weight: 600; white-space: nowrap; } .qr button:hover { border-color: var(--accent); background: var(--accent-soft); }
.composer { border-top: 0; }
.b .rb { position: absolute; top: -13px; width: 28px; height: 28px; border-radius: 50%; background: var(--surface2); border: 1px solid var(--line); font-size: 14px; display: none; place-items: center; box-shadow: 0 4px 10px rgba(0,0,0,.35); color: var(--ink); } .b:not(.me) .rb { right: -12px; } .b.me .rb { left: -12px; }
.b:hover .rb, .b:focus-within .rb { display: grid; } .b.sys .rb, .b.pending .rb { display: none !important; }
.rx { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 6px; } .rx button { padding: 1px 9px; border-radius: 99px; background: color-mix(in srgb, currentColor 10%, transparent); border: 1px solid color-mix(in srgb, currentColor 22%, transparent); font-size: 13.5px; color: inherit; line-height: 1.6; }
.rx button.mine { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); } .b.me .rx button.mine { border-color: var(--accent-ink); background: rgba(0,0,0,.14); color: inherit; }
.rpick { position: absolute; z-index: 5; bottom: calc(100% + 6px); display: flex; gap: 2px; padding: 5px; border-radius: 99px; background: var(--surface2); border: 1px solid var(--line); box-shadow: 0 10px 26px rgba(0,0,0,.5); } .b:not(.me) .rpick { left: 0; } .b.me .rpick { right: 0; }
.rpick button { width: 34px; height: 34px; border-radius: 50%; font-size: 19px; } .rpick button:hover { background: var(--accent-soft); }

/* phones: nothing may run off the screen */
@media (max-width: 560px) {
  .brand { padding: 10px 12px; } .brand small, .brand b { display: none; }
  .topbar { gap: 8px; } .pill.actions { margin-left: auto; padding: 4px; } .actions button { padding: 10px 11px; } .actions .sep, #bInvite { display: none; }
  .tbtns .btn { flex: 1 1 100%; } .sts { grid-template-columns: repeat(2, 1fr); }
}

/* v3 polish */
.you .btn.sm { width: auto; padding: 8px 14px; line-height: 1.2; }
.tbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .tbtns .btn { flex: none; } .tbtns .btn:first-child { grid-column: 1 / -1; }
.sts button { color: var(--ink); }
@media (max-width: 820px) {
  .dock { left: 10px; transform: none; max-width: calc(100vw - 86px); }
  .dock button:not(.sq) { padding: 9px 10px; font-size: 13px; white-space: nowrap; }
}
@media (max-width: 560px) { .tbtns { grid-template-columns: 1fr; } .dock .sq { width: 36px; } }

/* v4: plans and family votes */
.plan, .poll { border-radius: 16px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 8px; }
.plan.now { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
.pl-top { display: flex; align-items: flex-start; gap: 10px; } .pl-e { font-size: 26px; line-height: 1.1; }
.pl-m { flex: 1; min-width: 0; } .pl-m b { display: block; font-size: 15.5px; overflow-wrap: anywhere; } .pl-m small { display: block; margin-top: 2px; }
.pl-top .link { padding: 2px 6px; text-decoration: none; }
.pl-who { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.pl-btns { display: flex; gap: 8px; flex-wrap: wrap; } .pl-btns .btn { width: auto; }
.pl-btns .btn.sel { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.opt { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; text-align: left; padding: 10px 12px; border-radius: 12px; background: var(--surface2); border: 1px solid var(--line); overflow: hidden; color: var(--ink); font-size: 14.5px; }
.opt i { position: absolute; inset: 0 auto 0 0; background: color-mix(in srgb, var(--accent) 24%, transparent); transition: width .3s; }
.opt .ot, .opt .on2 { position: relative; } .opt .on2 { color: var(--muted); font-size: 12.5px; text-align: right; overflow-wrap: anywhere; }
.opt.mine { border-color: var(--accent); } .opt.win { border-color: var(--ok); } .poll.closed { opacity: .88; } .opt:disabled { cursor: default; }

/* v4b: rewards, the family board, pick me up */
.note { border-radius: 16px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 8px; }
.notebody { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14.5px; color: var(--ink); line-height: 1.5; }
.note .link { padding: 2px 6px; font-size: 13px; }
textarea.field { resize: vertical; min-height: 96px; font-family: inherit; line-height: 1.45; }
.pk { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pk button { padding: 5px 11px; border-radius: 99px; font-size: 13px; font-weight: 600; background: color-mix(in srgb, currentColor 12%, transparent); border: 1px solid color-mix(in srgb, currentColor 26%, transparent); color: inherit; }
.pk button:hover { background: var(--accent-soft); }

/* v5: white polish. Neutral cards (no cream tints), a calmer light map, softer vote bars */
.today { background: var(--surface); border: 1px solid var(--line); box-shadow: 0 1px 0 rgba(20,20,26,.03); }
.opt i { background: color-mix(in srgb, var(--accent) 16%, transparent); }
#map:not(.dark) .leaflet-tile { filter: saturate(.55) brightness(1.04) contrast(.97); }

/* v6: the calendar, and the "ask to update" hint */
.secbtns { display: inline-flex; gap: 6px; }
.calhead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; } .calhead h2 { font-size: 18px; letter-spacing: -.01em; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cw { text-align: center; font-size: 11.5px; font-weight: 700; color: var(--muted); letter-spacing: .04em; padding: 4px 0; }
.cd { aspect-ratio: 1; min-height: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; border-radius: 12px; background: var(--surface2); border: 1px solid transparent; font-size: 14px; color: var(--ink); } .cd.off { background: none; }
.cd b { font-weight: 600; } .cd i { font-style: normal; font-size: 9px; line-height: 1; color: var(--accent); min-height: 10px; letter-spacing: 1px; }
.cd.today { border-color: var(--accent); } .cd.sel { background: var(--accent); color: var(--accent-ink); } .cd.sel i { color: var(--accent-ink); }
.callist { margin-top: 12px; display: grid; gap: 8px; max-height: 240px; overflow-y: auto; }
.oldapp { color: var(--warn) !important; font-weight: 600; }
@media (max-width: 560px) { .cd { min-height: 40px; font-size: 13px; } }

/* v7: set up this device, and the iPhone steps */
.chk { list-style: none; display: grid; gap: 10px; margin: 14px 0 4px; } .chk li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--surface2); }
.chk li i { font-style: normal; width: 24px; height: 24px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--line); font-size: 13px; font-weight: 700; color: var(--muted); }
.chk li.ok i { background: var(--ok); border-color: var(--ok); color: #fff; } .chk li span { display: grid; gap: 2px; } .chk li small { display: block; }
.steps { margin: 14px 0 10px 20px; display: grid; gap: 10px; line-height: 1.5; }

/* v8: announcements */
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; margin-bottom: 4px; border-radius: 14px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.notice > span { font-size: 20px; line-height: 1.3; } .notice > div { flex: 1; min-width: 0; } .notice b { display: block; font-size: 15.5px; overflow-wrap: anywhere; } .notice small { display: block; margin-top: 2px; } .notice .link { padding: 2px 6px; text-decoration: none; }
.tbtns .btn[data-act=announce] { grid-column: 1 / -1; }

/* v9: Homebase 2 - five sections, meals, groups, stickers */
.stabs button { padding: 8px 1px 9px; font-size: 12px; } .stabs .tb { right: 6px; }
.reqs { display: grid; gap: 8px; } .req { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); } .req .pl-m { flex: 1; min-width: 150px; }
.strip { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 8px; } .sp { display: grid; gap: 4px; justify-items: center; flex: none; min-width: 56px; } .sp small { font-size: 12px; max-width: 64px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tonight { display: grid; gap: 8px; } .tn-row, .tonight.empty { display: flex; gap: 12px; align-items: center; text-align: left; padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); width: 100%; }
.tn-row > span, .tonight.empty > span { font-size: 26px; } .tn-row b, .tonight.empty b { display: block; font-size: 15.5px; } .tn-row small, .tonight.empty small { display: block; } .tonight.empty a { color: var(--accent); font-weight: 600; }
.qas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; } .qa { display: grid; justify-items: center; gap: 4px; padding: 12px 4px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-size: 12px; font-weight: 600; text-align: center; line-height: 1.2; } .qa i { font-style: normal; font-size: 22px; } .qa:hover { background: var(--accent-soft); }
.meal { border-radius: 16px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 8px; } .ml-top { display: flex; gap: 12px; align-items: flex-start; } .ml-m { flex: 1; min-width: 0; } .ml-m b { display: block; font-size: 15.5px; overflow-wrap: anywhere; } .ml-m small { display: block; } .cook { color: var(--ink) !important; }
.ml-ph { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; flex: none; background: var(--surface2); } .ml-e { font-size: 28px; line-height: 1.1; flex: none; width: 56px; text-align: center; }
.mday { display: grid; gap: 8px; margin-bottom: 6px; } .mday h4 { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 8px 4px 0; }
.mphoto { width: 100%; max-height: 220px; object-fit: cover; border-radius: 14px; margin: 10px 0; } .ing { margin: 6px 0 12px 20px; display: grid; gap: 4px; } .modal .steps { margin-top: 8px; }
.calcard { border-radius: 18px; padding: 14px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 10px; } .calcard .calhead h3 { font-size: 16px; } .calcard .callist { max-height: none; }
.thrrow, .grow2 { display: flex; gap: 12px; align-items: center; text-align: left; width: 100%; padding: 10px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); position: relative; } .thrrow:hover, .grow2:hover:not(:disabled) { background: var(--accent-soft); } .grow2:disabled { opacity: .7; cursor: default; }
.thrrow .pl-m, .grow2 .pl-m { min-width: 0; flex: 1; } .thrrow small, .grow2 small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .tb2 { font-style: normal; min-width: 20px; height: 20px; border-radius: 10px; padding: 0 6px; background: var(--bad); color: #fff; font: 700 11.5px/20px system-ui; text-align: center; }
.gwrap { display: flex; flex-direction: column; gap: 8px; height: min(80vh, 680px); } .ghead h2 { font-size: 19px; } .gnote { font-size: 12.5px; color: var(--muted); background: var(--surface2); border-radius: 10px; padding: 8px 10px; }
.gmsgs { flex: 1; min-height: 160px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; padding: 4px 2px; } .gm { align-self: flex-start; max-width: 82%; padding: 8px 12px; border-radius: 16px; background: var(--surface2); overflow-wrap: anywhere; } .gm.me { align-self: flex-end; background: var(--accent); color: var(--accent-ink); }
.gm .who { font-size: 11.5px; color: var(--muted); font-weight: 600; } .gm small { display: block; font-size: 11px; opacity: .7; margin-top: 2px; } .gm.flag { border: 1px dashed var(--warn); } .gflag { margin-top: 6px; font-size: 12.5px; padding: 6px 8px; border-radius: 8px; background: color-mix(in srgb, var(--warn) 18%, transparent); color: var(--ink); }
.gcomp { display: flex; gap: 8px; } .gcomp .field { flex: 1; min-width: 0; } img.gif { display: block; max-width: 220px; width: 100%; border-radius: 12px; } .b.gifb { background: transparent !important; box-shadow: none !important; padding: 0 !important; }
.stk { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 6px; max-height: 240px; overflow-y: auto; margin: 10px 0; } .stk button { border-radius: 14px; background: var(--surface2); padding: 6px; } .stk button:hover { background: var(--accent-soft); } .stk img { width: 100%; display: block; }
.stkurl { display: flex; gap: 8px; margin-bottom: 8px; } .stkurl .field { flex: 1; min-width: 0; }
.codebox { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--surface2); } .codebox b { font-size: 22px; letter-spacing: .16em; }
.feed { display: flex; gap: 10px; padding: 8px 4px; border-bottom: 1px solid var(--line); } .feed > span { width: 22px; text-align: center; } .feed b { font-weight: 600; font-size: 14.5px; display: block; overflow-wrap: anywhere; }
.morebtns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; } .sq-out { display: grid; gap: 6px; margin: 12px 0 4px; max-height: 50vh; overflow-y: auto; } .sq-row { display: flex; gap: 10px; align-items: center; text-align: left; padding: 10px 12px; border-radius: 12px; background: var(--surface2); } .sq-row small { margin-left: auto; }
@media (max-width: 560px) { .qas { grid-template-columns: repeat(4, 1fr); } .qa { font-size: 11px; padding: 10px 2px; } }

/* v9b: let the calendar columns shrink to fit the panel */
.cal { grid-template-columns: repeat(7, minmax(0, 1fr)); } .cd { min-width: 0; padding: 0; overflow: hidden; } .calcard, .calcard .callist, .calcard .plan, .meal { min-width: 0; max-width: 100%; }
.cd i { letter-spacing: 0; white-space: nowrap; } .calcard .pl-btns { flex-wrap: wrap; }

.gm.gifm { background: transparent !important; padding: 0; } .gm.gifm .who { padding-left: 4px; }

/* a family game started from the chat: the code and a Join button */
.b.gamemsg { max-width: 92%; }
.b.gamemsg .gjoin { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.b.gamemsg .gjoin b { letter-spacing: .12em; font-size: 15px; }
.b.gamemsg .gjoin .btn { text-decoration: none; }


/* ---------- Mellow: black and white on a contour-line background (white is the main look, dark is the other) ---------- */
:root { --bg: #fbfbf9; --surface: #ffffff; --surface2: #ecebe7; --glass: rgba(255,255,255,.96); --ink: #121212; --muted: #6a6863; --line: rgba(0,0,0,.12);
  --accent: #141414; --accent-ink: #ffffff; --accent-soft: rgba(0,0,0,.06); --ok: #2b2b2a; --warn: #5b5954; --bad: #d4303a; --shadow: 0 12px 36px rgba(0,0,0,.12); --r: 16px;
  background-image: url(/static/web/bg-light.webp); background-size: cover; background-position: center; background-attachment: fixed; background-repeat: no-repeat; }
:root[data-theme="dark"] { --bg: #050505; --surface: #161616; --surface2: #272726; --glass: rgba(22,22,22,.97); --ink: #f2f2ef; --muted: #a3a19c; --line: rgba(255,255,255,.14);
  --accent: #f2f2ef; --accent-ink: #0b0b0b; --accent-soft: rgba(255,255,255,.10); --ok: #ddddd9; --warn: #c9c7c1; --bad: #ff6168; --shadow: 0 16px 44px rgba(0,0,0,.6);
  background-image: url(/static/web/bg-dark.webp); }
@media (prefers-color-scheme: dark) { :root[data-theme="auto"] { --bg: #050505; --surface: #161616; --surface2: #272726; --glass: rgba(22,22,22,.97); --ink: #f2f2ef; --muted: #a3a19c; --line: rgba(255,255,255,.14);
  --accent: #f2f2ef; --accent-ink: #0b0b0b; --accent-soft: rgba(255,255,255,.10); --ok: #ddddd9; --warn: #c9c7c1; --bad: #ff6168; --shadow: 0 16px 44px rgba(0,0,0,.6); background-image: url(/static/web/bg-dark.webp); } }
body { background: transparent; }
#auth { background: transparent; }
h1, h2, .authbox h1, .modal h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: -.01em; }
.btn { border-radius: 12px; } .field { border-radius: 12px; }

/* video calls */
#call .rvid { position: fixed; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; z-index: 0; }
#call .lvid { position: fixed; top: 20px; right: 20px; width: 180px; height: 135px; object-fit: cover; border-radius: 16px; border: 2px solid rgba(255,255,255,.7); z-index: 2; transform: scaleX(-1); background: #111; }
#call .callwrap.onvideo { background: transparent; position: relative; z-index: 1; }
#call .callwrap.onvideo .avawrap { display: none; }
#call .callwrap.onvideo h2, #call .callwrap.onvideo .who, #call .callwrap.onvideo .stt { color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
