:root {
  --jn-bg: #FAFBFD;
  --jn-panel: #FFFFFF;
  --jn-ink: #0B2B45;
  --jn-text: #3D5A73;
  --jn-muted: #7A93A8;
  --jn-energy: #00C2D1;
  --jn-energy-deep: #0891B2;
  --jn-save: #0FB981;
  --jn-cost: #F59E0B;
  --jn-danger: #E11D48;
  --jn-line: rgba(11, 43, 69, .08);
  --jn-line-strong: rgba(11, 43, 69, .14);
  --jn-mono: 'SF Mono', 'JetBrains Mono', Menlo, Consolas, monospace;
  --jn-sans: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --jn-shadow: 0 1px 2px rgba(11, 43, 69, .03), 0 12px 34px rgba(11, 43, 69, .05);
}
* { box-sizing: border-box; }
html { background: var(--jn-bg); }
body { margin: 0; color: var(--jn-ink); background: var(--jn-bg); font-family: var(--jn-sans); font-size: 14px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
button:focus-visible, a:focus-visible { outline: 3px solid rgba(0, 194, 209, .28); outline-offset: 3px; }
.site-header { height: 68px; padding: 0 28px; display: flex; align-items: center; gap: 32px; position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .94); backdrop-filter: blur(18px) saturate(1.3); border-bottom: 1px solid var(--jn-line); }
.site-brand { display: flex; align-items: center; gap: 11px; flex: none; }
.brand-mark { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; color: #fff; background: linear-gradient(135deg, var(--jn-ink), var(--jn-energy-deep)); font: 700 13px var(--jn-mono); letter-spacing: -.04em; }
.brand-name { font-size: 15px; font-weight: 800; letter-spacing: .08em; white-space: nowrap; }
.brand-name b { margin-left: 4px; color: var(--jn-energy-deep); font-size: 12px; font-weight: 600; letter-spacing: 0; }
.site-nav { display: flex; align-items: center; justify-content: center; gap: 25px; margin: 0 auto; height: 100%; }
.site-nav a { height: 100%; display: grid; place-items: center; position: relative; color: var(--jn-text); font-size: 13px; white-space: nowrap; }
.site-nav a::after { content: ''; position: absolute; left: 50%; right: 50%; bottom: 0; height: 2px; background: var(--jn-energy); transition: .25s; }
.site-nav a:hover, .site-nav a.active { color: var(--jn-ink); }
.site-nav a:hover::after, .site-nav a.active::after { left: 0; right: 0; }
.site-product { display: flex; align-items: center; gap: 8px; color: var(--jn-energy-deep); font: 600 10px var(--jn-mono); letter-spacing: .09em; white-space: nowrap; }
.site-product span { width: 7px; height: 7px; border-radius: 50%; background: var(--jn-energy); box-shadow: 0 0 10px rgba(0, 194, 209, .65); }
.site-menu { display: none; width: 38px; height: 38px; place-items: center; border: 1px solid var(--jn-line-strong); border-radius: 10px; background: #fff; }
.app-layout { display: grid; grid-template-columns: 222px minmax(0, 1fr); min-height: calc(100vh - 68px); }
.side-bar { position: sticky; top: 68px; height: calc(100vh - 68px); display: flex; flex-direction: column; padding: 28px 16px 20px; background: #fff; border-right: 1px solid var(--jn-line); overflow-y: auto; z-index: 20; }
.side-project { padding: 0 12px 25px; border-bottom: 1px solid var(--jn-line); }
.side-eyebrow, .page-eyebrow { color: var(--jn-energy-deep); font: 600 10px var(--jn-mono); letter-spacing: .14em; }
.side-project h1 { margin: 8px 0 3px; font-size: 20px; line-height: 1.35; letter-spacing: -.03em; }
.side-project p { margin: 0; color: var(--jn-muted); font-size: 12px; }
.side-nav { display: flex; flex-direction: column; gap: 5px; padding-top: 20px; }
.side-link { width: 100%; min-height: 46px; display: flex; align-items: center; gap: 11px; padding: 0 12px; border: 1px solid transparent; border-radius: 11px; background: transparent; color: var(--jn-text); cursor: pointer; text-align: left; transition: .2s; }
.side-link svg { width: 18px; height: 18px; flex: none; }
.side-link span { flex: 1; font-size: 14px; font-weight: 600; }
.side-link small { color: var(--jn-muted); font: 10px var(--jn-mono); }
.side-link:hover { color: var(--jn-energy-deep); background: #F2FAFB; }
.side-link.active { color: var(--jn-ink); border-color: rgba(0, 194, 209, .16); background: #EFF9FA; box-shadow: inset 3px 0 var(--jn-energy); }
.side-link.active svg { color: var(--jn-energy-deep); }
.side-projects { display: none; flex-direction: column; gap: 2px; margin: 1px 0 7px 20px; padding-left: 16px; border-left: 1px solid var(--jn-line-strong); }
.side-projects.visible { display: flex; }
.side-project-link { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 0; background: transparent; color: var(--jn-muted); border-radius: 7px; cursor: pointer; font-size: 12px; text-align: left; }
.side-project-link::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: #C6D2DC; }
.side-project-link:hover, .side-project-link.active { color: var(--jn-energy-deep); background: #F2FAFB; }
.side-project-link.active::before { background: var(--jn-energy); box-shadow: 0 0 7px rgba(0, 194, 209, .5); }
.side-foot { margin-top: auto; padding: 20px 12px 0; border-top: 1px solid var(--jn-line); }
.side-foot-line { display: flex; align-items: center; gap: 8px; color: var(--jn-text); font-size: 11px; font-weight: 600; }
.side-foot-line i { width: 7px; height: 7px; border-radius: 50%; background: var(--jn-save); }
.side-foot p { margin: 7px 0 0 15px; color: var(--jn-muted); font-size: 10px; line-height: 1.8; }
.work-space { min-width: 0; width: 100%; max-width: 1800px; margin: 0 auto; padding: 30px 32px 42px; background-image: linear-gradient(rgba(11, 43, 69, .022) 1px, transparent 1px), linear-gradient(90deg, rgba(11, 43, 69, .022) 1px, transparent 1px); background-size: 44px 44px; }
.view { display: none; }
.view.active { display: block; animation: viewIn .4s cubic-bezier(.22, 1, .36, 1); }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.page-head h2 { margin: 7px 0 5px; font-size: clamp(25px, 2.3vw, 34px); line-height: 1.25; letter-spacing: -.045em; }
.page-head p { margin: 0; color: var(--jn-text); font-size: 13px; }
.page-head-actions { display: flex; align-items: center; gap: 12px; flex: none; }
.compact-head { margin-bottom: 20px; }
.compact-head h2 { font-size: 28px; }
.outline-badge { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid var(--jn-line-strong); border-radius: 999px; background: rgba(255, 255, 255, .75); color: var(--jn-text); font-size: 12px; white-space: nowrap; }
.button { min-height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 17px; border: 1px solid transparent; border-radius: 10px; cursor: pointer; font-size: 13px; font-weight: 650; transition: .2s; }
.button svg { width: 16px; height: 16px; }
.button.primary { color: #fff; background: var(--jn-ink); box-shadow: 0 7px 18px rgba(11, 43, 69, .14); }
.button.primary:hover { background: var(--jn-energy-deep); transform: translateY(-1px); }
.button.secondary { border-color: var(--jn-line-strong); background: #fff; color: var(--jn-text); }
.button.secondary:hover { color: var(--jn-energy-deep); border-color: rgba(8, 145, 178, .35); }
.button.loading svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 28px; }
.metric-card { position: relative; min-width: 0; padding: 20px 21px 18px; border: 1px solid var(--jn-line); border-radius: 15px; background: rgba(255, 255, 255, .96); box-shadow: var(--jn-shadow); overflow: hidden; }
.metric-card::before { content: ''; position: absolute; top: 0; left: 21px; width: 28px; height: 2px; background: var(--jn-energy); }
.metric-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--jn-text); font-size: 12px; }
.metric-label svg { width: 17px; height: 17px; color: var(--jn-muted); }
.metric-value { display: flex; align-items: baseline; gap: 6px; margin-top: 8px; color: var(--jn-ink); font: 700 clamp(24px, 2.3vw, 33px) var(--jn-mono); line-height: 1.2; letter-spacing: -.055em; white-space: nowrap; }
.metric-value small { color: var(--jn-text); font: 500 11px var(--jn-sans); letter-spacing: 0; }
.metric-note { margin-top: 7px; color: var(--jn-muted); font-size: 11px; white-space: normal; }
.metric-card.heat::before { background: var(--jn-cost); }
.metric-card.saving::before { background: var(--jn-save); }
.section-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 0 0 15px; }
.section-title span, .panel-head span { color: var(--jn-energy-deep); font: 600 9px var(--jn-mono); letter-spacing: .13em; }
.section-title h3, .panel-head h3 { margin: 3px 0 0; font-size: 17px; line-height: 1.35; letter-spacing: -.02em; }
.section-title p, .panel-head small { margin: 0; color: var(--jn-muted); font-size: 11px; }
.project-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 26px; }
.project-card { min-width: 0; position: relative; padding: 20px; border: 1px solid var(--jn-line); border-radius: 16px; background: #fff; box-shadow: var(--jn-shadow); overflow: hidden; transition: .3s cubic-bezier(.22, 1, .36, 1); }
.project-card:hover { transform: translateY(-3px); border-color: rgba(0, 194, 209, .36); box-shadow: 0 16px 36px rgba(11, 43, 69, .09); }
.project-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.project-index { color: var(--jn-energy-deep); font: 600 10px var(--jn-mono); letter-spacing: .1em; }
.project-state { display: inline-flex; align-items: center; gap: 6px; color: var(--jn-muted); font-size: 10px; white-space: nowrap; }
.project-state i { width: 6px; height: 6px; border-radius: 50%; background: #B8C5D0; }
.project-state.online { color: #0B8A63; }
.project-state.online i { background: var(--jn-save); box-shadow: 0 0 8px rgba(15, 185, 129, .5); }
.project-state.stale { color: #B45309; }
.project-state.stale i { background: var(--jn-cost); }
.project-card h3 { margin: 9px 0 3px; font-size: 21px; letter-spacing: -.035em; }
.project-type { margin: 0 0 18px; color: var(--jn-muted); font-size: 11px; }
.project-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px 0; border-top: 1px solid var(--jn-line); border-bottom: 1px solid var(--jn-line); }
.project-facts span { display: block; color: var(--jn-muted); font-size: 10px; }
.project-facts b { display: block; margin-top: 2px; color: var(--jn-ink); font: 650 16px var(--jn-mono); }
.project-facts b small { font: 10px var(--jn-sans); color: var(--jn-text); }
.project-archive { display: flex; align-items: center; justify-content: space-between; margin-top: 13px; color: var(--jn-text); font-size: 11px; }
.project-archive b { color: var(--jn-ink); font: 650 14px var(--jn-mono); }
.project-actions { display: flex; gap: 8px; margin-top: 16px; }
.project-actions button { flex: 1; height: 34px; border: 1px solid var(--jn-line); border-radius: 8px; background: #F8FAFC; color: var(--jn-text); cursor: pointer; font-size: 11px; }
.project-actions button:first-child { color: #fff; border-color: var(--jn-ink); background: var(--jn-ink); }
.project-actions button:hover { color: var(--jn-energy-deep); border-color: rgba(8, 145, 178, .35); }
.project-actions button:first-child:hover { color: #fff; background: var(--jn-energy-deep); }
.content-grid { display: grid; gap: 16px; align-items: start; }
.overview-analysis { grid-template-columns: minmax(0, 1.75fr) minmax(280px, .75fr); }
.panel { min-width: 0; border: 1px solid var(--jn-line); border-radius: 16px; background: rgba(255, 255, 255, .97); box-shadow: var(--jn-shadow); }
.panel-head { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--jn-line); }
.chart { width: 100%; height: 310px; padding: 6px 8px 4px; }
.chart.tall { height: 340px; }
.chart-empty { height: 100%; min-height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--jn-muted); text-align: center; }
.chart-empty b { color: var(--jn-text); font-size: 14px; }
.chart-empty span { max-width: 320px; font-size: 12px; }
.cluster-visual { width: 176px; height: 176px; margin: 25px auto 20px; position: relative; display: grid; place-items: center; border-radius: 50%; }
.cluster-visual::before { content: ''; position: absolute; inset: 20px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px var(--jn-line); }
.cluster-total { position: relative; z-index: 1; text-align: center; }
.cluster-total b { display: block; font: 700 24px var(--jn-mono); letter-spacing: -.05em; }
.cluster-total span { color: var(--jn-muted); font-size: 11px; }
.cluster-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; padding: 0 22px 22px; }
.cluster-legend div { display: flex; align-items: center; gap: 7px; color: var(--jn-text); font-size: 11px; }
.cluster-legend i { width: 7px; height: 7px; border-radius: 2px; }
.cluster-legend b { margin-left: auto; color: var(--jn-ink); font: 600 11px var(--jn-mono); }
.project-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.project-tab { min-width: 0; display: flex; align-items: center; gap: 12px; min-height: 68px; padding: 12px 15px; border: 1px solid var(--jn-line); border-radius: 13px; background: #fff; cursor: pointer; text-align: left; transition: .2s; }
.project-tab:hover { border-color: rgba(0, 194, 209, .35); }
.project-tab.active { color: var(--jn-ink); border-color: rgba(0, 194, 209, .45); background: #EFF9FA; box-shadow: inset 0 0 0 1px rgba(0, 194, 209, .08); }
.tab-index { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 9px; background: #F1F5F8; color: var(--jn-muted); font: 600 10px var(--jn-mono); }
.project-tab.active .tab-index { color: #fff; background: var(--jn-energy-deep); }
.tab-copy { min-width: 0; flex: 1; }
.tab-copy b { display: block; font-size: 14px; }
.tab-copy small { display: block; margin-top: 1px; color: var(--jn-muted); font-size: 10px; white-space: nowrap; }
.tab-arrow { color: var(--jn-muted); font-size: 15px; }
.project-tab.active .tab-arrow { color: var(--jn-energy-deep); }
.live-status { min-height: 52px; display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding: 11px 16px; border: 1px solid var(--jn-line); border-radius: 12px; background: #fff; }
.status-icon { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #F1F5F8; }
.status-icon i { width: 8px; height: 8px; border-radius: 50%; background: var(--jn-muted); }
.live-status.online .status-icon { background: rgba(15, 185, 129, .12); }
.live-status.online .status-icon i { background: var(--jn-save); box-shadow: 0 0 9px rgba(15, 185, 129, .5); }
.live-status.stale .status-icon { background: rgba(245, 158, 11, .12); }
.live-status.stale .status-icon i { background: var(--jn-cost); }
.status-copy { min-width: 0; flex: 1; }
.status-copy b { display: block; font-size: 12px; }
.status-copy span { display: block; color: var(--jn-muted); font-size: 11px; }
.status-time { color: var(--jn-text); font: 10px var(--jn-mono); text-align: right; white-space: nowrap; }
.live-analysis { grid-template-columns: minmax(0, 1.7fr) minmax(290px, .7fr); margin-bottom: 16px; }
.condition-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 18px 18px 14px; }
.condition-item { min-width: 0; padding: 12px 8px; border-radius: 10px; background: #F6F9FB; text-align: center; }
.condition-item span { display: block; color: var(--jn-muted); font-size: 10px; }
.condition-item b { display: block; margin-top: 4px; font: 650 18px var(--jn-mono); white-space: nowrap; }
.condition-item b small { font: 10px var(--jn-sans); color: var(--jn-text); }
.condition-item.supply b { color: #B45309; }
.condition-item.return b { color: var(--jn-energy-deep); }
.today-block { margin: 0 18px 18px; padding-top: 14px; border-top: 1px solid var(--jn-line); }
.today-block > span { color: var(--jn-muted); font-size: 10px; }
.today-block > div { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.today-metric { padding: 10px 12px; border: 1px solid var(--jn-line); border-radius: 9px; }
.today-metric span { display: block; color: var(--jn-muted); font-size: 10px; }
.today-metric b { display: block; margin-top: 2px; font: 650 15px var(--jn-mono); }
.units-panel { margin-top: 0; }
.unit-table-wrap, .archive-table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; min-width: 850px; }
.data-table th { padding: 11px 16px; color: var(--jn-muted); background: #F8FAFC; border-bottom: 1px solid var(--jn-line); font-size: 10px; font-weight: 600; text-align: right; white-space: nowrap; }
.data-table th:first-child, .data-table td:first-child { text-align: left; }
.data-table td { padding: 13px 16px; border-bottom: 1px solid var(--jn-line); color: var(--jn-text); font: 12px var(--jn-mono); text-align: right; white-space: nowrap; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #F8FCFD; }
.unit-name { color: var(--jn-ink); font-weight: 650; }
.unit-state { display: inline-flex; align-items: center; gap: 6px; font-family: var(--jn-sans); }
.unit-state i { width: 6px; height: 6px; border-radius: 50%; background: #B7C4D0; }
.unit-state.run { color: #0B8A63; }
.unit-state.run i { background: var(--jn-save); }
.unit-state.standby { color: #B45309; }
.unit-state.standby i { background: var(--jn-cost); }
.table-empty { padding: 42px 20px; text-align: center; color: var(--jn-muted); }
.table-empty b { display: block; margin-bottom: 5px; color: var(--jn-text); font-size: 14px; }
.table-empty span { font-size: 12px; }
.twin-frame { height: max(600px, calc(100vh - 302px)); min-height: 600px; position: relative; border: 1px solid var(--jn-line-strong); border-radius: 18px; background: #EAF0F4; box-shadow: 0 18px 42px rgba(11, 43, 69, .09); overflow: hidden; }
#twinHost { position: absolute; inset: 0; }
#twinHost .pt3d-shell { min-height: 0 !important; height: 100% !important; }
#twinHost .pt3d-panel { width: 276px; }
#twinHost .pt3d-toolbar { top: 16px; right: 16px; }
#twinHost .pt3d-hud { bottom: 16px; }
#twinHost .pt3d-label .card { font-size: 12px; border-radius: 8px; box-shadow: 0 6px 20px rgba(11, 43, 69, .14); }
.twin-loading { position: absolute; inset: 0; z-index: 60; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: #F2F6F9; color: var(--jn-text); transition: opacity .3s, visibility .3s; }
.twin-loading.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.loading-ring { width: 36px; height: 36px; border: 2px solid rgba(8, 145, 178, .16); border-top-color: var(--jn-energy-deep); border-radius: 50%; animation: spin 1s linear infinite; }
.twin-loading b { font-size: 13px; font-weight: 600; }
.twin-caption { display: flex; align-items: center; gap: 20px; padding: 13px 4px 0; color: var(--jn-text); font-size: 11px; }
.twin-caption span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.twin-caption i { width: 7px; height: 7px; border-radius: 50%; }
.twin-caption .supply-dot { background: var(--jn-cost); }
.twin-caption .return-dot { background: var(--jn-energy); }
.twin-caption .online-dot { background: var(--jn-save); }
.twin-caption p { margin: 0 0 0 auto; color: var(--jn-muted); text-align: right; }
.season-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.archive-panel { margin-top: 16px; }
.archive-table .negative { color: var(--jn-danger); }
.archive-table .positive { color: #0B8A63; }
.archive-table td:first-child b { display: block; color: var(--jn-ink); font-family: var(--jn-sans); font-size: 13px; }
.archive-table td:first-child small { color: var(--jn-muted); font-family: var(--jn-sans); font-size: 10px; }
.contract-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 22px; }
.contract-card { padding: 22px; border-radius: 15px; color: #fff; background: linear-gradient(135deg, #0B2B45, #0E3D60); box-shadow: var(--jn-shadow); }
.contract-card:nth-child(2) { background: linear-gradient(135deg, #0B2B45, #0A4A5E); }
.contract-card span { color: #7FE9F2; font: 600 9px var(--jn-mono); letter-spacing: .12em; }
.contract-card h3 { margin: 9px 0 6px; font-size: 18px; }
.contract-card p { margin: 0; color: rgba(255, 255, 255, .7); font-size: 12px; }
.source-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 20px; }
.source-card { padding: 20px; border: 1px solid var(--jn-line); border-radius: 15px; background: #fff; box-shadow: var(--jn-shadow); }
.source-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.source-head h3 { margin: 0; font-size: 18px; }
.source-head span { color: var(--jn-muted); font: 10px var(--jn-mono); }
.gateway-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 10px 0; border-top: 1px solid var(--jn-line); }
.gateway-row b { display: block; color: var(--jn-text); font-size: 12px; }
.gateway-row code { display: block; margin-top: 2px; color: var(--jn-muted); font: 10px var(--jn-mono); }
.gateway-state { align-self: center; display: inline-flex; align-items: center; gap: 6px; color: var(--jn-muted); font-size: 10px; }
.gateway-state i { width: 6px; height: 6px; border-radius: 50%; background: #BAC6D0; }
.gateway-state.connected { color: #0B8A63; }
.gateway-state.connected i { background: var(--jn-save); }
.source-foot { margin-top: 12px; color: var(--jn-muted); font-size: 11px; }
.dictionary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 6px 20px 18px; }
.dictionary-grid > div { padding: 16px 14px 12px 0; border-bottom: 1px solid var(--jn-line); }
.dictionary-grid > div:nth-child(odd) { border-right: 1px solid var(--jn-line); }
.dictionary-grid > div:nth-child(even) { padding-left: 20px; }
.dictionary-grid > div:nth-last-child(-n+2) { border-bottom: 0; }
.dictionary-grid b { font-size: 13px; }
.dictionary-grid p { margin: 5px 0 0; color: var(--jn-text); font-size: 12px; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 200; max-width: min(420px, calc(100vw - 32px)); padding: 12px 17px; border: 1px solid var(--jn-line-strong); border-radius: 11px; color: #fff; background: var(--jn-ink); box-shadow: 0 14px 40px rgba(11, 43, 69, .22); font-size: 12px; opacity: 0; transform: translateY(10px); pointer-events: none; transition: .25s; }
.toast.show { opacity: 1; transform: none; }
.noscript { position: fixed; inset: 80px 20px auto; z-index: 300; padding: 20px; background: #fff; border: 1px solid var(--jn-danger); border-radius: 12px; text-align: center; }
@media (max-width: 1380px) {
  .site-header { gap: 20px; padding: 0 20px; }
  .site-nav { gap: 18px; }
  .site-product { display: none; }
  .app-layout { grid-template-columns: 204px minmax(0, 1fr); }
  .work-space { padding: 26px 24px 36px; }
  .project-grid { grid-template-columns: 1fr 1fr; }
  .metric-value { font-size: 26px; }
}
@media (max-width: 1100px) {
  .site-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; height: auto; padding: 10px 20px 16px; background: #fff; border-bottom: 1px solid var(--jn-line); box-shadow: 0 14px 28px rgba(11, 43, 69, .08); }
  .site-nav.open { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
  .site-nav a { padding: 10px; }
  .site-nav a::after { display: none; }
  .site-menu { display: grid; margin-left: auto; }
  .overview-analysis, .live-analysis { grid-template-columns: 1fr; }
  .condition-list { grid-template-columns: repeat(3, 1fr); }
  .today-block > div { grid-template-columns: 1fr 1fr; }
  .project-tabs { gap: 8px; }
  .project-tab { padding: 10px; gap: 8px; }
  .tab-arrow { display: none; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .site-header { height: 62px; padding: 0 16px; }
  .site-nav { top: 62px; }
  .app-layout { display: block; }
  .side-bar { position: sticky; top: 62px; width: 100%; height: auto; padding: 8px 12px; border-right: 0; border-bottom: 1px solid var(--jn-line); overflow-x: auto; overflow-y: hidden; }
  .side-project, .side-foot, .side-projects { display: none !important; }
  .side-nav { width: max-content; flex-direction: row; gap: 5px; padding: 0; }
  .side-link { width: auto; min-height: 38px; padding: 0 12px; }
  .side-link svg { width: 16px; height: 16px; }
  .side-link small { display: none; }
  .side-link span { font-size: 12px; white-space: nowrap; }
  .side-link.active { box-shadow: inset 0 -2px var(--jn-energy); }
  .work-space { padding: 22px 16px 32px; }
  .page-head { align-items: flex-start; flex-direction: column; gap: 14px; margin-bottom: 20px; }
  .page-head h2 { font-size: 26px; }
  .page-head p { font-size: 12px; }
  .page-head-actions { width: 100%; justify-content: space-between; }
  .project-tabs { grid-template-columns: 1fr 1fr; }
  .twin-frame { height: 68vh; min-height: 520px; }
  #twinHost .pt3d-toolbar .badge, #twinHost .pt3d-toolbar [data-act="scen"], #twinHost .pt3d-toolbar [data-act="snow"], #twinHost .pt3d-toolbar [data-act="sound"], #twinHost .pt3d-toolbar [data-act="lang"] { display: none; }
  #twinHost .pt3d-hud { max-width: calc(100% - 24px); overflow-x: auto; }
  #twinHost .pt3d-hud .seg { padding: 5px 10px; }
  #twinHost .pt3d-hud .seg b { font-size: 13px; }
  .twin-caption { flex-wrap: wrap; gap: 10px 16px; }
  .twin-caption p { width: 100%; margin: 0; text-align: left; }
  .contract-grid { grid-template-columns: 1fr; }
  .source-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .brand-name { font-size: 13px; }
  .brand-name b { font-size: 11px; }
  .site-nav.open { grid-template-columns: repeat(2, 1fr); }
  .metric-grid { gap: 10px; margin-bottom: 20px; }
  .metric-card { padding: 16px 14px; }
  .metric-value { font-size: clamp(20px, 6vw, 26px); }
  .metric-label { font-size: 11px; }
  .metric-note { font-size: 10px; }
  .project-grid { grid-template-columns: 1fr; }
  .section-title { align-items: flex-start; flex-direction: column; gap: 3px; }
  .panel-head { padding: 14px 15px; }
  .panel-head small { display: none; }
  .chart { height: 280px; }
  .chart.tall { height: 300px; }
  .project-tab { min-height: 62px; }
  .tab-index { width: 26px; height: 26px; }
  .tab-copy b { font-size: 13px; }
  .tab-copy small { font-size: 9px; }
  .live-status { align-items: flex-start; flex-wrap: wrap; }
  .status-time { width: 100%; padding-left: 40px; text-align: left; white-space: normal; }
  .condition-list { padding: 14px 12px 10px; gap: 6px; }
  .condition-item b { font-size: 15px; }
  .today-block { margin: 0 12px 14px; }
  .twin-frame { min-height: 500px; height: 66vh; border-radius: 13px; }
  #twinHost .pt3d-toolbar { right: 10px; top: 10px; }
  #twinHost .pt3d-toolbar button { padding: 0 9px; font-size: 11px; }
  #twinHost .pt3d-hud { bottom: 10px; }
  .dictionary-grid { grid-template-columns: 1fr; }
  .dictionary-grid > div:nth-child(odd) { border-right: 0; }
  .dictionary-grid > div:nth-child(even) { padding-left: 0; }
  .dictionary-grid > div:nth-last-child(-n+2) { border-bottom: 1px solid var(--jn-line); }
  .dictionary-grid > div:last-child { border-bottom: 0; }
  .page-head-actions .outline-badge { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

.twin-quick { position: absolute; top: 18px; left: 70px; z-index: 45; display: flex; gap: 3px; padding: 4px; border: 1px solid rgba(213, 225, 236, .95); border-radius: 999px; background: rgba(255, 255, 255, .92); backdrop-filter: blur(14px); box-shadow: 0 10px 26px -12px rgba(11, 43, 69, .25); }
.twin-quick button { height: 34px; padding: 0 13px; border: 0; border-radius: 999px; background: transparent; color: var(--jn-text); cursor: pointer; font-size: 12px; font-weight: 600; }
.twin-quick button:hover { color: var(--jn-energy-deep); background: #EFF9FA; }
.twin-quick button.active { color: #fff; background: var(--jn-ink); }
@media (max-width: 820px) {
  .twin-quick { top: 58px; left: 12px; }
  .twin-quick button { height: 30px; padding: 0 10px; font-size: 11px; }
}

@media (max-width: 560px) {
  .twin-quick { top: auto; bottom: 64px; left: 50%; transform: translateX(-50%); white-space: nowrap; }
  .twin-quick button { height: 30px; padding: 0 11px; }
}
