/* ============================================================
   Kairo — in-app screen components (rendered inside .phone)
   Faithful to the app's visual vocabulary. Prefix: s-
   ============================================================ */
.s-topbar{ display:flex; justify-content:space-between; align-items:center; padding:8px 22px 16px; }
.s-eyebrow{ font-size:9px; font-weight:700; letter-spacing:0.155em; text-transform:uppercase; color:var(--muted); white-space:nowrap; }
.s-eyebrow.forest{ color:var(--forest); } .s-eyebrow.cream{ color:var(--cream); }
.s-sect{ padding:0 22px; }
.s-sect + .s-sect{ margin-top:20px; }
.s-greet .hi{ font-size:12.5px; font-weight:500; color:var(--text2); }
.s-greet .head{ font-size:21px; font-weight:600; letter-spacing:-0.035em; color:var(--text); margin-top:3px; line-height:1.16; }
.s-greet .head .forest{ color:var(--forest); }
.s-head{ display:flex; justify-content:space-between; align-items:baseline; margin-bottom:11px; }
.s-title{ font-size:14px; font-weight:600; letter-spacing:-0.02em; color:var(--text); }
.s-link{ font-size:9px; font-weight:700; letter-spacing:0.1em; text-transform:uppercase; color:var(--forest); }
.s-card{ background:var(--bgRaise); border:1px solid var(--cardLine); border-radius:18px; }

.s-food{ position:relative; overflow:hidden; }
.s-food .g{ position:absolute; inset:0; }
.s-food .st{ position:absolute; inset:0; opacity:0.10; background-image:repeating-linear-gradient(135deg,#000 0 2px,transparent 2px 9px); }

/* hero (cook night) */
.s-hero{ overflow:hidden; }
.s-hero-photo{ position:relative; height:158px; }
.s-hero-photo .scrim{ position:absolute; inset:0; background:linear-gradient(to top, rgba(10,15,12,0.86), rgba(10,15,12,0.30) 42%, transparent 70%); }
.s-hero-photo .tag{ position:absolute; top:13px; left:14px; display:flex; align-items:center; gap:6px; padding:5px 10px; background:rgba(15,22,18,0.7); backdrop-filter:blur(6px); border-radius:99px; }
.s-hero-photo .tag i{ width:5px; height:5px; border-radius:99px; background:var(--forest); }
.s-hero-photo .tag span{ font-size:8px; font-weight:700; letter-spacing:0.12em; text-transform:uppercase; color:var(--cream); }
.s-hero-photo .cap{ position:absolute; left:16px; right:16px; bottom:13px; }
.s-hero-photo .cap .name{ font-size:19px; font-weight:700; letter-spacing:-0.03em; color:#F8F4E6; line-height:1.1; }
.s-hero-photo .cap .meta{ margin-top:7px; display:flex; gap:13px; }
.s-hero-photo .cap .meta span{ font-size:9.5px; font-weight:600; color:rgba(248,244,230,0.82); display:flex; align-items:center; gap:4px; }
.s-hero-photo .cap .meta svg{ width:11px; height:11px; }
.s-hero-cta{ padding:13px 14px 14px; }
.s-btn{ display:flex; align-items:center; justify-content:center; gap:8px; background:var(--forest); border-radius:99px; padding:14px; }
.s-btn svg{ width:15px; height:15px; }
.s-btn span{ font-size:13.5px; font-weight:600; letter-spacing:-0.02em; color:var(--bg); }

/* week strip */
.s-week{ padding:15px; }
.s-week-strip{ display:flex; gap:5px; }
.s-week-strip .n{ flex:1; height:38px; border-radius:9px; display:flex; align-items:flex-end; justify-content:center; padding-bottom:6px; position:relative; }
.s-week-strip .n .dl{ font-size:8px; font-weight:700; }
.s-week-strip .n.cook{ background:var(--forestSoft); } .s-week-strip .n.cook .dl{ color:var(--forest); }
.s-week-strip .n.cook::before{ content:''; position:absolute; top:7px; left:50%; transform:translateX(-50%); width:5px; height:5px; border-radius:99px; background:var(--forest); }
.s-week-strip .n.left{ background:var(--creamSoft); } .s-week-strip .n.left .dl{ color:var(--cream); }
.s-week-strip .n.left::before{ content:''; position:absolute; top:7px; left:50%; transform:translateX(-50%); width:5px; height:5px; border-radius:99px; background:var(--cream); }
.s-week-strip .n.open{ border:1px dashed var(--cardLineHi); } .s-week-strip .n.open .dl{ color:var(--dim); }
.s-week-legend{ display:flex; gap:14px; margin-top:12px; }
.s-week-legend .lg{ display:flex; align-items:center; gap:5px; }
.s-week-legend .lg i{ width:6px; height:6px; border-radius:99px; }
.s-week-legend .lg span{ font-size:10px; font-weight:500; color:var(--text2); }
.s-week-legend .lg b{ color:var(--text); }

/* day rows (meal plan) */
.s-day{ display:flex; align-items:center; gap:13px; padding:12px 0; border-bottom:1px solid var(--cardLine); }
.s-day:last-child{ border-bottom:none; }
.s-day .dn{ width:30px; flex-shrink:0; font-size:10px; font-weight:700; letter-spacing:0.08em; text-transform:uppercase; color:var(--muted); }
.s-day .thumb{ width:46px; height:46px; border-radius:12px; flex-shrink:0; position:relative; overflow:hidden; border:1px solid var(--cardLineHi); }
.s-day .info{ flex:1; min-width:0; }
.s-day .info .mn{ font-size:12.5px; font-weight:600; letter-spacing:-0.02em; color:var(--text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.s-day .info .mm{ font-size:9.5px; font-weight:500; color:var(--muted); margin-top:2px; }

/* profiles (family) */
.s-profiles{ display:flex; gap:9px; }
.s-prof{ flex:1; display:flex; flex-direction:column; align-items:center; gap:7px; padding:13px 6px; border-radius:14px; background:var(--bgRaise); border:1px solid var(--cardLine); }
.s-prof.active{ border-color:var(--forest); background:var(--forestSoft); }
.s-prof .av{ width:38px; height:38px; border-radius:99px; display:flex; align-items:center; justify-content:center; font-size:14px; font-weight:700; color:#0F1612; }
.s-prof .pn{ font-size:10px; font-weight:600; color:var(--text); }
.s-prof .pr{ font-size:8px; font-weight:600; letter-spacing:0.06em; text-transform:uppercase; color:var(--muted); }
.s-plate{ display:flex; align-items:center; gap:11px; padding:12px 0; border-bottom:1px solid var(--cardLine); }
.s-plate:last-child{ border-bottom:none; }
.s-plate .av{ width:30px; height:30px; border-radius:99px; flex-shrink:0; display:flex; align-items:center; justify-content:center; font-size:11px; font-weight:700; color:#0F1612; }
.s-plate .pt{ flex:1; }
.s-plate .pt .who{ font-size:12px; font-weight:600; color:var(--text); }
.s-plate .pt .det{ font-size:10px; font-weight:500; color:var(--muted); margin-top:1px; }
.s-plate .badge{ font-size:9px; font-weight:700; letter-spacing:0.04em; padding:4px 8px; border-radius:99px; }

/* macro ring + bars */
.s-macros{ display:flex; align-items:center; gap:16px; padding:15px; }
.s-ring{ position:relative; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.s-ring svg{ transform:rotate(-90deg); }
.s-ring .inner{ position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; }
.s-ring .inner .p{ font-size:15px; font-weight:700; letter-spacing:-0.03em; color:var(--text); }
.s-ring .inner .pl{ font-size:8px; font-weight:600; color:var(--muted); }
.s-mac-list{ flex:1; display:flex; flex-direction:column; gap:9px; }
.s-mac{ } .s-mac .top{ display:flex; justify-content:space-between; font-size:10.5px; font-weight:600; }
.s-mac .top .ml{ color:var(--text2); } .s-mac .top .mv{ color:var(--text); }
.s-mac .bar{ margin-top:4px; height:4px; background:var(--trackFill); border-radius:99px; overflow:hidden; }
.s-mac .bar i{ display:block; height:100%; border-radius:99px; }

/* micro grid */
.s-micro-grid{ display:grid; grid-template-columns:1fr 1fr; gap:9px 16px; }
.s-micro{ }
.s-micro .top{ display:flex; justify-content:space-between; align-items:baseline; }
.s-micro .mn{ font-size:10.5px; font-weight:500; color:var(--text2); }
.s-micro .mv{ font-size:10.5px; font-weight:700; color:var(--text); }
.s-micro .bar{ margin-top:4px; height:3px; background:var(--trackFill); border-radius:99px; overflow:hidden; }
.s-micro .bar i{ display:block; height:100%; border-radius:99px; }

/* allergen rows */
.s-block{ display:flex; align-items:center; gap:10px; padding:11px 13px; border-radius:13px; }
.s-block.safe{ background:var(--forestSoft); }
.s-block.flag{ background:rgba(184,90,53,0.14); }
.s-block .ico{ width:26px; height:26px; border-radius:99px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.s-block .bt{ flex:1; } .s-block .bt .l1{ font-size:11.5px; font-weight:600; color:var(--text); }
.s-block .bt .l2{ font-size:9.5px; font-weight:500; margin-top:1px; }

/* grocery */
.s-gro-cat{ margin-bottom:16px; }
.s-gro-cat .ct{ display:flex; align-items:center; justify-content:space-between; margin-bottom:8px; }
.s-gro-cat .ct .cn{ font-size:10px; font-weight:700; letter-spacing:0.1em; text-transform:uppercase; color:var(--forest); }
.s-gro-cat .ct .cc{ font-size:9.5px; font-weight:600; color:var(--muted); }
.s-gro-item{ display:flex; align-items:center; gap:11px; padding:8px 0; }
.s-gro-item .box{ width:18px; height:18px; border-radius:6px; border:1.5px solid var(--cardLineHi); flex-shrink:0; display:flex; align-items:center; justify-content:center; }
.s-gro-item.done .box{ background:var(--forest); border-color:var(--forest); }
.s-gro-item.done .nm{ color:var(--muted); text-decoration:line-through; }
.s-gro-item .nm{ flex:1; font-size:12.5px; font-weight:500; color:var(--text); }
.s-gro-item .qt{ font-size:10.5px; font-weight:500; color:var(--muted); }

/* recipe detail */
.s-rec-hero{ position:relative; height:188px; }
.s-rec-hero .scrim{ position:absolute; inset:0; background:linear-gradient(to top, rgba(10,15,12,0.9), transparent 60%); }
.s-rec-hero .chips{ position:absolute; left:16px; bottom:46px; display:flex; gap:6px; }
.s-rec-hero .nm{ position:absolute; left:16px; right:16px; bottom:14px; font-size:20px; font-weight:700; letter-spacing:-0.03em; color:#F8F4E6; line-height:1.12; }
.s-rec-stat{ display:flex; padding:14px 0; }
.s-rec-stat .st1{ flex:1; text-align:center; border-right:1px solid var(--cardLine); }
.s-rec-stat .st1:last-child{ border-right:none; }
.s-rec-stat .v{ font-size:15px; font-weight:700; letter-spacing:-0.02em; color:var(--text); }
.s-rec-stat .k{ font-size:8px; font-weight:700; letter-spacing:0.08em; text-transform:uppercase; color:var(--muted); margin-top:3px; }
.s-ing{ display:flex; align-items:center; gap:11px; padding:9px 0; border-bottom:1px solid var(--cardLine); }
.s-ing:last-child{ border-bottom:none; }
.s-ing .dotimg{ width:30px; height:30px; border-radius:8px; flex-shrink:0; position:relative; overflow:hidden; }
.s-ing .innm{ flex:1; font-size:12px; font-weight:500; color:var(--text); }
.s-ing .amt{ font-size:10.5px; font-weight:600; color:var(--muted); }
