/* Togedr prototype: shared design system.
   Tokens come from the live app (app/public/assets/styles.css): paper, ink, red, forest, gold.
   One accent (red) for actions. Forest means "counted by the system". Gold means "brand drop" and XP. */

:root {
  --paper: #f3eee4;
  --paper-2: #e9e2d3;
  --card: #fbf8f2;
  --white: #fffdf9;
  --ink: #16130e;
  --ink-2: #4b453b;
  --ink-3: #6f6758; /* 4.6:1 on --paper */
  --line: rgba(22, 19, 14, 0.12);
  --line-2: rgba(22, 19, 14, 0.2);
  --red: #c9361d;
  --red-ink: #a62a14;
  --red-soft: #f8dcd2;
  --forest: #1e4b3a;
  --forest-soft: #d8e5da;
  --gold: #e9a21f;
  --gold-ink: #7a5208;
  --gold-soft: #f8e6bd;
  --display: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 26px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-move: cubic-bezier(0.77, 0, 0.175, 1);
  --shadow-pop: 0 1px 0 rgba(22, 19, 14, 0.04), 0 12px 32px -8px rgba(22, 19, 14, 0.22);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --tabbar: 64px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; height: 100%; }
body {
  margin: 0;
  min-height: 100%;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.45 var(--body);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; text-align: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type ---------- */
.t-hero { font: 700 34px/1.02 var(--display); letter-spacing: -0.035em; text-wrap: balance; }
.t-h1 { font: 700 28px/1.05 var(--display); letter-spacing: -0.03em; text-wrap: balance; }
.t-h2 { font: 650 20px/1.15 var(--display); letter-spacing: -0.02em; text-wrap: balance; }
.t-h3 { font: 600 16px/1.25 var(--body); letter-spacing: -0.01em; }
.t-body { font-size: 15px; color: var(--ink-2); text-wrap: pretty; }
.t-small { font-size: 13px; color: var(--ink-3); }
.t-eyebrow { font: 500 11px/1.3 var(--mono); letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-3); }
.t-big { font: 650 30px/1 var(--display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-3); }
.red { color: var(--red); }

/* ---------- layout ---------- */
.app { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.screen { flex: 1; padding: 0 16px calc(var(--tabbar) + 32px + var(--safe-b)); }
.screen.no-tabs { padding-bottom: calc(110px + var(--safe-b)); }
.stack > * + * { margin-top: 12px; }
.stack-lg > * + * { margin-top: 28px; }
.row { display: flex; align-items: center; gap: 10px; }
.row-top { display: flex; align-items: flex-start; gap: 12px; }
.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.wrap-gap { display: flex; flex-wrap: wrap; gap: 8px; }
.section { margin-top: 28px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.section-head .link { font-size: 14px; font-weight: 500; color: var(--red); padding: 10px 0; }
.divider { height: 1px; background: var(--line); margin: 20px 0; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 8px;
  min-height: 56px; padding: 8px 12px 8px 16px;
  background: rgba(243, 238, 228, 0.97);
}
.topbar.scrolled { box-shadow: 0 1px 0 var(--line); }
.topbar .title { font: 650 17px/1.2 var(--display); letter-spacing: -0.02em; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar.over { position: absolute; left: 0; right: 0; background: transparent; }
.icon-btn {
  width: 44px; height: 44px; flex: none;
  display: inline-grid; place-items: center; border-radius: 999px;
  transition: transform 140ms var(--ease-out), background-color 140ms ease;
}
.icon-btn:active { transform: scale(0.94); background: var(--line); }
.icon-btn.glass { background: rgba(251, 248, 242, 0.88); box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.icon-btn .dot { position: absolute; }
.badge-dot { position: relative; }
.badge-dot::after { content: ''; position: absolute; top: 10px; right: 10px; width: 8px; height: 8px; border-radius: 99px; background: var(--red); box-shadow: 0 0 0 2px var(--paper); }
svg.i { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg.i.sm { width: 18px; height: 18px; }
svg.i.xs { width: 15px; height: 15px; stroke-width: 2; }

/* ---------- bottom tab bar ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  height: calc(var(--tabbar) + var(--safe-b)); padding-bottom: var(--safe-b);
  background: rgba(251, 248, 242, 0.98);
  box-shadow: 0 -1px 0 var(--line);
}
.tab {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: 11px; font-weight: 500; color: var(--ink-3);
  transition: color 120ms ease, transform 140ms var(--ease-out);
}
.tab:active { transform: scale(0.94); }
.tab[aria-current="page"] { color: var(--ink); }
.tab[aria-current="page"] svg.i { stroke-width: 2.2; }
.tab .pip { position: relative; }
.tab .pip b { position: absolute; top: -4px; right: -9px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 99px; background: var(--red); color: #fff; font: 600 10px/16px var(--body); text-align: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: 999px;
  font-weight: 600; font-size: 15px; letter-spacing: -0.005em;
  transition: transform 160ms var(--ease-out), background-color 150ms ease, opacity 150ms ease;
  user-select: none;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-ink); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ghost { background: var(--white); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-ghost:hover { background: var(--card); }
.btn-soft { background: var(--paper-2); }
.btn-forest { background: var(--forest); color: #fff; }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: 0.45; pointer-events: none; }
.btn .spinner { width: 16px; height: 16px; border-radius: 99px; border: 2px solid currentColor; border-right-color: transparent; animation: spin 600ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- chips / segmented ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px; scroll-padding: 16px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  min-height: 38px; padding: 0 14px; border-radius: 999px;
  background: var(--white); box-shadow: inset 0 0 0 1px var(--line);
  font-size: 14px; font-weight: 500; white-space: nowrap;
  transition: transform 140ms var(--ease-out), background-color 140ms ease, color 140ms ease;
}
.chip:active { transform: scale(0.96); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); box-shadow: none; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 3px; border-radius: 12px; background: var(--paper-2); }
.seg button { min-height: 38px; border-radius: 9px; font-size: 14px; font-weight: 500; color: var(--ink-2); text-align: center; transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease; }
.seg button[aria-pressed="true"] { background: var(--white); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 0 0 1px var(--line); }

/* ---------- tags ---------- */
.tag { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 99px; font: 500 12px/1 var(--body); white-space: nowrap; }
.tag-verified { background: var(--forest-soft); color: var(--forest); }
.tag-drop { background: var(--gold-soft); color: var(--gold-ink); }
.tag-red { background: var(--red-soft); color: var(--red-ink); }
.tag-plain { background: var(--paper-2); color: var(--ink-2); }
.tag-ink { background: var(--ink); color: var(--paper); }
.tag-onphoto { background: rgba(22,19,14,.78); color: #fff; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; }
.status::before { content: ''; width: 7px; height: 7px; border-radius: 99px; background: currentColor; }
.s-paid { color: #18794e; } .s-pending { color: #a35a00; } .s-failed { color: #b42318; } .s-neutral { color: var(--ink-3); }

/* ---------- cards ---------- */
.card { background: var(--card); border-radius: var(--r-lg); box-shadow: 0 0 0 1px var(--line); }
.card-pad { padding: 16px; }
.pressable { transition: transform 180ms var(--ease-out); cursor: pointer; }
.pressable:active { transform: scale(0.985); }
@media (hover: hover) { .lift { transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out); } .lift:hover { transform: translateY(-2px); } }
.photo { position: relative; overflow: hidden; background: var(--paper-2); border-radius: var(--r-lg); }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease-out); }
@media (hover: hover) { .lift:hover .photo img { transform: scale(1.03); } }
.photo .on { position: absolute; left: 10px; top: 10px; display: flex; gap: 6px; }
.photo .on-br { position: absolute; right: 10px; bottom: 10px; }

/* event card */
.ecard { display: block; }
.ecard .photo { aspect-ratio: 4 / 3; }
.ecard .meta { padding: 10px 2px 0; }
.ecard .when { font: 500 12px/1.3 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--red); }
.ecard h3 { font: 600 16px/1.25 var(--body); letter-spacing: -0.01em; margin-top: 4px; }
.ecard .by { font-size: 13px; color: var(--ink-3); margin-top: 3px; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 4px; scroll-padding: 16px; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }

/* list rows */
.list { background: var(--card); border-radius: var(--r-lg); box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.li { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 12px 16px; position: relative; width: 100%; }
.li + .li::before { content: ''; position: absolute; top: 0; left: 16px; right: 0; height: 1px; background: var(--line); }
button.li, a.li { transition: background-color 120ms ease; }
button.li:active, a.li:active { background: var(--paper-2); }
.li .chev { color: var(--ink-3); }
.li .l1 { font-weight: 500; font-size: 15px; line-height: 1.3; }
.li .l2 { font-size: 13px; color: var(--ink-3); line-height: 1.35; margin-top: 2px; }
.thumb { width: 52px; height: 52px; border-radius: 12px; overflow: hidden; flex: none; background: var(--paper-2); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }

/* avatars and brand marks */
.av { width: 36px; height: 36px; border-radius: 99px; flex: none; display: inline-grid; place-items: center; font: 600 13px/1 var(--body); color: var(--ink); background: var(--paper-2); }
.av-stack { display: flex; }
.av-stack .av { width: 28px; height: 28px; font-size: 11px; box-shadow: 0 0 0 2px var(--card); }
.av-stack .av + .av { margin-left: -8px; }
.mark { width: 40px; height: 40px; border-radius: 11px; flex: none; display: inline-grid; place-items: center; font: 700 17px/1 var(--display); color: #fff; letter-spacing: -0.02em; }
.mark.lg { width: 56px; height: 56px; border-radius: 15px; font-size: 24px; }
.mark.sm { width: 28px; height: 28px; border-radius: 8px; font-size: 13px; }

/* stat strip (dashboard skill: label above, number below, no icon cards) */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.stats.two { grid-template-columns: repeat(2, 1fr); }
.stat { padding: 2px 12px 2px 0; }
.stat + .stat { padding-left: 12px; box-shadow: inset 1px 0 0 var(--line); }
.stat .lab { font-size: 12px; color: var(--ink-3); line-height: 1.3; }
.stat .val { font: 650 24px/1.1 var(--display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; margin-top: 4px; }
.stat .src { font-size: 11.5px; color: var(--ink-3); margin-top: 3px; line-height: 1.3; }

/* bars */
.bar { height: 8px; border-radius: 99px; background: var(--paper-2); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: inherit; background: var(--ink); }
.bar.forest > i { background: var(--forest); }
.bar.red > i { background: var(--red); }
.bar.gold > i { background: var(--gold); }
.hbars { display: grid; gap: 10px; }
.hbar { display: grid; grid-template-columns: 96px 1fr 64px; align-items: center; gap: 10px; font-size: 13px; }
.hbar .v { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); }

/* forms */
.field { display: block; }
.field + .field { margin-top: 14px; }
.field > span { display: block; font-size: 13px; font-weight: 500; color: var(--ink-2); margin-bottom: 6px; }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 12px; border: 0;
  background: var(--white); box-shadow: inset 0 0 0 1px var(--line-2);
  font-size: 16px; transition: box-shadow 140ms ease;
}
.textarea { min-height: 96px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--ink); }
.field .hint { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 6px; }
.search { position: relative; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); }
.search .input { padding-left: 44px; border-radius: 999px; }
.check { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; cursor: pointer; font-size: 14px; color: var(--ink-2); line-height: 1.4; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check .box { flex: none; width: 22px; height: 22px; border-radius: 7px; box-shadow: inset 0 0 0 1.5px var(--line-2); background: var(--white); display: grid; place-items: center; transition: background-color 140ms ease, box-shadow 140ms ease; margin-top: 1px; }
.check .box svg { opacity: 0; transform: scale(0.6); transition: opacity 140ms ease, transform 180ms var(--ease-out); color: #fff; }
.check input:checked + .box { background: var(--ink); box-shadow: none; }
.check input:checked + .box svg { opacity: 1; transform: scale(1); }
.check input:focus-visible + .box { outline: 2px solid var(--red); outline-offset: 2px; }
.switch { position: relative; width: 50px; height: 30px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; border-radius: 99px; background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--line); transition: background-color 180ms ease; }
.switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 99px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.22); transition: transform 240ms var(--ease-out); }
.switch input:checked + i { background: var(--forest); }
.switch input:checked + i::after { transform: translateX(20px); }
.switch input:focus-visible + i { outline: 2px solid var(--red); outline-offset: 2px; }
.rating { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.rating button { min-height: 48px; border-radius: 12px; background: var(--white); box-shadow: inset 0 0 0 1px var(--line-2); font-weight: 600; font-variant-numeric: tabular-nums; transition: transform 140ms var(--ease-out), background-color 140ms ease, color 140ms ease; }
.rating button:active { transform: scale(0.94); }
.rating button[aria-pressed="true"] { background: var(--ink); color: var(--paper); box-shadow: none; }
.range { width: 100%; accent-color: var(--ink); height: 32px; }

/* notes */
.note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-md); background: var(--paper-2); font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }
.note svg { margin-top: 1px; color: var(--ink-3); }
.note.forest { background: var(--forest-soft); color: var(--forest); }
.note.forest svg { color: var(--forest); }
.note.gold { background: var(--gold-soft); color: var(--gold-ink); }
.note.gold svg { color: var(--gold-ink); }

/* sticky action bar (bottom of detail screens) */
.actionbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px calc(12px + var(--safe-b));
  background: rgba(251, 248, 242, 0.98);
  box-shadow: 0 -1px 0 var(--line);
}
.actionbar .price { font: 650 22px/1 var(--display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.actionbar .sub { font-size: 12.5px; color: var(--ink-3); margin-top: 3px; }

/* ---------- sheets ---------- */
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(22, 19, 14, 0.38); opacity: 0; transition: opacity 280ms ease; }
.scrim.open { opacity: 1; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 61;
  max-height: 92vh; max-height: 92dvh; display: flex; flex-direction: column;
  background: var(--card); border-radius: var(--r-xl) var(--r-xl) 0 0;
  box-shadow: var(--shadow-pop);
  transform: translateY(100%);
  transition: transform 420ms var(--ease-drawer);
  touch-action: none;
}
.sheet.open { transform: translateY(0); }
.sheet .grab { flex: none; padding: 10px 0 4px; display: grid; place-items: center; cursor: grab; }
.sheet .grab i { width: 38px; height: 5px; border-radius: 99px; background: var(--line-2); }
.sheet .sheet-head { flex: none; display: flex; align-items: center; gap: 8px; padding: 2px 8px 6px 20px; }
.sheet .sheet-head h2 { flex: 1; font: 650 19px/1.2 var(--display); letter-spacing: -0.02em; }
.sheet .sheet-body { flex: 1; overflow-y: auto; padding: 4px 20px calc(20px + var(--safe-b)); touch-action: pan-y; overscroll-behavior: contain; }
.sheet .sheet-foot { flex: none; padding: 12px 20px calc(14px + var(--safe-b)); box-shadow: 0 -1px 0 var(--line); background: var(--card); }

/* ---------- toast ---------- */
.toasts { position: fixed; left: 0; right: 0; top: 12px; z-index: 90; display: grid; justify-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.toast {
  display: flex; align-items: center; gap: 10px; max-width: 420px;
  padding: 12px 16px; border-radius: 16px;
  background: var(--ink); color: var(--paper); font-size: 14px; font-weight: 500;
  box-shadow: var(--shadow-pop);
  transform: translateY(0); opacity: 1;
  transition: transform 400ms var(--ease-out), opacity 300ms ease;
}
.toast.enter { transform: translateY(-120%); opacity: 0; }
.toast.leave { transform: translateY(-120%); opacity: 0; }
.toast svg { color: #7fd1a8; }

/* ---------- route transition ---------- */
.view { animation: none; }
.view.in-push { animation: pushIn 300ms var(--ease-out) backwards; }
.view.in-pop { animation: popIn 260ms var(--ease-out) backwards; }
.view.in-fade { animation: fadeIn 200ms ease backwards; }
@keyframes pushIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes popIn { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* XP burst: rare moment, allowed a little delight */
.xp-pop { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: var(--gold-soft); color: var(--gold-ink); font-weight: 600; font-size: 14px; animation: xpPop 520ms var(--ease-out) both; }
@keyframes xpPop { 0% { opacity: 0; transform: translateY(8px) scale(0.92); } 100% { opacity: 1; transform: none; } }

.empty { text-align: center; padding: 40px 12px; color: var(--ink-3); font-size: 14px; }
.empty .t-h3 { color: var(--ink); margin-bottom: 6px; }

/* Demo data stamp, shown inside the app so screenshots stay honest */
.demo-stamp { display: inline-flex; align-items: center; gap: 6px; font: 500 10.5px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  .sheet { transition: opacity 160ms ease !important; }
}

/* ---------- prototype viewer (desktop only) ---------- */
body.shell { height: 100vh; display: flex; flex-direction: column; overflow: hidden; background: #e7e0d2; }
.shell-bar { flex: none; display: flex; align-items: center; gap: 16px; height: 60px; padding: 0 20px; background: var(--paper); box-shadow: 0 1px 0 var(--line); }
.shell-logo { display: inline-flex; padding: 8px 4px; }
.shell-apps { display: flex; gap: 4px; margin-left: 8px; }
.shell-apps a { padding: 9px 12px; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--ink-2); transition: background-color 140ms ease; }
.shell-apps a:hover { background: var(--paper-2); }
.shell-apps a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.shell-demo { margin-left: auto; font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--gold-ink); background: var(--gold-soft); padding: 7px 10px; border-radius: 99px; }
.shell-seg { display: grid; grid-auto-flow: column; padding: 3px; border-radius: 11px; background: var(--paper-2); }
.shell-seg button { min-height: 34px; padding: 0 14px; border-radius: 8px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.shell-seg button[aria-pressed="true"] { background: var(--white); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 0 0 1px var(--line); }
.shell-reset { font-size: 13.5px; font-weight: 500; color: var(--ink-2); padding: 9px 10px; border-radius: 10px; }
.shell-reset:hover { background: var(--paper-2); }
.shell-stage { flex: 1; min-height: 0; position: relative; overflow: hidden; }
.device { width: 414px; height: 868px; flex: none; padding: 12px; border-radius: 56px; background: #16130e; box-shadow: 0 0 0 1px rgba(255,255,255,.06) inset, 0 40px 80px -30px rgba(22,19,14,.55), 0 12px 24px -12px rgba(22,19,14,.35); transform-origin: center center; position: absolute; left: 50%; top: 50%; margin: -434px 0 0 -207px; }
.device iframe { width: 390px; height: 844px; border: 0; border-radius: 44px; background: var(--paper); display: block; }
body.shell[data-mode="web"] .shell-stage { place-items: stretch; }
body.shell[data-mode="web"] .device { position: absolute; inset: 0; left: 0; top: 0; margin: 0; width: 100%; height: 100%; padding: 0; border-radius: 0; background: none; box-shadow: none; transform: none !important; }
body.shell[data-mode="web"] .device iframe { width: 100%; height: 100%; border-radius: 0; }
