:root {
  color-scheme: light;
  --ink: #182033;
  --muted: #7f889b;
  --purple: #6c4cff;
  --purple-soft: #f0edff;
  --navy: #11182a;
  --line: #e7e9f1;
  --canvas: #f6f7fb;
  --green: #16855a;
  --red: #d94750;
  --orange: #d7782e;
  --shadow: 0 12px 32px rgba(17, 24, 42, 0.08);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--canvas); }
body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
}
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.hidden { display: none !important; }

.boot-screen, .login-screen, .pending-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  padding: 28px;
  text-align: center;
  background:
    radial-gradient(circle at 20% 10%, rgba(108,76,255,.16), transparent 30%),
    linear-gradient(150deg, #11182a, #1b2540 70%, #2d3560);
  color: white;
}
.boot-screen p { color: #c9d0de; }
.login-card, .pending-card {
  width: min(460px, 100%);
  padding: 38px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 22px;
  background: rgba(255,255,255,.07);
  box-shadow: 0 28px 80px rgba(0,0,0,.25);
  backdrop-filter: blur(12px);
}
.login-card .brand-logo, .pending-card .brand-logo { margin-bottom: 24px; }
.login-card h1, .pending-card h1 { margin: 0; font-size: 1.7rem; }
.login-card p, .pending-card p { color: #b9c1d2; line-height: 1.6; margin: 10px 0 26px; }
.google-button {
  width: 100%; border: 0; border-radius: 10px; padding: 13px 16px;
  background: white; color: #293146; font-weight: 750;
  display: flex; gap: 11px; align-items: center; justify-content: center;
}
.google-g { font: 800 1.15rem Arial; color: #4285f4; }

.login-screen.motion-home {
  position: relative;
  display: block;
  min-height: 100vh;
  overflow: hidden;
  isolation: isolate;
  padding: 0;
  text-align: left;
  background: #000;
  color: #fff;
  font-family: "Mazzard H", "Helvetica Neue", Arial, sans-serif;
}
.motion-canvas,
.motion-grid,
.motion-spotlight,
.motion-beam,
.motion-ring,
.motion-rule {
  position: absolute;
  pointer-events: none;
}
.motion-canvas {
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 16%, rgba(204,204,204,.18), transparent 28%),
    linear-gradient(132deg, #000 0%, #171717 46%, #3c3c3b 100%);
}
.motion-grid {
  inset: -80px;
  opacity: .24;
  background-image:
    linear-gradient(rgba(255,255,255,.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.09) 1px, transparent 1px);
  background-size: 74px 74px;
  animation: cowshed-grid-shift 22s linear infinite;
}
.motion-spotlight {
  width: 620px;
  height: 620px;
  border-radius: 50%;
  filter: blur(2px);
}
.motion-spotlight-a {
  top: -360px;
  left: 38%;
  background: radial-gradient(circle, rgba(255,255,255,.2), rgba(204,204,204,.04) 42%, transparent 68%);
  animation: cowshed-spot-a 13s ease-in-out infinite alternate;
}
.motion-spotlight-b {
  right: -360px;
  bottom: -420px;
  background: radial-gradient(circle, rgba(255,255,255,.15), transparent 68%);
  animation: cowshed-spot-b 17s ease-in-out infinite alternate;
}
.motion-beam {
  top: -38%;
  width: 30%;
  height: 175%;
  transform: rotate(17deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent);
}
.motion-beam-a {
  left: -34%;
  animation: cowshed-beam-a 12s cubic-bezier(.45, 0, .55, 1) infinite;
}
.motion-beam-b {
  right: -46%;
  opacity: .6;
  animation: cowshed-beam-b 19s cubic-bezier(.45, 0, .55, 1) infinite;
}
.motion-ring {
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
}
.motion-ring-a {
  width: 420px;
  height: 420px;
  right: 4%;
  top: 15%;
  box-shadow: 0 0 0 52px rgba(255,255,255,.025), 0 0 0 104px rgba(255,255,255,.018);
  animation: cowshed-ring-a 16s ease-in-out infinite alternate;
}
.motion-ring-b {
  width: 220px;
  height: 220px;
  right: 19%;
  top: 31%;
  border-color: rgba(255,255,255,.26);
  animation: cowshed-ring-b 11s ease-in-out infinite alternate;
}
.motion-rule {
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent);
}
.motion-rule-a {
  top: 28%;
  animation: cowshed-rule-a 14s ease-in-out infinite alternate;
}
.motion-rule-b {
  bottom: 22%;
  opacity: .55;
  animation: cowshed-rule-b 18s ease-in-out infinite alternate;
}
.motion-home-copy {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 100vh;
  width: min(520px, calc(100% - 96px));
  margin-left: clamp(34px, 8vw, 92px);
  padding: 90px 0;
  flex-direction: column;
  justify-content: center;
}
.motion-logo-plate {
  width: min(280px, 76vw);
  padding: 16px 18px;
  background: #fff;
}
.motion-logo-plate img {
  display: block;
  width: 100%;
  height: auto;
  filter: none;
}
.motion-kicker {
  margin: 34px 0 12px;
  color: #ccc;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.motion-home h1 {
  max-width: 480px;
  margin: 0;
  color: #fff;
  font-size: clamp(42px, 7vw, 72px);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.045em;
}
.motion-intro {
  max-width: 455px;
  margin: 24px 0 28px;
  color: #ccc;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.45;
}
.motion-google-button {
  width: fit-content;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 0;
  color: #000;
  font-size: 15px;
  font-weight: 500;
}
.motion-google-button .google-g { color: #3c3c3b; }
.motion-toggle {
  position: absolute;
  z-index: 5;
  top: 24px;
  right: 24px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(255,255,255,.35);
  background: rgba(0,0,0,.32);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  backdrop-filter: blur(8px);
}
.motion-corner-note {
  position: absolute;
  z-index: 2;
  right: 24px;
  bottom: 22px;
  color: rgba(255,255,255,.62);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.motion-home button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}
.motion-home.is-paused .motion-canvas *,
.motion-home.is-paused .motion-canvas {
  animation-play-state: paused !important;
}

@keyframes cowshed-grid-shift {
  to { transform: translate3d(74px, 74px, 0); }
}
@keyframes cowshed-spot-a {
  from { transform: translate3d(-80px, -28px, 0) scale(.9); }
  to { transform: translate3d(165px, 110px, 0) scale(1.15); }
}
@keyframes cowshed-spot-b {
  from { transform: translate3d(0, 0, 0) scale(.82); }
  to { transform: translate3d(-210px, -90px, 0) scale(1.2); }
}
@keyframes cowshed-beam-a {
  0%, 8% { transform: translateX(0) rotate(17deg); }
  58%, 100% { transform: translateX(510%) rotate(17deg); }
}
@keyframes cowshed-beam-b {
  0%, 22% { transform: translateX(0) rotate(17deg); }
  78%, 100% { transform: translateX(-500%) rotate(17deg); }
}
@keyframes cowshed-ring-a {
  from { transform: translate3d(60px, -26px, 0) scale(.92); }
  to { transform: translate3d(-38px, 36px, 0) scale(1.08); }
}
@keyframes cowshed-ring-b {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-88px, 46px, 0); }
}
@keyframes cowshed-rule-a {
  from { transform: translateY(-52px); opacity: .25; }
  to { transform: translateY(76px); opacity: .8; }
}
@keyframes cowshed-rule-b {
  from { transform: translateY(40px); }
  to { transform: translateY(-66px); }
}

.brandmark {
  width: 38px; height: 38px; border-radius: 11px; background: #7054ff;
  color: white; display: grid; place-items: center; font-weight: 850; font-size: 1.15rem;
}
.brandmark.large { width: 54px; height: 54px; border-radius: 16px; font-size: 1.5rem; }
.brand-logo {
  display: block;
  width: min(168px, 100%);
  height: auto;
  filter: invert(1);
}
.brand-logo-centred {
  width: min(240px, 72vw);
  margin-inline: auto;
}
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 232px minmax(0, 1fr); }
.sidebar {
  background: var(--navy); color: #aeb6c8; padding: 26px 16px 18px;
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.brand { display: flex; align-items: center; min-height: 44px; padding: 0 10px 30px; color: white; }
.brand-copy { display: flex; flex-direction: column; }
.brand-copy strong { font-size: 1rem; }
.brand-copy span { margin-top: 2px; color: #8d96aa; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
.nav { display: grid; gap: 5px; }
.nav button, .settings-button {
  width: 100%; border: 0; border-radius: 9px; padding: 11px 12px; background: transparent;
  color: inherit; display: flex; align-items: center; gap: 12px; text-align: left; font-weight: 650; font-size: .88rem;
}
.nav button:hover, .nav button.active, .settings-button:hover { background: #262f45; color: white; }
.nav-icon { width: 22px; text-align: center; font-size: .96rem; opacity: .9; }
.nav-badge { margin-left: auto; min-width: 22px; border-radius: 20px; padding: 2px 6px; background: var(--purple); color: white; text-align: center; font-size: .68rem; }
.side-bottom { margin-top: auto; }
.profile { border-top: 1px solid #2a3348; margin-top: 14px; padding: 19px 6px 2px; display: grid; grid-template-columns: 38px 1fr; align-items: center; gap: 9px; }
.profile-copy { min-width: 0; display: flex; flex-direction: column; }
.profile-copy strong { overflow: hidden; color: white; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.profile-copy span { margin-top: 3px; color: #8992a6; font-size: .68rem; text-transform: capitalize; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  flex: none; background: #ece8ff; color: #5c41dd; font-weight: 800; font-size: .75rem;
}
.avatar.dark { background: #343e54; color: white; }
.app-main { min-width: 0; }
.topbar {
  min-height: 88px; padding: 18px 34px; background: white; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
}
.eyebrow { margin: 0 0 4px; color: #8992a5; font-size: .67rem; letter-spacing: .16em; font-weight: 800; }
.topbar h1 { margin: 0; font-size: 1.52rem; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.search-field { width: 250px; height: 40px; border: 1px solid var(--line); border-radius: 9px; display: flex; align-items: center; gap: 8px; padding: 0 12px; color: #9098a9; }
.search-field input { width: 100%; border: 0; outline: 0; font-size: .84rem; }
.icon-button { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 9px; background: white; color: #667087; }
.content { max-width: 1500px; padding: 28px 34px 50px; }
.section-head, .toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.section-head h2 { margin: 0; font-size: 1.08rem; }
.section-head p { margin: 6px 0 0; color: var(--muted); font-size: .82rem; }
.actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.button {
  border: 0; border-radius: 9px; padding: 10px 15px; display: inline-flex; align-items: center;
  justify-content: center; gap: 7px; font-weight: 750; font-size: .8rem; text-decoration: none;
}
.button.primary { background: var(--purple); color: white; box-shadow: 0 5px 15px rgba(108,76,255,.2); }
.button.secondary { background: white; color: #40495c; border: 1px solid var(--line); }
.button.dark { background: #172033; color: white; }
.button.danger { background: #fff0f1; color: var(--red); }
.button:disabled { opacity: .5; cursor: not-allowed; }
.week-nav { display: flex; align-items: center; gap: 10px; }
.week-label { min-width: 190px; text-align: center; display: flex; flex-direction: column; }
.week-label strong { font-size: .9rem; }
.week-label span { margin-top: 3px; color: var(--muted); font-size: .75rem; }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 18px; }
.metric-grid.four { grid-template-columns: repeat(4, 1fr); }
.metric { position: relative; overflow: hidden; padding: 19px 20px; background: white; border: 1px solid var(--line); border-radius: 13px; }
.metric::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--purple); }
.metric.green::before { background: #19a974; }
.metric.navy::before { background: #172033; }
.metric.red::before { background: #ec5c5c; }
.metric > span { color: #788196; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.metric > strong { display: block; margin: 8px 0 4px; font-size: 1.72rem; }
.metric p { margin: 0; color: #8b93a4; font-size: .75rem; }
.progress { height: 5px; margin-top: 14px; overflow: hidden; border-radius: 10px; background: #edf0f5; }
.progress i { display: block; height: 100%; border-radius: inherit; background: var(--purple); }
.panel { background: white; border: 1px solid var(--line); border-radius: 13px; padding: 20px; }
.panel-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.panel-title h2 { margin: 0; font-size: 1rem; }
.panel-title p { margin: 5px 0 0; color: var(--muted); font-size: .78rem; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .82rem; }
th { padding: 11px 10px; border-bottom: 1px solid var(--line); color: #8c94a6; font-size: .68rem; text-align: left; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
td { padding: 13px 10px; border-bottom: 1px solid #eef0f5; }
th:not(:first-child), td:not(:first-child) { text-align: center; }
.row-title { display: flex; align-items: center; gap: 10px; min-width: 210px; text-align: left; }
.row-title > span:last-child { display: flex; flex-direction: column; gap: 3px; }
.row-title small { color: #8c94a6; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.hours-input { width: 54px; height: 36px; padding: 4px; border: 1px solid #dfe2eb; border-radius: 7px; text-align: center; outline: 0; }
.hours-input:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(108,76,255,.12); }
.total-row td { background: #f8f9fc; font-weight: 750; }
.over { color: var(--red); }
.status { display: inline-flex; border-radius: 20px; padding: 5px 8px; background: var(--purple-soft); color: #6548da; font-size: .66rem; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.status.ok { background: #e1f7eb; color: var(--green); }
.status.warn { background: #ffeaeb; color: var(--red); }
.status.freelance { background: #fff0dd; color: #a66112; }
.empty { padding: 36px 20px; text-align: center; color: var(--muted); }
.empty h3 { margin: 0 0 8px; color: var(--ink); font-size: 1rem; }
.empty p { margin: 0 auto 18px; max-width: 480px; font-size: .82rem; line-height: 1.5; }
.project-list { display: grid; gap: 14px; }
.project-card { padding: 20px; background: white; border: 1px solid var(--line); border-radius: 14px; }
.project-card.open { border-color: #d9d4ff; box-shadow: var(--shadow); }
.project-summary { display: grid; grid-template-columns: 46px minmax(180px,1.2fr) 90px minmax(180px,.8fr) 170px; align-items: center; gap: 16px; }
.project-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; color: white; font-weight: 900; }
.project-name h3 { margin: 0 0 5px; font-size: 1rem; }
.project-name p { margin: 0; color: var(--muted); font-size: .75rem; }
.project-totals { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
.project-totals div { display: flex; flex-direction: column; gap: 5px; }
.project-totals span { color: var(--muted); font-size: .66rem; text-transform: uppercase; }
.project-totals strong { font-size: .95rem; }
.project-actions { display: grid; gap: 7px; }
.episodes { margin: 20px -20px -20px; padding: 18px 20px 16px; border-top: 1px solid #eceef4; border-radius: 0 0 14px 14px; background: #fafbfe; }
.subhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 6px 0 12px; }
.subhead > div { display: flex; flex-direction: column; gap: 4px; }
.subhead strong { font-size: .84rem; }
.subhead span { color: var(--muted); font-size: .72rem; }
.episode-table, .support-list { overflow: hidden; background: white; border: 1px solid #e9ebf2; border-radius: 10px; }
.episode-row { display: grid; grid-template-columns: 1.5fr .55fr .75fr 90px; align-items: center; gap: 12px; padding: 12px 15px; border-bottom: 1px solid #eef0f5; font-size: .78rem; }
.episode-row:last-child { border-bottom: 0; }
.episode-row.headings { padding-top: 9px; padding-bottom: 9px; background: #f6f7fb; color: var(--muted); font-size: .65rem; text-transform: uppercase; }
.episode-name { display: flex; align-items: center; gap: 9px; }
.episode-stripe { width: 6px; height: 28px; border-radius: 5px; }
.support-list { padding: 0 14px; }
.support-row { display: grid; grid-template-columns: 38px minmax(150px,1fr) 100px 110px 110px; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid #eef0f5; font-size: .75rem; }
.support-row:last-child { border-bottom: 0; }
.support-person { display: flex; flex-direction: column; gap: 3px; }
.support-person span { color: var(--muted); font-size: .68rem; }
.cost-report-title { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 14px; padding: 20px; margin-bottom: 18px; background: white; border: 1px solid var(--line); border-radius: 14px; }
.cost-report-title h2 { margin: 2px 0 4px; font-size: 1.35rem; }
.cost-report-title p { margin: 0; color: var(--muted); font-size: .78rem; }
.cost-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 18px; }
.cost-person-row { display: grid; grid-template-columns: 38px minmax(150px,1fr) 80px 100px 100px; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid #eef0f5; font-size: .8rem; }
.cost-person-row > span, .cost-person-row > strong { text-align: right; }
.cost-person { display: flex; flex-direction: column; gap: 3px; }
.cost-person span { color: var(--muted); font-size: .7rem; }
.episode-cost { padding: 13px 0; border-bottom: 1px solid #eef0f5; }
.episode-cost:last-child { border-bottom: 0; }
.episode-cost > div:first-child { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.episode-cost small { display: block; margin-top: 4px; color: var(--muted); }
.dashboard-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; }
.capacity-row { margin: 18px 0; }
.capacity-label { display: flex; justify-content: space-between; font-size: .78rem; }
.timeline-grid { min-width: 860px; display: grid; grid-template-columns: 220px repeat(5, minmax(125px,1fr)); }
.timeline-grid > div { min-height: 76px; padding: 10px; border-right: 1px solid #eef0f5; border-bottom: 1px solid #eef0f5; }
.timeline-head > div { min-height: auto; background: #f7f8fb; color: var(--muted); font-size: .68rem; text-transform: uppercase; }
.timeline-label { display: flex; align-items: center; gap: 9px; }
.timeline-label span { display: flex; flex-direction: column; gap: 3px; }
.timeline-label small { color: var(--muted); }
.allocation { height: 100%; padding: 9px; border-left: 3px solid var(--purple); border-radius: 7px; background: var(--purple-soft); display: flex; flex-direction: column; gap: 4px; font-size: .72rem; }
.allocation small { color: var(--muted); }
.view-switch { display: flex; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: white; }
.view-switch button { border: 0; border-radius: 7px; padding: 7px 10px; background: transparent; color: var(--muted); font-size: .74rem; }
.view-switch button.active { background: var(--purple-soft); color: #5e47c7; font-weight: 750; }
.privacy-note { margin: 12px 0 0; color: var(--muted); font-size: .74rem; }
.link-button { border: 0; padding: 0; background: transparent; color: #6548da; font-weight: 750; font-size: .76rem; }
.back-button { margin-bottom: 18px; }
dialog { width: min(620px, calc(100% - 28px)); max-height: calc(100vh - 40px); padding: 0; border: 0; border-radius: 16px; box-shadow: 0 30px 90px rgba(17,24,42,.25); }
dialog::backdrop { background: rgba(17,24,42,.55); backdrop-filter: blur(3px); }
.dialog-card { padding: 24px; overflow-y: auto; }
.dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.dialog-head h2 { margin: 0; font-size: 1.15rem; }
.dialog-head p { margin: 5px 0 0; color: var(--muted); font-size: .78rem; }
.dialog-close { border: 0; background: transparent; color: var(--muted); font-size: 1.25rem; }
.form-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label, .field > span { font-size: .75rem; font-weight: 750; }
.field input, .field select { width: 100%; height: 42px; padding: 0 11px; border: 1px solid #dfe2eb; border-radius: 8px; background: white; color: var(--ink); outline: 0; }
.field input:focus, .field select:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(108,76,255,.1); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 22px; }
.toast { position: fixed; z-index: 30; right: 24px; bottom: 24px; max-width: 380px; padding: 12px 15px; border-radius: 10px; background: #172033; color: white; box-shadow: var(--shadow); font-size: .8rem; opacity: 0; pointer-events: none; transform: translateY(8px); transition: .2s; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast.error { background: #9f2630; }

@media (max-width: 1080px) {
  .project-summary { grid-template-columns: 46px 1fr 90px 160px; }
  .project-actions { grid-column: 2 / -1; grid-template-columns: repeat(2,1fr); }
  .cost-grid { grid-template-columns: 1fr; }
  .metric-grid.four { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 860px) {
  .app-shell { grid-template-columns: 74px minmax(0,1fr); }
  .sidebar { padding: 22px 9px; }
  .brand { padding: 0 8px 28px; }
  .brand-copy, .nav button span:not(.nav-icon):not(.nav-badge), .settings-button span, .profile-copy { display: none; }
  .nav button, .settings-button { justify-content: center; padding: 11px 8px; }
  .profile { grid-template-columns: 1fr; justify-items: center; }
  .search-field { display: none; }
  .metric-grid { grid-template-columns: repeat(2,1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .motion-home-copy {
    width: calc(100% - 48px);
    margin-left: 24px;
    padding: 90px 0 64px;
  }
  .motion-logo-plate { width: 228px; padding: 13px 15px; }
  .motion-kicker { margin-top: 28px; }
  .motion-home h1 { font-size: 44px; }
  .motion-intro { font-size: 16px; }
  .motion-corner-note { display: none; }
  .motion-ring-a { right: -230px; }
  .motion-toggle { top: 18px; right: 18px; }
  .app-shell { display: block; }
  .sidebar { z-index: 10; position: fixed; inset: auto 0 0; width: 100%; height: 66px; padding: 7px 8px; display: block; }
  .brand, .side-bottom { display: none; }
  .nav { display: flex; justify-content: space-around; }
  .nav button { width: auto; min-width: 45px; }
  .nav button:nth-child(n+5) { display: none; }
  .nav-badge { display: none; }
  .app-main { padding-bottom: 66px; }
  .topbar { min-height: 76px; padding: 15px 18px; }
  .topbar h1 { font-size: 1.3rem; }
  .content { padding: 20px 16px 38px; }
  .section-head, .toolbar { align-items: flex-start; flex-direction: column; }
  .actions { width: 100%; }
  .actions .button { flex: 1; }
  .metric-grid, .metric-grid.four { grid-template-columns: 1fr; }
  .project-summary { grid-template-columns: 42px 1fr; }
  .project-summary > .status, .project-totals { display: none; }
  .project-actions { grid-column: 1 / -1; }
  .support-row { min-width: 660px; }
  .support-list { overflow-x: auto; }
  .episode-row { min-width: 560px; }
  .episode-table { overflow-x: auto; }
  .cost-report-title { grid-template-columns: 42px 1fr; }
  .cost-report-title > .status { display: none; }
  .cost-person-row { min-width: 610px; }
  .panel.cost-people { overflow-x: auto; }
  .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .login-card, .pending-card { padding: 28px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .motion-canvas *,
  .motion-canvas { animation: none !important; }
}
