    * { box-sizing: border-box; }

    html, body { width: 100%; min-height: 100vh; overflow-x: hidden; overflow-y: auto; }

    body {

      margin: 0;

      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;

      background: #f4f7fb;

      color: #111827;

      -webkit-text-size-adjust: 100%;

    }

    .container {

      max-width: 1660px;

      margin: 0 auto;

      padding: 24px;

    }

    .hero {

      background: linear-gradient(135deg, #0f766e, #2563eb);

      color: #fff;

      border-radius: 24px;

      padding: 28px;

      margin-bottom: 20px;

    }

    .hero h1 {

      margin: 0 0 10px;

      font-size: 30px;

      letter-spacing: 0.3px;

    }

    .hero p {

      margin: 0;

      line-height: 1.9;

      opacity: 0.96;

      font-size: 15px;

    }

    .section {

      background: #fff;

      border: 1px solid #e5e7eb;

      border-radius: 18px;

      padding: 22px;

      margin-bottom: 20px;

      box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);

    }

    .section h2 {

      margin: 0 0 14px;

      font-size: 21px;

    }

    .toolbar {

      display: flex;

      flex-wrap: wrap;

      gap: 12px;

    }

    button {

      border: none;

      border-radius: 12px;

      padding: 11px 16px;

      font-size: 14px;

      cursor: pointer;

      transition: all 0.25s;

    }

    button:hover { opacity: 0.92; }

    .btn-primary { background: #2563eb; color: white; }

    .btn-success { background: #16a34a; color: white; }

    .btn-danger { background: #dc2626; color: white; }

    .btn-secondary { background: #eef2ff; color: #3730a3; }

    .btn-info { background: #0ea5e9; color: white; }

    .btn-warning { background: #f59e0b; color: white; }

    .grid {

      display: grid;

      grid-template-columns: repeat(4, 1fr);

      gap: 16px;

    }

    .grid-2 {

      display: grid;

      grid-template-columns: 1.4fr 1fr;

      gap: 16px;

    }

    .metric {

      background: #f8fafc;

      border: 1px solid #e5e7eb;

      border-radius: 16px;

      padding: 18px;

    }

    .metric .name {

      color: #6b7280;

      font-size: 13px;

    }

    .metric .value {

      margin-top: 10px;

      font-size: 30px;

      font-weight: 700;

      color: #111827;

      word-break: break-word;

    }

    .metric .sub {

      margin-top: 8px;

      color: #6b7280;

      font-size: 12px;

      line-height: 1.7;

    }

    .metric.highlight {

      background: #ecfdf5;

      border-color: #10b981;

    }

    .metric.highlight .value { color: #059669; }

    .metric.warning {

      background: #fff7ed;

      border-color: #fb923c;

    }

    .metric.warning .value { color: #ea580c; }

    .metric.alert {

      background: #fef2f2;

      border-color: #fca5a5;

    }

    .metric.alert .value { color: #dc2626; }

    .status-box {

      background: #f8fafc;

      border: 1px solid #e5e7eb;

      border-radius: 14px;

      padding: 16px;

      line-height: 1.9;

      color: #374151;

    }

    .live-tuning-box {

      background: #eff6ff;

      border: 1px solid #93c5fd;

      color: #1e3a8a;

      border-radius: 14px;

      padding: 16px;

      line-height: 1.9;

      margin-top: 12px;

    }

    .live-tuning-box.hot {

      background: #fff7ed;

      border-color: #fdba74;

      color: #9a3412;

    }

    .snapshot-box {

      background: #f8fafc;

      border: 1px solid #dbeafe;

      border-radius: 14px;

      padding: 16px;

      margin-top: 12px;

    }

    .snapshot-head {

      display: flex;

      justify-content: space-between;

      align-items: center;

      gap: 12px;

      flex-wrap: wrap;

    }

    .snapshot-actions {

      display: flex;

      gap: 8px;

      flex-wrap: wrap;

    }

    .snapshot-list {

      display: grid;

      grid-template-columns: 1fr;

      gap: 12px;

      margin-top: 14px;

    }

    .snapshot-item {

      border: 1px solid #dbeafe;

      background: #ffffff;

      border-radius: 14px;

      padding: 14px;

    }

    .snapshot-title {

      font-size: 15px;

      font-weight: 800;

      color: #1e3a8a;

    }

    .snapshot-meta {

      font-size: 12px;

      color: #6b7280;

      line-height: 1.8;

      margin-top: 6px;

    }

    .snapshot-btns {

      display: flex;

      gap: 8px;

      flex-wrap: wrap;

      margin-top: 10px;

    }

    .form-grid {

      display: grid;

      grid-template-columns: repeat(4, 1fr);

      gap: 16px;

    }

    label {

      display: block;

      font-size: 13px;

      color: #374151;

      margin-bottom: 6px;

    }

    input, select {

      width: 100%;

      border: 1px solid #d1d5db;

      border-radius: 12px;

      padding: 11px 13px;

      font-size: 14px;

      background: #fff;

      min-height: 44px;

    }

    input[type="range"] {

      width: 100%;

      margin: 0;

      padding: 0;

      border: none;

      background: transparent;

      appearance: none;

      -webkit-appearance: none;

      min-height: 42px;

      height: 42px;

      display: block;

      position: relative;

      z-index: 3;

      pointer-events: auto;

      touch-action: pan-y;

    }

    input[type="range"]:focus {

      outline: none;

    }

    input[type="range"]::-webkit-slider-runnable-track {

      height: 10px;

      border-radius: 999px;

      background: linear-gradient(90deg, #c7d2fe, #93c5fd);

      border: 1px solid #bfdbfe;

    }

    input[type="range"]::-webkit-slider-thumb {

      -webkit-appearance: none;

      appearance: none;

      width: 26px;

      height: 26px;

      border-radius: 999px;

      background: linear-gradient(180deg, #2563eb, #1d4ed8);

      border: 3px solid #ffffff;

      box-shadow: 0 4px 10px rgba(37, 99, 235, 0.32);

      margin-top: -9px;

    }

    input[type="range"]::-moz-range-track {

      height: 10px;

      border-radius: 999px;

      background: linear-gradient(90deg, #c7d2fe, #93c5fd);

      border: 1px solid #bfdbfe;

    }

    input[type="range"]::-moz-range-thumb {

      width: 26px;

      height: 26px;

      border-radius: 999px;

      background: linear-gradient(180deg, #2563eb, #1d4ed8);

      border: 3px solid #ffffff;

      box-shadow: 0 4px 10px rgba(37, 99, 235, 0.32);

    }

    input[type="range"]::-ms-track {

      height: 10px;

      border-radius: 999px;

      background: transparent;

      border-color: transparent;

      color: transparent;

    }

    input[type="range"]::-ms-fill-lower,

    input[type="range"]::-ms-fill-upper {

      height: 10px;

      border-radius: 999px;

      background: linear-gradient(90deg, #c7d2fe, #93c5fd);

      border: 1px solid #bfdbfe;

    }

    input[type="range"]::-ms-thumb {

      width: 26px;

      height: 26px;

      border-radius: 999px;

      background: linear-gradient(180deg, #2563eb, #1d4ed8);

      border: 3px solid #ffffff;

      box-shadow: 0 4px 10px rgba(37, 99, 235, 0.32);

    }

    .slider-block {

      background: #ffffff;

      border: 1px solid #d9e2ef;

      border-radius: 18px;

      padding: 18px 18px 20px 18px;

      position: relative;

      min-height: 180px;

      margin: 0;

      box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);

      transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;

    }

    .slider-block.impact-high {

      border-color: #f59aa5;

      background: #fff8f8;

      box-shadow: 0 12px 24px rgba(239, 68, 68, 0.07);

    }

    .slider-block.impact-mid {

      border-color: #f7b27a;

      background: #fffaf4;

      box-shadow: 0 12px 24px rgba(249, 115, 22, 0.06);

    }

    .slider-block.impact-low {

      border-color: #a9c8fb;

      background: #f9fbff;

      box-shadow: 0 12px 24px rgba(59, 130, 246, 0.05);

    }

    .slider-block.tuning-now {

      outline: 2px solid #2563eb;

      outline-offset: 3px;

    }

    .slider-block.drag-freeze {

      box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16), 0 12px 24px rgba(15, 23, 42, 0.06);

    }

    .slider-head {

      display: flex;

      align-items: flex-start;

      justify-content: space-between;

      gap: 14px;

      margin-bottom: 12px;

    }

    .slider-head .slider-title {

      font-size: 15px;

      color: #374151;

      font-weight: 700;

      line-height: 1.7;

    }

    .slider-head .slider-value {

      font-size: 18px;

      font-weight: 800;

      color: #2563eb;

      min-width: 78px;

      text-align: right;

      line-height: 1.4;

    }

    .slider-tip {

      margin-top: 10px;

      color: #6b7280;

      font-size: 13px;

      line-height: 1.8;

    }

    .slider-number-row {

      margin-top: 12px;

    }

    .impact-badge {

      display: inline-block;

      margin-left: 8px;

      padding: 3px 9px;

      border-radius: 999px;

      font-size: 12px;

      font-weight: 700;

      vertical-align: middle;

    }

    .impact-badge.high {

      background: #fee2e2;

      color: #b91c1c;

    }

    .impact-badge.mid {

      background: #ffedd5;

      color: #c2410c;

    }

    .impact-badge.low {

      background: #dbeafe;

      color: #1d4ed8;

    }

    .rank-chip {

      display: inline-block;

      margin-left: 8px;

      padding: 3px 8px;

      border-radius: 999px;

      font-size: 11px;

      font-weight: 700;

      background: #111827;

      color: #fff;

    }

    .impact-panel {

      background: #f8fafc;

      border: 1px solid #e5e7eb;

      border-radius: 18px;

      padding: 22px 26px 28px 26px;

      min-height: 320px;

    }

    .impact-header {

      display: flex;

      justify-content: space-between;

      align-items: center;

      gap: 12px;

      flex-wrap: wrap;

      margin-bottom: 12px;

    }

    .impact-list {

      display: grid;

      grid-template-columns: 1fr;

      gap: 16px;

    }

    .impact-subpanel {

      margin-bottom: 18px;

    }

    .blocking-percent-panel {

      display: grid;

      grid-template-columns: repeat(3, minmax(0, 1fr));

      gap: 12px 14px;

      max-height: min(82vh, 920px);

      min-height: 280px;

      overflow-y: auto;

      overflow-x: hidden;

      padding: 12px 4px 16px 0;

    }

    @media (max-width: 1100px) {

      .blocking-percent-panel {

        grid-template-columns: repeat(2, minmax(0, 1fr));

      }

    }

    @media (max-width: 640px) {

      .blocking-percent-panel {

        grid-template-columns: 1fr;

      }

    }

    .blocking-percent-item {

      background: #ffffff;

      border: 1px solid #dbeafe;

      border-radius: 12px;

      padding: 10px 12px;

      font-size: 13px;

      color: #0f172a;

      display: flex;

      flex-wrap: wrap;

      align-items: center;

      justify-content: space-between;

      gap: 8px 10px;

      min-height: 52px;

      box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);

    }

    .blocking-percent-item .bar {

      flex: 1 1 100%;

      order: 3;

      height: 10px;

      border-radius: 999px;

      background: #e5e7eb;

      margin-left: 0;

      position: relative;

    }

    .blocking-percent-item .bar-inner {

      height: 100%;

      border-radius: 999px;

      background: #2563eb;

    }

    .blocking-percent-item > span:first-of-type {

      flex: 1 1 auto;

      min-width: 0;

      word-break: break-word;

      line-height: 1.45;

    }

    .blocking-percent-item > span:nth-of-type(2) {

      font-weight: 800;

      color: #1d4ed8;

      flex-shrink: 0;

    }

    .impact-item {

      background: #fff;

      border: 1px solid #e5e7eb;

      border-radius: 14px;

      padding: 14px;

    }

    .impact-item.top1 {

      border-color: #ef4444;

      background: #fff1f2;

    }

    .impact-item.top2 {

      border-color: #f97316;

      background: #fff7ed;

    }

    .impact-item.top3 {

      border-color: #3b82f6;

      background: #eff6ff;

    }

    .impact-row {

      display: flex;

      justify-content: space-between;

      gap: 12px;

      align-items: center;

    }

    .impact-name {

      font-size: 15px;

      font-weight: 700;

      color: #111827;

    }

    .impact-meta {

      font-size: 13px;

      color: #6b7280;

      line-height: 1.75;

      margin-top: 6px;

    }

    .impact-score {

      min-width: 80px;

      text-align: right;

      font-size: 20px;

      font-weight: 800;

    }

    .impact-bar {

      margin-top: 10px;

      height: 12px;

      width: 100%;

      background: #e5e7eb;

      border-radius: 999px;

      overflow: hidden;

    }

    .impact-bar-inner {

      height: 100%;

      border-radius: 999px;

      background: linear-gradient(90deg, #60a5fa, #2563eb);

    }

    .impact-bar-inner.high {

      background: linear-gradient(90deg, #fb7185, #ef4444);

    }

    .impact-bar-inner.mid {

      background: linear-gradient(90deg, #fdba74, #f97316);

    }

    .impact-bar-inner.low {

      background: linear-gradient(90deg, #93c5fd, #2563eb);

    }

    .section-gap-xl {

      height: 44px;

    }

    .section-divider-band {

      margin: 4px 0 34px 0;

      padding: 22px 24px;

      border-radius: 18px;

      border: 1px solid #dbe3f0;

      background: linear-gradient(180deg, #fbfcfe 0%, #f4f7fb 100%);

      box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);

    }

    .section-divider-band .band-eyebrow {

      font-size: 12px;

      letter-spacing: 1.6px;

      text-transform: uppercase;

      color: #64748b;

      font-weight: 700;

    }

    .section-divider-band .band-title {

      margin-top: 6px;

      font-size: 20px;

      font-weight: 800;

      color: #111827;

      letter-spacing: 0.2px;

    }

    .section-divider-band .band-desc {

      margin-top: 8px;

      font-size: 13px;

      line-height: 1.9;

      color: #4b5563;

      max-width: 980px;

    }

    .impact-columns {

      display: grid;

      grid-template-columns: 1fr 1fr 1fr;

      gap: 26px;

      margin-top: 18px;

      align-items: start;

    }

    .impact-column {

      border: 1px solid #e5e7eb;

      border-radius: 20px;

      padding: 18px;

      min-height: 420px;

      position: relative;

    }

    .impact-column.high-col {

      background: linear-gradient(180deg, #fff8f8 0%, #fffdfd 100%);

      border-color: #fecaca;

    }

    .impact-column.mid-col {

      background: linear-gradient(180deg, #fffaf5 0%, #fffdfb 100%);

      border-color: #fed7aa;

    }

    .impact-column.low-col {

      background: linear-gradient(180deg, #f7fbff 0%, #fcfeff 100%);

      border-color: #bfdbfe;

    }

    .impact-column-title {

      font-size: 17px;

      font-weight: 800;

      margin-bottom: 10px;

    }

    .impact-column-sub {

      font-size: 13px;

      color: #6b7280;

      line-height: 1.85;

      margin-bottom: 18px;

    }

    .column-slider-list {

      display: grid;

      grid-template-columns: 1fr;

      gap: 22px;

      min-height: 220px;

      padding-top: 4px;

    }

    .slot-holder {

      min-height: 180px;

    }

    .open-param-box {

      background: #fefce8;

      border: 1px solid #fde68a;

      border-radius: 14px;

      padding: 16px;

      color: #854d0e;

      line-height: 1.9;

      margin-top: 12px;

    }

    .viz-box {

      min-height: 190px;

      background: #0f172a;

      border-radius: 16px;

      padding: 14px;

      display: flex;

      align-items: flex-end;

      gap: 3px;

      overflow: hidden;

      position: relative;

    }

    .bar {

      flex: 1;

      min-width: 3px;

      background: linear-gradient(180deg, #60a5fa, #2563eb);

      border-radius: 4px 4px 0 0;

    }

    .bar.fusion { background: linear-gradient(180deg, #34d399, #10b981); }

    .bar.vertical { background: linear-gradient(180deg, #f59e0b, #d97706); }

    .bar.rawstep { background: linear-gradient(180deg, #a78bfa, #7c3aed); }

    .threshold-line {

      position: absolute;

      left: 0;

      right: 0;

      height: 2px;

      opacity: 0.9;

    }

    .threshold-line.high { background: #ef4444; }

    .threshold-line.low { background: #22c55e; }

    .mid-line {

      position: absolute;

      left: 0;

      right: 0;

      height: 1px;

      background: rgba(255,255,255,0.2);

    }

    .log-list, .event-list, .peer-log-list {

      background: #0f172a;

      color: #e5e7eb;

      border-radius: 16px;

      padding: 14px;

      max-height: 300px;

      overflow: auto;

      font-size: 12px;

      line-height: 1.8;

    }

    .log-item, .event-item, .peer-log-item {

      padding: 6px 0;

      border-bottom: 1px solid rgba(255,255,255,0.08);

    }

    .log-item:last-child, .event-item:last-child, .peer-log-item:last-child { border-bottom: none; }

    .mini-grid {

      display: grid;

      grid-template-columns: repeat(5, 1fr);

      gap: 12px;

      margin-top: 12px;

    }

    .mini-card {

      background: #f8fafc;

      border: 1px solid #e5e7eb;

      border-radius: 14px;

      padding: 14px;

    }

    .mini-card .label {

      font-size: 12px;

      color: #6b7280;

    }

    .mini-card .num {

      margin-top: 8px;

      font-size: 20px;

      font-weight: 700;

    }

    .tab-buttons {

      display: flex;

      gap: 8px;

      margin-bottom: 12px;

      border-bottom: 1px solid #e5e7eb;

      flex-wrap: wrap;

    }

    .tab-btn {

      background: none;

      border: none;

      padding: 9px 14px;

      font-size: 14px;

      cursor: pointer;

      color: #6b7280;

      border-bottom: 2px solid transparent;

      margin-bottom: -1px;

    }

    .tab-btn.active {

      color: #2563eb;

      border-bottom-color: #2563eb;

    }

    .tab-content { display: none; }

    .tab-content.active { display: block; }

    .comparison-table {

      width: 100%;

      border-collapse: collapse;

      margin-top: 12px;

    }

    .comparison-table th, .comparison-table td {

      border: 1px solid #e5e7eb;

      padding: 11px;

      text-align: left;

      font-size: 13px;

      vertical-align: top;

    }

    .comparison-table th {

      background: #f3f4f6;

      font-weight: 600;

    }

    .comparison-table tr:nth-child(even) {

      background: #f9fafb;

    }

    .badge {

      display: inline-block;

      background: #d1fae5;

      color: #065f46;

      padding: 2px 8px;

      border-radius: 6px;

      font-size: 12px;

      font-weight: 600;

    }

    .code-tip {

      font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

      font-size: 12px;

      background: #eff6ff;

      color: #1d4ed8;

      border-radius: 8px;

      padding: 8px 10px;

      display: inline-block;

      line-height: 1.7;

    }

    .strong-box {

      background: #ecfeff;

      border: 1px solid #67e8f9;

      color: #155e75;

      border-radius: 14px;

      padding: 16px;

      line-height: 1.9;

    }

    .divider-title {

      margin: 18px 0 12px 0;

      font-size: 15px;

      font-weight: 700;

      color: #1f2937;

    }

    .preserve-hidden-pool {

      position: absolute;

      left: -9999px;

      top: -9999px;

      width: 1px;

      height: 1px;

      overflow: hidden;

      opacity: 0;

      pointer-events: none;

    }

    .hud-minimap {

      position: fixed;

      right: 18px;

      top: 18px;

      left: auto;

      width: 300px;

      z-index: 99;

      border-radius: 20px;

      overflow: hidden;

      border: 1px solid rgba(148, 163, 184, 0.35);

      background: rgba(2, 6, 23, 0.78);

      box-shadow: 0 18px 40px rgba(2, 6, 23, 0.28);

      backdrop-filter: blur(8px);

    }

    .hud-minimap-head.hud-drag-handle {

      cursor: grab;

      user-select: none;

      -webkit-user-select: none;

    }

    .hud-minimap-head.hud-drag-handle:active {

      cursor: grabbing;

    }

    .hud-ctrl-btns {

      display: flex;

      gap: 4px;

      flex-shrink: 0;

    }

    .hud-ctrl-btn {

      background: rgba(255,255,255,0.12);

      border: 1px solid rgba(255,255,255,0.25);

      color: #e5eefc;

      border-radius: 5px;

      padding: 2px 7px;

      font-size: 12px;

      cursor: pointer;

      line-height: 1.4;

      transition: background 0.15s;

      font-family: inherit;

    }

    .hud-ctrl-btn:hover {

      background: rgba(255,255,255,0.25);

    }

    .hud-minimap.minimized {

      width: 200px !important;

    }

    .hud-minimap.minimized .hud-minimap-canvas-wrap,

    .hud-minimap.minimized .hud-minimap-foot {

      display: none !important;

    }

    #hudToggleBtn {

      position: fixed;

      z-index: 199;

      background: rgba(2,6,23,0.88);

      border: 1px solid rgba(148,163,184,0.4);

      color: #93c5fd;

      border-radius: 10px;

      padding: 6px 12px;

      font-size: 12px;

      cursor: pointer;

      font-family: inherit;

      display: none;

      align-items: center;

      gap: 6px;

      backdrop-filter: blur(6px);

    }

    #hudToggleBtn:hover {

      background: rgba(59,130,246,0.25);

    }

    .hud-minimap::before {

      content: "";

      position: absolute;

      inset: 0;

      pointer-events: none;

      background:

        linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0)),

        radial-gradient(circle at top right, rgba(96,165,250,0.18), transparent 36%);

    }

    .hud-minimap-head {

      position: relative;

      z-index: 2;

      display: flex;

      align-items: center;

      justify-content: space-between;

      gap: 10px;

      padding: 12px 14px 8px 14px;

      color: #e5eefc;

    }

    .hud-minimap-title {

      font-size: 13px;

      font-weight: 800;

      letter-spacing: 1.2px;

      text-transform: uppercase;

    }

    .hud-minimap-status {

      font-size: 11px;

      color: #93c5fd;

      font-weight: 700;

    }

    .hud-minimap-canvas-wrap {

      position: relative;

      padding: 0 12px;

    }

    .hud-minimap-canvas {

      width: 100%;

      height: 250px;

      display: block;

      border-radius: 16px;

      background: #020617;

    }

    .hud-minimap-overlay {

      position: absolute;

      left: 18px;

      right: 18px;

      top: 8px;

      display: flex;

      justify-content: space-between;

      pointer-events: none;

      font-size: 10px;

      color: rgba(226, 232, 240, 0.7);

      z-index: 2;

    }

    .hud-minimap-foot {

      position: relative;

      z-index: 2;

      padding: 10px 14px 14px 14px;

      color: #cbd5e1;

    }

    .hud-minimap-meta {

      font-size: 11px;

      line-height: 1.8;

      color: #cbd5e1;

    }

    .hud-minimap-legend {

      display: flex;

      flex-wrap: wrap;

      gap: 10px 12px;

      margin-top: 8px;

      font-size: 11px;

      color: #cbd5e1;

    }

    .legend-item {

      display: inline-flex;

      align-items: center;

      gap: 6px;

    }

    .legend-dot {

      width: 10px;

      height: 10px;

      border-radius: 999px;

      display: inline-block;

    }

    .legend-dot.fusion { background: #10b981; }

    .legend-dot.raw { background: #a78bfa; }

    .legend-dot.current { background: #fbbf24; }

    .legend-dot.peer { background: #38bdf8; }

    .hud-minimap-corner {

      position: absolute;

      width: 12px;

      height: 12px;

      border-color: rgba(125, 211, 252, 0.75);

      z-index: 3;

      pointer-events: none;

    }

    .hud-minimap-corner.lt {

      left: 10px;

      top: 10px;

      border-left: 2px solid;

      border-top: 2px solid;

    }

    .hud-minimap-corner.rt {

      right: 10px;

      top: 10px;

      border-right: 2px solid;

      border-top: 2px solid;

    }

    .hud-minimap-corner.lb {

      left: 10px;

      bottom: 10px;

      border-left: 2px solid;

      border-bottom: 2px solid;

    }

    .hud-minimap-corner.rb {

      right: 10px;

      bottom: 10px;

      border-right: 2px solid;

      border-bottom: 2px solid;

    }

    .lan-box {

      background: #eff6ff;

      border: 1px solid #93c5fd;

      color: #1e3a8a;

      border-radius: 16px;

      padding: 16px;

      line-height: 1.9;

    }

    .device-list {

      display: grid;

      grid-template-columns: 1fr;

      gap: 12px;

      margin-top: 12px;

    }

    .device-item {

      border: 1px solid #dbeafe;

      background: #ffffff;

      border-radius: 14px;

      padding: 14px;

    }

    .device-item.self {

      border-color: #10b981;

      background: #ecfdf5;

    }

    .device-name {

      font-size: 15px;

      font-weight: 800;

      color: #111827;

    }

    .device-meta {

      font-size: 12px;

      color: #6b7280;

      line-height: 1.8;

      margin-top: 6px;

    }

    @media (max-width: 1280px) {

      .grid, .grid-2, .form-grid, .mini-grid, .impact-columns { grid-template-columns: 1fr; }

      .impact-column { min-height: 240px; }

      .section-gap-xl { height: 24px; }

      .column-slider-list { gap: 18px; }

      .hud-minimap {

        position: static;

        width: 100%;

        margin: 0 0 18px 0;

      }

      .container {

        padding-top: 18px;

      }

    }

    @media (max-width: 768px) {

      body { font-size: 14px; }

      .container {

        padding: 10px;

      }

      .hero {

        padding: 14px;

        border-radius: 14px;

      }

      .hero h1 {

        font-size: 20px;

        line-height: 1.4;

      }

      .hero p {

        font-size: 12px;

        line-height: 1.7;

      }

      .section {

        padding: 12px;

        border-radius: 14px;

      }

      .toolbar {

        display: grid;

        grid-template-columns: 1fr 1fr;

        gap: 8px;

      }

      .toolbar button {

        width: 100%;

        min-height: 42px;

        padding: 10px 8px;

        font-size: 12px;

      }

      .metric {

        padding: 12px;

      }

      .metric .value {

        font-size: 22px;

      }

      /* 手机端全判定逻辑滑块区 - 强制单列显示，确保所有参数组都可见 */

      .impact-columns {

        display: flex !important;

        flex-direction: column !important;

        flex-wrap: nowrap !important;

        gap: 14px !important;

        margin-top: 12px !important;

        align-items: stretch !important;

        width: 100% !important;

        box-sizing: border-box !important;

      }

      .impact-column {

        display: block !important;

        width: 100% !important;

        padding: 12px !important;

        border-radius: 14px !important;

        min-height: auto !important;

        max-height: none !important;

        height: auto !important;

        overflow: visible !important;

        box-sizing: border-box !important;

        flex-shrink: 0 !important;

      }

      .impact-column-title {

        font-size: 15px !important;

        margin-bottom: 8px !important;

        font-weight: bold !important;

      }

      .impact-column-sub {

        font-size: 11px !important;

        margin-bottom: 12px !important;

        line-height: 1.5 !important;

        color: #6b7280 !important;

      }

      .column-slider-list {

        display: flex !important;

        flex-direction: column !important;

        flex-wrap: nowrap !important;

        gap: 10px !important;

      }

      .slider-block {

        display: block !important;

        min-height: auto !important;

        max-height: none !important;

        height: auto !important;

        overflow: visible !important;

        padding: 10px 8px 12px 8px !important;

        border-radius: 12px !important;

        box-sizing: border-box !important;

        flex-shrink: 0 !important;

      }

      .slider-head {

        flex-direction: column !important;

        gap: 4px !important;

        margin-bottom: 8px !important;

        display: flex !important;

      }

      .slider-head .slider-value {

        text-align: left !important;

        min-width: 0 !important;

        font-size: 16px !important;

        font-weight: bold !important;

      }

      .slider-head .slider-title {

        font-size: 12px !important;

        line-height: 1.4 !important;

        word-break: break-word !important;

      }

      .impact-badge, .rank-chip {

        margin-top: 2px !important;

        margin-left: 4px !important;

        font-size: 10px !important;

        display: inline-block !important;

      }

      .slider-number-row {

        margin-top: 6px !important;

      }

      .slider-number-row input {

        min-height: 40px !important;

        font-size: 14px !important;

        padding: 6px 8px !important;

        width: 100% !important;

        box-sizing: border-box !important;

      }

      .slider-tip {

        font-size: 10px !important;

        margin-top: 6px !important;

        line-height: 1.4 !important;

        color: #6b7280 !important;

        display: block !important;

      }

      .slot-holder {

        min-height: auto !important;

        display: none !important;

      }

      .hud-minimap-canvas {

        height: 180px !important;

      }

      /* 手机端滑块样式优化 */

      input, select {

        min-height: 40px !important;

        font-size: 14px !important;

      }

      input[type="range"] {

        min-height: 40px !important;

        height: 40px !important;

        width: 100% !important;

        box-sizing: border-box !important;

      }

      input[type="range"]::-webkit-slider-runnable-track {

        height: 14px !important;

      }

      input[type="range"]::-webkit-slider-thumb {

        width: 36px !important;

        height: 36px !important;

        margin-top: -11px !important;

      }

      /* 确保列容器正确显示 */

      #columnHigh, #columnMid, #columnLow {

        display: flex !important;

        flex-direction: column !important;

        flex-wrap: nowrap !important;

        gap: 10px !important;

        visibility: visible !important;

        min-height: 0 !important;

        height: auto !important;

        max-height: none !important;

        overflow: visible !important;

        width: 100% !important;

        box-sizing: border-box !important;

      }

      #columnHigh .slider-block,

      #columnMid .slider-block,

      #columnLow .slider-block {

        display: block !important;

        visibility: visible !important;

        opacity: 1 !important;

        min-height: auto !important;

        height: auto !important;

        max-height: none !important;

        overflow: visible !important;

        position: relative !important;

        padding: 10px 8px 12px 8px !important;

        margin-bottom: 0 !important;

        box-sizing: border-box !important;

        flex-shrink: 0 !important;

      }

      /* 确保slider轨道和按钮在手机上清晰可见 */

      #columnHigh input[type="range"],

      #columnMid input[type="range"],

      #columnLow input[type="range"] {

        width: 100% !important;

        min-height: 44px !important;

        height: 44px !important;

        -webkit-appearance: none !important;

        appearance: none !important;

        background: transparent !important;

        touch-action: manipulation !important;

        box-sizing: border-box !important;

      }

      #columnHigh input[type="range"]::-webkit-slider-runnable-track,

      #columnMid input[type="range"]::-webkit-slider-runnable-track,

      #columnLow input[type="range"]::-webkit-slider-runnable-track {

        height: 16px !important;

        background: linear-gradient(to right, #2563eb, #60a5fa) !important;

        border-radius: 999px !important;

        border: none !important;

        box-shadow: inset 0 1px 3px rgba(0,0,0,0.2) !important;

      }

      #columnHigh input[type="range"]::-webkit-slider-thumb,

      #columnMid input[type="range"]::-webkit-slider-thumb,

      #columnLow input[type="range"]::-webkit-slider-thumb {

        width: 40px !important;

        height: 40px !important;

        margin-top: -12px !important;

        background: linear-gradient(180deg, #ffffff, #f0f0f0) !important;

        border: 3px solid #2563eb !important;

        border-radius: 50% !important;

        box-shadow: 0 3px 8px rgba(37, 99, 235, 0.4), 0 2px 4px rgba(0,0,0,0.15) !important;

        cursor: pointer !important;

        -webkit-tap-highlight-color: transparent !important;

        touch-action: none !important;

      }

      #columnHigh input[type="range"]::-moz-range-track,

      #columnMid input[type="range"]::-moz-range-track,

      #columnLow input[type="range"]::-moz-range-track {

        height: 16px !important;

        background: linear-gradient(to right, #2563eb, #60a5fa) !important;

        border-radius: 999px !important;

        box-shadow: inset 0 1px 3px rgba(0,0,0,0.2) !important;

      }

      #columnHigh input[type="range"]::-moz-range-thumb,

      #columnMid input[type="range"]::-moz-range-thumb,

      #columnLow input[type="range"]::-moz-range-thumb {

        width: 40px !important;

        height: 40px !important;

        background: linear-gradient(180deg, #ffffff, #f0f0f0) !important;

        border: 3px solid #2563eb !important;

        border-radius: 50% !important;

        box-shadow: 0 3px 8px rgba(37, 99, 235, 0.4), 0 2px 4px rgba(0,0,0,0.15) !important;

      }

      /* 确保slider-block内的数字输入框也正确显示 */

      #columnHigh .slider-number-row input,

      #columnMid .slider-number-row input,

      #columnLow .slider-number-row input {

        width: 100% !important;

        min-height: 40px !important;

        font-size: 14px !important;

        padding: 6px 8px !important;

        border-radius: 8px !important;

        border: 1.5px solid #d1d5db !important;

        box-sizing: border-box !important;

      }

      /* slider-tip也正确显示 */

      #columnHigh .slider-tip,

      #columnMid .slider-tip,

      #columnLow .slider-tip {

        margin-top: 8px !important;

        font-size: 10px !important;

        line-height: 1.4 !important;

        color: #6b7280 !important;

        padding: 4px 6px !important;

        background: rgba(0,0,0,0.03) !important;

        border-radius: 4px !important;

        display: block !important;

      }

      #preserveHiddenPool {

        position: absolute !important;

        left: -9999px !important;

        top: -9999px !important;

        width: 1px !important;

        height: 1px !important;

        overflow: hidden !important;

        opacity: 0 !important;

        pointer-events: none !important;

      }

    }

    /* ====== 移动端：隐藏横幅等元素，只保留 Logo ====== */
    @media (max-width: 768px) {
      #realtimeCalcPanel {
        display: none !important;
      }
      .section-gap-xl {
        display: none !important;
      }
      .section-divider-band {
        display: none !important;
      }
      #deviceIdHeaderBox {
        display: none !important;
      }
      .section h2:first-of-type {
        display: none !important;
      }
      #pdrMqttLoadStatus,
      #pdrModeSelectBtn {
        display: none !important;
      }
      /* 隐藏横幅区域 */
      .hero {
        display: none !important;
      }
      /* 隐藏桌面导航，显示移动端 Logo */
      .nav-desktop {
        display: none !important;
      }
      .logo-container-mobile {
        display: flex !important;
      }
      /* 移动端 Logo 样式 - 大字体 */
      .logo-container-mobile .logo-text {
        font-size: 24px !important;
      }
      .logo-container-mobile .logo-icon {
        width: 24px !important;
        height: 24px !important;
      }
    }

    /* 移动端 Logo 容器样式 - 初始隐藏 */
    @media (min-width: 769px) {
      .logo-container-mobile {
        display: none !important;
      }
    }

    .live-val {

      color:#fff;

      font-weight:bold;

      font-variant-numeric:tabular-nums;

    }

    @keyframes flash-up {

      0%, 100% { color: #4ade80; }

      50% { color: #22c55e; text-shadow: 0 0 8px #4ade80; }

    }

    @keyframes flash-down {

      0%, 100% { color: #f87171; }

      50% { color: #ef4444; text-shadow: 0 0 8px #f87171; }

    }

    .flash-ok { animation: flash-up 0.3s ease-in-out; }

    .flash-fail { animation: flash-down 0.3s ease-in-out; }
    #pgRoot {

      display: none;

      position: fixed;

      inset: 0;

      background: #000;

      z-index: 2147483000;

      overflow: hidden;

    }

    #pgRoot.open {

      display: block;

    }

    #pgCanvas {

      display: block;

      width: 100vw;

      height: 100vh;

      image-rendering: pixelated;

      image-rendering: crisp-edges;

    }

    #pgHud {

      position: fixed;

      top: 10px;

      left: 10px;

      color: #fff;

      font: 10px/1.8 'Courier New', monospace;

      text-shadow: 1px 1px 0 #000;

      z-index: 2147483001;

      pointer-events: none;

      letter-spacing: 1px;

    }

    #pgHint {

      position: fixed;

      top: 10px;

      right: 10px;

      color: #fff;

      font: 9px/1.5 'Courier New', monospace;

      z-index: 2147483001;

      pointer-events: none;

      text-align: right;

      text-shadow: 1px 1px 0 #000;

    }

    #pgClose {

      position: fixed;

      bottom: 14px;

      right: 14px;

      z-index: 2147483002;

      background: #fff;

      color: #000;

      border: none;

      padding: 6px 14px;

      font: 10px 'Courier New', monospace;

      cursor: pointer;

      letter-spacing: 1px;

    }

    #pgMini {

      position: fixed;

      bottom: 14px;

      left: 10px;

      color: #bbb;

      font: 9px 'Courier New', monospace;

      z-index: 2147483001;

      pointer-events: none;

    }