
    :root {
      color-scheme: dark;
      --ink: #e8f7ff; --muted: #79a2b9; --faint: #4d738b;
      --line: rgba(56, 189, 248, .18); --line-strong: rgba(66, 209, 255, .4);
      --panel: rgba(4, 22, 40, .88); --page: #020a15; --surface: rgba(6, 28, 48, .72);
      --soft: rgba(21, 55, 78, .7); --soft-blue: rgba(22, 92, 125, .28);
      --control-bg: rgba(4, 27, 47, .9); --topbar-bg: rgba(2, 12, 25, .94);
      --menu-bg: #071e32; --modal-bg: #061a2c; --modal-backdrop: rgba(0, 5, 12, .78);
      --table-head: rgba(15, 52, 75, .65); --table-hover: rgba(28, 151, 190, .1); --chart-bg: transparent;
      --chart-text: #dff6ff; --chart-muted: #7299b0; --chart-line: rgba(83, 157, 188, .16);
      --chart-primary: #28d8ff; --chart-secondary: #2cf2c2; --chart-tertiary: #ffc857; --chart-quaternary: #a78bfa;
      --chart-1: #28d8ff; --chart-2: #2cf2c2; --chart-3: #4b8dff; --chart-4: #a78bfa; --chart-5: #ffc857; --chart-6: #ff7388; --chart-7: #8ca9bb;
      --brand: #19c7ec; --brand-hover: #61e7ff; --brand-end: #1d7fe5; --brand-text: #00121d;
      --accent: #28d8ff; --accent-2: #2cf2c2; --warn: #ffc857; --danger: #ff7388;
    }
    * { box-sizing: border-box; }
    html { background: var(--page); scroll-behavior: smooth; }
    body {
      margin: 0; min-width: 320px; min-height: 100vh; color: var(--ink);
      font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
      font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased;
      background:
        radial-gradient(ellipse at 50% -18%, rgba(0, 140, 220, .2) 0%, transparent 52%),
        radial-gradient(ellipse at 0% 52%, rgba(0, 102, 165, .12) 0%, transparent 40%),
        radial-gradient(ellipse at 100% 70%, rgba(27, 82, 155, .1) 0%, transparent 42%),
        linear-gradient(145deg, #020914 0%, #03111f 48%, #020a15 100%);
    }
    body::before {
      content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .42;
      background-image: linear-gradient(rgba(48, 174, 217, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(48, 174, 217, .035) 1px, transparent 1px);
      background-size: 42px 42px;
      mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.55) 70%, transparent 100%);
    }
    body::after {
      content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .17;
      background: repeating-linear-gradient(to bottom, transparent 0, transparent 3px, rgba(100, 210, 255, .025) 4px);
    }
    button, input, select { font-family: inherit; }
    button:focus-visible, input:focus-visible, select:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }
    .topbar { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid rgba(40, 216, 255, .26); background: var(--topbar-bg); backdrop-filter: blur(16px); }
    .topbar::before { content: ""; position: absolute; left: 19%; right: 19%; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, #35dfff, transparent); box-shadow: 0 0 14px #24cdef; }
    .topbar::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 240px; height: 5px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, rgba(37, 210, 246, .35), transparent); clip-path: polygon(8% 0, 92% 0, 100% 100%, 0 100%); }
    .topbar-inner { max-width: 1920px; margin: 0 auto; padding: 13px 24px 12px; display: grid; grid-template-columns: minmax(240px, 1fr) minmax(420px, 1.6fr) minmax(480px, 1.35fr); align-items: center; gap: 18px; }
    .brand-line { display: flex; align-items: center; gap: 11px; }
    .brand-mark { width: 42px; height: 42px; display: grid; place-items: center; color: var(--accent); border: 1px solid var(--line-strong); background: linear-gradient(145deg, rgba(33, 205, 240, .13), rgba(17, 71, 105, .08)); clip-path: polygon(20% 0, 80% 0, 100% 20%, 100% 80%, 80% 100%, 20% 100%, 0 80%, 0 20%); }
    .brand-mark svg { width: 29px; height: 29px; }
    .brand-copy strong { display: block; font-size: 12px; letter-spacing: .16em; font-weight: 650; color: #d9f7ff; }
    .brand-copy span { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; letter-spacing: .22em; }
    .system-line { display: flex; align-items: center; gap: 8px; margin-top: 8px; color: #6f9bb2; font-size: 10px; letter-spacing: .05em; }
    .live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 9px var(--accent-2); animation: breathe 2.2s ease-in-out infinite; }
    #liveClock { margin-left: auto; color: #a7d9e9; font-family: "DIN Alternate", "Bahnschrift", monospace; font-size: 12px; font-variant-numeric: tabular-nums; letter-spacing: .08em; }
    .title-wrap { text-align: center; position: relative; padding: 0 12px; }
    h1, h2, p { margin: 0; }
    h1 { font-size: clamp(24px, 1.9vw, 34px); line-height: 1.16; font-weight: 650; letter-spacing: .18em; padding-left: .18em; color: #effcff; text-shadow: 0 0 22px rgba(42, 216, 255, .38); }
    .title-sub { margin-top: 6px; color: #7fc8df; font-size: 11px; letter-spacing: .35em; padding-left: .35em; }
    .freshness { margin-top: 5px; color: #527d94; font-size: 9px; letter-spacing: .04em; }
    .demo-tag { display: inline-block; margin-right: 6px; padding: 0 5px; border: 1px solid rgba(255, 200, 87, .3); color: #ffd475; background: rgba(255, 200, 87, .06); }
    .controls { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 7px; }
    .range-label { display: none; }
    .segmented { display: inline-flex; border: 1px solid var(--line); background: rgba(4, 27, 47, .7); padding: 2px; }
    .segmented button { min-width: 45px; height: 28px; padding: 0 9px; border: 0; border-right: 1px solid rgba(56, 189, 248, .09); background: transparent; color: #729eb4; cursor: pointer; font-size: 11px; transition: color .16s, background .16s, box-shadow .16s; }
    .segmented button:last-child { border-right: 0; }
    .segmented button:hover { color: #d9f9ff; background: rgba(39, 205, 240, .07); }
    .segmented button.active { color: #dffcff; background: linear-gradient(180deg, rgba(31, 192, 225, .26), rgba(22, 110, 154, .18)); box-shadow: inset 0 -1px #32dfff, 0 0 10px rgba(40, 216, 255, .08); }
    .date-fields { display: inline-flex; align-items: center; gap: 5px; }
    input[type="date"] { width: 126px; height: 32px; border: 1px solid var(--line); border-radius: 0; padding: 0 6px; background: var(--control-bg); color: #9dc8d9; font-size: 10px; color-scheme: dark; }
    input[type="date"]::-webkit-calendar-picker-indicator { opacity: .55; }
    .fullscreen-button { width: 34px; height: 32px; display: inline-grid; place-items: center; border: 1px solid var(--line-strong); background: rgba(17, 83, 110, .16); color: #85c9de; cursor: pointer; }
    .fullscreen-button:hover { color: #fff; background: rgba(40, 216, 255, .13); }
    .fullscreen-button svg { width: 15px; height: 15px; }
    .dashboard-shell { position: relative; z-index: 1; max-width: 1920px; margin: 0 auto; padding: 16px 24px 28px; }
    .kpi-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
    .kpi-tile { min-width: 0; height: 112px; position: relative; overflow: hidden; padding: 12px 14px 10px; border: 1px solid var(--line); background: linear-gradient(135deg, rgba(9, 40, 63, .9), rgba(3, 19, 35, .86)); box-shadow: inset 0 0 24px rgba(28, 137, 180, .035); }
    .kpi-tile::before { content: ""; position: absolute; left: 0; top: 0; width: 34px; height: 1px; background: var(--accent); box-shadow: 0 0 8px rgba(40, 216, 255, .5); }
    .kpi-tile::after { content: ""; position: absolute; right: -25px; top: -36px; width: 100px; height: 100px; border: 1px solid rgba(58, 200, 233, .07); transform: rotate(45deg); }
    .kpi-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; position: relative; z-index: 1; }
    .kpi-top p { color: #8fb5c7; font-size: 12px; letter-spacing: .08em; }
    .kpi-icon { width: 29px; height: 29px; display: grid; place-items: center; margin-top: -4px; color: rgba(60, 216, 246, .62); }
    .kpi-icon svg { width: 25px; height: 25px; }
    .kpi-number { display: flex; align-items: baseline; gap: 6px; margin-top: -3px; position: relative; z-index: 1; white-space: nowrap; }
    .kpi-number strong { color: #effdff; font-family: "DIN Alternate", "Bahnschrift", "Segoe UI", sans-serif; font-size: clamp(25px, 1.75vw, 33px); line-height: 1.1; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: .02em; text-shadow: 0 0 18px rgba(63, 219, 249, .15); }
    .kpi-number em { color: #668fa5; font-size: 10px; font-style: normal; }
    .kpi-meta { display: flex; align-items: center; gap: 7px; margin-top: 7px; position: relative; z-index: 1; font-size: 10px; }
    .kpi-meta span { font-family: "Bahnschrift", sans-serif; font-weight: 500; }
    .kpi-meta .positive { color: var(--accent-2); }
    .kpi-meta .negative { color: var(--danger); }
    .kpi-meta small { color: #4e748a; font-size: 9px; }
    .kpi-scan { position: absolute; left: 0; bottom: 0; width: 36%; height: 2px; background: linear-gradient(90deg, var(--accent), transparent); opacity: .5; }
    .panel-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; }
    [data-span="3"] { grid-column: span 3; } [data-span="4"] { grid-column: span 4; } [data-span="5"] { grid-column: span 5; } [data-span="6"] { grid-column: span 6; } [data-span="7"] { grid-column: span 7; } [data-span="8"] { grid-column: span 8; } [data-span="12"] { grid-column: 1 / -1; }
    .dashboard-panel { min-width: 0; position: relative; display: flex; flex-direction: column; padding: 12px 13px 9px; border: 1px solid var(--line); background: linear-gradient(155deg, rgba(6, 28, 48, .9), rgba(2, 16, 30, .88)); box-shadow: inset 0 0 32px rgba(27, 124, 162, .025), 0 8px 30px rgba(0, 0, 0, .08); }
    .dashboard-panel::before, .dashboard-panel::after { content: ""; position: absolute; width: 13px; height: 13px; pointer-events: none; z-index: 2; }
    .dashboard-panel::before { left: -1px; top: -1px; border-left: 2px solid #2acfed; border-top: 2px solid #2acfed; }
    .dashboard-panel::after { right: -1px; bottom: -1px; border-right: 2px solid rgba(42, 207, 237, .65); border-bottom: 2px solid rgba(42, 207, 237, .65); }
    .dashboard-panel header { min-height: 44px; display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; position: relative; z-index: 15; }
    .panel-heading { min-width: 0; position: relative; padding-left: 11px; }
    .panel-heading::before { content: ""; position: absolute; left: 0; top: 3px; width: 3px; height: 15px; background: linear-gradient(to bottom, #58eaff, #1684c0); box-shadow: 0 0 8px rgba(40, 216, 255, .45); }
    .dashboard-panel h2 { color: #d8f3fb; font-size: 14px; line-height: 1.25; font-weight: 550; letter-spacing: .08em; }
    .dashboard-panel header p { margin-top: 4px; color: #466f86; font-size: 8px; letter-spacing: .14em; white-space: nowrap; }
    .chart-wrap { min-height: 0; flex: 1; position: relative; }
    .chart { width: 100%; height: 268px; min-height: 268px; }
    [data-size="large"] .chart { height: clamp(310px, 34vh, 400px); min-height: 310px; }
    .dashboard-panel footer { min-height: 19px; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; padding-top: 5px; border-top: 1px solid rgba(58, 170, 205, .07); color: #466e83; font-size: 9px; }
    .dashboard-panel footer span:last-child { text-align: right; }
    .map-badges { position: absolute; left: 8px; top: 7px; z-index: 5; display: flex; gap: 6px; pointer-events: none; }
    .map-badges span { padding: 3px 7px; border: 1px solid rgba(45, 197, 229, .15); background: rgba(3, 24, 40, .7); color: #6c9eb3; font-size: 9px; }
    .map-badges i { display: inline-block; width: 5px; height: 5px; margin-right: 5px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 6px var(--accent-2); }
    .map-scale { position: absolute; right: 12px; top: 8px; z-index: 5; color: #70a4ba; text-align: center; font: 10px/1.1 "Bahnschrift", sans-serif; pointer-events: none; }
    .map-scale b { color: var(--accent); font-size: 22px; font-weight: 400; }
    .map-live { position: absolute; right: 9px; top: 53px; z-index: 5; display: flex; align-items: center; gap: 5px; padding: 3px 6px; border: 1px solid rgba(44,242,194,.16); background: rgba(3,24,40,.72); color: #66a9b9; font: 8px "Bahnschrift", sans-serif; letter-spacing: .06em; pointer-events: none; }
    .map-live i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 7px var(--accent-2); animation: breathe 2s ease-in-out infinite; }
    .map-live span { color: #a5d6df; font-variant-numeric: tabular-nums; }
    .weather-primary { position: absolute; left: 8px; right: 8px; top: 4px; z-index: 5; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; pointer-events: none; }
    .weather-primary > div { display: flex; align-items: baseline; gap: 5px; min-width: 0; padding: 7px 9px 6px; border: 1px solid rgba(40,216,255,.12); background: linear-gradient(120deg, rgba(16,65,88,.28), rgba(4,26,43,.18)); }
    .weather-primary span { color: #6f9db1; font-size: 9px; white-space: nowrap; }
    .weather-primary strong { margin-left: auto; color: #ebfdff; font: 500 27px/1 "Bahnschrift", sans-serif; font-variant-numeric: tabular-nums; }
    .weather-primary em { color: #618da2; font-size: 8px; font-style: normal; }
    .weather-meta { position: absolute; left: 10px; right: 10px; top: 65px; z-index: 5; display: flex; align-items: center; flex-wrap: wrap; gap: 5px 10px; color: #608ca1; font-size: 8px; pointer-events: none; }
    .weather-meta b { color: #a8d4e1; font-weight: 500; font-variant-numeric: tabular-nums; }
    .weather-meta > span:last-child { margin-left: auto; padding: 1px 5px; border: 1px solid currentColor; }
    .condition-safe { color: var(--accent-2); }
    .condition-warn { color: var(--warn); }
    .chart-actions { display: flex; align-items: center; gap: 5px; position: relative; z-index: 18; }
    .toolbox { position: relative; flex: 0 0 auto; }
    .tool-button { width: 28px; height: 26px; display: inline-flex; align-items: center; justify-content: center; gap: 2px; border: 1px solid transparent; background: transparent; color: #598298; cursor: pointer; padding: 0; opacity: .65; }
    .tool-button:hover, .tool-button:focus-visible { border-color: var(--line); color: var(--accent); opacity: 1; }
    .tool-button .dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
    .menu { display: none; position: absolute; right: 0; top: 30px; z-index: 60; width: 172px; padding: 5px; border: 1px solid var(--line-strong); background: var(--menu-bg); box-shadow: 0 12px 28px rgba(0, 0, 0, .35); }
    .menu.open { display: block; }
    .menu button { display: block; width: 100%; padding: 8px 10px; border: 0; background: transparent; color: #9dc6d7; text-align: left; cursor: pointer; font-size: 11px; }
    .menu button:hover { background: rgba(40, 216, 255, .08); color: #e6fbff; }
    .edit-panel { display: none; align-items: center; height: 26px; border: 1px solid var(--line); background: var(--control-bg); color: #638da3; font-size: 9px; }
    .edit-panel.open { display: flex; }
    .edit-panel label { padding-left: 6px; }
    .edit-panel select { height: 24px; padding: 0 18px 0 5px; border: 0; border-left: 1px solid var(--line); background: #071e32; color: #a9d4e4; font-size: 10px; }
    .table-scroll { flex: 1; min-height: 190px; overflow: auto; border-top: 1px solid rgba(46, 176, 211, .1); }
    table { width: 100%; border-collapse: collapse; font-size: 11px; }
    th, td { padding: 10px 12px; border-bottom: 1px solid rgba(58, 157, 189, .08); text-align: left; white-space: nowrap; }
    th { color: #6c99af; background: var(--table-head); font-size: 10px; font-weight: 500; letter-spacing: .06em; }
    td { color: #9fc2d1; }
    td.num { text-align: right; font-variant-numeric: tabular-nums; }
    tbody tr:hover td { background: var(--table-hover); }
    tbody tr:last-child td { border-bottom: 0; }
    .status-badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 7px; border: 1px solid rgba(111, 148, 166, .2); color: #8baabd; background: rgba(101, 137, 153, .06); font-size: 10px; }
    .status-badge::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
    .status-success { color: #4ce5bd; border-color: rgba(44, 242, 194, .18); background: rgba(44, 242, 194, .05); }
    .status-processing { color: #43d9fa; border-color: rgba(40, 216, 255, .18); background: rgba(40, 216, 255, .05); }
    .status-warning { color: #ffd16e; border-color: rgba(255, 200, 87, .2); background: rgba(255, 200, 87, .05); }
    .status-danger { color: #ff8799; border-color: rgba(255,115,136,.24); background: rgba(255,115,136,.07); }
    .dashboard-note { min-height: 42px; display: flex; align-items: center; gap: 18px; margin-top: 3px; padding: 8px 12px; border: 0; border-left: 2px solid var(--accent); border-bottom: 1px solid rgba(40,216,255,.16); color: #4e7e95; background: linear-gradient(90deg, rgba(22,103,137,.16), transparent 70%); }
    .dashboard-note strong { color: #c8edf7; font-size: 13px; font-weight: 550; letter-spacing: .12em; white-space: nowrap; }
    .dashboard-note span { margin-left: auto; font-size: 8px; letter-spacing: .18em; text-align: right; }
    .screen-note { margin-top: 12px; display: flex; justify-content: space-between; gap: 16px; color: #3f657a; font-size: 9px; letter-spacing: .04em; }
    .modal-backdrop { position: fixed; inset: 0; z-index: 90; display: none; align-items: center; justify-content: center; padding: 24px; background: var(--modal-backdrop); backdrop-filter: blur(5px); }
    .modal-backdrop.open { display: flex; }
    .modal { width: min(850px, 100%); max-height: 90vh; overflow: auto; border: 1px solid var(--line-strong); background: var(--modal-bg); box-shadow: 0 0 60px rgba(0, 155, 220, .12); }
    .modal-head { display: flex; justify-content: space-between; gap: 16px; padding: 18px 20px 14px; border-bottom: 1px solid var(--line); }
    .modal-head h3 { margin: 0; color: #e4f9ff; font-size: 16px; font-weight: 550; }
    .modal-subtitle { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
    .modal-body { padding: 18px 20px 20px; }
    .source-section + .source-section { margin-top: 16px; }
    .source-section h4 { margin: 0 0 8px; color: #b8dce9; font-size: 12px; font-weight: 550; }
    .code-wrap { position: relative; }
    pre { margin: 0; padding: 15px; overflow: auto; border: 1px solid var(--line); background: rgba(1, 11, 22, .78); color: #8fc5d8; font: 11px/1.65 "SFMono-Regular", Consolas, monospace; white-space: pre-wrap; }
    .close, .copy-button { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); background: var(--control-bg); color: #77a5b9; cursor: pointer; }
    .close { width: 31px; height: 31px; }
    .copy-button { position: absolute; right: 8px; top: 8px; width: 28px; height: 28px; }
    .close svg, .copy-button svg { width: 15px; height: 15px; }
    .close:hover, .copy-button:hover { color: var(--accent); border-color: var(--line-strong); }
    @keyframes breathe { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
    @media (max-width: 1500px) {
      .topbar-inner { grid-template-columns: minmax(210px, .9fr) minmax(360px, 1.35fr) minmax(430px, 1.25fr); padding-left: 18px; padding-right: 18px; gap: 12px; }
      .dashboard-shell { padding-left: 18px; padding-right: 18px; }
      .brand-copy strong { font-size: 10px; } .brand-copy span { font-size: 8px; }
      .title-sub { font-size: 9px; } .freshness { font-size: 8px; }
      .kpi-grid { gap: 9px; } .kpi-tile { padding-left: 11px; padding-right: 11px; }
      .kpi-meta small { display: none; } .panel-grid { gap: 11px; }
      .segmented button { min-width: 39px; padding: 0 6px; } input[type="date"] { width: 116px; }
    }
    @media (max-width: 1200px) {
      .topbar { position: relative; }
      .topbar-inner { grid-template-columns: 1fr; gap: 10px; }
      .title-wrap { grid-row: 1; } .brand-line { justify-content: center; } .system-line { max-width: 320px; margin: 7px auto 0; }
      .controls { justify-content: center; }
      .kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
      [data-span="3"], [data-span="4"] { grid-column: span 6; } [data-span="5"], [data-span="6"], [data-span="7"], [data-span="8"] { grid-column: 1 / -1; }
      [data-size="large"] .chart { height: 340px; }
    }
    @media (max-width: 720px) {
      .topbar-inner, .dashboard-shell { padding-left: 12px; padding-right: 12px; }
      h1 { font-size: 25px; letter-spacing: .12em; } .title-sub { font-size: 8px; letter-spacing: .25em; }
      .brand-copy strong { font-size: 11px; } .brand-copy span { font-size: 9px; }
      .segmented { width: 100%; } .segmented button { flex: 1; min-width: 0; }
      .date-fields { width: calc(100% - 42px); } input[type="date"] { width: 50%; min-width: 0; }
      .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
      .kpi-tile { height: 108px; } .kpi-number strong { font-size: 26px; }
      .dashboard-panel, [data-span] { grid-column: 1 / -1; }
      .chart, [data-size="large"] .chart { height: 310px; min-height: 280px; }
      .dashboard-panel footer { align-items: flex-start; flex-direction: column; gap: 2px; }
      .dashboard-panel footer span:last-child { text-align: left; }
      .dashboard-note { align-items: flex-start; flex-direction: column; gap: 3px; }
      .dashboard-note span { margin-left: 0; text-align: left; letter-spacing: .1em; }
      .weather-primary > div { padding-left: 6px; padding-right: 6px; }
      .weather-primary strong { font-size: 24px; }
      .screen-note { flex-direction: column; gap: 4px; }
      .table-scroll table { min-width: 650px; }
      .modal-backdrop { padding: 12px; } .modal-head, .modal-body { padding-left: 14px; padding-right: 14px; }
    }
    @media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
    
/* ---- v1 shared extras ---- */
    .view-switch { height: 32px; display: inline-flex; align-items: center; padding: 0 11px; border: 1px solid var(--line-strong); color: #a8e9f7; background: rgba(20, 107, 140, .15); text-decoration: none; font-size: 11px; letter-spacing: .05em; white-space: nowrap; }
    .view-switch:hover, .view-switch:focus-visible { color: #fff; border-color: var(--accent); background: rgba(40, 216, 255, .12); outline: none; }
    .shareholder-view .kpi-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    .shareholder-view .investment-kpi-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 0; }
    .investment-kpi-grid .kpi-tile { border-color: rgba(255, 200, 87, .24); background: linear-gradient(135deg, rgba(44, 42, 35, .5), rgba(4, 22, 40, .88)); }
    .investment-kpi-grid .kpi-tile .kpi-icon { color: var(--warn); border-color: rgba(255, 200, 87, .25); }
    .shareholder-status { position: relative; display: grid; grid-template-columns: minmax(250px, 1.25fr) minmax(150px, .65fr) minmax(520px, 2.8fr); gap: 0; margin-bottom: 14px; border: 1px solid var(--line-strong); background: linear-gradient(110deg, rgba(8, 43, 67, .95), rgba(3, 19, 35, .9)); box-shadow: inset 0 0 34px rgba(40, 216, 255, .035); }
    .shareholder-status::before { content: ""; position: absolute; left: 0; top: -1px; width: 110px; height: 2px; background: linear-gradient(90deg, var(--accent), transparent); box-shadow: 0 0 10px rgba(40,216,255,.45); }
    .shareholder-identity { padding: 16px 18px; border-right: 1px solid var(--line); }
    .shareholder-identity > span, .shareholder-current > span { color: #6494aa; font-size: 9px; letter-spacing: .14em; }
    .shareholder-identity h2 { margin-top: 7px; color: #edfcff; font-size: 23px; font-weight: 600; letter-spacing: .08em; }
    .shareholder-identity h2 i { margin: 0 8px; color: var(--accent); font-style: normal; font-weight: 400; }
    .shareholder-identity p { margin-top: 6px; color: #6c96a9; font-size: 10px; }
    .shareholder-current { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 13px; border-right: 1px solid var(--line); text-align: center; }
    .shareholder-current strong { margin-top: 3px; color: var(--accent-2); font-size: 27px; line-height: 1.2; font-weight: 600; text-shadow: 0 0 16px rgba(44,242,194,.2); }
    .shareholder-current small { margin-top: 5px; color: #618ca1; font-size: 9px; font-variant-numeric: tabular-nums; }
    .shareholder-current.status-idle strong { color: var(--accent); }
    .shareholder-current.status-maintenance strong { color: var(--warn); }
    .shareholder-live-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 12px 14px; gap: 8px 12px; }
    .shareholder-live-item { min-width: 0; padding: 4px 9px; border-left: 1px solid rgba(40,216,255,.14); }
    .shareholder-live-item span { display: block; color: #5d879c; font-size: 9px; }
    .shareholder-live-item strong { display: block; margin-top: 3px; overflow: hidden; color: #c8edf6; font-size: 13px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
    .shareholder-live-item strong em { margin-left: 3px; color: #628da2; font-size: 9px; font-style: normal; }
    .shareholder-live-item .live-value { color: var(--accent-2); font-variant-numeric: tabular-nums; }
    .asset-source { position: absolute; right: 8px; top: 7px; z-index: 3; border: 0; background: transparent; color: #4f7d93; cursor: pointer; font-size: 9px; }
    .asset-source:hover { color: var(--accent); }
    .shareholder-access { display: grid; grid-template-columns: minmax(0, 1fr) 156px; gap: 18px; align-items: center; margin-bottom: 14px; padding: 14px 16px; border: 1px solid var(--line); border-left: 3px solid var(--accent-2); background: rgba(4, 25, 42, .86); }
    .shareholder-access-copy > span { color: #5f94a9; font-size: 9px; letter-spacing: .14em; }
    .shareholder-access h2 { margin-top: 5px; color: #dff9ff; font-size: 15px; font-weight: 550; letter-spacing: .05em; }
    .shareholder-access p { margin-top: 6px; color: #8db4c3; font-size: 11px; }
    .shareholder-access p.invite-arrived { color: var(--accent-2); }
    .shareholder-production { margin-top: 8px; padding: 7px 9px; border: 1px solid rgba(255,200,87,.18); color: #8fa9b3; background: rgba(255,200,87,.035); font-size: 10px; }
    .shareholder-production b { margin-right: 8px; color: #ffd475; font-weight: 500; }
    .shareholder-url-label { display: block; margin-top: 10px; color: #628fa3; font-size: 9px; }
    .shareholder-url-edit { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; margin-top: 4px; }
    .shareholder-url-edit input { min-width: 0; height: 32px; padding: 0 9px; border: 1px solid var(--line); border-radius: 0; background: rgba(1,14,27,.8); color: #a9d3df; font-size: 10px; }
    .shareholder-qr-refresh { padding: 0 11px; border: 1px solid var(--line-strong); border-radius: 0; background: rgba(25,135,174,.12); color: #a5e2ef; cursor: pointer; font-size: 10px; }
    .shareholder-access-copy > small { display: block; margin-top: 5px; color: #527d91; font-size: 9px; overflow-wrap: anywhere; }
    .shareholder-qr-link { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px; border: 1px solid rgba(44,242,194,.22); color: #9eeeda; text-align: center; text-decoration: none; }
    .shareholder-qr-link:hover { border-color: var(--accent-2); background: rgba(44,242,194,.04); }
    .shareholder-qr-code { width: 128px; height: 128px; display: grid; place-items: center; padding: 5px; background: #e8f7ff; }
    .shareholder-qr-code img, .shareholder-qr-code canvas { width: 118px !important; height: 118px !important; margin: 0; }
    .shareholder-qr-link strong { font-size: 11px; font-weight: 550; }
    .shareholder-qr-link small { color: #5f918f; font-size: 9px; }
    @media (max-width: 1500px) {
      .shareholder-status { grid-template-columns: minmax(220px, 1fr) 150px minmax(440px, 2.2fr); }
      .shareholder-identity { padding-left: 14px; } .shareholder-live-grid { padding-left: 9px; padding-right: 9px; gap: 7px; }
    }
    @media (max-width: 1200px) {
      .shareholder-view .kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
      .shareholder-status { grid-template-columns: 1fr 180px; }
      .shareholder-live-grid { grid-column: 1 / -1; border-top: 1px solid var(--line); }
      .shareholder-current { border-right: 0; }
    }
    @media (max-width: 720px) {
      .view-switch { width: 100%; justify-content: center; }
      .shareholder-view .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .shareholder-status { grid-template-columns: 1fr; }
      .shareholder-identity { padding: 15px; border-right: 0; border-bottom: 1px solid var(--line); }
      .shareholder-identity h2 { font-size: 21px; }
      .shareholder-current { min-height: 104px; border-bottom: 1px solid var(--line); }
      .shareholder-live-grid { grid-column: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 11px; }
      .asset-source { top: 9px; }
      .shareholder-access { grid-template-columns: 1fr; padding: 12px; }
      .shareholder-url-edit { grid-template-columns: 1fr; }
      .shareholder-qr-refresh { min-height: 34px; }
      .shareholder-qr-link { width: 156px; margin: 0 auto; }
    }
/* ---- v1 ticketing ---- */
    .ticket-integration-banner { display: grid; grid-template-columns: 220px 1fr; gap: 4px 18px; margin-bottom: 12px; padding: 11px 14px; border: 1px solid rgba(255,200,87,.28); border-left: 3px solid var(--warn); background: linear-gradient(90deg, rgba(93,68,23,.18), rgba(5,25,42,.7)); }
    .ticket-integration-banner strong { grid-row: span 2; align-self: center; color: #ffd475; font-size: 12px; letter-spacing: .06em; }
    .ticket-integration-banner span { color: #b8cbd3; font-size: 11px; }
    .ticket-integration-banner small { color: #698da0; font-size: 9px; }
    .ticket-kpi-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
    [data-ticket-kpi-card] { min-width: 0; padding: 12px 14px; border: 1px solid var(--line); background: linear-gradient(135deg, rgba(9,40,63,.9), rgba(3,19,35,.86)); }
    [data-ticket-kpi-card] span { display: block; color: #83aabd; font-size: 11px; }
    [data-ticket-kpi-card] strong { display: inline-block; margin-top: 4px; color: #effdff; font: 600 30px/1.1 "Bahnschrift", sans-serif; }
    [data-ticket-kpi-card] em { margin-left: 6px; color: #648da1; font-size: 10px; font-style: normal; }
    .panel-live-label, .workflow-lock { color: #6394a8; font-size: 9px; white-space: nowrap; }
    .workflow-lock { padding: 2px 7px; border: 1px solid rgba(44,242,194,.2); color: var(--accent-2); }
    .scan-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 7px; }
    .scan-form input { min-width: 0; height: 40px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 0; background: rgba(1,14,27,.8); color: #dcf8ff; font-size: 12px; }
    .scan-form input::placeholder { color: #4e778c; }
    .primary-action, .secondary-action, .success-action, .warning-action, .text-action { min-height: 34px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 0; cursor: pointer; font-size: 11px; transition: background .15s, color .15s, opacity .15s; }
    .primary-action { background: linear-gradient(135deg, #19b9d9, #1775bb); color: #effdff; }
    .secondary-action { background: rgba(25,135,174,.12); color: #9ed9e9; }
    .success-action { border-color: rgba(44,242,194,.4); background: rgba(44,242,194,.14); color: #6ff5d1; }
    .warning-action { border-color: rgba(255,200,87,.35); background: rgba(255,200,87,.1); color: #ffd475; }
    .text-action { border-color: transparent; background: transparent; color: #6e96a8; text-decoration: underline; }
    .primary-action:hover, .secondary-action:hover, .success-action:hover, .warning-action:hover { filter: brightness(1.18); }
    button:disabled { cursor: not-allowed; filter: none; opacity: .28; }
    .scan-result { min-height: 55px; display: flex; align-items: center; margin-top: 10px; padding: 10px 12px; border: 1px solid var(--line); background: rgba(2,17,31,.65); color: #739aad; font-size: 11px; }
    .scan-result.success { border-color: rgba(44,242,194,.3); color: var(--accent-2); }
    .scan-result.warning { border-color: rgba(255,200,87,.3); color: var(--warn); }
    .scan-result.error { border-color: rgba(255,115,136,.35); color: #ff96a5; }
    .camera-actions { display: flex; align-items: center; gap: 7px; margin-top: 9px; }
    .camera-actions .text-action { margin-left: auto; }
    .camera-preview { width: 100%; max-height: 240px; margin-top: 10px; object-fit: cover; border: 1px solid var(--line-strong); background: #000; }
    .scan-rule-list { margin-top: 12px; border-top: 1px solid var(--line); }
    .scan-rule-list p { display: grid; grid-template-columns: 74px 1fr; gap: 8px; padding: 8px 0; border-bottom: 1px solid rgba(56,189,248,.07); font-size: 10px; }
    .scan-rule-list b { color: #8eb9ca; font-weight: 500; }
    .scan-rule-list span { color: #527c91; overflow-wrap: anywhere; }
    .ticket-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 6px 0 12px; padding: 0; list-style: none; }
    .ticket-steps li { position: relative; display: flex; align-items: center; gap: 6px; color: #4e768a; font-size: 10px; }
    .ticket-steps li::after { content: ""; position: absolute; left: 28px; right: 5px; top: 11px; height: 1px; background: #174157; z-index: 0; }
    .ticket-steps li:last-child::after { display: none; }
    .ticket-steps i { position: relative; z-index: 1; width: 23px; height: 23px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid #28566d; border-radius: 50%; background: #061a2c; font-style: normal; }
    .ticket-steps span { position: relative; z-index: 1; padding-right: 5px; background: #061a2c; }
    .ticket-steps li.done { color: var(--accent-2); }
    .ticket-steps li.done i { border-color: var(--accent-2); }
    .ticket-steps li.done::after { background: rgba(44,242,194,.45); }
    .ticket-steps li.current { color: var(--accent); }
    .ticket-steps li.current i { border-color: var(--accent); box-shadow: 0 0 10px rgba(40,216,255,.25); }
    .selected-ticket-detail { min-height: 105px; padding: 11px 12px; border: 1px solid var(--line); background: rgba(2,17,31,.58); }
    .empty-selection { min-height: 80px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: #527d92; text-align: center; }
    .empty-selection strong { color: #8db6c6; font-size: 13px; font-weight: 500; }
    .empty-selection span { font-size: 10px; }
    .selected-ticket-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
    .selected-ticket-head > div span { display: block; color: #5d8ba0; font-size: 9px; }
    .selected-ticket-head > div strong { color: #dcf7ff; font: 500 15px "Bahnschrift", sans-serif; letter-spacing: .04em; }
    .selected-ticket-grid { display: grid; grid-template-columns: 76px 1fr 76px 1.3fr; gap: 6px 10px; margin-top: 10px; font-size: 10px; }
    .selected-ticket-grid span { color: #527e93; }
    .selected-ticket-grid b { min-width: 0; color: #a8cbd8; font-weight: 400; overflow-wrap: anywhere; }
    .assignment-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
    .assignment-grid label { color: #668fa2; font-size: 9px; }
    .assignment-grid label[hidden], .ticket-action-grid button[hidden] { display: none; }
    .assignment-grid select, .ticket-filters select { width: 100%; height: 34px; margin-top: 4px; padding: 0 8px; border: 1px solid var(--line); border-radius: 0; background: #071e32; color: #aed5e2; font-size: 10px; }
    .workflow-hint { margin-top: 9px; color: #6d9aac; font-size: 10px; }
    .ticket-action-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin-top: 9px; }
    .fleet-ticket-grid { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 8px; padding: 7px 0 12px; }
    .fleet-ticket-card { min-width: 0; padding: 10px; border: 1px solid var(--line); background: rgba(3,21,36,.72); }
    .fleet-ticket-card > div { display: flex; align-items: center; justify-content: space-between; gap: 5px; }
    .fleet-ticket-card > div > strong { color: #d7f3fb; font-size: 12px; font-weight: 550; }
    .fleet-ticket-card p { min-height: 30px; margin-top: 8px; color: #739bad; font-size: 9px; overflow-wrap: anywhere; }
    .fleet-ticket-card small { display: block; margin-top: 5px; color: #4e788e; font-size: 8px; }
    .fleet-ticket-card.operating { border-top-color: var(--accent-2); }
    .fleet-ticket-card.maintenance { border-top-color: var(--warn); }
    .inline-link { color: var(--accent); font-size: 10px; text-decoration: none; white-space: nowrap; }
    .ticket-filters { display: flex; align-items: center; gap: 8px; }
    .ticket-filters select { width: 126px; margin-top: 0; }
    .qr-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; max-height: 510px; overflow: auto; padding: 6px 2px 12px; }
    .qr-ticket-card { min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 11px 8px; border: 1px solid var(--line); background: rgba(3,21,36,.78); color: #8db2c2; cursor: pointer; text-align: center; }
    .qr-ticket-card:hover, .qr-ticket-card.selected { border-color: var(--accent); background: rgba(24,112,143,.13); }
    .qr-code { width: 112px; height: 112px; display: grid; place-items: center; padding: 4px; background: #e8f7ff; }
    .qr-code img, .qr-code canvas { width: 104px !important; height: 104px !important; margin: 0; }
    .qr-channel { margin-top: 3px; color: #6d9eb1; font-size: 9px; }
    .qr-ticket-card > strong { max-width: 100%; color: #d1edf5; font: 500 11px "Bahnschrift", sans-serif; overflow-wrap: anywhere; }
    .qr-ticket-card > small { color: #4f7b8e; font-size: 8px; }
    .ticket-id-link { padding: 0; border: 0; background: transparent; color: var(--accent); cursor: pointer; font: inherit; }
    .empty-table { padding: 24px; color: #5d8598; text-align: center; }
    .ticket-toast { position: fixed; right: 24px; bottom: 24px; z-index: 120; max-width: min(420px, calc(100vw - 24px)); padding: 11px 15px; border: 1px solid var(--line-strong); background: #08243a; color: #c9edf7; box-shadow: 0 14px 40px rgba(0,0,0,.35); font-size: 11px; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .2s, transform .2s; }
    .ticket-toast.show { opacity: 1; transform: translateY(0); }
    .ticket-toast.success { border-color: rgba(44,242,194,.5); color: var(--accent-2); }
    .ticket-toast.warning { border-color: rgba(255,200,87,.5); color: var(--warn); }
    .ticket-toast.danger { border-color: rgba(255,115,136,.5); color: #ff96a5; }
    .sales-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .9fr); gap: 14px; padding: 8px 0 12px; }
    .sale-form { min-width: 0; padding: 12px; border: 1px solid var(--line); background: rgba(2,17,31,.5); }
    .sale-form-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .sale-form label { color: #79a5b7; font-size: 10px; }
    .sale-form input, .sale-form select { width: 100%; height: 38px; margin-top: 5px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 0; background: #071e32; color: #c4e5ee; font-size: 11px; box-sizing: border-box; }
    .sale-checkout { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
    .sale-checkout span { display: block; color: #6d98aa; font-size: 9px; }
    .sale-checkout strong { color: var(--accent-2); font: 600 26px "Bahnschrift", sans-serif; }
    .sale-checkout button { min-height: 42px; }
    .sale-payment-note { margin: 10px 0 0; color: #608a9d; font-size: 9px; line-height: 1.6; }
    .sale-result { min-width: 0; min-height: 230px; padding: 12px; border: 1px solid rgba(44,242,194,.2); background: rgba(2,17,31,.65); }
    .sale-result-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
    .sale-result-head span, .sale-result-head small { display: block; color: #6c96a9; font-size: 9px; }
    .sale-result-head strong { display: block; margin: 3px 0; color: var(--accent-2); font-size: 14px; }
    .sale-ticket-list { display: grid; gap: 10px; max-height: 480px; overflow: auto; }
    .sale-ticket { display: grid; grid-template-columns: minmax(0, 1fr) 174px; gap: 10px; padding: 10px; border: 1px solid var(--line); background: rgba(7,31,49,.85); }
    .sale-ticket-copy { align-self: center; min-width: 0; }
    .sale-ticket-copy span, .sale-ticket-copy small { display: block; margin-top: 6px; color: #739cad; font-size: 9px; }
    .sale-ticket-copy strong { display: block; margin-top: 6px; color: #d9f5fb; font: 500 14px "Bahnschrift", sans-serif; overflow-wrap: anywhere; }
    .sale-ticket-qr { width: 174px; height: 174px; display: grid; place-items: center; padding: 5px; background: #fff; box-sizing: border-box; }
    .sale-ticket-qr img, .sale-ticket-qr canvas { width: 164px !important; height: 164px !important; }
    .sale-ticket-actions { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
    @media print {
      body.printing-sale * { visibility: hidden !important; }
      body.printing-sale #saleResult, body.printing-sale #saleResult * { visibility: visible !important; }
      body.printing-sale #saleResult { position: absolute; left: 0; top: 0; width: 100%; border: 0; background: #fff; color: #000; }
      body.printing-sale .sale-ticket { color: #000; background: #fff; break-inside: avoid; }
      body.printing-sale .sale-ticket-copy strong, body.printing-sale .sale-result-head strong, body.printing-sale .sale-ticket-copy span, body.printing-sale .sale-ticket-copy small, body.printing-sale .sale-result-head span, body.printing-sale .sale-result-head small { color: #000; }
      body.printing-sale .sale-ticket-actions, body.printing-sale .sale-result-head button { display: none !important; }
    }
    @media (max-width: 1500px) { .fleet-ticket-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
    @media (max-width: 1200px) { .ticket-kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ticket-integration-banner { grid-template-columns: 1fr; } .ticket-integration-banner strong { grid-row: auto; } }
    @media (max-width: 720px) {
      .ticket-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
      .ticket-integration-banner { padding: 10px; }
      .sales-layout, .sale-form-fields { grid-template-columns: 1fr; }
      .sale-result-head, .sale-checkout { align-items: stretch; flex-direction: column; }
      .sale-ticket { grid-template-columns: 1fr; }
      .sale-ticket-qr { margin: auto; }
      .sale-ticket-actions { grid-template-columns: 1fr; }
      .scan-form { grid-template-columns: 1fr; }
      .ticket-steps span { font-size: 8px; }
      .selected-ticket-grid { grid-template-columns: 68px 1fr; }
      .assignment-grid, .ticket-action-grid { grid-template-columns: 1fr; }
      .fleet-ticket-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .ticket-gallery-panel header { flex-direction: column; }
      .ticket-filters { width: 100%; flex-wrap: wrap; }
      .ticket-filters .segmented { width: auto; flex: 1; }
      .qr-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .ticket-toast { right: 12px; bottom: 12px; }
    }
