/* Kete o te Mātauranga — client progress dashboard
   Design-system styles. Values come from DESIGN.md tokens (§15/§16). */

:root {
  /* Te Taiao palette */
  --deep: #1F3D2B;
  --forest: #2D5A3D;
  --moss: #4A7856;
  --leaf: #6B9B76;
  --river: #3A6B7A;
  --sky: #7FA8B3;
  --brown: #7A5C3E;
  --bark: #4A3826;
  --emergency: #B23A2F;
  --gold: #C08A2E;

  /* card tints */
  --tint-green: #E8F0E6;
  --tint-green-deep: #DCE8D6;
  --tint-clay: #F2DED7;
  --tint-sand: #F6E9C8;
  --tint-sky: #DEE9EC;
  --tint-bark: #EDE3D6;

  /* ink */
  --bg: #FFFFFF;
  --ink: var(--deep);
  --muted: #59685C;
  --quiet: #677660;
  --edge: rgba(31, 61, 43, .11);
  --divider: rgba(31, 61, 43, .07);

  /* type */
  --font-display: "Young Serif", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --t-display: 400 32px/38px var(--font-display);
  --t-title: 400 24px/30px var(--font-display);
  --t-heading: 400 19px/26px var(--font-display);
  --t-subhead: 600 17px/24px var(--font-body);
  --t-body: 400 15px/23px var(--font-body);
  --t-label: 500 13px/18px var(--font-body);
  --t-micro: 600 12px/16px var(--font-body);

  /* space */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 40px; --s-7: 64px;
  --gutter: 20px; --card-pad: 20px; --card-pad-lg: 24px;

  /* radius */
  --r-sm: 12px; --r-md: 20px; --r-lg: 28px; --r-pill: 999px;

  /* elevation */
  --shadow-card: 0 1px 2px rgba(31,61,43,.04), 0 4px 12px rgba(31,61,43,.05);
  --shadow-float: 0 2px 8px rgba(31,61,43,.10), 0 8px 20px rgba(31,61,43,.08);
  --shadow-modal: 0 8px 24px rgba(31,61,43,.14), 0 24px 56px rgba(31,61,43,.12);

  /* motion */
  --m-route: 180ms; --m-press: 120ms; --m-confirm: 140ms; --m-progress: 400ms;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
}

.hidden { display: none !important; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes metalSpin {
  to { --a: 360deg; }
}

/* --- Metal ring: animated glowing outline (CSS-only, no deps) ------ */
@property --a { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.metal-ring {
  position: relative;
  isolation: isolate;
  border-radius: inherit;
}
.metal-ring::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(from var(--a),
    var(--gold) 0deg, #fff 20deg, var(--gold) 45deg,
    var(--tint-sand) 120deg, var(--gold) 180deg,
    #fff 205deg, var(--gold) 230deg, var(--tint-sand) 300deg, var(--gold) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: metalSpin 3.2s linear infinite;
  opacity: 0;
  transition: opacity 220ms ease;
  z-index: -1;
  pointer-events: none;
}
.metal-ring:hover::before,
.metal-ring:focus-within::before { opacity: 1; }
.metal-ring.always-on::before { opacity: 1; }
.metal-ring::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  background: radial-gradient(closest-side, var(--gold) 0%, transparent 75%);
  opacity: 0;
  filter: blur(8px);
  transition: opacity 220ms ease;
  z-index: -2;
  pointer-events: none;
}
.metal-ring:hover::after,
.metal-ring:focus-within::after { opacity: .35; }
.metal-ring.always-on::after { opacity: .28; }
.gate-btn-wrap { width: 100%; max-width: 300px; border-radius: var(--r-pill); }
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
#dash.reveal { animation: fadeIn 480ms ease both; }
#dash.reveal .hero { animation: fadeUp 520ms ease both; animation-delay: 60ms; }
#dash.reveal .progress-card { animation: fadeUp 520ms ease both; animation-delay: 120ms; }
#dash.reveal .grid-2 { animation: fadeUp 520ms ease both; animation-delay: 180ms; }

/* --- Passcode gate ------------------------------------------------ */
.gate {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr;
  background: linear-gradient(135deg, var(--forest) 0%, var(--deep) 100%);
}

.gate-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--s-7) var(--card-pad-lg);
  text-align: center;
  animation: fadeUp 420ms ease both;
  overflow: hidden;
}
.gate-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('img/hero-tui.jpg');
  background-size: cover;
  background-position: 75% 45%;
  background-repeat: no-repeat;
  opacity: 0.22;
  z-index: -1;
}

.gate-eyebrow {
  font: var(--t-micro);
  color: var(--tint-sand);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 8px;
  display: block;
}
.gate-title { font: var(--t-display); color: #fff; margin: 0 0 8px; max-width: 320px; }
.gate-sub { color: rgba(255,255,255,.78); font-size: 14px; margin: 0 0 24px; max-width: 300px; }
.gate-btn { width: 100%; max-width: 300px; }
.gate-foot { color: rgba(255,255,255,.5); font: var(--t-micro); margin: 20px 0 0; }
.gate-input {
  width: 100%;
  max-width: 300px;
  padding: 13px 16px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--r-sm);
  font-size: 16px;
  margin-bottom: 12px;
  background: rgba(255,255,255,.08);
  color: #fff;
}
.gate-input::placeholder { color: rgba(255,255,255,.5); }
.gate-input:focus { outline: 2px solid var(--gold); outline-offset: 2px; }
.gate-msg { color: #F2B8AE; font-size: 13px; margin: 10px 0 0; min-height: 18px; }

/* --- Buttons ------------------------------------------------------ */
.btn {
  border: 0;
  cursor: pointer;
  font: var(--t-subhead);
  padding: 12px 24px;
  min-height: 48px;
  border-radius: var(--r-pill);
  transition: filter var(--m-press) ease, transform var(--m-press) ease;
}
.btn-solid { background: var(--forest); color: #fff; }
.btn-solid:hover { filter: brightness(1.06); }
.btn-solid:active { transform: scale(.98); }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* --- Masthead ----------------------------------------------------- */
.mast { background: var(--deep); color: #fff; }
.mast-inner {
  max-width: 1180px; margin: 0 auto; padding: 22px var(--gutter);
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 14px; }

.mast-title { margin: 0; font: var(--t-heading); color: #fff; }
.mast-sub { margin: 2px 0 0; font-size: 13px; opacity: .82; }
.meta { display: flex; gap: 8px; flex-wrap: wrap; }
.meta-item {
  background: rgba(255,255,255,.12); padding: 6px 12px;
  border-radius: var(--r-pill); font-size: 12px;
}

/* --- Layout ------------------------------------------------------- */
/* --- Hero --------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  margin-bottom: var(--s-5);
  box-shadow: var(--shadow-float);
  min-height: 340px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--forest) 0%, var(--deep) 100%);
  padding: var(--s-6) var(--s-6);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('img/hero-tui.jpg');
  background-size: cover;
  background-position: 78% center;
  background-repeat: no-repeat;
  opacity: 0.32;
  z-index: 0;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--deep) 0%, rgba(31,61,43,.65) 45%, rgba(31,61,43,.15) 100%);
  z-index: 0;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding: var(--s-6);
  max-width: 560px;
}
.hero-eyebrow {
  font: var(--t-micro);
  color: var(--tint-sand);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.hero-title {
  font: var(--t-display);
  color: #fff;
  margin: 10px 0 12px;
}
.hero-text { font: var(--t-body); color: rgba(255,255,255,.88); max-width: 42ch; margin: 0 0 22px; }
.hero-cta { display: flex; gap: 8px; flex-wrap: wrap; }
.hero-dates { font: var(--t-label); color: rgba(255,255,255,.78); margin: 14px 0 0; }
.chip {
  font: var(--t-label);
  padding: 8px 16px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,.14);
  color: #fff;
  backdrop-filter: blur(2px);
}
.chip-selected { background: var(--gold); color: var(--deep); }

/* --- Progress card ------------------------------------------------ */
.progress-card {
  background: var(--bg);
  border: 1px solid var(--edge);
  border-radius: var(--r-md);
  padding: var(--s-4) 18px;
  margin-bottom: var(--s-4);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--m-route) ease;
}
.progress-card:hover { box-shadow: var(--shadow-float); }
.progress-copy {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 10px;
}
.progress-label { font: var(--t-label); color: var(--muted); }
.progress-num { font: var(--t-subhead); color: var(--deep); }
.progress-track {
  height: 12px; background: var(--tint-green); border-radius: var(--r-pill); overflow: hidden;
}
.progress-fill {
  height: 100%; background: var(--river);
  border-radius: var(--r-pill); width: 0;
  transition: width var(--m-progress) ease;
}

/* --- Cards -------------------------------------------------------- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
  margin-bottom: var(--s-5);
}
.card {
  border-radius: var(--r-md);
  padding: var(--card-pad-lg);
  box-shadow: var(--shadow-card);
  transition: transform var(--m-route) ease, box-shadow var(--m-route) ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-float); }
.tint-green { background: var(--tint-green); }
.tint-clay { background: var(--tint-clay); }
.tint-sand { background: var(--tint-sand); }
.tint-sky { background: var(--tint-sky); }
.card-title { font: var(--t-heading); color: var(--deep); margin: 0 0 6px; }
.card-kicker {
  display: block;
  font: var(--t-micro);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 0 0 2px;
}
.card-sub { color: var(--muted); margin: 0 0 12px; font: var(--t-body); }
.mini-list { list-style: none; margin: 0; padding: 0; }
.mini-list li {
  padding: 8px 0;
  border-top: 1px solid var(--divider);
  display: flex; gap: 10px; align-items: flex-start;
  font: var(--t-body);
}
.mini-list li:first-child { border-top: 0; }
.card-question { font: var(--t-label); color: var(--muted); margin: var(--s-3) 0 0; }
.card-question a { color: var(--river); font-weight: 600; text-decoration: underline; }
.notes-card { margin-bottom: var(--s-5); }
.notes-list li { font: var(--t-body); }
.tick { color: var(--forest); font-weight: 700; flex-shrink: 0; }
.flag { color: var(--gold); flex-shrink: 0; }

/* --- Client checklist + progress ----------------------------------- */
.client-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.client-progress-track {
  flex: 1;
  height: 10px;
  background: rgba(122, 92, 62, .16);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.client-progress-fill {
  height: 100%;
  background: var(--gold);
  border-radius: var(--r-pill);
  width: 0;
  transition: width var(--m-progress) ease;
}
.client-progress-num { font: var(--t-micro); color: var(--bark); white-space: nowrap; }
.checklist li {
  cursor: pointer;
  transition: opacity var(--m-press) ease;
  user-select: none;
}
.checklist li:hover { opacity: .82; }
.checklist .check-box {
  width: 18px; height: 18px;
  flex-shrink: 0;
  border: 2px solid var(--brown);
  border-radius: 5px;
  display: grid; place-items: center;
  font-size: 12px;
  color: transparent;
  margin-top: 1px;
  transition: background var(--m-press) ease, border-color var(--m-press) ease;
}
.checklist li.done .check-box {
  background: var(--forest);
  border-color: var(--forest);
  color: #fff;
}

/* Enhanced client checklist with expandable details */
.checklist .check-item { 
  border: 1px solid var(--edge); 
  border-radius: var(--r-sm); 
  padding: 12px; 
  margin-bottom: 8px; 
  transition: opacity 220ms ease, border-color 180ms ease;
}
.checklist .check-item.done { opacity: .5; }
.checklist .check-item:hover { border-color: var(--forest); }

.check-header { 
  display: flex; 
  align-items: flex-start; 
  gap: 12px; 
}

.check-text { 
  min-width: 0; 
  flex: 1;
}
.check-text strong { font-weight: 600; display: block; margin-bottom: 4px; }

.check-deadline {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

.check-expand {
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background-color 180ms ease, color 180ms ease;
}
.check-expand:hover {
  background-color: var(--tint-green);
  color: var(--forest);
}

.check-details {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--divider);
  font-size: 14px;
  line-height: 1.5;
}
.check-details p {
  margin: 0 0 8px 0;
}
.check-details p:last-child {
  margin-bottom: 0;
}
.checklist li.done .check-text { text-decoration: line-through; color: var(--muted); }
.wrap {
  max-width: 1180px; margin: 0 auto; padding: var(--gutter) var(--gutter) 48px;
}
/* --- Tabs --------------------------------------------------------- */
.tabs { display: flex; gap: 6px; margin-bottom: var(--s-4); }
.tab {
  border: 0;
  background: var(--tint-green);
  color: var(--forest);
  padding: 9px 18px;
  border-radius: var(--r-pill);
  font: var(--t-label);
  cursor: pointer;
  transition: background var(--m-press) ease, color var(--m-press) ease, transform var(--m-press) ease;
}
.tab:hover { transform: translateY(-1px); }
.tab:active { transform: scale(.98); }
.tab.active { background: var(--forest); color: #fff; }
.tab:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.view { margin-top: var(--s-4); }

/* --- Board -------------------------------------------------------- */
.board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
  align-items: start;
}
.column {
  background: var(--tint-green-deep);
  border-radius: var(--r-md);
  padding: var(--s-3);
  min-height: 120px;
}
.column-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 2px 6px 10px;
}
.column-count {
  font: var(--t-micro); color: var(--muted);
  background: var(--bg); padding: 2px 9px; border-radius: var(--r-pill);
}
.column-sky { background: var(--tint-sky); }
.column-sand { background: var(--tint-sand); }
.column-alert { background: #F6DCD8; }
.column-green { background: var(--tint-green); }
.column-title { font: var(--t-subhead); color: var(--deep); }
.board-card {
  background: var(--bg);
  border: 1px solid var(--edge);
  border-radius: var(--r-sm);
  padding: 12px 14px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-card);
  transition: transform var(--m-route) ease, box-shadow var(--m-route) ease;
}
.board-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-float); }
.board-card:active { transform: scale(.98); }
.board-card-title { font: var(--t-label); color: var(--ink); }
.board-card-meta { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.badge {
  font: var(--t-micro);
  padding: 3px 8px;
  border-radius: 6px;
}
.badge-week { background: var(--tint-green); color: var(--forest); }
.badge-req { background: var(--tint-bark); color: var(--bark); }
.badge-wait { background: var(--tint-sky); color: var(--river); }
.badge-done { background: var(--tint-green-deep); color: var(--moss); }

.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.dot.todo { background: var(--river); }
.dot.progress { background: var(--gold); }
.dot.done { background: var(--moss); }
.dot.waiting { background: var(--emergency); }
.st { display: flex; align-items: center; gap: 9px; min-width: 0; }
.st-text { overflow: hidden; text-overflow: ellipsis; }
.st-req { font: var(--t-micro); color: var(--muted); white-space: nowrap; }

/* --- Updates ------------------------------------------------------ */
.feed { max-width: 760px; }
.entry {
  background: var(--bg);
  border: 1px solid var(--edge);
  border-radius: var(--r-md);
  padding: 14px 18px;
  margin-bottom: var(--s-3);
  box-shadow: var(--shadow-card);
  transition: transform var(--m-route) ease, box-shadow var(--m-route) ease;
}
.entry:hover { transform: translateY(-2px); box-shadow: var(--shadow-float); }
.entry-head {
  display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px;
}
.entry-author { font: var(--t-label); color: var(--deep); }
.entry-date { font: var(--t-micro); color: var(--muted); }
.entry-text { font: var(--t-body); margin: 0; }

/* --- Resource links ------------------------------------------------ */
.links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
  margin-bottom: var(--s-5);
}
.link-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg);
  border: 1px solid var(--edge);
  border-radius: var(--r-md);
  padding: 16px 18px;
  text-decoration: none;
  box-shadow: var(--shadow-card);
  transition: transform var(--m-route) ease, box-shadow var(--m-route) ease, border-color var(--m-route) ease;
}
.link-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-float);
  border-color: var(--forest);
}
.link-card:active { transform: scale(.98); }
.link-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  display: grid; place-items: center;
  font-size: 20px;
}
.link-icon.i-mockup { background: var(--tint-sky); color: var(--river); }
.link-icon.i-assets { background: var(--tint-sand); color: var(--gold); }
.link-icon.i-app { background: var(--tint-green); color: var(--forest); }
.link-copy { min-width: 0; }
.link-title { font: var(--t-subhead); color: var(--deep); display: block; }
.link-sub { font: var(--t-micro); color: var(--muted); display: block; margin-top: 2px; }
.link-arrow {
  margin-left: auto;
  color: var(--muted);
  flex-shrink: 0;
  font-size: 26px;
  line-height: 1;
  transition: transform var(--m-press) ease, color var(--m-press) ease;
}
.link-card:hover .link-arrow { transform: translateX(5px); color: var(--forest); }

/* --- Sprint Timeline Accordion -------------------------------------- */
.sprint-timeline {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: var(--s-5);
}
.sprint-item {
  border: 1px solid var(--edge);
  border-radius: var(--r-md);
  background: var(--bg);
  overflow: hidden;
  transition: all 200ms ease;
}
.sprint-item.active {
  margin: 8px 0;
  box-shadow: var(--shadow-card);
}
.sprint-item:first-child { border-top-left-radius: var(--r-md); border-top-right-radius: var(--r-md); }
.sprint-item:last-child { border-bottom-left-radius: var(--r-md); border-bottom-right-radius: var(--r-md); }
.sprint-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  cursor: pointer;
  transition: background-color var(--m-press) ease;
}
.sprint-header:hover { background: var(--tint-green); }
.sprint-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sprint-icon {
  width: 32px; height: 32px;
  border-radius: var(--r-sm);
  background: var(--tint-sky);
  color: var(--river);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
}
.sprint-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.sprint-week { font: var(--t-subhead); color: var(--deep); margin: 0; }
.sprint-title { font: var(--t-body); color: var(--muted); margin: 2px 0 0; }
.sprint-chevron {
  color: var(--muted);
  transition: transform var(--m-press) ease;
  font-size: 20px;
}
.sprint-chevron.active { transform: rotate(180deg); }
.sprint-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--m-progress) ease, padding var(--m-progress) ease;
}
.sprint-content.active { 
  max-height: 500px; 
  padding: 0 18px 18px; 
}
.sprint-goal {
  font: var(--t-body);
  color: var(--deep);
  margin: 0 0 12px;
  padding: 12px;
  background: var(--tint-sand);
  border-radius: var(--r-sm);
  border-left: 3px solid var(--gold);
}
.sprint-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 16px;
}
.sprint-progress-text { font: var(--t-label); color: var(--muted); }
.sprint-progress-bar {
  flex: 1;
  height: 6px;
  background: var(--tint-green);
  border-radius: var(--r-pill);
  margin: 0 12px;
  overflow: hidden;
}
.sprint-progress-fill {
  height: 100%;
  background: var(--river);
  border-radius: var(--r-pill);
  transition: width var(--m-progress) ease;
}
.sprint-progress-num { font: var(--t-label); color: var(--deep); font-weight: 600; }
.sprint-tasks {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sprint-task {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: var(--tint-green);
  border-radius: var(--r-sm);
  font: var(--t-body);
}
.sprint-task.completed { opacity: 0.7; }
.sprint-task.completed .task-text { text-decoration: line-through; }
.task-status {
  width: 16px; height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
}
.task-status.completed { background: var(--forest); color: white; }
.task-status.progress { background: var(--gold); color: white; }
.task-status.waiting { background: var(--emergency); color: white; }
.task-status.todo { background: var(--edge); color: var(--muted); }
.task-text { flex: 1; color: var(--ink); }
.task-req {
  font: var(--t-micro);
  color: var(--muted);
  background: var(--bg);
  padding: 2px 6px;
  border-radius: var(--r-sm);
}

/* --- File uploads ---------------------------------------------------- */
.upload-card {
  background: var(--bg);
  border: 1px solid var(--edge);
  border-radius: var(--r-md);
  padding: var(--card-pad-lg);
  box-shadow: var(--shadow-card);
}
.upload-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 2px dashed var(--edge);
  border-radius: var(--r-md);
  padding: var(--s-6) var(--s-4);
  text-align: center;
  cursor: pointer;
  transition: border-color var(--m-route) ease, background var(--m-route) ease;
  margin-top: var(--s-3);
}
.upload-drop:hover,
.upload-drop-active {
  border-color: var(--river);
  background: var(--tint-sky);
}
.upload-drop-icon { font-size: 28px; }
.upload-drop-text { font: var(--t-body); color: var(--muted); }
.upload-msg { font: var(--t-label); color: var(--muted); min-height: 20px; margin: var(--s-3) 0 0; }
.upload-msg-error { color: var(--emergency); }
.file-list {
  list-style: none;
  padding: 0;
  margin: var(--s-3) 0 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.file-row {
  font: var(--t-body);
  color: var(--ink);
  padding: 10px 14px;
  background: var(--tint-green);
  border-radius: var(--r-sm);
}
.file-link { color: var(--river); text-decoration: underline; }

/* --- Footer --------------------------------------------------------- */
.foot {
  text-align: center;
  padding: var(--s-6) var(--gutter) var(--s-5);
  border-top: 1px solid var(--divider);
  margin-top: var(--s-5);
}
.foot-brand { font: var(--t-label); color: var(--deep); margin: 0 0 4px; }
.foot-note { font: var(--t-micro); color: var(--muted); margin: 0; }

/* --- Responsive --------------------------------------------------- */
@media (max-width: 900px) {
  .hero-copy { max-width: 100%; padding: var(--s-5); }
  .board { grid-template-columns: 1fr 1fr; }
  .links { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .gate { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .grid-2 { grid-template-columns: 1fr; }
  .board { grid-template-columns: 1fr; }
  .hero { min-height: 300px; }
  .hero-title { font-size: 26px; line-height: 32px; }
}
