:root {
  --brand-orange: #ee5b08;
  --brand-orange-dark: #cc4a03;
  --brand-blue: #185997;
  --brand-blue-deep: #103e68;
  --brand-ink: #161616;
  --brand-forest: #213f36;
  --brand-cream: #f6f1e8;
  --brand-sand: #efe6d8;
  --brand-white: #ffffff;
  --brand-border: rgba(22, 22, 22, 0.08);
  --brand-muted: #6b7178;
  --brand-success: #1f8f50;
  --brand-warning: #d58a00;
  --brand-danger: #cf4b3b;
  --shadow-soft: 0 24px 60px rgba(22, 22, 22, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Aptos", "Segoe UI", Arial, sans-serif;
  color: var(--brand-ink);
  background:
    radial-gradient(circle at top left, rgba(238, 91, 8, 0.12), transparent 30%),
    radial-gradient(circle at 82% 12%, rgba(24, 89, 151, 0.12), transparent 24%),
    linear-gradient(180deg, #fcfaf5 0%, #f3ede2 100%);
}

body {
  min-height: 100vh;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  background:
    linear-gradient(180deg, rgba(24, 89, 151, 0.16), transparent 20%),
    linear-gradient(180deg, #141718 0%, #18322c 58%, #20342e 100%);
  color: var(--brand-white);
  padding: 28px 20px 24px;
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.06);
}

.brand {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 26px;
}

.brand img {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: var(--brand-white);
  padding: 5px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    0 10px 24px rgba(0, 0, 0, 0.16);
}

.brand h1,
.brand h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 0.95;
  letter-spacing: 0.01em;
}

.brand-subtitle {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar-copy {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.45;
  margin: 0 0 24px;
}

.sidebar-section {
  margin-top: 26px;
}

.sidebar-label {
  display: block;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sidebar-controls {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.sidebar-search {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: var(--brand-white);
  padding: 12px 14px;
}

.sidebar-search::placeholder {
  color: rgba(255, 255, 255, 0.52);
}

.sidebar-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-chip {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
}

.filter-chip.active {
  background: rgba(238, 91, 8, 0.18);
  border-color: rgba(238, 91, 8, 0.55);
  color: var(--brand-white);
}

.manager-list {
  display: grid;
  gap: 12px;
}

.manager-group {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.manager-group:first-of-type {
  margin-top: 0;
}

.manager-group-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.manager-group-title span:last-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.sidebar-empty {
  margin-top: 8px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  padding: 14px 12px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.sidebar-note {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.45;
}

.manager-card {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.055);
  color: var(--brand-white);
  border-radius: 18px;
  padding: 14px 12px;
  text-align: left;
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
}

.manager-card.active {
  border-color: rgba(238, 91, 8, 0.8);
  box-shadow: inset 0 0 0 1px rgba(238, 91, 8, 0.35);
  background: rgba(255, 255, 255, 0.09);
}

.manager-card:hover {
  transform: translateY(-1px);
}

.manager-meta {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
}

.status-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.status-green {
  background: var(--brand-success);
}

.status-yellow {
  background: var(--brand-warning);
}

.status-red {
  background: var(--brand-danger);
}

.workspace {
  padding: 28px;
}

.topbar,
.header-row {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}

.year-toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.year-toolbar-top {
  width: 100%;
  justify-content: flex-end;
}

.detail-year-nav {
  display: grid;
  gap: 6px;
  justify-items: end;
}

.detail-year-select-wrap {
  justify-content: flex-end;
}

.detail-year-caption {
  color: var(--brand-muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.detail-year-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
  padding: 6px;
  border-radius: 999px;
  background: rgba(24, 89, 151, 0.06);
}

.detail-year-chip {
  border: 1px solid transparent;
  background: transparent;
  color: var(--brand-forest);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
}

.detail-year-chip small {
  font-size: 11px;
  color: var(--brand-muted);
}

.detail-year-chip.active {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(238, 91, 8, 0.4);
  color: var(--brand-orange-dark);
  box-shadow: 0 8px 18px rgba(22, 22, 22, 0.06);
}

.detail-year-chip.active small {
  color: var(--brand-orange-dark);
}

.year-toolbar select {
  border-radius: 14px;
  border: 1px solid rgba(22, 22, 22, 0.1);
  background: rgba(255, 255, 255, 0.92);
  padding: 10px 12px;
}

.page-title,
.metric-value,
.section-title,
.card-title,
.login-title {
  font-family: Georgia, "Times New Roman", serif;
}

.page-title {
  font-size: clamp(2.4rem, 4vw, 4.4rem);
  margin: 0;
  line-height: 0.92;
  color: var(--brand-forest);
  letter-spacing: 0.01em;
}

.subtle {
  color: var(--brand-muted);
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: flex-start;
}

.button {
  border: none;
  border-radius: 16px;
  padding: 13px 18px;
  font-weight: 700;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.button-primary {
  background: var(--brand-orange);
  color: var(--brand-white);
  box-shadow: 0 10px 22px rgba(238, 91, 8, 0.22);
}

.button-primary:hover {
  background: var(--brand-orange-dark);
  transform: translateY(-1px);
}

.button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.button-secondary {
  background: var(--brand-blue);
  color: var(--brand-white);
  box-shadow: 0 10px 22px rgba(24, 89, 151, 0.18);
}

.button-ghost {
  background: rgba(255, 255, 255, 0.86);
  color: var(--brand-ink);
  border: 1px solid rgba(22, 22, 22, 0.08);
}

.button-muted {
  background: rgba(24, 89, 151, 0.1);
  color: var(--brand-blue-deep);
}

.hero-card,
.panel,
.login-card,
.summary-card {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow:
    var(--shadow-soft),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.hero-card,
.panel {
  border-radius: 28px;
  padding: 18px;
  margin-top: 18px;
}

.summary-grid,
.field-grid,
.detail-grid {
  display: grid;
  gap: 16px;
}

.summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.summary-grid-manager {
  grid-template-columns: minmax(240px, 1.25fr) repeat(4, minmax(0, 1fr));
}

.summary-card {
  border-radius: 22px;
  padding: 18px 18px 16px;
}

.summary-card-highlight {
  background: linear-gradient(145deg, rgba(24, 89, 151, 0.1), rgba(255, 255, 255, 0.96));
  border: 1px solid rgba(24, 89, 151, 0.14);
}

.summary-card-highlight.is-positive {
  background: linear-gradient(145deg, rgba(31, 143, 80, 0.12), rgba(255, 255, 255, 0.98));
  border-color: rgba(31, 143, 80, 0.18);
}

.card-title {
  font-size: 15px;
  color: var(--brand-muted);
  margin: 0 0 12px;
}

.metric-value {
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  margin: 0;
  color: var(--brand-forest);
}

.metric-note {
  margin: 8px 0 0;
  color: var(--brand-muted);
  font-size: 14px;
}

.section-title {
  margin: 0 0 8px;
  font-size: 2rem;
  color: var(--brand-forest);
}

.section-copy {
  margin: 0 0 18px;
  color: var(--brand-muted);
}

.detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.detail-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: baseline;
  border-top: 1px solid rgba(22, 22, 22, 0.08);
  padding: 14px 0;
}

.detail-row:first-child {
  border-top: none;
  padding-top: 0;
}

.detail-row strong {
  display: block;
  margin-bottom: 4px;
}

.detail-row span {
  color: var(--brand-muted);
  font-size: 14px;
}

.detail-value {
  font-size: clamp(1.15rem, 2vw, 1.8rem);
  font-family: Georgia, "Times New Roman", serif;
  white-space: nowrap;
}

.positive {
  color: var(--brand-blue);
}

.negative {
  color: #9b513e;
}

.field-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
  display: grid;
  gap: 8px;
}

.field-span-2 {
  grid-column: 1 / -1;
}

.field label {
  font-weight: 700;
  color: var(--brand-forest);
}

.field input {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(22, 22, 22, 0.1);
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.9);
}

.field select {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(22, 22, 22, 0.1);
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.9);
}

.field input:focus {
  outline: 2px solid rgba(238, 91, 8, 0.24);
  border-color: rgba(238, 91, 8, 0.4);
}

.field select:focus {
  outline: 2px solid rgba(238, 91, 8, 0.24);
  border-color: rgba(238, 91, 8, 0.4);
}

.field-readonly input {
  background: rgba(24, 89, 151, 0.06);
  color: var(--brand-muted);
  border-style: dashed;
}

.input-shell {
  position: relative;
}

.suffix {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--brand-muted);
  pointer-events: none;
}

.help {
  color: var(--brand-muted);
  font-size: 13px;
}

.inline-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.login-card {
  width: min(680px, 100%);
  padding: 28px;
  border-radius: 32px;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.login-brand img {
  width: 78px;
  height: 78px;
  border-radius: 20px;
  background: var(--brand-white);
  padding: 6px;
}

.login-title {
  margin: 0;
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  line-height: 0.92;
  color: var(--brand-forest);
}

.login-grid {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.pill-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pill {
  border-radius: 999px;
  background: rgba(24, 89, 151, 0.08);
  color: var(--brand-blue);
  padding: 10px 14px;
  font-weight: 700;
}

.error-box {
  background: rgba(207, 75, 59, 0.1);
  color: #8e2d22;
  border: 1px solid rgba(207, 75, 59, 0.18);
  border-radius: 16px;
  padding: 12px 14px;
}

.success-box {
  background: rgba(31, 143, 80, 0.12);
  color: #196a3d;
  border: 1px solid rgba(31, 143, 80, 0.18);
  border-radius: 16px;
  padding: 12px 14px;
}

.toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.dashboard-toolbar {
  margin-bottom: 16px;
}

.dashboard-controls {
  max-width: 420px;
}

.dashboard-controls .filter-chip {
  border: 1px solid rgba(22, 22, 22, 0.12);
  background: rgba(24, 89, 151, 0.05);
  color: var(--brand-forest);
}

.dashboard-controls .filter-chip.active {
  background: rgba(238, 91, 8, 0.12);
  border-color: rgba(238, 91, 8, 0.4);
  color: var(--brand-orange-dark);
}

.account-switcher {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.account-switch {
  border: 1px solid rgba(24, 89, 151, 0.12);
  background: rgba(24, 89, 151, 0.08);
  color: var(--brand-blue);
  border-radius: 999px;
  padding: 12px 16px;
  display: grid;
  gap: 4px;
  text-align: left;
}

.account-switch strong {
  color: var(--brand-blue);
}

.account-switch span {
  font-size: 13px;
  color: var(--brand-muted);
}

.account-switch.active {
  background: rgba(238, 91, 8, 0.12);
  border-color: rgba(238, 91, 8, 0.32);
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.manager-year-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.manager-year-card {
  border: 1px solid rgba(22, 22, 22, 0.08);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 22px;
  padding: 18px 18px 16px;
  display: grid;
  gap: 14px;
  text-align: left;
}

.manager-year-card.active {
  border-color: rgba(238, 91, 8, 0.55);
  box-shadow: inset 0 0 0 1px rgba(238, 91, 8, 0.18);
}

.manager-year-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.manager-year-head strong {
  color: var(--brand-forest);
  font-size: 1.5rem;
}

.manager-year-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.manager-year-label {
  display: block;
  color: var(--brand-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.manager-year-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(24, 89, 151, 0.12);
  color: var(--brand-blue);
  font-size: 12px;
  font-weight: 700;
}

.manager-year-signal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(24, 89, 151, 0.07);
  color: var(--brand-forest);
  font-size: 12px;
  font-weight: 700;
}

.manager-year-values {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.manager-year-values span {
  display: block;
  color: var(--brand-muted);
  font-size: 13px;
  margin-bottom: 4px;
}

.manager-year-values strong {
  color: var(--brand-forest);
}

.manager-year-footer {
  border-top: 1px solid rgba(22, 22, 22, 0.08);
  padding-top: 12px;
  color: var(--brand-blue);
  font-size: 13px;
  font-weight: 700;
}

.manager-home-note {
  background: rgba(255, 255, 255, 0.62);
}

.detail-hero {
  overflow: hidden;
}

.manager-detail-panel {
  padding: 24px;
}

.manager-detail-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 22px;
}

.manager-detail-nav {
  display: grid;
  gap: 10px;
  align-content: start;
}

.manager-detail-tab {
  border: 1px solid rgba(22, 22, 22, 0.08);
  background: rgba(24, 89, 151, 0.05);
  color: var(--brand-forest);
  border-radius: 18px;
  padding: 16px 18px;
  text-align: left;
  font-weight: 700;
}

.manager-detail-tab.active {
  background: rgba(238, 91, 8, 0.12);
  border-color: rgba(238, 91, 8, 0.34);
  color: var(--brand-orange-dark);
  box-shadow: inset 0 0 0 1px rgba(238, 91, 8, 0.08);
}

.manager-detail-content {
  min-width: 0;
}

.manager-detail-surface {
  background: transparent;
}

.manager-panel-copy {
  margin-bottom: 18px;
}

.manager-panel-copy .section-copy {
  margin-bottom: 0;
}

.simulation-toolbar {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.simulation-nav {
  justify-items: start;
}

.simulation-year-list {
  justify-content: flex-start;
}

.simulation-status-card {
  min-width: min(100%, 320px);
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(24, 89, 151, 0.07);
  border: 1px solid rgba(24, 89, 151, 0.14);
}

.simulation-status-card.is-positive {
  background: rgba(31, 143, 80, 0.08);
  border-color: rgba(31, 143, 80, 0.18);
}

.simulation-status-label {
  color: var(--brand-muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.simulation-status-card strong {
  color: var(--brand-forest);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
}

.overview-card {
  border: 1px solid rgba(22, 22, 22, 0.08);
  background: rgba(255, 255, 255, 0.66);
  color: var(--brand-ink);
  border-radius: 22px;
  padding: 18px;
  display: grid;
  gap: 14px;
  text-align: left;
}

.overview-card.active {
  border-color: rgba(238, 91, 8, 0.7);
  box-shadow: inset 0 0 0 1px rgba(238, 91, 8, 0.18);
}

.overview-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.overview-subline {
  margin-top: 4px;
  color: var(--brand-muted);
  font-size: 13px;
}

.overview-status {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.overview-status-wrap {
  display: grid;
  justify-items: center;
  gap: 4px;
}

.overview-status-wrap small {
  color: var(--brand-muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.overview-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.overview-metrics span {
  display: block;
  color: var(--brand-muted);
  font-size: 13px;
  margin-bottom: 4px;
}

.overview-metrics strong {
  color: var(--brand-forest);
}

.overview-footer {
  border-top: 1px solid rgba(22, 22, 22, 0.08);
  padding-top: 10px;
  color: var(--brand-blue);
  font-size: 13px;
  font-weight: 700;
}

.form-section {
  display: grid;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(22, 22, 22, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.52);
}

.form-section-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.form-section-header strong {
  color: var(--brand-forest);
}

.form-section-header span {
  color: var(--brand-muted);
  font-size: 13px;
}

.form-section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.manage-year-toolbar {
  display: grid;
  gap: 14px;
}

.manage-year-copy {
  display: grid;
  gap: 4px;
}

.manage-year-copy strong {
  color: var(--brand-forest);
}

.manage-year-copy span {
  color: var(--brand-muted);
  font-size: 14px;
}

.manage-year-controls {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.manage-year-list {
  justify-content: flex-start;
  padding-left: 0;
  background: transparent;
}

.history-list {
  display: grid;
  gap: 10px;
}

.history-entry,
.history-empty {
  border: 1px solid rgba(22, 22, 22, 0.08);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 16px;
  padding: 12px 14px;
}

.history-entry strong {
  display: block;
  color: var(--brand-forest);
  margin-bottom: 4px;
}

.history-entry.current {
  border-color: rgba(24, 89, 151, 0.16);
  background: rgba(24, 89, 151, 0.05);
}

.history-entry span,
.history-empty {
  color: var(--brand-muted);
  font-size: 14px;
}

.account-list {
  display: grid;
  gap: 14px;
}

.account-card {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(320px, 1.4fr);
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid rgba(22, 22, 22, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.58);
}

.account-card-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
}

.account-card-actions input {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(22, 22, 22, 0.1);
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.95);
}

.formula-box {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: stretch;
}

.formula-step {
  min-width: 170px;
  flex: 1 1 170px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(24, 89, 151, 0.06);
  border: 1px solid rgba(24, 89, 151, 0.12);
}

.formula-step span {
  display: block;
  color: var(--brand-muted);
  font-size: 14px;
  margin-bottom: 8px;
}

.formula-step strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
  color: var(--brand-forest);
}

.formula-step.highlight {
  background: rgba(238, 91, 8, 0.08);
  border-color: rgba(238, 91, 8, 0.18);
}

.formula-step.muted {
  background: rgba(22, 22, 22, 0.05);
  border-color: rgba(22, 22, 22, 0.08);
}

.formula-operator {
  align-self: center;
  color: var(--brand-muted);
  font-size: 1.6rem;
  font-weight: 700;
  padding: 0 2px;
}

.section-divider {
  height: 1px;
  background: rgba(22, 22, 22, 0.08);
  margin: 18px 0 16px;
}

.hidden {
  display: none !important;
}

@media (max-width: 1100px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .overview-grid,
  .manager-year-grid,
  .form-section-grid,
  .summary-grid,
  .detail-grid,
  .field-grid {
    grid-template-columns: 1fr 1fr;
  }

  .manager-detail-layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .simulation-status-card {
    min-width: 260px;
  }
}

@media (max-width: 760px) {
  .workspace {
    padding: 16px;
  }

  .sidebar {
    padding: 18px 16px;
  }

  .overview-grid,
  .manager-year-grid,
  .form-section-grid,
  .summary-grid,
  .detail-grid,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .manager-detail-layout {
    grid-template-columns: 1fr;
  }

  .overview-metrics,
  .manager-year-values,
  .inline-actions {
    grid-template-columns: 1fr;
  }

  .simulation-status-card {
    width: 100%;
    min-width: 0;
  }

  .account-card {
    grid-template-columns: 1fr;
  }

  .account-card-actions {
    grid-template-columns: 1fr;
  }

  .manage-year-controls,
  .detail-year-select-wrap {
    justify-content: flex-start;
  }

  .login-card {
    padding: 22px 18px;
  }
}
