:root {
--bg: #1e1e22;
--panel: #26262b;
--panel-2: #2f2f35;
--border: #3a3a42;
--fg: #e8e8ee;
--fg-muted: #9a9aa5;
--accent: #7dd3a4;
--accent-dim: #4c8368;
--error: #f58f8f;
--mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
--sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
color-scheme: dark;
}
* {
box-sizing: border-box;
}
html, body, #app {
height: 100%;
margin: 0;
padding: 0;
background: var(--bg);
color: var(--fg);
font-family: var(--sans);
font-size: 13px;
line-height: 1.4;
overflow: hidden;
}
main {
display: flex;
flex-direction: column;
height: 100vh;
}
header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 8px 14px;
background: var(--panel);
border-bottom: 1px solid var(--border);
user-select: none;
}
.brand {
display: flex;
align-items: baseline;
gap: 8px;
}
.actions {
display: flex;
gap: 8px;
}
.logo {
color: var(--accent);
font-size: 18px;
}
.title {
font-weight: 600;
letter-spacing: 0.02em;
}
.path {
color: var(--fg-muted);
font-family: var(--mono);
font-size: 12px;
}
button {
background: var(--panel-2);
color: var(--fg);
border: 1px solid var(--border);
padding: 6px 14px;
font-size: 12px;
border-radius: 4px;
cursor: pointer;
font-family: inherit;
}
button:hover:not(:disabled) {
border-color: var(--accent-dim);
}
button:disabled {
opacity: 0.5;
cursor: default;
}
.layout {
display: grid;
grid-template-columns: 260px 1fr;
flex: 1;
min-height: 0;
}
.sidebar {
background: var(--panel);
border-right: 1px solid var(--border);
padding: 12px;
overflow-y: auto;
}
.sidebar h3,
.sidebar h4 {
margin: 6px 0 8px;
font-size: 11px;
text-transform: uppercase;
letter-spacing: 0.05em;
color: var(--fg-muted);
font-weight: 600;
}
.sidebar h4 {
margin-top: 18px;
}
.sidebar ul {
list-style: none;
padding: 0;
margin: 0;
}
.sidebar li {
padding: 6px 8px;
border-radius: 3px;
cursor: pointer;
display: flex;
justify-content: space-between;
align-items: baseline;
}
.sidebar li:hover {
background: var(--panel-2);
}
.sidebar li.selected {
background: var(--accent-dim);
color: #fff;
}
.sidebar li.selected .col-count {
color: rgba(255, 255, 255, 0.7);
}
.table-name {
font-family: var(--mono);
}
.col-count {
font-size: 11px;
color: var(--fg-muted);
}
.schema .cols li {
font-family: var(--mono);
display: grid;
grid-template-columns: 1fr auto auto;
gap: 6px;
padding: 3px 8px;
cursor: default;
}
.schema .cols li:hover {
background: transparent;
}
.col-name {
color: var(--fg);
font-size: 12px;
}
.col-type {
color: var(--fg-muted);
font-size: 11px;
}
.col-flags {
color: var(--accent);
font-size: 10px;
letter-spacing: 0.05em;
}
.muted {
color: var(--fg-muted);
font-style: italic;
}
.main {
display: flex;
flex-direction: column;
min-height: 0;
}
.editor {
display: flex;
flex-direction: column;
border-bottom: 1px solid var(--border);
}
.editor-surface {
display: flex;
background: var(--panel);
min-height: 140px;
}
.gutter {
flex: 0 0 auto;
min-width: 44px;
padding: 12px 8px 12px 10px;
background: var(--panel-2);
color: var(--fg-muted);
font-family: var(--mono);
font-size: 13px;
line-height: 1.5;
text-align: right;
user-select: none;
overflow: hidden;
border-right: 1px solid var(--border);
max-height: 100%;
}
.gutter .line-num {
line-height: 1.5;
height: calc(1em * 1.5);
}
.editor textarea {
flex: 1;
background: var(--panel);
color: var(--fg);
border: none;
padding: 12px 14px;
font-family: var(--mono);
font-size: 13px;
line-height: 1.5;
min-height: 140px;
resize: vertical;
outline: none;
tab-size: 4;
}
.editor-toolbar {
display: flex;
justify-content: space-between;
align-items: center;
padding: 8px 12px;
background: var(--panel);
}
.shortcut-hint {
color: var(--fg-muted);
font-family: var(--mono);
font-size: 11px;
user-select: none;
}
.output {
flex: 1;
min-height: 0;
overflow: auto;
padding: 12px 14px;
}
.error {
color: var(--error);
font-family: var(--mono);
white-space: pre-wrap;
}
.status {
color: var(--accent);
font-family: var(--mono);
}
.result-meta {
color: var(--fg-muted);
font-family: var(--mono);
font-size: 11px;
margin-bottom: 8px;
}
.table-wrap {
overflow: auto;
max-height: 100%;
border: 1px solid var(--border);
border-radius: 3px;
}
table.result {
border-collapse: collapse;
font-family: var(--mono);
font-size: 12px;
width: 100%;
}
table.result th,
table.result td {
padding: 6px 10px;
border: 1px solid var(--border);
text-align: left;
white-space: nowrap;
}
table.result thead th {
background: var(--panel-2);
position: sticky;
top: 0;
font-weight: 600;
color: var(--fg-muted);
}
table.result tr:nth-child(odd) td {
background: var(--panel);
}