/* The presenter's phone mock, drawn like the current FlUni app: Lisa's drawn cards, Fredoka titles and big numbers, Nunito text
   (heatmap/vendor/fonts, via --font / --font-display in index.html). Fixed 393 x 852 pt screen. Card basics are in index.html. */
#phone .phone-frame { position: relative; }
#phone .tabbar { z-index: 6; }
#phone .tab { }
#phone .tab.bleed { padding: 0; height: 100%; position: relative; }
/* on the Map tab the map fills the screen edge to edge and runs down under the tissue box */
#phone .screen:has(.tab.bleed:not([hidden])) { padding: 0; overflow: hidden; margin-bottom: -46px; gap: 0; }
#phone .screen { scrollbar-width: none; }
#phone .screen::-webkit-scrollbar { display: none; }

/* text roles, as FluniType (largeTitle 34, title2 22, title3 20, headline 17, body 17, subheadline 15, footnote 13) */
#phone .screen .t-title3 { font: 600 20px/1.2 var(--font-display); margin: 0; }
#phone .screen .t-title3.bold { font-weight: 600; }
#phone .screen .t-body { font-size: 17px; margin: 0; }
#phone .screen .t-body.semi { font-weight: 600; }
#phone .screen .t-head { font-weight: 700; }
#phone .screen .t-large { font-weight: 600; }
#phone .screen p { margin: 0; }
#phone .screen .ibtn { all: unset; cursor: pointer; display: grid; place-items: center; min-width: 44px; min-height: 44px; }
#phone .screen .bullet2 { display: flex; gap: 8px; align-items: flex-start; }
#phone .screen .link.how { justify-content: center; }

/* history / contacts */
.contacts-empty { display: flex; gap: 12px; align-items: center; }
.contacts-empty img { width: 48px; opacity: .9; }
.contacts-empty b { display: block; font-weight: 600; font-size: 17px; }
.crow { display: flex; gap: 12px; padding: 4px 0; align-items: baseline; font-size: 15px; }
.crow + .crow { border-top: 1px solid var(--hairline); padding-top: 8px; }
.crow .w { width: 84px; flex: none; font-size: 13px; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.crow .cc { display: inline-block; margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--fire-ink); background: rgba(219, 108, 89, .18); border-radius: 999px; padding: 2px 8px; }

/* the stay-home card */
.sickfig { position: relative; display: grid; place-items: center; }
.sickfig img:not(.stamp) { max-height: 110px; max-width: 100%; object-fit: contain; }
.sickfig .stamp { position: absolute; top: -6px; right: 4px; width: 64px; transform: rotate(-12deg); }
.btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 54px; border-radius: 16px; border: 0; font: 600 17px var(--font);
  background: var(--ink); color: var(--paper); cursor: pointer; padding: 12px 16px; }
.btn.second { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); min-height: 44px; font-weight: 600; }
.btn.sun { background: var(--sun); color: var(--ink); }
.btn.sun.off { opacity: .5; }

/* Me: report rows */
.mrow { padding-block: 4px; }
.mrow .circle { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.mrow .circle .ico { width: 20px; height: 20px; }
.mrow .mk { font-size: 20px; color: var(--ink-3); width: 24px; text-align: center; }
.mrow .mk.on { color: var(--ink); }

/* Map tab: the presenter's map, without people */
#phone #ph-map { position: absolute; inset: 0; height: auto; border-radius: 0; border: 0; background: var(--surface-2); }
#phone .tab.bleed .cchip { position: absolute; z-index: 5; top: 10px; left: 10px; right: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 5px 5px 5px 12px; background: var(--surface); border-radius: 14px; font-size: 13px; box-shadow: 0 1px 2px rgba(51,36,28,.07), 0 8px 24px -6px rgba(51,36,28,.16); }
.cchip .tt { color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cchip .tt b { color: var(--ink); font-weight: 600; }
.cchip .seg2 { display: flex; background: var(--surface-2); border-radius: 999px; padding: 2px; }
.cchip .seg2 button { all: unset; font-size: 13px; color: var(--ink-2); border-radius: 999px; padding: 5px 12px; min-height: 20px; cursor: pointer; }
.cchip .seg2 button[aria-pressed="true"] { background: var(--ink); color: var(--surface); }
.cleg { position: absolute; z-index: 5; left: 10px; right: 10px; bottom: 56px; padding: 3px 8px 0 6px; font-size: 12px; border-style: solid; border-width: 9px 8px 21px 17px;
  border-image: url("assets/containers/box-paper.png") 34 30 80 64 fill / 9px 8px 21px 17px stretch; filter: drop-shadow(0 6px 10px rgba(51, 36, 28, 0.10)); }
.cleg .strip { display: flex; align-items: center; gap: 8px; color: var(--ink-2); white-space: nowrap; font-size: 15px; }
.cleg .ramp { flex: 1; height: 10px; border-radius: 5px; }
.cleg .info { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--ink-3); background: none; color: var(--ink-2); font: italic 600 15px/1 Georgia, serif; padding: 0; }
#ph-map .lbl span { font: 600 10.5px/1 var(--font); color: var(--ink-2); }
#ph-map .lbl-g span { font-style: italic; font-weight: 500; color: #5d6b3c; }
#ph-map .lbl-x span { font-weight: 500; color: var(--ink-3); opacity: .8; }

/* sheets: report (stickers + stamp), calculation, how it works. Inline navigation bar like the app's sheets. */
#ph-sheet { position: absolute; inset: 0; z-index: 20; display: flex; align-items: flex-end; background: rgba(51, 36, 28, .28); animation: fadein 200ms; border-radius: 28px; overflow: hidden; }
#ph-sheet[hidden] { display: none; }
@keyframes fadein { from { opacity: 0; } }
.sheet { width: 100%; max-height: 94%; background: var(--paper); border-radius: 34px 34px 0 0; padding: 14px 16px 24px; overflow: auto; animation: sheetin 300ms cubic-bezier(.2, .8, .2, 1); position: relative; scrollbar-width: none; font-family: var(--font); }
.sheet::-webkit-scrollbar { display: none; }
@keyframes sheetin { from { transform: translateY(40%); opacity: .4; } }
.navbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin-bottom: 14px; }
.navbar b { font: 600 17px var(--font-display); }
.navbar .navbtn { all: unset; cursor: pointer; font-size: 17px; color: var(--ink); min-height: 44px; display: flex; align-items: center; }
.navbar .navbtn:last-child { justify-self: end; font-weight: 600; }
.figsick { max-height: 140px; margin: 0 auto; display: block; }
.stickers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sticker { all: unset; box-sizing: border-box; position: relative; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 116px; justify-content: center; font-size: 15px; text-align: center; }
.sticker { border-style: solid; border-width: 9px 8px 21px 17px; }
.sticker img { height: 76px; object-fit: contain; }
.sticker.on { font-weight: 600; }
.sticker.on img { transform: rotate(-5deg) scale(1.06); }
.sticker.on::after { content: "✓"; position: absolute; top: -4px; right: -6px; width: 22px; height: 22px; border-radius: 50%; background: var(--fire-ink); color: var(--paper); font-size: 13px; display: grid; place-items: center; }
.datepill { all: unset; cursor: pointer; font-size: 15px; background: var(--surface-2); border-radius: 8px; padding: 6px 12px; }
.lock { background: var(--surface-2); border-radius: 12px; padding: 12px 14px; font-size: 13px; color: var(--ink-2); margin: 0; }
.stampwrap { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.stampwrap img { width: 250px; transform: rotate(-8deg); animation: thump 380ms cubic-bezier(.2, 1.4, .4, 1); }
@keyframes thump { from { transform: rotate(-8deg) scale(1.8); opacity: 0; } }
.sheet .block { margin: 0 0 20px; }
.sheet .block h2 { font: 600 17px var(--font); margin: 0 0 6px; }
.sheet .block p { font-size: 17px; color: var(--ink-2); margin: 0 0 8px; line-height: 1.3; }
.sheet .block .num { background: var(--surface-2); border-radius: 12px; padding: 10px 12px; font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; }
.sheet .fineprint { font-size: 13px; color: var(--ink-2); }

/* the map at night: the base tiles inverted to cream-on-cocoa, the run's buildings and paths darkened; heat keeps its colours */
#phone[data-theme="night"] #ph-map .leaflet-tile-pane { filter: invert(.92) hue-rotate(180deg) sepia(.5) brightness(.7) contrast(.9); }
#phone[data-theme="night"] #ph-map .leaflet-sim-pane { filter: brightness(.4) sepia(.35) saturate(.8); }
#phone[data-theme="night"] #ph-map { background: #2a211c; }

/* large title below the status bar, as the app's navigation title */
#phone .screen .nav-title { margin: 58px 0 6px; font-weight: 600; letter-spacing: 0; }
#phone .screen .tab.bleed .nav-title { display: none; }
/* Me rows: the chosen one gets an ink outline and a dark check, as in the app */
.mrow.on { box-shadow: 0 0 0 2px var(--ink); border-radius: 12px; }
.mrow .mk.on { background: var(--ink); color: var(--paper); border-radius: 50%; width: 24px; height: 24px; line-height: 24px; font-size: 14px; }

/* ===== the new home (owner-approved mock v4; styles from fluni-screens/home-v2/src/home4.css, sizes in iOS pt) ===== */
#ph-tab-today .nav-title { display: none; }
#ph-today { gap: 0; padding-top: 40px; }
#ph-today .perch { display: flex; flex-direction: row; align-items: center; justify-content: flex-end; gap: 6px; padding: 0 4px 2px 0; margin-bottom: -2px; position: relative; z-index: 1; }
#ph-today .perch img { width: 42px; height: 42px; object-fit: contain; flex: none; transform: rotate(8deg); }
#ph-today .perch img.sickc { width: 55px; height: 42px; transform: none; }
.say { position: relative; font: 600 14px/1.25 var(--font); color: var(--ink); white-space: nowrap; background: var(--surface); border: 1.5px solid var(--ink); border-radius: 13px; padding: 5px 10px; margin-right: 6px; }
.say::after { content: ""; position: absolute; right: -6px; top: 50%; width: 9px; height: 9px; margin-top: -5px; background: var(--surface); border-right: 1.5px solid var(--ink); border-top: 1.5px solid var(--ink); transform: rotate(45deg); }
#ph-today .card.hero { padding: 8px 10px 6px 6px; margin-top: 2px; }
#ph-today .card.hero .numrow { display: flex; align-items: baseline; gap: 4px 14px; flex-wrap: wrap; }
#ph-today .big { font: 600 76px/1 var(--font-display); letter-spacing: -2px; font-variant-numeric: tabular-nums; }
#ph-today .ind { font: 600 17px/1.2 var(--font); display: flex; align-items: center; gap: 7px; color: var(--ink); }
#ph-today .ind small { font: 400 15px var(--font); color: var(--ink-2); }
#ph-today .dot { width: 10px; height: 10px; border-radius: 50%; background: #acbc8b; border: 1.5px solid var(--ink); flex: none; display: inline-block; }
#ph-today .dot.elevated, #ph-today .dot.sun { background: var(--sun); }
#ph-today .dot.high { background: var(--fire); }
#ph-today .lowtxt { font: 400 13px/1.3 var(--font); color: var(--ink-2); margin-top: 2px; }
#ph-today .fbtn, #ph-today .choices button { all: unset; box-sizing: border-box; cursor: pointer; text-align: center; color: var(--ink); }
#ph-today .fbtn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 50px; margin-top: 10px; font: 600 18px/1.2 var(--font-display);
  background: var(--sun); border: 2px solid var(--ink); border-radius: 14px; box-shadow: 0 3px 0 var(--ink); }
#ph-today .strip { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; margin-bottom: 6px; background: #ecbba0; border: 1.5px solid var(--ink); border-radius: 12px; }
#ph-today .strip.cc { background: #e6a088; }
#ph-today .strip .ico { width: 20px; height: 20px; margin-top: 2px; }
#ph-today .strip .st { font: 600 16px/1.25 var(--font-display); color: var(--ink); }
#ph-today .strip .sl { font: 400 14px/1.35 var(--font); color: var(--ink); margin-top: 2px; }
#ph-today .howlink { all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 6px; margin-top: 2px;
  font: 600 14px/1.2 var(--font); color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
#ph-today .howlink i { font: italic 600 14px Georgia, serif; text-decoration: none; display: inline-block; }
#ph-today .section { display: flex; align-items: baseline; justify-content: space-between; padding: 18px 4px 8px; flex-wrap: wrap; gap: 0 10px; }
#ph-today .section h2 { font: 600 22px/1.2 var(--font-display); margin: 0; }
#ph-today .section span { font: 400 13px/1.3 var(--font); color: var(--ink-2); }
#ph-today .timeline { position: relative; padding: 4px 4px 0; }
#ph-today .stop { position: relative; display: flex; gap: 12px; padding-bottom: 18px; }
#ph-today .stop .t { width: 50px; flex: none; text-align: right; font: 600 14px/1.3 var(--font); color: var(--ink-2); font-variant-numeric: tabular-nums; padding-top: 2px; }
#ph-today .stop .rail { position: relative; width: 16px; flex: none; }
#ph-today .stop .rail::before { content: ""; position: absolute; left: 7px; top: 18px; bottom: -4px; width: 2px; background: #acbc8b; }
#ph-today .stop:last-child .rail::before { background: linear-gradient(#acbc8b, transparent); }
#ph-today .stop .pin { position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--ink); background: var(--paper); box-sizing: border-box; }
#ph-today .stop.now .pin { background: var(--ink); box-shadow: inset 0 0 0 3px var(--paper); }
#ph-today .stop.alert .pin { background: #e99569; box-shadow: none; }
#ph-today .stop.alert .rail::before { background: #e99569; }
#ph-today .stop.now.alert .pin { background: #e99569; box-shadow: inset 0 0 0 3px var(--paper); }
#ph-today .stop .body { flex: 1; min-width: 0; }
#ph-today .place { font: 500 18px/1.25 var(--font-display); }
#ph-today .detail { font: 400 15px/1.4 var(--font); color: var(--ink-2); margin-top: 2px; }
#ph-today .event { margin-top: 8px; display: flex; gap: 8px; align-items: flex-start; font: 600 15px/1.35 var(--font); color: var(--fire-ink); }
#ph-today .event .ico { width: 16px; height: 16px; margin-top: 2px; color: #e99569; }
#ph-today .more { display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 4px 0 66px; font: 600 17px/1.2 var(--font); text-decoration: underline; text-underline-offset: 3px; }
#ph-today .more .ico { width: 9px; height: 14px; }
#ph-today .opened { margin-top: 10px; padding: 8px 6px 4px 4px; }
#ph-today .opened summary { cursor: pointer; list-style: none; font: 600 18px/1.25 var(--font-display); color: var(--fire-ink); }
#ph-today .opened summary::-webkit-details-marker { display: none; }
#ph-today .opened .when { font: 400 13px/1.3 var(--font); color: var(--ink-2); margin-top: 2px; }
#ph-today .steps { list-style: none; margin: 10px 0 6px; padding: 0; display: flex; flex-direction: column; gap: 9px; }
#ph-today .steps li { display: flex; gap: 10px; font: 400 15px/1.4 var(--font); }
#ph-today .steps li em { font: 600 13px/19px var(--font-display); font-style: normal; width: 22px; height: 22px; flex: none; text-align: center; border: 1.5px solid var(--ink); border-radius: 50%; background: var(--sun); color: #33241c; box-sizing: border-box; }
#ph-today .walkwrap { margin-top: 12px; }
/* sick mode */
#ph-today .sickcard .status { font: 600 19px/1.2 var(--font-display); display: flex; align-items: center; gap: 9px; }
#ph-today .daybig { font: 600 40px/1 var(--font-display); letter-spacing: -.5px; margin-top: 16px; }
#ph-today .checkin { margin-top: 20px; padding-top: 14px; border-top: 1.5px dashed rgba(106, 82, 68, .35); }
#phone[data-theme="night"] #ph-today .checkin, #phone[data-theme="night"] #ph-today .privacy { border-top-color: rgba(210, 188, 159, .4); }
#ph-today .sickcard + .section { padding-top: 30px; }
#ph-today .checkin p { font: 600 16px/1.3 var(--font); }
#ph-today .choices { display: flex; gap: 8px; margin-top: 10px; }
#ph-today .choices button { flex: 1 1 90px; min-height: 44px; display: flex; align-items: center; justify-content: center; font: 600 15px/1.2 var(--font-display);
  border: 2px solid var(--ink); border-radius: 13px; background: var(--surface); box-shadow: 0 2px 0 var(--ink); }
#ph-today .trackline { position: relative; }
#ph-today .trackline::before { content: ""; position: absolute; left: 30px; right: 30px; top: 15px; height: 1.5px; background: repeating-linear-gradient(90deg, var(--ink-2) 0 4px, transparent 4px 8px); }
#ph-today .track { display: flex; justify-content: space-between; padding: 6px 4px 4px; position: relative; }
#ph-today .track .d { display: flex; flex-direction: column; align-items: center; gap: 5px; width: 50px; font: 600 12px/1.2 var(--font); color: var(--ink-2); text-align: center; }
#ph-today .track .d i { position: relative; z-index: 1; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--ink); background: var(--paper); display: block; box-sizing: border-box; }
#ph-today .track .d.done i { background: #acbc8b; }
#ph-today .track .d.today i { background: var(--sun); box-shadow: 0 0 0 3px var(--paper), 0 0 0 4.5px var(--ink); }
#ph-today .track .d.today { color: var(--ink); }
#ph-today .tips { margin: 18px 0 0; display: flex; flex-direction: column; gap: 10px; padding: 0 4px; list-style: none; }
#ph-today .tips li { display: flex; gap: 10px; font: 400 15px/1.4 var(--font); }
#ph-today .tips li::before { content: ""; width: 7px; height: 7px; margin-top: 8px; border-radius: 50%; background: #e99569; border: 1.5px solid var(--ink); flex: none; box-sizing: border-box; }
#ph-today .vaden { margin: 14px 4px 0; font: 600 13px/1.4 var(--font); color: var(--ink-2); }
#ph-today .link.how { margin-top: 10px; }
/* night: tinted strips and dots at night strength, cream ink on them */
#phone[data-theme="night"] #ph-today .strip { background: rgba(219, 108, 89, .26); }
#phone[data-theme="night"] #ph-today .strip.cc { background: rgba(219, 108, 89, .38); }
#phone[data-theme="night"] #ph-today .fbtn { color: #33241c; border-color: #17110e; box-shadow: 0 3px 0 #17110e; }
#phone[data-theme="night"] #ph-today .stop.alert .pin { background: #e99569; }
#phone[data-theme="night"] #ph-today .event { color: var(--fire-ink); }
#phone[data-theme="night"] #ph-today .opened summary { color: var(--fire-ink); }
#phone[data-theme="night"] #ph-today .steps li em { color: #33241c; }
#phone[data-theme="night"] #ph-today .choices button { box-shadow: 0 2px 0 var(--ink); }
#ph-today .privacy { margin: 32px 4px 0; padding-top: 14px; border-top: 1.5px dashed rgba(106, 82, 68, .35); display: flex; gap: 10px; font: 400 13px/1.45 var(--font); color: var(--ink-2); }
#ph-today .privacy svg { flex: none; margin-top: 1px; }
