:root {
  --ink: #101310;
  --ink-2: #171b17;
  --ink-3: #222822;
  --paper: #f4f1e9;
  --card: #fffdf7;
  --muted: #6d716b;
  --line: #d8d7ce;
  --moss: #9eba67;
  --moss-dark: #36523a;
  --amber: #e4a94e;
  --red: #a94d3e;
  --white: #fff;
  --shadow: 0 20px 60px rgba(18, 23, 18, .12);
  --display: "Barlow Condensed", Impact, sans-serif;
  --body: "Manrope", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { color-scheme: light; background: var(--paper); scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; color: var(--ink); background: var(--paper); font-family: var(--body); }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 999; padding: 12px 18px; color: var(--ink); background: var(--moss); font-weight: 800; text-decoration: none; }
.skip-link:focus { top: 16px; }
.kicker { margin: 0 0 8px; color: var(--moss-dark); font: 800 .75rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; }
.app-wordmark { display: inline-flex; align-items: center; gap: 10px; color: inherit; font-family: var(--display); font-size: 1.35rem; font-weight: 700; letter-spacing: .02em; text-decoration: none; }
.app-wordmark img { width: 36px; height: 36px; }
.app-wordmark b { color: var(--moss); font-weight: 800; }

.boot-screen { position: fixed; inset: 0; z-index: 1000; display: grid; place-content: center; justify-items: center; gap: 8px; color: var(--white); background: var(--ink); transition: opacity .25s ease; }
.boot-screen img { width: 76px; margin-bottom: 8px; }
.boot-screen strong { font: 700 1.8rem/1 var(--display); }
.boot-screen strong b { color: var(--moss); }
.boot-screen span { color: #aeb6aa; font-size: .83rem; }

.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(360px, .9fr); }
.auth-story { position: relative; min-height: 100vh; display: flex; flex-direction: column; padding: 42px clamp(32px, 7vw, 110px); overflow: hidden; color: var(--white); background: linear-gradient(130deg, rgba(14,18,14,.96), rgba(21,28,21,.84)), url("./photos/moving-day-crew.jpeg") center/cover; }
.auth-story::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 46px 46px; }
.auth-story > * { position: relative; z-index: 1; }
.auth-story-copy { max-width: 750px; margin: auto 0; padding: 80px 0; }
.auth-story .kicker { color: var(--moss); }
.auth-story h1 { max-width: 760px; margin: 12px 0 24px; font: 800 clamp(3.3rem, 6.4vw, 6.7rem)/.9 var(--display); letter-spacing: -.035em; text-transform: uppercase; }
.auth-story-copy > p:not(.kicker) { max-width: 650px; color: #d8ddd4; font-size: clamp(1rem, 1.4vw, 1.25rem); line-height: 1.75; }
.auth-story ul { display: flex; gap: 20px; margin: 38px 0 0; padding: 0; list-style: none; }
.auth-story li { display: flex; align-items: center; gap: 9px; color: #eef1ea; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.auth-story li span { color: var(--moss); }
.auth-promise { margin: 0; color: #bdc6b8; font-size: .72rem; font-weight: 800; letter-spacing: .15em; }
.auth-panel { display: grid; place-items: center; padding: 40px; background: var(--paper); }
.auth-card { width: min(100%, 470px); padding: clamp(30px, 5vw, 56px); border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); }
.auth-card h2 { margin: 6px 0 14px; font: 800 clamp(2.8rem, 5vw, 4.2rem)/.95 var(--display); text-transform: uppercase; }
.auth-card > p:not(.kicker):not(.form-message) { margin: 0 0 30px; color: var(--muted); line-height: 1.7; }
.auth-card label, .field label { display: block; margin: 0 0 8px; font-size: .76rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.auth-card input, .field input, .field textarea, .field select { width: 100%; min-height: 50px; padding: 13px 15px; border: 1px solid #c6c8be; border-radius: 2px; color: var(--ink); background: #fff; outline: none; transition: border-color .15s, box-shadow .15s; }
.auth-card input:focus, .field input:focus, .field textarea:focus, .field select:focus { border-color: var(--moss-dark); box-shadow: 0 0 0 3px rgba(76, 112, 74, .12); }
.auth-card input { margin-bottom: 14px; }
.auth-card small { display: block; margin-top: 20px; color: var(--muted); font-size: .72rem; line-height: 1.6; }
.auth-card small a { font-weight: 700; }
.form-message { min-height: 20px; margin: 12px 0 0; color: var(--red); font-size: .8rem; font-weight: 700; }
.sent-card { text-align: center; }
.sent-icon { display: grid; width: 64px; height: 64px; margin: 0 auto 22px; border-radius: 50%; place-items: center; color: var(--ink); background: var(--moss); font-size: 1.7rem; font-weight: 800; }

.btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 11px 18px; border: 1px solid transparent; border-radius: 2px; font-size: .78rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; transition: transform .15s, background .15s, border-color .15s; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { cursor: wait; opacity: .55; transform: none; }
.btn-primary { color: var(--ink); background: var(--moss); }
.btn-primary:hover { background: #b0ca78; }
.btn-secondary { border-color: #c3c7bd; color: var(--ink); background: transparent; }
.btn-secondary:hover { border-color: var(--ink); }
.btn-danger { border-color: #d9aca4; color: #7e2f26; background: #fff8f5; }
.btn-wide { width: 100%; }
.text-button { padding: 0; border: 0; color: var(--moss-dark); background: none; font-size: .74rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.icon-button { width: 42px; height: 42px; display: inline-grid; border: 0; border-radius: 50%; place-items: center; color: inherit; background: transparent; font-size: 1.5rem; }
.icon-button:hover { background: rgba(255,255,255,.08); }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 258px minmax(0, 1fr); }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 50; width: 258px; display: flex; flex-direction: column; padding: 25px 18px 20px; color: #e9ece5; background: var(--ink); }
.sidebar-head { display: flex; align-items: center; justify-content: space-between; padding: 0 7px 26px; }
.sidebar-close { display: none; }
.team-switcher { width: 100%; display: grid; grid-template-columns: 40px minmax(0,1fr) 18px; align-items: center; gap: 10px; padding: 11px; border: 1px solid #343b34; border-radius: 3px; text-align: left; color: inherit; background: var(--ink-2); }
.team-switcher:hover { border-color: #5b6958; }
.team-avatar, .avatar-button { display: grid; place-items: center; border-radius: 50%; font-weight: 800; }
.team-avatar { width: 40px; height: 40px; color: var(--ink); background: var(--moss); font: 800 1rem/1 var(--display); }
.team-switcher small { display: block; margin-bottom: 3px; color: #8f998c; font-size: .58rem; font-weight: 800; letter-spacing: .12em; }
.team-switcher strong { display: block; overflow: hidden; font-size: .76rem; text-overflow: ellipsis; white-space: nowrap; }
.team-menu { position: absolute; top: 133px; left: 18px; z-index: 5; width: calc(100% - 36px); padding: 7px; border: 1px solid #3f483f; background: #1d221d; box-shadow: 0 16px 30px rgba(0,0,0,.3); }
.team-menu button { width: 100%; padding: 11px; border: 0; text-align: left; color: #eef1ea; background: transparent; font-size: .75rem; }
.team-menu button:hover { background: #2a312a; }
.team-menu button:last-child { color: var(--moss); font-weight: 800; }
.app-nav { display: grid; gap: 4px; margin-top: 26px; }
.app-nav button, .sidebar-bottom button, .sidebar-bottom a { width: 100%; min-height: 44px; display: grid; grid-template-columns: 24px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 10px 12px; border: 0; border-radius: 2px; text-align: left; color: #aeb6aa; background: transparent; font-size: .76rem; font-weight: 700; text-decoration: none; }
.app-nav button:hover, .app-nav button.active, .sidebar-bottom button:hover, .sidebar-bottom a:hover { color: #fff; background: var(--ink-3); }
.app-nav button.active { box-shadow: inset 3px 0 var(--moss); }
.app-nav button span, .sidebar-bottom span { color: var(--moss); font-size: 1rem; text-align: center; }
.app-nav button b { min-width: 22px; padding: 3px 6px; border-radius: 10px; color: var(--ink); background: var(--moss); text-align: center; font-size: .6rem; }
.sidebar-bottom { display: grid; gap: 2px; margin-top: auto; padding-top: 20px; border-top: 1px solid #2d332d; }
.sidebar-bottom p { margin: 15px 10px 0; color: #747e72; font-size: .63rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

.app-stage { min-width: 0; grid-column: 2; }
.topbar { min-height: 104px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px clamp(24px, 4vw, 54px); border-bottom: 1px solid var(--line); background: rgba(244,241,233,.94); backdrop-filter: blur(12px); }
.topbar-kicker { margin: 0 0 4px; color: var(--moss-dark); font-size: .66rem; font-weight: 800; letter-spacing: .14em; }
.topbar h1 { margin: 0; font: 800 clamp(1.8rem, 3vw, 2.4rem)/1 var(--display); text-transform: uppercase; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.avatar-button { width: 42px; height: 42px; border: 0; color: #fff; background: var(--moss-dark); font: 800 .9rem/1 var(--display); }
.notification-button { position: relative; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid #c3c7bd; border-radius: 50%; color: var(--moss-dark); background: transparent; }
.notification-button:hover { border-color: var(--ink); }
.notification-button > span { font-size: .75rem; }
.notification-button > b { position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px; display: grid; place-items: center; padding: 0 4px; border-radius: 10px; color: var(--ink); background: var(--moss); font-size: .52rem; }
.mobile-topbar { display: none; }
.mobile-bottom-nav { display: none; }
#app-main { max-width: 1550px; min-height: calc(100vh - 104px); padding: clamp(22px, 4vw, 52px); outline: none; }
.view { animation: view-in .22s ease both; }
@keyframes view-in { from { opacity: 0; transform: translateY(5px); } }

.welcome-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .8fr); gap: 22px; }
.first-finish { min-height: 310px; position: relative; padding: clamp(28px, 5vw, 52px); overflow: hidden; color: #fff; background: var(--ink-2); }
.first-finish::after { content: ""; position: absolute; right: -90px; bottom: -150px; width: 360px; height: 360px; border: 62px solid rgba(158,186,103,.08); border-radius: 50%; }
.first-finish > * { position: relative; z-index: 1; }
.first-finish .kicker { color: var(--moss); }
.first-finish h2 { max-width: 700px; margin: 10px 0 18px; font: 800 clamp(2.7rem, 5vw, 5.2rem)/.9 var(--display); text-transform: uppercase; }
.first-finish p { max-width: 650px; color: #c9d0c5; line-height: 1.75; }
.first-finish .btn { margin-top: 18px; }
.first-finish-note { display: block; max-width: 620px; margin-top: 16px; color: #8f9a8c; font-size: .66rem; line-height: 1.6; }
.progress-card { padding: 26px; border: 1px solid var(--line); background: var(--card); }
.progress-card h3, .section-title h2 { margin: 5px 0 8px; font: 800 1.8rem/1 var(--display); text-transform: uppercase; }
.progress-list { display: grid; gap: 17px; margin: 23px 0 0; padding: 0; list-style: none; }
.progress-list li { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; color: var(--muted); font-size: .78rem; line-height: 1.45; }
.progress-list i { width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid #bfc4ba; border-radius: 50%; color: #777; font-style: normal; font-size: .67rem; font-weight: 800; }
.progress-list li.done { color: var(--ink); }
.progress-list li.done i { border-color: var(--moss-dark); color: #fff; background: var(--moss-dark); }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 22px 0; }
.stat-card { padding: 22px; border: 1px solid var(--line); background: rgba(255,253,247,.7); }
.stat-card span { display: block; margin-bottom: 10px; color: var(--muted); font-size: .62rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.stat-card strong { display: block; font: 800 2.1rem/1 var(--display); }
.stat-card small { display: block; margin-top: 6px; color: var(--muted); font-size: .65rem; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(280px,.72fr); gap: 22px; }
.home-side-stack { display: grid; gap: 22px; align-content: start; }
.activity-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.activity-list li { display: grid; grid-template-columns: 34px minmax(0,1fr); align-items: center; gap: 10px; }
.activity-list li > span { display: grid; width: 34px; height: 34px; border-radius: 50%; place-items: center; color: var(--ink); background: #e0e7cf; font: 800 .7rem/1 var(--display); }
.activity-list p, .activity-list b, .activity-list small { display: block; margin: 0; }
.activity-list b { font-size: .7rem; line-height: 1.4; }
.activity-list small { margin-top: 2px; color: var(--muted); font-size: .58rem; }
.quiet-copy { margin: 0; color: var(--muted); font-size: .7rem; line-height: 1.6; }
.card { border: 1px solid var(--line); background: var(--card); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.card-head span { color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.card-body { padding: 22px; }
.next-workday { min-height: 330px; }
.next-workday h3 { margin: 0 0 12px; font: 800 clamp(2rem, 4vw, 3.4rem)/.95 var(--display); text-transform: uppercase; }
.next-workday > .card-body > p { max-width: 700px; color: var(--muted); line-height: 1.65; }
.workday-meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0; }
.workday-meta span { padding: 8px 11px; border: 1px solid var(--line); color: #4f554f; background: #f7f4ed; font-size: .68rem; font-weight: 700; }
.action-row { display: flex; flex-wrap: wrap; gap: 9px; }
.meal-banner { margin-top: 18px; display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: center; padding: 14px; color: #eff2eb; background: var(--moss-dark); }
.meal-banner > span { font-size: 1.4rem; text-align: center; }
.meal-banner b { display: block; font-size: .77rem; }
.meal-banner small { color: #c7d1c4; font-size: .65rem; }
.crew-mini-list, .project-list, .task-list, .tool-list, .story-list { margin: 0; padding: 0; list-style: none; }
.crew-mini-list { display: grid; gap: 15px; }
.crew-mini-list li { display: grid; grid-template-columns: 38px 1fr auto; gap: 10px; align-items: center; }
.member-initials { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--moss-dark); font: 800 .83rem/1 var(--display); }
.crew-mini-list b { display: block; font-size: .76rem; }
.crew-mini-list small { color: var(--muted); font-size: .62rem; }
.fair-turn-card .card-body > .member-initials { width: 48px; height: 48px; }
.fair-turn-card h3 { margin: 15px 0 8px; font: 800 1.65rem/1 var(--display); text-transform: uppercase; }
.fair-turn-card p { margin: 0 0 16px; color: var(--muted); font-size: .7rem; line-height: 1.65; }
.fair-turn-card small { display: block; margin-top: 14px; color: var(--muted); font-size: .62rem; line-height: 1.5; }
.role-chip, .status-chip { display: inline-flex; align-items: center; min-height: 24px; padding: 4px 8px; border: 1px solid #cad0c4; border-radius: 20px; color: #546052; font-size: .57rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.role-chip.owner, .status-chip.completed { border-color: #a9c47b; color: #2c4a31; background: #eaf2db; }
.status-chip.scheduled { border-color: #dfbb7e; color: #6b4a18; background: #fff4df; }
.status-chip.in_progress { border-color: #96b4ca; color: #24485e; background: #e8f3fa; }

.section-title { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.section-title p { max-width: 680px; margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.6; }
.filter-row { display: flex; gap: 6px; margin-bottom: 18px; overflow-x: auto; }
.filter-row button { min-height: 38px; padding: 8px 13px; border: 1px solid var(--line); color: var(--muted); background: transparent; font-size: .66rem; font-weight: 800; text-transform: uppercase; white-space: nowrap; }
.filter-row button.active { border-color: var(--ink); color: #fff; background: var(--ink); }
.project-list { display: grid; gap: 12px; }
.project-item { display: grid; grid-template-columns: 70px minmax(0,1fr) auto; gap: 18px; align-items: center; padding: 18px; border: 1px solid var(--line); background: var(--card); transition: transform .15s, border-color .15s; }
.project-item:hover { transform: translateY(-1px); border-color: #aab1a4; }
.project-priority { height: 64px; display: grid; place-items: center; color: #4a5748; background: #edf1e6; font: 800 1.7rem/1 var(--display); }
.project-item h3 { margin: 0 0 6px; font: 800 1.45rem/1 var(--display); text-transform: uppercase; }
.project-item p { margin: 0; overflow: hidden; color: var(--muted); font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }
.project-item-meta { display: flex; align-items: center; gap: 12px; margin-top: 10px; color: #666d64; font-size: .62rem; font-weight: 700; }
.project-item > button { align-self: stretch; min-width: 42px; border: 0; color: var(--moss-dark); background: transparent; font-size: 1.5rem; }
.empty-state { padding: clamp(32px, 7vw, 82px); border: 1px dashed #b9beb4; text-align: center; background: rgba(255,253,247,.5); }
.empty-state span { display: block; margin-bottom: 12px; color: var(--moss-dark); font: 800 3rem/1 var(--display); }
.empty-state h3 { margin: 0 0 9px; font: 800 2rem/1 var(--display); text-transform: uppercase; }
.empty-state p { max-width: 520px; margin: 0 auto 22px; color: var(--muted); line-height: 1.7; }

.project-detail { display: grid; gap: 20px; }
.detail-hero { padding: clamp(25px, 5vw, 46px); color: #fff; background: var(--ink-2); }
.detail-hero .back-button { margin-bottom: 26px; color: var(--moss); }
.detail-hero h2 { max-width: 900px; margin: 8px 0 14px; font: 800 clamp(2.8rem, 6vw, 5.8rem)/.9 var(--display); text-transform: uppercase; }
.detail-hero p { max-width: 800px; color: #c6cdc1; line-height: 1.7; }
.detail-columns { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(290px,.7fr); gap: 20px; }
.task-list, .tool-list { display: grid; gap: 8px; }
.task-list li, .tool-list li { min-height: 54px; display: grid; grid-template-columns: 34px 1fr auto; gap: 11px; align-items: center; padding: 10px 12px; border: 1px solid #e1e0d8; background: #faf8f2; }
.task-check { width: 24px; height: 24px; border: 1px solid #b8bdb3; border-radius: 50%; background: #fff; }
.task-check.done { border-color: var(--moss-dark); color: #fff; background: var(--moss-dark); }
.task-list b, .tool-list b { display: block; font-size: .75rem; }
.task-list small, .tool-list small { color: var(--muted); font-size: .62rem; }
.panel-stack { display: grid; gap: 20px; align-content: start; }
.ai-card { border-color: #8ca56b; background: #f2f7e9; }
.ai-card .card-body > span { color: var(--moss-dark); font-size: 1.4rem; }
.ai-card h3 { margin: 8px 0; font: 800 1.5rem/1 var(--display); text-transform: uppercase; }
.ai-card p { color: #657061; font-size: .73rem; line-height: 1.6; }
.ai-plan-output { margin-top: 16px; padding-top: 16px; border-top: 1px solid #cdd9bd; }
.ai-plan-output h4 { margin: 16px 0 6px; font-size: .72rem; text-transform: uppercase; }
.ai-plan-output ul, .ai-plan-output ol { padding-left: 18px; color: #4f5d4c; font-size: .7rem; line-height: 1.65; }

.workday-board { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(300px,.65fr); gap: 20px; }
.workday-phase-rail { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0 0 18px; padding: 0; list-style: none; border: 1px solid var(--line); background: var(--card); }
.workday-phase-rail li { position: relative; min-height: 58px; display: flex; align-items: center; gap: 9px; padding: 12px 16px; color: var(--muted); border-right: 1px solid var(--line); font-size: .68rem; text-transform: uppercase; }
.workday-phase-rail li:last-child { border-right: 0; }
.workday-phase-rail span { width: 25px; height: 25px; display: grid; place-items: center; border: 1px solid #c3c8bf; border-radius: 50%; font-size: .61rem; }
.workday-phase-rail li.current { color: #fff; background: var(--ink-2); }
.workday-phase-rail li.current span { border-color: var(--moss); color: var(--ink); background: var(--moss); }
.workday-phase-rail li.complete { color: var(--moss-dark); background: #eef4e7; }
.workday-phase-rail li.complete span { border-color: var(--moss-dark); color: #fff; background: var(--moss-dark); }
.workday-date { display: grid; grid-template-columns: 90px 1fr; gap: 20px; align-items: center; }
.calendar-block { padding: 14px; color: #fff; background: var(--moss-dark); text-align: center; }
.calendar-block span { display: block; font-size: .63rem; font-weight: 800; letter-spacing: .12em; }
.calendar-block strong { display: block; font: 800 3rem/1 var(--display); }
.calendar-block small { font-size: .64rem; }
.readiness-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.readiness-list li { display: grid; grid-template-columns: 25px 1fr auto; gap: 9px; align-items: center; padding: 10px 0; border-bottom: 1px solid #e2e1d9; font-size: .72rem; }
.readiness-list i { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--moss-dark); font-style: normal; font-size: .65rem; }
.readiness-list li.pending i { color: #70511e; background: #f0cc8d; }
.readiness-list small { color: var(--muted); }
.workday-location-card { margin-top: 20px; }
.workday-location-card .card-body > h3 { margin: 0 0 8px; font: 800 1.55rem/1 var(--display); text-transform: uppercase; }
.workday-location-card .card-body > p { max-width: 760px; color: var(--muted); font-size: .72rem; line-height: 1.65; }
.workday-location-card .card-body > small { display: block; margin-top: 14px; color: var(--muted); font-size: .6rem; line-height: 1.5; }
.location-grid { display: grid; grid-template-columns: minmax(220px,.7fr) minmax(0,1.3fr); gap: 28px; }
.location-grid h3 { margin: 5px 0 7px; font: 800 1.7rem/1 var(--display); text-transform: uppercase; }
.location-grid p { margin: 5px 0; color: var(--muted); font-size: .7rem; line-height: 1.6; }
.location-grid p b { color: var(--ink); }
.location-emergency { padding: 11px 13px; border-left: 3px solid var(--amber); color: var(--muted); background: #fff8e9; font-size: .68rem; }
.workday-play-card { margin-top: 20px; padding: clamp(22px, 4vw, 38px); color: #fff; background: var(--ink-2); }
.date-poll-card { margin-top: 20px; padding: clamp(22px,4vw,34px); border: 1px solid var(--line); background: #f7f5ee; }
.date-poll-card > header { display: flex; justify-content: space-between; gap: 24px; align-items: start; }
.date-poll-card > header h3 { margin: 5px 0 8px; font: 800 clamp(1.8rem,4vw,3rem)/.95 var(--display); text-transform: uppercase; }
.date-poll-card > header p:not(.kicker) { max-width: 720px; margin: 0; color: var(--muted); font-size: .72rem; line-height: 1.65; }
.date-poll-card > header > span { flex: 0 0 auto; padding: 8px 10px; color: var(--moss-dark); border: 1px solid #cbd6c3; background: #eef4e9; font-size: .6rem; font-weight: 800; text-transform: uppercase; }
.date-option-list { display: grid; gap: 10px; margin-top: 22px; }
.date-option { display: grid; grid-template-columns: minmax(220px,1fr) auto auto auto; gap: 18px; align-items: center; padding: 17px; border: 1px solid var(--line); background: #fff; }
.date-option.best { border-left: 4px solid var(--moss-dark); }
.date-option > div:first-child > span { color: var(--moss-dark); font-size: .53rem; font-weight: 800; letter-spacing: .08em; }
.date-option h4 { margin: 4px 0 2px; font: 800 1.2rem/1.05 var(--display); text-transform: uppercase; }
.date-option small { color: var(--muted); font-size: .6rem; }
.date-votes { display: flex; gap: 10px; color: var(--muted); font-size: .58rem; text-transform: uppercase; }
.date-votes b { display: block; color: var(--ink); font-size: .9rem; text-align: center; }
.date-answer { display: flex; padding: 3px; border: 1px solid var(--line); background: #f1efe9; }
.date-answer button { min-height: 32px; padding: 6px 9px; border: 0; color: var(--muted); background: transparent; font-size: .56rem; font-weight: 800; text-transform: uppercase; }
.date-answer button.selected { color: #fff; background: var(--moss-dark); }
.modal-lede { margin: 0 0 18px; color: var(--muted); font-size: .74rem; line-height: 1.7; }
.privacy-note { padding: 11px 13px; border-left: 3px solid var(--moss); color: var(--muted); background: #f1f6ec; font-size: .64rem; line-height: 1.55; }
.workday-play-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding-bottom: 22px; border-bottom: 1px solid #343b34; }
.workday-play-head .kicker { color: var(--moss); }
.workday-play-head h3 { max-width: 780px; margin: 6px 0 0; font: 800 clamp(2rem, 4vw, 3.5rem)/.95 var(--display); text-transform: uppercase; }
.workday-play-head > span { flex: 0 0 auto; color: #b6bfb3; font-size: .68rem; font-weight: 800; text-transform: uppercase; }
.workday-play-grid { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(280px,.75fr); gap: 26px; padding-top: 24px; }
.workday-play-grid h4 { margin: 0 0 12px; color: #9da79a; font-size: .65rem; letter-spacing: .12em; }
.workday-task-list, .workday-tool-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.workday-task-list li, .workday-tool-list li { min-height: 62px; display: grid; grid-template-columns: 34px minmax(0,1fr) auto; gap: 11px; align-items: center; padding: 11px 13px; border: 1px solid #363d36; background: #1c211c; }
.workday-task-list li.done { opacity: .72; }
.workday-task-list b, .workday-tool-list b { display: block; color: #f4f6f1; font-size: .74rem; }
.workday-task-list small, .workday-tool-list small { color: #99a296; font-size: .61rem; }
.workday-task-list button:not(.task-check), .workday-tool-list button, .claim-actions button { min-height: 34px; padding: 7px 9px; border: 1px solid #63705f; color: #e8ede4; background: transparent; font-size: .59rem; font-weight: 800; }
.claim-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.workday-empty { padding: 18px !important; color: #aeb6aa; font-size: .7rem; line-height: 1.5; }
.crew-ritual { margin-top: 14px; padding: 17px; border: 1px solid #445043; background: #242a24; }
.crew-ritual > p { margin: 0 0 6px; color: var(--moss); font-size: .55rem; font-weight: 800; letter-spacing: .12em; }
.crew-ritual h4 { margin: 0 0 12px; color: #f4f6f1; font: 800 1.35rem/1 var(--display); text-transform: uppercase; }
.crew-ritual ul { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; counter-reset: ritual; }
.crew-ritual li { position: relative; padding-left: 27px; color: #c3cbc0; font-size: .65rem; line-height: 1.5; counter-increment: ritual; }
.crew-ritual li::before { content: counter(ritual); position: absolute; top: 1px; left: 0; width: 18px; height: 18px; display: grid; place-items: center; border: 1px solid #60705e; border-radius: 50%; color: var(--moss); font-size: .5rem; font-weight: 800; }
.meal-reveal { margin-top: 18px; }
.story-narrative { white-space: pre-line; color: var(--ink); font: 700 1.15rem/1.5 var(--display); }
.charter-promise { grid-column: 1 / -1; margin: 16px 0 4px; padding: 18px; color: #dce3d7; background: var(--ink-2); }
.charter-promise p { margin: 0 0 10px; color: var(--moss); font-size: .7rem; font-weight: 800; text-transform: uppercase; }
.charter-promise ul { display: grid; gap: 8px; margin: 0; padding-left: 18px; font-size: .69rem; line-height: 1.5; }
.check-field.disabled { opacity: .6; }
.check-field a { color: var(--moss-dark); }

.crew-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.member-card { padding: 22px; border: 1px solid var(--line); background: var(--card); }
.member-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.member-card .member-initials { width: 52px; height: 52px; font-size: 1rem; }
.member-card h3 { margin: 17px 0 3px; font: 800 1.35rem/1 var(--display); text-transform: uppercase; }
.member-card p { min-height: 20px; margin: 0; color: var(--muted); font-size: .68rem; }
.member-help-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; padding: 0; list-style: none; }
.member-help-tags li { padding: 5px 8px; border: 1px solid #ced7c5; color: var(--moss-dark); background: #f1f6ec; font-size: .55rem; font-weight: 800; text-transform: uppercase; }
.member-card .member-help-note { min-height: 0; margin-top: 12px; padding-top: 10px; border-top: 1px solid #e1e1da; color: var(--ink); line-height: 1.55; }
.member-card .member-help-empty { min-height: 0; margin-top: 14px; font-style: italic; }
.member-card footer { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; padding-top: 13px; border-top: 1px solid #e1e1da; color: var(--muted); font-size: .59rem; }
.member-card-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; flex-wrap: wrap; }
.invite-card { display: grid; place-content: center; min-height: 215px; border-style: dashed; text-align: center; }
.invite-card button { margin-top: 10px; }
.active-invites { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr); gap: 28px; margin-top: 24px; padding: 24px; border: 1px solid var(--line); background: var(--card); }
.active-invites h3 { margin: 4px 0 8px; font: 800 1.7rem/1 var(--display); text-transform: uppercase; }
.active-invites p { margin: 0; color: var(--muted); font-size: .7rem; line-height: 1.6; }
.active-invites ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.active-invites li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.active-invites li:last-child { border-bottom: 0; }
.active-invites b, .active-invites small { display: block; }
.active-invites b { font-size: .76rem; }
.active-invites small { margin-top: 3px; color: var(--muted); font-size: .62rem; }

.story-intro { position: relative; min-height: 270px; display: grid; align-items: end; padding: clamp(28px, 5vw, 52px); overflow: hidden; color: #fff; background: linear-gradient(90deg, rgba(11,15,11,.9), rgba(11,15,11,.3)), url("./photos/sunset-crew.jpeg") center/cover; }
.story-intro h2 { max-width: 660px; margin: 8px 0 12px; font: 800 clamp(2.8rem, 5vw, 5rem)/.9 var(--display); text-transform: uppercase; }
.story-intro p { max-width: 620px; color: #d8ddd4; line-height: 1.7; }
.story-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; margin-top: 20px; }
.story-card { padding: 24px; border: 1px solid var(--line); background: var(--card); }
.story-card blockquote { margin: 12px 0 18px; font: 700 1.4rem/1.35 var(--display); }
.story-narrative { white-space: pre-line; }
.story-people { color: var(--muted); font-size: .68rem; line-height: 1.5; }
.story-people-picker { margin: 0; padding: 16px; border: 1px solid var(--line); }
.story-people-picker legend { padding: 0 6px; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.story-people-picker > p { margin: 0 0 12px; color: var(--muted); font-size: .7rem; line-height: 1.5; }
.story-people-picker .check-field { margin-top: 8px; }
.story-editorial-choice { margin: 20px 0; padding: 16px; border-left: 3px solid var(--moss); background: var(--paper); }
.story-editorial-choice p { margin: 0 0 12px; color: var(--muted); font-size: .72rem; line-height: 1.6; }
.story-editorial-choice b, .story-editorial-choice span { display: block; }
.story-editorial-choice b { margin-bottom: 4px; color: var(--ink); }
.story-card footer { display: flex; justify-content: space-between; color: var(--muted); font-size: .62rem; }

.ai-plan-status { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; color: var(--muted); font-size: .6rem; }
.ai-draft-note { padding: 10px; border-left: 3px solid var(--amber); color: var(--muted); background: #fff8e9; font-size: .66rem; line-height: 1.55; }
.ai-plan-section { margin: 10px 0; border: 1px solid var(--line); background: #fff; }
.ai-plan-section summary { padding: 11px 12px; cursor: pointer; font-size: .68rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.ai-plan-section > ul, .ai-plan-section > ol, .ai-plan-section > p { margin: 0; padding: 4px 28px 14px; }
.ai-plan-section ul { font-size: .68rem; line-height: 1.55; }
.ai-step-list { list-style: none; counter-reset: ai-steps; }
.ai-step-list > li { counter-increment: ai-steps; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ai-step-list > li:last-child { border-bottom: 0; }
.ai-step-head b::before { content: counter(ai-steps) ". "; color: var(--moss-dark); }
.ai-step-head b, .ai-step-head span { display: block; }
.ai-step-head b { font-size: .76rem; }
.ai-step-head span { margin: 3px 0 7px; color: var(--muted); font-size: .58rem; line-height: 1.4; }
.ai-step-list ul { margin: 0 0 8px; padding-left: 18px; font-size: .66rem; line-height: 1.5; }
.ai-safety-note { margin: 8px 0 0; padding: 8px; color: #684529; background: #fff6e5; font-size: .62rem; line-height: 1.45; }
.ai-tool-list { display: grid; gap: 9px; list-style: none; }
.ai-tool-list li { position: relative; padding-right: 62px; }
.ai-tool-list b, .ai-tool-list span, .ai-tool-list small { display: block; }
.ai-tool-list b { font-size: .7rem; }
.ai-tool-list span { color: var(--muted); font-size: .62rem; line-height: 1.4; }
.ai-tool-list small { position: absolute; top: 0; right: 0; color: var(--moss-dark); font-size: .52rem; font-weight: 800; text-transform: uppercase; }
.ai-plan-empty { color: var(--muted); font-size: .64rem; }

.settings-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.crewboard-card { margin: 20px 0; padding: clamp(22px,4vw,36px); color: #fff; background: var(--ink-2); }
.crewboard-intro { display: grid; grid-template-columns: minmax(0,1fr) 170px; gap: 28px; align-items: center; }
.crewboard-intro .kicker { color: var(--moss); }
.crewboard-intro h3 { margin: 5px 0 8px; font: 800 clamp(2rem,4vw,3.3rem)/.9 var(--display); text-transform: uppercase; }
.crewboard-intro p:not(.kicker) { max-width: 760px; margin: 0; color: #b9c1b6; font-size: .7rem; line-height: 1.65; }
.crewboard-current { padding: 18px; border: 1px solid #414941; text-align: center; background: #1c211c; }
.crewboard-current span, .crewboard-current small { display: block; color: var(--moss); font-size: .56rem; font-weight: 800; text-transform: uppercase; }
.crewboard-current strong { display: block; margin: 5px 0; font: 800 3.3rem/1 var(--display); }
.crewboard-list { display: grid; gap: 5px; margin: 24px 0 0; padding: 0; list-style: none; }
.crewboard-list li { display: grid; grid-template-columns: 34px minmax(0,1fr) 50px; gap: 12px; align-items: center; padding: 11px 13px; border: 1px solid #353c35; background: #1c211c; }
.crewboard-list li.current { border-color: var(--moss); background: #242d22; }
.crewboard-list li > span { color: var(--moss); font: 800 1rem/1 var(--display); text-align: center; }
.crewboard-list b, .crewboard-list small { display: block; }
.crewboard-list b { font-size: .7rem; }
.crewboard-list small { margin-top: 2px; color: #929c90; font-size: .55rem; }
.crewboard-list li > strong { font: 800 1.6rem/1 var(--display); text-align: right; }
.crewboard-card footer { display: flex; justify-content: space-between; gap: 18px; align-items: center; margin-top: 18px; color: #9da69b; font-size: .62rem; }
.crewboard-card footer p { margin: 0; }
.crewboard-card footer .text-button { color: var(--moss); }
.settings-card { padding: 24px; border: 1px solid var(--line); background: var(--card); }
.settings-card h3 { margin: 5px 0 9px; font: 800 1.45rem/1 var(--display); text-transform: uppercase; }
.settings-card > p { color: var(--muted); font-size: .72rem; line-height: 1.65; }
.settings-card .btn { margin-top: 12px; }
.notification-intro { display: flex; align-items: start; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.notification-intro p { max-width: 470px; margin: 0; color: var(--muted); font-size: .68rem; line-height: 1.6; }
.notification-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.notification-list li { display: grid; grid-template-columns: 20px minmax(0,1fr) auto; gap: 10px; align-items: start; padding: 14px; border: 1px solid var(--line); background: #faf8f2; }
.notification-list li.unread { border-left: 3px solid var(--moss-dark); background: #fff; }
.notification-list li > span { padding-top: 2px; color: var(--moss-dark); font-size: .6rem; }
.notification-list b, .notification-list p, .notification-list small { display: block; margin: 0; }
.notification-list b { font-size: .72rem; }
.notification-list p { margin-top: 4px; color: var(--muted); font-size: .65rem; line-height: 1.5; }
.notification-list small { margin-top: 5px; color: #8a9087; font-size: .56rem; }
.notification-list .text-button { align-self: center; white-space: nowrap; }
.notification-empty { padding: 24px; text-align: center; border: 1px solid var(--line); background: #faf8f2; }
.notification-empty b { font: 800 1.25rem/1 var(--display); text-transform: uppercase; }
.notification-empty p { margin: 8px 0 0; color: var(--muted); font-size: .68rem; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 14px 0; border-top: 1px solid #e2e1da; }
.switch-row b { display: block; font-size: .72rem; }
.switch-row small { color: var(--muted); font-size: .62rem; }
.switch { width: 45px; height: 25px; position: relative; flex: 0 0 auto; }
.switch input { position: absolute; opacity: 0; }
.switch span { position: absolute; inset: 0; border-radius: 30px; background: #c8cbc4; transition: background .15s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 19px; height: 19px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch input:checked + span { background: var(--moss-dark); }
.switch input:checked + span::after { transform: translateX(20px); }

.modal { width: min(650px, calc(100% - 24px)); max-height: calc(100vh - 24px); padding: 0; border: 0; color: var(--ink); background: var(--card); box-shadow: 0 30px 90px rgba(0,0,0,.3); }
.modal::backdrop { background: rgba(9,12,9,.72); backdrop-filter: blur(4px); }
.modal-head { display: flex; align-items: start; justify-content: space-between; gap: 20px; padding: 24px 26px 20px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 4px 0 0; font: 800 2.2rem/1 var(--display); text-transform: uppercase; }
.modal-head .icon-button:hover { background: #ece9e0; }
#modal-body { padding: 26px; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px; }
.field { min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field textarea { min-height: 110px; resize: vertical; }
.field small { display: block; margin-top: 5px; color: var(--muted); font-size: .62rem; line-height: 1.5; }
.check-field { display: flex; align-items: start; gap: 10px; grid-column: 1/-1; padding: 12px; border: 1px solid var(--line); background: #faf8f2; }
.check-field input[type="checkbox"] { flex: 0 0 auto; width: 17px; height: 17px; min-height: 0; margin-top: 2px; padding: 0; accent-color: var(--moss-dark); }
.check-field b { display: block; font-size: .72rem; }
.check-field small { color: var(--muted); font-size: .62rem; }
.help-style-picker { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin: 18px 0; padding: 16px; border: 1px solid var(--line); }
.help-style-picker legend { padding: 0 6px; font-size: .68rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.help-style-choice { position: relative; }
.help-style-choice input { position: absolute; opacity: 0; pointer-events: none; }
.help-style-choice span { min-height: 38px; display: grid; place-items: center; padding: 8px 9px; border: 1px solid #d7d8d1; color: var(--muted); background: #faf8f2; font-size: .59rem; font-weight: 800; text-align: center; text-transform: uppercase; cursor: pointer; }
.help-style-choice input:focus-visible + span { outline: 2px solid var(--moss-dark); outline-offset: 2px; }
.help-style-choice input:checked + span { border-color: var(--moss-dark); color: #fff; background: var(--moss-dark); }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.invite-link { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin: 15px 0; }
.invite-link input { min-width: 0; padding: 12px; border: 1px solid var(--line); background: #f8f6f0; font-size: .72rem; }
.legal-box { max-height: 180px; overflow: auto; padding: 14px; border: 1px solid var(--line); color: var(--muted); background: #faf8f3; font-size: .67rem; line-height: 1.6; }

.toast-region { position: fixed; right: 18px; bottom: 18px; z-index: 200; display: grid; gap: 8px; }
.toast { max-width: 390px; padding: 14px 17px; border-left: 4px solid var(--moss); color: #fff; background: var(--ink); box-shadow: var(--shadow); font-size: .74rem; animation: toast-in .2s ease both; }
.toast.error { border-color: #df806f; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }
.menu-scrim { position: fixed; inset: 0; z-index: 40; background: rgba(5,8,5,.6); }
.loading-line { height: 3px; overflow: hidden; background: #d8ddd3; }
.loading-line::after { content: ""; display: block; width: 40%; height: 100%; background: var(--moss-dark); animation: loading 1s ease-in-out infinite alternate; }
@keyframes loading { to { transform: translateX(150%); } }

@media (max-width: 1050px) {
  .stats-row { grid-template-columns: repeat(2,1fr); }
  .crew-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .detail-columns, .workday-board { grid-template-columns: 1fr; }
  .workday-play-grid { grid-template-columns: 1fr; }
  .date-option { grid-template-columns: 1fr; }
  .date-votes { justify-content: flex-start; }
  .date-answer { width: max-content; }
}

@media (max-width: 820px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-story { min-height: 44vh; padding: 28px 24px; }
  .auth-story-copy { padding: 60px 0 35px; }
  .auth-story h1 { font-size: clamp(3rem, 12vw, 5rem); }
  .auth-story ul { display: none; }
  .auth-panel { padding: 22px 16px 40px; }
  .auth-card { margin-top: -28px; }
  .app-shell { display: block; }
  .sidebar { width: min(300px, 88vw); transform: translateX(-105%); transition: transform .2s ease; }
  .sidebar.open { transform: none; }
  .sidebar-close { display: inline-grid; }
  .app-stage { min-height: 100vh; }
  .topbar { min-height: auto; padding: 24px 20px 15px; border: 0; }
  .topbar-actions .btn-secondary, .topbar-actions .avatar-button { display: none; }
  .mobile-topbar { min-height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; color: #fff; background: var(--ink); }
  .mobile-topbar .app-wordmark { font-size: 1.05rem; }
  .mobile-topbar .app-wordmark img { width: 30px; height: 30px; }
  #app-main { min-height: calc(100vh - 132px); padding: 18px 20px 40px; }
  #app-main { padding-bottom: 105px; }
  .mobile-bottom-nav { position: fixed; right: 0; bottom: 0; left: 0; z-index: 35; display: grid; grid-template-columns: repeat(4,1fr); padding: 7px 8px max(7px, env(safe-area-inset-bottom)); border-top: 1px solid #343b34; background: rgba(17,20,17,.97); backdrop-filter: blur(12px); }
  .mobile-bottom-nav button { min-height: 52px; display: grid; place-items: center; gap: 2px; padding: 5px; border: 0; color: #98a095; background: transparent; font-size: .57rem; font-weight: 800; text-transform: uppercase; }
  .mobile-bottom-nav button span { display: block; color: #a9b2a5; font-size: 1rem; }
  .mobile-bottom-nav button.active { color: #fff; background: var(--ink-3); }
  .mobile-bottom-nav button.active span { color: var(--moss); }
  .welcome-grid, .dashboard-grid { grid-template-columns: 1fr; }
  .location-grid { grid-template-columns: 1fr; gap: 12px; }
  .first-finish { min-height: 280px; }
  .story-list, .settings-grid { grid-template-columns: 1fr; }
  .crewboard-intro { grid-template-columns: 1fr; }
  .workday-phase-rail li { min-height: 52px; justify-content: center; padding: 9px 5px; }
  .workday-phase-rail li b { display: none; }
}

@media (max-width: 590px) {
  .topbar { align-items: end; }
  .topbar-actions .btn-primary { min-height: 40px; padding: 9px 12px; font-size: .65rem; }
  .stats-row { grid-template-columns: repeat(2,1fr); }
  .stat-card { padding: 17px; }
  .section-title { align-items: start; flex-direction: column; }
  .project-item { grid-template-columns: 50px minmax(0,1fr) 30px; gap: 11px; padding: 12px; }
  .project-priority { height: 50px; }
  .project-item p { max-width: 55vw; }
  .project-item-meta { gap: 7px; }
  .crew-grid { grid-template-columns: 1fr; }
  .active-invites { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .help-style-picker { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .field.full, .check-field { grid-column: auto; }
  .modal { width: calc(100% - 12px); max-height: calc(100vh - 12px); }
  .modal-head, #modal-body { padding: 20px; }
  .modal-actions { flex-direction: column-reverse; }
  .modal-actions .btn { width: 100%; }
  .notification-intro { display: block; }
  .notification-intro .text-button { margin-top: 10px; }
  .notification-list li { grid-template-columns: 18px minmax(0,1fr); }
  .notification-list .text-button { grid-column: 2; justify-self: start; }
  .workday-date { grid-template-columns: 70px 1fr; }
  .calendar-block strong { font-size: 2.35rem; }
  .date-poll-card > header, .crewboard-card footer { display: block; }
  .date-poll-card > header > span { display: inline-block; margin-top: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
