/* Matches www.launchpaddm.page; tokens and rules from docs/BRIEF.md, sections 9 and 9A. */
:root { --ink:#101820; --body:#2C3740; --muted:#56626C; --deep:#0B6FAE; --blue:#2EB2FF; --green:#99E265; --mist:#F2FAFF; --base:#fff;
  --line:#dbe8f2; --edge:#b9cbd9; --shadow:0 10px 30px rgba(11,111,174,.10); --lift:0 14px 34px rgba(16,24,32,.12);
  --accent:linear-gradient(115deg,var(--blue),var(--green));
  --button:linear-gradient(#5CC4FF 0%,#2EB2FF 55%,#22A3EE 100%);
  /* Darker blue to green for words, so they stay readable (4.5:1) on white. */
  --accent-text:linear-gradient(100deg,#0B6FAE,#2C7A1F);
  --shape:16px 22px 16px 22px; --move:200ms ease; }
* { box-sizing:border-box; }
html { background:var(--mist); }
body { margin:0; font-family:'Plus Jakarta Sans',system-ui,sans-serif; color:var(--body); line-height:1.55;
  background:linear-gradient(#fff 0%,#F2FAFF 25%,#E3F4FF 70%,#F2FAFF 100%) fixed; }
#app { min-height:100vh; min-height:100dvh; display:flex; flex-direction:column; }
h1,h2,h3 { color:var(--ink); line-height:1.15; margin:0 0 .5rem; font-weight:800; letter-spacing:-.02em; overflow-wrap:break-word; }
h1 { font-size:1.75rem; } h2 { font-size:1.2rem; } h3 { font-size:1rem; letter-spacing:0; }
p { margin:0 0 .75rem; }
a { color:var(--deep); font-weight:700; }
.accent-text { background:var(--accent-text); -webkit-background-clip:text; background-clip:text; color:transparent; }
.eyebrow { display:flex; align-items:center; gap:.5rem; margin:0 0 .4rem; color:var(--deep); font-size:.75rem; font-weight:800; letter-spacing:.14em; text-transform:uppercase; }
.eyebrow::before { content:""; width:1.75rem; height:.25rem; border-radius:1rem; background:var(--accent); flex:none; }
.sr { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }

main { width:100%; max-width:40rem; margin:0 auto; padding:1rem 1rem 2rem; flex:1; }
main.wide { max-width:62rem; }
.card { background:var(--base); border:1px solid var(--line); border-radius:26px; box-shadow:var(--shadow); padding:1.25rem; margin:0 0 1rem; animation:rise var(--move); }
@keyframes rise { from { opacity:0; transform:translateY(6px); } }
.muted { color:var(--muted); font-size:.92rem; }
.error { color:#9b1c1c; font-weight:700; }
.ok { color:#14602c; font-weight:700; }
[role="status"]:empty { display:none; }

label { display:block; font-weight:700; color:var(--ink); margin:.75rem 0 .25rem; }
input,select,textarea { width:100%; font:inherit; color:var(--ink); background:#fff; border:1px solid var(--edge); border-radius:14px; padding:.7rem .8rem; min-height:48px; }
textarea { min-height:6rem; resize:vertical; }

button,.button { font:inherit; font-weight:800; min-height:48px; min-width:48px; padding:.65rem 1.15rem; border:0; cursor:pointer; border-radius:var(--shape);
  display:inline-flex; align-items:center; justify-content:center; gap:.4rem; text-align:center; text-decoration:none; transition:transform var(--move),box-shadow var(--move),opacity var(--move); }
button:active:not(:disabled) { transform:translateY(1px); }
.primary { background:var(--button); color:var(--ink); box-shadow:inset 0 1px 0 rgba(255,255,255,.55),0 10px 22px rgba(46,178,255,.30); }
.dark { background:var(--ink); color:#fff; box-shadow:inset 0 1px 0 rgba(255,255,255,.18),var(--shadow); }
.plain { background:#fff; color:var(--ink); box-shadow:inset 0 0 0 1.5px var(--edge); }
.quiet { background:transparent; color:var(--deep); }
button:disabled { opacity:.55; cursor:default; box-shadow:none; }
:focus-visible { outline:3px solid var(--deep); outline-offset:2px; }
.row { display:flex; flex-wrap:wrap; gap:.6rem; margin-top:.75rem; }
.row > button,.row > .button { flex:1 1 9rem; }
.wide-button { width:100%; margin:1rem 0; }

/* Floating white header and tab bar. */
header.top { position:sticky; top:0; z-index:5; padding:calc(.6rem + env(safe-area-inset-top)) .75rem .2rem; }
.bar { display:flex; align-items:center; justify-content:space-between; gap:.5rem; flex-wrap:wrap; max-width:40rem; margin:0 auto; padding:.4rem .4rem .4rem 1rem;
  background:rgba(255,255,255,.95); border:1px solid var(--line); border-radius:999px; box-shadow:var(--lift); }
.bar .logo { margin:0; height:28px; }
.needs { border-radius:999px; background:#fff; color:var(--ink); box-shadow:inset 0 0 0 1.5px var(--edge); text-decoration:none; }
.needs.some { background:var(--ink); color:#fff; box-shadow:none; }
.count { display:inline-grid; place-items:center; min-width:1.6rem; height:1.6rem; padding:0 .35rem; border-radius:999px; background:var(--button); color:var(--ink); font-size:.85rem; }
nav.tabs { position:sticky; bottom:0; z-index:5; display:flex; flex-wrap:wrap; gap:.15rem; margin:0 .5rem; padding:.35rem; margin-bottom:calc(.5rem + env(safe-area-inset-bottom));
  background:#fff; border:1px solid var(--line); border-radius:24px; box-shadow:var(--lift); }
nav.tabs a { flex:1 0 auto; min-width:48px; min-height:52px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:.1rem; padding:.2rem .15rem;
  text-decoration:none; color:var(--muted); font-size:.72rem; border-radius:18px; transition:background var(--move),color var(--move); }
nav.tabs a[aria-current="page"] { color:var(--ink); background:#E3F4FF; }
nav.tabs svg { width:1.35rem; height:1.35rem; }

/* Status: always words, colour and icon. */
.chip { display:inline-flex; align-items:center; gap:.35rem; border-radius:999px; padding:.2rem .75rem; font-size:.8rem; font-weight:800; margin:0 .35rem .5rem 0; }
.chip svg { width:1rem; height:1rem; flex:none; }
.chip.waiting { background:#FFF1CC; color:#664700; }
.chip.urgent { background:#FDE2E2; color:#8A1616; }
.chip.good { background:#E5F7D8; color:#1E5B12; }
.chip.still { background:#E9EEF2; color:#34424E; }
.chip.info { background:#DFF1FF; color:#08537F; }

/* Suggestion cards */
.suggestion dl { margin:0; }
.suggestion dt { font-size:.75rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); margin-top:.75rem; }
.suggestion dd { margin:.1rem 0 0; color:var(--ink); overflow-wrap:break-word; }
.numbers { display:grid; grid-template-columns:repeat(auto-fit,minmax(8.5rem,1fr)); gap:.6rem; margin:.9rem 0 0; }
.number { background:var(--mist); border:1px solid var(--line); border-radius:18px; padding:.6rem .75rem 0; }
.number strong { display:block; color:var(--ink); font-size:1.4rem; font-weight:800; overflow-wrap:anywhere; }
.number span { font-size:.85rem; }
details.what summary { min-height:48px; display:flex; align-items:center; cursor:pointer; color:var(--deep); font-weight:700; font-size:.85rem; }
details.what p { font-size:.88rem; padding-bottom:.6rem; margin:0; }
.actions { margin-top:1rem; }
.actions .primary { width:100%; }
.actions .row { margin-top:.6rem; }
.actions .row > button { flex:1 1 8rem; }

.empty { text-align:center; padding:2.5rem 1.25rem; }
.sphere { width:3.25rem; height:3.25rem; margin:0 auto 1rem; border-radius:50%; background:radial-gradient(circle at 32% 28%,#fff 0 8%,#8fe0a0 24%,#2EB2FF 78%,#0B6FAE); box-shadow:0 14px 26px rgba(46,178,255,.35); animation:pop 240ms ease; }
@keyframes pop { from { transform:scale(.6); opacity:0; } }

.skeleton { border-radius:14px; background:linear-gradient(90deg,#e6f1f9,#f6fbff,#e6f1f9); background-size:200% 100%; animation:shine 1.2s linear infinite; height:1rem; margin:.6rem 0; }
.skeleton.title { height:1.6rem; width:60%; } .skeleton.block { height:3rem; }
@keyframes shine { to { background-position:-200% 0; } }

.offline { background:#FFF1CC; color:#4d3600; font-weight:700; text-align:center; padding:.7rem 1rem; }
.toast { position:fixed; left:.75rem; right:.75rem; bottom:calc(5.75rem + env(safe-area-inset-bottom)); z-index:20; max-width:32rem; margin:0 auto;
  display:flex; align-items:center; justify-content:space-between; gap:.75rem; background:var(--ink); color:#fff; border-radius:20px; padding:.6rem .6rem .6rem 1.1rem; box-shadow:var(--lift); animation:rise var(--move); }
.toast span { font-weight:700; }

dialog.sheet { width:min(34rem,100%); max-width:100%; max-height:90dvh; margin:auto auto 0; border:0; border-radius:28px 28px 0 0; padding:1.25rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom)); box-shadow:var(--lift); color:var(--body); overflow:auto; }
dialog.sheet[open] { animation:up 220ms ease; }
dialog.sheet::backdrop { background:rgba(16,24,32,.55); }
@keyframes up { from { transform:translateY(24px); opacity:0; } }
ul.ticks { list-style:none; padding:0; margin:0 0 1rem; }
ul.ticks li { position:relative; padding:.25rem 0 .25rem 1.75rem; }
ul.ticks li::before { content:""; position:absolute; left:.2rem; top:.65rem; width:.75rem; height:.75rem; border-radius:50%; background:radial-gradient(circle at 32% 28%,#fff 0 10%,#99E265 30%,#2EB2FF); }
.price { font-size:1.5rem; font-weight:800; color:var(--ink); }

.welcome { display:grid; align-content:center; }
.welcome .logo { margin-bottom:1.5rem; }
.welcome .sphere { margin:0 0 1.25rem; }
.banner { background:#FFF1CC; color:#4d3600; border-radius:18px; padding:.75rem 1rem; font-weight:700; margin:0 0 1rem; }
.banner.info { background:#DFF1FF; color:#08537F; }

/* Schedule */
.pager { display:flex; align-items:center; justify-content:space-between; gap:.5rem; margin:.75rem 0; }
.pager h2 { margin:0; text-align:center; }
.pager button { font-size:1.4rem; }
.day h3 { margin-bottom:.5rem; }
button.slot { width:100%; display:flex; align-items:flex-start; justify-content:flex-start; gap:.75rem; text-align:left; background:var(--mist); box-shadow:inset 0 0 0 1px var(--line); padding:.7rem; margin-top:.5rem; font-weight:400; color:var(--body); }
.slot img,.slot .thumb { width:3.5rem; height:3.5rem; flex:none; border-radius:12px; object-fit:cover; background:#dcecf7; }
.slot-text { display:flex; flex-direction:column; align-items:flex-start; gap:.15rem; min-width:0; flex:1; }
.slot-text .chip { margin:.25rem 0 0; }
.clip { max-width:100%; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; font-size:.9rem; }
.month { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); margin:0 -.5rem .75rem; background:#fff; border:1px solid var(--line); border-radius:18px; overflow:hidden; }
.weekname { text-align:center; font-size:.7rem; font-weight:800; color:var(--muted); padding:.4rem 0; }
button.cell { min-width:0; min-height:56px; padding:.15rem; border-radius:12px; background:transparent; flex-direction:column; justify-content:flex-start; gap:.1rem; color:var(--ink); }
button.cell.other { color:#7b8791; }
button.cell.today { box-shadow:inset 0 0 0 2px var(--deep); }
button.cell[aria-pressed="true"] { background:#E3F4FF; }
.dot { font-size:.7rem; border-radius:999px; padding:0 .35rem; background:#DFF1FF; color:#08537F; }
.dot.waiting { background:#FFF1CC; color:#664700; }

ol.steps { padding-left:1.25rem; }
ol.steps li { padding:.4rem 0; }
label.switch { display:flex; align-items:center; gap:.75rem; min-height:48px; padding:.35rem 0; margin:0; font-weight:600; line-height:1.35; }
label.switch input { width:1.5rem; height:1.5rem; min-height:0; flex:none; accent-color:var(--deep); }

.summary { font-size:1rem; font-weight:600; color:var(--ink); }
.number span { display:block; }
.number .muted { font-size:.78rem; margin-top:.2rem; }

/* Dark surface, used sparingly: sign-in only. */
.signin { flex:1; display:grid; place-items:center; padding:1.25rem; background-color:var(--ink);
  background-image:radial-gradient(circle at 12% 8%,rgba(46,178,255,.32),transparent 42%),radial-gradient(circle at 92% 92%,rgba(153,226,101,.24),transparent 44%); }
.signin .card { width:min(26rem,100%); }
.logo { display:block; height:34px; width:auto; margin:0 0 1rem; }
.brand { font-size:2rem; margin:0; }

.pill { display:inline-block; border-radius:1rem; padding:.1rem .7rem; font-size:.8rem; font-weight:700; background:var(--mist); border:1px solid var(--line); color:var(--ink); margin-right:.35rem; }
.media { display:flex; gap:.5rem; overflow-x:auto; scroll-snap-type:x mandatory; margin:.75rem 0; }
.media img,.media video { width:100%; flex:0 0 100%; scroll-snap-align:center; border-radius:18px; max-height:28rem; object-fit:contain; background:var(--mist); }
.caption { white-space:pre-wrap; overflow-wrap:anywhere; }
table { width:100%; border-collapse:collapse; font-size:.92rem; } th,td { text-align:left; padding:.5rem; border-bottom:1px solid var(--line); vertical-align:top; overflow-wrap:anywhere; }
.scroll { overflow-x:auto; }
footer { text-align:center; color:var(--muted); font-size:.85rem; padding:1.5rem 0; }
footer .logo { margin:0 auto .5rem; }

@media (min-width:56rem) {
  nav.tabs { position:fixed; top:6rem; bottom:auto; left:1rem; width:11rem; margin:0; flex-direction:column; flex-wrap:nowrap; }
  nav.tabs a { flex:none; flex-direction:row; justify-content:flex-start; gap:.6rem; font-size:.95rem; padding:.2rem .9rem; }
  .bar { max-width:62rem; }
  .has-nav main { max-width:53rem; padding-left:13rem; }
  .toast { bottom:1.5rem; }
}
/* Very large text on a small phone: let the header and tabs scroll away so the content has room.
   (em here follows the phone's text size setting.) */
@media (max-width:19em) { header.top,nav.tabs { position:static; } .bar { border-radius:24px; } .toast { bottom:.75rem; flex-wrap:wrap; } }
@media (prefers-reduced-motion:reduce) { *,*::before,*::after { animation:none !important; transition:none !important; } }
