:root {
  --bg: #1b1a18; --bg2: #201f1d; --card: #262523; --card2: #2d2c29; --border: #35342f;
  --text: #f3f0e8; --muted: #a29e94; --dim: #74706a;
  --mint: #8ccfb2; --mint-dim: rgba(140, 207, 178, .16); --mint-ink: #163126;
  --amber: #e8bb60; --amber-dim: rgba(232, 187, 96, .16);
  --coral: #e2927c; --coral-dim: rgba(226, 146, 124, .16);
  --blue: #7ab8dc; --blue-dim: rgba(122, 184, 220, .16);
  --purple: #b6a1e6; --purple-dim: rgba(182, 161, 230, .16);
  --teal: #7cc7cb; --teal-dim: rgba(124, 199, 203, .16);
  --pink: #d98b8b; --sky: #8fb4e6; --sky-dim: rgba(143, 180, 230, .16);
  --radius: 22px; --radius-sm: 14px;
  --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); height: 100%; }
body { font: 16px/1.4 -apple-system, "SF Pro Text", Inter, system-ui, "Segoe UI", Roboto, sans-serif; overscroll-behavior-y: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
.hidden { display: none !important; }
.app { min-height: 100%; display: flex; flex-direction: column; }

/* ---- top bar ---- */
.topbar { position: sticky; top: 0; z-index: 5; background: var(--bg); padding: calc(var(--sat) + 12px) 16px 12px; border-bottom: 1px solid var(--border); }
.topbar .row { display: flex; align-items: center; gap: 12px; }
.avatar { width: 48px; height: 48px; border-radius: 14px; background: linear-gradient(160deg, #9ad0e6, #6fb2cd); display: grid; place-items: center; font-weight: 700; color: #1b1a18; font-size: 20px; flex: none; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.who { flex: 1; min-width: 0; }
.who .name { font-weight: 700; font-size: 18px; }
.who .age { color: var(--muted); font-size: 14px; }
.icons { display: flex; gap: 8px; }
.icon-btn { width: 44px; height: 44px; border-radius: 14px; background: var(--card); border: 1px solid var(--border); display: grid; place-items: center; color: var(--text); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn.spin svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.h1 { font-size: 34px; font-weight: 800; letter-spacing: -.02em; margin: 14px 0 0; }

/* ---- page ---- */
.page { flex: 1; padding: 16px 16px calc(var(--sab) + 110px); display: flex; flex-direction: column; gap: 14px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.card.pad-sm { padding: 12px; }
.section-h { display: flex; align-items: baseline; justify-content: space-between; margin: 6px 2px -4px; }
.section-h h2 { margin: 0; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.section-h .link { color: var(--mint); font-weight: 600; font-size: 15px; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.small { font-size: 13px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }

/* hero */
.hero { position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -40% -20% auto auto; width: 70%; height: 140%; background: radial-gradient(closest-side, rgba(140,207,178,.13), transparent); pointer-events: none; }
.hero .top { display: flex; justify-content: space-between; align-items: flex-start; }
.hero .big { font-size: 46px; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.hero .approx { color: var(--muted); font-size: 17px; margin-top: 4px; }
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 15px; background: var(--mint-dim); color: var(--mint); white-space: nowrap; }
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pill.coral { background: var(--coral-dim); color: var(--coral); }
.pill.amber { background: var(--amber-dim); color: var(--amber); }
.pill.blue { background: var(--sky-dim); color: var(--sky); }
.pill.plain::before { display: none; }
.bar { height: 10px; border-radius: 999px; background: #3a3935; margin: 18px 0 16px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--mint); border-radius: 999px; transition: width .4s; }
.bar.amber > i { background: var(--amber); }
.bar.coral > i { background: var(--coral); }
.bar.sky > i { background: var(--sky); }
.lastfed { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 16px; }
.lastfed b { color: var(--text); }
.mini-av { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #1b1a18; flex: none; }
.ai-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); margin-top: 12px; }
.ai-tag svg { width: 13px; height: 13px; }
.why { color: var(--mint); font-weight: 600; font-size: 13px; margin-left: 6px; }

/* schedule chips */
.chips-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(80px, 1fr); gap: 8px; overflow-x: auto; scrollbar-width: none; }
.chips-row::-webkit-scrollbar { display: none; }
.slot { background: var(--card2); border: 1px solid var(--border); border-radius: 18px; padding: 14px 4px; text-align: center; min-width: 0; }
.slot.next { background: var(--mint-dim); border-color: rgba(140,207,178,.4); }
.slot .lbl { font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: .08em; color: var(--muted); font-weight: 700; text-transform: uppercase; }
.slot.next .lbl { color: var(--mint); }
.slot .t { font-size: 16px; font-weight: 800; margin: 6px 0 4px; letter-spacing: -.03em; white-space: nowrap; }
.slot .in { color: var(--muted); font-size: 13px; }
.slot .oz { color: var(--dim); font-size: 12px; margin-top: 2px; }

/* tiles */
.tile { display: flex; align-items: center; gap: 14px; text-align: left; width: 100%; }
.tile .ic { width: 64px; height: 64px; border-radius: 18px; background: var(--mint-dim); display: grid; place-items: center; color: var(--mint); position: relative; flex: none; }
.tile .ic svg { width: 26px; height: 26px; }
.tile .ic .badge { position: absolute; top: -6px; right: -6px; min-width: 24px; height: 24px; border-radius: 12px; background: var(--mint); color: var(--mint-ink); font-size: 13px; font-weight: 800; display: grid; place-items: center; padding: 0 6px; }
.tile .tt { font-weight: 700; font-size: 19px; }
.tile .ts { color: var(--muted); font-size: 15px; }
.stat { padding: 18px 16px; }
.stat .sic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--mint-dim); color: var(--mint); margin-bottom: 22px; }
.stat .sic svg { width: 18px; height: 18px; }
.stat .sic.amber { background: var(--amber-dim); color: var(--amber); }
.stat .sic.sky { background: var(--sky-dim); color: var(--sky); }
.stat .n { font-size: 34px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.stat .n small { font-size: 16px; font-weight: 600; color: var(--muted); margin-left: 3px; }
.stat .l { color: var(--muted); margin-top: 8px; font-size: 15px; }

/* entries list */
.list { display: flex; flex-direction: column; }
.row-e { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--border); width: 100%; text-align: left; }
.row-e:last-child { border-bottom: 0; }
.row-e .ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; flex: none; }
.row-e .ic svg { width: 22px; height: 22px; }
.row-e .body { flex: 1; min-width: 0; }
.row-e .title { font-weight: 700; font-size: 17px; }
.row-e .sub { color: var(--muted); font-size: 14px; margin-top: 2px; }
.row-e .sub .sep { margin: 0 6px; }
.row-e .right { display: flex; align-items: center; gap: 8px; }
.note-ic { width: 30px; height: 30px; border-radius: 9px; background: var(--card2); border: 1px solid var(--border); display: grid; place-items: center; color: var(--muted); }
.note-ic svg { width: 14px; height: 14px; }
.c-feed { background: var(--mint-dim); color: var(--mint); }
.c-diaper { background: var(--amber-dim); color: var(--amber); }
.c-sleep { background: var(--sky-dim); color: var(--sky); }
.c-incident { background: var(--coral-dim); color: var(--coral); }
.c-appt { background: var(--blue-dim); color: var(--blue); }
.c-activity { background: var(--purple-dim); color: var(--purple); }
.c-medicine { background: var(--teal-dim); color: var(--teal); }
.c-note { background: var(--card2); color: var(--muted); }
.day-h { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin: 10px 2px -4px; }
.filters { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: -4px -16px 0; padding: 4px 16px; }
.filters::-webkit-scrollbar { display: none; }
.chip { padding: 11px 20px; border-radius: 999px; background: var(--card); border: 1px solid var(--border); font-weight: 600; font-size: 16px; white-space: nowrap; color: var(--text); }
.chip.on { background: var(--mint); color: var(--mint-ink); border-color: var(--mint); }
.chip.sm { padding: 8px 14px; font-size: 14px; }
.chip.coral.on { background: var(--coral); border-color: var(--coral); color: #2b1a15; }
.chip.amber.on { background: var(--amber); border-color: var(--amber); color: #2b2210; }
.chip.sky.on { background: var(--sky); border-color: var(--sky); color: #14202e; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.empty { color: var(--muted); text-align: center; padding: 26px 10px; }

/* nap card */
.nap { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.nap .ic { width: 56px; height: 56px; border-radius: 18px; background: var(--sky-dim); color: var(--sky); display: grid; place-items: center; flex: none; }
.nap .ic svg { width: 26px; height: 26px; }
.nap .body { flex: 1 1 160px; min-width: 0; }
.nap .t { font-weight: 800; font-size: 18px; letter-spacing: -.01em; line-height: 1.15; }
.nap .s { color: var(--muted); font-size: 13px; margin-top: 2px; }
.nap .btn { flex: 1 1 auto; padding: 12px 14px; font-size: 15px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 14px; font-weight: 700; font-size: 16px; background: var(--card2); border: 1px solid var(--border); color: var(--text); white-space: nowrap; }
.btn svg { width: 18px; height: 18px; }
.btn.primary { background: var(--mint); color: var(--mint-ink); border-color: var(--mint); }
.btn.sky { background: var(--sky); color: #14202e; border-color: var(--sky); }
.btn.amber { background: var(--amber); color: #2b2210; border-color: var(--amber); }
.btn.coral { background: var(--coral); color: #2b1a15; border-color: var(--coral); }
.btn.blue { background: var(--blue); color: #14202e; border-color: var(--blue); }
.btn.purple { background: var(--purple); color: #201a30; border-color: var(--purple); }
.btn.teal { background: var(--teal); color: #14282a; border-color: var(--teal); }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--coral); border-color: rgba(226,146,124,.4); }
.btn.block { width: 100%; padding: 16px; font-size: 18px; border-radius: 18px; }
.btn:disabled { opacity: .5; }

/* 12x12 */
.twelve .big { font-size: 40px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.twelve .big small { display: block; font-size: 14px; color: var(--muted); font-weight: 600; letter-spacing: 0; margin-top: 6px; }
.nights { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; align-items: end; height: 110px; margin-top: 14px; }
.nights .n { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; }
.nights .n .b { width: 100%; max-width: 34px; border-radius: 8px 8px 4px 4px; background: var(--sky); min-height: 3px; opacity: .85; }
.nights .n .b.goal { background: var(--mint); }
.nights .n .l { font-size: 11px; color: var(--muted); }
.nights .n .v { font-size: 11px; color: var(--text); font-weight: 700; }

/* review */
table.rv { width: 100%; border-collapse: collapse; font-size: 14px; }
table.rv th, table.rv td { padding: 9px 6px; text-align: right; border-bottom: 1px solid var(--border); white-space: nowrap; }
table.rv th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
table.rv th:first-child, table.rv td:first-child { text-align: left; }
.tbl-wrap { overflow-x: auto; margin: 0 -6px; }
.spark { width: 100%; height: 120px; display: block; }
.spark .axis { fill: var(--dim); font-size: 10px; }
.legend { display: flex; gap: 14px; font-size: 13px; color: var(--muted); margin-top: 6px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* handoff */
.handoff .k { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.handoff .v { margin: 2px 0 12px; }
pre.plain { white-space: pre-wrap; font: 14px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--bg2); border: 1px solid var(--border); border-radius: 14px; padding: 12px; margin: 0; }

/* tab bar */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; display: grid; grid-template-columns: 1fr 1fr 96px 1fr 1fr; align-items: end; background: rgba(27,26,24,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--border); padding: 10px 6px calc(var(--sab) + 8px); }
.tab { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--muted); font-size: 12px; font-weight: 600; padding: 4px 0; }
.tab.on { color: var(--mint); }
.tab-ic svg { width: 26px; height: 26px; }
.fab { width: 68px; height: 68px; border-radius: 22px; background: var(--mint); color: var(--mint-ink); display: grid; place-items: center; justify-self: center; margin-top: -34px; box-shadow: 0 0 0 6px var(--bg), 0 10px 30px rgba(140,207,178,.35); }
.fab svg { width: 30px; height: 30px; }

/* sheet */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 20; backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 21; background: var(--bg2); border-radius: 26px 26px 0 0; max-height: 92vh; display: flex; flex-direction: column; box-shadow: 0 -10px 40px rgba(0,0,0,.4); animation: up .22s ease-out; }
@keyframes up { from { transform: translateY(40px); opacity: .6; } }
.sheet-handle { width: 46px; height: 5px; border-radius: 3px; background: #4a4944; margin: 10px auto 0; flex: none; }
.sheet-body { overflow-y: auto; padding: 14px 20px calc(var(--sab) + 24px); -webkit-overflow-scrolling: touch; }
.sheet h2.title { font-size: 28px; margin: 6px 0 14px; letter-spacing: -.02em; }
.sheet h3.lbl { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin: 18px 0 8px; }
.types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.type { border: 1px solid var(--border); background: var(--card); border-radius: 16px; padding: 14px 6px; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; font-size: 15px; }
.type svg { width: 24px; height: 24px; }
.type[data-t=feed] svg { color: var(--mint); } .type[data-t=diaper] svg { color: var(--amber); }
.type[data-t=sleep] svg { color: var(--sky); } .type[data-t=incident] svg { color: var(--coral); }
.type[data-t=appt] svg { color: var(--blue); } .type[data-t=activity] svg { color: var(--purple); }
.type[data-t=medicine] svg { color: var(--teal); } .type[data-t=note] svg { color: var(--muted); }
.type.on { color: var(--text); }
.type.on[data-t=feed] { background: var(--mint-dim); border-color: var(--mint); }
.type.on[data-t=diaper] { background: var(--amber-dim); border-color: var(--amber); }
.type.on[data-t=sleep] { background: var(--sky-dim); border-color: var(--sky); }
.type.on[data-t=incident] { background: var(--coral-dim); border-color: var(--coral); }
.type.on[data-t=appt] { background: var(--blue-dim); border-color: var(--blue); }
.type.on[data-t=activity] { background: var(--purple-dim); border-color: var(--purple); }
.type.on[data-t=medicine] { background: var(--teal-dim); border-color: var(--teal); }
.type.on[data-t=note] { background: var(--card2); border-color: var(--muted); }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--card); border-radius: 16px; padding: 4px; }
.seg button { padding: 13px 6px; border-radius: 13px; color: var(--muted); font-weight: 600; font-size: 16px; }
.seg button.on { background: var(--bg); color: var(--text); }
.stepper { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stepper button { width: 62px; height: 62px; border-radius: 18px; background: var(--card); border: 1px solid var(--border); font-size: 30px; font-weight: 500; }
.stepper .v { text-align: center; }
.stepper .v .n { font-size: 40px; font-weight: 800; letter-spacing: -.02em; }
.stepper .v .n small { font-size: 16px; color: var(--muted); font-weight: 600; margin-left: 4px; }
.stepper .v .alt { color: var(--muted); font-size: 14px; }
.when { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 14px 16px; }
.when svg { width: 20px; height: 20px; color: var(--mint); flex: none; }
.when .t { flex: 1; font-weight: 700; font-size: 19px; }
.when .ago { color: var(--muted); }
.when-quick { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.when-quick::-webkit-scrollbar { display: none; }
.field { width: 100%; background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 14px 16px; color: var(--text); font-size: 17px; outline: none; }
.field:focus { border-color: var(--mint); }
textarea.field { min-height: 96px; resize: vertical; }
input[type=datetime-local].field, input[type=date].field, input[type=time].field { color-scheme: dark; text-align: center; font-weight: 600; }
.form-row { display: flex; gap: 10px; }
.form-row > * { flex: 1; }
label.lbl { display: block; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin: 14px 0 6px; }
.save { position: sticky; bottom: 0; padding-top: 14px; background: linear-gradient(transparent, var(--bg2) 30%); }
.tasks .task { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.tasks .task:last-child { border-bottom: 0; }
.check { width: 28px; height: 28px; border-radius: 9px; border: 2px solid var(--dim); display: grid; place-items: center; flex: none; }
.check.on { background: var(--mint); border-color: var(--mint); color: var(--mint-ink); }
.check svg { width: 16px; height: 16px; }
.task .tt { flex: 1; }
.task.done .tt { color: var(--dim); text-decoration: line-through; }
.task .meta { color: var(--dim); font-size: 12px; }
.idea { padding: 12px 0; border-bottom: 1px solid var(--border); }
.idea:last-child { border-bottom: 0; }
.idea b { display: block; }
.idea span { color: var(--muted); font-size: 14px; }
.cg { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.cg:last-child { border-bottom: 0; }
.toast { position: fixed; left: 50%; bottom: calc(var(--sab) + 120px); transform: translateX(-50%); background: var(--card2); border: 1px solid var(--border); color: var(--text); padding: 12px 18px; border-radius: 14px; z-index: 30; font-weight: 600; box-shadow: 0 8px 30px rgba(0,0,0,.4); }
.toast.err { border-color: var(--coral); color: var(--coral); }
.tips li { margin: 6px 0; color: var(--muted); }
.setup { max-width: 440px; margin: 0 auto; }
.kv { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
.kv:last-child { border-bottom: 0; }
.kv span:last-child { font-weight: 700; }
@media (min-width: 560px) { .app { max-width: 560px; margin: 0 auto; } .tabbar, .sheet { max-width: 560px; left: 50%; transform: translateX(-50%); } }

/* ---- accounts, settings, handoff ---- */
.titlebar { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.titlebar .h1 { margin: 0; }
.icon-btn.back { width: 48px; height: 48px; }
.avatar.baby-ic { background: var(--mint-dim); color: var(--mint); }
.avatar.baby-ic svg { width: 28px; height: 28px; }
.avatar.lg { width: 88px; height: 88px; border-radius: 24px; }
.avatar.lg svg { width: 44px; height: 44px; }
.link-btn { display: block; width: 100%; text-align: center; color: var(--mint); font-weight: 600; padding: 14px 0 2px; }
.lnk { color: var(--mint); font-weight: 600; cursor: pointer; }
.invite-card { display: flex; gap: 14px; align-items: flex-start; }
.invite-card .ic { width: 48px; height: 48px; border-radius: 14px; background: var(--mint-dim); color: var(--mint); display: grid; place-items: center; flex: none; }
.invite-card .ic svg { width: 24px; height: 24px; }
.mic { width: 56px; height: 56px; border-radius: 16px; background: var(--card2); color: var(--muted); display: grid; place-items: center; flex: none; }
.mic svg { width: 24px; height: 24px; }
.lang-row { display: flex; align-items: center; gap: 14px; }
.lang-row .mic { background: var(--mint-dim); color: var(--mint); }
.members { display: flex; flex-direction: column; }
.member { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.member:last-child { border-bottom: 0; }
.member .mic { width: 44px; height: 44px; border-radius: 50%; }
.member .mic svg { width: 20px; height: 20px; }
.member .mb { flex: 1; min-width: 0; }
.member .mn { font-weight: 700; overflow-wrap: anywhere; }
.member .mr { color: var(--muted); font-size: 14px; }
.status { font-weight: 700; font-size: 14px; }
.status.active { color: var(--mint); } .status.pending { color: var(--amber); } .status.revoked { color: var(--dim); }
.note-ic.danger { color: var(--coral); }
.field-ic { position: relative; }
.field-ic svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); }
.field-ic .field { padding-left: 46px; }
.photo-row { display: flex; align-items: center; gap: 18px; margin-bottom: 6px; }
.photo-row .name { font-size: 22px; font-weight: 700; }
.photo-wrap { position: relative; }
.photo-wrap .cam { position: absolute; right: -6px; bottom: -6px; width: 34px; height: 34px; border-radius: 50%; background: var(--mint); color: var(--mint-ink); display: grid; place-items: center; border: 3px solid var(--card); }
.photo-wrap .cam svg { width: 16px; height: 16px; }
.gap-row { display: grid; grid-template-columns: 90px auto 90px auto; align-items: center; gap: 10px; }
.gap-row span { color: var(--muted); }
.gap-row .field { text-align: center; padding: 14px 8px; }
.card.inner { background: var(--bg2); margin-top: 12px; padding: 14px; }
.routines { display: flex; flex-direction: column; }
.routine { display: flex; align-items: flex-start; gap: 10px; padding: 16px 0; border-top: 1px solid var(--border); }
.routines .routine:first-child { margin-top: 14px; }
.routine .rb { flex: 1; min-width: 0; }
.routine .rt { font-weight: 700; font-size: 18px; }
.routine .rd { color: var(--muted); margin-top: 2px; }
.routine .rm { color: var(--dim); font-size: 14px; margin-top: 4px; }
.routine.stopped .rt { color: var(--muted); }
.routine .ra { display: flex; gap: 6px; align-items: center; flex: none; }
.role-tag { display: inline-block; font-size: 12px; font-weight: 700; color: var(--mint); margin-left: 6px; vertical-align: 1px; }
.tasks .task .tt .meta { color: var(--dim); font-size: 13px; margin-top: 2px; }
.handoff .form-row .btn { flex: 1; }
.field:disabled, .chip:disabled { opacity: .55; }
