/* app.css — FreshForecast AI · layout, components, screens (A!thera-branded) */

/* ---------------------------------------------------------------- base */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body {
  margin: 0;
  background: var(--athera-off-white);
  color: var(--athera-charcoal);
  font-family: var(--athera-sans);
  font-weight: 400;
  line-height: 1.65;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
a {
  color: var(--athera-blue-deep);
  text-decoration: none;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 300;
  color: var(--athera-charcoal);
}
button {
  font-family: var(--athera-sans);
}
:focus-visible {
  outline: 2px solid var(--athera-blue-deep);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
::selection {
  background: var(--athera-blue-light);
  color: var(--athera-navy);
}

.eyebrow {
  font-family: var(--athera-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--athera-blue-deep);
}
.section-number {
  font-family: var(--athera-mono);
  font-size: 11px;
  color: var(--athera-grey-light);
}
.blue-rule {
  width: 48px;
  height: 1px;
  background: var(--athera-blue);
  border: 0;
}

/* ---------------------------------------------------------------- header */
.app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(248, 247, 244, 0.86);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--athera-line);
}
.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px 48px 0;
}
.brand-lockup {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}
.product-mark {
  color: var(--athera-charcoal);
}
.product-name {
  font-family: var(--athera-display);
  font-weight: 400;
  font-size: 23px;
  letter-spacing: -0.01em;
  color: var(--athera-charcoal);
}
.product-name .ai-mark {
  color: var(--athera-charcoal);
}
.lockup-divider {
  width: 1px;
  height: 16px;
  background: var(--athera-line);
  align-self: center;
}
.athera-wordmark {
  font-family: var(--athera-display);
  font-weight: 300;
  font-size: 18px;
  color: var(--athera-charcoal);
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
}
.athera-wordmark .by {
  font-family: var(--athera-sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--athera-grey-light);
}
.athera-wordmark .a-mark {
  color: var(--athera-blue);
}
.athera-wordmark .wm-partners {
  font-family: var(--athera-sans);
  font-size: 0.52em;
  font-weight: 400;
  color: var(--athera-grey);
  letter-spacing: 0.08em;
  align-self: center;
}

/* progress nav */
.progress-nav {
  display: flex;
  gap: 4px;
  margin-top: 16px;
  overflow-x: auto;
  scrollbar-width: none;
}
.progress-nav::-webkit-scrollbar {
  display: none;
}
.pnav-step {
  appearance: none;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 10px 2px 14px;
  margin-right: 28px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  white-space: nowrap;
  color: var(--athera-grey);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.pnav-step:last-child {
  margin-right: 0;
}
.pnav-num {
  font-family: var(--athera-mono);
  font-size: 11px;
  color: var(--athera-grey-light);
}
.pnav-label {
  font-family: var(--athera-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.pnav-step.is-active {
  color: var(--athera-charcoal);
  border-bottom-color: var(--athera-blue);
}
.pnav-step.is-active .pnav-num {
  color: var(--athera-blue-deep);
}
.pnav-step.is-done {
  color: var(--athera-charcoal-light);
}
.pnav-step.is-done .pnav-num::after {
  content: ' ·';
}
.pnav-step:disabled {
  color: var(--athera-grey-light);
  cursor: not-allowed;
  opacity: 0.55;
}
.pnav-step:not(:disabled):hover {
  color: var(--athera-charcoal);
}

/* ---------------------------------------------------------------- view + layout */
.view {
  flex: 1;
}
.shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 64px 48px 96px;
}
.shell-narrow {
  max-width: 940px;
}
.fade-in {
  animation: fadeUp 0.42s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.stagger > * {
  opacity: 0;
  animation: fadeUp 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
.stagger > *:nth-child(1) { animation-delay: 0.04s; }
.stagger > *:nth-child(2) { animation-delay: 0.1s; }
.stagger > *:nth-child(3) { animation-delay: 0.16s; }
.stagger > *:nth-child(4) { animation-delay: 0.22s; }
.stagger > *:nth-child(5) { animation-delay: 0.28s; }
.stagger > *:nth-child(6) { animation-delay: 0.34s; }
@media (prefers-reduced-motion: reduce) {
  .fade-in,
  .stagger > * {
    animation: none;
    opacity: 1;
  }
}

/* section opener */
.opener {
  margin-bottom: 40px;
}
.opener .eyebrow {
  display: block;
  margin-bottom: 14px;
}
.opener h1,
.opener h2 {
  max-width: 16ch;
}
.opener .lede {
  max-width: 60ch;
  margin: 22px 0 0;
}
.opener .blue-rule {
  margin-top: 28px;
}
.opener-meta {
  margin-top: 18px;
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-primary {
  background: var(--athera-blue);
  color: var(--athera-navy);
}
.btn-primary:hover {
  background: var(--athera-blue-deep);
  color: #fff;
}
.btn-secondary {
  background: transparent;
  color: var(--athera-charcoal);
  border-color: var(--athera-line);
}
.btn-secondary:hover {
  background: var(--athera-white);
  border-color: var(--athera-charcoal-light);
}
.btn-ghost {
  background: transparent;
  color: var(--athera-grey);
  padding: 8px 4px;
}
.btn-ghost:hover {
  color: var(--athera-charcoal);
}
.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn .arrow {
  font-family: var(--athera-mono);
  font-size: 13px;
  transition: transform 0.2s ease;
}
.btn-primary:hover .arrow {
  transform: translateX(3px);
}
.actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 52px;
  padding-top: 28px;
  border-top: 1px solid var(--athera-line);
  flex-wrap: wrap;
}
.actions-right {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* ---------------------------------------------------------------- cards */
.card {
  background: var(--athera-white);
  border: 1px solid var(--athera-line);
  border-radius: var(--radius);
  padding: 28px;
}
.card-dark {
  background: var(--athera-navy);
  color: rgba(255, 255, 255, 0.85);
  border-radius: var(--radius);
  padding: 32px;
}

/* ---------------------------------------------------------------- HERO (screen 1) */
.hero {
  position: relative;
  background: var(--athera-navy);
  color: #fff;
  overflow: hidden;
}
.hero-rings {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
}
.hero-inner {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: 92px 48px 84px;
}
.hero .eyebrow {
  color: rgba(255, 255, 255, 0.5);
}
.hero .blue-rule {
  margin: 26px 0 32px;
}
.hero h1 {
  color: #fff;
  max-width: 18ch;
}
.hero h1 .accent {
  color: var(--athera-blue);
}
.hero-lede {
  margin: 30px 0 0;
  max-width: 56ch;
  color: rgba(255, 255, 255, 0.74);
  font-weight: 300;
  font-size: 19px;
  line-height: 1.7;
}
.hero-cta {
  margin-top: 44px;
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.hero-stats {
  margin-top: 72px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--athera-line-dark);
  border: 1px solid var(--athera-line-dark);
  border-radius: var(--radius);
  overflow: hidden;
}
.hero-stat {
  background: var(--athera-navy);
  padding: 26px 24px;
}
.hero-stat .num {
  font-family: var(--athera-display);
  font-weight: 300;
  font-size: 40px;
  line-height: 1;
  color: #fff;
}
.hero-stat .num .unit {
  font-size: 16px;
  color: var(--athera-blue);
  margin-left: 4px;
}
.hero-stat .lbl {
  margin-top: 12px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

/* how it works strip */
.how-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--athera-line);
  border: 1px solid var(--athera-line);
  border-radius: var(--radius);
  overflow: hidden;
}
.how-step {
  background: var(--athera-white);
  padding: 34px 30px;
}
.how-step .step-no {
  font-family: var(--athera-mono);
  font-size: 11px;
  color: var(--athera-blue-deep);
}
.how-step h3 {
  font-family: var(--athera-display);
  font-size: 25px;
  margin-top: 16px;
}
.how-step p {
  margin: 12px 0 0;
  color: var(--athera-grey);
  font-size: 14px;
  line-height: 1.6;
}

/* ---------------------------------------------------------------- stat tiles */
.tile-grid {
  display: grid;
  gap: 1px;
  background: var(--athera-line);
  border: 1px solid var(--athera-line);
  border-radius: var(--radius);
  overflow: hidden;
}
.tile-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.tile-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.tile-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }
.stat-tile {
  background: var(--athera-white);
  padding: 24px 22px;
}
.stat-tile .lbl {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--athera-grey);
}
.stat-tile .num {
  font-family: var(--athera-display);
  font-weight: 300;
  font-size: 38px;
  line-height: 1;
  color: var(--athera-charcoal);
  margin-top: 14px;
}
.stat-tile .num .unit {
  font-family: var(--athera-mono);
  font-size: 13px;
  color: var(--athera-grey);
  margin-left: 5px;
}
.stat-tile .sub {
  margin-top: 10px;
  font-size: 12px;
  color: var(--athera-grey-light);
}
.stat-tile.accent .num {
  color: var(--athera-blue-deep);
}

/* ---------------------------------------------------------------- forms (screen 2) */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--athera-line);
  border: 1px solid var(--athera-line);
  border-radius: var(--radius);
  overflow: hidden;
}
.field {
  background: var(--athera-white);
  padding: 26px 28px;
}
.field.span-2 {
  grid-column: 1 / -1;
}
.field > label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--athera-charcoal);
}
.field .helper {
  margin: 8px 0 16px;
  font-size: 13px;
  color: var(--athera-grey-light);
  line-height: 1.5;
}
.control,
select.control,
textarea.control {
  width: 100%;
  font-family: var(--athera-sans);
  font-size: 15px;
  color: var(--athera-charcoal);
  background: var(--athera-off-white);
  border: 1px solid var(--athera-line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.control:focus {
  border-color: var(--athera-blue);
  background: var(--athera-white);
  outline: none;
}
textarea.control {
  min-height: 92px;
  resize: vertical;
  line-height: 1.6;
}
select.control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B7280' stroke-width='1.2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

/* segmented choice (chips) */
.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.choice {
  font-family: var(--athera-sans);
  font-size: 13px;
  color: var(--athera-charcoal-light);
  background: var(--athera-off-white);
  border: 1px solid var(--athera-line);
  border-radius: 999px;
  padding: 9px 16px;
  cursor: pointer;
  transition: all 0.18s ease;
}
.choice:hover {
  border-color: var(--athera-charcoal-light);
}
.choice.is-selected {
  background: var(--athera-navy);
  border-color: var(--athera-navy);
  color: #fff;
}
.branch-check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 8px;
  margin-top: 6px;
}
.bcheck {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid var(--athera-line);
  border-radius: var(--radius-sm);
  background: var(--athera-off-white);
  cursor: pointer;
  font-size: 13px;
  transition: all 0.18s ease;
}
.bcheck:hover {
  border-color: var(--athera-charcoal-light);
}
.bcheck.is-on {
  background: var(--athera-white);
  border-color: var(--athera-blue);
}
.bcheck .box {
  width: 15px;
  height: 15px;
  border: 1px solid var(--athera-grey-light);
  border-radius: 3px;
  flex: none;
  display: grid;
  place-items: center;
}
.bcheck.is-on .box {
  background: var(--athera-blue);
  border-color: var(--athera-blue);
}
.bcheck.is-on .box::after {
  content: '';
  width: 7px;
  height: 4px;
  border-left: 1.5px solid var(--athera-navy);
  border-bottom: 1.5px solid var(--athera-navy);
  transform: rotate(-45deg) translateY(-1px);
}
.bcheck .bmeta {
  color: var(--athera-grey-light);
  font-family: var(--athera-mono);
  font-size: 11px;
  margin-left: auto;
}
.conditional {
  margin-top: 16px;
}

/* ---------------------------------------------------------------- data panels (screen 3) */
.split {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
  align-items: start;
}
.panel-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.data-panel {
  background: var(--athera-white);
  border: 1px solid var(--athera-line);
  border-radius: var(--radius);
  padding: 22px 24px;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.data-panel:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}
.dp-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.dp-head h3 {
  font-family: var(--athera-display);
  font-size: 21px;
}
.dp-count {
  font-family: var(--athera-mono);
  font-size: 12px;
  color: var(--athera-blue-deep);
}
.dp-sub {
  margin: 6px 0 16px;
  font-size: 12px;
  color: var(--athera-grey-light);
}
.mini-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.mini-table th {
  text-align: left;
  padding: 7px 10px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--athera-grey-light);
  border-bottom: 1px solid var(--athera-line);
}
.mini-table td {
  padding: 8px 10px;
  color: var(--athera-charcoal-light);
  border-bottom: 1px solid var(--athera-line-light);
}
.mini-table tr:last-child td {
  border-bottom: 0;
}
.mini-table td.num,
.mini-table th.num {
  text-align: right;
  font-family: var(--athera-mono);
}

/* upload / source selector */
.source-card {
  background: var(--athera-white);
  border: 1px solid var(--athera-line);
  border-radius: var(--radius);
  padding: 26px;
}
.source-toggle {
  display: flex;
  gap: 1px;
  background: var(--athera-line);
  border: 1px solid var(--athera-line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin: 18px 0 8px;
}
.source-opt {
  flex: 1;
  background: var(--athera-off-white);
  border: 0;
  padding: 14px 16px;
  text-align: left;
  cursor: pointer;
  transition: background 0.18s ease;
}
.source-opt .t {
  font-size: 13px;
  font-weight: 500;
  color: var(--athera-charcoal);
}
.source-opt .d {
  font-size: 11.5px;
  color: var(--athera-grey-light);
  margin-top: 3px;
}
.source-opt.is-on {
  background: var(--athera-white);
  box-shadow: inset 2px 0 0 var(--athera-blue);
}
.upload-list {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--athera-line);
  border: 1px solid var(--athera-line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.upload-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  background: var(--athera-white);
}
.upload-row .ur-name {
  font-size: 13px;
  color: var(--athera-charcoal);
}
.upload-row .ur-state {
  margin-left: auto;
  font-family: var(--athera-mono);
  font-size: 11px;
  color: var(--athera-grey-light);
}
.upload-row .ur-state.loaded {
  color: var(--status-low);
}
.upload-btn {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--athera-blue-deep);
  background: none;
  border: 1px solid var(--athera-line);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  cursor: pointer;
}
.upload-btn:hover {
  border-color: var(--athera-blue);
}

/* ---------------------------------------------------------------- readiness (screen 4) */
.issues-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.issue {
  display: flex;
  gap: 16px;
  padding: 18px 20px;
  background: var(--athera-white);
  border: 1px solid var(--athera-line);
  border-left-width: 3px;
  border-radius: var(--radius-sm);
}
.issue .ic {
  flex: none;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  font-family: var(--athera-mono);
  font-size: 13px;
}
.issue .it {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
}
.issue .id {
  margin-top: 5px;
  font-size: 14px;
  color: var(--athera-charcoal-light);
  line-height: 1.55;
}
.issue.sev-error {
  border-left-color: var(--status-high);
}
.issue.sev-error .it { color: var(--status-high); }
.issue.sev-warning {
  border-left-color: var(--athera-amber);
}
.issue.sev-warning .it { color: var(--status-medium); }
.issue.sev-info {
  border-left-color: var(--athera-steel);
}
.issue.sev-info .it { color: var(--athera-blue-deep); }

.recap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--athera-line);
  border: 1px solid var(--athera-line);
  border-radius: var(--radius);
  overflow: hidden;
}
.recap-item {
  background: var(--athera-white);
  padding: 18px 20px;
}
.recap-item .k {
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--athera-grey-light);
}
.recap-item .v {
  margin-top: 7px;
  font-size: 15px;
  color: var(--athera-charcoal);
}

/* ---------------------------------------------------------------- forecast dashboard (screen 5) */
.dash-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.dash-head-aside {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.btn-regen {
  background: var(--athera-white);
  color: var(--athera-charcoal);
  border: 1px solid var(--athera-line);
  padding: 9px 16px;
  border-radius: 999px;
  gap: 8px;
}
.btn-regen:hover {
  border-color: var(--athera-blue);
  color: var(--athera-blue-deep);
}
.btn-regen .regen-glyph {
  font-size: 14px;
  line-height: 1;
  display: inline-block;
  transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.btn-regen:hover .regen-glyph {
  transform: rotate(-180deg);
}
.chart-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 20px;
}
.chart-panel {
  background: var(--athera-white);
  border: 1px solid var(--athera-line);
  border-radius: var(--radius);
  padding: 24px 26px;
}
.chart-panel.full {
  grid-column: 1 / -1;
}
.cp-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}
.cp-head h3 {
  font-family: var(--athera-display);
  font-size: 22px;
}
.chart-box {
  position: relative;
  height: 290px;
}
.chart-box.tall {
  height: 340px;
}
.legend-inline {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.legend-inline .li {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: var(--athera-grey);
}
.legend-inline .sw {
  width: 11px;
  height: 11px;
  border-radius: 2px;
}

.movers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.mover-col h4 {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--athera-grey);
  margin-bottom: 12px;
}
.mover {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--athera-line-light);
}
.mover .mn {
  font-size: 13.5px;
  color: var(--athera-charcoal);
}
.mover .mb {
  font-family: var(--athera-mono);
  font-size: 11px;
  color: var(--athera-grey-light);
}
.mover .mv {
  margin-left: auto;
  font-family: var(--athera-mono);
  font-size: 13px;
  font-weight: 400;
}
.mover .mv.up { color: var(--athera-blue-deep); }
.mover .mv.down { color: var(--athera-amber); }

/* recommendation feed */
.feed-bar {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin: 40px 0 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--athera-line);
}
.feed-bar h2 {
  font-family: var(--athera-display);
  font-size: 30px;
}
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.filter-group {
  display: flex;
  gap: 6px;
  align-items: center;
}
.filter-group .fg-label {
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--athera-grey-light);
  margin-right: 2px;
}
.chip {
  font-family: var(--athera-sans);
  font-size: 12px;
  color: var(--athera-charcoal-light);
  background: var(--athera-white);
  border: 1px solid var(--athera-line);
  border-radius: 999px;
  padding: 6px 13px;
  cursor: pointer;
  transition: all 0.16s ease;
}
.chip:hover {
  border-color: var(--athera-charcoal-light);
}
.chip.is-on {
  background: var(--athera-navy);
  color: #fff;
  border-color: var(--athera-navy);
}
.chip .ct {
  font-family: var(--athera-mono);
  font-size: 10px;
  opacity: 0.7;
  margin-left: 5px;
}

.rec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.rec-card {
  background: var(--athera-white);
  border: 1px solid var(--athera-line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
.rec-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}
.rec-card.state-accepted { border-color: rgba(63, 125, 106, 0.5); }
.rec-card.state-adjusted { border-color: var(--athera-blue); }
.rec-card.state-rejected { opacity: 0.62; }
.rc-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}
.rc-type {
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--athera-blue-deep);
  font-weight: 500;
}
.rc-name {
  font-family: var(--athera-display);
  font-size: 23px;
  line-height: 1.15;
  margin-top: 7px;
}
.rc-branch {
  font-size: 12px;
  color: var(--athera-grey);
  margin-top: 5px;
}
.rc-badges {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex: none;
}
.badge {
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.badge.risk-high { color: var(--status-high); background: var(--status-high-bg); }
.badge.risk-high .dot { background: var(--status-high); }
.badge.risk-medium { color: var(--status-medium); background: var(--status-medium-bg); }
.badge.risk-medium .dot { background: var(--athera-amber); }
.badge.risk-low { color: var(--status-low); background: var(--status-low-bg); }
.badge.risk-low .dot { background: var(--status-low); }
.conf-chip {
  font-family: var(--athera-mono);
  font-size: 10px;
  color: var(--athera-grey);
  border: 1px solid var(--athera-line);
  border-radius: 999px;
  padding: 3px 9px;
}

.gauge {
  margin-top: 2px;
}
.gauge .gl {
  display: flex;
  justify-content: space-between;
  font-family: var(--athera-mono);
  font-size: 11px;
  color: var(--athera-grey);
  margin-bottom: 7px;
}
.gauge .track {
  position: relative;
  height: 8px;
  background: var(--athera-surface);
  border-radius: 999px;
  overflow: hidden;
}
.gauge .fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--athera-blue);
  border-radius: 999px;
  width: 0;
  transition: width 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.gauge .fill.short {
  background: var(--athera-amber);
}
.gauge .demand-line {
  position: absolute;
  top: -3px;
  bottom: -3px;
  width: 2px;
  background: var(--athera-navy);
}
.rc-value {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.rc-value .vlabel {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--athera-grey-light);
}
.rc-value .vnum {
  font-family: var(--athera-display);
  font-size: 24px;
  color: var(--athera-charcoal);
}
.rc-value .vunit {
  font-family: var(--athera-mono);
  font-size: 12px;
  color: var(--athera-grey);
}
.rc-var {
  font-size: 13px;
  color: var(--athera-charcoal-light);
  line-height: 1.5;
}
.rc-var .var-figs {
  font-family: var(--athera-mono);
  color: var(--athera-charcoal);
}
.rc-why {
  font-size: 13.5px;
  color: var(--athera-charcoal-light);
  line-height: 1.62;
  padding-left: 14px;
  border-left: 1px solid var(--athera-line);
}
.driver-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.pill {
  font-size: 11px;
  color: var(--athera-charcoal-light);
  background: var(--athera-off-white);
  border: 1px solid var(--athera-line);
  border-radius: 999px;
  padding: 4px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pill .pdir {
  font-family: var(--athera-mono);
  font-size: 10px;
}
.pill .pdir.up { color: var(--athera-blue-deep); }
.pill .pdir.down { color: var(--athera-amber); }
.pill .pdir.flat { color: var(--athera-grey-light); }
.review-flag {
  font-size: 11px;
  color: var(--status-medium);
  display: inline-flex;
  gap: 7px;
  align-items: center;
}

.rc-foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--athera-line-light);
}
.decide-row {
  display: flex;
  gap: 8px;
}
.decide-row .btn {
  flex: 1;
  justify-content: center;
  padding: 11px 12px;
  font-size: 11px;
}
.btn-accept {
  background: transparent;
  border-color: rgba(63, 125, 106, 0.45);
  color: var(--status-low);
}
.btn-accept:hover { background: var(--status-low-bg); }
.btn-adjust {
  background: transparent;
  border-color: var(--athera-line);
  color: var(--athera-charcoal-light);
}
.btn-adjust:hover { border-color: var(--athera-blue); color: var(--athera-blue-deep); }
.btn-reject {
  background: transparent;
  border-color: var(--athera-line);
  color: var(--athera-grey);
}
.btn-reject:hover { border-color: var(--status-high); color: var(--status-high); }
.decided {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
}
.decided .tag {
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 5px 11px;
  border-radius: 999px;
}
.decided .tag.accepted { background: var(--status-low-bg); color: var(--status-low); }
.decided .tag.adjusted { background: rgba(95, 184, 214, 0.16); color: var(--athera-blue-deep); }
.decided .tag.rejected { background: rgba(55, 65, 81, 0.08); color: var(--athera-grey); }
.decided .dmeta { color: var(--athera-grey); }
.decided .undo {
  margin-left: auto;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--athera-grey-light);
  background: none;
  border: 0;
  cursor: pointer;
}
.decided .undo:hover { color: var(--athera-charcoal); }
.adjust-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
  margin-top: 10px;
}
.adjust-row input {
  flex: 1;
  font-family: var(--athera-mono);
  font-size: 14px;
  border: 1px solid var(--athera-blue);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  background: var(--athera-white);
  color: var(--athera-charcoal);
}
.adjust-row input:focus { outline: none; }

/* ---------------------------------------------------------------- brief (screen 6) */
.brief-doc {
  background: var(--athera-white);
  border: 1px solid var(--athera-line);
  border-radius: var(--radius);
  padding: 56px clamp(32px, 6vw, 72px);
}
.brief-masthead {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--athera-line);
  flex-wrap: wrap;
}
.brief-masthead .eyebrow {
  display: block;
  margin-bottom: 12px;
}
.brief-masthead h1 {
  font-family: var(--athera-display);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 300;
  max-width: 22ch;
}
.brief-masthead .bm-meta {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.brief-section {
  padding: 34px 0;
  border-bottom: 1px solid var(--athera-line-light);
}
.brief-section:last-child { border-bottom: 0; }
.bs-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 18px;
}
.bs-head .bn {
  font-family: var(--athera-mono);
  font-size: 12px;
  color: var(--athera-blue-deep);
}
.bs-head h2 {
  font-family: var(--athera-display);
  font-size: 27px;
}
.brief-section p {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--athera-charcoal-light);
  max-width: 72ch;
  margin: 0 0 14px;
}
.brief-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.brief-list li {
  display: flex;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--athera-line-light);
}
.brief-list li:last-child { border-bottom: 0; }
.bl-marker {
  font-family: var(--athera-mono);
  font-size: 12px;
  color: var(--athera-grey-light);
  flex: none;
  width: 26px;
}
.bl-body .bl-title {
  font-size: 15px;
  color: var(--athera-charcoal);
}
.bl-body .bl-title .ov {
  font-family: var(--athera-mono);
  font-size: 11px;
  color: var(--athera-blue-deep);
  margin-left: 8px;
}
.bl-body .bl-sub {
  font-size: 13px;
  color: var(--athera-grey);
  margin-top: 4px;
  line-height: 1.5;
}
.bl-val {
  margin-left: auto;
  font-family: var(--athera-mono);
  font-size: 13px;
  color: var(--athera-charcoal-light);
  white-space: nowrap;
}
.assumption-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.assumption-list li {
  font-size: 14px;
  color: var(--athera-charcoal-light);
  padding-left: 20px;
  position: relative;
  line-height: 1.6;
}
.assumption-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 1px;
  background: var(--athera-blue);
}

/* ---------------------------------------------------------------- skeleton + loading */
.skeleton {
  background: linear-gradient(
    100deg,
    var(--athera-surface) 30%,
    rgba(255, 255, 255, 0.6) 50%,
    var(--athera-surface) 70%
  );
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer {
  to { background-position: -200% 0; }
}
.sk-line { height: 12px; margin-bottom: 10px; }
.sk-card { height: 220px; border-radius: var(--radius); }
.sk-tile { height: 110px; }
@media (prefers-reduced-motion: reduce) {
  .skeleton { animation: none; }
}

.ai-working {
  min-height: 52vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 60px 24px;
}
.ai-working .rings {
  width: 132px;
  height: 132px;
  margin: 0 auto 36px;
}
.ai-working h2 {
  font-family: var(--athera-display);
  font-size: 34px;
  font-weight: 300;
}
.ai-working .status {
  margin-top: 18px;
  font-family: var(--athera-mono);
  font-size: 13px;
  color: var(--athera-grey);
  min-height: 1.4em;
  transition: opacity 0.3s ease;
}
.ai-working .substatus {
  margin-top: 8px;
  font-size: 13px;
  color: var(--athera-grey-light);
  max-width: 44ch;
}
.spin-ring circle {
  transform-origin: center;
  animation: spin 1.6s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---------------------------------------------------------------- empty + error */
.state-block {
  text-align: center;
  padding: 64px 24px;
  border: 1px solid var(--athera-line);
  border-radius: var(--radius);
  background: var(--athera-white);
}
.state-block .sb-mark {
  font-family: var(--athera-display);
  font-size: 40px;
  color: var(--athera-blue);
}
.state-block h3 {
  font-family: var(--athera-display);
  font-size: 26px;
  margin-top: 12px;
}
.state-block p {
  margin: 12px auto 22px;
  max-width: 46ch;
  color: var(--athera-grey);
  font-size: 14px;
}

/* ---------------------------------------------------------------- footer */
.app-footer {
  background: var(--athera-navy);
  color: rgba(255, 255, 255, 0.6);
  margin-top: 40px;
}
.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 40px 48px 48px;
}
.footer-rule {
  width: 48px;
  height: 1px;
  background: var(--athera-blue);
  margin-bottom: 26px;
}
.app-footer .disclaimer {
  color: rgba(255, 255, 255, 0.52);
  max-width: 92ch;
  font-size: 12.5px;
  line-height: 1.7;
}
.footer-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--athera-line-dark);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-wm {
  color: #fff;
}
.footer-wm .wm-partners { color: rgba(255, 255, 255, 0.55); }
.footer-version {
  color: rgba(255, 255, 255, 0.4);
}

/* ---------------------------------------------------------------- toast */
.toast-region {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}
.toast {
  background: var(--athera-navy);
  color: #fff;
  border-radius: var(--radius);
  padding: 14px 20px;
  font-size: 13px;
  box-shadow: 0 18px 40px -16px rgba(15, 23, 42, 0.5);
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 360px;
  animation: toastIn 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);
  border-left: 2px solid var(--athera-blue);
}
.toast.is-out {
  animation: toastOut 0.3s ease forwards;
}
.toast .tdot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--athera-blue);
  flex: none;
}
@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes toastOut {
  to { opacity: 0; transform: translateY(8px); }
}

/* ---------------------------------------------------------------- misc */
.muted { color: var(--athera-grey); }
.stack-1 > * + * { margin-top: 8px; }
.stack-2 > * + * { margin-top: 16px; }
.stack-3 > * + * { margin-top: 24px; }
.stack-4 > * + * { margin-top: 32px; }
.stack-5 > * + * { margin-top: 48px; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.tag-soft {
  font-family: var(--athera-mono);
  font-size: 11px;
  color: var(--athera-grey);
  background: var(--athera-surface);
  padding: 3px 9px;
  border-radius: 999px;
}

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .chart-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .header-inner,
  .hero-inner,
  .shell,
  .footer-inner { padding-left: 24px; padding-right: 24px; }
  .form-grid,
  .panel-grid,
  .rec-grid,
  .movers { grid-template-columns: 1fr; }
  .tile-grid.cols-4,
  .tile-grid.cols-5,
  .tile-grid.cols-3,
  .recap-grid,
  .how-strip { grid-template-columns: 1fr 1fr; }
  .field.span-2 { grid-column: auto; }
}
@media (max-width: 560px) {
  .tile-grid.cols-4,
  .tile-grid.cols-5,
  .tile-grid.cols-3,
  .recap-grid,
  .how-strip,
  .hero-stats { grid-template-columns: 1fr; }
  .shell { padding-top: 40px; }
  .actions-bar { flex-direction: column; align-items: stretch; }
  .actions-bar .btn { justify-content: center; }
}
