
    :root {
      --bg: #f4efe7;
      --panel: rgba(255, 252, 247, 0.92);
      --panel-strong: rgba(255, 255, 255, 0.96);
      --text: #201f1b;
      --muted: #676153;
      --line: rgba(32, 31, 27, 0.12);
      --accent: #0f766e;
      --accent-strong: #115e59;
      --accent-soft: rgba(15, 118, 110, 0.12);
      --accent-strong-soft: rgba(17, 94, 89, 0.16);
      --warn: #b45309;
      --warn-soft: rgba(180, 83, 9, 0.14);
      --error: #b91c1c;
      --error-soft: rgba(185, 28, 28, 0.14);
      --shadow: 0 18px 44px rgba(32, 31, 27, 0.08);
      --radius: 24px;
      --mono: "SF Mono", "Fira Code", monospace;
    }
    * { box-sizing: border-box; }
    html, body { margin: 0; }
    body {
      min-height: 100vh;
      font-family: "Avenir Next", "Helvetica Neue", sans-serif;
      color: var(--text);
      background:
        radial-gradient(circle at top left, rgba(15, 118, 110, 0.16), transparent 28rem),
        radial-gradient(circle at top right, rgba(180, 83, 9, 0.12), transparent 24rem),
        linear-gradient(180deg, #fbf6ee 0%, var(--bg) 100%);
    }
    a {
      color: inherit;
      text-decoration: none;
    }
    button, input, select, textarea {
      font: inherit;
    }
    button {
      border: 1px solid var(--line);
      border-radius: 999px;
      padding: 10px 14px;
      background: var(--panel);
      color: var(--text);
      cursor: pointer;
      transition: background 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
    }
    button:hover {
      background: rgba(15, 118, 110, 0.06);
      border-color: rgba(15, 118, 110, 0.2);
    }
    button.primary {
      color: #fff;
      background: linear-gradient(135deg, var(--accent), var(--accent-strong));
      border-color: transparent;
    }
    button.primary:hover {
      transform: translateY(-1px);
      background: linear-gradient(135deg, #0d8b81, #0f766e);
    }
    button.warn {
      color: var(--warn);
      background: var(--warn-soft);
      border-color: rgba(180, 83, 9, 0.24);
    }
    button.danger {
      color: var(--error);
      background: var(--error-soft);
      border-color: rgba(185, 28, 28, 0.24);
    }
    button:disabled {
      opacity: 0.6;
      cursor: wait;
      transform: none;
    }
    input, select, textarea {
      width: 100%;
      border: 1px solid var(--line);
      border-radius: 14px;
      padding: 11px 13px;
      background: rgba(255, 255, 255, 0.9);
      color: var(--text);
    }
    textarea {
      min-height: 132px;
      resize: vertical;
    }
    input:focus, select:focus, textarea:focus {
      outline: none;
      border-color: rgba(15, 118, 110, 0.35);
      box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.08);
    }
    dialog {
      border: none;
      padding: 0;
      border-radius: 24px;
      width: min(460px, calc(100vw - 32px));
      background: transparent;
    }
    dialog::backdrop {
      background: rgba(32, 31, 27, 0.28);
      backdrop-filter: blur(6px);
    }
    .dialog-card {
      background: var(--panel-strong);
      border: 1px solid var(--line);
      border-radius: 24px;
      padding: 22px;
      box-shadow: var(--shadow);
    }
    .layout {
      max-width: 1440px;
      margin: 0 auto;
      padding: 28px 20px 64px;
    }
    .topbar {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
      padding: 14px 16px;
      margin-bottom: 22px;
      background: rgba(255, 252, 247, 0.72);
      border: 1px solid rgba(32, 31, 27, 0.08);
      border-radius: 22px;
      backdrop-filter: blur(14px);
      box-shadow: 0 10px 24px rgba(32, 31, 27, 0.04);
      flex-wrap: nowrap;
    }
    .brand-block {
      display: flex;
      align-items: center;
      gap: 14px;
      flex: 0 0 auto;
    }
    .brand-mark {
      width: 44px;
      height: 44px;
      border-radius: 14px;
      display: grid;
      place-items: center;
      color: #fff;
      font-size: 15px;
      font-weight: 700;
      letter-spacing: 0.08em;
      background: linear-gradient(135deg, var(--accent), #1f2937);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
    }
    .brand-copy {
      display: grid;
      gap: 4px;
    }
    .brand-eyebrow {
      font-size: 12px;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--muted);
      font-weight: 700;
    }
    .brand-title {
      font-size: 20px;
      letter-spacing: -0.03em;
      font-weight: 700;
    }
    .topbar-center {
      flex: 1 1 auto;
      min-width: 0;
      display: flex;
      justify-content: center;
    }
    .topbar-right {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-wrap: nowrap;
      justify-content: flex-end;
      flex: 0 0 auto;
    }
    .session-pill {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 8px 12px;
      border-radius: 999px;
      background: var(--panel);
      border: 1px solid var(--line);
      font-size: 13px;
      color: var(--muted);
    }
    .dot {
      width: 8px;
      height: 8px;
      border-radius: 999px;
      background: var(--accent);
      box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
    }
    .nav-shell {
      display: flex;
      gap: 12px;
      align-items: center;
      justify-content: center;
      width: 100%;
    }
    .nav-cluster {
      display: flex;
      gap: 12px;
      flex-wrap: wrap;
      justify-content: center;
    }
    .nav-group {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 8px 10px;
      border-radius: 18px;
      background: rgba(255, 252, 247, 0.68);
      border: 1px solid rgba(32, 31, 27, 0.08);
    }
    .nav-label {
      font-size: 11px;
      letter-spacing: 0.14em;
      text-transform: uppercase;
      color: var(--muted);
      font-weight: 700;
      padding: 0 4px;
    }
    .nav-link {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      border-radius: 999px;
      padding: 10px 14px;
      border: 1px solid transparent;
      color: var(--muted);
      font-weight: 600;
      background: transparent;
    }
    .nav-link.active {
      color: var(--accent);
      background: var(--accent-soft);
      border-color: rgba(15, 118, 110, 0.18);
    }
    .hero {
      display: grid;
      grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
      gap: 18px;
      margin-bottom: 24px;
    }
    .card {
      background: var(--panel);
      border: 1px solid rgba(32, 31, 27, 0.08);
      border-radius: var(--radius);
      padding: 22px;
      box-shadow: var(--shadow);
      backdrop-filter: blur(10px);
    }
    .full-width-card {
      width: 100%;
      min-width: 0;
      grid-column: 1 / -1;
    }
    .page-head {
      display: flex;
      justify-content: space-between;
      align-items: flex-end;
      gap: 16px;
      margin-bottom: 20px;
      flex-wrap: wrap;
    }
    .page-head h1, .page-head h2, .page-head h3, .page-head p {
      margin: 0;
    }
    .page-head h1 {
      font-size: 34px;
      line-height: 1.05;
      letter-spacing: -0.04em;
      margin-bottom: 10px;
    }
    .page-head h2 {
      font-size: 22px;
      line-height: 1.1;
      letter-spacing: -0.03em;
    }
    .lede, .muted {
      color: var(--muted);
      line-height: 1.6;
    }
    .stack {
      display: grid;
      gap: 18px;
    }
    .grid {
      display: grid;
      gap: 18px;
    }
    .grid.cols-2 {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .grid.cols-3 {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .grid.cols-4 {
      grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .stat-card {
      background: rgba(255, 255, 255, 0.56);
      border: 1px solid var(--line);
      border-radius: 18px;
      padding: 16px;
    }
    .stats-grid {
      display: grid;
      gap: 14px;
      grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
      margin-bottom: 18px;
    }
    .stats-grid.compact .stat-card {
      padding: 14px;
    }
    .stats-grid.compact .stat-value {
      font-size: 24px;
    }
    .stat-label {
      font-size: 11px;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--muted);
      margin-bottom: 8px;
      font-weight: 700;
    }
    .stat-value {
      font-size: 28px;
      letter-spacing: -0.04em;
      font-weight: 700;
    }
    .stat-meta {
      margin-top: 8px;
      color: var(--muted);
      font-size: 13px;
    }
    .split {
      display: grid;
      grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
      gap: 18px;
    }
    .section-title {
      font-size: 18px;
      line-height: 1.15;
      letter-spacing: -0.02em;
      margin: 0 0 14px;
    }
    .tool-row, .field-row {
      display: flex;
      gap: 12px;
      align-items: end;
      flex-wrap: wrap;
    }
    .field-row .field, .tool-row .field {
      flex: 1 1 180px;
      min-width: 0;
    }
    .field {
      display: grid;
      gap: 8px;
    }
    .field label {
      font-size: 13px;
      font-weight: 600;
      color: var(--muted);
    }
    .chip-row {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
    }
    .chip {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 8px 12px;
      border-radius: 999px;
      font-size: 12px;
      font-weight: 700;
      border: 1px solid transparent;
      background: rgba(255, 255, 255, 0.6);
    }
    .chip.ok {
      color: var(--accent);
      background: var(--accent-soft);
      border-color: rgba(15, 118, 110, 0.18);
    }
    .chip.warn {
      color: var(--warn);
      background: var(--warn-soft);
      border-color: rgba(180, 83, 9, 0.18);
    }
    .chip.error {
      color: var(--error);
      background: var(--error-soft);
      border-color: rgba(185, 28, 28, 0.18);
    }
    .chart-shell {
      height: 340px;
      width: 100%;
    }
    .table-wrap {
      overflow-x: auto;
      border: 1px solid var(--line);
      border-radius: 18px;
      background: rgba(255, 255, 255, 0.52);
    }
    table {
      width: 100%;
      min-width: 760px;
      border-collapse: collapse;
      font-size: 13px;
    }
    th {
      text-align: left;
      padding: 14px 16px;
      border-bottom: 1px solid var(--line);
      color: var(--muted);
      font-size: 11px;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      white-space: nowrap;
      background: rgba(32, 31, 27, 0.04);
    }
    td {
      padding: 14px 16px;
      border-bottom: 1px solid rgba(32, 31, 27, 0.06);
      vertical-align: top;
    }
    tr:last-child td {
      border-bottom: none;
    }
    tr:hover td {
      background: rgba(15, 118, 110, 0.04);
    }
    .mono {
      font-family: var(--mono);
      font-size: 12px;
      word-break: break-all;
    }
    .hint {
      color: var(--muted);
      font-size: 13px;
      line-height: 1.55;
    }
    .status-line {
      min-height: 20px;
      color: var(--muted);
      font-size: 14px;
    }
    .status-line.ok { color: var(--accent); }
    .status-line.error { color: var(--error); }
    .toast-stack {
      position: fixed;
      inset: 0;
      z-index: 2000;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 20px;
      pointer-events: none;
    }
    .toast {
      pointer-events: auto;
      width: min(560px, calc(100vw - 32px));
      border-radius: 24px;
      border: 1px solid var(--line);
      background: rgba(255, 252, 247, 0.98);
      box-shadow: var(--shadow);
      padding: 22px 24px;
      display: grid;
      gap: 14px;
      animation: toast-in 160ms ease;
    }
    .toast.error {
      border-color: rgba(185, 28, 28, 0.24);
      background: rgba(255, 244, 244, 0.99);
    }
    .toast-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
    }
    .toast-title {
      font-size: 13px;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      font-weight: 700;
      color: var(--muted);
    }
    .toast.error .toast-title {
      color: var(--error);
    }
    .toast-message {
      font-size: 17px;
      line-height: 1.65;
      color: var(--text);
      white-space: pre-wrap;
      word-break: break-word;
    }
    .toast-close {
      width: 36px;
      height: 36px;
      padding: 0;
      border-radius: 999px;
      display: inline-grid;
      place-items: center;
      font-size: 20px;
      line-height: 1;
      background: rgba(255, 255, 255, 0.7);
    }
    @keyframes toast-in {
      from {
        opacity: 0;
        transform: translateY(-8px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }
    .empty-box {
      padding: 42px 20px;
      border: 1px dashed rgba(32, 31, 27, 0.16);
      border-radius: 18px;
      text-align: center;
      color: var(--muted);
      background: rgba(255, 255, 255, 0.44);
    }
    .login-shell {
      display: grid;
      grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
      gap: 20px;
      margin-top: 32px;
    }
    .login-title {
      font-size: 40px;
      letter-spacing: -0.05em;
      margin: 0 0 14px;
      line-height: 0.98;
    }
    .login-points {
      display: grid;
      gap: 12px;
      margin-top: 18px;
    }
    .login-point {
      display: flex;
      gap: 12px;
      align-items: start;
      padding: 14px 16px;
      border-radius: 18px;
      background: rgba(255, 255, 255, 0.54);
      border: 1px solid rgba(32, 31, 27, 0.08);
    }
    .login-point strong {
      display: block;
      margin-bottom: 3px;
    }
    .inline-actions {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      align-items: center;
    }
    .secret-box {
      padding: 12px 14px;
      border-radius: 16px;
      border: 1px solid rgba(15, 118, 110, 0.16);
      background: rgba(15, 118, 110, 0.08);
      display: grid;
      gap: 6px;
    }
    .secret-label {
      color: var(--muted);
      font-size: 12px;
      font-weight: 600;
    }
    .secret-value {
      font-family: var(--mono);
      font-size: 12px;
      word-break: break-all;
    }
    .pill {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 6px 10px;
      border-radius: 999px;
      font-size: 12px;
      font-weight: 700;
      background: rgba(255, 255, 255, 0.6);
      border: 1px solid var(--line);
      color: var(--muted);
    }
    .pill.active {
      color: var(--accent);
      background: var(--accent-soft);
      border-color: rgba(15, 118, 110, 0.18);
    }
    .kv-list {
      display: grid;
      gap: 10px;
    }
    .kv-item {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      padding: 12px 0;
      border-bottom: 1px solid rgba(32, 31, 27, 0.08);
    }
    .kv-item:last-child {
      border-bottom: none;
    }
    .kv-key {
      color: var(--muted);
      font-size: 13px;
    }
    .kv-value {
      text-align: right;
      font-weight: 600;
      word-break: break-word;
    }
    .error-box {
      padding: 14px 16px;
      border-radius: 18px;
      color: var(--error);
      background: rgba(255, 243, 243, 0.96);
      border: 1px solid rgba(185, 28, 28, 0.18);
      line-height: 1.55;
    }
    .upstream-account-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
      gap: 16px;
      justify-content: center;
    }
    .upstream-account-grid.single-card {
      grid-template-columns: minmax(360px, 620px);
    }
    .upstream-account-card {
      display: grid;
      gap: 14px;
    }
    .upstream-account-sections {
      align-items: start;
      grid-template-columns: minmax(0, 1fr);
    }
    .upstream-account-sections > div {
      width: 100%;
      min-width: 0;
    }
    .upstream-account-sections .stack {
      width: 100%;
    }
    .quota-window {
      width: 100%;
      padding: 14px 16px;
      border-radius: 18px;
      border: 1px solid rgba(32, 31, 27, 0.08);
      background: rgba(255, 255, 255, 0.54);
      display: grid;
      gap: 8px;
    }
    .quota-window-top {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      align-items: end;
    }
    .quota-label {
      font-size: 12px;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: var(--muted);
    }
    .quota-value {
      font-size: 24px;
      font-weight: 700;
      letter-spacing: -0.04em;
    }
    .quota-bar {
      height: 10px;
      border-radius: 999px;
      overflow: hidden;
      background: rgba(32, 31, 27, 0.08);
    }
    .quota-bar-fill {
      display: block;
      height: 100%;
      background: linear-gradient(90deg, #ea580c 0%, #0f766e 100%);
    }
    .upstream-account-meta {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      color: var(--muted);
      font-size: 13px;
      flex-wrap: wrap;
    }
    .iframe-shell {
      border: 1px solid var(--line);
      border-radius: 18px;
      overflow: hidden;
      background: rgba(255, 255, 255, 0.6);
      min-height: 920px;
    }
    iframe {
      width: 100%;
      min-height: 920px;
      border: none;
      display: block;
      background: transparent;
    }
    .search-result {
      border: 1px solid var(--line);
      border-radius: 18px;
      padding: 16px;
      background: rgba(255, 255, 255, 0.54);
      display: grid;
      gap: 12px;
    }
    .search-result.active {
      border-color: rgba(15, 118, 110, 0.24);
      background: rgba(15, 118, 110, 0.08);
    }
    .search-grid {
      display: grid;
      gap: 14px;
      grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .footer-note {
      margin-top: 18px;
      color: var(--muted);
      font-size: 13px;
      line-height: 1.6;
    }
    .sr-only {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }
    @media (max-width: 1080px) {
      .hero, .split, .login-shell, .grid.cols-4, .grid.cols-3, .grid.cols-2 {
        grid-template-columns: 1fr;
      }
    }
    @media (max-width: 720px) {
      .layout {
        padding: 18px 14px 48px;
      }
      .topbar {
        padding: 14px;
        flex-wrap: wrap;
      }
      .page-head h1 {
        font-size: 28px;
      }
      .brand-title {
        font-size: 18px;
      }
      .topbar-center {
        order: 3;
        flex: 1 0 100%;
        justify-content: flex-start;
      }
      .topbar-right {
        flex-wrap: wrap;
        width: 100%;
        justify-content: flex-start;
      }
      .nav-group {
        width: 100%;
        justify-content: space-between;
      }
      .nav-link {
        padding: 10px 12px;
      }
      iframe {
        min-height: 760px;
      }
    }
  
