/* "Your projects": every crew link this phone has opened (your-projects.js). */
@font-face {
  font-family: "Barlow Semi Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: optional;
  src: url("/barlow-semi-condensed-700.woff2?v=1.16.29") format("woff2");
}
:root {
  --font-title: "Barlow Semi Condensed", "Arial Narrow", Inter, ui-sans-serif, system-ui, sans-serif;
  color-scheme: light;
  --ink: #171717;
  --muted: #6e6964;
  --line: #ddd7d0;
  --paper: #f1efeb;
  --green: #29715b;
  --green-dark: #1d5a47;
  --green-soft: #e5f2ec;
  --accent: #c83e49;
  --accent-dark: #a72f3a;
  --accent-soft: #fae9eb;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--paper); touch-action: manipulation; }
body { min-width: 320px; min-height: 100dvh; margin: 0; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, a { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.topbar { position: sticky; z-index: 10; top: 0; display: flex; min-height: 64px; align-items: center; justify-content: space-between; gap: 12px; padding: max(10px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left)); border-bottom: 1px solid rgba(221, 215, 208, .88); background: rgba(255, 255, 255, .94); backdrop-filter: blur(14px); }
.brand { display: flex; min-width: 0; align-items: center; gap: 10px; }
.brand strong { font: 700 1rem/1.2 var(--font-title); letter-spacing: .02em; text-transform: uppercase; }
.brand-hex { display: block; width: 34px; height: 34px; flex: none; }
.brand-hex-c { fill: var(--ink); }
.brand-hex-piece { fill: var(--accent); }
.language-toggle { min-height: 44px; padding: 8px 4px; border: 0; color: var(--muted); background: transparent; font-size: .72rem; font-weight: 800; }

.shell { width: min(100% - 32px, 620px); margin: 0 auto; padding: 30px 0 max(40px, env(safe-area-inset-bottom)); }
.page-head { margin-bottom: 22px; }
.eyebrow { margin: 0 0 8px; color: var(--muted); font-size: .68rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.page-head h1 { margin: 0; font: 700 clamp(2rem, 10vw, 2.6rem)/1.05 var(--font-title); }
.lede { margin: 10px 0 0; color: var(--muted); font-size: .9rem; line-height: 1.5; }

.notice { margin: 0 0 18px; padding: 16px; border-radius: 16px; background: #fff; color: var(--muted); font-size: .9rem; line-height: 1.45; }
.notice.error { color: var(--accent-dark); background: var(--accent-soft); }
.notice.error p { margin: 0; }
.notice .button { margin-top: 12px; }
.button { min-height: 44px; padding: 10px 18px; border: 0; border-radius: 999px; color: #fff; background: var(--ink); font-weight: 800; }
.button.secondary { color: var(--ink); background: #fff; box-shadow: inset 0 0 0 1px var(--line); }

.groups { display: grid; gap: 26px; }
.group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 2px 10px; }
.group-head h2 { min-width: 0; margin: 0; overflow-wrap: anywhere; font: 700 1.25rem/1.15 var(--font-title); }
.group-head span { flex: none; color: var(--muted); font-size: .75rem; font-weight: 700; }
.group-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }

.row { display: flex; min-height: 64px; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; color: inherit; background: #fff; text-decoration: none; }
a.row:active { background: #f7f5f2; }
.row-main { display: grid; min-width: 0; flex: 1; gap: 3px; }
.row-name { overflow-wrap: anywhere; font-weight: 800; line-height: 1.25; }
.row-sub { color: var(--muted); font-size: .8rem; line-height: 1.35; overflow-wrap: anywhere; }
.row-count { flex: none; padding: 5px 10px; border-radius: 999px; color: var(--ink); background: var(--paper); font-size: .75rem; font-weight: 800; white-space: nowrap; }
.row-count.none { color: var(--muted); background: transparent; }
.chevron { flex: none; color: var(--muted); font-size: 1.3rem; line-height: 1; }

.crew-card { padding: 14px 12px 12px; border-radius: 20px; color: #fff; background: var(--green); }
.crew-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 0 4px 12px; }
.crew-head .eyebrow { margin-bottom: 4px; color: rgba(255, 255, 255, .78); }
.crew-head h3 { margin: 0; overflow-wrap: anywhere; font: 700 1.35rem/1.1 var(--font-title); }
.crew-head p { margin: 4px 0 0; color: rgba(255, 255, 255, .85); font-size: .8rem; }
.crew-all { display: inline-flex; min-height: 44px; flex: none; align-items: center; padding: 0 14px; border-radius: 999px; color: var(--green-dark); background: #fff; font-size: .82rem; font-weight: 800; text-decoration: none; }
.crew-card .group-list { gap: 8px; }
.crew-card .row { min-height: 58px; border: 0; color: var(--ink); }
.crew-note { margin: 10px 4px 0; color: rgba(255, 255, 255, .85); font-size: .76rem; line-height: 1.4; }

.row.ended { align-items: flex-start; background: rgba(255, 255, 255, .55); border-style: dashed; }
.row.ended .row-name { color: var(--muted); }
.remove { min-height: 40px; flex: none; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: #fff; font-size: .78rem; font-weight: 800; }

.tip { margin-top: 28px; padding: 16px; border-radius: 16px; background: rgba(255, 255, 255, .6); }
.tip h2 { margin: 0 0 4px; font: 700 1.1rem/1.2 var(--font-title); }
.tip p { margin: 0; color: var(--muted); font-size: .85rem; line-height: 1.45; }
.tip.empty { margin-top: 0; background: #fff; }
.builder-door { margin: 26px 2px 0; font-size: .82rem; }
.builder-door a { color: var(--muted); font-weight: 700; }
