/* Stravito look (see ~/.claude/skills/stravito-look): white ground, deep-purple ink, one pink
   accent, Poppins. The team colour becomes a small secondary tint (chips, schedule edge), never
   the whole hero — pink does the shouting, once. */
:root {
  --bg: #ffffff; --bg-2: #fbf6fa; --bg-3: #f4ecf2;
  --ink: #5d0048; --ink-2: #7c2c69; --ink-3: #a371a0;
  --rule: #ead7e6; --rule-strong: #d6b4cf;
  --accent: #e91e8c; --accent-hover: #f04682; --accent-soft: #fcd9eb; --accent-tint: #fce8f3;
  --magenta-deep: #94114a;
  --crimson: #b00020; --crimson-soft: #ffd9df;
  --steel: #2b4d7a; --steel-soft: #d8e1ef;
  --team: var(--ink-2);          /* replaced by the team colour after login */
  --font-display: "Poppins", -apple-system, "Helvetica Neue", sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", Menlo, monospace;
  --radius-sm: 6px; --radius-md: 10px; --radius-lg: 14px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-display); font-size: 16px; line-height: 1.5; min-height: 100dvh;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: var(--radius-sm); }
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.15; color: var(--ink); }
p { margin: 0; }
code, .mono { font-family: var(--font-mono); font-size: 0.92em; }

.app { max-width: 560px; margin: 0 auto; min-height: 100dvh; display: flex; flex-direction: column; }
.view { flex: 1; padding: 20px 20px calc(88px + env(safe-area-inset-bottom)); }

/* ---- brand mark: Stravito wordmark with the R&D dig ---- */
.brand { display: flex; align-items: baseline; gap: 8px; }
.brand .word { font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.brand .dept {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--accent);
  background: var(--accent-tint); border-radius: 999px; padding: 2px 8px; position: relative; top: -2px;
}

/* ---- login ---- */
.login { display: flex; flex-direction: column; justify-content: center; min-height: 82dvh; gap: 26px; }
.login .brand .word { font-size: 22px; }
.login h1 { font-size: clamp(34px, 9.5vw, 46px); font-weight: 700; letter-spacing: -0.02em; }
.login h1 small { display: block; font-size: 16px; font-weight: 400; letter-spacing: 0; color: var(--ink-2); margin-top: 10px; line-height: 1.45; }
.login form { display: flex; flex-direction: column; gap: 10px; }
.login input {
  padding: 15px 16px; border: 1px solid var(--rule-strong); border-radius: var(--radius-md);
  background: var(--bg); font-size: 17px; color: var(--ink);
}
.login input::placeholder { color: var(--ink-3); }
.login input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-tint); }
.btn {
  padding: 15px 18px; border: 0; border-radius: var(--radius-md); background: var(--accent); color: #fff;
  font-weight: 600; font-size: 17px; cursor: pointer; width: 100%;
}
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: translateY(1px); }
.hint-line { color: var(--ink-3); font-size: 14px; }
.error { color: var(--crimson); font-weight: 500; font-size: 15px; min-height: 1.4em; }
.login .footnote { color: var(--ink-3); font-size: 13px; line-height: 1.5; }

/* ---- header ---- */
.head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.head .who { font-weight: 600; font-size: 17px; margin-top: 6px; }
.head .team { display: inline-block; font-size: 13px; font-weight: 500; color: var(--team); background: color-mix(in srgb, var(--team) 12%, white); border-radius: 999px; padding: 1px 9px; margin-left: 4px; vertical-align: 2px; }
.head .event { color: var(--ink-3); font-size: 14px; }
.linkish { background: none; border: 0; padding: 6px 0; color: var(--accent); font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.linkish:hover { color: var(--accent-hover); }

.preview {
  margin: -6px 0 18px; padding: 10px 14px; border-radius: var(--radius-md);
  background: var(--steel-soft); color: var(--steel); font-size: 14px; display: flex; justify-content: space-between; gap: 10px;
}
.preview a { color: var(--steel); text-decoration: underline; text-underline-offset: 3px; }

/* ---- now / next ---- */
.now {
  background: var(--bg-2); border: 1px solid var(--rule); border-radius: var(--radius-lg);
  padding: 22px 22px 22px; display: flex; flex-direction: column; gap: 6px; position: relative; overflow: hidden;
}
.now::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--accent); }
.now .kicker { font-size: 14px; color: var(--ink-2); }
.now .place { font-size: clamp(32px, 9.5vw, 44px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; margin-top: 2px; color: var(--ink); }
.now .title { font-size: 18px; font-weight: 500; margin-top: 6px; color: var(--ink); }
.now .time { font-size: 14px; color: var(--ink-2); margin-top: 8px; }
.now .time b { color: var(--accent); font-weight: 600; }
.now .desc { font-size: 15px; margin-top: 12px; color: var(--ink); line-height: 1.5; }
.now .hint { font-size: 14px; color: var(--ink-2); margin-top: 8px; line-height: 1.5; }
.now.is-free::before { background: var(--rule-strong); }
.now.is-free .place { font-size: clamp(28px, 8vw, 36px); }

.next { margin-top: 14px; padding: 18px 20px; background: var(--bg); border-radius: var(--radius-lg); border: 1px solid var(--rule); }
.next .kicker { color: var(--ink-2); font-size: 14px; }
.next .place { font-size: 24px; font-weight: 600; letter-spacing: -0.01em; margin-top: 2px; }
.next .title { margin-top: 2px; color: var(--ink); }
.next .time { color: var(--ink-2); font-size: 14px; margin-top: 8px; line-height: 1.5; }

.quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; align-items: stretch; }
.quick button {
  display: flex; flex-direction: column; justify-content: flex-start; width: 100%; text-align: left;
  padding: 14px 16px; border: 1px solid var(--rule); border-radius: var(--radius-lg); background: var(--bg); cursor: pointer;
}
.quick button:hover { background: var(--bg-2); }
.quick .q-k { color: var(--ink-2); font-size: 13px; }
.quick .q-v { font-weight: 600; font-size: 22px; margin-top: 2px; font-variant-numeric: tabular-nums; color: var(--ink); }
.quick .q-s { font-size: 14px; margin-top: 2px; color: var(--ink-2); }

/* ---- schedule ---- */
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head h2 { font-size: 24px; letter-spacing: -0.01em; }
.toggle { display: inline-flex; border: 1px solid var(--rule); border-radius: 999px; padding: 3px; background: var(--bg-2); }
.toggle button { border: 0; background: none; padding: 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 500; color: var(--ink-2); cursor: pointer; }
.toggle button.is-active { background: var(--ink); color: #fff; }

.day { margin-top: 26px; }
.day:first-of-type { margin-top: 0; }
.day h3 { font-size: 14px; font-weight: 500; color: var(--ink-2); padding-bottom: 8px; border-bottom: 1px solid var(--rule); }
.day.is-today h3 { color: var(--ink); font-weight: 600; }
.sess { display: grid; grid-template-columns: 58px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); position: relative; }
.sess .t { font-variant-numeric: tabular-nums; font-size: 14px; color: var(--ink-3); padding-top: 2px; line-height: 1.35; }
.sess .t b { display: block; color: var(--ink); font-weight: 600; }
.sess .name { font-weight: 500; color: var(--ink); }
.sess .meta { color: var(--ink-2); font-size: 14px; margin-top: 2px; }
.sess .d { color: var(--ink-2); font-size: 14px; margin-top: 6px; display: none; line-height: 1.5; }
.sess.is-open .d { display: block; }
.sess.is-mine { padding-left: 12px; }
.sess.is-mine::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: var(--team); }
.sess.is-other { opacity: .55; }
.sess.is-past { opacity: .45; }
.sess.is-now { background: var(--accent-tint); margin: 0 -12px; padding-left: 24px; padding-right: 12px; border-radius: var(--radius-md); border-bottom-color: transparent; }
.sess.is-now.is-mine::before { left: 12px; }
.sess.is-now .name::after { content: " now"; color: var(--accent); font-weight: 600; }
.sess .name button { all: unset; cursor: pointer; }

/* ---- places / info ---- */
.list { display: flex; flex-direction: column; }
.item { padding: 14px 0; border-bottom: 1px solid var(--rule); }
.item .name { font-weight: 600; font-size: 17px; color: var(--ink); }
.item .d { color: var(--ink-2); margin-top: 2px; font-size: 15px; line-height: 1.5; }
.item a { display: inline-block; margin-top: 6px; font-size: 14px; font-weight: 500; }
.wifi { background: var(--bg-2); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 16px 20px; margin: 0 0 20px; }
.wifi .k { font-size: 13px; color: var(--ink-2); }
.wifi .v { font-size: 20px; font-weight: 600; font-family: var(--font-mono); color: var(--ink); }
.wifi .row + .row { margin-top: 10px; }
.notes { padding-left: 20px; margin: 0; color: var(--ink); }
.notes li { margin: 8px 0; line-height: 1.5; }
.notes li::marker { color: var(--accent); }
.contact .name { font-size: 16px; }
.contact .role { color: var(--ink-2); font-weight: 400; }
.contact a { margin-right: 14px; }
.team-name { font-weight: 600; }

/* ---- tabs ---- */
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; display: flex; justify-content: center;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px); border-top: 1px solid var(--rule);
}
.tabs .tab {
  flex: 1; max-width: 140px; border: 0; background: none; padding: 10px 6px; font-weight: 500; font-size: 14px; color: var(--ink-2); cursor: pointer; border-radius: var(--radius-md);
}
.tabs .tab.is-active { color: var(--accent); font-weight: 600; }
.tabs .tab.is-active::after { content: ""; display: block; width: 18px; height: 3px; border-radius: 3px; background: var(--accent); margin: 4px auto 0; }

@media (prefers-reduced-motion: no-preference) {
  .btn, .quick button, .tabs .tab { transition: background-color .15s ease, color .15s ease; }
}

/* ---- photos ---- */
.photo { display: block; width: 100%; max-width: 100%; border-radius: var(--radius-md); margin-top: 12px; border: 1px solid var(--rule); }

/* ---- toast ---- */
.toast { position: fixed; left: 50%; bottom: calc(76px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 500; transition: opacity .15s, transform .15s; z-index: 20; max-width: 90vw; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast.is-error { background: var(--crimson); }
.preview.is-warn { background: var(--accent-tint); color: var(--magenta-deep); }
.muted { color: var(--ink-2); }
.small { font-size: 14px; }

/* ---- admin ---- */
.subnav { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 14px; -webkit-overflow-scrolling: touch; }
.subnav button { flex: 0 0 auto; border: 1px solid var(--rule); background: var(--bg); color: var(--ink-2); border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 500; cursor: pointer; }
.subnav button.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.arow { display: grid; grid-template-columns: 58px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.arow.person { grid-template-columns: 1fr; }
.arow .t { font-variant-numeric: tabular-nums; font-size: 14px; color: var(--ink-3); padding-top: 4px; line-height: 1.35; }
.arow .t b { display: block; color: var(--ink); font-weight: 600; }
.arow .title, .item .title { all: unset; display: block; font-weight: 600; color: var(--ink); cursor: pointer; text-decoration: underline; text-decoration-color: var(--rule-strong); text-underline-offset: 3px; }
.arow .title-static { font-weight: 600; }
.arow .meta { color: var(--ink-2); font-size: 14px; margin-top: 2px; }
.row2 { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.row2 .team-name { flex: 1; }
select.inline { margin-top: 8px; width: 100%; padding: 12px 12px; border: 1px solid var(--rule-strong); border-radius: var(--radius-md); background: var(--bg); color: var(--ink); font-size: 16px; }
.row2 select.inline { margin-top: 0; flex: 1; }
.danger-link { background: none; border: 0; padding: 8px 4px; color: var(--crimson); font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.stack { display: flex; flex-direction: column; gap: 10px; margin: 12px 0 18px; }
.stack label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--ink-2); }
.stack input, .stack select, .stack textarea { width: 100%; padding: 12px 12px; border: 1px solid var(--rule-strong); border-radius: var(--radius-md); background: var(--bg); color: var(--ink); font-size: 16px; }
.stack textarea { resize: vertical; line-height: 1.45; }
.stack input:focus, .stack select:focus, .stack textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-tint); }
.stack .two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stack details.sub { border: 1px solid var(--rule); border-radius: var(--radius-md); padding: 10px 12px; }
.stack details.sub summary { cursor: pointer; font-size: 14px; color: var(--ink-2); }
.stack details.sub[open] summary { margin-bottom: 8px; }
.stack details.sub label { margin-top: 8px; }
.stack details.sub .muted { margin: 0; }
.stack label.color { flex-direction: row; align-items: center; justify-content: space-between; }
.stack label.color input { width: 56px; height: 40px; padding: 2px; }
.stack .btn { margin-top: 4px; }
.bulk { border: 1px solid var(--rule); border-radius: var(--radius-md); padding: 10px 14px; margin-bottom: 14px; }
.bulk summary { cursor: pointer; font-weight: 500; color: var(--ink-2); }
.bulk form { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.bulk textarea { padding: 10px; border: 1px solid var(--rule-strong); border-radius: var(--radius-md); font-size: 15px; color: var(--ink); }
.chips { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { font-size: 14px; color: var(--ink-2); margin-bottom: 6px; padding: 0; }
.chip { display: inline-flex !important; flex-direction: row !important; align-items: center; gap: 6px; padding: 8px 12px !important; border: 1px solid var(--rule-strong); border-radius: 999px; font-size: 14px; color: var(--ink) !important; cursor: pointer; }
.chip:has(input:checked) { background: var(--accent-tint); border-color: var(--accent); color: var(--magenta-deep) !important; }
.chip input { width: auto !important; margin: 0; accent-color: var(--accent); }
.sheet { border: 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0; padding: 20px 20px calc(20px + env(safe-area-inset-bottom)); width: 100%; max-width: 560px; margin: auto auto 0; background: var(--bg); color: var(--ink); max-height: 92dvh; overflow: auto; }
.sheet::backdrop { background: rgba(93, 0, 72, .35); }
.sheet h3 { font-size: 20px; margin-bottom: 4px; }
.sheet .actions { display: flex; align-items: center; gap: 14px; margin-top: 6px; }
.sheet .actions .btn { flex: 1; }
@media (min-width: 600px) { .sheet { border-radius: var(--radius-lg); margin: auto; } }
@media (max-width: 480px) { .stack .two { grid-template-columns: 1fr; } }

/* The MCP command on the Info tab: long, monospaced, must not blow out the phone layout. */
.item .cmd {
  margin: 10px 0; padding: 12px; border: 1px solid var(--rule); border-radius: var(--radius-md);
  background: var(--bg-2, #faf7fa); color: var(--ink-2); font-size: 12px; line-height: 1.5;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: pre-wrap; overflow-wrap: anywhere; user-select: all;
}
.item .cmd + .btn { margin-bottom: 10px; }

/* The QR at the foot of Info: big enough to hold up across a table, always dark-on-white. */
.qr { text-align: center; padding: 20px 16px 8px; border: 1px solid var(--rule); border-radius: var(--radius-lg); background: var(--bg); }
.qr img { width: min(320px, 78vw); height: auto; display: block; margin: 0 auto; background: #fff; border-radius: 8px; }
.qr .d { color: var(--ink-2); font-size: 15px; margin: 14px 0 2px; }
.qr .url { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; color: var(--ink-3); margin: 0 0 6px; overflow-wrap: anywhere; }
.section-head .linkish { font-size: 14px; }

/* ---- travel legs: how you get to the next thing. Thin and grey on purpose; it is connective
   tissue between sessions, not a session. ---- */
.leg {
  display: flex; gap: 8px; align-items: baseline;
  padding: 6px 0 6px 2px; color: var(--ink-3); font-size: 14px; line-height: 1.4;
}
.leg-arrow { color: var(--accent); font-weight: 600; }

/* "paid for" next to a session title. */
.badge {
  display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 999px;
  background: var(--accent-tint); color: var(--magenta-deep);
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em;
  vertical-align: middle;
}

/* ---- who's there when ---- */
.grid-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -4px; padding: 0 4px; }
.grid { border-collapse: collapse; width: 100%; font-size: 14px; }
.grid th {
  text-align: left; font-weight: 600; color: var(--ink-2); font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.04em; padding: 0 8px 8px 0;
  border-bottom: 1px solid var(--rule-strong); white-space: nowrap;
}
.grid td { padding: 10px 8px 10px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.grid .g-name { font-weight: 500; color: var(--ink); white-space: nowrap; }
.grid .g-diet { display: block; font-weight: 400; font-size: 12px; color: var(--accent); }
.grid .g-hotel { color: var(--ink-3); font-size: 13px; white-space: nowrap; }
.grid .is-in { color: var(--accent); text-align: center; font-size: 15px; }
.grid .is-out { text-align: center; }
.grid tbody tr:last-child td { border-bottom: 0; }

/* ---- content pages: packing list, recommendations, whatever comes next ---- */
.page { color: var(--ink); }
.page .pg-h { font-size: 17px; margin: 20px 0 6px; color: var(--ink); }
.page .pg-h:first-child { margin-top: 4px; }
.page .pg-t { margin: 8px 0; color: var(--ink-2); line-height: 1.55; }
.page .pg-b { margin: 8px 0; padding-left: 20px; color: var(--ink-2); }
.page .pg-b li { margin: 4px 0; }
.page .pg-b li::marker { color: var(--accent); }
.page .pg-s { margin: 12px 0 0; padding-left: 0; list-style: none; counter-reset: step; }
.page .pg-s > li {
  counter-increment: step; position: relative;
  padding: 0 0 18px 42px; border-bottom: 1px solid var(--rule); margin-bottom: 18px;
}
.page .pg-s > li:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.page .pg-s > li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 28px; height: 28px; border-radius: 999px;
  background: var(--accent-tint); color: var(--magenta-deep);
  font-size: 14px; font-weight: 600; display: grid; place-items: center;
}
.page .pg-s-h { font-weight: 600; color: var(--accent); font-size: 14px; }
.page .pg-s-sub { font-weight: 600; font-size: 17px; margin-top: 2px; }
.page .pg-s-body { color: var(--ink-2); margin-top: 4px; line-height: 1.55; }
.page .pg-s .pg-b { margin-top: 8px; }

/* A full-width chip, for a lone checkbox in a form. */
.chip.wide { display: flex !important; justify-content: flex-start; border-radius: var(--radius-md); }

/* Times always render in the event's timezone. Say so when the viewer's phone disagrees. */
.preview.is-tz { background: var(--accent-tint); border-color: var(--accent-soft); }
.tz-line { color: var(--ink-3); font-size: 14px; margin: 0 0 14px; }
