.stadium-audit .base-metrics {grid-template-columns:repeat(3,minmax(0,1fr))}
.stadium-audit[data-section=overview] .base-metrics {grid-template-columns:repeat(2,minmax(0,1fr))}
.stadium-audit[data-section=overview] .base-metrics > div:first-child {display:none}
.stadium-audit .base-metrics > div {min-width:0}
.stadium-audit .base-metrics .arena-budget {padding:0;background:none;margin:5px 0 0}
.arena-actual-capacity {color:#cfdfd4;font-size:.79rem}
.arena-budget {margin-top:5px;font-size:.79rem;color:#255f47}
.arena-budget summary {cursor:pointer;font-weight:700}
.arena-budget dl {margin:5px 0 0}
.arena-budget dl div {display:flex;justify-content:space-between;gap:.65rem;border-top:1px solid #e2ebe0;padding:4px 0}
.arena-budget dd,.arena-audit-match dd,.arena-pass-result dd {margin:0;font-weight:700}

.stadium-audit .arena-integrated {
  min-height:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(205px,31%);
  gap:clamp(12px,2vw,25px);align-items:center;padding:clamp(14px,2vw,25px);
  background:radial-gradient(ellipse at 36% 48%,#235744 0,#10362b 51%,#09271f 94%);
}
.arena-integrated::before,.arena-integrated::after {display:none}
.arena-integrated-main {min-width:0}
.stadium-audit .arena-integrated h2 {margin:0 0 4px;color:#f3f9ef;font-size:clamp(1.25rem,2vw,1.8rem)}
fm-stadium-model {display:block;position:relative}
fm-stadium-model canvas {
  display:block;width:100%;height:clamp(235px,25vw,330px);
  cursor:grab;touch-action:pan-y;
}
fm-stadium-model canvas:active {cursor:grabbing}
fm-stadium-model [role=status] {position:absolute;inset:0;display:grid;place-content:center;text-align:center;pointer-events:none}
fm-stadium-model [hidden] {display:none}
#stadium-rotate-hint {margin:-5px 0 12px;color:#d0e0d4;text-align:center;font-size:.77rem}
.arena-sr-only {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.arena-capacity-control {display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:1px 10px;color:#e6f0e1}
.arena-capacity-control label {font-size:.82rem;font-weight:650}
.arena-capacity-control output {font-size:1.17rem;color:#d4f292;font-weight:800;font-variant-numeric:tabular-nums}
.arena-capacity-control input[type=range] {grid-column:1/-1;display:block;min-height:30px;width:100%;margin:0;padding:0;accent-color:#c5f36d;background:none;border:0;cursor:ew-resize}
.arena-capacity-control small {font-size:.73rem;color:#c6d9cd}
.arena-capacity-control small:last-child {text-align:right}
.stadium-audit .arena-integrated .arena-roof-preview {display:inline-flex;flex-wrap:nowrap;align-items:center;gap:8px;width:fit-content;min-height:36px;margin:5px 0 0;font-size:.84rem;font-weight:650;cursor:pointer;color:#e6f0e1}
.stadium-audit .arena-integrated .arena-roof-preview input[type=checkbox] {flex:0 0 17px;width:17px;height:17px;min-height:0;margin:0;padding:0;accent-color:#c5f36d}
.stadium-audit .arena-integrated .arena-roof-preview label {margin:0;font-size:inherit;font-weight:inherit;cursor:pointer}
.arena-integrated :focus-visible {outline:2px solid #ceef88;outline-offset:2px}
.arena-audit-match {min-width:0;background:#edf4e7;color:#153c2d;border-radius:13px;padding:16px}
.arena-audit-match .eyebrow {color:#39614d;letter-spacing:.05em;font-size:.71rem}
.arena-audit-opponent {display:flex;align-items:center;gap:8px;color:#143e32;margin-top:8px;overflow-wrap:anywhere}
.arena-audit-opponent img {object-fit:contain}
.arena-opponent-mark {display:grid;place-items:center;flex:0 0 34px;height:34px;border-radius:8px;background:#dcead2;color:#234c39;font-size:.8rem;font-weight:800}
.arena-audit-match p {margin:4px 0 8px;color:#426554;font-size:.77rem}
.arena-audit-match dl {margin:0 0 12px}
.arena-audit-match dl div {padding:7px 0;border-top:1px solid #d6e4d4}
.arena-audit-match dt {font-size:.76rem;color:#3b604f}
.arena-audit-match dd {color:#153e30}
.arena-audit-match dl small {color:#3b604f;font-size:.71rem}
.arena-audit-match .btn {background:#164635;color:#fff;width:100%;font-size:.82rem;min-height:38px;padding:7px}
.arena-roof-setting {padding:14px;background:#eff5e9;border-radius:10px;margin-bottom:15px}
.arena-roof-setting label {font-weight:700}
.arena-roof-setting input {vertical-align:middle;accent-color:#235d43}
.arena-roof-setting p {margin:5px 0 10px}
.arena-pass-result,.arena-weather-scenarios {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr));gap:10px;margin:12px 0}
.arena-pass-result > div,.arena-weather-scenarios article {background:#eef5eb;padding:12px;border-radius:10px}
.arena-weather-scenarios h3 {margin:0 0 6px}
.arena-weather-scenarios table {width:100%;border-collapse:collapse;font-size:.79rem}
.arena-weather-scenarios td,.arena-weather-scenarios th {text-align:left;padding:5px;border-top:1px solid #d8e4d8}
.arena-ticket-scope {display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}
.arena-ticket-scope a {text-decoration:underline}
/* Home match-day results */
.stadium-audit .arena-history-table {max-width:100%;font-variant-numeric:tabular-nums}
.stadium-audit .arena-history-table table {width:100%;border-collapse:separate;border-spacing:0}
.stadium-audit .arena-history-table thead th {background:#f0f5ed;color:#52685b;font-size:.78rem;font-weight:700;text-align:left}
.stadium-audit .arena-history-table thead th:first-child {border-radius:9px 0 0 9px}
.stadium-audit .arena-history-table thead th:last-child {border-radius:0 9px 9px 0}
.stadium-audit .arena-history-table :is(td,th) {background-color:transparent;border:0;border-bottom:1px solid #e2eae0;padding:12px 10px;vertical-align:top;text-align:left}
.stadium-audit .arena-history-table tbody th {min-width:165px}
.stadium-audit .arena-history-table tbody tr:hover :is(td,th) {background-color:#f8fbf6}
.arena-history-opponent {display:flex;align-items:center;gap:10px;min-height:39px;color:#173e2f;font-size:.92rem;line-height:1.3}
.arena-history-opponent:hover strong {text-decoration:underline;text-underline-offset:3px}
.arena-history-opponent small {display:block;margin-top:4px;color:#5c7264;font-size:.74rem;font-weight:400}
.arena-history-emblem {position:relative;display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;border-radius:9px;background:#e8f1e4;color:#285743;font-size:.76rem;font-weight:800}
.arena-history-emblem img {position:absolute;inset:0;margin:auto;object-fit:contain;background:#edf5ea;border-radius:7px;padding:3px}
.arena-history-weather {display:inline-flex;align-items:center;gap:.36rem;padding:3px 7px;border-radius:6px;line-height:1.45;font-size:.81rem}
.arena-history-weather.is-fair {background:#faf0d5;color:#674c16}
.arena-history-weather.is-poor {background:#eaf1f4;color:#3e596b}
.arena-history-ticket,.arena-history-attendance {white-space:nowrap;font-size:.9rem}
.arena-history-attendance span {margin-right:3px}
.arena-history-attendance small {margin-left:.15rem;color:#587160}
.arena-history-signed {display:inline-block;padding:4px 8px;border-radius:7px;white-space:nowrap;font-size:1rem;font-weight:800}
.arena-history-signed.is-positive {background:#dcefd7;color:#1b532d}
.arena-history-signed.is-negative {background:#f7e7e3;color:#882b24}
.arena-history-signed.is-neutral {background:#edf1ec;color:#435b4a}
.stadium-audit .arena-history-details {min-width:9rem;margin:0;padding:0;background:transparent;text-align:left}
.stadium-audit .arena-history-details summary {cursor:pointer;padding:6px 9px;background:#edf3ea;border:1px solid #dae6d7;border-radius:7px;color:#254c38;font-size:.77rem;font-weight:700}
.stadium-audit .arena-history-details summary:hover {background:#e0edde}
.arena-history-details dl {display:grid;gap:4px;margin:7px 0 0;font-size:.73rem}
.arena-history-details dl div {display:flex;justify-content:space-between;gap:8px}
.arena-history-details dd {margin:0;white-space:nowrap}
.arena-history-mobile-label {display:none}
.arena-history-more {margin-top:13px}
@media(max-width:900px) {
  .stadium-audit .arena-history-table thead {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .stadium-audit .arena-history-table tbody {display:grid;gap:9px}
  .stadium-audit .arena-history-table tbody tr {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px 10px;padding:11px 12px;border:1px solid #e2eae0;border-radius:10px;background:#fbfcfa}
  .stadium-audit .arena-history-table tbody tr :is(th,td) {background:transparent;border:0;padding:0}
  .stadium-audit .arena-history-table tbody th {min-width:0;grid-column:1/-1}
  .arena-history-weather-cell,.arena-history-attendance {grid-row:2}
  .arena-history-attendance {justify-self:end}
  .arena-history-ticket,.arena-history-income {grid-row:3;align-self:start}
  .arena-history-income {text-align:right!important}
  .arena-history-breakdown {grid-column:1/-1}
  .arena-history-mobile-label {display:block;margin-bottom:2px;font-size:.70rem;line-height:1.2;white-space:normal;color:#587160}
  .arena-history-signed {font-size:.82rem}
}
.arena-blocked {color:#795222;font-size:.84rem}
@media(max-width:740px) {
  .stadium-audit .arena-integrated {grid-template-columns:minmax(0,1fr)}
  fm-stadium-model canvas {height:clamp(180px,60vw,295px)}
  .arena-audit-match dl {display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:0 8px}
  .arena-audit-match dl div:last-child {grid-column:1/-1}
  .arena-audit-match dd {overflow-wrap:break-word}
  .stadium-audit .base-metrics,.stadium-audit[data-section=overview] .base-metrics {grid-template-columns:repeat(auto-fit,minmax(min(150px,100%),1fr))}
}
.stadium-audit .base-structure-workspace {display:block;margin:0}
.stadium-audit .arena-tabs {position:static;display:flex;flex-wrap:nowrap;gap:8px;max-width:100%;overflow-x:auto;border-bottom:1px solid #d5e1d7;margin:0 0 22px;padding:0 0 1px;scrollbar-width:thin}
.stadium-audit .arena-tabs button {flex:0 0 auto;min-height:46px;padding:9px 15px;border:0;border-bottom:3px solid transparent;background:none;color:#294b3d;font:inherit;font-size:.91rem;font-weight:650;white-space:nowrap}
.stadium-audit .arena-tabs button:hover {color:#073828;background:#e8efe3}
.stadium-audit .arena-tabs button[aria-current] {border-color:#84b64a;color:#0b3a2a;font-weight:800}
.stadium-audit[data-section=overview] #stadium-selected {padding:0;border:0;background:transparent;box-shadow:none;overflow:visible}
.stadium-audit .arena-integrated {
  grid-template-columns:minmax(0,1.6fr) minmax(235px,1fr);gap:clamp(20px,3vw,40px);
  padding:clamp(18px,2.5vw,32px);border-radius:17px;
  background:radial-gradient(ellipse at 33% 55%,#195b42 0,#103b2d 42%,#082b21 88%);
}
.stadium-audit .arena-integrated .arena-actual-capacity {margin:5px 0 0;font-size:.87rem;color:#d8e9dd}
.arena-integrated-main canvas {height:clamp(225px,20.6vw,365px)}
.stadium-audit .arena-integrated .arena-audit-match {background:none;border-left:1px solid #ffffff45;border-radius:0;padding:4px 0 4px clamp(18px,2.5vw,34px);color:#fff}
.stadium-audit .arena-integrated .arena-audit-match h2 {font-size:clamp(1.16rem,1.8vw,1.5rem);margin-bottom:12px}
.stadium-audit .arena-audit-match :is(a,p,dt,small) {color:#daeadf}
.stadium-audit .arena-audit-match dd {color:#fff}
.stadium-audit .arena-audit-opponent {font-size:1.16rem}
.stadium-audit .arena-audit-match dl div {border-color:#ffffff31}
.stadium-audit .arena-audit-match dl div {display:flex;align-items:baseline;justify-content:space-between;gap:4px 12px;flex-wrap:wrap}
.stadium-audit .arena-audit-match dl small {width:100%}
.stadium-audit .arena-audit-match .btn {background:transparent;border:1px solid #bbd3c3}
.stadium-audit .arena-audit-match .btn:hover {background:#245a43}
.arena-improve-action,.arena-overview-box {background:#fbfdfa;border:1px solid #d5e1d7;border-radius:14px;padding:clamp(15px,2vw,25px)}
.arena-improve-action {display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px}
.arena-improve-action .btn {white-space:nowrap}
.arena-improve-action h2,.arena-overview-box h2 {margin:0;font-size:clamp(1.12rem,1.7vw,1.39rem);color:#133a2b}
.arena-overview-box h3 {margin:16px 0 2px;color:#133a2b}
.arena-overview-grid {display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:16px;margin-top:16px}
.arena-overview-box dl {margin:8px 0 0}
.arena-overview-box dl div {display:flex;gap:12px;justify-content:space-between;border-bottom:1px solid #e3ebe1;padding:7px 0}
.arena-overview-box dt {font-size:.86rem;color:#385747}
.arena-overview-box dd {margin:0;font-weight:800;text-align:right}
.arena-facilities {margin-top:7px}
.arena-facilities button {display:grid;width:100%;grid-template-columns:32px minmax(0,1fr) auto auto;gap:9px;align-items:center;background:none;border:0;border-bottom:1px solid #e3ebe1;border-radius:0;text-align:left;padding:8px 0;color:#143b2d;font:inherit;font-size:.86rem}
.arena-facilities button:hover {background:#edf4e9}
.arena-facilities button span:nth-child(3) {font-size:.74rem;color:#385747;text-align:right}
.arena-facility-icon {display:grid;place-items:center;width:31px;height:30px;border-radius:7px;background:#e4efdd}
.arena-facility-icon svg {width:18px;height:18px}
.arena-upgrade-preview {display:grid;grid-template-columns:minmax(0,1.4fr) minmax(260px,1fr);gap:16px;align-items:stretch;margin:0 0 20px}
.arena-upgrade-model {min-width:0;padding:14px;background:#103e30;border-radius:13px}
.arena-upgrade-model #stadium-rotate-hint {margin-bottom:4px}
.arena-upgrade-options {align-self:center;padding:14px;background:#eef4e9;border:1px solid #dce7d9;border-radius:13px}
.arena-upgrade-options p,.arena-upgrade-options small {font-size:.8rem;color:#3b594b}
.arena-upgrade-options .arena-capacity-control {color:#153b30}
.arena-upgrade-options .arena-capacity-control output {color:#195439}
.arena-upgrade-options .arena-capacity-control input[type=range],.arena-roof-preview input {accent-color:#37724c}
.arena-upgrade-options .arena-roof-setting {padding:11px 0 0;margin:13px 0 0;border-radius:0;border-top:1px solid #cedfcf}
.arena-roof-setting h3 {margin:0;font-size:1rem}
.arena-roof-preview {display:flex;align-items:center;gap:7px;min-height:32px}
.arena-roof-preview input[type=checkbox] {width:17px;height:17px;min-height:0;margin:0;flex:0 0 17px}
.arena-roof-preview label {margin:0}
.arena-subtabs {display:flex;gap:7px;padding:14px 17px 0}
.arena-subtabs button[aria-pressed=true] {background:#deecd7}
.stadium-audit .stadium-expansion-options [data-arena-show-capacity] {margin:0 7px 7px 0}
@media(max-width:740px) {
  .stadium-audit .arena-tabs {margin-bottom:15px}
  .stadium-audit .arena-tabs button {padding-inline:9px;font-size:.82rem}
  .stadium-audit .arena-integrated,.arena-overview-grid,.arena-upgrade-preview {grid-template-columns:minmax(0,1fr)}
  .stadium-audit .arena-integrated .arena-audit-match {border-left:0;border-top:1px solid #ffffff45;padding:16px 0 0}
  .arena-improve-action {align-items:stretch;flex-direction:column}
  .arena-integrated-main canvas {height:clamp(175px,56vw,260px)}
}

.arena-projects {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:20px}
.arena-project {display:flex;flex-direction:column;gap:7px;min-width:0;padding:17px;border:1px solid #d6e3d5;border-radius:12px;background:#f8fbf7}
.arena-project[data-selected=true] {background:#eaf3e5;border-color:#8eaf83}
.arena-project h3,.arena-upgrade-model h3,.arena-upgrade-options h3 {margin:0;font-size:1.08rem}
.arena-project strong {font-size:1.04rem}
.arena-project span,.arena-project p {font-size:.82rem;color:#355748}
.arena-project p {margin:0}
.arena-project .btn {align-self:flex-start;margin-top:auto}
.arena-upgrade-model h3 {color:#f3faf3}
.arena-upgrade-options strong {color:#133f2c}
@media(max-width:740px){.arena-projects{grid-template-columns:1fr;gap:9px}.arena-project{padding:13px}}
