/* Cercalma visual language: blue, green and gentle light. */
:root {
  --font: "Figtree", Arial, Helvetica, sans-serif;
  --font-display: var(--font);
  --ink: #18324f; --ink-2: #526b83; --muted: #637a8e;
  --line: #dde8f1; --sheet: #fff; --card: #fff; --page: #f4f9fd;
  --bg: #f4f9fd; --bg-2: #edf4fb;
  --blue: #2c70c9; --blue-deep: #1e559c; --blue-soft: #eaf3ff;
  --done: #288456; --done-soft: #eaf8ef; --help: #c14747; --help-soft: #fff0ef;
  --brand-900: #153c70; --brand-700: #2867b7; --brand-600: #2e70c5;
  --brand-500: #4a8adc; --brand-300: #afcfee; --brand-100: #eaf3ff; --brand-50: #f3f8ff;
  --green-600: #2e8b59; --green-100: #eaf8ef; --red-600: #c14747;
  --coral-600: #cb6e55; --coral-100: #fff2ec; --sun-100: #fff6e6;
  --lilac-100: #f1edfb; --lilac-600: #735aa4;
  --shadow-sm: 0 3px 12px #2a587e08; --shadow: 0 10px 30px #2a587e09;
  --shadow-lg: 0 20px 55px #2a587e16;
  --radius: 24px; --radius-sm: 16px;
}
* { box-sizing: border-box; }
body { color: var(--ink); font-family: var(--font); line-height: 1.5; background: var(--page); }
button,input,select,textarea { font: inherit; }
button,a,input,select,textarea { touch-action: manipulation; }
a { color: var(--brand-700); }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .6; }
h1,h2,h3,p { overflow-wrap: anywhere; }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible { outline: 3px solid #2363aa; outline-offset: 4px; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: .87rem; }
.btn { border-radius: 14px; font-weight: 700; box-shadow: none; }
.btn.primary,.btn.pri { color: white; background: linear-gradient(125deg,#387fd4,#2865b5); box-shadow: 0 5px 12px #2865b518; }
.btn.danger,.btn.red { color: white; background: linear-gradient(125deg,#cf5656,#b93f43); }
input,select,textarea { color: var(--ink); background: #fcfdff; border: 1px solid #cbddeb; border-radius: 12px; min-height: 46px; }
input[type=checkbox] { min-height: auto; width: 18px; height: 18px; accent-color: var(--blue); }
.check { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }
.toast { background: #183c68; color: white; max-width: calc(100vw - 32px); z-index: 1000; }
.eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .11em; color: #457bb5; }

/* A familiar, welcoming companion on the phone. */
body[data-view] { background: radial-gradient(ellipse at 8% 15%,#e7f2ff 0,transparent 45%),radial-gradient(ellipse at 95% 85%,#e4f5eb 0,transparent 45%),#f5fafd; }
.screen { max-width: 520px; min-height: 100vh; margin: 24px auto 0; padding: 0 0 calc(114px + env(safe-area-inset-bottom)); background: linear-gradient(165deg,#f1f8ff,#fbfefd 58%,#f1faf5); border: 1px solid #dce8f0; border-radius: 30px 30px 0 0; box-shadow: 0 18px 60px #2a587e10; }
.companion-bar { display: flex; justify-content: space-between; align-items: center; gap: 14px; min-height: 76px; padding: 18px 24px; background: #ffffffed; border-bottom: 1px solid #e5edf4; border-radius: 30px 30px 0 0; }
.companion-brand { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; font-weight: 800; color: var(--brand-900); }
.brand-emblem { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 14px; color: #fff; background: linear-gradient(135deg,#4388d7,#3a9d76); box-shadow: 0 4px 10px #3b89aa25; }
.connection-chip { max-width: 52%; padding: 6px 10px; border-radius: 20px; background: #eaf7ef; color: #286d48; font-size: .63rem; font-weight: 700; text-align: center; }
.connection-chip::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 5px; border-radius: 100%; background: currentColor; vertical-align: middle; }
.connection-chip.is-offline { background: #fff0ef; color: #a8373c; }
.screen .sky { padding: 22px 24px 24px; background: transparent; color: var(--ink); border-radius: 0; text-align: center; }
.screen [data-sky] { --sky-ink: var(--brand-900); --sky-ink-2: var(--muted); background: transparent; }
.screen .greeting-tools { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 19px; }
.screen .date-line { margin: 0; text-align: left; color: var(--muted); font-size: .72rem; line-height: 1.6; }
.screen .date-line #dayName { display: block; color: #3a638a; font-weight: 700; font-size: .8rem; }
.screen .sky-btn { flex-shrink: 0; min-width: 46px; height: 46px; border: 1px solid #cdddec; border-radius: 13px; background: #fff; color: #285da0; font: 700 .9rem var(--font); }
.screen .sky-btn .aa.big { font: inherit; }
.screen .hi { position: relative; margin: 0; color: #153c70; font: 750 2rem/1.12 var(--font); letter-spacing: -.035em; }
.screen .greeting-heart { display: inline-flex; margin-left: 10px; color: #4d9a75; transform: rotate(-12deg); vertical-align: middle; }
.screen .companion-subtitle { color: #5d7c71; font-size: .87rem; margin: 14px 0 0; }
.screen .sky-listen { margin-top: 16px; padding: 9px 15px; min-height: 46px; color: #2867b7; background: #fff; border: 1px solid #d2e1ef; border-radius: 13px; font-size: .83rem; box-shadow: 0 3px 8px #32639405; }
.screen .sky-arc-wrap { display: none; }
.screen .sky-link { text-align: left; padding: 28px 24px 20px; }
.screen .sky-link .dayname { font: 750 1.6rem/1.2 var(--font); color: var(--brand-900); margin-top: 25px; }
.screen .sky-link .dateline { color: var(--muted); }
.screen .sheet { padding: 0 24px 18px; margin-top: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.screen .duo { display: block; margin: 0 0 18px; }
.screen .big-choice { display: flex; flex-direction: row; align-items: center; justify-content: flex-start; width: 100%; min-height: 106px; gap: 15px; padding: 20px; border-radius: 24px; margin: 0; border: 0; box-shadow: none; }
.screen #btnTalk { color: white; background: linear-gradient(120deg,#438fdb,#2869bd); box-shadow: 0 10px 24px #2869bd26,inset 0 1px 0 #ffffff30; }
.screen .bc-ic { display: grid; place-items: center; flex: 0 0 54px; width: 54px; height: 54px; border-radius: 50%; margin: 0; color: inherit; background: #ffffff25; }
.screen #btnTalk .bc-ic { border: 2px solid #ffffffcc; box-shadow: 0 0 0 5px #ffffff10; }
.screen .action-copy { flex: 1; min-width: 0; }
.screen .big-choice b { display: block; font-size: 1.08rem; line-height: 1.2; font-weight: 750; }
.screen .big-choice small { display: block; margin-top: 6px; font-size: .79rem; color: inherit; opacity: .96; font-weight: 400; line-height: 1.35; }
.screen .action-arrow { display: flex; flex-shrink: 0; }
.screen .family-call { background: #eaf3ff; color: #235a99; border: 1px solid #ccdff3; margin: 17px 0; min-height: 94px; }
.screen .family-call .bc-ic { color: #3476be; background: #fff; border-radius: 17px; width: 48px; height: 48px; flex-basis: 48px; }
.screen .now { padding: 23px; display: grid; gap: 7px; border: 1px solid #dbe7ee; border-radius: 25px; background: #fff; box-shadow: 0 6px 20px #2a587e08; }
.screen .now.due { border: 1px solid #acd4bd; box-shadow: 0 6px 20px #2f845d0a; }
.screen .now-when { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: #577888; font-size: .67rem; font-weight: 750; letter-spacing: .045em; text-transform: uppercase; }
.screen .reminder-label { display: flex; align-items: center; gap: 7px; }
.screen .now-when b { background: #edf7f1; color: #2c8053; font-size: 1.05rem; font-weight: 750; padding: 5px 9px; border-radius: 10px; letter-spacing: 0; }
.screen .now.due .now-when span::before { content: none; }
.screen .now h2 { color: #173e66; font: 700 1.27rem/1.23 var(--font); letter-spacing: -.025em; margin: 8px 0 2px; text-wrap: auto; }
.screen .now-sub { font-size: .87rem; line-height: 1.45; color: #617487; margin: 3px 0 9px; }
.screen .btn { min-height: 59px; border-radius: 17px; padding: 13px 17px; font-weight: 700; font-size: 1.03rem; }
.screen #btnConfirm { background: linear-gradient(120deg,#419e67,#2c8252); box-shadow: 0 5px 14px #35905b1c; }
.screen .btn-text { min-height: 46px; color: #2c69ac; font-size: .84rem; }
.screen .later { border: 0; padding: 8px 5px 18px; margin-top: 8px; }
.screen .later h3 { font-size: .87rem; color: #627d90; }
.screen .later ol { padding: 0; }
.screen .later li { font-size: .92rem; padding: 12px 0; }
.screen .feel { padding: 22px 0; margin-top: 0; }
.screen .feel h3 { color: #234b72; font-size: 1rem; font-weight: 700; text-align: center; margin: 0 0 16px; }
.screen .moods { gap: 9px; }
.screen .mood { border: 1px solid #dce8ed; border-radius: 21px; background: #fff; color: #4774a2; min-height: 106px; gap: 9px; }
.screen .mood[data-mood=bien] { color: #3e9867; background: #f1faf4; border-color: #d8ecdf; }
.screen .mood[data-mood=regular] { color: #977136; background: #fffaf0; border-color: #f1e4c7; }
.screen .mood[data-mood=mal] { color: #bd6161; background: #fff4f2; border-color: #f3ded9; }
.screen .mood span:last-child { font-size: .76rem; font-weight: 650; color: #3f556c; }
.screen .mood.sel { outline: 3px solid currentColor; outline-offset: 2px; }
.screen .rows { background: #fff; border: 1px solid #dce8ed; border-radius: 23px; padding: 0 17px; margin-top: 0; overflow: hidden; }
.screen .row-btn { min-height: 93px; border-bottom: 1px solid #e8eff4; padding: 16px 0; color: #254f75; }
.screen .row-btn:last-child { border: 0; }
.screen .row-btn b { font-size: .91rem; font-weight: 700; }
.screen .row-btn small { font-size: .74rem; line-height: 1.4; }
.screen .r-ic { width: 43px; height: 43px; border-radius: 15px; color: #408b6c; background: #eaf7ef; }
.screen .r-ic.red { color: #b25851; background: #fff0ed; }
.screen .weather { padding: 20px 10px; }
.screen .prefs { padding: 0 10px; }
.screen .prefs summary { font-size: .87rem; }
.screen .helpbar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: min(520px,100%); padding: 12px 24px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid #e0e9ed; background: #f7fcfbeF; backdrop-filter: blur(12px); box-shadow: 0 -6px 24px #3b678609; z-index: 20; }
.screen .helpbar button { min-height: 62px; width: 100%; border-radius: 20px; border: 0; background: linear-gradient(120deg,#d05e62,#be464b); color: #fff; font-size: 1.04rem; font-weight: 700; box-shadow: 0 6px 14px #ba42451d; }
.screen .page { padding: 30px 24px; }
.screen .title { font-family: var(--font); font-size: 1.8rem; font-weight: 750; color: #153c70; letter-spacing: -.035em; }
.screen .back { padding: 12px 16px; background: #fff; border: 1px solid #d8e4ef; border-radius: 14px; color: #2d65a4; }
.screen .talkview { padding: 24px; background: transparent; }
.screen .orb { background: linear-gradient(130deg,#5d9edd,#2869bd); box-shadow: 0 0 0 13px #e8f2fc,0 10px 32px #357fba30; color: #fff; width: 100px; height: 100px; margin: 30px auto; }
.screen .orb.listening { background: linear-gradient(130deg,#58b880,#298e5a); }
.screen .bubble.bot { background: #eaf3ff; color: #214f82; border-radius: 20px 20px 20px 5px; border: 1px solid #d9e8f7; }
.screen .bubble.user { background: #eef8f1; color: #2b6847; border-radius: 20px 20px 5px 20px; border: 1px solid #dcecdf; }
.screen .talk-controls { gap: 9px; }
.screen .tbtn { background: #fff; border: 1px solid #d8e6f0; border-radius: 15px; min-height: 54px; color: #35669e; }
.screen .typebox { display: flex; gap: 9px; margin-top: 18px; }
.screen .typebox input { min-width: 0; flex: 1; }
.screen .person { border-radius: 20px; border: 1px solid #d9e6f0; background: #fff; padding: 20px; margin: 15px 0; }
.screen .person .av { background: #e9f3ff; color: #3275c1; }
.screen .help-sent { background: #eef7f2; color: #295740; border-radius: 22px; padding: 22px; }
.screen .quota { color: #67808b; font-size: .73rem; line-height: 1.7; padding: 8px; text-align: center; }
.screen .pulse { animation: none; }

/* The family shares the same palette, surfaces and rounded actions. */
.family { background: linear-gradient(130deg,#f0f7fe,#f8fbfd 55%,#f1f9f5); min-height: 100vh; }
.family .bar { background: #fffffff2; height: 82px; padding: 18px max(28px,calc((100vw - 1360px)/2)); border-bottom: 1px solid #e1ebf2; box-shadow: none; backdrop-filter: blur(12px); position: sticky; top: 0; z-index: 30; }
.family .brand { font: 800 27px var(--font); gap: 11px; color: #153c70; }
.family .brand .logo { width: 41px; height: 41px; padding: 0; background: linear-gradient(135deg,#4388d7,#3a9d76); color: #fff; border-radius: 14px; }
.family .brand small { font-size: 13px; font-weight: 500; color: #67819a; margin-left: 4px; border-left: 1px solid #d8e5f0; padding-left: 18px; }
.family #userBox { font-size: 14px; color: #5a748a; background: #f3f8fd; padding: 10px 14px; border-radius: 13px; }
.family .link { font-weight: 650; }
.family .panel { max-width: 1360px; display: grid; grid-template-columns: 228px minmax(0,1fr); gap: 30px; margin: auto; padding: 28px 28px 65px; }
.family .tabs { flex-direction: column; gap: 5px; align-self: start; position: sticky; top: 108px; background: #ffffffc9; border: 1px solid #e1eaf2; border-radius: 24px; padding: 20px 12px 16px; overflow: visible; margin: 0; box-shadow: 0 8px 25px #2a587e04; }
.family-space { display: flex; gap: 10px; align-items: center; padding: 4px 6px 22px; border-bottom: 1px solid #e9eff4; margin: 0 4px 12px; }
.family-avatar { display: grid; place-items: center; flex: 0 0 43px; height: 43px; border-radius: 16px; background: linear-gradient(140deg,#dcf2e4,#edf8f3); color: #348358; font-size: 21px; font-weight: 800; }
.family-space strong { display: block; font-size: 17px; color: #23486e; line-height: 1.4; max-width: 130px; overflow-wrap: anywhere; }
.family-space small { display: block; font-size: 10px; color: #748b9c; margin-top: 2px; }
.nav-eyebrow { font-size: 9px; font-weight: 750; letter-spacing: .1em; color: #768fa3; }
.family .tabs button { min-height: 47px; display: flex; gap: 11px; align-items: center; padding: 12px 14px; font-size: 14px; font-weight: 550; text-align: left; white-space: normal; background: transparent; color: #61788e; border-radius: 13px; box-shadow: none; }
.family .tabs .nav-icon { display: inline-flex; flex: 0 0 21px; color: #7b96af; }
.family .tabs button.on { color: #2867b7; background: #eaf3ff; font-weight: 750; }
.family .tabs button.on .nav-icon { color: #377cc3; }
.family .tabs button:hover { background: #f0f6fc; }
.family .manual-link { margin: 15px 12px 2px; padding-top: 15px; border-top: 1px solid #e5edf4; font-size: 12px; color: #3e739b; text-decoration: none; }
.family .tab { min-width: 0; }
.family .hero { position: relative; background: linear-gradient(115deg,#e4f1ff 0,#eff8fc 55%,#e6f4eb 100%); color: #153c70; border: 1px solid #d9e8f2; border-radius: 27px; padding: 29px 30px 25px; margin-bottom: 22px; overflow: hidden; }
.family .hero-copy { position: relative; z-index: 1; max-width: 80%; }
.family .hero .eyebrow { margin: 0 0 10px; font-size: 10px; color: #4b7daa; }
.family .hero .headline { font: 750 33px/1.2 var(--font); letter-spacing: -.035em; margin: 8px 0; color: #153c70; }
.family .hero .sub { color: #648099; font-weight: 500; font-size: 13px; }
.family .hero-detail { font-size: 14px; color: #526e83; margin: 0 0 24px; }
.family .hero-emblem { position: absolute; right: 43px; top: 36px; width: 92px; height: 92px; border-radius: 31px; display: grid; place-items: center; background: #ffffffaa; color: #79ab9a; transform: rotate(5deg); box-shadow: 0 10px 22px #3e847710; border: 1px solid #fff; }
.family .hero-heart { position: absolute; right: -7px; top: -10px; width: 38px; height: 38px; display: grid; place-items: center; background: #fff; color: #548ccb; border-radius: 15px; transform: rotate(-12deg); box-shadow: 0 3px 10px #375c8810; }
.family .hero-sky { display: none; }
.family .kpis { position: relative; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; }
.family .kpi { border: 1px solid #e1ebf2; border-radius: 18px; padding: 17px; background: #ffffffeb; box-shadow: 0 3px 12px #375c8805; }
.family .kpi-icon { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; margin-bottom: 8px; }
.blue { background: #eaf3ff; color: #3979c0; }
.green { background: #eaf8ef; color: #3d9563; }
.purple { background: #f1edfb; color: #8469b1; }
.amber { background: #fff5e4; color: #9c712c; }
.family .kpi .label { font-size: 12px; color: #668093; font-weight: 500; }
.family .kpi .big { color: #214a6b; font-size: 23px; font-weight: 750; margin: 4px 0 3px; }
.family .kpi .small { font-size: 11px; color: #72899a; font-weight: 400; }
.family .card { background: #fff; border: 1px solid #e0e9f1; border-radius: 23px; padding: 24px; box-shadow: 0 6px 24px #2a587e06; margin-bottom: 19px; }
.family h1,.family h2,.family h3 { font-family: var(--font); color: #224c74; }
.family h2 { display: flex; align-items: center; gap: 10px; font-size: 19px; line-height: 1.35; font-weight: 750; letter-spacing: -.025em; margin: 0 0 16px; }
.family .heading-icon { display: inline-grid; place-items: center; flex: 0 0 34px; height: 34px; border-radius: 12px; }
.family h3 { font-size: 16px; font-weight: 700; }
.family .today-grid { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); gap: 20px; align-items: start; }
.family .today-grid>div { min-width: 0; }
.family .item { gap: 13px; padding: 15px 0; border-top: 1px solid #edf2f6; align-items: center; font-size: 14px; }
.family .item:first-child { border-top: 0; }
.family .item .pill { flex-shrink: 0; }
.family .pill { font-size: 11px; padding: 5px 10px; font-weight: 650; border-radius: 9px; }
.family .badge { font-size: 11px; background: #e9f2fd; color: #3170b2; border-radius: 8px; padding: 3px 9px; }
.family #alertList>.muted { font-size: 13px; line-height: 1.65; padding: 14px 16px; background: #f3f9f6; border-radius: 13px; margin: 0; color: #557f6e; }
.family .ob { background: #fffdfa; border-color: #e8e4d8; box-shadow: none; }
.family .ob h2 { font-size: 17px; }
.family .ob ol { display: grid; grid-template-columns: 1fr 1fr; column-gap: 30px; row-gap: 4px; margin-bottom: 0; padding-left: 24px; }
.family .ob li { font-size: 12px; line-height: 1.6; padding: 4px 0; color: #6c7b85; }
.family .ob a { font-weight: 500; text-decoration: none; }
.family .message-card { background: linear-gradient(150deg,#fff,#f4fbf7); border-color: #dcebe3; }
.family .message-card p { font-size: 13px; line-height: 1.65; }
.family .message-card .row { display: grid; grid-template-columns: 1fr; gap: 11px; }
.family .message-card input { font-size: 13px; width: 100%; }
.family .message-card button { justify-content: center; background: linear-gradient(125deg,#3d9e6b,#2e8056); }
.family .form { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px 20px; }
.family .form label { margin: 0; font-size: 13px; color: #567086; font-weight: 650; }
.family .form input,.family .form select,.family .form textarea { width: 100%; margin-top: 7px; }
.family .form .check input { width: 18px; }
.family .form button { align-self: end; min-height: 46px; }
.family .grid { gap: 20px; }
.family .auth { max-width: 1050px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 65px; margin: 45px auto; padding: 20px 28px; }
.auth-intro h1 { font: 750 43px/1.14 var(--font); color: #153c70; letter-spacing: -.045em; margin: 15px 0 23px; }
.auth-intro p { max-width: 370px; color: #637c91; font-size: 17px; line-height: 1.65; }
.auth-intro .note { color: #467c65; padding: 22px; margin-top: 30px; border-radius: 20px; background: #eaf7ef; font-size: 14px; }
.family .auth .narrow { max-width: none; margin: 0; width: 100%; padding: 30px; }
.family .auth h1 { font-family: var(--font); font-size: 29px; font-weight: 750; }
.family .auth .btn.primary { width: 100%; justify-content: center; }
.family .private-heading { margin-bottom: 22px; padding: 8px 2px; }
.family .private-heading h1 { color: #153c70; font-size: 33px; letter-spacing: -.035em; font-weight: 750; margin: 8px 0; }
.family .private-heading>.muted { font-size: 15px; }
.family .notice { font-size: 13px; line-height: 1.65; border-radius: 14px; background: #eef6ff; color: #547591; padding: 16px 18px; }
.family .record { padding: 20px 0; border-top: 1px solid #e6edf4; }
.family .record h3 { margin: 0 0 7px; }
.family .record p { white-space: pre-wrap; overflow-wrap: anywhere; }
.family .record-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.family .memory-card { border: 1px solid #e0eaf3; border-left: 4px solid #83b7dd; background: linear-gradient(120deg,#f3f8ff,#fff); padding: 20px; border-radius: 17px; margin-bottom: 14px; }
.family .memory-card p { margin: 0 0 14px; }
.family .memory-card .btn { background: #fff; color: #4475a2; border: 1px solid #d5e5f2; }
.family .empty { background: #f8fbff; border: 1px dashed #cddfea; border-radius: 18px; padding: 30px; text-align: center; color: #70889c; line-height: 1.65; }
.family .consent-controls { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 18px; }
.family .consent-controls .btn { margin-left: 0; }
.family .error { color: #aa3c42; }
.family .bottomnav { display: none; }

@media(max-width:1100px) {
  .family .panel { grid-template-columns: 205px minmax(0,1fr); gap: 22px; padding: 24px 20px 55px; }
  .family .today-grid { grid-template-columns: 1fr; gap: 0; }
  .family .hero-emblem { right: 28px; width: 75px; height: 75px; }
  .family .hero-copy { max-width: 80%; }
  .family .hero .headline { font-size: 29px; }
}
@media(max-width:800px) {
  .family .bar { height: 72px; padding: 14px 18px; }
  .family .brand { font-size: 24px; }
  .family .brand small { display: none; }
  .family #userBox { font-size: 12px; padding: 8px 11px; }
  .family .panel { display: block; padding: 18px 14px 35px; }
  .family .tabs { position: static; flex-direction: row; flex-wrap: nowrap; overflow-x: auto; gap: 5px; padding: 8px; margin-bottom: 18px; border-radius: 18px; scrollbar-width: thin; }
  .family .family-space { display: none; }
  .family .manual-link { flex-shrink: 0; margin: 0; padding: 11px 12px; border: 0; display: flex; align-items: center; white-space: nowrap; }
  .family .tabs button { white-space: nowrap; font-size: 13px; min-height: 44px; padding: 10px 13px; gap: 8px; flex: 0 0 auto; }
  .family .tabs .nav-icon { flex-basis: 18px; }
  .family .tabs svg { width: 18px; height: 18px; }
  .family .hero { padding: 23px 19px 18px; border-radius: 23px; }
  .family .hero-copy { max-width: 100%; }
  .family .hero-emblem { display: none; }
  .family .hero .headline { font-size: 28px; }
  .family .hero .sub { font-size: 12px; }
  .family .hero-detail { font-size: 13px; }
  .family .hero .eyebrow { font-size: 9px; }
  .family .kpis { gap: 7px; }
  .family .kpi { border-radius: 14px; padding: 12px 9px; }
  .family .kpi .label { font-size: 10px; }
  .family .kpi .big { font-size: 19px; }
  .family .kpi .small { font-size: 10px; }
  .family .kpi-icon { width: 31px; height: 31px; }
  .family .card { padding: 20px; border-radius: 21px; }
  .family .card h2 { font-size: 18px; }
  .family .ob ol { grid-template-columns: 1fr; }
  .family .form { grid-template-columns: 1fr; }
  .family .private-heading h1 { font-size: 29px; }
  .family .auth { grid-template-columns: 1fr; gap: 22px; padding: 0 20px; margin: 28px auto; }
  .auth-intro h1 { font-size: 32px; margin-bottom: 16px; }
  .auth-intro .note { display: none; }
  .family .auth .narrow { padding: 24px; }
}
@media(max-width:540px) {
  .screen { margin-top: 0; width: 100%; border: 0; border-radius: 0; box-shadow: none; }
  .companion-bar { border-radius: 0; padding: 16px 20px; min-height: 72px; }
  .screen .sky { padding: 20px 20px 23px; }
  .screen .sheet { padding: 0 18px 16px; }
  .screen .hi { font-size: 1.9rem; }
  .screen .companion-subtitle { font-size: .8rem; }
  .screen .big-choice { padding: 18px; gap: 12px; min-height: 99px; }
  .screen .big-choice b { font-size: 1.02rem; }
  .screen .big-choice small { font-size: .75rem; }
  .screen .bc-ic { flex-basis: 49px; width: 49px; height: 49px; }
  .screen .now { padding: 20px; }
  .screen .now-when { font-size: .61rem; letter-spacing: .02em; }
  .screen .now-when b { font-size: .98rem; }
  .screen .helpbar { padding: 11px 18px calc(14px + env(safe-area-inset-bottom)); }
  .screen .page,.screen .talkview { padding: 25px 18px; }
}
@media(max-width:360px) {
  .companion-bar { padding: 13px 16px; gap: 8px; }
  .companion-brand { font-size: 1rem; gap: 8px; }
  .brand-emblem { width: 34px; height: 34px; }
  .connection-chip { font-size: .58rem; padding: 5px 8px; }
  .screen .action-arrow { display: none; }
  .screen .big-choice { gap: 10px; padding: 16px; }
  .screen .sheet { padding: 0 14px 16px; }
  .screen .now { padding: 16px; }
  .screen .hi { font-size: 1.7rem; }
  .screen .moods { gap: 6px; }
  .screen .mood span:last-child { font-size: .67rem; }
  .family .kpis { grid-template-columns: 1fr; }
  .family .kpi { display: grid; grid-template-columns: 38px 1fr; column-gap: 10px; }
  .family .kpi-icon { grid-row: 1/4; align-self: center; margin: 0; }
  .family .kpi .big { font-size: 20px; margin: 0; }
  .family .item { flex-wrap: wrap; }
}
@media(prefers-reduced-motion:reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
