:root {
  color-scheme: dark;
  --bg: #07161d;
  --panel: #0d222b;
  --panel-2: #102a34;
  --line: rgba(177, 218, 226, .15);
  --muted: #91adb5;
  --text: #eefbfc;
  --cyan: #35d5d1;
  --blue: #4b8cff;
  --gold: #f6bd4d;
  --green: #45d489;
  --red: #ff6d79;
  --radius: 20px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; background: radial-gradient(circle at 20% -20%, #164354 0, transparent 42%), var(--bg); color: var(--text); font-family: Inter, system-ui, sans-serif; }
button, select, input { font: inherit; }
a { color: inherit; text-decoration: none; }
.app-shell { min-height: 100vh; }

.topbar { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 12px clamp(18px, 4vw, 56px); border-bottom: 1px solid var(--line); background: rgba(7,22,29,.82); backdrop-filter: blur(18px); position: sticky; top: 0; z-index: 20; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 144px; height: auto; object-fit: contain; }
.brand span { display: flex; flex-direction: column; border-left: 1px solid var(--line); padding-left: 12px; }
.brand strong { font-size: 13px; }
.brand small { color: var(--muted); font-size: 11px; margin-top: 3px; }
.top-actions { display: flex; align-items: center; gap: 12px; }
.live-pill { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 700; }
.live-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px rgba(246,189,77,.11); }
.live-pill.ok i { background: var(--green); box-shadow: 0 0 0 5px rgba(69,212,137,.11); }
.live-pill.error i { background: var(--red); }
.back-link { border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px; font-size: 12px; font-weight: 700; }

.product-nav { display: flex; flex-wrap: wrap; gap: 7px; overflow: visible; padding: 10px clamp(18px, 4vw, 56px); border-bottom: 1px solid var(--line); background: #081a22; position: sticky; top: 72px; z-index: 19; }
.product-nav button { flex: 0 0 auto; color: var(--muted); background: transparent; border: 0; border-radius: 999px; padding: 9px 13px; cursor: pointer; font-size: 12px; font-weight: 700; }
.product-nav button:hover { color: var(--text); background: rgba(255,255,255,.05); }
.product-nav button.active { color: #031517; background: var(--cyan); }

main { width: min(1500px, 100%); margin: 0 auto; padding: clamp(24px, 4vw, 56px); }
body.seasonal-embed main { width: 100%; padding: 24px clamp(18px, 3vw, 40px) 40px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, .8fr); gap: 18px; }
.hero-card, .status-card, .chart-card, .table-card { border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(19,53,64,.78), rgba(9,31,40,.92)); box-shadow: 0 22px 70px rgba(0,0,0,.18); }
.hero-card { padding: clamp(28px, 5vw, 64px); min-height: 350px; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.hero-card::after { content: ""; position: absolute; width: 360px; height: 360px; right: -100px; bottom: -200px; border: 52px solid rgba(53,213,209,.08); border-radius: 50%; }
.eyebrow { display: block; color: var(--cyan); font-size: 11px; letter-spacing: .14em; font-weight: 800; }
.hero-card h1, .data-head h1 { margin: 12px 0; font-size: clamp(36px, 6vw, 76px); line-height: .98; letter-spacing: -.055em; max-width: 850px; }
.hero-card p { color: #b8cdd2; max-width: 720px; font-size: clamp(15px, 1.5vw, 19px); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.hero-actions button, .hero-actions a { border: 0; border-radius: 999px; padding: 12px 17px; font-weight: 800; font-size: 12px; cursor: pointer; background: var(--cyan); color: #04181a; }
.hero-actions a { background: transparent; color: var(--text); border: 1px solid var(--line); }
.status-card { padding: 28px; display: flex; flex-direction: column; justify-content: center; }
.status-card-head { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 12px; }
.status-card-head b { color: var(--gold); text-transform: uppercase; }
.status-card > strong { font-size: 20px; line-height: 1.35; }
.status-card p { color: var(--muted); line-height: 1.6; font-size: 13px; }
.progress { height: 8px; background: rgba(255,255,255,.08); border-radius: 999px; overflow: hidden; margin: 22px 0; }
.progress span { display: block; height: 100%; width: 5%; background: linear-gradient(90deg, var(--blue), var(--cyan)); border-radius: inherit; transition: width .5s ease; }

.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin: 54px 0 18px; }
.section-heading.compact { margin-top: 44px; }
.section-heading h2 { margin: 7px 0 0; font-size: clamp(24px, 3vw, 38px); letter-spacing: -.04em; }
.section-heading p { color: var(--muted); max-width: 540px; margin: 0; line-height: 1.5; }
.service-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.service-card { border: 1px solid var(--line); border-radius: 16px; padding: 18px; background: rgba(13,34,43,.82); min-height: 158px; display: flex; flex-direction: column; }
.service-card header { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.service-card h3 { font-size: 15px; margin: 0; }
.service-card p { color: var(--muted); font-size: 12px; line-height: 1.5; margin: 12px 0; flex: 1; }
.service-card button, .service-card a { align-self: flex-start; color: var(--cyan); font-size: 11px; font-weight: 800; background: none; border: 0; padding: 0; cursor: pointer; }
.state-dot { border-radius: 999px; padding: 5px 8px; font-size: 9px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; background: rgba(69,212,137,.12); color: var(--green); }
.state-dot.wait { background: rgba(246,189,77,.12); color: var(--gold); }
.state-dot.blocked { background: rgba(255,109,121,.12); color: var(--red); }
.quick-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.quick-grid a { padding: 18px; border-radius: 14px; border: 1px solid var(--line); background: rgba(10,31,40,.7); transition: .2s ease; }
.quick-grid a:hover { border-color: rgba(53,213,209,.5); transform: translateY(-2px); }
.quick-grid b, .quick-grid span { display: block; }
.quick-grid b { font-size: 14px; }
.quick-grid span { color: var(--muted); font-size: 11px; margin-top: 7px; }

.data-head { display: flex; justify-content: space-between; gap: 32px; align-items: end; margin-bottom: 24px; }
.data-head h1 { font-size: clamp(38px, 5vw, 64px); margin-bottom: 10px; }
.data-head p { max-width: 760px; color: var(--muted); line-height: 1.55; margin: 0; }
.data-controls { display: flex; gap: 10px; flex: 0 0 auto; }
.data-controls label { display: flex; flex-direction: column; gap: 7px; }
.data-controls span { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
select, input { min-width: 190px; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 11px; padding: 11px 36px 11px 12px; }
.place-control { position: relative; }
.place-control input { width: 230px; padding-right: 12px; }
.place-results { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; width: min(360px, 85vw); padding: 6px; border: 1px solid var(--line); border-radius: 13px; background: #0b2029; box-shadow: 0 18px 50px rgba(0,0,0,.4); }
.place-results button { display: block; width: 100%; padding: 10px; border: 0; border-radius: 9px; color: var(--text); background: transparent; text-align: left; cursor: pointer; }
.place-results button:hover, .place-results button:focus { background: rgba(53,213,209,.1); outline: none; }
.place-results strong, .place-results small { display: block; }
.place-results strong { font-size: 12px; }
.place-results small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.loading-line { height: 2px; overflow: hidden; background: rgba(255,255,255,.04); margin-bottom: 16px; opacity: 0; }
.loading-line.active { opacity: 1; }
.loading-line span { display: block; height: 100%; width: 35%; background: var(--cyan); animation: loading 1.1s linear infinite; }
@keyframes loading { from { transform: translateX(-110%); } to { transform: translateX(310%); } }
.notice { padding: 14px 16px; border: 1px solid rgba(246,189,77,.3); background: rgba(246,189,77,.08); color: #ffe0a2; border-radius: 13px; margin-bottom: 16px; font-size: 13px; }
.metric-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin-bottom: 12px; }
.metric { border: 1px solid var(--line); background: rgba(13,34,43,.76); border-radius: 14px; padding: 16px; }
.metric span { color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.metric strong { display: block; font-size: 25px; margin-top: 8px; letter-spacing: -.04em; }
.metric small { color: var(--muted); font-size: 10px; }
.chart-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.seasonal-map-card { border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(19,53,64,.78), rgba(9,31,40,.92)); box-shadow: 0 22px 70px rgba(0,0,0,.18); padding: 18px; margin-bottom: 12px; }
.seasonal-map-card > header { display: block; }
.seasonal-map-card > header span { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .09em; }
.seasonal-map-card h2 { margin: 5px 0 0; font-size: 19px; }
.seasonal-map-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.seasonal-map-controls { display: grid; grid-template-columns: minmax(230px,.75fr) minmax(460px,1.7fr) minmax(300px,1fr); gap: 8px; width: 100%; margin-top: 14px; }
.seasonal-map-controls label { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.seasonal-map-controls select { min-width: 0; width: 100%; }
.seasonal-map-stage { position: relative; width: min(100%, 960px); margin: 16px auto 0; border-radius: 14px; overflow: hidden; background: #fff; aspect-ratio: 4 / 3; }
.seasonal-map-stage img { display: block; width: 100%; height: 100%; object-fit: contain; }
.seasonal-map-stage button { position: absolute; z-index: 2; top: 50%; transform: translateY(-50%); width: 42px; height: 64px; border: 1px solid rgba(255,255,255,.45); border-radius: 12px; color: #fff; background: rgba(5,20,27,.62); backdrop-filter: blur(8px); cursor: pointer; font-size: 30px; }
.seasonal-map-stage button:hover { background: rgba(5,20,27,.82); }
#seasonalPrevious { left: 12px; }
#seasonalNext { right: 12px; }
.seasonal-map-card > footer { display: flex; justify-content: space-between; align-items: center; gap: 18px; width: min(100%, 960px); margin: 0 auto; padding-top: 13px; color: var(--muted); font-size: 11px; }
.seasonal-map-card > footer strong { color: var(--text); font-size: 12px; }
.seasonal-map-download { flex: 0 0 auto; padding: 8px 11px; border: 1px solid rgba(53,213,209,.4); border-radius: 999px; color: var(--cyan); font-size: 10px; font-weight: 800; letter-spacing: .04em; }
.seasonal-map-download:hover { color: #031517; background: var(--cyan); }
.seasonal-map-download[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.seasonal-skill-card { border: 1px solid var(--line); border-radius: var(--radius); background: rgba(13,34,43,.76); padding: 18px; margin-bottom: 12px; }
.seasonal-skill-card > header { display: flex; justify-content: space-between; gap: 18px; align-items: end; }
.seasonal-skill-card > header span { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .09em; }
.seasonal-skill-card h2 { margin: 5px 0 0; font-size: 19px; }
.seasonal-skill-controls { display: grid; grid-template-columns: 180px 180px 220px; gap: 8px; }
.seasonal-skill-controls label { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.seasonal-skill-controls select { min-width: 0; width: 100%; }
.seasonal-skill-metrics { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; margin-top: 16px; }
.seasonal-skill-metrics .metric { background: rgba(7,22,29,.55); }
.seasonal-skill-card > footer { padding: 13px 2px 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
.chart-card { padding: 18px; min-width: 0; }
.chart-card header, .table-card header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; min-height: 52px; }
.chart-card header span, .table-card header span { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .09em; }
.chart-card h2, .table-card h2 { margin: 5px 0 0; font-size: 16px; }
.legend { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.legend span { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 9px; }
.legend i { width: 8px; height: 8px; border-radius: 50%; }
.canvas-wrap { height: 310px; position: relative; margin-top: 10px; }
canvas { width: 100%; height: 100%; display: block; }
.chart-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 12px; }
.table-card { margin-top: 12px; padding: 18px; }
.table-card header small { color: var(--muted); font-size: 10px; }
.table-scroll { overflow-x: auto; margin-top: 12px; }
table { width: 100%; border-collapse: collapse; min-width: 700px; font-size: 11px; }
th { color: var(--muted); font-weight: 700; text-align: left; padding: 10px; border-bottom: 1px solid var(--line); }
td { padding: 10px; border-bottom: 1px solid rgba(177,218,226,.08); }
td:first-child { color: var(--muted); }

footer { display: flex; justify-content: space-between; gap: 20px; padding: 28px clamp(18px, 4vw, 56px); border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }

@media (max-width: 1050px) {
  .service-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .hero-grid, .chart-grid { grid-template-columns: 1fr; }
  .seasonal-map-controls { grid-template-columns: minmax(180px,.8fr) minmax(0,1.5fr) minmax(230px,1fr); }
  .seasonal-skill-card > header { display: block; }
  .seasonal-skill-controls { margin-top: 14px; grid-template-columns: repeat(3,minmax(0,1fr)); }
  .seasonal-skill-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .status-card { min-height: 220px; }
  .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 700px) {
  .topbar { min-height: 62px; padding: 10px 14px; }
  .brand img { width: 112px; }
  .brand span, .live-pill span, .back-link { display: none; }
  .product-nav { top: 62px; flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; padding: 10px 12px 13px; scrollbar-width: thin; scrollbar-color: rgba(53,213,209,.55) rgba(255,255,255,.04); scroll-snap-type: x proximity; }
  .product-nav::-webkit-scrollbar { height: 5px; }
  .product-nav::-webkit-scrollbar-track { background: rgba(255,255,255,.04); }
  .product-nav::-webkit-scrollbar-thumb { background: rgba(53,213,209,.55); border-radius: 999px; }
  .product-nav button { scroll-snap-align: center; }
  main { padding: 24px 14px 38px; }
  .hero-card { min-height: 360px; padding: 26px; }
  .hero-card h1 { font-size: 42px; }
  .section-heading, .data-head { display: block; }
  .section-heading p { margin-top: 12px; }
  .service-grid, .quick-grid { grid-template-columns: 1fr; }
  .data-controls { margin-top: 18px; width: 100%; flex-wrap: wrap; }
  .data-controls label { flex: 1; min-width: 0; }
  select, input { min-width: 0; width: 100%; }
  .place-control { flex: 1 0 100%; }
  .place-control input { width: 100%; }
  .metric-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .metric strong { font-size: 20px; }
  .canvas-wrap { height: 260px; }
  .chart-card header { display: block; }
  .seasonal-map-controls { grid-template-columns: 1fr; }
  .seasonal-skill-controls { grid-template-columns: 1fr; }
  .seasonal-map-card > footer { display: block; line-height: 1.6; }
  .seasonal-map-card > footer span { display: block; margin-top: 3px; }
  .seasonal-map-heading { align-items: flex-start; }
  .legend { justify-content: flex-start; margin-top: 10px; }
  footer { display: block; line-height: 1.7; }
}

.notice button{display:block;margin-top:10px;padding:8px 14px;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--text);cursor:pointer}
