:root {
    color-scheme: light;
    --bg: #f4f5f7;
    --panel: #ffffff;
    --line: #d9dce3;
    --text: #1e2430;
    --muted: #677186;
    --primary: #2563eb;
    --danger: #dc2626;
    --success: #16a34a;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
}

.shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px 1fr;
}

.sidebar {
    padding: 28px;
    background: #111827;
    color: #f9fafb;
}

.brand {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.stats {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.stats div,
.panel {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 14px;
}

.stats div {
    padding: 14px;
}

.stats span,
.muted {
    color: var(--muted);
}

.main {
    padding: 28px;
    display: grid;
    gap: 20px;
}

.panel {
    background: var(--panel);
    padding: 22px;
    border: 1px solid var(--line);
}

.panel-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: start;
    margin-bottom: 18px;
}

h1,
h2,
p {
    margin: 0;
}

.form-grid {
    display: grid;
    gap: 14px;
}

label,
.field {
    display: grid;
    gap: 8px;
}

input,
select,
textarea,
button {
    font: inherit;
}

input,
select,
textarea {
    width: 100%;
    padding: 11px 12px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #fff;
}

textarea {
    min-height: 88px;
    resize: vertical;
}

button {
    border: 0;
    border-radius: 10px;
    padding: 11px 16px;
    background: var(--primary);
    color: #fff;
    cursor: pointer;
}

button.secondary {
    background: #e5e7eb;
    color: var(--text);
}

button.danger {
    background: var(--danger);
}

button.success {
    background: var(--success);
}

.toggle-row {
    grid-template-columns: 1fr auto;
    align-items: center;
}

.toggle-row input {
    width: 18px;
    height: 18px;
}

.driver-fields {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.form-actions,
.card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.disk-list {
    display: grid;
    gap: 14px;
}

.browser-list {
    display: grid;
    gap: 12px;
}

.disk-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 16px;
    background: #fff;
}

.disk-card header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: start;
    margin-bottom: 12px;
}

.browser-item {
    display: grid;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px;
    background: #fff;
}

.browser-item-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: start;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 12px;
}

.badge.off {
    background: #e5e7eb;
    color: #4b5563;
}

.message {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #eff6ff;
    color: #1d4ed8;
}

.message.error {
    background: #fee2e2;
    color: #991b1b;
}

.hidden {
    display: none;
}

.breadcrumb {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.breadcrumb button {
    padding: 8px 12px;
}

.compact-form {
    margin-bottom: 18px;
}

.browser-empty {
    border: 1px dashed var(--line);
    border-radius: 14px;
    padding: 18px;
    background: #fff;
}

.meta-grid {
    display: grid;
    gap: 6px;
}

.meta-grid code {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid var(--line);
    word-break: break-all;
}

pre {
    margin: 0;
    padding: 12px;
    border-radius: 10px;
    background: #0f172a;
    color: #e2e8f0;
    overflow: auto;
}

@media (max-width: 900px) {
    .shell {
        grid-template-columns: 1fr;
    }
}
