:root {
  --ink: #f5f3e8;
  --muted: #92968d;
  --line: #33362f;
  --line-soft: #272923;
  --bg: #0c0d0b;
  --sidebar: #11120f;
  --panel: #171916;
  --panel-2: #1d1f1b;
  --yellow: #ffe900;
  --orange: #ff8514;
  --red: #ef5b3e;
  --amber: #e7a735;
  --green: #2fc66d;
  --blue: #51a7f9;
  --radius: 7px;
  --sidebar-width: 236px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
  font-size: 14px;
  letter-spacing: 0;
  min-width: 320px;
}
button, input, select { font: inherit; }
button { color: inherit; }
.app-shell { display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  background: var(--sidebar);
  border-right: 1px solid var(--line-soft);
  z-index: 30;
}
.brand {
  display: flex;
  align-items: center;
  height: 108px;
  padding: 24px 22px;
  border-bottom: 1px solid var(--line-soft);
}
.brand img { width: 180px; max-height: 72px; object-fit: contain; object-position: left center; }
.nav-list { display: grid; gap: 5px; padding: 22px 14px; }
.nav-item {
  border: 0;
  background: transparent;
  color: #8e9288;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
  font-weight: 600;
}
.nav-item svg { width: 18px; height: 18px; }
.nav-item:hover { color: var(--ink); background: #191b17; }
.nav-item.active { background: var(--yellow); color: #12120f; }
.source-panel { margin: auto 14px 18px; padding: 16px; background: #181a16; border: 1px solid var(--line-soft); border-radius: var(--radius); }
.source-row { display: grid; grid-template-columns: 28px 1fr 8px; gap: 9px; align-items: center; margin-top: 12px; font-weight: 600; }
.source-mark { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 4px; color: white; font-weight: 800; font-size: 12px; }
.source-mark.xero { background: #13b5ea; }
.source-mark.sm8 { background: #f36f21; }
.source-state { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(47,198,109,.12); }
.source-time { margin-top: 13px; color: #666b62; font-family: "IBM Plex Mono", monospace; font-size: 10px; }
.sidebar-footer { display: grid; grid-template-columns: 34px 1fr 32px; gap: 10px; align-items: center; padding: 17px 14px; border-top: 1px solid var(--line-soft); }
.avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--orange); color: #19120a; font-weight: 800; font-size: 12px; }
.sidebar-footer strong, .sidebar-footer span { display: block; }
.sidebar-footer strong { font-size: 12px; }
.sidebar-footer span { color: var(--muted); font-size: 10px; margin-top: 2px; }
.main { grid-column: 2; min-width: 0; }
.topbar {
  min-height: 84px;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(12,13,11,.93);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-soft);
}
.topbar h1 { font-family: "Barlow Condensed", sans-serif; text-transform: uppercase; margin: 2px 0 0; font-size: 28px; line-height: 1; }
.topbar-actions { display: flex; gap: 10px; align-items: center; }
.eyebrow { text-transform: uppercase; color: var(--muted); font: 600 10px/1.2 "IBM Plex Mono", monospace; letter-spacing: .16em; }
.period-switch { display: flex; border: 1px solid var(--line); border-radius: 6px; padding: 3px; background: #121310; }
.period-switch button { border: 0; background: transparent; color: var(--muted); padding: 8px 13px; border-radius: 4px; cursor: pointer; font-weight: 700; font-size: 12px; }
.period-switch button.active { color: #15150f; background: var(--yellow); }
.icon-button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  background: #151613;
  border-radius: 6px;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}
.icon-button:hover { border-color: #62675c; }
.icon-button svg { width: 17px; height: 17px; }
.mobile-menu { display: none; }
.view { display: none; padding: 22px 28px 48px; animation: fade .18s ease; }
.view.active { display: block; }
@keyframes fade { from { opacity: .5; transform: translateY(2px); } }
.brief-strip {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  border: 1px solid rgba(231,167,53,.35);
  background: rgba(231,167,53,.07);
  padding: 13px 16px;
  border-radius: var(--radius);
  margin-bottom: 16px;
}
.brief-copy { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brief-copy strong, .brief-copy span { display: block; }
.brief-copy strong { font-size: 13px; }
.brief-copy div > span { color: var(--muted); font-size: 11px; margin-top: 3px; }
.status-dot { flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; }
.status-dot.amber { background: var(--amber); box-shadow: 0 0 0 5px rgba(231,167,53,.1); }
.text-button { border: 0; background: transparent; padding: 7px 0; color: var(--yellow); font-weight: 700; cursor: pointer; display: inline-flex; gap: 7px; align-items: center; white-space: nowrap; }
.text-button svg { width: 15px; height: 15px; }
.overview-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 19px; min-width: 0; }
.panel h2 { font: 700 21px/1 "Barlow Condensed", sans-serif; text-transform: uppercase; margin: 5px 0 0; }
.panel-head { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.panel-head > svg { color: var(--yellow); width: 22px; }
.scorecard-panel { grid-column: span 3; padding: 22px; }
.action-panel { grid-column: span 1; background: #1b1a13; border-color: #4a4524; }
.rag-badge { display: inline-flex; gap: 7px; align-items: center; text-transform: uppercase; font: 700 10px "IBM Plex Mono", monospace; padding: 6px 8px; border-radius: 4px; }
.rag-badge span { width: 7px; height: 7px; border-radius: 50%; }
.rag-badge.amber { color: #f1c56e; background: rgba(231,167,53,.12); }
.rag-badge.amber span { background: var(--amber); }
.rag-badge.red { color: #ff8d78; background: rgba(239,91,62,.12); }
.rag-badge.red span { background: var(--red); }
.rag-badge.green { color: #7fe3a7; background: rgba(47,198,109,.12); }
.rag-badge.green span { background: var(--green); }
.revenue-total { display: flex; align-items: baseline; gap: 10px; margin-top: 20px; }
.revenue-total > strong { font: 800 45px/1 "Barlow Condensed", sans-serif; }
.revenue-total > span { color: var(--muted); font-size: 12px; }
.target-track { height: 24px; border: 1px solid #484b43; border-radius: 5px; margin-top: 18px; position: relative; overflow: visible; background: #0d0e0c; }
.track-zone { position: absolute; inset-block: 0; opacity: .18; }
.red-zone { left: 0; width: 66.67%; background: var(--red); }
.amber-zone { left: 66.67%; width: 16.66%; background: var(--amber); }
.green-zone { left: 83.33%; width: 16.67%; background: var(--green); }
.target-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 76.2%; background: var(--amber); opacity: .9; border-radius: 4px 0 0 4px; transition: width .35s ease, background .2s; }
.threshold-marker, .target-marker { position: absolute; top: -7px; bottom: -7px; width: 1px; background: #8a8e84; }
.threshold-marker { left: 66.67%; }
.target-marker { left: 83.33%; background: var(--ink); }
.threshold-marker span, .target-marker span { position: absolute; top: -17px; transform: translateX(-50%); color: #868b81; font: 500 9px "IBM Plex Mono", monospace; }
.target-marker span { color: var(--ink); }
.target-scale { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; color: var(--muted); font: 500 10px "IBM Plex Mono", monospace; }
.target-scale strong { color: var(--ink); font-size: 24px; }
.scorecard-foot { border-top: 1px solid var(--line); margin-top: 13px; padding-top: 13px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.scorecard-foot div { display: flex; justify-content: space-between; gap: 8px; padding-right: 14px; border-right: 1px solid var(--line); }
.scorecard-foot div:last-child { border: 0; padding-right: 0; }
.scorecard-foot span { color: var(--muted); font-size: 10px; }
.scorecard-foot strong { font: 600 12px "IBM Plex Mono", monospace; }
.action-number { margin-top: 18px; padding-bottom: 14px; border-bottom: 1px solid #3c3925; }
.action-number span { display: block; color: var(--yellow); font: 800 35px "Barlow Condensed", sans-serif; }
.action-number small { color: var(--muted); text-transform: uppercase; font: 500 9px "IBM Plex Mono", monospace; letter-spacing: .12em; }
.action-list { list-style: none; margin: 8px 0 0; padding: 0; }
.action-list li { display: grid; grid-template-columns: 24px 1fr; gap: 7px; padding: 10px 0; border-bottom: 1px solid #323225; }
.action-list li:last-child { border: 0; }
.action-list li > span { color: #6f6f53; font: 600 10px "IBM Plex Mono", monospace; padding-top: 2px; }
.action-list p { margin: 0; }
.action-list strong, .action-list small { display: block; }
.action-list strong { font-size: 11px; }
.action-list small { color: var(--muted); font-size: 9px; margin-top: 3px; line-height: 1.35; }
.metric-panel { min-height: 157px; }
.metric-icon { float: right; width: 33px; height: 33px; display: grid; place-items: center; border-radius: 5px; }
.metric-icon svg { width: 17px; height: 17px; }
.metric-icon.yellow { background: rgba(255,233,0,.12); color: var(--yellow); }
.metric-icon.orange { background: rgba(255,133,20,.12); color: var(--orange); }
.metric-icon.green { background: rgba(47,198,109,.12); color: var(--green); }
.metric-icon.blue { background: rgba(81,167,249,.12); color: var(--blue); }
.metric-panel > strong { display: block; font: 800 34px/1 "Barlow Condensed", sans-serif; margin-top: 13px; }
.metric-panel > strong small { font-size: 17px; color: var(--muted); }
.metric-meta { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 9px; margin-top: 12px; }
.metric-meta b { color: var(--ink); }
.positive { color: var(--green) !important; }
.negative { color: var(--red) !important; }
.mini-track { height: 3px; background: #2d302a; border-radius: 3px; margin-top: 10px; overflow: hidden; }
.mini-track span { display: block; height: 100%; width: 75.8%; background: var(--yellow); transition: width .3s; }
.mini-track span.green { background: var(--green); }
.mini-track span.blue { background: var(--blue); }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(300px, .85fr); gap: 14px; margin-top: 14px; }
.chart-panel { min-height: 350px; }
.chart-legend { display: flex; gap: 12px; color: var(--muted); font-size: 9px; }
.chart-legend span { display: flex; align-items: center; gap: 5px; }
.chart-legend i { width: 14px; height: 2px; display: inline-block; }
.chart-legend .actual { background: var(--yellow); }
.chart-legend .target { border-top: 1px dashed var(--muted); height: 1px; }
.chart-wrap { width: 100%; height: 250px; margin-top: 18px; }
.chart-wrap.large { height: 300px; }
.chart-wrap svg { width: 100%; height: 100%; overflow: visible; }
.service-list { display: grid; gap: 13px; margin-top: 18px; }
.service-line-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.service-line-head span { font-size: 10px; font-weight: 600; }
.service-line-head strong { font: 600 10px "IBM Plex Mono", monospace; }
.service-line-track { height: 5px; border-radius: 4px; background: #292b26; margin-top: 6px; overflow: hidden; }
.service-line-track span { display: block; height: 100%; border-radius: 4px; background: var(--yellow); }
.service-line:nth-child(2) .service-line-track span { background: var(--orange); }
.service-line:nth-child(3) .service-line-track span { background: var(--blue); }
.service-line:nth-child(4) .service-line-track span { background: var(--green); }
.section-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.section-grid .wide { grid-column: span 2; grid-row: span 2; }
.revenue-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); margin-top: 20px; border: 1px solid var(--line); }
.revenue-kpis > div { background: var(--panel); padding: 13px; }
.revenue-kpis span, .revenue-kpis strong, .revenue-kpis small { display: block; }
.revenue-kpis span { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.revenue-kpis strong { font: 700 20px "Barlow Condensed", sans-serif; margin-top: 5px; }
.revenue-kpis small { color: var(--muted); font-size: 8px; margin-top: 4px; }
.panel-number { color: var(--yellow); font: 800 27px "Barlow Condensed", sans-serif; }
.funnel { margin-top: 24px; display: grid; gap: 16px; }
.funnel div { display: grid; grid-template-columns: 1fr auto; gap: 8px; color: var(--muted); font-size: 10px; }
.funnel b { color: var(--ink); font: 600 11px "IBM Plex Mono", monospace; }
.funnel i { grid-column: 1 / -1; display: block; height: 7px; border-radius: 3px; background: var(--orange); opacity: .86; }
.pace-ring { width: 150px; aspect-ratio: 1; border-radius: 50%; margin: 20px auto; display: grid; place-items: center; background: conic-gradient(var(--yellow) 58%, #2b2d28 0); position: relative; }
.pace-ring::after { content: ""; width: 116px; aspect-ratio: 1; background: var(--panel); border-radius: 50%; position: absolute; }
.pace-ring div { position: relative; z-index: 1; text-align: center; }
.pace-ring strong, .pace-ring span { display: block; }
.pace-ring strong { font: 800 30px "Barlow Condensed", sans-serif; }
.pace-ring span { color: var(--muted); font-size: 8px; }
.compact-dl { margin: 0; }
.compact-dl div { display: flex; justify-content: space-between; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
.compact-dl div:last-child { border: 0; }
.compact-dl dt { color: var(--muted); font-size: 10px; }
.compact-dl dd { margin: 0; font: 600 10px "IBM Plex Mono", monospace; }
.crew-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 14px; }
.crew-table-wrap { overflow-x: auto; margin-top: 18px; }
.crew-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.crew-table th { color: var(--muted); text-transform: uppercase; font: 500 9px "IBM Plex Mono", monospace; text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.crew-table td { padding: 14px 12px; border-bottom: 1px solid var(--line-soft); font-size: 11px; }
.crew-table tbody tr:last-child td { border-bottom: 0; }
.crew-table td strong, .crew-table td span { display: block; }
.crew-table td span { color: var(--muted); font-size: 9px; margin-top: 2px; }
.table-rate { font: 600 12px "IBM Plex Mono", monospace; }
.table-status { display: inline-flex !important; align-items: center; gap: 5px; width: fit-content; text-transform: uppercase; font: 700 8px "IBM Plex Mono", monospace; border-radius: 3px; padding: 5px 6px; }
.table-status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.table-status.green { color: var(--green); background: rgba(47,198,109,.1); }
.table-status.amber { color: var(--amber); background: rgba(231,167,53,.1); }
.day-capacity { display: grid; gap: 14px; margin-top: 20px; }
.capacity-row { display: grid; grid-template-columns: 34px 1fr 42px; gap: 10px; align-items: center; }
.capacity-row > span { color: var(--muted); font: 500 9px "IBM Plex Mono", monospace; text-transform: uppercase; }
.capacity-row > b { text-align: right; font: 600 9px "IBM Plex Mono", monospace; }
.capacity-bars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; height: 12px; }
.capacity-bars i { display: block; background: #2c2f29; border-radius: 2px; position: relative; overflow: hidden; }
.capacity-bars i::after { content: ""; position: absolute; inset: 0; background: var(--yellow); transform-origin: left; transform: scaleX(var(--fill)); }
.crew-photo-panel { padding: 0; overflow: hidden; display: grid; grid-template-columns: 42% 1fr; min-height: 270px; }
.crew-photo-panel img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.15) contrast(1.04); }
.photo-copy { padding: 24px; align-self: center; }
.photo-copy h2 { font-size: 27px; line-height: 1.05; margin-top: 10px; }
.photo-copy p { color: var(--muted); line-height: 1.65; font-size: 11px; }
.service-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; margin-bottom: 18px; }
.service-head h2 { font: 800 29px "Barlow Condensed", sans-serif; text-transform: uppercase; margin: 4px 0 0; }
.service-total { text-align: right; }
.service-total span, .service-total strong { display: block; }
.service-total span { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.service-total strong { font: 800 27px "Barlow Condensed", sans-serif; margin-top: 4px; }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.service-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.service-accent { height: 5px; background: var(--yellow); }
.service-card:nth-child(2) .service-accent { background: var(--orange); }
.service-card:nth-child(3) .service-accent { background: var(--blue); }
.service-card:nth-child(4) .service-accent { background: var(--green); }
.service-card-body { padding: 18px; }
.service-card h3 { min-height: 46px; font: 700 20px/1.05 "Barlow Condensed", sans-serif; text-transform: uppercase; margin: 10px 0; }
.service-card-number { font: 800 28px "Barlow Condensed", sans-serif; }
.service-card-meta { color: var(--muted); display: flex; justify-content: space-between; gap: 8px; font-size: 9px; margin-top: 5px; }
.service-card .mini-track { margin-top: 15px; }
.quality-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 20px; }
.quality-grid div { border-right: 1px solid var(--line); padding-right: 12px; }
.quality-grid div:last-child { border: 0; }
.quality-grid svg { width: 17px; color: var(--yellow); }
.quality-grid strong, .quality-grid span { display: block; }
.quality-grid strong { font: 800 24px "Barlow Condensed", sans-serif; margin-top: 10px; }
.quality-grid span { color: var(--muted); font-size: 8px; margin-top: 4px; }
.insight-block { margin-top: 18px; padding: 20px; border-left: 3px solid var(--green); background: #121712; }
.insight-number { color: var(--green); font: 800 31px "Barlow Condensed", sans-serif; }
.insight-block p { color: var(--muted); line-height: 1.6; margin-bottom: 0; font-size: 11px; }
.settings-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .65fr); gap: 14px; align-items: start; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 22px; }
.form-grid label > span { display: block; color: var(--muted); font-size: 10px; margin-bottom: 7px; }
.input-wrap, .form-grid select { min-height: 43px; display: flex; align-items: center; border: 1px solid #444840; border-radius: 5px; background: #10110f; overflow: hidden; }
.input-wrap > span { padding: 0 12px; color: var(--muted); font: 500 10px "IBM Plex Mono", monospace; white-space: nowrap; }
.input-wrap input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); padding: 12px; font: 500 13px "IBM Plex Mono", monospace; }
.input-wrap.prefix input { padding-left: 0; }
.form-grid select { width: 100%; color: var(--ink); padding: 0 12px; outline: 0; }
.settings-results { display: grid; gap: 14px; position: sticky; top: 105px; }
.target-output strong { display: block; font: 800 42px "Barlow Condensed", sans-serif; margin-top: 10px; }
.target-output strong small { font-size: 19px; color: var(--muted); }
.target-output p { color: var(--muted); font-size: 10px; line-height: 1.6; margin-bottom: 0; }
.target-output.featured { border-color: #5c5520; background: #1d1c10; }
.target-output.featured strong { color: var(--yellow); }
.derived { margin-top: 10px; }
.save-message { display: flex; align-items: center; gap: 8px; color: var(--green); opacity: 0; transform: translateY(-4px); transition: .2s; font-size: 11px; }
.save-message.visible { opacity: 1; transform: none; }
.save-message svg { width: 14px; }
.mobile-overlay { display: none; }

@media (max-width: 1180px) {
  .overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scorecard-panel { grid-column: span 2; }
  .action-panel { grid-column: span 2; }
  .action-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .action-list li { border-bottom: 0; border-right: 1px solid #323225; }
  .action-list li:last-child { border-right: 0; }
  .section-grid { grid-template-columns: 1fr 1fr; }
  .section-grid .wide { grid-column: span 2; }
  .service-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
  .main { grid-column: 1; }
  .sidebar { transform: translateX(-100%); transition: transform .2s ease; box-shadow: 20px 0 50px rgba(0,0,0,.3); }
  .sidebar.open { transform: translateX(0); }
  .mobile-menu { display: inline-grid; }
  .mobile-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 25; }
  .mobile-overlay.visible { display: block; }
  .detail-grid, .settings-layout { grid-template-columns: 1fr; }
  .settings-results { position: static; grid-template-columns: 1fr 1fr; }
  .settings-results > :last-child, .settings-results > .save-message { grid-column: 1 / -1; }
  .crew-summary { grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 640px) {
  .topbar { padding: 14px 16px; min-height: 72px; }
  .topbar h1 { font-size: 23px; }
  .topbar .eyebrow { display: none; }
  .topbar-actions { gap: 6px; }
  .period-switch button { padding: 7px 9px; }
  #refreshButton { display: none; }
  .view { padding: 14px 12px 36px; }
  .brief-strip { align-items: flex-start; }
  .brief-strip .text-button { display: none; }
  .overview-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .scorecard-panel, .action-panel { grid-column: span 2; }
  .panel { padding: 15px; }
  .revenue-total { display: block; }
  .revenue-total > strong { font-size: 40px; }
  .revenue-total > span { display: block; margin-top: 5px; }
  .scorecard-foot { grid-template-columns: 1fr; }
  .scorecard-foot div { border-right: 0; padding-right: 0; }
  .action-list { display: block; }
  .action-list li { border-right: 0; border-bottom: 1px solid #323225; }
  .metric-panel { min-height: 147px; }
  .metric-panel > strong { font-size: 30px; }
  .detail-grid { gap: 10px; margin-top: 10px; }
  .chart-panel { min-height: 310px; }
  .chart-wrap { height: 220px; }
  .section-grid, .crew-summary, .service-grid, .form-grid, .settings-results { grid-template-columns: 1fr; }
  .section-grid .wide { grid-column: span 1; }
  .revenue-kpis { grid-template-columns: 1fr 1fr; }
  .crew-summary { gap: 10px; }
  .crew-photo-panel { grid-template-columns: 1fr; }
  .crew-photo-panel img { height: 220px; }
  .service-head { align-items: flex-start; }
  .service-head h2 { font-size: 24px; }
  .quality-grid { grid-template-columns: 1fr 1fr; }
  .quality-grid div:nth-child(2) { border-right: 0; }
  .settings-results > :last-child, .settings-results > .save-message { grid-column: auto; }
}
