#dashboardPage {
    background: #f7f8f5;
    color: #0a0d08;
    min-height: calc(100vh - 80px);
    padding: 32px 24px 80px;
}

.db-shell {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 32px;
    align-items: start;
}

.db-sidebar {
    position: sticky;
    top: 100px;
    background: #fff;
    border: 1px solid rgba(10, 13, 8, 0.08);
    border-radius: 12px;
    padding: 18px 14px;
    font-size: 0.94em;
}

.db-sidebar-section { margin-bottom: 18px; }
.db-sidebar-section:last-child { margin-bottom: 0; }

.db-sidebar-label {
    font-size: 0.72em;
    color: #5a6052;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0 8px;
    margin-bottom: 8px;
}

.db-sidebar-item {
    display: block;
    color: #0a0d08;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background 0.12s;
}
.db-sidebar-item:hover { background: rgba(10,13,8,0.05); }
.db-sidebar-item.active {
    background: rgba(45,163,0,0.10);
    color: #0a6e00;
    font-weight: 600;
}

.db-main {
    background: #fff;
    border: 1px solid rgba(10, 13, 8, 0.08);
    border-radius: 14px;
    padding: 32px 36px;
    min-height: 600px;
}

.db-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(10,13,8,0.08);
}
.db-head h1 {
    margin: 0 0 4px;
    font-size: 1.7em;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #0a0d08;
}
.db-head p { margin: 0; color: #5a6052; font-size: 0.95em; }
.db-head-meta {
    color: #5a6052;
    font-size: 0.92em;
    margin-top: 6px;
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.db-head-meta code {
    background: rgba(10,13,8,0.05);
    padding: 2px 8px;
    border-radius: 4px;
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 0.88em;
}
.db-head-actions { display: flex; gap: 10px; }

.db-tile-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
}
.db-tile {
    background: #fafbf7;
    border: 1px solid rgba(10,13,8,0.06);
    border-radius: 10px;
    padding: 16px;
}
.db-tile-label {
    color: #5a6052;
    font-size: 0.82em;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}
.db-tile-value {
    font-size: 1.8em;
    font-weight: 800;
    color: #0a0d08;
    letter-spacing: -0.02em;
    line-height: 1.1;
}
.db-tile-hint {
    margin-top: 6px;
    color: #a06d00;
    font-size: 0.82em;
}

.db-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.93em;
}
.db-table th {
    text-align: left;
    padding: 10px 12px;
    background: #fafbf7;
    border-bottom: 1px solid rgba(10,13,8,0.08);
    font-weight: 600;
    color: #5a6052;
    font-size: 0.82em;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.db-table td {
    padding: 12px 12px;
    border-bottom: 1px solid rgba(10,13,8,0.06);
    color: #0a0d08;
    vertical-align: top;
}
.db-table tr:last-child td { border-bottom: none; }
.db-table a { color: #0a0d08; text-decoration: none; }
.db-table a:hover { color: #0a6e00; }
.db-sub { color: #5a6052; font-size: 0.84em; margin-top: 2px; }
.db-readonly {
    font-style: normal;
    color: #5a6052;
    background: rgba(10,13,8,0.06);
    padding: 1px 8px;
    border-radius: 4px;
    font-size: 0.78em;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.db-published {
    font-style: normal;
    color: #0a6e00;
    font-size: 0.85em;
}

.db-pill {
    display: inline-flex;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.72em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.db-form {
    max-width: 720px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.db-form h3 {
    margin: 24px 0 8px;
    font-size: 1.1em;
    border-top: 1px solid rgba(10,13,8,0.08);
    padding-top: 24px;
}

.db-row { display: flex; flex-direction: column; gap: 6px; }
.db-row label {
    font-size: 0.84em;
    color: #5a6052;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.db-req { color: #a01818; margin-left: 4px; }
.db-row input, .db-row textarea, .db-row select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid rgba(10,13,8,0.16);
    border-radius: 8px;
    font: inherit;
    color: #0a0d08;
    background: #fff;
    box-sizing: border-box;
}
.db-row input:focus, .db-row textarea:focus, .db-row select:focus {
    outline: none;
    border-color: #2da300;
    box-shadow: 0 0 0 3px rgba(45,163,0,0.15);
}
.db-row input:disabled, .db-row textarea:disabled, .db-row select:disabled {
    background: #f7f8f5;
    color: #5a6052;
    cursor: not-allowed;
}
.db-row textarea { resize: vertical; min-height: 80px; }

.db-row-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.db-caps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 6px;
}
.db-cap-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.86em;
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    color: #0a0d08;
    padding: 6px 8px;
    border: 1px solid rgba(10,13,8,0.10);
    border-radius: 6px;
    cursor: pointer;
    background: #fafbf7;
    transition: border-color 0.12s, background 0.12s;
}
.db-cap-toggle:has(input:checked) {
    background: rgba(45,163,0,0.08);
    border-color: rgba(45,163,0,0.4);
    color: #0a6e00;
}
.db-cap-toggle input { margin: 0; }

.db-form-actions { display: flex; gap: 10px; margin-top: 8px; }

.db-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.92em;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.12s, border-color 0.12s, transform 0.12s;
}
.db-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.db-btn-primary { background: #0a0d08; color: #fff; }
.db-btn-primary:hover:not(:disabled) { background: #1a1f15; }
.db-btn-ghost { background: transparent; color: #0a0d08; border-color: rgba(10,13,8,0.16); }
.db-btn-ghost:hover:not(:disabled) { background: rgba(10,13,8,0.05); }

.db-form-error {
    color: #a01818;
    font-size: 0.92em;
    margin-top: 8px;
    min-height: 1em;
}

.db-card {
    background: #fafbf7;
    border: 1px solid rgba(10,13,8,0.08);
    border-radius: 10px;
    padding: 16px;
    margin-top: 16px;
}
.db-card-muted { color: #5a6052; }
.db-card-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(10,13,8,0.06);
    font-size: 0.93em;
}
.db-card-row:last-child { border-bottom: none; }
.db-card-row code {
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 0.86em;
    background: rgba(10,13,8,0.05);
    padding: 1px 6px;
    border-radius: 4px;
}
.db-card-label {
    color: #5a6052;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.db-aside {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(10,13,8,0.08);
}

.db-help {
    color: #5a6052;
    font-size: 0.88em;
    line-height: 1.55;
    margin: 0 0 16px;
    padding: 10px 14px;
    background: rgba(45,163,0,0.05);
    border-left: 3px solid rgba(45,163,0,0.4);
    border-radius: 4px;
}
.db-help code {
    background: rgba(10,13,8,0.06);
    padding: 1px 6px;
    border-radius: 4px;
    font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    font-size: 0.86em;
}

.db-blockers {
    margin: 12px 0;
    padding: 12px 14px 12px 30px;
    background: rgba(220,30,30,0.06);
    border-left: 3px solid rgba(220,30,30,0.4);
    border-radius: 4px;
    color: #a01818;
    font-size: 0.92em;
}
.db-blockers li { margin: 4px 0; }

.db-actions { white-space: nowrap; }

.db-loading, .db-empty, .db-error {
    text-align: center;
    padding: 40px 20px;
    color: #5a6052;
}
.db-error { color: #a01818; }

@media (max-width: 880px) {
    .db-shell { grid-template-columns: 1fr; }
    .db-sidebar { position: static; }
    .db-main { padding: 24px 20px; }
    .db-row-pair { grid-template-columns: 1fr; }
}
