/* ============================================================
   FoodLab Participant App — styles
   Colour + component system carried over from the v0.1 wireframe,
   re-worked from a 6-phone gallery into one real full-screen app.
   ============================================================ */

:root {
  /* FoodLab brand palette — HERB green + HARINA cream + spice accents */
  --bg: #F0EADC;            /* HARINA — app background (cream) */
  --ink: #27421D;           /* HERB — primary text + headings (dark green) */
  --ink-soft: #5E6B4F;      /* muted herb-grey for secondary text */
  --ink-light: #939C84;     /* lightest text */
  --card: #FFFFFF;          /* white cards lift off the cream */
  --line: #E2DBC9;          /* soft divider on cream */
  --green: #27421D;         /* HERB — main brand green (nav, accents, highlights) */
  --green-soft: #E3E8D8;    /* soft herb tint */
  --terracotta: #D23F2F;    /* SAFFRON — primary action / alerts */
  --terracotta-soft: #F7E0DB;
  --ochre: #E99D51;         /* TURMERIC */
  --ochre-soft: #FBEEDB;
  --teal: #888F65;          /* CILANTRO (sage) */
  --teal-soft: #E8EADF;
  --plum: #552C25;          /* CINNAMON (warm brown) */
  --plum-soft: #ECE1DE;
  --tick: #43550A;          /* BASIL — done/success */
  --pending: #E99D51;       /* TURMERIC — pending */
  --nav-h: 72px;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html, body { height: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #DCDFCF;
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* The whole app sits in a phone-width column, centred on big screens,
   full-bleed on a real phone. */
.app-shell {
  position: relative;
  width: 100%;
  max-width: 460px;
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(0,0,0,0.12);
}

/* Scrollable content area; leaves room for the bottom nav. */
.screen {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: max(16px, env(safe-area-inset-top)) 18px calc(var(--nav-h) + 24px);
}
.screen.no-nav { padding-bottom: 32px; }

/* ---------- Buttons / tappable base ---------- */
button { font: inherit; color: inherit; border: none; background: none; cursor: pointer; }
.tap { user-select: none; transition: transform .06s ease, opacity .06s ease; }
.tap:active { transform: scale(0.98); opacity: 0.9; }

/* ---------- App header (Home) ---------- */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0 20px;
}
.greeting { font-size: 24px; font-weight: 700; line-height: 1.15; }
.greeting span { color: var(--green); }
.greeting .sub { display:block; font-size: 14px; font-weight: 500; color: var(--ink-soft); margin-top: 2px; }
.avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--terracotta); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 18px; flex-shrink: 0;
}
.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.bell {
  position: relative; width: 46px; height: 46px; border-radius: 50%;
  background: #fff; border: 1px solid var(--line); color: var(--ink);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.bell-badge {
  position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px;
  padding: 0 5px; border-radius: 10px; background: var(--terracotta); color: #fff;
  font-size: 11px; font-weight: 700; line-height: 20px; text-align: center;
  border: 2px solid var(--bg);
}

/* ---------- Announcements ---------- */
.ann-pinned { margin-bottom: 16px; }
.ann-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; margin-bottom: 10px; }
.ann-card.pinned { border-left: 4px solid var(--ochre); }
.ann-head { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.ann-pin { font-size: 13px; }
.ann-title { font-size: 15px; font-weight: 700; flex: 1; min-width: 0; }
.ann-time { font-size: 12px; color: var(--ink-light); flex-shrink: 0; }
.ann-msg { font-size: 14px; color: var(--ink); line-height: 1.5; }
.ann-by { font-size: 12px; color: var(--ink-soft); margin-top: 8px; font-weight: 600; }
.ann-seeall { display: block; width: 100%; text-align: center; padding: 10px; font-size: 14px; font-weight: 700; color: var(--green); }
.ann-seeall.solo { display: flex; align-items: center; justify-content: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 16px; color: var(--ink); }

/* ---------- Sub-page header ---------- */
.sub-header { display: flex; align-items: center; gap: 14px; padding: 4px 0 18px; }
.back-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: #fff; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--ink); line-height: 1;
}
.sub-title { font-size: 21px; font-weight: 700; }

/* ---------- Tiles (Home) ---------- */
.tile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.tile {
  aspect-ratio: 1 / 1; border-radius: 20px; padding: 16px;
  display: flex; flex-direction: column; justify-content: space-between;
  color: #fff; position: relative; overflow: hidden;
}
.tile.terracotta { background: var(--terracotta); }
.tile.green { background: var(--green); }
.tile.ochre { background: var(--ochre); }
.tile.teal { background: var(--teal); }
.tile.plum { background: var(--plum); }
.tile .icon {
  width: 44px; height: 44px; background: rgba(255,255,255,0.2);
  border-radius: 13px; display: flex; align-items: center; justify-content: center;
}
.tile .label { font-size: 18px; font-weight: 700; line-height: 1.2; }
.tile .sub { font-size: 12.5px; opacity: 0.9; margin-top: 2px; }
.tile .badge {
  position: absolute; top: 12px; right: 12px;
  background: #fff; color: var(--ink); font-size: 11px; font-weight: 700;
  padding: 3px 9px; border-radius: 10px;
}

/* ---------- Wide tile ---------- */
.wide-tile {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 14px 16px; display: flex; align-items: center; gap: 14px; margin-bottom: 12px;
}
.wide-tile .wide-icon {
  width: 46px; height: 46px; border-radius: 13px;
  background: var(--plum-soft); color: var(--plum);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.wide-tile .wide-text { flex: 1; min-width: 0; }
.wide-tile .wide-title { font-size: 15px; font-weight: 700; }
.wide-tile .wide-sub { font-size: 13px; color: var(--ink-soft); }
.chev { color: var(--ink-light); font-size: 20px; }

/* ---------- Bottom nav ---------- */
.bottom-nav {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: #fff; border-top: 1px solid var(--line);
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
  display: flex; justify-content: space-around;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom));
}
.nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 6px 10px; color: var(--ink-light); font-size: 11px; font-weight: 600;
  border-radius: 12px;
}
.nav-item.active { color: var(--green); }
.nav-item svg { display: block; }

/* ---------- Homework cards ---------- */
.hw-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin-bottom: 12px; }
.hw-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.hw-status { display: inline-block; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.hw-status.todo { background: #FFF1E0; color: var(--pending); }
.hw-status.done { background: var(--green-soft); color: var(--tick); }
.hw-topic { font-size: 11px; font-weight: 700; color: var(--ink-light); text-transform: uppercase; letter-spacing: 0.5px; }
.hw-title { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.hw-due { font-size: 13px; color: var(--ink-soft); margin-bottom: 12px; }
.hw-action { background: var(--green); color: #fff; padding: 12px; border-radius: 12px; text-align: center; font-weight: 700; font-size: 15px; width: 100%; }
.hw-action.done-btn { background: var(--green-soft); color: var(--green); }

/* ---------- Generic section / form ---------- */
.section { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin-bottom: 14px; }
.section h4 { font-size: 13px; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; }
.field-label { font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-bottom: 8px; }
.input, textarea.input, select.input {
  width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px; font-size: 16px; color: var(--ink); font-family: inherit;
}
textarea.input { min-height: 120px; resize: vertical; }
.help-text { font-size: 13px; color: var(--ink-soft); margin-top: 8px; }

.primary-btn { background: var(--terracotta); color: #fff; padding: 16px; border-radius: 14px; text-align: center; font-weight: 700; font-size: 17px; width: 100%; box-shadow: 0 2px 8px rgba(196,90,63,0.25); }
.primary-btn[disabled] { opacity: 0.5; box-shadow: none; }
.secondary-btn { background: #fff; color: var(--green); border: 2px solid var(--green); padding: 14px; border-radius: 14px; text-align: center; font-weight: 700; font-size: 16px; width: 100%; }
.link-btn { color: var(--green); font-weight: 700; font-size: 14px; padding: 8px 0; }

/* ---------- Calculator ---------- */
.calc-row { display: grid; grid-template-columns: 1.6fr 0.7fr 0.9fr 30px; gap: 8px; margin-bottom: 8px; align-items: center; }
.calc-row .input { padding: 12px 10px; font-size: 15px; }
.calc-row .del { color: var(--terracotta); font-size: 22px; text-align: center; line-height: 1; }
.calc-result { background: var(--green-soft); border-radius: 14px; padding: 16px; margin-top: 6px; }
.calc-result-label { font-size: 13px; color: var(--green); font-weight: 600; }
.calc-result-value { font-size: 30px; font-weight: 700; color: var(--green); }
.calc-hint { font-size: 13px; color: var(--green); margin-top: 8px; }

/* ---------- Suppliers ---------- */
.supplier-cat { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.supplier-icon { width: 50px; height: 50px; border-radius: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.si-Packaging { background: var(--terracotta-soft); color: var(--terracotta); }
.si-Kitchen { background: var(--green-soft); color: var(--green); }
.si-Cleaning { background: var(--teal-soft); color: var(--teal); }
.si-Ingredients { background: var(--ochre-soft); color: var(--ochre); }
.si-Council { background: var(--plum-soft); color: var(--plum); }
.si-Trades { background: #E2E8EC; color: #3E5C66; }
.supplier-info { flex: 1; min-width: 0; }
.supplier-name { font-size: 16px; font-weight: 700; margin-bottom: 2px; }
.supplier-count, .supplier-sub { font-size: 13px; color: var(--ink-soft); }
.contact-actions { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.contact-actions a { flex: 1; min-width: 110px; text-align: center; padding: 12px; border-radius: 12px; background: var(--green-soft); color: var(--green); font-weight: 700; font-size: 14px; text-decoration: none; }

/* ---------- Search ---------- */
.search-bar { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 13px 14px; display: flex; align-items: center; gap: 12px; margin-bottom: 18px; color: var(--ink-light); }
.search-bar input { border: none; background: none; outline: none; font-size: 16px; flex: 1; color: var(--ink); }

/* ---------- Login ---------- */
.login { display: flex; flex-direction: column; min-height: 100dvh; padding: 0 24px calc(24px + env(safe-area-inset-bottom)); justify-content: center; gap: 8px; }
.login .brand { text-align: center; margin-bottom: 24px; }
.login .brand .brand-logo { display: block; width: 160px; height: auto; margin: 0 auto 18px; }
.login .brand h1 { font-size: 28px; font-weight: 800; letter-spacing: -0.5px; }
.login .brand p { color: var(--ink-soft); margin-top: 6px; }
.login .field-label { margin-top: 14px; }
.login .err { color: var(--terracotta); font-weight: 600; font-size: 14px; min-height: 20px; margin-top: 8px; text-align: center; }
.login .demo-note { margin-top: 18px; font-size: 13px; color: var(--ink-soft); text-align: center; background: var(--ochre-soft); border-radius: 12px; padding: 12px; }

/* ---------- Empty / loading states ---------- */
.empty { text-align: center; color: var(--ink-soft); padding: 48px 16px; }
.empty .big { font-size: 40px; margin-bottom: 12px; }
.spinner { width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--green); border-radius: 50%; animation: spin 0.8s linear infinite; margin: 48px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + 20px); transform: translateX(-50%);
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px;
  font-size: 14px; font-weight: 600; z-index: 100; max-width: 90%; text-align: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.toast.warn { background: var(--terracotta); }

/* ---------- Offline banner ---------- */
.offline-banner { background: var(--ochre); color: #3a2c0a; font-size: 13px; font-weight: 600; text-align: center; padding: 8px; }

/* ---------- Home search (button that opens search screen) ---------- */
.home-search { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: flex; align-items: center; gap: 12px; margin-bottom: 16px; color: var(--ink-light); font-size: 16px; width: 100%; text-align: left; }

/* ---------- Search screen ---------- */
.search-input-wrap { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.search-input-wrap input { border: none; outline: none; font-size: 16px; flex: 1; background: none; color: var(--ink); }
.search-group-title { font-size: 12px; font-weight: 700; color: var(--ink-light); text-transform: uppercase; letter-spacing: 0.6px; margin: 18px 0 8px; }
.result-row { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 13px 14px; display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.result-row .r-emoji { font-size: 20px; flex-shrink: 0; width: 26px; text-align: center; }
.result-row .r-main { flex: 1; min-width: 0; }
.result-row .r-title { font-size: 15px; font-weight: 700; line-height: 1.2; }
.result-row .r-sub { font-size: 13px; color: var(--ink-soft); }

/* ---------- Filter chips ---------- */
.filter-chips { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 16px; padding-bottom: 4px; }
.chip { flex-shrink: 0; padding: 8px 14px; border-radius: 20px; background: #fff; border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.chip.active { background: var(--green); color: #fff; border-color: var(--green); }

/* ---------- Coursework ---------- */
.cw-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px; display: flex; gap: 12px; margin-bottom: 10px; align-items: center; }
.cw-thumb { width: 60px; height: 60px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; flex-shrink: 0; }
.cw-Video { background: var(--terracotta-soft); }
.cw-Article { background: var(--teal-soft); }
.cw-Link { background: var(--green-soft); }
.cw-Download { background: var(--ochre-soft); }
.cw-info { flex: 1; min-width: 0; }
.cw-title { font-size: 15px; font-weight: 700; line-height: 1.25; margin-bottom: 3px; }
.cw-meta { font-size: 12px; color: var(--ink-soft); }
.cw-featured { border: 2px solid var(--ochre); }
.video-embed { position: relative; width: 100%; aspect-ratio: 16/9; border-radius: 16px; overflow: hidden; background: #000; margin-bottom: 16px; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Tools ---------- */
.tool-row { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.tool-icon { width: 50px; height: 50px; border-radius: 14px; background: var(--terracotta-soft); color: var(--terracotta); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.tool-soon { font-size: 11px; font-weight: 700; color: var(--ink-light); background: var(--bg); border: 1px solid var(--line); padding: 3px 8px; border-radius: 8px; }
.tool-frame-screen { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.tool-frame { flex: 1; width: 100%; border: 0; background: #fff; }

/* ---------- Help contacts ---------- */
.help-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; margin-bottom: 12px; }
.help-card .h-name { font-size: 17px; font-weight: 700; }
.help-card .h-role { font-size: 13px; color: var(--ink-soft); margin-bottom: 4px; }
.help-card .h-email { display: inline-block; font-size: 13px; color: var(--green); text-decoration: none; margin: 0 0 14px; word-break: break-word; }

/* ---------- Help FAQ (tap to expand; content from Airtable) ---------- */
.help-head { font-size: 13px; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.5px; margin: 4px 0 10px; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; overflow: hidden; }
.faq-item[open] { border-color: var(--green); }
.faq-q { list-style: none; cursor: pointer; padding: 15px 16px; font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.35; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.faq-q::-webkit-details-marker { display: none; }
.faq-chev { flex-shrink: 0; font-size: 22px; line-height: 1; color: var(--ink-light); transition: transform 0.15s ease; }
.faq-item[open] .faq-q { color: var(--green); }
.faq-item[open] .faq-chev { transform: rotate(90deg); color: var(--green); }
.faq-a { padding: 0 16px 16px; font-size: 14px; line-height: 1.6; color: var(--ink-soft); }

/* ---------- This week card (Home) ---------- */
.thisweek { display: block; width: 100%; text-align: left; background: var(--green); color: #fff; border: none; border-radius: 18px; padding: 16px 18px; margin-bottom: 16px; }
.thisweek .tw-label { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; opacity: 0.85; }
.thisweek .tw-label svg { width: 16px; height: 16px; }
.thisweek .tw-topic { font-size: 19px; font-weight: 700; margin-top: 6px; }
.thisweek .tw-meta { font-size: 14px; margin-top: 4px; opacity: 0.95; }
.thisweek .tw-loc { font-size: 13px; margin-top: 4px; opacity: 0.85; }
.thisweek .tw-go { font-size: 13px; font-weight: 700; margin-top: 10px; opacity: 0.95; }

/* ---------- Workshops list + detail ---------- */
.ws-row { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; margin-bottom: 10px; }
.ws-row.ws-next { border-color: var(--green); border-width: 2px; }
.ws-row.ws-past { opacity: 0.6; }
.ws-wk { flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; background: var(--green-soft); color: var(--green); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.ws-main { flex: 1; min-width: 0; }
.ws-topic { font-size: 16px; font-weight: 700; color: var(--ink); }
.ws-meta { font-size: 13px; color: var(--ink-soft); margin-top: 2px; }
.ws-badge { display: inline-block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: #fff; background: var(--green); padding: 2px 7px; border-radius: 8px; vertical-align: middle; }
.ws-when { font-size: 14px; color: var(--ink-soft); margin-bottom: 6px; }

/* ---------- Mentoring ---------- */
.mentor-name { font-size: 20px; font-weight: 700; color: var(--ink); }
.ms-row { display: flex; align-items: baseline; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-bottom: 8px; }
.ms-date { flex-shrink: 0; font-size: 13px; font-weight: 700; color: var(--green); min-width: 84px; }
.ms-topic { font-size: 14px; color: var(--ink); }

/* ---------- Portfolio / progress ---------- */
.pf-progress { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin-bottom: 14px; }
.pf-bar { height: 12px; background: var(--green-soft); border-radius: 8px; overflow: hidden; }
.pf-fill { height: 100%; background: var(--green); border-radius: 8px; transition: width 0.3s; }
.pf-count { font-size: 13px; font-weight: 700; color: var(--ink-soft); margin-top: 8px; }
.pf-done { background: var(--green-soft); color: var(--green); font-weight: 700; text-align: center; border-radius: 14px; padding: 14px; margin-bottom: 14px; }
.pf-row { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; margin-bottom: 10px; }
.pf-check { flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 15px; }
.pf-check.on { background: var(--green); border-color: var(--green); }
.pf-main { flex: 1; min-width: 0; }
.pf-title { font-size: 15px; font-weight: 600; color: var(--ink); }
.pf-topic { font-size: 12px; color: var(--ink-soft); margin-top: 2px; }

/* ---------- Community ---------- */
.biz-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.biz-avatar { width: 48px; height: 48px; border-radius: 14px; background: var(--plum); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 20px; flex-shrink: 0; }
.biz-badge { display: inline-block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--green); background: var(--green-soft); padding: 2px 7px; border-radius: 8px; vertical-align: middle; }
.chev svg { vertical-align: middle; color: var(--plum); }

@media (min-width: 480px) {
  body { display: flex; align-items: center; justify-content: center; padding: 20px 0; }
  .app-shell { min-height: 0; height: min(900px, 100dvh - 40px); border-radius: 36px; }
  .screen { border-radius: 36px; }
}
