    :root {
      color-scheme: light;
      --bg: #f4f6f8;
      --panel: #ffffff;
      --panel-2: #f9fafb;
      --line: #d9dee5;
      --text: #17202a;
      --muted: #667085;
      --accent: #137c6b;
      --accent-2: #234c7c;
      --danger: #b42318;
      --warn: #b54708;
      --ok: #067647;
      --shadow: 0 1px 2px rgba(16,24,40,.08);
      font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    }
    * { box-sizing: border-box; }
    body { margin: 0; background: var(--bg); color: var(--text); }
    .login-screen { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 760px); place-content: center; padding: 24px; background: linear-gradient(180deg, #eef2f6 0%, #f8fafc 100%); }
    .login-panel { width: 100%; min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 22px; box-shadow: var(--shadow); }
    .login-panel .brand { color: var(--text); margin-bottom: 16px; }
    .login-panel .mark { color: #fff; }
    .login-error { min-height: 20px; margin-top: 10px; color: var(--danger); font-size: 13px; }
    .auth-tabs { display: flex; gap: 6px; margin: 16px 0; border-bottom: 1px solid var(--line); }
    .auth-tabs button { border: 0; border-radius: 6px 6px 0 0; background: transparent; }
    .auth-tabs button.active { background: var(--accent); color: #fff; }
    .auth-pane { display: none; }
    .auth-pane.active { display: block; }
    .locale-row { display: flex; justify-content: flex-end; margin-bottom: 8px; }
    .locale-row label { min-width: 210px; }
    .shell { min-height: 100vh; display: grid; grid-template-columns: 248px 1fr; }
    aside { background: #101820; color: #f5f7fa; padding: 18px; }
    .brand { display: flex; align-items: center; gap: 10px; font-weight: 800; margin-bottom: 18px; }
    .mark { width: 32px; height: 32px; display: grid; place-items: center; background: var(--accent); border-radius: 6px; }
    nav { display: grid; gap: 6px; }
    nav button { width: 100%; border: 0; color: #d7dde5; background: transparent; text-align: start; padding: 10px; border-radius: 6px; cursor: pointer; font: inherit; }
    nav button.active, nav button:hover { background: #1f2a37; color: #fff; }
    .side-meta { margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.14); color: #b8c2cc; font-size: 12px; line-height: 1.5; }
    main { padding: 18px; }
    .topbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
    h1 { margin: 0; font-size: 24px; line-height: 1.15; }
    h2 { margin: 0 0 12px; font-size: 16px; }
    h3 { margin: 0 0 10px; font-size: 14px; }
    p { margin: 4px 0 0; color: var(--muted); }
    .actions { display: flex; flex-wrap: wrap; gap: 8px; min-inline-size: 0; }
    button, .button { border: 1px solid var(--line); background: #fff; color: var(--text); border-radius: 6px; padding: 9px 12px; font: inherit; cursor: pointer; text-decoration: none; white-space: nowrap; }
    button.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
    button.secondary { background: var(--accent-2); color: #fff; border-color: var(--accent-2); }
    button.warn { color: var(--danger); border-color: #f1b8b2; }
    button:disabled { opacity: .6; cursor: wait; }
    .panel { display: none; }
    .panel.active { display: block; }
    .grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; }
    .card { min-inline-size: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 14px; box-shadow: var(--shadow); }
    .metric { grid-column: span 3; }
    .wide { grid-column: span 8; }
    .narrow { grid-column: span 4; }
    .half { grid-column: span 6; }
    .full { grid-column: 1 / -1; }
    .metric span { color: var(--muted); font-size: 12px; }
    .metric strong { display: block; font-size: 24px; margin: 5px 0; }
    .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; min-inline-size: 0; }
    .form-grid > * { min-inline-size: 0; }
    label { display: grid; gap: 5px; color: var(--muted); font-size: 12px; }
    input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 6px; padding: 9px 10px; font: inherit; color: var(--text); background: #fff; }
    textarea { min-height: 82px; resize: vertical; }
    .row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
    .toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
    .table-wrap { overflow: auto; max-height: 420px; border: 1px solid #eef1f4; border-radius: 8px; }
    .status-row, .line-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid #eef1f4; }
    .status-row:last-child, .line-row:last-child { border-bottom: 0; }
    .label { color: var(--muted); }
    .value { font-weight: 650; overflow-wrap: anywhere; }
    .pill { display: inline-flex; align-items: center; min-height: 24px; padding: 3px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; }
    .pill.ok { background: #dcfae6; color: var(--ok); }
    .pill.warn { background: #fff3e0; color: var(--warn); }
    .pill.bad { background: #fee4e2; color: var(--danger); }
    .pill.neutral { background: #eef2f6; color: #475467; }
    table { width: 100%; border-collapse: collapse; font-size: 13px; }
    th, td { border-bottom: 1px solid #eef1f4; padding: 8px; text-align: start; vertical-align: top; }
    th { color: var(--muted); font-weight: 700; }
    .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }
    .tight-button { padding: 5px 8px; font-size: 12px; }
    pre { margin: 0; white-space: pre-wrap; overflow: auto; max-height: 470px; background: #101820; color: #e8f3ef; border-radius: 8px; padding: 12px; font-size: 12px; line-height: 1.5; }
    .log { display: grid; gap: 8px; max-height: 360px; overflow: auto; }
    .log-row { border-inline-start: 3px solid var(--accent); background: var(--panel-2); padding: 8px 10px; font-size: 13px; }
    .log-row time { color: var(--muted); margin-inline-end: 8px; font-size: 12px; }
    .hidden { display: none !important; }
    .single-column { grid-template-columns: 1fr; }
    .mt-12 { margin-top: 12px; }
    .mt-14 { margin-top: 14px; }
    .mb-12 { margin-bottom: 12px; }
    .m-0 { margin: 0; }
    .flat-card { box-shadow: none; }
    .full-row { grid-column: 1 / -1; }
    @media (max-width: 1060px) {
      .shell { grid-template-columns: 1fr; }
      aside { position: static; }
      nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .metric, .wide, .narrow, .half { grid-column: 1 / -1; }
    }
    @media (max-width: 680px) {
      .login-screen { padding: 12px; }
      .login-panel { padding: 16px; }
      .locale-row label { width: 100%; min-width: 0; }
      .auth-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; }
      .auth-tabs button { min-width: 0; padding: 8px 6px; line-height: 1.25; white-space: normal; }
      main { padding: 12px; }
      .topbar { display: grid; }
      .form-grid { grid-template-columns: 1fr; }
      nav { grid-template-columns: 1fr; }
      .actions { justify-content: flex-start; }
      .actions > button, .actions > .button {
        max-inline-size: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
      }
    }
