:root {
  --ink: #0b2741;
  --muted: #667b8f;
  --line: rgba(29, 75, 108, 0.14);
  --panel: #ffffff;
  --canvas: #edf4f6;
  --navy: #071d30;
  --cyan: #19d6c3;
  --cyan-deep: #069b8c;
  --shadow: 0 18px 50px rgba(12, 46, 70, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; background: var(--canvas); }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
[hidden] { display: none !important; }

.ops-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  width: 236px;
  overflow-y: auto;
  padding: 22px 16px;
  color: #dbe9f3;
  background: radial-gradient(circle at 14% 7%, rgba(25,214,195,.16), transparent 24%), linear-gradient(180deg, #071d30, #081a2a);
}
.ops-brand { display: flex; gap: 11px; align-items: center; color: #fff; text-decoration: none; }
.ops-brand-mark { position: relative; width: 38px; height: 38px; border: 1px solid rgba(25,214,195,.55); border-radius: 11px; background: rgba(25,214,195,.08); }
.ops-brand-mark i { position: absolute; display: block; border-radius: 3px; background: var(--cyan); }
.ops-brand-mark i:nth-child(1) { width: 9px; height: 22px; left: 8px; top: 8px; }
.ops-brand-mark i:nth-child(2) { width: 9px; height: 15px; right: 8px; top: 8px; }
.ops-brand-mark i:nth-child(3) { width: 9px; height: 4px; right: 8px; bottom: 8px; }
.ops-brand > span:last-child { display: grid; gap: 2px; }
.ops-brand small { color: rgba(219,233,243,.56); letter-spacing: .14em; }
.sidebar-park { display: grid; gap: 6px; margin-top: 25px; padding: 14px; border: 1px solid rgba(25,214,195,.15); border-radius: 13px; background: rgba(255,255,255,.045); }
.sidebar-park > span { color: #7895a7; letter-spacing: .1em; }
.sidebar-park strong { color: #fff; line-height: 1.5; }
.sidebar-park small { display: flex; gap: 7px; align-items: center; color: #a8bfcc; }
.sidebar-park i, .status-dot, .hero-metrics header i { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px rgba(25,214,195,.72); }
.ops-nav { display: grid; gap: 5px; margin-top: 22px; }
.ops-nav a { display: flex; gap: 11px; align-items: center; padding: 11px; color: #9eb5c4; text-decoration: none; border: 1px solid transparent; border-radius: 10px; }
.ops-nav a:hover, .ops-nav a.is-active { color: #fff; border-color: rgba(25,214,195,.16); background: linear-gradient(90deg, rgba(25,214,195,.14), transparent); }
.ops-nav a > span { width: 22px; color: var(--cyan); font-weight: 900; text-align: center; }
.ops-nav a div { display: grid; gap: 1px; }
.ops-nav a small { color: inherit; opacity: .58; }
.sidebar-trust { display: flex; gap: 9px; align-items: flex-start; margin-top: auto; padding: 18px 7px 2px; }
.sidebar-trust > div { display: grid; gap: 3px; }
.sidebar-trust small { color: #7590a1; }

.ops-main { min-width: 0; margin-left: 236px; }
.ops-topbar { position: sticky; top: 0; z-index: 15; display: flex; gap: 20px; align-items: center; min-height: 68px; padding: 11px clamp(18px,3vw,42px); border-bottom: 1px solid rgba(19,64,98,.09); background: rgba(245,249,250,.92); backdrop-filter: blur(16px); }
.topbar-title { display: grid; gap: 2px; margin-right: auto; }
.topbar-title span { color: #7c8fa1; letter-spacing: .1em; }
.topbar-actions { display: flex; gap: 8px; align-items: center; }
.topbar-actions > a { padding: 9px 11px; color: #4e667a; font-weight: 700; text-decoration: none; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.park-selector { display: flex; gap: 8px; align-items: center; }
.park-selector > span { color: #8292a1; }
.park-selector select { min-width: 185px; padding: 9px 31px 9px 11px; color: #15304a; font-weight: 700; border: 1px solid var(--line); border-radius: 8px; outline: none; background: #fff; }
.mobile-menu { display: none; }
.ops-content { display: grid; gap: 18px; padding: 22px clamp(18px,3vw,42px) 0; }

.overview-hero { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(340px,.65fr); gap: clamp(24px,4vw,54px); min-height: 340px; overflow: hidden; padding: clamp(34px,4vw,56px); color: #fff; border-radius: 22px; background: radial-gradient(circle at 83% 23%, rgba(25,214,195,.17), transparent 23%), linear-gradient(125deg,#071f33,#0a4253); box-shadow: 0 25px 65px rgba(7,34,53,.16); }
.hero-copy { align-self: center; }
.hero-copy > p { display: flex; gap: 9px; align-items: center; margin: 0 0 14px; color: var(--cyan); font-weight: 900; letter-spacing: .09em; }
.hero-copy > p span { width: 22px; height: 1px; background: var(--cyan); }
.hero-copy h1 { margin: 0; }
.hero-copy h1 em { color: #c1f8ef; font-style: normal; }
.hero-copy > small { display: block; margin-top: 14px; color: #bed1dc; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 24px; }
.primary-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 17px; font-weight: 900; text-decoration: none; border-radius: 9px; }
.primary-button { gap: 18px; color: #062d33; background: var(--cyan); }
.secondary-button { color: #e3f3f5; border: 1px solid rgba(220,240,243,.24); background: rgba(255,255,255,.055); }
.hero-metrics { align-self: center; padding: 21px; border: 1px solid rgba(218,242,244,.16); border-radius: 17px; background: rgba(2,24,39,.31); }
.hero-metrics > header { display: flex; justify-content: space-between; margin-bottom: 18px; color: #bcd2dc; }
.hero-metrics > header span { display: flex; gap: 8px; align-items: center; font-weight: 800; }
.hero-metrics > header small { color: #7998a7; }
.hero-metrics > div { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hero-metrics article { display: grid; grid-template-columns: auto auto; align-items: end; column-gap: 4px; padding: 14px; border-radius: 11px; background: rgba(255,255,255,.055); }
.hero-metrics strong { color: #fff; line-height: 1; }
.hero-metrics span { grid-column: 1 / -1; margin-bottom: 7px; color: #9db5c1; }
.hero-metrics small { padding-bottom: 2px; color: #7792a0; }

.business-section, .focus-section { padding: clamp(24px,3vw,36px); border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
.section-heading { display: flex; gap: 20px; align-items: flex-end; justify-content: space-between; margin-bottom: 22px; }
.section-heading > div > span { color: var(--cyan-deep); font-weight: 900; letter-spacing: .1em; }
.section-heading h2 { margin: 6px 0 0; }
.section-heading > small { color: #7d91a3; }
.section-heading.compact { align-items: center; }
.business-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.business-card { display: flex; flex-direction: column; min-height: 250px; padding: 21px; border: 1px solid var(--line); border-radius: 15px; background: #f8fbfc; }
.business-card > header { display: flex; justify-content: space-between; color: #587082; }
.business-card > header span { color: var(--cyan-deep); font-weight: 900; }
.business-card h3 { margin: 26px 0 7px; }
.business-card p { margin: 0; color: var(--muted); }
.business-main-link { display: flex; justify-content: space-between; margin-top: auto; padding: 13px 0; color: #0a3048; font-weight: 900; text-decoration: none; border-bottom: 1px solid var(--line); }
.business-card footer { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 12px; }
.business-card footer a, .business-card footer span { padding: 5px 8px; color: #587183; text-decoration: none; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.highlight-card { color: #fff; border-color: transparent; background: linear-gradient(145deg,#08253b,#0b4b58); }
.highlight-card header, .highlight-card p { color: #b2cad4; }
.highlight-card h3, .highlight-card .business-main-link { color: #fff; }
.highlight-card .business-main-link { border-color: rgba(255,255,255,.13); }
.highlight-card footer span { color: #b8eee7; border-color: rgba(25,214,195,.23); background: rgba(25,214,195,.08); }

.focus-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.focus-card { display: grid; grid-template-columns: auto 1fr auto; gap: 11px; align-items: center; min-height: 90px; padding: 15px; text-decoration: none; border: 1px solid var(--line); border-radius: 13px; background: #f8fbfc; }
.focus-card > span { display: grid; width: 36px; height: 36px; place-items: center; color: var(--cyan-deep); font-weight: 900; border-radius: 9px; background: rgba(25,214,195,.1); }
.focus-card > div { display: grid; gap: 2px; min-width: 0; }
.focus-card strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.focus-card small { color: #7a8f9f; }
.focus-card b { color: #0b3851; }
.focus-card.is-clear b { color: #50ad9f; }
.panel-loading { grid-column: 1 / -1; padding: 30px; color: #8294a4; text-align: center; }
.ops-footer { display: flex; justify-content: space-between; gap: 18px; padding: 2px 2px 23px; color: #7b8e9f; }
.ops-footer p { margin: 0; color: #526b7e; font-weight: 800; }
.ops-toast { position: fixed; right: 24px; bottom: 24px; z-index: 60; max-width: min(380px,calc(100% - 32px)); padding: 13px 17px; color: #eaf5f7; border: 1px solid rgba(25,214,195,.25); border-radius: 10px; background: #082338; box-shadow: 0 20px 50px rgba(3,20,32,.22); }
.ops-toast.is-error { border-color: rgba(255,119,119,.34); background: #47242a; }

@media (max-width: 1180px) {
  .business-grid, .focus-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .ops-sidebar { transform: translateX(-100%); transition: transform .24s ease; }
  body.menu-open .ops-sidebar { transform: translateX(0); }
  body.menu-open::after { position: fixed; inset: 0; z-index: 19; content: ""; background: rgba(3,18,30,.52); }
  .ops-main { margin-left: 0; }
  .mobile-menu { display: block; padding: 8px 10px; color: #34546b; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
  .topbar-actions > a { display: none; }
  .overview-hero { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .ops-topbar { min-height: 62px; padding: 9px 13px; }
  .topbar-title span, .park-selector > span { display: none; }
  .park-selector select { min-width: 122px; max-width: 150px; }
  .ops-content { gap: 12px; padding: 13px 13px 0; }
  .overview-hero { min-height: 0; padding: 27px 20px; border-radius: 17px; }
  .hero-actions > * { width: 100%; }
  .hero-metrics { padding: 15px; }
  .business-section, .focus-section { padding: 19px; border-radius: 16px; }
  .section-heading { align-items: flex-start; }
  .section-heading > small { display: none; }
  .business-grid, .focus-grid { grid-template-columns: 1fr; }
  .business-card { min-height: 230px; }
  .ops-footer { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
