/* Daisy for the browser. Colours, sizes and radii come from Daisy/Design/*.swift and each Features/ view. */
@font-face { font-family: "Daisy Serif"; src: url("fonts/DaisySerif-Medium.ttf"); font-weight: 500; font-style: normal; }
@font-face { font-family: "Daisy Serif"; src: url("fonts/DaisySerif-SemiBold.ttf"); font-weight: 600; font-style: normal; }
@font-face { font-family: "Daisy Serif"; src: url("fonts/DaisySerif-Italic.ttf"); font-weight: 400; font-style: italic; }
@font-face { font-family: "Daisy Serif"; src: url("fonts/DaisySerif-MediumItalic.ttf"); font-weight: 500; font-style: italic; }

.theme-light {
  --bg: #FBF7F1; --surface: #FFFFFF; --sunk: #F3EDE4; --ink: #2B2420; --ink2: #82766C; --ink3: #BCB2A7;
  --line: #E8DFD4; --yolk: #F2AE3A; --yolkSoft: #FCEDCD; --yolkInk: #9E6206; --onYolk: #2B2420;
  --petal: #FFFFFF; --petalShade: #FFF1E2; --shadow: 107,74,43; --dawnTop: #FFF4E2; --dawnBottom: #FFE3C4;
  --glass: rgba(255,251,243,.86); --sep: rgba(60,50,40,.13); --rowbg: #FFFFFF; --grouped: #FBF7F1;
  --food-w:#FFE6D3; --food-i:#B0521A; --sleep-w:#E8E5FB; --sleep-i:#4C43AE; --play-w:#DDF1E4; --play-i:#287548;
  --grow-w:#DEEBF9; --grow-i:#2A64A0; --care-w:#FBE3E8; --care-i:#AD3858; --talk-w:#FCF0CC; --talk-i:#86620A;
  --iconbg: rgba(255,255,255,.75); --dim: rgba(20,14,10,.28);
  color-scheme: light;
}
.theme-dark {
  --bg: #121016; --surface: #1C1922; --sunk: #27232E; --ink: #F4EEE7; --ink2: #A9A1B2; --ink3: #686172;
  --line: #36313F; --yolk: #F5BF55; --yolkSoft: #352C1C; --yolkInk: #F7C866; --onYolk: #2B2420;
  --petal: #F6F0E8; --petalShade: #E6DACB; --shadow: 0,0,0; --dawnTop: #221D2B; --dawnBottom: #2B2233;
  --glass: rgba(44,40,52,.86); --sep: rgba(255,255,255,.1); --rowbg: #1C1922; --grouped: #121016;
  --food-w:#33241B; --food-i:#FFB585; --sleep-w:#23203B; --sleep-i:#BAB3FF; --play-w:#182F20; --play-i:#92DDB0;
  --grow-w:#182838; --grow-i:#98C7F6; --care-w:#351C25; --care-i:#F5A6BB; --talk-w:#302811; --talk-i:#F2D27A;
  --iconbg: rgba(255,255,255,.08); --dim: rgba(0,0,0,.5);
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  background: #d9d4cd; display: flex; align-items: center; justify-content: center; min-height: 874px;
  font-family: ui-rounded, "SF Pro Rounded", -apple-system, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; overflow: hidden;
}
@media (max-width: 402px), (max-height: 874px) { body { align-items: flex-start; justify-content: flex-start; } }
button, input, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; margin: 0; cursor: pointer; }
:focus { outline: none; }
:focus-visible { outline: 3px solid #3478F6; outline-offset: 2px; border-radius: 12px; }

#device {
  position: relative; width: 402px; height: 874px; overflow: hidden; background: var(--bg); color: var(--ink);
  font-size: 17px; line-height: 1.25; user-select: none; -webkit-user-select: none; isolation: isolate;
}
#stack, #layers { position: absolute; inset: 0; }
#layers { pointer-events: none; }
#layers > * { pointer-events: auto; }

.serif { font-family: "Daisy Serif", Georgia, serif; font-weight: 600; letter-spacing: -0.01em; }
.serif.med { font-weight: 500; }
.serif.it { font-style: italic; font-weight: 400; }
.serif.medit { font-style: italic; font-weight: 500; }

/* Status bar (402x62 safe area, 9:41 like the simulator) */
#statusbar { position: absolute; left: 0; right: 0; top: 0; height: 54px; z-index: 50; pointer-events: none; color: #000; transition: opacity .2s; }
#statusbar svg { fill: currentColor; }
/* fix round 6 (page): the clock never sits on scrolled content */
#statusbar::before { content: ''; position: absolute; inset: 0; z-index: -1; background: color-mix(in srgb, var(--bg) 74%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); -webkit-mask-image: linear-gradient(#000 62%, transparent); mask-image: linear-gradient(#000 62%, transparent); }
#device.sb-light #statusbar::before, #device.sb-hidden #statusbar::before { display: none; }
.sb-time { position: absolute; left: 51px; top: 21px; font: 600 17px/22px -apple-system, system-ui, sans-serif; letter-spacing: -.2px; }
.sb-right { position: absolute; right: 36px; top: 26px; display: flex; gap: 6px; align-items: center; }
#device.sb-light #statusbar { color: #fff; }
#device.sb-hidden #statusbar { opacity: 0; }
.theme-dark #statusbar { color: #fff; }

/* Screens */
.screen { position: absolute; inset: 0; background: var(--bg); overflow: hidden; transform-origin: 50% 50%; will-change: transform; }
.scroll { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; overscroll-behavior: contain; touch-action: pan-y; }
.scroll::-webkit-scrollbar { display: none; }
.pad { padding: 62px 20px 34px; }
.home .pad { padding-top: 66px; padding-bottom: 66px; }

.press { transition: transform .28s cubic-bezier(.2,.9,.3,1.2); }
.press:active, .press.is-down { transform: scale(.97); transition: transform .1s ease-out; }
.press.p92:active, .press.p92.is-down { transform: scale(.92); }
.press.p90:active, .press.p90.is-down { transform: scale(.9); }
.press.p98:active, .press.p98.is-down { transform: scale(.98); }
.press.p985:active, .press.p985.is-down { transform: scale(.985); }

.ico { display: inline-block; flex: none; vertical-align: middle; }
.card { background: var(--surface); border-radius: 28px; box-shadow: 0 10px 20px rgba(var(--shadow), .06); }
.theme-dark .card { box-shadow: none; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 6px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; line-height: 1.2; white-space: nowrap; }

.primary {
  display: flex; align-items: center; justify-content: center; gap: 8px; height: 64px; border-radius: 99px; flex: 1;
  background: var(--ink); color: var(--bg); font-size: 17px; font-weight: 600; min-width: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 6px 16px rgba(var(--shadow), .12);
}
.primary.yolk { background: var(--yolk); color: var(--onYolk); box-shadow: inset 0 -1.5px 0 rgba(255,236,120,.55), inset 0 1px 0 rgba(255,255,255,.3), 0 8px 18px rgba(var(--shadow), .12); }
.primary[disabled] { opacity: .45; cursor: default; }
.glassbtn {
  display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; flex: none;
  background: var(--glass); color: var(--ink); box-shadow: 0 6px 18px rgba(var(--shadow), .12), inset 0 0 0 .5px rgba(255,255,255,.6);
  -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
}
.glassbtn.dark { background: rgba(40,38,36,.62); color: #fff; box-shadow: inset 0 0 0 .5px rgba(255,255,255,.18); }

/* Home */
.home-head { display: flex; align-items: center; gap: 14px; padding-top: 6px; }
.home-name { font-size: 46px; line-height: 1.12; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.home-age { font-size: 21px; font-family: "Daisy Serif", Georgia, serif; font-style: italic; color: var(--ink2); line-height: 1.25; }
.avatar { width: 48px; height: 48px; border-radius: 50%; position: relative; flex: none; background: var(--surface);
  box-shadow: 0 4px 8px rgba(var(--shadow), .12); }
.avatar img, .avatar .av-mark { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.avatar::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 2.5px var(--surface); }
.avatar-btn { width: 48px; height: 48px; border-radius: 50%; }
.home-col { display: flex; flex-direction: column; gap: 20px; }

.week { padding: 14px 10px 12px; }
.week-head { display: flex; align-items: center; gap: 10px; padding: 0 6px; }
.week-title { font-size: 19px; font-weight: 500; line-height: 1.2; white-space: nowrap; }
.week-sub { font-size: 12px; font-weight: 500; color: var(--ink2); white-space: nowrap; margin-top: 1px; }
.week-head .grow { flex: 1; min-width: 0; }
.today-pill { height: 30px; padding: 0 11px; border-radius: 99px; background: var(--yolkSoft); color: var(--yolkInk); font-size: 12px; font-weight: 700; position: relative; }
.today-pill::before { content: ""; position: absolute; inset: -7px -2px; }
.wk-btn { width: 34px; height: 44px; display: inline-flex; align-items: center; justify-content: center; color: var(--ink2); }
.wk-btn[disabled] { color: var(--ink3); opacity: .5; cursor: default; }
.strip { height: 102px; margin-top: 14px; overflow: hidden; position: relative; touch-action: pan-y; cursor: grab; }
.strip-track { display: flex; height: 100%; will-change: transform; }
.strip-page { flex: none; width: 100%; display: flex; }
.cell { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 7px; min-width: 0; padding: 0; }
.cell[disabled] { cursor: default; }
.cell-letter { height: 14px; font-size: 11px; font-weight: 700; color: var(--ink3); display: flex; align-items: center; line-height: 1; }
.cell-letter.today { color: var(--ink); }
.tile { width: 40px; height: 54px; position: relative; border-radius: 20px; display: flex; align-items: center; justify-content: center; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 20px; pointer-events: none; }
.tile.open { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='54'%3E%3Crect x='.75' y='.75' width='38.5' height='52.5' rx='19.25' fill='none' stroke='%23BCB2A7' stroke-opacity='.8' stroke-width='1.5' stroke-dasharray='3 4'/%3E%3C/svg%3E"); color: var(--ink3); }
.theme-dark .tile.open { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='54'%3E%3Crect x='.75' y='.75' width='38.5' height='52.5' rx='19.25' fill='none' stroke='%23686172' stroke-opacity='.8' stroke-width='1.5' stroke-dasharray='3 4'/%3E%3C/svg%3E"); }
.tile.todayopen { background: var(--yolkSoft); color: var(--yolkInk); }
.tile.future { background: color-mix(in srgb, var(--sunk) 55%, transparent); }
.tile.before::after { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--line); }
.tile.ring::before { content: ""; position: absolute; inset: -4px; border-radius: 24px; box-shadow: inset 0 0 0 2.2px var(--yolk); z-index: 1; }
.dots { position: absolute; bottom: 5px; left: 0; right: 0; display: flex; justify-content: center; gap: 2px; z-index: 1; filter: drop-shadow(0 0 1.5px rgba(0,0,0,.6)); }
.dots i { width: 3.5px; height: 3.5px; border-radius: 50%; background: #fff; }
.cell-num { font-size: 13px; font-weight: 600; color: var(--ink2); line-height: 16px; }
.cell-num.today { font-weight: 700; color: var(--ink); }
.cell-num.dim { color: var(--ink3); }

.todaycard { position: relative; border-radius: 32px; overflow: hidden; min-height: 320px; padding: 22px; display: flex; flex-direction: column;
  background: linear-gradient(135deg, var(--dawnTop), var(--dawnBottom)); box-shadow: 0 10px 20px rgba(var(--shadow), .07); }
.todaycard .tc-daisy { position: absolute; width: 230px; height: 230px; right: -70px; top: -64px; transform: rotate(12deg); pointer-events: none; }
.theme-dark .todaycard .tc-daisy { opacity: .18; }
.tc-label { font-size: 15px; font-weight: 600; color: var(--ink2); position: relative; }
.tc-spacer { flex: 1; min-height: 28px; }
.tc-day { font-size: 48px; line-height: 1.15; position: relative; }
.tc-idea { position: relative; margin-top: 4px; line-height: 1.3; }
.tc-idea b { font-size: 15px; font-weight: 700; color: var(--yolkInk); margin-right: 8px; }
.tc-idea span { font-size: 20px; color: var(--ink2); }
.tc-row { display: flex; gap: 10px; margin-top: 22px; align-items: center; position: relative; }
.tc-cam { width: 56px; height: 56px; }

.todayfilled { position: relative; display: block; width: 100%; aspect-ratio: 4/5; border-radius: 32px; overflow: hidden; }
.todayfilled img.cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.todayfilled .shade { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent, transparent 50%, rgba(0,0,0,.55)); }
.todayfilled .tf-text { position: absolute; left: 22px; bottom: 22px; color: #fff; text-align: left; }
.tf-text .l { font-size: 15px; font-weight: 600; opacity: .85; }
.tf-text .d { font-size: 44px; line-height: 1.1; }
.tf-pills { position: absolute; right: 22px; bottom: 22px; display: flex; gap: 6px; }
.tf-wrap { position: relative; }
.tf-wrap .tf-add { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; }

.lookback { padding: 14px; border-radius: 26px; display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; }
.lookback img { width: 66px; height: 84px; object-fit: cover; border-radius: 18px; }
.lookback .t { font-size: 22px; }
.lookback .s { font-size: 15px; font-weight: 500; color: var(--ink2); margin-top: 3px; }
.lookback.cmp { flex-direction: column; align-items: stretch; gap: 12px; }
.lb-row { display: flex; gap: 10px; }
.lb-tile { flex: 1; aspect-ratio: 4/5; border-radius: 20px; overflow: hidden; position: relative; }
.lb-tile img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.lb-tile .pill { position: absolute; left: 8px; bottom: 8px; }

.growcard { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 26px; width: 100%; text-align: left; }
.grow-faces { display: flex; }
.grow-faces img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2.5px var(--surface); margin-left: -16px; }
.grow-faces img:first-child { margin-left: 0; }
.growcard .t { font-size: 17px; font-weight: 600; }
.growcard .s { font-size: 15px; color: var(--ink2); margin-top: 2px; }
.playdot { width: 42px; height: 42px; border-radius: 50%; background: var(--yolk); color: var(--onYolk); display: flex; align-items: center; justify-content: center; flex: none; }

.learn-title { font-size: 27px; font-weight: 500; margin: 10px 0 0 2px; line-height: 1.2; }
.learn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.lcard { min-height: 152px; padding: 16px; border-radius: 26px; display: flex; flex-direction: column; text-align: left; min-width: 0; }
.lcard .h { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; }
.lcard .sp { flex: 1; min-height: 20px; }
.lcard .big { font-size: 30px; line-height: 1.15; white-space: nowrap; overflow: hidden; }
.lcard .u { font-size: 15px; font-weight: 500; opacity: .72; margin-top: 1px; white-space: nowrap; overflow: hidden; }
.caticon { border-radius: 50%; background: var(--iconbg); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.signature { display: flex; justify-content: center; align-items: center; gap: 8px; padding-top: 14px; color: var(--ink3); font-size: 15px; }

/* Day */
.topbar { display: flex; align-items: center; justify-content: space-between; padding-top: 0; margin-left: -2px; margin-right: -4px; }
.topbar .backbtn span { width: 46px; height: 46px; }
.backbtn { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; }
.backbtn span { width: 44px; height: 44px; border-radius: 50%; background: var(--glass); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(var(--shadow), .1); color: var(--ink); }
.daynav { display: flex; padding: 0 12px; border-radius: 99px; background: var(--glass); box-shadow: 0 6px 16px rgba(var(--shadow), .1); height: 46px; align-items: center; }
.daynav button { width: 42px; height: 44px; display: flex; align-items: center; justify-content: center; color: var(--yolkInk); }
.daynav button[disabled] { color: var(--ink3); opacity: .45; cursor: default; }
.day-col { display: flex; flex-direction: column; gap: 20px; margin-top: 10px; }
.day-title { font-size: 42px; line-height: 1.15; margin: 0; }
.day-sub { font-size: 15px; font-weight: 500; color: var(--ink2); margin-top: 4px; white-space: nowrap; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mtile { position: relative; aspect-ratio: 3/4; border-radius: 22px; overflow: hidden; display: block; width: 100%; }
.mtile.single { aspect-ratio: 4/5; border-radius: 30px; }
.mtile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.mtile .star { position: absolute; top: 10px; left: 10px; width: 26px; height: 26px; border-radius: 50%; background: var(--yolk); color: var(--onYolk); display: flex; align-items: center; justify-content: center; }
.mtile .pill { position: absolute; left: 10px; bottom: 10px; }
.mtile.enter { animation: none; }
.empty { position: relative; border-radius: 30px; min-height: 300px; padding: 28px; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: color-mix(in srgb, var(--surface) 60%, transparent); }
.empty::before { content: ""; position: absolute; inset: 0; border-radius: 30px; border: 1.5px dashed var(--line); pointer-events: none; }
.empty .petalbox { position: relative; width: 210px; height: 110px; margin-bottom: 6px; }
.empty .petalbox > svg { position: absolute; left: 0; top: -50px; }
.empty .petalbox .pl { position: absolute; left: 50%; top: 59px; transform: translate(-50%, -50%); color: var(--yolkInk); }
.empty .t { font-size: 23px; font-weight: 500; }
.empty .i { font-size: 18px; color: var(--ink2); text-align: center; }
.findcard { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 22px; width: 100%; text-align: left; }
.findcard .ic { width: 44px; height: 44px; border-radius: 14px; background: var(--yolkSoft); color: var(--yolkInk); display: flex; align-items: center; justify-content: center; flex: none; }
.findcard .t { font-size: 17px; font-weight: 600; }
.findcard .s { font-size: 13px; color: var(--ink2); margin-top: 2px; line-height: 1.35; }
.lib-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.lib-head .t { font-size: 21px; font-weight: 500; }
.lib-head .s { font-size: 13px; color: var(--ink2); margin-top: 2px; }
.addn { height: 36px; padding: 0 16px; border-radius: 99px; background: var(--yolk); color: var(--onYolk); font-size: 15px; font-weight: 700; flex: none; }
.lib-row { display: flex; gap: 10px; overflow-x: auto; margin: 12px -20px 0; padding: 0 20px 4px; scrollbar-width: none; touch-action: pan-x; }
.lib-row::-webkit-scrollbar { display: none; }
.ltile { position: relative; width: 98px; height: 130px; border-radius: 18px; overflow: hidden; flex: none; transition: transform .2s cubic-bezier(.32,.72,0,1); }
.ltile img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ltile.picked { transform: scale(.95); box-shadow: inset 0 0 0 3px var(--yolk); }
.ltile.picked::after { content: ""; position: absolute; inset: 0; border-radius: 18px; box-shadow: inset 0 0 0 3px var(--yolk); }
.ltile .chk { position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 50%; background: rgba(0,0,0,.25); box-shadow: inset 0 0 0 1.5px #fff; display: flex; align-items: center; justify-content: center; color: var(--onYolk); z-index: 1; }
.ltile .chk.on { background: var(--yolk); }
.ltile .veil { position: absolute; inset: 0; background: rgba(0,0,0,.28); }
.ltile .tag { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); padding: 4px 10px; border-radius: 99px; background: rgba(0,0,0,.35); color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; }
.ltile .vid { position: absolute; left: 9px; bottom: 9px; color: #fff; filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); }
.addbar { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px 20px 42px; display: flex; gap: 10px; align-items: center;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--bg) 0%, transparent), var(--bg) 40%); }
.addbar .glassbtn { width: 56px; height: 56px; }
.addbar .primary { height: 64px; }

/* Lesson */
.lesson .pad { padding: 62px 22px 40px; }
.l-back span { background: color-mix(in srgb, var(--surface) 75%, transparent); }
.l-row { display: flex; align-items: center; gap: 10px; margin-top: 24px; }
.l-row .t { font-size: 25px; font-weight: 500; }
.l-row .sp { flex: 1; }
.l-visual { height: 258px; border-radius: 32px; background: color-mix(in srgb, var(--surface) 62%, transparent); margin-top: 22px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.l-head { font-size: 54px; line-height: 1.12; margin-top: 28px; white-space: nowrap; }
.l-unit { font-size: 24px; color: var(--ink2); }
.l-sum { font-size: 20px; font-weight: 500; margin-top: 14px; line-height: 1.3; }
.l-points { margin-top: 24px; display: flex; flex-direction: column; gap: 14px; }
.l-points div { display: flex; gap: 12px; font-size: 17px; line-height: 1.3; }
.l-points i { width: 7px; height: 7px; border-radius: 50%; flex: none; margin-top: 8px; }
.l-next { display: flex; gap: 10px; align-items: center; padding: 16px; border-radius: 20px; background: color-mix(in srgb, var(--surface) 60%, transparent); margin-top: 28px; font-size: 15px; line-height: 1.3; }
.l-note { font-size: 13px; color: var(--ink2); margin-top: 22px; line-height: 1.35; }
.l-links { display: flex; gap: 18px; margin-top: 8px; font-size: 13px; font-weight: 600; }
.l-links a { color: inherit; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.ms-list { width: 100%; padding: 0 20px; display: flex; flex-direction: column; gap: 10px; }
.ms-cap { font-size: 12px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; }
.ms-item { display: flex; align-items: center; gap: 12px; padding: 0 14px; min-height: 50px; border-radius: 16px; background: var(--surface); width: 100%; text-align: left; font-size: 17px; font-weight: 500; }
.ms-item .c { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: none; color: var(--surface); }
.ms-item .seen { margin-left: auto; font-size: 12px; font-weight: 700; }

/* Sheets */
.scrim { position: absolute; inset: 0; background: var(--dim); opacity: 0; }
.sheet { position: absolute; left: 0; right: 0; top: 54px; bottom: 0; background: var(--grouped); border-radius: 38px 38px 0 0; overflow: hidden; touch-action: none;
  box-shadow: 0 -8px 30px rgba(0,0,0,.12); will-change: transform; display: flex; flex-direction: column; }
.sheet.tall { top: 62px; }
.navbar { flex: none; height: 64px; display: flex; align-items: center; justify-content: center; position: relative; padding: 0 16px; }
.navbar .title { font-size: 17px; font-weight: 600; }
.navbar .grab { position: absolute; top: 6px; left: 50%; width: 36px; height: 5px; margin-left: -18px; border-radius: 3px; background: var(--ink3); opacity: .5; }
.navbtn { position: absolute; top: 10px; height: 44px; min-width: 44px; padding: 0 14px; border-radius: 99px; font-size: 17px; font-weight: 600; color: var(--yolkInk);
  background: var(--glass); box-shadow: 0 2px 10px rgba(var(--shadow), .08); display: flex; align-items: center; justify-content: center; gap: 4px; }
.navbtn.l { left: 16px; } .navbtn.r { right: 16px; }
.navbtn.ink { color: var(--ink); }
.navbtn.prim { background: var(--yolk); color: var(--onYolk); }
.navbtn[disabled] { opacity: .4; }
.sheet-body { flex: 1; overflow-y: auto; scrollbar-width: none; overscroll-behavior: contain; touch-action: pan-y; }
.sheet-body::-webkit-scrollbar { display: none; }
.subpage { position: absolute; inset: 0; background: var(--grouped); display: flex; flex-direction: column; will-change: transform; }

/* Photo picker, drawn like the iPhone's */
.picker { background: var(--surface); }
.theme-light .picker { background: #FFFFFF; }
.pk-seg { display: flex; margin: 0 16px 10px; background: var(--sunk); border-radius: 99px; padding: 3px; }
.pk-seg div { flex: 1; text-align: center; font-size: 13px; font-weight: 600; padding: 6px 0; border-radius: 99px; }
.pk-seg .on { background: var(--surface); box-shadow: 0 2px 6px rgba(0,0,0,.08); }
.pk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.pk-cell { position: relative; aspect-ratio: 1; overflow: hidden; display: block; width: 100%; }
.pk-cell img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; transition: transform .15s; }
.pk-cell.sel img { transform: scale(.94); }
.pk-cell .num { position: absolute; right: 6px; bottom: 6px; width: 24px; height: 24px; border-radius: 50%; background: #3478F6; color: #fff; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 1.5px #fff; }
.pk-cell .dur { position: absolute; right: 6px; bottom: 5px; color: #fff; font-size: 12px; font-weight: 600; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.pk-cell.sel .dur { display: none; }
.pk-device { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: var(--sunk); color: #3478F6; font-size: 13px; font-weight: 600; text-align: center; padding: 8px; aspect-ratio: 1; position: relative; overflow: hidden; }
.pk-device input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.pk-sec { font-size: 13px; color: var(--ink2); padding: 14px 16px 8px; font-weight: 600; }
.pk-foot { text-align: center; font-size: 13px; color: var(--ink2); padding: 18px 20px 40px; line-height: 1.4; }

/* Camera */
.camera { position: absolute; inset: 0; background: #000; color: #fff; }
.camera video, .camera .shot { position: absolute; left: 0; right: 0; top: 112px; height: 536px; width: 100%; object-fit: cover; }
.cam-top { position: absolute; top: 62px; left: 0; right: 0; height: 44px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 13px; }
.cam-bottom { position: absolute; left: 0; right: 0; bottom: 0; height: 226px; background: #000; display: flex; align-items: center; justify-content: space-between; padding: 0 30px 50px; }
.cam-bottom > * { width: 80px; display: flex; justify-content: center; }
.cam-txt { font-size: 17px; color: #fff; height: 44px; }
.shutter { width: 76px; height: 76px; border-radius: 50%; border: 4px solid #fff; display: flex; align-items: center; justify-content: center; }
.shutter i { width: 62px; height: 62px; border-radius: 50%; background: #fff; transition: transform .12s; }
.shutter:active i { transform: scale(.9); }
.cam-flip { width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.14); display: flex; align-items: center; justify-content: center; color: #fff; }
.cam-mode { position: absolute; left: 0; right: 0; bottom: 186px; text-align: center; font-size: 13px; font-weight: 600; color: #FFD60A; letter-spacing: 1px; }

/* Viewer */
.viewer { position: absolute; inset: 0; background: #000; color: #fff; overflow: hidden; touch-action: none; }
.v-track { position: absolute; inset: 0; display: flex; will-change: transform; }
.v-page { flex: none; width: 402px; height: 874px; position: relative; overflow: hidden; }
.v-media { position: absolute; left: 0; right: 0; top: 62px; bottom: 34px; display: flex; align-items: center; justify-content: center; }
.v-media img, .v-media video { max-width: 100%; max-height: 100%; width: 100%; height: 100%; object-fit: contain; transform-origin: 50% 50%; will-change: transform; pointer-events: none; }
.v-top { position: absolute; left: 16px; right: 16px; top: 62px; display: flex; justify-content: space-between; align-items: center; transition: opacity .2s; }
.v-count { height: 36px; padding: 0 14px; border-radius: 99px; display: flex; align-items: center; font-size: 15px; font-weight: 600; background: rgba(40,38,36,.62); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.18); }
.v-bottom { position: absolute; left: 0; right: 0; bottom: 44px; display: flex; flex-direction: column; align-items: center; gap: 14px; transition: opacity .2s; }
.v-actions { display: flex; gap: 14px; }
.v-actions .glassbtn { width: 50px; height: 50px; }
.v-notice { padding: 12px 18px; border-radius: 99px; background: rgba(40,38,36,.75); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); font-size: 15px; font-weight: 600; display: flex; gap: 14px; align-items: center; }
.v-notice button { color: var(--yolk); font-weight: 700; min-height: 30px; }
.chrome-off .v-top, .chrome-off .v-bottom { opacity: 0; pointer-events: none; }

/* Slideshow */
.flip { position: absolute; inset: 0; background: #000; color: #fff; overflow: hidden; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease-in-out; }
.slide.on { opacity: 1; }
.slide .blur { position: absolute; inset: -60px; width: calc(100% + 120px); height: calc(100% + 120px); object-fit: cover; filter: blur(40px); }
.slide .blurdim { position: absolute; inset: 0; background: rgba(0,0,0,.35); }
.slide .fitbox { position: absolute; left: 0; right: 0; top: 62px; bottom: 34px; display: flex; align-items: center; justify-content: center; }
.slide .fit { width: 100%; height: 100%; object-fit: contain; will-change: transform; }
.birth { background: linear-gradient(#2C2440, #16121F); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; }
.f-grad { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(rgba(0,0,0,.55), transparent 220px), linear-gradient(to top, rgba(0,0,0,.6), transparent 260px); }
.f-title { position: absolute; left: 22px; top: 83px; right: 90px; pointer-events: none; }
.f-title .d { font-size: 46px; line-height: 1.12; }
.f-title .s { font-size: 15px; font-weight: 600; opacity: .85; margin-top: 2px; }
.f-close { position: absolute; top: 78px; right: 18px; width: 44px; height: 44px; }
.f-controls { position: absolute; left: 0; right: 0; bottom: 38px; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.f-row { display: flex; gap: 18px; align-items: center; }
.f-row .b50 { width: 50px; height: 50px; } .f-row .b64 { width: 64px; height: 64px; }
.pace { display: flex; gap: 2px; padding: 4px; border-radius: 99px; background: rgba(40,38,36,.62); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.18); }
.pace button { width: 52px; height: 42px; border-radius: 99px; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.75); transition: background .2s, color .2s; }
.pace button.on { background: var(--yolk); color: #2B2420; }
.slider { position: relative; width: calc(100% - 48px); height: 44px; touch-action: none; cursor: pointer; }
.slider .tr { position: absolute; left: 0; right: 0; top: 20px; height: 4px; border-radius: 2px; background: rgba(255,255,255,.22); }
.slider .fill { position: absolute; left: 0; top: 20px; height: 4px; border-radius: 2px; background: var(--yolk); }
.slider .th { position: absolute; top: 10px; width: 38px; height: 24px; margin-left: -19px; border-radius: 12px; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.f-now { font-size: 12px; font-weight: 600; opacity: .7; height: 14px; }

/* Atlas */
.atl { padding: 8px 20px 40px; display: flex; flex-direction: column; gap: 22px; }
.chips { display: flex; gap: 8px; }
.chip { min-height: 40px; padding: 0 16px; border-radius: 99px; font-size: 15px; font-weight: 700; background: var(--sunk); color: var(--ink2); }
.chip.on { background: var(--yolk); color: var(--onYolk); }
.mcard { padding: 16px; border-radius: 26px; }
.mhead { display: flex; justify-content: space-between; align-items: baseline; padding: 0 4px; }
.mhead .t { font-size: 24px; }
.mhead .c { font-size: 12px; font-weight: 600; color: var(--ink2); }
.wkrow { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 12px; font-size: 11px; font-weight: 700; color: var(--ink3); text-align: center; }
.mgrid { display: grid; grid-template-columns: repeat(7, 1fr); column-gap: 6px; row-gap: 8px; margin-top: 12px; }
.aday { display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 58px; transition: opacity .25s; }
.aday[disabled] { cursor: default; }
.aday .v { height: 42px; width: 100%; position: relative; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.aday .v img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.aday .v.open { border: 1.2px dashed color-mix(in srgb, var(--ink3) 75%, transparent); color: var(--ink3); }
.aday .v.hl { background: var(--yolkSoft); border: 1.5px dashed var(--yolk); color: var(--yolkInk); }
.aday .v.tod { background: var(--yolkSoft); border: 1.5px solid var(--yolk); color: var(--yolkInk); }
.aday .v.ring::after { content: ""; position: absolute; inset: -2px; border-radius: 14px; box-shadow: inset 0 0 0 2px var(--yolk); }
.aday .v.na::after { content: ""; width: 4px; height: 4px; border-radius: 50%; background: color-mix(in srgb, var(--line) 55%, transparent); }
.aday .n { font-size: 11px; font-weight: 600; color: var(--ink2); }
.aday .n.tod { font-weight: 700; color: var(--ink); }
.aday .n.na { color: color-mix(in srgb, var(--ink3) 45%, transparent); }
.aday.dimmed { opacity: .24; }
.allfilled { padding: 44px 0; display: flex; flex-direction: column; align-items: center; gap: 14px; border-radius: 26px; }

/* Grouped form (Settings) */
.form { padding: 0 16px 40px; }
.fsec { margin-top: 22px; }
.fhead { font-size: 13px; font-weight: 600; color: var(--ink2); padding: 0 16px 7px; }
.ffoot { font-size: 13px; color: var(--ink2); padding: 7px 16px 0; line-height: 1.35; }
.fgroup { background: var(--rowbg); border-radius: 26px; overflow: hidden; }
.frow { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 10px 18px; position: relative; font-size: 17px; width: 100%; text-align: left; }
.frow + .frow::before { content: ""; position: absolute; top: 0; left: 18px; right: 0; height: .5px; background: var(--sep); }
.frow .v { color: var(--ink2); white-space: nowrap; }
.frow input[type=text] { border: 0; background: none; font-size: 17px; text-align: right; color: var(--ink2); width: 55%; padding: 6px 0; min-height: 32px; }
.frow input[type=date], .frow input[type=time] { border: 0; background: var(--sunk); border-radius: 8px; padding: 6px 10px; font-size: 17px; color: var(--ink); min-height: 36px; }
.frow.link { color: var(--ink); }
.frow.link .chev { color: var(--ink3); }
.frow.danger { color: #E5484D; justify-content: center; font-weight: 500; }
.frow.block { display: block; padding: 14px 18px; }
.toggle { width: 64px; height: 28px; border-radius: 99px; background: var(--line); position: relative; flex: none; transition: background .2s; }
.toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 38px; height: 24px; border-radius: 99px; background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,.2); transition: transform .25s cubic-bezier(.32,.72,0,1); }
.toggle.on { background: var(--yolk); }
.toggle.on::after { transform: translateX(22px); }
.seg { display: flex; background: var(--sunk); border-radius: 99px; padding: 3px; width: 100%; }
.seg button { flex: 1; min-height: 38px; border-radius: 99px; font-size: 15px; font-weight: 600; color: var(--ink); }
.seg button.on { background: var(--surface); box-shadow: 0 2px 6px rgba(0,0,0,.1); }
.theme-dark .seg button.on { background: #48434f; }
.s-hero { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 6px 0 0; }
.s-hero .avatar { width: 88px; height: 88px; }
.s-hero .n { font-size: 30px; }
.s-hero .a { font-size: 18px; color: var(--ink2); }
.credit .t { font-weight: 600; }
.credit .a { font-size: 15px; color: var(--ink2); margin-top: 3px; line-height: 1.35; }
.credit .k { display: flex; gap: 16px; margin-top: 6px; font-size: 13px; font-weight: 600; }
.credit a { color: var(--yolkInk); text-decoration: none; }
.prose { font-size: 17px; line-height: 1.35; }
.prose a { color: var(--yolkInk); }

/* Alerts and action sheets */
.alert-wrap { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.25); opacity: 0; transition: opacity .2s ease-out; z-index: 80; }
.alert-wrap.on { opacity: 1; }
.alert { width: 300px; border-radius: 30px; background: var(--glass); -webkit-backdrop-filter: blur(30px) saturate(180%); backdrop-filter: blur(30px) saturate(180%); padding: 22px 18px 16px; text-align: center; transform: scale(1.08); transition: transform .25s cubic-bezier(.32,.72,0,1); box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.theme-light .alert { background: rgba(255,255,255,.92); }
.alert-wrap.on .alert { transform: none; }
.alert .t { font-size: 17px; font-weight: 600; }
.alert .m { font-size: 15px; color: var(--ink2); margin-top: 6px; line-height: 1.35; }
.alert .bs { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.alert .bs.two { flex-direction: row; }
.alert .bs button { flex: 1; min-height: 48px; border-radius: 99px; background: var(--sunk); font-size: 17px; font-weight: 600; }
.alert .bs button.destr { color: #fff; background: #E5484D; }
.alert .bs button.def { color: var(--onYolk); background: var(--yolk); }
.action-wrap { position: absolute; inset: 0; background: rgba(0,0,0,.3); opacity: 0; transition: opacity .25s; z-index: 80; display: flex; align-items: flex-end; }
.action-wrap.on { opacity: 1; }
.action { width: 100%; margin: 0 10px 40px; display: flex; flex-direction: column; gap: 8px; transform: translateY(40px); transition: transform .3s cubic-bezier(.32,.72,0,1); }
.action-wrap.on .action { transform: none; }
.action .grp { background: rgba(250,248,245,.95); border-radius: 26px; overflow: hidden; color: #2B2420; }
.action .grp.dk { background: rgba(44,42,48,.95); color: #fff; }
.action .hd { padding: 16px 20px 12px; text-align: center; font-size: 13px; color: #8a8178; line-height: 1.35; }
.action .hd b { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.action button { width: 100%; min-height: 56px; font-size: 19px; border-top: .5px solid rgba(0,0,0,.12); }
.action .grp.dk button { border-color: rgba(255,255,255,.1); }
.action button.destr { color: #E5484D; }
.action button.cancel { font-weight: 600; border: 0; }

/* Toast */
#toast { position: absolute; left: 50%; bottom: 46px; transform: translate(-50%, 0) scale(.9); padding: 12px 18px; border-radius: 99px; background: var(--glass); color: var(--ink);
  -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); box-shadow: 0 8px 24px rgba(var(--shadow), .16);
  font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px; opacity: 0; pointer-events: none; white-space: nowrap; z-index: 70;
  transition: opacity .3s ease-out, transform .35s cubic-bezier(.32,.72,0,1); }
#toast.on { opacity: 1; transform: translate(-50%, 0) scale(1); }
#toast.above { bottom: 118px; }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--ink) 25%, transparent); border-top-color: var(--ink); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

#touchdot { position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: rgba(255,255,255,.55); box-shadow: 0 0 0 2px rgba(43,36,32,.35), 0 4px 14px rgba(0,0,0,.25);
  opacity: 0; transform: scale(1.3); pointer-events: none; z-index: 90; transition: opacity .2s ease-out, transform .25s ease-out; }
#touchdot.on { opacity: 1; transform: scale(1); }
#touchdot.tap { transform: scale(.82); }

/* Onboarding */
.onb { position: absolute; inset: 0; background: linear-gradient(var(--dawnTop), var(--bg) 50%); }
.onb-step { position: absolute; inset: 0; padding: 70px 24px 52px; display: flex; flex-direction: column; will-change: transform, opacity; }
.onb-welcome { align-items: center; text-align: center; padding-bottom: 38px; }
.onb-welcome .sp { flex: 1; }
.onb-welcome .nm { font-size: 64px; margin-top: 30px; line-height: 1.1; }
.onb-welcome .tg { font-size: 23px; color: var(--ink2); margin-top: 2px; }
.onb-welcome .ln { font-size: 15px; font-weight: 500; color: var(--ink2); margin-bottom: 18px; }
.onb-welcome .primary { width: 100%; flex: none; }
.onb-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.onb-top .glassbtn { width: 44px; height: 44px; }
.progress { display: flex; gap: 6px; }
.progress i { height: 8px; width: 8px; border-radius: 4px; background: var(--line); transition: width .3s, background .3s; }
.progress i.on { background: var(--yolk); }
.progress i.cur { width: 22px; }
.onb-q { font-size: 38px; line-height: 1.22; margin: 0; }
.onb-body { flex: 1; overflow: auto; scrollbar-width: none; }
.onb-name { margin-top: 36px; }
.onb-name input { width: 100%; border: 0; background: none; font-family: "Daisy Serif", Georgia, serif; font-weight: 500; font-size: 48px; color: var(--ink); padding: 0; caret-color: var(--yolkInk); user-select: text; -webkit-user-select: text; }
.onb-name input::placeholder { color: var(--ink3); }
.onb-name .ul { height: 2px; background: var(--line); margin-top: 10px; transition: background .2s ease-out; }
.onb-name.focus .ul { background: var(--yolk); }
.onb-foot { padding-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.onb-foot .primary { flex: none; }
.notnow { min-height: 44px; font-size: 17px; font-weight: 600; color: var(--ink2); }
.onb-sub { font-size: 17px; color: var(--ink2); margin-top: 10px; line-height: 1.3; }
.cal { margin: 22px 0 0; padding: 18px 12px 14px; border-radius: 26px; background: var(--surface); box-shadow: 0 10px 20px rgba(var(--shadow), .06); }
.cal-head { display: flex; align-items: center; justify-content: space-between; padding: 0 8px 0 10px; }
.cal-head .m { font-size: 17px; font-weight: 600; display: flex; align-items: center; gap: 6px; font-family: -apple-system, system-ui, sans-serif; }
.cal-head .m .ico { color: var(--yolk); }
.cal-head .ar { display: flex; gap: 8px; }
.cal-head .ar button { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; color: var(--yolk); }
.cal-head .ar button[disabled] { color: var(--ink3); }
.cal-wd, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-family: -apple-system, system-ui, sans-serif; }
.cal-wd { font-size: 13px; font-weight: 600; color: var(--ink3); margin-top: 14px; }
.cal-grid { margin-top: 6px; row-gap: 11px; }
.cal-grid button { height: 44px; width: 44px; margin: 0 auto; border-radius: 50%; font-size: 20px; color: var(--ink); }
.cal-grid button[disabled] { color: var(--ink3); opacity: .55; cursor: default; }
.cal-grid button.sel { background: var(--yolk); color: #fff; font-weight: 600; }
.cal-grid button.tod:not(.sel) { color: var(--yolk); font-weight: 600; }
.onb-age { font-size: 20px; color: var(--ink2); text-align: center; margin-top: 16px; }
.wheel { position: relative; height: 180px; margin-top: 16px; display: flex; justify-content: center; gap: 8px; font-family: -apple-system, system-ui, sans-serif; }
.wheel .band { position: absolute; left: 26px; right: 26px; top: 74px; height: 32px; border-radius: 10px; background: color-mix(in srgb, var(--ink) 7%, transparent); pointer-events: none; }
.wcol { width: 64px; height: 180px; overflow-y: auto; scroll-snap-type: y mandatory; scrollbar-width: none; touch-action: pan-y; text-align: center;
  -webkit-mask-image: linear-gradient(transparent, #000 35%, #000 65%, transparent); mask-image: linear-gradient(transparent, #000 35%, #000 65%, transparent); }
.wcol::-webkit-scrollbar { display: none; }
.wcol div { height: 32px; line-height: 32px; font-size: 22px; scroll-snap-align: center; color: var(--ink); }
.wcol .padd { scroll-snap-align: none; height: 74px; }

/* Push transitions */
.zooming { transition: none; }

@media (prefers-reduced-motion: reduce) {
  .press:active, .press.is-down { transform: none; }
  .slide { transition: opacity .3s; }
  .spin { animation: none; }
}
.still *, .still *::before, .still *::after { transition: none !important; animation: none !important; }
