#app {
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    height: 100vh;
    overflow: hidden;
}

.sidebar {
    background: var(--surface);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-right: 1px solid var(--surface-3);
}

.sidebar-header {
    padding: 14px 16px;
    background: var(--surface-2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 2px;
}

.sidebar-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text);
}

.sidebar-body {
    flex: 1;
    overflow-y: auto;
}

.main-panel {
    overflow-y: auto;
    padding: 28px 32px;
}

.db-wrap {
    flex: 1;
    overflow-y: auto;
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
}

.db-content {
    max-width: 1100px;
    width: 100%;
}

.db-section-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
    color: var(--text-dim);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.db-count {
    font-size: 10px;
    background: var(--surface-3);
    color: var(--text-muted);
    padding: 1px 6px;
    font-weight: 400;
    letter-spacing: 0;
}

.db-table-wrap {
    overflow-x: auto;
}

.db-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.db-table th {
    text-align: left;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    font-weight: 700;
    padding: 7px 12px;
    background: var(--surface-2);
    white-space: nowrap;
    border-bottom: 1px solid var(--surface-3);
}

.db-table td {
    padding: 7px 12px;
    color: var(--text-dim);
    border-bottom: 1px solid var(--surface-2);
    white-space: nowrap;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.db-table td.strong {
    color: var(--text);
    font-weight: 500;
}

.db-table td.mono {
    font-family: var(--mono);
    font-size: 11px;
}

.db-table td.dim {
    color: var(--text-muted);
}

.db-table tr:hover td {
    background: var(--surface-2);
}

.kind-tag {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    padding: 2px 6px;
    background: var(--surface-3);
}

.kind-tag.kind-chat {
    color: var(--text-dim);
}

.kind-tag.kind-command {
    color: var(--accent);
}

.btn-ghost.active {
    color: var(--text);
}

.settings-box {
    width: 380px;
}

.settings-box h1 {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 32px;
}
