:root { --font: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; --size: 14px; --foreground: #26332e; --background: #fff; --surface: #f7f9f8; --border: #e1e7e3; --primary: #2c624d; --border-radius: 6px; --mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
[hidden] { display: none !important; }
a { text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; }
button:disabled, select:disabled { opacity: .45; cursor: not-allowed; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 1px solid #5a987a; }
.input { min-width: 0; background: white; padding: 10px 12px; }
.input:focus { border-color: #659d80; box-shadow: 0 0 0 3px #5a987a15; }
.label { font-weight: 550; font-size: 12px; color: #56645d; margin-bottom: 7px; }
.label .muted { font-weight: 400; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 10px 15px; font-weight: 550; white-space: nowrap; border: 1px solid transparent; line-height: 1.4; text-decoration: none !important; }
.button.primary, .button.primary:visited { background: var(--primary); color: white; box-shadow: 0 1px 2px #16322315; }
.button.primary:hover:not(:disabled) { background: #224b3b; }
.button.secondary, .button.secondary:visited { background: white; color: #42524a; border-color: var(--border); }
.button.secondary:hover:not(:disabled) { background: var(--surface); border-color: #afbeb5; }
.button.small { padding: 7px 10px; font-size: 12px; }
.text-button { color: var(--primary); border: 0; background: none; cursor: pointer; padding: 0; font-size: 13px; }
.text-button:hover { text-decoration: underline; }
.text-button.text-body { font-size: var(--size); }
.danger { color: #a63b36; }
.muted, .help { color: #78867e; }
.mono { font-family: var(--mono); font-size: 13px; }
.app-header { height: 60px; padding: 0 25px; display: flex; align-items: center; gap: 20px; border-bottom: 1px solid var(--border); flex-shrink: 0; background: white; }
.brand, .brand:visited { font-size: 24px; font-weight: 750; color: #253c30; letter-spacing: -1.3px; text-decoration: none; }
.brand-dot { color: #63a180; }
.tenant-name { border: 0; border-left: 1px solid var(--border); padding-left: 20px; color: #78867e; background: transparent; min-width: 0; max-width: 30vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.app-header nav { margin-left: auto; display: flex; align-items: center; gap: 25px; height: 100%; }
.app-header nav > a { color: #6f7b74; height: 100%; display: flex; align-items: center; font-size: 13px; }
.app-header nav > a[aria-current] { color: var(--primary); box-shadow: inset 0 -2px var(--primary); }
.user-name { min-width: 0; max-width: 180px; }
.page-container { max-width: 1060px; margin: 0 auto; padding: 40px 28px 70px; }
h1 { margin: 0 0 24px; font-size: 28px; font-weight: 650; letter-spacing: -.6px; }
h2 { font-size: 17px; font-weight: 600; margin: 0; }
.eyebrow { color: #8a958e; font-size: 10px; letter-spacing: 1.7px; font-weight: 650; margin: 0 0 12px; }
.settings-title { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 24px; }
.settings-title h1 { margin: 0; }
.settings-nav { display: flex; gap: 28px; border-bottom: 1px solid var(--border); margin-bottom: 30px; }
.settings-nav a { padding: 0 0 13px; color: #7a867f; }
.settings-nav a[aria-current] { color: var(--primary); box-shadow: 0 2px var(--primary); font-weight: 550; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin: 0 0 18px; }
.section-heading p { margin: 0; font-size: 13px; }
.table-card { border: 1px solid var(--border); border-radius: 8px; overflow: auto; }
.settings-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; white-space: nowrap; }
.settings-table th { background: var(--surface); color: #78867e; font-size: 11px; font-weight: 550; padding: 13px 18px; }
.settings-table td { border-top: 1px solid var(--border); padding: 17px 18px; }
.settings-table th.actions { width: 1%; }
.settings-table .audit-sql { width: 260px; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.settings-table .table-empty { padding: 46px 20px; text-align: center; color: #7c8981; white-space: normal; }
.row-actions { display: flex; align-items: center; gap: 18px; }
.badge { border: 1px solid var(--border); background: var(--surface); border-radius: 4px; padding: 3px 7px; font-size: 11px; }
.count { font-size: 12px; padding: 2px 7px; color: #78867e; background: #f1f4f2; border-radius: 5px; margin-left: 5px; }
.invitations-heading { margin-top: 45px; }
.settings-form { max-width: 720px; }
.settings-form.narrow { max-width: 460px; }
.settings-form label { display: block; margin-bottom: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.help { font-size: 12px; line-height: 1.75; margin: -8px 0 22px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 24px; }
.ssh-fieldset { border: 1px solid var(--border); border-radius: 8px; padding: 20px 22px 5px; margin: 30px 0 0; }
.ssh-fieldset legend { padding: 0 8px; }
.ssh-fieldset legend label { margin: 0; display: flex; gap: 8px; align-items: center; }
.alert.error { color: #a23630; background: #fff3f1; border: 1px solid #f0d8d2; }
.alert.success { color: #2c624d; background: #edf7ef; border: 1px solid #d7e9db; }
.auth-card { max-width: 470px; margin: 70px auto; line-height: 1.7; }
.workspace-page { height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
.workspace-container { flex: 1; min-height: 0; }
.workspace { height: 100%; display: grid; grid-template-columns: 252px minmax(0,1fr); }
.explorer { min-height: 0; display: flex; flex-direction: column; border-right: 1px solid var(--border); background: #f9fbf9; }
.sidebar-tabs { display: flex; padding: 13px 12px 0; border-bottom: 1px solid var(--border); gap: 6px; }
.sidebar-tabs button { border: 0; background: none; color: #829087; font-size: 12px; padding: 10px 7px 16px; cursor: pointer; white-space: nowrap; }
.sidebar-tabs button[aria-selected="true"] { color: var(--primary); font-weight: 600; box-shadow: 0 2px var(--primary); }
.sidebar-panel { flex: 1; min-height: 0; overflow: auto; }
.sidebar-content { padding: 18px 12px; font-size: 12px; }
.sidebar-content > .muted { padding: 0 6px; line-height: 1.7; }
.sidebar-settings { font-size: 12px; color: #64796b; border-top: 1px solid var(--border); padding: 17px 20px; display: flex; justify-content: space-between; }
.schema-search { position: sticky; top: 0; z-index: 1; padding: 14px 12px 0; background: #f9fbf9; font-size: 12px; }
.schema-search .input { font-size: 12px; }
.schema-table { margin-bottom: 3px; }
.schema-table summary { padding: 9px 6px; cursor: pointer; overflow-wrap: anywhere; font-family: var(--mono); font-size: 11px; color: #52665a; }
.schema-table summary:hover { background: #eff3ef; border-radius: 5px; }
.schema-columns { border-left: 1px solid #dce5de; margin: 2px 0 12px 11px; padding-left: 13px; }
.schema-column { display: flex; align-items: baseline; gap: 8px; padding: 6px 0; font-size: 11px; overflow-wrap: anywhere; }
.schema-column code { font-family: var(--mono); flex: 1; min-width: 0; }
.schema-column span { color: #8d998f; font-size: 10px; text-align: right; min-width: 0; max-width: 50%; }
.query-list { margin-top: 14px; }
.query-item { display: block; width: 100%; border: 1px solid transparent; border-radius: 6px; text-align: left; padding: 12px 9px; background: none; cursor: pointer; color: #53695b; }
.query-item:hover { background: #eff4ef; }
.query-item[aria-current="true"] { background: #eaf2ec; border-color: #dce8df; }
.query-item strong { display: block; font-weight: 550; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12px; }
.query-item time { display: block; color: #8b978f; font-size: 10px; margin-top: 6px; }
.workspace-main { min-width: 0; min-height: 0; display: grid; grid-template-rows: minmax(200px,1fr) auto minmax(140px,1fr); }
.editor-panel { display: flex; flex-direction: column; min-height: 0; }
.editor-fields { display: flex; gap: 18px; align-items: flex-end; padding: 23px 26px 20px; }
.title-field { flex: 1; min-width: 100px; }
.source-field { width: 230px; min-width: 110px; }
.editor-fields .input { width: 100%; font-size: 13px; }
.editor-fields kbd { opacity: .65; font-family: inherit; font-size: 10px; }
.sql-editor { display: flex; flex: 1; min-height: 0; margin-top: 5px; }
.sql-editor pre { font: 13px/1.85 var(--mono); color: #bdc7c0; background: white; margin: 0; padding: 10px 12px 20px 18px; text-align: right; overflow: hidden; min-width: 53px; user-select: none; }
#sql { resize: none; border: 0; outline: none; flex: 1; min-width: 0; background: white; color: #365747; font: 13px/1.85 var(--mono); tab-size: 2; padding: 10px 25px 20px 7px; white-space: pre; overflow: auto; }
#sql::placeholder { color: #a8b8ab; }
.editor-status { text-align: right; padding: 10px 26px; font-size: 10px; color: #7e8d82; }
.editor-status.error { color: #a23630; }
.results-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 20px; background: #f9fbf9; border-block: 1px solid var(--border); font-size: 11px; }
.result-summary { display: flex; flex-wrap: wrap; gap: 6px 12px; flex: 1; align-items: baseline; }
.result-summary strong { font-size: 12px; font-weight: 600; }
.pagination { display: flex; align-items: center; gap: 4px; }
.pagination select { border: 1px solid var(--border); border-radius: 4px; color: #5d6f62; background: white; padding: 4px 2px; margin-left: 3px; }
.page-size-label { color: #869387; margin-right: 10px; }
.icon-button { background: white; border: 1px solid var(--border); border-radius: 4px; width: 25px; height: 25px; color: #596f60; cursor: pointer; font-size: 17px; line-height: 1; }
#page-label { padding: 0 6px; color: #77897c; font-variant-numeric: tabular-nums; }
.results-panel { display: flex; flex-direction: column; min-height: 0; min-width: 0; position: relative; }
.results-scroll { overflow: auto; flex: 1; min-height: 0; }
.results-table { table-layout: fixed; border-collapse: separate; border-spacing: 0; font: 12px/1.65 var(--mono); white-space: nowrap; }
.results-table th { position: sticky; top: 0; background: #f3f6f3; border-bottom: 1px solid #d8e2da; font-weight: 600; text-align: left; min-width: 150px; max-width: 460px; color: #4c6555; z-index: 1; }
.results-table th button { display: block; background: none; border: 0; width: 100%; max-width: 460px; padding: 12px 16px; color: inherit; font: 600 12px var(--mono); text-align: left; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.results-table th, .results-table td { border-right: 1px solid #edf1ed; }
.results-table td { padding: 10px 16px; border-bottom: 1px solid #eef2ee; max-width: 460px; overflow: hidden; text-overflow: ellipsis; color: #526157; }
.results-table tr:nth-child(even) td { background: #fcfdfc; }
.results-table tr:hover td { background: #f0f6f1; }
.results-table .row-number { width: 55px; min-width: 55px; max-width: 55px; text-align: right; font-size: 10px; color: #a1afa5; padding: 10px 13px; background: #fafcfa; }
.results-table td.number { text-align: right; color: #387561; font-variant-numeric: tabular-nums; }
.results-table td.null { color: #a4afa7; font-size: 10px; font-style: italic; }
.results-table td.boolean { color: #7d6898; }
.empty-state { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; color: #a4b0a7; text-align: center; padding: 25px; pointer-events: none; }
.empty-state h2 { font-size: 15px; font-weight: 500; color: #788e7e; margin: 16px 0 0; }
.empty-state p { font-size: 12px; margin: 9px 0; }
.empty-symbol { border: 1px solid #e1e9e2; border-radius: 11px; width: 45px; height: 45px; font-size: 26px; line-height: 43px; background: #f9fbf9; }
.result-notice { font-size: 11px; background: #fff9e9; color: #8f7636; border-bottom: 1px solid #eee4c9; padding: 9px 20px; }
.results-panel > .alert { margin: 16px 20px; font: 12px/1.6 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; overflow: auto; }
@media (max-width: 1150px) { .editor-fields { gap: 12px; padding-inline: 18px; } .editor-fields kbd { display: none; } .source-field { width: 180px; } .workspace { grid-template-columns: 225px minmax(0,1fr); } .sidebar-tabs { padding-inline: 5px; } }
@media (max-width: 800px) { .app-header { padding: 0 15px; gap: 12px; } .app-header nav { gap: 15px; } .user-name { max-width: 90px; } .tenant-name { padding-left: 12px; font-size: 12px; } .workspace { grid-template-columns: 185px minmax(0,1fr); } .sidebar-tabs { flex-direction: column; padding: 8px; gap: 2px; } .sidebar-tabs button { padding: 8px; } .sidebar-tabs button[aria-selected=true] { box-shadow: none; background: #eaf2ec; border-radius: 5px; } .editor-fields { flex-wrap: wrap; padding: 14px; } .title-field { flex-basis: 100%; } .source-field { flex: 1; } .results-toolbar { padding: 8px 12px; } .result-summary { flex-basis: 100%; } .editor-status { padding-inline: 14px; } .section-heading { align-items: flex-start; } }
@media (max-width: 560px) { .workspace-page { overflow: auto; height: auto; min-height: 100dvh; } .workspace { display: flex; flex-direction: column; } .explorer { max-height: 205px; min-height: 160px; border-right: 0; border-bottom: 1px solid var(--border); } .sidebar-tabs { flex-direction: row; padding: 5px 12px; } .sidebar-settings { display: none; } .sidebar-content { padding-block: 10px; } .workspace-main { height: 730px; flex-shrink: 0; } .sidebar-panel { max-height: 145px; } .page-container { padding: 28px 18px; } .form-grid { grid-template-columns: 1fr; gap: 0; } .section-heading { flex-direction: column; } .tenant-name { max-width: 23vw; } .app-header nav { gap: 10px; } .app-header nav a, .text-button { font-size: 12px; } .page-size-label { margin-right: 3px; } }
