/* Flöde for everyone: her app's own look (flode/server/web/public/style.css: the dark ground, pearl buttons, glass),
   carried for this app's screens. No inline style anywhere: the content policy refuses it. */
@font-face { font-family: IDL; src: url(/inter-display-light.otf); font-weight: 300; font-display: swap; }
@font-face { font-family: IT; src: url(/inter-regular.otf); font-weight: 400; font-display: swap; }
@font-face { font-family: IT; src: url(/inter-medium.otf); font-weight: 500; font-display: swap; }
:root { --bg: #030308; --text: #f1eef7; --sub: rgba(222,218,236,.62); --line: rgba(206,202,222,.62); --ink: #17131f;
  --med: #a9c4ff; --yoga: #dda8f0; --teal: #4fe3dc; --gold: #ebd59b; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }      /* a class that sets display must never show what is hidden */
html, body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.45 IT, -apple-system, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased; min-height: 100%; }
body { background: radial-gradient(120% 60% at 80% 0%, #120f24 0%, transparent 60%), radial-gradient(90% 50% at 0% 100%, #0b1420 0%, transparent 70%), var(--bg);
  background-attachment: fixed; overscroll-behavior-y: none; }
main { max-width: 560px; margin: 0 auto; padding: calc(env(safe-area-inset-top) + 18px) 22px calc(env(safe-area-inset-bottom) + 112px); min-height: 100vh; }
main.bare { padding-bottom: calc(env(safe-area-inset-bottom) + 24px); }
h1 { font: 300 44px/1.05 IDL, -apple-system, sans-serif; letter-spacing: -.02em; margin: 10px 0 6px; }
h2 { font: 300 30px/1.1 IDL, -apple-system, sans-serif; letter-spacing: -.01em; margin: 6px 0 14px; }
.sub { color: var(--sub); font-size: 14px; margin: 0 0 26px; }
.caps { text-transform: uppercase; letter-spacing: .16em; font: 500 10px IT, sans-serif; color: rgba(214,210,230,.5); }
input, textarea, select { width: 100%; font: 16px IT, sans-serif; color: var(--text); background: rgba(255,255,255,.04);
  border: .7px solid rgba(185,168,255,.28); border-radius: 22px; padding: 14px 18px; outline: none; }
input:focus, textarea:focus { border-color: rgba(159,227,220,.55); }
button { font: 500 15px IT, sans-serif; border: 0; border-radius: 22px; padding: 14px 20px; cursor: pointer; color: var(--text); background: rgba(255,255,255,.08); }
button:disabled { opacity: .45; cursor: default; }
.pearl { background: linear-gradient(180deg, #f4f2f8, #dcd8e6); color: var(--ink); }
.big { width: 100%; padding: 17px 20px; font-size: 16px; border-radius: 28px; }
.ghost { background: transparent; color: var(--sub); padding: 10px 4px; }
.stack > * + * { margin-top: 12px; }
.words { font: 300 34px/1.2 IDL, sans-serif; text-align: center; margin: 40px 0 16px; }
.center { text-align: center; color: var(--sub); }
.hint { color: var(--sub); font-size: 13px; margin-top: 28px; text-align: center; }
.glass { background: rgba(40,40,46,.52); -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%);
  border: .5px solid rgba(255,255,255,.13); box-shadow: 0 8px 28px rgba(0,0,0,.38), inset 0 .5px 0 rgba(255,255,255,.14); color: #fff; }
.say { min-height: 20px; color: var(--sub); font-size: 14px; text-align: center; margin: 10px 0 0; }

/* the bar at the foot: four places, in reach of a thumb */
.tabs { position: fixed; left: 16px; right: 16px; bottom: calc(env(safe-area-inset-bottom) + 12px); height: 64px; border-radius: 32px;
  display: flex; align-items: center; justify-content: space-around; z-index: 6; padding: 0 5px; gap: 2px; max-width: 528px; margin: 0 auto; }
.tab { display: flex; flex-direction: column; align-items: center; gap: 2px; font: 500 10.5px IT, sans-serif; color: rgba(255,255,255,.82);
  background: none; padding: 6px 2px; border-radius: 28px; flex: 1 1 0; min-width: 0; }
.tab svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tab.on { background: rgba(255,255,255,.13); color: var(--teal); }

/* the way in */
.door { display: flex; flex-direction: column; justify-content: center; min-height: calc(100vh - 80px); }
.avatars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 10px 0 22px; }
.avatars button { font-size: 24px; padding: 10px 0; border-radius: 18px; background: rgba(255,255,255,.05); border: .7px solid transparent; }
.avatars button.on { border-color: rgba(79,227,220,.7); background: rgba(79,227,220,.12); }

/* Sit: the hour, the two flowers and the sky */
.home { position: relative; }
/* the hour stands between the two flowers, under the arch of the sky, as in her own app */
.clock { position: absolute; left: 0; right: 0; top: 3%; font: 300 76px/1 IDL, -apple-system, sans-serif; letter-spacing: -.03em; text-align: center; z-index: 2; pointer-events: none; }
.journey { position: absolute; left: 0; right: 0; top: calc(3% + 90px); text-align: center; color: var(--sub); font-size: 14px; line-height: 1.5; z-index: 2; pointer-events: none; }
.journey b { font-weight: 500; color: var(--text); }
.garden { position: relative; height: 60vh; min-height: 430px; margin: 150px -22px 0; }
.garden canvas { position: absolute; left: 0; top: -140px; width: 100%; height: calc(100% + 140px); pointer-events: none; }
.bloom { position: absolute; width: 104px; height: 104px; margin: -52px 0 0 -52px; border-radius: 50%; background: transparent; padding: 0; z-index: 3; }
.bloom:focus-visible { outline: 1px solid rgba(255,255,255,.5); }
.names { display: flex; justify-content: space-between; padding: 0 10px; margin-top: -4px; }
.names span { flex: 0 0 auto; }
.tip { position: absolute; z-index: 4; padding: 10px 14px; border-radius: 18px; font-size: 13px; line-height: 1.4; pointer-events: none; text-align: center; transform: translate(-50%, -100%); white-space: nowrap; }
.tip b { display: block; font-weight: 500; }

/* sheets */
.overlay { position: fixed; inset: 0; z-index: 20; background: rgba(0,0,0,.52); display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-width: 560px; border-radius: 30px 30px 0 0; padding: 22px 22px calc(env(safe-area-inset-bottom) + 22px); max-height: 92vh; overflow-y: auto; }
.sheet h2 { margin-top: 0; }
.sheet .caps { margin: 18px 0 8px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { padding: 11px 16px; border-radius: 999px; background: rgba(255,255,255,.07); font-size: 15px; min-width: 52px; }
.pill.on { background: linear-gradient(180deg, #f4f2f8, #dcd8e6); color: var(--ink); }
.pill.small { padding: 7px 12px; font-size: 13px; min-width: 0; }
.more { margin-top: 16px; background: none; color: var(--sub); padding: 6px 0; font-size: 14px; }
.inline { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.inline input { flex: 1 1 auto; }
.inline button { flex: 0 0 auto; }
.sheet .big { margin-top: 24px; }

/* a sit running */
.run { text-align: center; display: flex; flex-direction: column; justify-content: center; min-height: calc(100vh - 60px); }
.run .elapsed { font: 300 72px/1 IDL, -apple-system, sans-serif; letter-spacing: -.02em; margin: 14px 0 10px; font-variant-numeric: tabular-nums; }
.run .next { color: var(--sub); font-size: 15px; min-height: 22px; }
.run .breath { width: 120px; height: 120px; margin: 0 auto 26px; border-radius: 50%; background: radial-gradient(circle, rgba(169,196,255,.30), rgba(169,196,255,0) 70%); animation: breathe 11s ease-in-out infinite; }
.run.yoga .breath { background: radial-gradient(circle, rgba(221,168,240,.30), rgba(221,168,240,0) 70%); }
@keyframes breathe { 0%, 100% { transform: scale(.82); opacity: .7; } 50% { transform: scale(1.08); opacity: 1; } }
.run .big { margin-top: 34px; }

/* Days */
.dayhead { display: flex; justify-content: space-between; align-items: baseline; margin: 26px 2px 6px; }
.dayhead b { font-weight: 500; }
.entry { border-radius: 22px; padding: 14px 16px; margin-top: 8px; background: rgba(255,255,255,.04); cursor: pointer; }
.entry .top { display: flex; align-items: center; gap: 12px; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; background: var(--med); }
.dot.yoga { background: var(--yoga); }
.entry .min { font-weight: 500; flex: 0 0 auto; }
.entry .when { color: var(--sub); font-size: 13px; flex: 1 1 auto; text-align: right; }
.entry.wait .when::after { content: ' · on its way'; }
.slide { margin-top: 14px; }
.slide .read { display: flex; justify-content: space-between; font-size: 14px; color: var(--sub); margin-bottom: 8px; }
.slide .read b { color: var(--text); font-weight: 500; font-size: 18px; }
input[type=range] { -webkit-appearance: none; appearance: none; padding: 0; height: 44px; background: transparent; border: 0; }
input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, rgba(169,196,255,.65), rgba(169,196,255,.18)); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -12px; border-radius: 50%; background: linear-gradient(180deg, #f4f2f8, #dcd8e6); box-shadow: 0 2px 8px rgba(0,0,0,.5); }
input[type=range]::-moz-range-track { height: 6px; border-radius: 3px; background: rgba(169,196,255,.4); }
input[type=range]::-moz-range-thumb { width: 30px; height: 30px; border-radius: 50%; background: #eeeaf4; border: 0; }
.slide .row2 { display: flex; justify-content: space-between; margin-top: 4px; }
.addhand { width: 100%; margin-top: 18px; background: rgba(255,255,255,.06); }
.empty { color: var(--sub); text-align: center; margin: 60px 10px; font-size: 15px; line-height: 1.6; }

/* Together */
.person { display: flex; align-items: center; gap: 12px; padding: 12px 6px; border-radius: 22px; cursor: pointer; }
.person + .person { margin-top: 2px; }
.face { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.07); display: flex; align-items: center; justify-content: center; font-size: 22px; flex: 0 0 auto; position: relative; }
.person.sitting .face::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid rgba(79,227,220,.6); animation: breathe 6s ease-in-out infinite; }
.person .who { flex: 1 1 auto; min-width: 0; }
.person .nm { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person .ln { color: var(--sub); font-size: 12.5px; }
.person.sitting .ln { color: var(--teal); }
.person canvas { display: block; width: 100%; height: 14px; margin-top: 6px; }
.folded { margin-top: 18px; width: 100%; background: rgba(255,255,255,.05); color: var(--sub); }

/* Me */
.me .face { width: 64px; height: 64px; font-size: 32px; margin: 0 auto 10px; }
.me h2 { text-align: center; }
.field { margin-top: 14px; }
.field .lab { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.toggle { padding: 6px 12px; font-size: 12px; border-radius: 999px; background: rgba(255,255,255,.07); color: var(--sub); }
.toggle.on { background: rgba(79,227,220,.18); color: var(--teal); }
.list button { width: 100%; text-align: left; background: rgba(255,255,255,.04); margin-top: 8px; }
.list button.warn { color: #f2b8c6; }

/* a few words that come and go */
.toast { position: fixed; left: 16px; right: 16px; bottom: calc(env(safe-area-inset-bottom) + 88px); z-index: 30; border-radius: 22px; padding: 12px 14px 12px 18px;
  display: flex; align-items: center; gap: 12px; max-width: 528px; margin: 0 auto; }
.toast span { flex: 1 1 auto; font-size: 14px; }
.toast button { padding: 9px 14px; font-size: 14px; flex: 0 0 auto; }

/* the welcome */
.card { min-height: calc(100vh - 140px); display: flex; flex-direction: column; justify-content: center; text-align: center; }
.card .pic { height: 230px; position: relative; margin: 0 -22px 26px; }
.card .pic canvas { position: absolute; left: 0; top: -60px; width: 100%; height: calc(100% + 60px); }
.card p { font: 300 26px/1.25 IDL, sans-serif; margin: 0 6px; }
.dots { display: flex; justify-content: center; gap: 8px; margin: 28px 0 16px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.22); }
.dots i.on { background: var(--teal); }
.cardnav { display: flex; gap: 10px; }
.cardnav button { flex: 1 1 0; }

.warn { color: #f2b8c6; }
button.big.warn { background: rgba(242,184,198,.10); }
.kinds .pill { font-size: 17px; padding: 12px 20px; }
