:root {
  color-scheme: light;
  --ink: #17231d;
  --muted: #78847e;
  --soft: #a3ada7;
  --line: #e4ebe6;
  --paper: #fff;
  --canvas: #f7f9f8;
  --green: #15744d;
  --green-2: #eaf5ee;
  --blue: #546fbd;
  --amber: #a87220;
  --red: #b44d46;
  --shadow: 0 10px 26px rgba(18, 43, 31, .045);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--canvas); color: var(--ink); font-size: 14px; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }
a { color: inherit; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 242px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 24px 15px 18px; background: var(--paper); border-right: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 10px; color: #14231a; font-size: 18px; font-weight: 780; letter-spacing: -.7px; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 10px; color: #b9efd2; background: #17452f; }
.brand-mark svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sidebar-label { margin: 36px 11px 9px; color: #a0aaa4; font-size: 10px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.side-nav { display: grid; gap: 5px; }
.nav-link { display: flex; align-items: center; gap: 11px; width: 100%; border: 0; border-radius: 8px; padding: 10px 11px; background: transparent; color: #65726b; text-align: left; font-size: 12.5px; transition: background .14s, color .14s; }
.nav-link:hover { background: #f5f8f6; color: var(--ink); }
.nav-link.active { background: #edf6f0; color: #176c48; font-weight: 670; }
.nav-icon { width: 18px; color: #88958e; font-size: 16px; text-align: center; }
.nav-link.active .nav-icon { color: var(--green); }
.nav-count { margin-left: auto; color: #98a39c; font-size: 10px; }
.sidebar-bottom { margin-top: auto; }
.vault-card { border: 1px solid var(--line); border-radius: 10px; padding: 13px; background: #fbfcfb; }
.vault-card-top { display: flex; align-items: center; gap: 8px; color: #34443a; font-size: 11px; }
.vault-dot { width: 7px; height: 7px; border-radius: 50%; background: #ad8b4e; box-shadow: 0 0 0 3px rgba(173,139,78,.11); }
.vault-dot.unlocked { background: #2b9a65; box-shadow: 0 0 0 3px rgba(43,154,101,.11); }
.vault-card p { margin: 9px 0 12px; color: #8a958f; font-size: 10px; line-height: 1.55; }
.sidebar-foot { padding: 15px 6px 0; color: #a0aaa4; font-size: 9px; }
.main-content { min-width: 0; }
.topbar { height: 65px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 32px; background: rgba(255,255,255,.88); border-bottom: 1px solid var(--line); }
.breadcrumb { display: flex; align-items: center; gap: 9px; color: #929d96; font-size: 11px; }
.breadcrumb strong { color: #29372f; font-weight: 650; }
.breadcrumb-sep { color: #c7cec9; }
.topbar-actions, .heading-actions { display: flex; align-items: center; gap: 9px; }
.sync-label { color: #9aa49e; font-size: 10px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 34px; padding: 8px 12px; border: 1px solid transparent; border-radius: 8px; font-size: 11px; font-weight: 650; white-space: nowrap; transition: background .14s, border-color .14s, transform .14s; }
.button:active:not(:disabled) { transform: translateY(1px); }
.button-primary { background: #18774f; color: #fff; box-shadow: 0 2px 5px rgba(24,119,79,.12); }
.button-primary:hover:not(:disabled) { background: #116541; }
.button-outline { border-color: var(--line); background: #fff; color: #526057; }
.button-outline:hover:not(:disabled) { border-color: #cad8cf; background: #fbfcfb; }
.button-small { min-height: 28px; padding: 6px 9px; font-size: 10px; }
.page-wrap { width: min(1480px, 100%); margin: 0 auto; padding: 24px 32px 36px; }
.trust-banner { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; padding: 10px 13px; border: 1px solid #dcebe1; border-radius: 8px; background: #f1f8f3; color: #5c7464; font-size: 10.5px; line-height: 1.5; }
.trust-banner strong { color: #2b6546; }
.trust-icon { color: #478263; font-size: 16px; }
.banner-link { margin-left: auto; padding: 3px 0 3px 10px; border: 0; background: transparent; color: #26744f; font-size: 10px; font-weight: 650; white-space: nowrap; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.eyebrow { margin-bottom: 8px; color: #7d8a82; font-size: 9px; font-weight: 750; letter-spacing: .14em; }
h1 { margin: 0; color: #1a2920; font-size: clamp(24px, 2.2vw, 31px); font-weight: 720; letter-spacing: -1px; line-height: 1.15; }
.page-subtitle { margin: 8px 0 0; color: #7c8881; font-size: 12px; line-height: 1.6; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 15px; }
.metric-card { min-height: 110px; padding: 14px 15px 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); box-shadow: var(--shadow); }
.metric-top { display: flex; align-items: center; justify-content: space-between; color: #748078; font-size: 10.5px; }
.metric-symbol { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 8px; background: #f1f7f3; color: #408363; font-size: 16px; }
.deploy-symbol { color: #5871b4; background: #f1f3fa; }
.db-symbol { color: #2e9a6d; }
.account-symbol { color: #7a6caf; background: #f5f2fa; }
.metric-value { display: block; margin-top: 8px; color: #1b2b21; font-size: 25px; font-weight: 730; letter-spacing: -.8px; }
.metric-note { display: block; margin-top: 3px; color: #9aa49e; font-size: 9px; }
.view-panel { display: none; }
.view-panel.active { display: block; }
.overview-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 14px; align-items: start; }
.panel { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); box-shadow: var(--shadow); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; padding: 13px 15px; border-bottom: 1px solid #edf1ee; }
.panel-heading h2, .section-toolbar h2 { margin: 0; color: #29372f; font-size: 12px; font-weight: 720; }
.panel-heading p, .section-toolbar p { margin: 4px 0 0; color: #95a098; font-size: 9.5px; }
.inline-link { border: 0; padding: 4px; background: transparent; color: #26734d; font-size: 10px; font-weight: 650; white-space: nowrap; }
.inline-link:hover { color: #124f33; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
thead th { padding: 9px 12px; color: #a0aaa4; font-size: 8px; font-weight: 740; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
tbody td { padding: 10px 12px; border-top: 1px solid #f0f3f1; color: #68766e; font-size: 9.5px; white-space: nowrap; }
tbody tr:hover { background: #fbfcfb; }
.project-name-cell { display: flex; align-items: center; gap: 8px; }
.project-glyph { display: grid; place-items: center; flex: 0 0 auto; width: 25px; height: 25px; border: 1px solid #e8ede9; border-radius: 7px; color: #202d25; font-size: 13px; }
.project-glyph.supabase { color: #25895f; }
.project-title { color: #2d3b33; font-weight: 670; }
.project-detail { display: block; margin-top: 3px; color: #a0aaa4; font-size: 8px; }
.account-pill { display: inline-block; max-width: 150px; overflow: hidden; color: #65736a; text-overflow: ellipsis; vertical-align: bottom; }
.status-pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 999px; background: #f0f6f2; color: #327454; font-size: 8.5px; font-weight: 650; }
.status-pill::before { width: 5px; height: 5px; border-radius: 50%; background: currentColor; content: ""; }
.status-pill.warning { background: #fff7e9; color: #a46f1d; }
.status-pill.error { background: #fff0ee; color: #b24e45; }
.status-pill.neutral { background: #f3f5f4; color: #77847c; }
.project-link { color: #357653; font-size: 9px; text-decoration: none; }
.project-link:hover { text-decoration: underline; }
.project-manage-button { margin-right: 9px; border: 0; padding: 4px 7px; border-radius: 5px; background: #edf6f0; color: #23724d; font-size: 9px; font-weight: 680; }
.project-manage-button:hover { background: #e2f0e7; }
.empty-state { display: grid; justify-items: center; gap: 8px; padding: 32px 20px; color: #89968f; text-align: center; }
.empty-state[hidden] { display: none; }
.empty-state strong { color: #49584f; font-size: 11px; font-weight: 700; }
.empty-state span:not(.empty-glyph) { max-width: 365px; font-size: 9.5px; line-height: 1.55; }
.empty-glyph { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #e8eee9; border-radius: 10px; color: #638473; font-size: 17px; }
.empty-state .button { margin-top: 7px; }
.activity-panel { margin-top: 14px; }
.deployment-list { display: grid; padding: 2px 15px 6px; }
.deployment-item { display: flex; align-items: center; gap: 10px; min-height: 47px; border-bottom: 1px solid #f0f3f1; }
.deployment-item:last-child { border-bottom: 0; }
.deployment-mark { display: grid; place-items: center; flex: 0 0 auto; width: 25px; height: 25px; border-radius: 7px; background: #f0f5f2; color: #4c8064; font-size: 12px; }
.deployment-copy { min-width: 0; flex: 1; }
.deployment-title { overflow: hidden; color: #3e4b43; font-size: 9.5px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.deployment-sub { margin-top: 3px; overflow: hidden; color: #9aa49e; font-size: 8.5px; text-overflow: ellipsis; white-space: nowrap; }
.deployment-meta { display: flex; align-items: center; gap: 12px; }
.deployment-time { color: #9aa49e; font-size: 8.5px; white-space: nowrap; }
.section-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 12px; }
.toolbar-controls { display: flex; align-items: center; gap: 8px; }
.search-input { width: min(240px, 45vw); min-height: 34px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; outline: none; background: #fff; color: var(--ink); font-size: 10px; }
.search-input:focus, .field-input:focus { border-color: #a3cdb3; box-shadow: 0 0 0 3px rgba(31,135,83,.09); }
.wide-table { min-width: 690px; }
.subpanel { margin-top: 14px; }
.compact-empty { padding-top: 20px; padding-bottom: 22px; }
.account-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.account-card { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: var(--shadow); }
.account-card-icon { display: grid; place-items: center; flex: 0 0 auto; width: 31px; height: 31px; border: 1px solid #e8ede9; border-radius: 8px; color: #202d25; font-size: 15px; }
.account-card-icon.supabase { color: #29885f; }
.account-card-main { min-width: 0; flex: 1; }
.account-card-title { overflow: hidden; color: #344239; font-size: 11px; font-weight: 680; text-overflow: ellipsis; white-space: nowrap; }
.account-card-meta { margin-top: 4px; color: #8e9a93; font-size: 9px; }
.account-card-state { display: inline-flex; align-items: center; gap: 5px; margin-top: 9px; color: #397654; font-size: 8.5px; }
.account-card-state::before { width: 5px; height: 5px; border-radius: 50%; background: #4da674; content: ""; }
.account-remove { border: 0; padding: 5px; background: transparent; color: #a1aaa4; font-size: 9px; }
.account-remove:hover { color: var(--red); }
.account-empty { margin-top: 3px; border: 1px dashed #dce5de; border-radius: 10px; background: rgba(255,255,255,.45); }
.account-empty[hidden] { display: none; }
.connection-guide { margin-top: 15px; }
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; padding: 16px; }
.guide-number { color: #3e8b63; font-size: 9px; font-weight: 750; letter-spacing: .08em; }
.guide-grid h3 { margin: 7px 0 5px; color: #3c4a41; font-size: 10.5px; }
.guide-grid p { margin: 0; color: #89958e; font-size: 9px; line-height: 1.55; }
.guide-links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 12px 16px; border-top: 1px solid #edf1ee; }
.guide-links a { color: #2d7752; font-size: 9px; text-decoration: none; }
.guide-links a:hover { text-decoration: underline; }
.danger-link { color: #a34a45; }
.provider-errors { display: grid; gap: 7px; margin-top: 12px; }
.provider-error { padding: 9px 12px; border: 1px solid #f0d5d1; border-radius: 8px; background: #fff7f6; color: #92534d; font-size: 9px; }
.page-footer { display: flex; justify-content: space-between; gap: 16px; margin-top: 20px; color: #a1aaa4; font-size: 8.5px; }
.modal { width: min(480px, calc(100vw - 28px)); max-height: min(90vh, 760px); padding: 0; border: 1px solid #dfe7e1; border-radius: 13px; background: #fff; color: var(--ink); box-shadow: 0 22px 70px rgba(17,40,28,.2); }
.wide-modal { width: min(820px, calc(100vw - 28px)); }
.manager-body { max-height: min(78vh, 760px); overflow-y: auto; }
.modal::backdrop { background: rgba(19,35,26,.34); backdrop-filter: blur(3px); }
.narrow-modal { width: min(420px, calc(100vw - 28px)); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 20px 13px; border-bottom: 1px solid #edf1ee; }
.modal-head .eyebrow { margin-bottom: 6px; }
.modal-head h2 { margin: 0; color: #26362c; font-size: 16px; letter-spacing: -.35px; }
.icon-close { width: 28px; height: 28px; border: 0; border-radius: 7px; background: transparent; color: #89958e; font-size: 20px; }
.icon-close:hover { background: #f3f6f4; color: #344239; }
.modal-body { padding: 16px 20px 18px; }
.field-label { display: block; margin: 12px 0 6px; color: #56645b; font-size: 10px; font-weight: 650; }
.field-input { display: block; width: 100%; min-height: 37px; padding: 9px 10px; border: 1px solid #dfe7e1; border-radius: 7px; outline: none; background: #fff; color: #27352c; font-size: 11px; }
.field-input::placeholder { color: #a6b0aa; }
.field-help { margin-top: 6px; color: #8d9992; font-size: 9px; line-height: 1.55; }
.optional-field { margin-top: 4px; }
.modal-error { min-height: 0; margin-top: 8px; color: #a34d45; font-size: 9px; line-height: 1.5; }
.modal-error:empty { display: none; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
.modal-footnote { margin: 13px 0 0; color: #9aa49e; font-size: 8.5px; line-height: 1.55; }
.manager-subtitle { margin: 5px 0 0; color: #8b978f; font-size: 9px; }
.manager-top-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 13px; }
.manager-notice { margin: 0 0 12px; padding: 9px 11px; border: 1px solid #d7e9dd; border-radius: 7px; background: #f3faf5; color: #3d6b4d; font-size: 9px; line-height: 1.55; overflow-wrap: anywhere; }
.manager-section { margin-top: 12px; padding: 13px; border: 1px solid #e7ede8; border-radius: 9px; background: #fff; }
.manager-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.manager-section-heading h3, .manager-danger-zone h3 { margin: 0; color: #35443a; font-size: 11px; }
.manager-section-heading p, .manager-danger-zone p { margin: 4px 0 0; color: #8c9890; font-size: 8.5px; line-height: 1.5; }
.manager-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 11px; }
.manager-field { display: grid; gap: 5px; color: #66736a; font-size: 9px; font-weight: 650; }
.manager-field .field-input { min-height: 32px; font-size: 9px; }
.manager-form-actions { display: flex; grid-column: 1 / -1; justify-content: flex-end; gap: 7px; }
.env-form-grid { margin-top: 12px; padding-top: 10px; border-top: 1px solid #edf1ee; }
.manager-table { min-width: 510px; }
.manager-table thead th { padding: 7px 9px; }
.manager-table tbody td { padding: 8px 9px; font-size: 9px; }
.manager-row-actions { display: flex; gap: 5px; }
.manager-row-button { border: 0; padding: 4px 6px; border-radius: 5px; background: #f2f6f3; color: #347451; font-size: 8px; font-weight: 650; }
.manager-row-button:hover { background: #e7f1ea; }
.manager-row-button.danger { background: #fff3f1; color: #a34840; }
.manager-empty { padding: 12px 8px; color: #9aa49e; font-size: 9px; text-align: center; }
.manager-inline-form { display: flex; align-items: flex-end; gap: 9px; margin-top: 12px; }
.manager-inline-form .manager-field { flex: 1; min-width: 0; }
.manager-deployment-list { padding: 0; }
.manager-deployment-item { flex-wrap: wrap; gap: 7px; padding: 7px 0; }
.manager-deployment-actions { display: flex; gap: 5px; align-items: center; }
.manager-danger-zone { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-color: #f0d9d6; background: #fffaf9; }
.button-danger { border-color: #efd6d3; background: #fff5f3; color: #a1443d; }
.button-danger:hover:not(:disabled) { background: #ffebe8; }
.manager-error { margin: 10px 2px 0; }
.vault-intro { margin: 0 0 9px; color: #758279; font-size: 10px; line-height: 1.55; }
.db-modal { width: min(1180px, calc(100vw - 28px)); }
.db-modal-body { max-height: min(82vh, 900px); overflow: auto; }
.db-safety-note { padding: 10px 12px; border: 1px solid #dcebe1; border-radius: 8px; background: #f3f9f4; color: #587262; font-size: 9px; line-height: 1.55; }
.db-safety-note strong { color: #256543; }
.db-error { margin: 8px 2px 0; }
.db-layout { display: grid; grid-template-columns: minmax(190px, 245px) minmax(0, 1fr); gap: 13px; margin-top: 12px; align-items: start; }
.db-table-pane, .db-main { min-width: 0; border: 1px solid #e7ede8; border-radius: 9px; background: #fff; }
.db-table-pane { padding: 11px; }
.db-pane-heading, .db-content-heading { display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.db-pane-heading h3, .db-content-heading h3 { margin: 0; color: #35443a; font-size: 11px; }
.db-pane-heading p, .db-content-heading p { margin: 4px 0 0; color: #8c9890; font-size: 8.5px; line-height: 1.5; }
.db-table-search { width: 100%; min-height: 30px; margin: 9px 0; font-size: 9px; }
.db-table-list { display: grid; gap: 4px; max-height: 520px; overflow: auto; }
.db-table-item { display: flex; justify-content: space-between; gap: 7px; width: 100%; border: 0; border-radius: 6px; padding: 7px 8px; background: transparent; color: #59685f; text-align: left; font-size: 8.5px; }
.db-table-item:hover { background: #f5f8f6; }
.db-table-item.active { background: #edf6f0; color: #216d49; font-weight: 680; }
.db-table-item span:last-child { flex: 0 0 auto; color: #9aa49e; font-size: 8px; }
.db-main { overflow: hidden; }
.db-content-heading { min-height: 55px; padding: 11px 12px; border-bottom: 1px solid #edf1ee; }
.db-pager { display: flex; align-items: center; gap: 7px; color: #8b978f; font-size: 8px; white-space: nowrap; }
.db-data-wrap, .db-query-result-wrap { overflow: auto; }
.db-data-table { min-width: 100%; width: max-content; max-width: none; }
.db-data-table thead th { position: sticky; top: 0; z-index: 1; background: #fbfcfb; }
.db-data-table tbody td { max-width: 320px; overflow: hidden; text-overflow: ellipsis; vertical-align: top; }
.db-query-section { margin: 12px; padding: 11px; border: 1px solid #e7ede8; border-radius: 8px; background: #fcfdfc; }
.db-query-section .db-pane-heading { margin-bottom: 8px; }
.readonly-tag { margin-left: 5px; border-radius: 999px; padding: 3px 6px; background: #eff6f1; color: #367550; font-size: 7px; vertical-align: middle; }
.db-sql-input { display: block; width: 100%; min-height: 125px; resize: vertical; border: 1px solid #dfe7e1; border-radius: 7px; padding: 10px; outline: none; background: #fbfcfb; color: #2c3c31; font: 10px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.db-sql-input:focus { border-color: #a3cdb3; box-shadow: 0 0 0 3px rgba(31,135,83,.09); }
.db-query-actions { display: flex; align-items: center; gap: 10px; margin: 8px 0; }
.db-query-actions span { color: #8b978f; font-size: 8px; line-height: 1.5; }
.db-query-result-wrap { max-height: 230px; border: 1px solid #edf1ee; border-radius: 6px; background: #fff; }
.db-query-result-wrap .db-data-table tbody td { max-width: 220px; }
.db-table-pane .manager-empty, .db-data-wrap .manager-empty, .db-query-result-wrap .manager-empty { font-size: 8.5px; }
.toast { position: fixed; right: 22px; bottom: 20px; z-index: 10; max-width: min(390px, calc(100vw - 32px)); padding: 11px 14px; border: 1px solid #d6e7db; border-radius: 9px; background: #fff; box-shadow: 0 12px 32px rgba(23,48,35,.14); color: #355b43; font-size: 10px; opacity: 0; pointer-events: none; transform: translateY(8px); transition: .2s ease; }
.toast.show { opacity: 1; transform: translateY(0); }
[hidden] { display: none !important; }
@media (max-width: 1100px) {
  .app-shell { grid-template-columns: 210px minmax(0, 1fr); }
  .topbar { padding: 0 23px; }
  .page-wrap { padding: 22px 23px 30px; }
  .overview-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; padding: 12px 14px 9px; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { padding: 0 2px; }
  .sidebar-label, .sidebar-bottom { display: none; }
  .side-nav { display: flex; gap: 5px; margin-top: 12px; overflow-x: auto; }
  .nav-link { flex: 0 0 auto; width: auto; padding: 8px 10px; font-size: 10px; }
  .nav-count { display: none; }
  .topbar { height: 55px; padding: 0 15px; }
  .sync-label { display: none; }
  .page-wrap { padding: 16px 15px 26px; }
  .trust-banner { align-items: flex-start; font-size: 9px; }
  .banner-link { display: none; }
  .page-heading { align-items: flex-start; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .metric-card { min-height: 97px; padding: 11px; }
  .metric-value { font-size: 22px; }
  .account-grid { grid-template-columns: 1fr; }
  .guide-grid { grid-template-columns: 1fr; gap: 13px; }
  .page-footer { flex-direction: column; gap: 5px; }
  .db-modal { width: calc(100vw - 18px); max-height: 94vh; }
  .db-modal-body { max-height: 85vh; padding: 12px; }
  .db-layout { grid-template-columns: 1fr; }
  .db-table-list { max-height: 190px; }
}
@media (max-width: 480px) {
  .topbar-actions { gap: 6px; }
  .topbar .button { min-height: 31px; padding: 7px 8px; font-size: 9px; }
  .heading-actions { display: none; }
  .trust-banner { margin-bottom: 18px; }
  .metric-grid { gap: 7px; }
  .metric-note { font-size: 8px; }
  .section-toolbar { align-items: flex-start; flex-direction: column; }
  .search-input { width: 100%; }
  .toolbar-controls { width: 100%; }
  .toolbar-controls .search-input { min-width: 0; flex: 1; }
  .manager-form-grid { grid-template-columns: 1fr; }
  .manager-form-actions { grid-column: auto; }
  .manager-inline-form { align-items: stretch; flex-direction: column; }
  .manager-danger-zone { align-items: flex-start; flex-direction: column; }
  .guide-links { align-items: flex-start; flex-direction: column; gap: 9px; }
  .db-content-heading { align-items: flex-start; flex-direction: column; }
  .db-query-actions { align-items: flex-start; flex-direction: column; }
  .db-pager { width: 100%; justify-content: space-between; }
}

.auth-screen { min-height: 100vh; display: grid; grid-template-columns: minmax(320px, .92fr) minmax(460px, 1.08fr); background: #fff; }
.auth-visual { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 100vh; overflow: hidden; padding: 31px clamp(30px, 5vw, 74px) 26px; background: radial-gradient(ellipse at 18% 82%, rgba(63,138,95,.32), transparent 43%), linear-gradient(148deg, #143a29 0%, #102e21 52%, #163d2c 100%); color: #fff; }
.auth-visual::after { position: absolute; right: -155px; bottom: 100px; width: 420px; height: 420px; border: 1px solid rgba(214,246,226,.12); border-radius: 50%; box-shadow: 0 0 0 44px rgba(214,246,226,.025), 0 0 0 88px rgba(214,246,226,.02); content: ""; pointer-events: none; }
.auth-visual-brand { position: relative; z-index: 1; color: #f5fff8; }
.auth-visual-brand .brand-mark { background: #bce9cc; color: #16412d; }
.auth-visual-copy { position: relative; z-index: 1; max-width: 500px; margin: auto 0; padding: 55px 0; }
.auth-eyebrow { color: #abd6bc; font-size: 9px; font-weight: 760; letter-spacing: .18em; }
.auth-visual-copy h1 { margin: 18px 0 13px; color: #f3fbf5; font-size: clamp(36px, 4.1vw, 57px); font-weight: 690; letter-spacing: -2.2px; line-height: 1.06; }
.auth-visual-copy h1 span { color: #a8d9b9; }
.auth-visual-copy p { max-width: 390px; margin: 0; color: #c2d6ca; font-size: 13px; line-height: 1.75; }
.auth-provider-chips { display: flex; gap: 9px; margin-top: 29px; }
.auth-provider-chips span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid rgba(226,246,233,.19); border-radius: 8px; background: rgba(255,255,255,.055); color: #e5f1e9; font-size: 10px; }
.auth-provider-chips b { color: #b5e2c5; font-size: 13px; }
.auth-visual-foot, .auth-side-foot { color: #aac1b1; font-size: 9px; }
.auth-side { display: grid; place-items: center; min-height: 100vh; padding: 40px 24px 28px; background: #fff; }
.auth-card { width: min(100%, 390px); padding: 14px 0; }
.auth-card-mark { margin-bottom: 25px; }
.auth-card-mark .brand-mark { width: 37px; height: 37px; }
.auth-card-mark .brand-mark svg { width: 21px; height: 21px; }
.auth-card .eyebrow { margin-bottom: 7px; color: #438062; }
.auth-card h2 { margin: 0; color: #1a2920; font-size: 25px; font-weight: 720; letter-spacing: -.8px; }
.auth-subtitle { margin: 9px 0 21px; color: #7c8881; font-size: 11px; line-height: 1.65; }
.auth-card .field-label { margin-top: 13px; font-size: 10px; }
.auth-card .field-input { min-height: 42px; font-size: 11px; }
.auth-forgot { display: block; margin: 10px 0 16px auto; border: 0; padding: 2px 0; background: transparent; color: #26744f; font-size: 9.5px; font-weight: 650; }
.auth-forgot:hover, .auth-switch button:hover { color: #124f33; text-decoration: underline; }
.auth-submit { width: 100%; min-height: 42px; margin-top: 9px; font-size: 11px; }
.auth-switch { display: flex; justify-content: center; gap: 5px; margin-top: 19px; color: #87938b; font-size: 9.5px; }
.auth-switch button { border: 0; padding: 0; background: transparent; color: #26744f; font-size: inherit; font-weight: 680; }
.auth-privacy { margin: 25px 0 0; padding-top: 15px; border-top: 1px solid #edf1ee; color: #98a29c; font-size: 8.5px; line-height: 1.6; text-align: center; }
.auth-message { margin: 11px 0; padding: 9px 10px; border: 1px solid; border-radius: 7px; font-size: 9.5px; line-height: 1.5; }
.auth-error { border-color: #f0d5d1; background: #fff7f6; color: #92534d; }
.auth-notice { border-color: #dcebe1; background: #f1f8f3; color: #356d4d; }
.auth-side-foot { align-self: end; margin-top: 28px; color: #a1aaa4; text-align: center; }
.session-email { max-width: 190px; overflow: hidden; color: #7b8880; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 760px) {
  .auth-screen { grid-template-columns: 1fr; min-height: 100vh; background: #f7f9f8; }
  .auth-visual { display: none; }
  .auth-side { min-height: 100vh; align-content: center; padding: 24px 22px; background: transparent; }
  .auth-card { width: min(100%, 410px); padding: 24px 22px; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: var(--shadow); }
  .auth-side-foot { display: none; }
  .session-email { display: none; }
}
@media (max-width: 480px) {
  .auth-side { padding: 14px; }
  .auth-card { padding: 20px 18px; }
}
