:root {
  color-scheme: dark;
  --bg: #07101e;
  --bg-deep: #03070f;
  --bg-surface: #0d1730;
  --card: rgba(12, 20, 39, 0.88);
  --card-border: rgba(255, 255, 255, 0.08);
  --text: #f8fafc;
  --muted: #9aa8c1;
  --line: rgba(255, 255, 255, 0.09);
  
  /* Ukrainian Sports Theme Palette */
  --accent: #f4c74f;
  --accent-hover: #ffd166;
  --accent-blue: #58a6ff;
  --accent-blue-strong: #2f81f7;
  --ice: #bde8ff;
  --ice-soft: rgba(189, 232, 255, 0.16);
  --ukraine-blue: #2b6fff;
  --ukraine-yellow: #ffd54d;
  
  --success: #10b981;
  --danger: #ef4444;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.52);
}

* {
  box-sizing: border-box;
}

.hidden {
  display: none !important;
}

.ghost-button--small {
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
}

.card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.trip-calculations-list-wrap {
  margin-top: 14px;
}

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

.trip-calculation-card {
  border-radius: 18px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
}

.trip-calculation-card__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.trip-calculation-card__head h4 {
  margin-bottom: 6px;
}

.trip-calculation-card__head p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.trip-calculation-card__meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.85rem;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(43, 111, 255, 0.22), transparent 28%),
    radial-gradient(circle at 88% 14%, rgba(255, 213, 77, 0.14), transparent 24%),
    radial-gradient(circle at 62% 32%, rgba(189, 232, 255, 0.1), transparent 22%),
    linear-gradient(180deg, #0a1222 0%, var(--bg) 38%, var(--bg-deep) 100%);
}

.background-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.14;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 92%);
}

.brand-ribbon {
  position: fixed;
  inset: 0 0 auto;
  height: 10px;
  background: linear-gradient(90deg, var(--ukraine-blue) 0 50%, var(--ukraine-yellow) 50% 100%);
  box-shadow: 0 10px 30px rgba(255, 213, 77, 0.12);
  pointer-events: none;
  z-index: 1;
}

.shell {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 18px;
  padding: 0 4px;
}

.topbar p.eyebrow {
  color: var(--accent);
}

.topbar h1 {
  max-width: none;
  margin-bottom: 0;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  letter-spacing: -0.05em;
  line-height: 1.02;
  color: var(--text);
}

.topbar__badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
  gap: 20px;
  align-items: stretch;
  margin-bottom: 18px;
}

.hero__copy,
.hero__panel,
.card {
  border: 1px solid var(--card-border);
  background: var(--card);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.hero__copy {
  border-radius: 26px;
  padding: 30px;
}

.hero__panel {
  border-radius: 26px;
  padding: 22px;
  display: grid;
  gap: 16px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--ice);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  font-weight: 800;
}

.hero__label {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(2.2rem, 4.3vw, 4.3rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  max-width: 13ch;
  background: linear-gradient(135deg, #fff 40%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lead {
  max-width: 64ch;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.pill,
.team-chip,
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 9px 14px;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1;
}

.pill {
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent-blue);
  border: 1px solid rgba(59, 130, 246, 0.15);
}

.panel-card {
  border-radius: 22px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(245, 194, 66, 0.08), rgba(245, 194, 66, 0.02));
  border: 1px solid rgba(245, 194, 66, 0.12);
}

.panel-card--accent strong {
  display: block;
  margin-top: 4px;
  font-size: 1.15rem;
  color: var(--accent);
}

.panel-card__label,
.mini-stat span,
.summary-list span,
.total-row span,
.field span,
.vehicle-row span {
  color: var(--muted);
  font-size: 0.88rem;
}

.panel-card p {
  margin-bottom: 0;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.9rem;
}

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

.mini-stat {
  border-radius: 18px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.mini-stat strong {
  display: block;
  margin-top: 8px;
  font-size: 1.8rem;
  letter-spacing: -0.04em;
  color: var(--text);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.6fr);
  gap: 20px;
  margin-top: 18px;
}

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

.card {
  border-radius: 24px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background:
    linear-gradient(180deg, rgba(12, 20, 39, 0.92), rgba(8, 14, 26, 0.88)),
    radial-gradient(circle at top right, rgba(43, 111, 255, 0.08), transparent 34%);
}

.card--wide {
  min-height: 100%;
}

.section-heading,
.subheading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.subnote {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.2rem, 1.8vw, 1.7rem);
  letter-spacing: -0.04em;
  color: var(--text);
}

.status {
  background: rgba(16, 185, 129, 0.08);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.15);
}

.status--live {
  background: rgba(245, 194, 66, 0.08);
  color: var(--accent);
  border: 1px solid rgba(245, 194, 66, 0.15);
}

.market-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

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

.market-card {
  min-height: 100%;
}

.rates-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.rate-tile,
.forecast-box,
.fuel-row,
.transport-row {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.rate-tile {
  padding: 16px;
  display: grid;
  gap: 6px;
}

.rate-tile span,
.forecast-box span,
.fuel-row span,
.transport-row span,
.microcopy {
  color: var(--muted);
}

.rate-tile strong {
  font-size: 1.65rem;
  letter-spacing: -0.04em;
  color: var(--text);
}

.rate-tile small {
  font-size: 0.82rem;
  color: var(--muted);
}

.microcopy {
  margin: 14px 0 0;
  font-size: 0.9rem;
  line-height: 1.6;
}

.forecast-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.field select {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 23, 42, 0.6);
  padding: 14px 16px;
  font: inherit;
  color: var(--text);
  outline: none;
}

.forecast-box {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
}

.forecast-box div {
  display: grid;
  gap: 6px;
}

.forecast-box strong {
  font-size: 1.5rem;
  letter-spacing: -0.04em;
  color: var(--accent);
}

.fuel-grid,
.transport-grid {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.fuel-row,
.transport-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 15px 16px;
}

.fuel-row strong,
.transport-row strong {
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.inline-actions {
  margin-top: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.primary-button {
  border: 1px solid rgba(255, 213, 77, 0.18);
  background: linear-gradient(180deg, var(--accent-hover), var(--accent));
  color: #0b121f;
  border-radius: 999px;
  padding: 11px 22px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(255, 213, 77, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(255, 213, 77, 0.22);
}

.primary-button:active {
  transform: translateY(1px);
}

.card--side {
  display: grid;
  align-content: start;
}

.summary-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.summary-list div,
.total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.form-grid,
.cost-stack {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

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

.field input {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(15, 23, 42, 0.6);
  padding: 14px 16px;
  font: inherit;
  color: var(--text);
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.field input:focus,
.field select:focus {
  border-color: rgba(245, 194, 66, 0.5);
  box-shadow: 0 0 0 4px rgba(245, 194, 66, 0.12);
}

.vehicle-table-wrap {
  margin-top: 22px;
}

.vehicle-table {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.vehicle-row {
  display: grid;
  grid-template-columns: 0.9fr 1fr 0.7fr 0.8fr 0.6fr 0.7fr 0.7fr auto;
  gap: 10px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  align-items: end;
}

.vehicle-row label {
  display: grid;
  gap: 8px;
}

.vehicle-row input,
.vehicle-row select {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(15, 23, 42, 0.5);
  padding: 10px 12px;
  font: inherit;
  color: var(--text);
  outline: none;
}

.vehicle-row input:focus,
.vehicle-row select:focus {
  border-color: rgba(245, 194, 66, 0.4);
}

.vehicle-row input[readonly] {
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  border-color: rgba(255, 255, 255, 0.04);
}

.ghost-button {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  color: var(--text);
  border-radius: 999px;
  padding: 10px 18px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.ghost-button:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.ghost-button--danger {
  border-color: rgba(239, 68, 68, 0.2);
  background: rgba(239, 68, 68, 0.08);
  color: var(--danger);
}

.ghost-button--danger:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
}

.vehicle-row__actions {
  display: flex;
  align-items: end;
}

.vehicle-row__result {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.vehicle-row__result div {
  display: grid;
  gap: 4px;
}

.vehicle-row__result strong {
  font-size: 1.04rem;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.note-box {
  margin-top: 18px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.note-box strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.92rem;
  color: var(--text);
}

.note-box p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.kpi {
  min-width: 96px;
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.025));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
}

.kpi span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 6px;
}

.kpi strong {
  display: block;
  font-size: 1.2rem;
  letter-spacing: -0.04em;
  color: var(--accent);
}

.warning-banner {
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(43, 111, 255, 0.18), rgba(255, 213, 77, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  line-height: 1.6;
}

.card--side {
  position: sticky;
  top: 20px;
  align-self: start;
}

.totals {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.total-row {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.total-row--grand {
  color: var(--accent);
  font-size: 1.15rem;
}

.total-row--grand strong {
  font-size: 1.35rem;
}

/* ------------------------------------------------------------- */
/* New UI Components: Forms, Team Grid, Garage Grid               */
/* ------------------------------------------------------------- */

.content-main-cards {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Inline Forms */
.inline-form {
  margin-top: 14px;
  margin-bottom: 20px;
  padding: 20px;
  border-radius: 18px;
  background: rgba(245, 194, 66, 0.02);
  border: 1px dashed rgba(245, 194, 66, 0.2);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.inline-form.hidden {
  display: none;
}

.inline-form h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--accent);
}

.form-row-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.form-row-grid--cars {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.inline-form__actions {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}

.form-error {
  padding: 10px 14px;
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.form-error.hidden {
  display: none;
}

.app-shell {
  width: min(1600px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 48px;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 20px;
  min-height: 100vh;
  position: relative;
  isolation: isolate;
}

.app-shell::before,
.app-shell::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
}

.app-shell::before {
  inset: 56px auto auto 0;
  width: min(40vw, 580px);
  height: 420px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 60%),
    linear-gradient(135deg, rgba(43, 111, 255, 0.18), rgba(255, 255, 255, 0) 62%);
  clip-path: polygon(0 20%, 66% 0, 100% 100%, 16% 100%);
  opacity: 0.45;
}

.app-shell::after {
  inset: auto 0 0 auto;
  width: 540px;
  height: 540px;
  background:
    radial-gradient(circle at 35% 35%, rgba(255, 213, 77, 0.16), transparent 36%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.06), transparent 58%);
  filter: blur(12px);
  opacity: 0.45;
}

.sidebar {
  position: sticky;
  top: 20px;
  align-self: start;
  height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(13, 23, 48, 0.96), rgba(6, 12, 24, 0.96)),
    radial-gradient(circle at top, rgba(43, 111, 255, 0.14), transparent 38%);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.sidebar::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--ukraine-blue), var(--ukraine-yellow));
}

.sidebar__brand {
  position: relative;
}

.sidebar__brand h1 {
  margin: 0 0 10px;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
  background: linear-gradient(135deg, #fff 34%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sidebar__brand h1 span {
  display: block;
  color: var(--ice);
  -webkit-text-fill-color: var(--ice);
  background: none;
  font-size: 0.78em;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-top: 6px;
}

.sidebar__brand-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.94rem;
}

.sidebar__label {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(189, 232, 255, 0.74);
  font-weight: 800;
}

.sidebar__nav {
  display: grid;
  gap: 10px;
}

.sidebar__button {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  text-align: left;
  font-size: 0.96rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease;
}

.sidebar__button:hover {
  transform: translateX(2px);
  border-color: rgba(255, 213, 77, 0.28);
}

.sidebar__button.is-active {
  background: linear-gradient(135deg, rgba(43, 111, 255, 0.22), rgba(255, 213, 77, 0.12));
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--accent);
}

.sidebar__meta {
  display: grid;
  gap: 12px;
}

.workspace {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}

.workspace__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  padding: 2px 6px;
  position: relative;
}

.workspace__identity {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.workspace__emblem {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.18)),
    radial-gradient(circle at 34% 30%, var(--ukraine-blue), transparent 54%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 0 0 1px rgba(43, 111, 255, 0.18),
    0 16px 32px rgba(0, 0, 0, 0.25);
  position: relative;
}

.workspace__emblem::before,
.workspace__emblem::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  inset: 12px 18px;
  border: 2px solid rgba(43, 111, 255, 0.62);
}

.workspace__emblem::after {
  inset: 20px 10px;
  border-color: rgba(255, 213, 77, 0.85);
  transform: rotate(-18deg);
}

.workspace__meta {
  display: grid;
  justify-items: end;
}

.workspace__header h2 {
  margin-bottom: 10px;
  font-size: clamp(1.6rem, 2.8vw, 2.4rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.section-panel {
  display: none;
}

.section-panel.is-active {
  display: block;
}

.section-heading--compact {
  margin-bottom: 14px;
}

.calc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: 20px;
  margin-bottom: 20px;
}

.roster-selection {
  display: grid;
  gap: 16px;
}

.roster-section {
  border-radius: 20px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
}

.roster-section h4 {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.95rem;
}

.roster-checklist {
  display: grid;
  gap: 10px;
}

.roster-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(255, 255, 255, 0.02);
}

.roster-option input {
  margin-top: 4px;
}

.roster-option strong {
  display: block;
}

.roster-option span {
  color: var(--muted);
}

.trip-roster-summary {
  margin-top: 12px;
  color: var(--muted);
}

.calc-grid .card {
  height: 100%;
}

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

  .sidebar {
    position: relative;
    top: 0;
    height: auto;
  }

  .workspace__header,
  .calc-grid {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 720px) {
  .app-shell {
    width: min(100% - 20px, 1600px);
    padding-top: 10px;
  }

  .sidebar {
    padding: 18px;
  }

  .sidebar__button {
    padding: 12px 14px;
  }

  .topbar__badges {
    flex-wrap: wrap;
  }
}

/* Team Section Styles */
.team-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 14px;
}

.team-section-block {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.01);
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.team-section-title {
  font-size: 0.9rem;
  color: var(--accent-blue);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  font-weight: 700;
}

.team-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

.team-member-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.team-member-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  border-color: rgba(245, 194, 66, 0.2);
}

.member-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  background: rgba(245, 194, 66, 0.08);
  padding: 4px 8px;
  border-radius: 6px;
  margin-bottom: 8px;
  border: 1px solid rgba(245, 194, 66, 0.12);
}

.member-name {
  margin: 0 0 6px 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.member-desc {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.45;
}

/* Garage Section Styles */
.garage-grid {
  margin-top: 14px;
}

.garage-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
}

.garage-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.garage-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  border-color: rgba(245, 194, 66, 0.2);
}

.garage-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.car-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.car-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 3px 6px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.car-vin {
  font-size: 0.8rem;
  color: var(--muted);
}

.car-vin code {
  background: rgba(0, 0, 0, 0.3);
  padding: 2px 5px;
  border-radius: 4px;
  font-family: monospace;
  color: var(--accent-blue);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.car-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.75rem;
}

.car-specs div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.car-specs span {
  color: var(--muted);
}

.car-specs strong {
  color: var(--text);
}

.fuel-badge {
  font-size: 0.7rem;
  padding: 1px 5px;
  border-radius: 4px;
  text-align: center;
  width: fit-content;
  font-weight: 700;
}

.fuel-badge.fuel-a95 {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.15);
}

.fuel-badge.fuel-diesel {
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent-blue);
  border: 1px solid rgba(59, 130, 246, 0.15);
}

.fuel-badge.fuel-lpg {
  background: rgba(245, 194, 66, 0.08);
  color: var(--accent);
  border: 1px solid rgba(245, 194, 66, 0.12);
}

/* Loading & Empty States */
.loading-state,
.empty-state,
.error-state {
  padding: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px dashed rgba(255, 255, 255, 0.05);
}

.error-state {
  color: var(--danger);
  background: rgba(239, 68, 68, 0.02);
  border-color: rgba(239, 68, 68, 0.1);
}

/* ------------------------------------------------------------- */
/* Responsive Queries                                            */
/* ------------------------------------------------------------- */

@media (max-width: 980px) {
  .topbar {
    align-items: start;
    flex-direction: column;
  }

  .hero,
  .content-grid,
  .content-grid--logistics {
    grid-template-columns: 1fr;
  }

  .market-grid,
  .market-grid--wide,
  .rates-grid,
  .forecast-controls,
  .forecast-box {
    grid-template-columns: 1fr;
  }

  .card--side {
    position: static;
  }

  /* Compact Responsive Layout for Vehicle Calc rows on mobile */
  .vehicle-row {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 20px;
  }
  
  .vehicle-row label:first-child {
    grid-column: 1 / -1;
  }
  
  .vehicle-row label:nth-child(2) {
    grid-column: 1 / -1;
  }

  .vehicle-row__actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

  .vehicle-row__result {
    grid-column: 1 / -1;
    flex-direction: row;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 20px, 1240px);
    padding-top: 20px;
    padding-bottom: 28px;
  }

  .hero__copy,
  .hero__panel,
  .card {
    border-radius: 20px;
    padding: 18px;
  }

  .panel-grid {
    grid-template-columns: 1fr 1fr;
  }

  .topbar__badges {
    width: 100%;
  }

  .kpi {
    flex: 1 1 0;
    min-width: 0;
  }

  h1 {
    font-size: clamp(1.9rem, 10vw, 3rem);
  }
}
