:root {
      color-scheme: light;
      --bg: oklch(0.965 0.010 95);
      --panel: oklch(0.988 0.006 95);
      --panel-2: oklch(0.940 0.012 100);
      --line: oklch(0.805 0.014 100);
      --line-strong: oklch(0.725 0.018 100);
      --text: oklch(0.245 0.025 125);
      --muted: oklch(0.430 0.020 125);
      --faint: oklch(0.555 0.016 125);
      --brand: oklch(0.365 0.060 128);
      --brand-soft: oklch(0.925 0.025 128);
      --sidebar-text: oklch(0.980 0.006 95);
      --sidebar-muted: oklch(0.980 0.006 95 / 0.68);
      --sidebar-subtle: oklch(0.980 0.006 95 / 0.12);
      --gold: oklch(0.705 0.095 82);
      --success: oklch(0.500 0.075 145);
      --warning: oklch(0.640 0.095 75);
      --danger: oklch(0.525 0.095 35);
      --info: oklch(0.515 0.035 230);
      --radius-panel: 18px;
      --radius-card: 14px;
      --radius-control: 10px;
      --control-height: 40px;
      font-family: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    }
    * { box-sizing: border-box; }
    body { background: var(--bg); color: var(--text); margin: 0; overflow-wrap: break-word; word-break: normal; }
    a { color: var(--brand); text-decoration: none; }
    button, input, select, textarea { font: inherit; }
    button, .button-link { align-items: center; border: 1px solid transparent; border-radius: var(--radius-control); cursor: pointer; display: inline-flex; font-weight: 700; gap: 6px; justify-content: center; line-height: 1.25; min-height: var(--control-height); padding: 0 13px; text-align: center; white-space: nowrap; }
    button.primary { background: var(--brand); color: oklch(0.985 0.006 95); }
    button.secondary { background: var(--panel); border-color: var(--line); color: var(--text); }
    button.warning { background: oklch(0.955 0.026 82); border-color: oklch(0.790 0.044 82); color: oklch(0.390 0.058 82); }
    .button-link.primary { background: var(--brand); color: oklch(0.985 0.006 95); }
    .button-link.secondary { background: var(--panel); border-color: var(--line); color: var(--text); }
    button:disabled { cursor: not-allowed; opacity: 0.55; }
    input, select, textarea { background: oklch(0.992 0.004 95); border: 1px solid var(--line); border-radius: var(--radius-control); color: var(--text); min-height: var(--control-height); padding: 8px 10px; width: 100%; }
    input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 2px solid oklch(0.705 0.095 82 / 0.46); outline-offset: 2px; }
    textarea { min-height: 110px; resize: vertical; }
    label { color: var(--muted); display: grid; font-size: 12px; font-weight: 700; gap: 6px; }
    code, .mono { font-family: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: break-word; word-break: normal; }
    .shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
    .sidebar { background: var(--brand); box-shadow: inset -1px 0 0 oklch(0.980 0.006 95 / 0.16); color: var(--sidebar-text); display: flex; flex-direction: column; padding: 0 14px 18px; }
    .brand { align-items: center; border-bottom: 1px solid oklch(0.980 0.006 95 / 0.16); display: flex; gap: 10px; margin: 0 -14px 18px; min-height: 64px; padding: 14px; }
    .brand-mark { align-items: center; background: oklch(0.980 0.006 95 / 0.12); border: 1px solid oklch(0.980 0.006 95 / 0.22); border-radius: 8px; color: var(--sidebar-text); display: flex; font-weight: 800; height: 36px; justify-content: center; overflow: hidden; width: 36px; }
    .brand-mark img { display: block; height: 26px; object-fit: contain; width: 26px; }
    .brand strong { color: var(--sidebar-text); display: block; font-size: 15px; letter-spacing: 0; }
    .brand span { color: var(--sidebar-muted); display: block; font-size: 11px; margin-top: 2px; }
    .nav { display: grid; gap: 12px; }
    .nav-group { border-top: 1px solid oklch(0.980 0.006 95 / 0.16); padding-top: 8px; }
    .nav-group:first-child { border-top: 0; padding-top: 0; }
    .nav-group summary { color: var(--sidebar-muted); cursor: pointer; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; list-style: none; margin: 0 0 5px; padding: 0 10px; text-transform: uppercase; }
    .nav-group summary::-webkit-details-marker { display: none; }
    .nav-group summary::after { content: "⌄"; float: right; font-size: 12px; letter-spacing: 0; }
    .nav-group:not([open]) summary::after { content: "›"; }
    .nav-group div { display: grid; gap: 4px; }
    .nav button { align-items: center; background: transparent; border-radius: 12px; color: var(--sidebar-muted); display: grid; font-size: 13px; font-weight: 600; gap: 10px; grid-template-columns: 18px minmax(0, 1fr); justify-content: stretch; min-height: 38px; overflow: hidden; padding: 0 11px; text-align: left; width: 100%; }
    .nav button:hover { background: var(--sidebar-subtle); color: var(--sidebar-text); }
    .nav button.active { background: var(--gold); color: var(--brand); font-weight: 800; }
    .nav button span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .nav-icon { align-items: center; display: inline-flex; height: 18px; justify-content: center; width: 18px; }
    .nav-icon svg { display: block; height: 18px; stroke-width: 1.9; width: 18px; }
    .sidebar-foot { color: var(--sidebar-muted); font-size: 12px; line-height: 1.6; margin-top: auto; padding: 14px 8px 0; }
    .content { max-width: 100%; min-width: 0; padding: 20px 24px 36px; }
    .topbar { align-items: center; display: flex; gap: 14px; justify-content: space-between; margin-bottom: 18px; }
    .title h1 { font-size: 24px; letter-spacing: -0.02em; margin: 0; }
    .title p { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 6px 0 0; max-width: 60ch; }
    .top-actions { align-items: center; display: flex; gap: 8px; position: relative; }
    .doc-center-link { min-height: 38px; }
    .icon-button { background: var(--panel); border-color: var(--line); color: var(--text); min-width: 38px; padding: 0; position: relative; }
    .icon-button .badge { background: var(--danger); border-radius: 999px; color: oklch(0.985 0.006 95); font-size: 10px; line-height: 1; min-width: 16px; padding: 3px 5px; position: absolute; right: -4px; top: -5px; }
    .account-switch { position: relative; }
    .account-trigger { background: var(--panel); border-color: var(--line); color: var(--text); gap: 8px; min-height: 38px; padding: 0 10px 0 8px; }
    .account-avatar { background: var(--brand); border-radius: 999px; color: oklch(0.985 0.006 95); display: inline-grid; font-size: 13px; font-weight: 900; height: 30px; place-items: center; width: 30px; }
    .account-menu { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 18px 60px oklch(0.245 0.025 125 / 0.14); display: none; min-width: 0; overflow: hidden; position: absolute; right: 0; top: calc(100% + 8px); width: min(380px, calc(100vw - 24px)); z-index: 35; }
    .account-menu.active { display: grid; }
    .account-card { align-items: start; display: grid; gap: 12px; grid-template-columns: 44px minmax(0, 1fr); padding: 18px; }
    .account-card .account-avatar { height: 44px; width: 44px; }
    .account-card strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .account-card p { color: var(--muted); font-size: 12px; line-height: 1.6; margin: 6px 0 0; }
    .profile-card { background: oklch(0.958 0.010 100); border: 1px solid var(--line); border-radius: 16px; padding: 12px; }
    .account-menu-section { border-top: 1px solid var(--line); display: grid; padding: 8px; }
    .account-menu-button { align-items: center; background: transparent; border-color: transparent; border-radius: 12px; color: var(--text); display: grid; gap: 8px; grid-template-columns: 30px minmax(0, 1fr) auto; justify-content: stretch; min-height: 44px; padding: 8px 10px; text-align: left; width: 100%; }
    .account-menu-button:hover, .account-menu-button.active { background: var(--brand-soft); color: var(--brand); }
    .account-menu-button.danger:hover { background: oklch(0.955 0.018 35); color: var(--danger); }
    .account-menu-button .menu-icon { align-items: center; background: oklch(0.940 0.012 100); border: 1px solid var(--line); border-radius: 10px; color: var(--brand); display: inline-flex; height: 30px; justify-content: center; width: 30px; }
    .account-menu-button.danger .menu-icon { color: var(--danger); }
    .account-menu-button .menu-meta { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .account-org-list { display: grid; gap: 5px; max-height: 260px; overflow: auto; padding: 0 8px 8px; }
    .auth-loading { align-items: center; background: var(--bg); color: var(--text); display: grid; min-height: 100vh; place-items: center; text-align: center; }
    .auth-loading > div { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 18px 60px oklch(0.245 0.025 125 / 0.10); display: grid; gap: 8px; max-width: min(420px, calc(100vw - 32px)); padding: 28px; }
    .auth-loading strong { color: var(--brand); font-size: 20px; }
    .auth-loading span { color: var(--muted); line-height: 1.6; }
    .login-wrap { background: var(--panel); display: grid; grid-template-columns: minmax(420px, 0.96fr) minmax(440px, 1.04fr); min-height: 100vh; }
    .login-card, .login-grid { display: contents; }
    .login-promo { background:
      radial-gradient(circle at 22% 18%, oklch(0.705 0.095 82 / 0.30), transparent 30%),
      radial-gradient(circle at 76% 74%, oklch(0.365 0.060 128 / 0.34), transparent 34%),
      linear-gradient(135deg, oklch(0.310 0.045 128), oklch(0.205 0.025 125));
      color: oklch(0.982 0.006 95); display: flex; flex-direction: column; justify-content: space-between; min-height: 100vh; overflow: hidden; padding: 54px clamp(34px, 6vw, 76px); position: relative; }
    .login-promo::after { border: 1px solid oklch(0.985 0.006 95 / 0.18); border-radius: 34px; content: ""; inset: auto -64px -88px auto; height: 280px; position: absolute; transform: rotate(-14deg); width: 420px; }
    .login-promo .brand { border-bottom: 0; margin: 0 0 42px; min-height: auto; padding: 0; position: relative; z-index: 1; }
    .login-promo .brand-mark { background: oklch(0.985 0.006 95); color: var(--brand); }
    .login-promo .brand span, .login-promo p { color: oklch(0.900 0.010 95); }
    .login-promo h1 { font-size: clamp(34px, 3.1vw, 42px); letter-spacing: 0; line-height: 1.14; margin: 0 0 18px; max-width: 13em; position: relative; z-index: 1; }
    .login-promo h1 span { display: block; white-space: nowrap; }
    .login-promo p { font-size: 15px; line-height: 1.9; margin: 0; max-width: 54ch; position: relative; z-index: 1; }
    .promo-placeholder { border: 1px solid oklch(0.985 0.006 95 / 0.22); border-radius: 22px; color: oklch(0.900 0.010 95); display: grid; gap: 8px; margin-top: 44px; max-width: 560px; padding: 18px; position: relative; z-index: 1; }
    .promo-placeholder strong { color: oklch(0.985 0.006 95); font-size: 15px; }
    .promo-placeholder span { font-size: 13px; line-height: 1.7; }
    .login-panel { align-items: center; display: flex; justify-content: center; padding: 42px clamp(24px, 5vw, 72px); }
    .login-form-card { display: grid; gap: 18px; max-width: 440px; width: 100%; }
    .login-form-card h2 { font-size: 28px; letter-spacing: 0; margin: 0; }
    .login-form-card p { color: var(--muted); line-height: 1.7; margin: 0; }
    .login-form { display: grid; gap: 13px; }
    .third-login { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
    .third-login button { background: var(--panel-2); border-color: var(--line); color: var(--muted); font-size: 12px; min-width: 0; padding: 0 10px; }
    .form-footer { align-items: center; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; margin-top: 2px; }
    .form-footer a { align-items: center; border: 1px solid transparent; border-radius: 10px; display: inline-flex; min-height: 32px; padding: 0 8px; }
    .form-footer a:hover { background: var(--panel-2); border-color: var(--line); }
    .login-hint { background: oklch(0.965 0.018 115); border: 1px solid var(--line); border-radius: 12px; color: var(--muted); font-size: 12px; line-height: 1.6; padding: 10px 12px; }
    .boundary { display: grid; gap: 10px; margin-top: 18px; }
    .boundary div { background: oklch(0.955 0.014 100); border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
    .boundary strong { display: block; margin-bottom: 4px; }
    .boundary span { color: var(--muted); font-size: 12px; }
    .page { display: none; }
    .page.active { display: block; }
    .panel { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; max-width: 100%; min-width: 0; padding: 16px; }
    .panel + .panel { margin-top: 14px; }
    .panel-head { align-items: baseline; display: flex; gap: 12px; justify-content: space-between; margin-bottom: 12px; }
    .panel-head h2 { font-size: 16px; margin: 0; }
    .panel-head span { color: var(--muted); font-size: 12px; }
    .panel-head span:empty { display: none; }
    .hero-strip { align-items: stretch; background: var(--panel); border: 1px solid var(--line); border-radius: 22px; display: grid; gap: 18px; grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr); margin-bottom: 14px; padding: 20px; }
    .hero-strip h2 { font-size: 22px; letter-spacing: -0.02em; margin: 0; }
    .hero-strip p { color: var(--muted); font-size: 13px; line-height: 1.7; margin: 8px 0 0; max-width: 72ch; }
    .overview-action-copy { display: flex; flex-direction: column; gap: 10px; justify-content: center; min-width: 0; }
    .overview-action-copy > span { color: var(--gold); font-size: 12px; font-weight: 900; letter-spacing: 0.08em; }
    .overview-actions .action-card:first-child { background: var(--brand-soft); border-color: oklch(0.705 0.095 82); }
    .quick-actions { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(180px, 1fr)); }
    .action-card { background: oklch(0.958 0.010 100); border: 1px solid var(--line); border-radius: 15px; color: inherit; cursor: pointer; min-height: 74px; padding: 12px; text-align: left; }
    .action-card strong { display: block; font-size: 13px; margin-bottom: 4px; }
    .action-card span { color: var(--muted); display: block; font-size: 12px; line-height: 1.45; }
    .action-card:hover { background: var(--brand-soft); border-color: oklch(0.760 0.030 128); }
    .journey-card { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; display: grid; gap: 14px; margin-bottom: 14px; padding: 16px; }
    .journey-head { align-items: center; display: flex; gap: 12px; justify-content: space-between; }
    .journey-head strong { display: block; font-size: 16px; }
    .journey-head span { color: var(--muted); display: block; font-size: 12px; line-height: 1.6; margin-top: 4px; }
    .journey-steps { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
    .journey-step { align-items: center; background: oklch(0.958 0.010 100); border: 1px solid var(--line); border-radius: 14px; color: var(--text); display: grid; gap: 9px; grid-template-columns: auto minmax(0, 1fr); min-height: 76px; padding: 10px; text-align: left; }
    .journey-step.done { background: oklch(0.930 0.025 145); border-color: oklch(0.700 0.055 145); }
    .journey-step.current { background: var(--brand-soft); border-color: var(--gold); box-shadow: inset 0 0 0 1px oklch(0.705 0.095 82 / 0.35); }
    .journey-index { align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; color: var(--brand); display: inline-flex; font-size: 12px; font-weight: 900; height: 28px; justify-content: center; width: 28px; }
    .journey-step strong { display: block; font-size: 13px; }
    .journey-step em { color: var(--muted); display: block; font-size: 11px; font-style: normal; line-height: 1.45; margin-top: 3px; }
    .metric-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
    .compact-metrics { grid-template-columns: repeat(3, minmax(180px, 1fr)); }
    .metric { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
    .metric span { color: var(--muted); display: block; font-size: 12px; margin-bottom: 7px; white-space: nowrap; }
    .metric strong { display: block; font-size: 19px; letter-spacing: -0.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .metric p { color: var(--faint); font-size: 12px; line-height: 1.5; margin: 7px 0 0; }
    .split { display: grid; gap: 14px; grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr); }
    .form-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
    .form-grid .wide { grid-column: 1 / -1; }
    .form-status { color: var(--brand); font-size: 12px; min-height: 18px; }
    .checkbox-grid { border: 1px solid var(--line); border-radius: 14px; display: grid; gap: 6px; max-height: 170px; overflow: auto; padding: 10px; }
    .checkbox-line { align-items: center; display: flex; gap: 8px; }
    .table-wrap { overflow-x: auto; }
    .customer-data-grid { border: 1px solid var(--line); border-radius: 14px; max-width: 100%; min-width: 0; overflow: hidden; }
    .customer-data-grid .tabulator { background: var(--panel); border: 0; color: var(--text); font-family: inherit; max-width: 100%; }
    .customer-data-grid .tabulator-header { background: oklch(0.930 0.012 100); border-bottom: 1px solid var(--line); }
    .customer-data-grid .tabulator-col { background: transparent; border-right: 1px solid oklch(0.865 0.012 100); color: var(--muted); font-size: 12px; font-weight: 800; }
    .customer-data-grid .tabulator-row { background: var(--panel); border-bottom: 1px solid oklch(0.865 0.012 100); }
    .customer-data-grid .tabulator-row:hover { background: oklch(0.960 0.010 100); }
    .customer-data-grid .tabulator-cell { align-items: center; border-right: 1px solid oklch(0.900 0.010 100); display: inline-flex; font-size: 13px; min-height: 52px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .customer-data-grid .tabulator-cell code,
    .customer-data-grid .tabulator-cell .mono { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .customer-data-grid .tabulator-placeholder { color: var(--muted); font-size: 13px; }
    table { border-collapse: collapse; min-width: 760px; width: 100%; }
    th { color: var(--muted); font-size: 12px; font-weight: 700; }
    th, td { border-bottom: 1px solid oklch(0.865 0.012 100); padding: 10px 9px; text-align: left; white-space: nowrap; }
    td { font-size: 13px; }
    tr.clickable { cursor: pointer; }
    tr.clickable:hover { background: oklch(0.960 0.010 100); }
    .pill { align-items: center; background: var(--panel-2); border: 1px solid var(--line); border-radius: 999px; color: var(--brand); display: inline-flex; font-size: 12px; font-weight: 700; gap: 6px; padding: 4px 8px; }
    .pill.success { color: var(--success); }
    .pill.warning { color: var(--warning); }
    .pill.danger { color: var(--danger); }
    .pill.info { color: var(--info); }
    .subtle { color: var(--faint); font-size: 12px; line-height: 1.5; }
    .empty { background: oklch(0.955 0.012 100); border: 1px dashed var(--line-strong); border-radius: 14px; color: var(--muted); font-size: 13px; line-height: 1.7; padding: 14px; }
    .empty-action { align-items: center; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; }
    .section-toolbar { align-items: center; display: flex; gap: 10px; justify-content: space-between; margin-bottom: 12px; }
    .section-toolbar p { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 0; max-width: 66ch; }
    .capability-hero { align-items: center; background: linear-gradient(135deg, oklch(0.972 0.010 95), oklch(0.936 0.026 128)); border: 1px solid var(--line); border-radius: 20px; display: flex; gap: 16px; justify-content: space-between; margin-bottom: 12px; padding: 18px; }
    .capability-hero h2 { color: var(--brand); font-size: 22px; margin: 0 0 6px; }
    .capability-hero p { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 0; max-width: 72ch; }
    .capability-counts { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
    .capability-start-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-bottom: 12px; }
    .capability-grid { align-items: stretch; }
    .capability-card { position: relative; }
    .capability-card::before { background: var(--gold); border-radius: 999px; content: ""; height: 6px; left: 14px; position: absolute; right: 14px; top: 0; transform: translateY(-50%); }
    .model-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
    .model-card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
    .model-card.featured { display: grid; gap: 12px; min-height: 236px; }
    .model-card-header { align-items: flex-start; display: flex; gap: 10px; justify-content: space-between; }
    .model-title strong { display: block; font-size: 16px; letter-spacing: -0.01em; }
    .model-title span { color: var(--muted); display: block; font-size: 12px; margin-top: 4px; }
    .model-card h3 { font-size: 15px; margin: 0 0 4px; }
    .model-card p { color: var(--muted); font-size: 12px; line-height: 1.6; margin: 8px 0 0; }
    .model-meta-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); }
    .model-meta-grid div { background: oklch(0.958 0.010 100); border: 1px solid var(--line); border-radius: 12px; padding: 9px; }
    .model-meta-grid span { color: var(--muted); display: block; font-size: 11px; margin-bottom: 4px; }
    .model-meta-grid strong { display: block; font-size: 12px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .model-evidence { background: oklch(0.958 0.010 100); border: 1px solid var(--line); border-radius: 12px; display: grid; gap: 6px; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); padding: 9px; }
    .model-evidence span { color: var(--muted); font-size: 11px; min-width: 0; }
    .model-evidence strong { color: var(--text); display: block; font-size: 12px; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .health-strip { display: grid; gap: 3px; grid-template-columns: repeat(24, minmax(0, 1fr)); margin-top: 2px; }
    .health-segment { background: var(--line); border-radius: 999px; height: 8px; }
    .health-segment.healthy { background: var(--success); }
    .health-segment.degraded { background: var(--warning); }
    .health-segment.unhealthy { background: var(--danger); }
    .model-actions { align-items: end; display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; }
    .model-key-action { align-items: end; display: grid; flex: 1 1 100%; gap: 8px; grid-template-columns: minmax(0, 1fr) auto; width: 100%; }
    .model-key-action.empty { align-items: center; background: oklch(0.955 0.012 100); border: 1px dashed var(--line-strong); border-radius: 12px; grid-template-columns: minmax(0, 1fr) auto; padding: 10px; }
    .chat-layout { align-items: stretch; display: grid; gap: 14px; grid-template-columns: 320px minmax(0, 1fr); }
    .chat-workbench { display: grid; gap: 12px; grid-template-rows: minmax(360px, 1fr) auto; min-height: calc(100vh - 150px); }
    .chat-box { background: oklch(0.972 0.008 95); border: 1px solid var(--line); border-radius: 16px; min-height: 360px; padding: 14px; }
    .chat-composer { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; display: grid; gap: 10px; padding: 12px; }
    .prompt-chips { display: flex; flex-wrap: wrap; gap: 8px; }
    .prompt-chips button { background: oklch(0.945 0.014 100); border-color: var(--line); color: var(--muted); font-size: 12px; min-height: 36px; }
    .composer-row { display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr) auto; }
    .composer-row textarea { min-height: 96px; }
    .terminal-panel { background: oklch(0.245 0.020 125); border: 1px solid oklch(0.365 0.020 125); border-radius: 16px; color: oklch(0.920 0.010 95); display: none; font-size: 12px; line-height: 1.6; max-height: 260px; overflow: auto; padding: 12px; white-space: pre-wrap; }
    .terminal-panel.active { display: block; }
    .playground-evidence { display: grid; gap: 8px; }
    .evidence-empty { background: oklch(0.955 0.012 100); border: 1px dashed var(--line-strong); border-radius: 14px; color: var(--muted); font-size: 12px; line-height: 1.6; padding: 10px; }
    .evidence-card { background: var(--brand-soft); border: 1px solid oklch(0.740 0.030 128); border-radius: 16px; display: grid; gap: 10px; padding: 12px; }
    .evidence-card strong { font-size: 14px; }
    .evidence-card p { margin: 8px 0 0; }
    .evidence-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
    .evidence-grid span { background: oklch(0.992 0.004 95); border: 1px solid var(--line); border-radius: 12px; color: var(--muted); font-size: 12px; min-width: 0; padding: 8px; }
    .evidence-grid strong { color: var(--text); display: block; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .parameter-panel { align-self: start; display: grid; gap: 10px; max-height: calc(100vh - 150px); overflow: auto; padding-right: 12px; scrollbar-gutter: stable; }
    .parameter-panel form { display: grid; gap: 10px; }
    .parameter-row { display: grid; gap: 6px; }
    .parameter-row .field-help { margin-top: -2px; }
    .bubble { border-radius: 14px; line-height: 1.6; margin-bottom: 10px; padding: 10px 12px; }
    .bubble.user { background: var(--brand-soft); margin-left: 52px; }
    .bubble.assistant { background: var(--panel); border: 1px solid var(--line); margin-right: 52px; }
    .detail-box { background: oklch(0.958 0.010 100); border: 1px solid var(--line); border-radius: 14px; color: var(--text); font-size: 12px; line-height: 1.6; max-height: 360px; overflow: auto; padding: 12px; white-space: pre-wrap; }
    .info-list { display: grid; gap: 8px; }
    .info-row { align-items: center; background: oklch(0.958 0.010 100); border: 1px solid var(--line); border-radius: 12px; display: flex; gap: 12px; justify-content: space-between; padding: 10px 12px; }
    .info-row span { color: var(--muted); font-size: 12px; }
    .info-row strong { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .key-toolbar { align-items: center; display: flex; gap: 10px; justify-content: space-between; margin-bottom: 12px; }
    .key-toolbar p { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 0; max-width: 66ch; }
    .relation-note { align-items: center; background: oklch(0.955 0.012 100); border: 1px solid var(--line); border-radius: 14px; color: var(--muted); display: flex; flex-wrap: wrap; font-size: 13px; gap: 8px; line-height: 1.5; margin-bottom: 12px; padding: 10px 12px; }
    .segmented-choice { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
    .segmented-choice label { background: oklch(0.958 0.010 100); border: 1px solid var(--line); border-radius: 14px; color: var(--text); cursor: pointer; display: grid; font-size: 13px; gap: 5px; padding: 11px; }
    .segmented-choice label:has(input:checked) { background: var(--brand-soft); border-color: oklch(0.740 0.030 128); color: var(--brand); }
    .segmented-choice input { margin: 0; min-height: 0; width: auto; }
    .field-help { color: var(--muted); font-size: 12px; line-height: 1.55; }
    .label-with-tip { align-items: center; display: inline-flex; gap: 5px; }
    .param-label { align-items: flex-start; display: inline-flex; flex-direction: column; gap: 2px; }
    .param-label-main { align-items: center; display: inline-flex; gap: 5px; }
    .param-label em { color: var(--muted); font-size: 11px; font-style: normal; font-weight: 700; letter-spacing: 0.01em; }
    .tip { align-items: center; background: var(--brand-soft); border: 1px solid oklch(0.740 0.030 128); border-radius: 999px; color: var(--brand); cursor: help; display: inline-flex; font-size: 10px; font-weight: 900; height: 16px; justify-content: center; line-height: 1; vertical-align: middle; width: 16px; }
    .tip:hover { background: oklch(0.900 0.030 128); }
    .form-note { color: var(--muted); font-size: 12px; line-height: 1.55; margin: 0; }
    .select-popover { display: grid; gap: 6px; position: relative; }
    .select-popover summary { align-items: center; background: oklch(0.992 0.004 95); border: 1px solid var(--line); border-radius: 10px; color: var(--text); cursor: pointer; display: flex; justify-content: space-between; min-height: 38px; padding: 8px 10px; }
    .select-popover summary::-webkit-details-marker { display: none; }
    .select-popover[open] summary { border-color: var(--gold); box-shadow: 0 0 0 3px oklch(0.705 0.095 82 / 0.14); }
    .select-popover.is-disabled summary { background: oklch(0.958 0.010 100); color: var(--muted); cursor: not-allowed; }
    .select-popover.is-disabled[open] summary { border-color: var(--line); box-shadow: none; }
    .select-popover.is-disabled .select-options { display: none; }
    .select-options { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 50px oklch(0.245 0.025 125 / 0.16); display: none; gap: 4px; left: 0; max-height: 210px; overflow: auto; padding: 8px; position: absolute; right: 0; top: calc(100% + 6px); z-index: 55; }
    .select-popover[open] .select-options { display: grid; }
    .select-popover.is-disabled[open] .select-options { display: none; }
    .select-options label { align-items: center; border-radius: 9px; color: var(--text); cursor: pointer; display: grid; font-size: 13px; font-weight: 600; gap: 8px; grid-template-columns: auto minmax(0, 1fr); padding: 8px; }
    .select-options label:hover { background: var(--brand-soft); }
    .select-options input { margin: 0; min-height: auto; width: auto; }
    .button-row { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; }
    .key-create-result { min-height: 126px; }
    .key-create-result > .empty,
    .key-create-result > .message,
    .key-create-result > .secret-box { min-height: 100px; }
    .secret-box { background: oklch(0.945 0.020 128); border: 1px solid oklch(0.720 0.035 128); border-radius: 14px; color: var(--brand); display: grid; gap: 8px; padding: 12px; }
    .secret-box code { background: oklch(0.992 0.004 95); border: 1px solid var(--line); border-radius: 10px; color: var(--text); display: block; overflow-x: auto; padding: 10px; white-space: nowrap; }
    .ide-config-code code { font-size: 12px; line-height: 1.7; max-height: 320px; white-space: pre; }
    .integration-doc-preview code { font-size: 12px; line-height: 1.65; max-height: 360px; white-space: pre-wrap; }
    .copy-chip-grid { display: flex; flex-wrap: wrap; gap: 8px; }
    .copy-chip-grid .copy-chip { flex: 1 1 320px; justify-content: space-between; }
    .modal-backdrop { align-items: center; background: oklch(0.245 0.025 125 / 0.32); display: none; inset: 0; justify-content: center; padding: 24px; position: fixed; z-index: 40; }
    .modal-backdrop.active { display: flex; }
    .modal { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 24px 90px oklch(0.245 0.025 125 / 0.18); max-height: min(780px, calc(100vh - 48px)); max-width: 760px; overflow: auto; padding: 18px; width: min(760px, 100%); }
    .nested-panel { margin-top: 12px; }
    #create-key-modal .modal { display: flex; flex-direction: column; height: min(760px, calc(100vh - 48px)); overflow: hidden; }
    #create-key-form { min-height: 0; overflow: auto; padding-right: 4px; scrollbar-gutter: stable; }
    .modal-head { align-items: flex-start; display: flex; gap: 12px; justify-content: space-between; margin-bottom: 14px; }
    .modal-head h2 { font-size: 18px; margin: 0; }
    .modal-head p { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 6px 0 0; }
    .request-detail-backdrop { align-items: stretch; background: oklch(0.245 0.025 125 / 0.28); display: none; inset: 0; justify-content: flex-end; padding: 0; position: fixed; z-index: 45; }
    .request-detail-backdrop.active { display: flex; }
    .request-detail-drawer { background: var(--panel); border-left: 1px solid var(--line); box-shadow: -18px 0 70px oklch(0.245 0.025 125 / 0.18); display: flex; flex-direction: column; max-width: 100%; width: min(920px, 92vw); }
    .request-detail-head { align-items: flex-start; border-bottom: 1px solid var(--line); display: flex; gap: 18px; justify-content: space-between; padding: 22px 24px 18px; }
    .request-detail-head h2 { font-size: 24px; letter-spacing: -0.03em; margin: 3px 0 0; }
    .request-detail-head p:not(.eyebrow) { color: var(--muted); font-size: 13px; line-height: 1.6; margin: 8px 0 0; max-width: 62ch; }
    .request-detail-body { min-height: 0; overflow: auto; padding: 18px 24px 28px; }
    .request-detail-content { display: grid; gap: 14px; }
    .request-detail-hero { align-items: start; background: linear-gradient(135deg, oklch(0.985 0.012 95), oklch(0.955 0.020 130)); border: 1px solid var(--line); border-radius: 20px; display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); padding: 16px; }
    .request-detail-hero h3 { font-size: 22px; margin: 10px 0 4px; }
    .request-detail-hero p { color: var(--muted); margin: 0; }
    .request-detail-copy-grid { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
    .request-detail-copy-grid .copy-chip { justify-content: space-between; min-width: 0; }
    .request-detail-metrics { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
    .request-detail-metric { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
    .request-detail-metric span { color: var(--muted); display: block; font-size: 12px; font-weight: 800; margin-bottom: 8px; }
    .request-detail-metric strong { display: block; font-size: 22px; letter-spacing: -0.03em; }
    .request-detail-metric p { color: var(--muted); font-size: 12px; line-height: 1.5; margin: 8px 0 0; }
    .request-detail-section { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
    .request-detail-section h3 { font-size: 16px; margin: 0 0 12px; }
    .request-detail-rows { display: grid; gap: 8px; }
    .request-detail-row { align-items: center; background: oklch(0.985 0.006 100); border: 1px solid oklch(0.870 0.018 110); border-radius: 13px; display: grid; gap: 10px; grid-template-columns: 132px minmax(0, 1fr) minmax(160px, 0.78fr); padding: 11px 12px; }
    .request-detail-row span { color: var(--muted); font-size: 12px; font-weight: 800; }
    .request-detail-row strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .request-detail-row small { color: var(--muted); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .request-detail-loading,
    .request-detail-error,
    .request-detail-empty { background: oklch(0.985 0.006 100); border: 1px dashed var(--line); border-radius: 16px; color: var(--muted); display: grid; gap: 8px; padding: 18px; }
    .request-detail-loading strong,
    .request-detail-error strong { color: var(--text); font-size: 16px; }
    .request-detail-error { border-color: oklch(0.670 0.150 30 / 0.45); }
    .doc-actions { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
    .doc-actions .action-card { min-height: 96px; }
    .notice-toolbar { align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; display: flex; gap: 12px; justify-content: space-between; margin-bottom: 12px; padding: 14px; }
    .notice-toolbar h2 { font-size: 18px; margin: 0 0 8px; }
    .notice-detail-page { display: grid; gap: 14px; }
    .notice-detail-head { align-items: flex-start; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; display: flex; gap: 16px; justify-content: space-between; padding: 16px; }
    .notice-detail-head h2 { font-size: 22px; letter-spacing: -0.02em; margin: 10px 0 0; }
    .notice-detail-head p { color: var(--muted); font-size: 13px; line-height: 1.65; margin: 8px 0 0; max-width: 72ch; }
    .notice-meta-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
    .notice-meta-grid div { background: oklch(0.958 0.010 100); border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
    .notice-meta-grid span { color: var(--muted); display: block; font-size: 12px; margin-bottom: 6px; }
    .notice-meta-grid strong { display: block; font-size: 13px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .notice-detail-content { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; color: var(--text); font-size: 14px; line-height: 1.85; padding: 18px; }
    .usage-grid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
    .usage-summary { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
    .log-summary-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-bottom: 14px; }
    .customer-log-filterbar { align-items: end; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; display: grid; gap: 8px; grid-template-columns: minmax(240px, 1.4fr) repeat(4, minmax(150px, 1fr)) minmax(120px, auto); margin-bottom: 14px; max-width: 100%; min-width: 0; overflow: visible; padding: 12px; position: relative; }
    .filter-field { display: grid; gap: 6px; min-width: 0; }
    .filter-label { color: var(--muted); display: block; font-size: 12px; font-weight: 800; }
    .filter-actions { align-items: center; display: flex; gap: 6px; justify-content: flex-end; }
    .filter-actions button { padding-inline: 12px; white-space: nowrap; }
    .date-range-popover { position: relative; }
    .range-trigger { align-items: center; background: oklch(0.992 0.004 95); border: 1px solid var(--line); border-radius: 12px; color: var(--text); display: grid; gap: 7px; grid-template-columns: auto minmax(0, 1fr) auto; justify-content: stretch; min-height: 38px; padding: 7px 10px; width: 100%; }
    .range-trigger:hover { border-color: var(--gold); box-shadow: 0 0 0 3px oklch(0.705 0.095 82 / 0.14); }
    .range-trigger span { color: var(--muted); font-size: 12px; font-weight: 700; }
    .range-trigger strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .date-range-panel { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 60px oklch(0.245 0.025 125 / 0.14); display: none; gap: 10px; left: 0; max-width: min(520px, calc(100vw - 48px)); min-width: min(420px, calc(100vw - 48px)); padding: 12px; position: absolute; top: calc(100% + 8px); width: min(520px, calc(100vw - 48px)); z-index: 25; }
    .date-range-panel.active { display: grid; }
    .date-range-panel label { gap: 6px; }
    .date-range-panel input { font-family: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 10px; letter-spacing: -0.04em; padding-inline: 6px; width: 100%; }
    .quick-range-row { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
    .quick-range-row button { background: var(--panel-2); border-color: var(--line); color: var(--brand); font-size: 12px; min-height: 36px; padding: 0 10px; }
    .flatpickr-calendar { border-radius: 14px; box-shadow: 0 20px 70px oklch(0.245 0.025 125 / 0.18); font-family: inherit; }
    .flatpickr-day.selected,
    .flatpickr-day.startRange,
    .flatpickr-day.endRange,
    .flatpickr-day.selected:hover,
    .flatpickr-day.startRange:hover,
    .flatpickr-day.endRange:hover { background: var(--brand); border-color: var(--brand); }
    .flatpickr-day.inRange { background: oklch(0.92 0.055 142); border-color: oklch(0.92 0.055 142); box-shadow: -5px 0 0 oklch(0.92 0.055 142), 5px 0 0 oklch(0.92 0.055 142); }
    .customer-log-table table { min-width: 1180px; }
    .observability-headline { align-items: center; color: var(--muted); display: flex; flex-wrap: wrap; font-size: 12px; gap: 8px; margin-bottom: 12px; }
    .observability-kpis { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
    .customer-metric-board-wrap {
      display: grid;
      gap: 12px;
      margin-top: 12px;
    }
    .board-head {
      align-items: start;
      display: flex;
      gap: 12px;
      justify-content: space-between;
    }
    .board-head h2 {
      font-size: 17px;
      margin: 0 0 4px;
    }
    .board-head p {
      color: var(--muted);
      margin: 0;
    }
    .customer-metric-board {
      background: oklch(0.965 0.010 100);
      border: 1px solid var(--line);
      border-radius: 18px;
      min-height: 760px;
      padding: 10px;
    }
    .customer-metric-board .grid-stack-placeholder > .placeholder-content {
      background: oklch(0.705 0.095 82 / 0.16);
      border: 1px dashed var(--gold);
      border-radius: 14px;
    }
    .customer-metric-board .grid-stack-item-content {
      inset: 5px !important;
    }
    .metric-widget {
      background: var(--panel);
      border: 1px solid var(--line);
      border-radius: 16px;
      box-shadow: 0 12px 34px oklch(0.245 0.025 125 / 0.07);
      display: grid;
      grid-template-rows: auto minmax(0, 1fr);
      min-width: 0;
      overflow: hidden;
      padding: 14px;
    }
    .metric-widget-head {
      align-items: start;
      display: flex;
      gap: 12px;
      justify-content: space-between;
      margin-bottom: 8px;
      min-width: 0;
    }
    .metric-widget-head h3 {
      color: var(--brand);
      font-size: 15px;
      margin: 0;
    }
    .metric-widget-head p {
      color: var(--muted);
      font-size: 12px;
      margin: 3px 0 0;
    }
    .metric-widget-head strong {
      color: var(--brand);
      font-family: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
      font-size: 18px;
      letter-spacing: -0.04em;
      white-space: nowrap;
    }
    .metric-widget-chart {
      min-height: 210px;
      min-width: 0;
      width: 100%;
    }
    .observability-grid { display: grid; gap: 12px; grid-template-columns: repeat(12, minmax(0, 1fr)); margin-top: 12px; }
    .observability-grid .chart-panel { grid-column: span 6; min-height: 330px; }
    .observability-grid .chart-panel:first-child,
    .observability-grid .chart-panel:nth-child(3) { grid-column: span 12; }
    .observation-toolbar { background: transparent; border: 0; border-radius: 0; padding: 0; }
    .chart-panel { min-width: 0; }
    .chart-panel .panel-head strong { color: var(--brand); font-family: "JetBrains Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
    .observation-chart { display: block; height: 230px; overflow: visible; width: 100%; }
    .chart-axis { stroke: var(--line); stroke-width: 1; }
    .chart-line { fill: none; stroke: var(--brand); stroke-linecap: round; stroke-linejoin: round; stroke-width: 3; }
    .chart-dot { fill: var(--gold); stroke: var(--panel); stroke-width: 2; }
    .chart-hit-target { cursor: crosshair; fill: transparent; }
    .chart-labels { color: var(--muted); display: flex; font-size: 12px; justify-content: space-between; margin-top: 4px; }
    .token-bars { align-items: end; display: grid; gap: 10px; grid-template-columns: repeat(12, minmax(34px, 1fr)); min-height: 230px; }
    .token-bar { align-items: center; color: var(--muted); display: grid; font-size: 11px; gap: 7px; justify-items: center; min-width: 0; }
    .token-bar-stack { align-items: end; display: flex; gap: 3px; height: 160px; }
    .token-bar-input, .token-bar-output { border-radius: 999px 999px 4px 4px; display: block; width: 10px; }
    .token-bar-input { background: var(--brand); }
    .token-bar-output { background: var(--gold); }
    .token-bar > span { max-width: 58px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .subnav { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
    .subnav button { background: var(--panel); border-color: var(--line); color: var(--muted); }
    .subnav button.active { background: var(--brand-soft); border-color: oklch(0.740 0.030 128); color: var(--brand); }
    .record-list { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
    .record-row { align-items: center; border-bottom: 1px solid oklch(0.865 0.012 100); display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr) auto; padding: 13px 14px; }
    .record-row:last-child { border-bottom: 0; }
    .record-row strong { display: block; font-size: 14px; margin-bottom: 3px; }
    .record-row span { color: var(--muted); display: block; font-size: 12px; line-height: 1.5; }
    .management-layout { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr) 320px; }
    .side-note { background: oklch(0.955 0.012 100); border: 1px solid var(--line); border-radius: 16px; color: var(--muted); font-size: 13px; line-height: 1.7; padding: 14px; }
    .org-switch { position: relative; }
    .org-switch-trigger { min-width: 190px; }
    .org-menu { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 18px 60px oklch(0.245 0.025 125 / 0.14); display: none; min-width: 0; padding: 10px; position: absolute; right: 0; top: calc(100% + 8px); width: min(340px, calc(100vw - 24px)); z-index: 30; }
    .org-menu.active { display: grid; gap: 6px; }
    .org-menu-head { align-items: center; display: flex; justify-content: space-between; padding: 6px 8px 10px; }
    .org-menu-head strong { font-size: 14px; }
    .org-menu-head span { color: var(--muted); font-size: 12px; }
    .org-menu-item { align-items: center; background: transparent; border-color: transparent; border-radius: 14px; display: grid; gap: 8px; grid-template-columns: 34px minmax(0, 1fr) auto; min-height: 58px; padding: 8px; text-align: left; width: 100%; }
    .org-menu-item:hover, .org-menu-item.active { background: var(--brand-soft); color: var(--brand); }
    .org-avatar { background: var(--brand); border-radius: 12px; color: oklch(0.985 0.006 95); display: grid; font-size: 13px; font-weight: 800; height: 34px; place-items: center; width: 34px; }
    .org-menu-item span, .org-card span { color: var(--muted); display: block; font-size: 12px; line-height: 1.5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .org-menu-item .org-avatar, .org-card .org-avatar { color: oklch(0.985 0.006 95); display: grid; font-size: 13px; place-items: center; }
    .org-workspace { display: grid; gap: 14px; grid-template-columns: minmax(260px, 300px) minmax(0, 1fr); max-width: 100%; }
    .org-rail { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; min-width: 0; overflow: hidden; }
    .org-rail-head { align-items: center; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; padding: 12px; }
    .org-list { display: grid; max-height: 520px; overflow: auto; padding: 8px; }
    .org-card { align-items: center; background: transparent; border: 1px solid transparent; border-radius: 14px; cursor: pointer; display: grid; gap: 10px; grid-template-columns: 38px minmax(0, 1fr); padding: 10px; text-align: left; }
    .org-card.active, .org-card:hover { background: var(--brand-soft); border-color: oklch(0.740 0.030 128); }
    .org-main { display: grid; gap: 14px; min-width: 0; }
    .org-summary { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr) auto; padding: 16px; }
    .org-summary h2 { font-size: 20px; letter-spacing: -0.02em; margin: 0 0 8px; }
    .context-line { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; }
    .copy-chip { align-items: center; background: oklch(0.958 0.010 100); border: 1px solid var(--line); border-radius: 999px; color: var(--text); display: inline-flex; font-size: 12px; gap: 6px; max-width: 100%; padding: 4px 8px; vertical-align: middle; }
    .copy-chip code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .copy-chip button { background: transparent; border: 0; color: var(--brand); min-height: 36px; min-width: 44px; padding: 0 8px; }
    .id-preview { align-items: center; color: var(--muted); display: inline-flex; font-size: 12px; gap: 6px; max-width: 100%; }
    .id-preview code { max-width: 128px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .id-preview button { background: transparent; border: 0; color: var(--brand); min-height: 36px; min-width: 44px; padding: 0 8px; }
    .billing-ledger-table table { min-width: 1060px; }
    .compact-table table { min-width: 760px; }
    .role-matrix { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
    .role-template-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
    .role-template-card { background: oklch(0.985 0.006 100); border: 1px solid var(--line); border-radius: 16px; display: grid; gap: 8px; padding: 12px; }
    .role-template-card strong { font-size: 14px; }
    .role-template-card p { color: var(--muted); font-size: 12px; line-height: 1.55; margin: 0; }
    .role-template-card code { color: var(--muted); font-size: 12px; }
    .permission-block { border-bottom: 1px solid var(--line); }
    .permission-block:last-child { border-bottom: 0; }
    .permission-block h3 { background: oklch(0.900 0.014 100); font-size: 14px; margin: 0; padding: 12px 14px; }
    .permission-row { align-items: center; border-top: 1px solid oklch(0.865 0.012 100); display: grid; gap: 10px; grid-template-columns: minmax(180px, 1fr) repeat(5, minmax(92px, 0.34fr)); padding: 10px 14px; }
    .permission-head { background: oklch(0.972 0.008 100); font-weight: 800; }
    .permission-row span { color: var(--muted); font-size: 12px; }
    .check-mark { color: var(--brand); font-weight: 900; }
    .deny-mark { color: var(--faint); }
    .kyc-hero { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr) 270px; padding: 16px; }
    .kyc-hero h2 { font-size: 20px; letter-spacing: -0.02em; margin: 0 0 8px; }
    .message { color: var(--danger); font-size: 13px; margin-top: 10px; min-height: 18px; }
    .loading { color: var(--muted); font-size: 13px; padding: 24px; }
    .hidden { display: none !important; }
    .panel,
    .journey-card,
    .capability-hero,
    .notice-toolbar,
    .notice-detail-head,
    .notice-detail-content,
    .request-detail-section,
    .chat-composer,
    .org-rail,
    .org-summary,
    .kyc-hero {
      border-radius: var(--radius-panel);
    }
    .action-card,
    .metric,
    .model-card,
    .request-detail-metric,
    .notice-meta-grid div,
    .role-template-card,
    .side-note,
    .empty,
    .detail-box,
    .evidence-card,
    .secret-box {
      border-radius: var(--radius-card);
      padding: 14px;
    }
    .range-trigger,
    .select-popover summary {
      min-height: var(--control-height);
      border-radius: var(--radius-control);
    }
    @media (max-width: 1320px) {
      .customer-log-filterbar { grid-template-columns: repeat(3, minmax(180px, 1fr)); }
      .filter-field-time { grid-column: span 2; }
      .filter-actions { justify-content: flex-start; }
    }
    @media (max-width: 900px) {
      .login-wrap, .login-grid { grid-template-columns: 1fr; }
      .login-promo { min-height: auto; padding: 30px 24px; }
      .login-promo h1 { font-size: 30px; max-width: none; }
      .login-panel { padding: 26px 18px; }
    }
    @media (max-width: 760px) {
      .shell { grid-template-columns: 1fr; }
      .sidebar { border-right: 0; border-bottom: 1px solid var(--line); }
      .content { padding: 16px 12px 28px; }
      .login-wrap, .login-grid, .metric-grid, .split, .form-grid, .model-grid, .chat-layout, .hero-strip, .quick-actions, .usage-summary, .log-summary-grid, .customer-log-filterbar, .doc-actions, .management-layout, .org-workspace, .org-summary, .notice-meta-grid, .kyc-hero, .capability-start-grid { grid-template-columns: 1fr; }
      .capability-hero { align-items: flex-start; flex-direction: column; }
      .notice-toolbar,
      .notice-detail-head { align-items: stretch; flex-direction: column; }
      .board-head { display: grid; }
      .customer-metric-board { min-height: 1120px; }
      .observability-grid { grid-template-columns: 1fr; }
      .observability-grid .chart-panel,
      .observability-grid .chart-panel:first-child,
      .observability-grid .chart-panel:nth-child(3) { grid-column: auto; }
      .topbar { align-items: stretch; flex-direction: column; }
      .top-actions { flex-wrap: wrap; justify-content: flex-start; }
      .account-switch { width: 100%; }
      .account-trigger { justify-content: flex-start; width: 100%; }
      .account-menu,
      .org-menu { left: 0; right: auto; width: calc(100vw - 24px); }
      .request-detail-drawer { width: 100vw; }
      .request-detail-head { padding: 18px 16px 14px; }
      .request-detail-body { padding: 14px 16px 22px; }
      .request-detail-metrics { grid-template-columns: 1fr; }
      .request-detail-row { align-items: start; grid-template-columns: 1fr; }
      .request-detail-row strong,
      .request-detail-row small { white-space: normal; }
      .filter-field-time { grid-column: auto; }
      .filter-actions { flex-wrap: wrap; justify-content: flex-start; }
      .filter-actions button { flex: 1 1 120px; }
      .doc-center-link { flex: 1 1 160px; }
      .nav { grid-template-columns: 1fr; }
    }


/* Toast notifications */
    .tp-toast-container {
      position: fixed;
      bottom: 24px;
      right: 24px;
      z-index: 9999;
      display: flex;
      flex-direction: column;
      gap: 10px;
      max-width: 400px;
      pointer-events: none;
    }
    .tp-toast {
      pointer-events: auto;
      padding: 14px 18px;
      border-radius: 12px;
      font-size: 13px;
      line-height: 1.5;
      box-shadow: 0 4px 20px oklch(0.365 0.060 128 / 0.14);
      animation: tp-toast-in 0.25s ease-out;
      display: flex;
      flex-direction: column;
      gap: 8px;
    }
    .tp-toast--error {
      background: oklch(0.525 0.095 35 / 0.12);
      border: 1px solid oklch(0.525 0.095 35 / 0.3);
      color: oklch(0.400 0.075 35);
    }
    .tp-toast--success {
      background: oklch(0.500 0.075 145 / 0.12);
      border: 1px solid oklch(0.500 0.075 145 / 0.25);
      color: oklch(0.300 0.050 145);
    }
    .tp-toast--warn {
      background: oklch(0.640 0.095 75 / 0.14);
      border: 1px solid oklch(0.640 0.095 75 / 0.3);
      color: oklch(0.380 0.060 75);
    }
    .tp-toast--info {
      background: oklch(0.515 0.035 230 / 0.12);
      border: 1px solid oklch(0.515 0.035 230 / 0.25);
      color: oklch(0.315 0.025 230);
    }
    .tp-toast-icon-row {
      display: flex;
      align-items: flex-start;
      gap: 10px;
    }
    .tp-toast-icon {
      flex-shrink: 0;
      width: 18px;
      height: 18px;
      margin-top: 1px;
    }
    .tp-toast-body {
      flex: 1;
      min-width: 0;
      white-space: pre-wrap;
      word-break: break-word;
    }
    .tp-toast-actions {
      display: flex;
      gap: 8px;
      justify-content: flex-end;
      align-items: center;
    }
    .tp-toast-copy {
      background: oklch(0.365 0.060 128);
      color: oklch(0.985 0.006 95);
      border: none;
      border-radius: 6px;
      padding: 4px 12px;
      font-size: 12px;
      cursor: pointer;
    }
    .tp-toast-copy:hover { opacity: 0.85; }
    .tp-toast-key {
      font-family: var(--font-mono, monospace);
      background: oklch(0.365 0.060 128 / 0.08);
      padding: 4px 8px;
      border-radius: 6px;
      font-size: 12px;
      overflow-wrap: break-word;
      word-break: normal;
      margin-top: 4px;
    }
    .tp-toast-dismiss {
      flex-shrink: 0;
      background: none;
      border: none;
      cursor: pointer;
      font-size: 16px;
      line-height: 1;
      padding: 0 2px;
      opacity: 0.5;
      color: inherit;
    }
    .tp-toast-dismiss:hover { opacity: 1; }
    @keyframes tp-toast-in {
      from { opacity: 0; transform: translateY(12px); }
      to { opacity: 1; transform: translateY(0); }
    }
    @keyframes tp-toast-out {
      from { opacity: 1; transform: translateY(0); }
      to { opacity: 0; transform: translateY(-8px); }
    }

/* Customer onboarding step cards */
.hero-head { margin-bottom: 4px; }
.hero-head h2 { font-size: 24px; font-weight: 850; color: var(--tp-olive-deep, #2f4024); margin: 0; }
.hero-head p { margin: 6px 0 0; color: var(--tp-text-muted, #687261); font-size: 14px; }

.tp-customer-onboarding-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.tp-onboarding-card {
  border: 1px solid var(--tp-border, #c8c2b2);
  border-radius: 16px;
  background: var(--tp-surface, #fffdf6);
  padding: 22px;
  display: grid;
  gap: 10px;
  transition: box-shadow 0.2s;
}

.tp-onboarding-card:hover {
  box-shadow: 0 18px 42px rgb(50 55 42 / 10%);
}

.tp-onboarding-card .step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--tp-olive-deep, #2f4024);
  color: #fffdf6;
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  font-weight: 800;
}

.tp-onboarding-card h4 {
  margin: 0;
  color: var(--tp-olive-deep, #2f4024);
  font-size: 16px;
}

.tp-onboarding-card p {
  margin: 0;
  color: var(--tp-text-muted, #687261);
  font-size: 13px;
  line-height: 1.6;
}

.tp-onboarding-card button,
.tp-onboarding-card .button-link {
  justify-self: start;
}


/* Announcement banner */
.announcement-banner {
  margin: 0 0 16px 0;
  padding: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #fff7e6 0%, #fff1cc 100%);
  border: 1px solid #f0c060;
}
.announcement-banner.hidden { display: none; }
.announcement-banner-inner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
}
.announcement-banner-icon {
  font-size: 18px;
  line-height: 1.4;
  flex-shrink: 0;
}
.announcement-banner-body {
  flex: 1;
  min-width: 0;
}
.announcement-banner-body strong {
  display: block;
  font-size: 14px;
  color: #5a3e02;
}
.announcement-banner-body span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: #8a6d2b;
  line-height: 1.5;
}
.announcement-banner-close {
  flex-shrink: 0;
  font-size: 18px;
  color: #8a6d2b;
  opacity: 0.7;
}
.announcement-banner-close:hover { opacity: 1; }

.credential-choice-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  max-height: 260px;
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--tp-border, #c8c2b2);
  border-radius: 16px;
  background: rgb(255 253 246 / 70%);
}

.credential-choice-panel.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}

.checkbox-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--tp-border, #c8c2b2);
  border-radius: 14px;
  background: #fffdf6;
}

.checkbox-card input {
  margin-top: 4px;
}

.checkbox-card span {
  display: grid;
  gap: 2px;
}

.checkbox-card small,
.secret-output {
  overflow-wrap: break-word;
  word-break: normal;
}

.secret-output {
  display: block;
  margin: 8px 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgb(47 64 36 / 8%);
}
