/* ============================================================
   Komponenter — knapper, skjema, kort, tabeller, badges, modaler
   ============================================================ */

/* ===== KNAPPER ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 0 var(--space-4);
    height: 38px;
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    line-height: 1;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
    text-decoration: none;
    position: relative;
    user-select: none;
}
.btn:hover:not(:disabled) {
    background: var(--bg-elevated);
    border-color: var(--border-strong);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}
.btn:active:not(:disabled) { transform: translateY(0); }
.btn:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 2px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.btn-primary {
    background: linear-gradient(180deg, var(--brand-500) 0%, var(--brand-600) 100%);
    color: white;
    border-color: var(--brand-600);
    box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,0.15);
}
.btn-primary:hover:not(:disabled) {
    background: linear-gradient(180deg, var(--brand-400) 0%, var(--brand-500) 100%);
    border-color: var(--brand-500);
    box-shadow: var(--shadow-md), var(--shadow-glow);
}

.btn-secondary { background: var(--bg-glass); border-color: var(--border-default); }

.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover:not(:disabled) { background: var(--bg-glass); border-color: var(--border-subtle); }

.btn-danger {
    background: var(--danger-bg);
    color: var(--danger-fg);
    border-color: var(--danger-border);
}
.btn-danger:hover:not(:disabled) {
    background: var(--danger-fg);
    color: white;
    border-color: var(--danger-fg);
}

.btn-success {
    background: var(--success-bg);
    color: var(--success-fg);
    border-color: var(--success-border);
}
.btn-success:hover:not(:disabled) { background: var(--success-fg); color: white; border-color: var(--success-fg); }

.btn-warning {
    background: var(--warning-bg);
    color: var(--warning-fg);
    border-color: var(--warning-border);
}

.btn-sm { height: 30px; padding: 0 var(--space-3); font-size: var(--text-xs); }
.btn-lg { height: 46px; padding: 0 var(--space-6); font-size: var(--text-md); }
.btn-xl { height: 54px; padding: 0 var(--space-8); font-size: var(--text-lg); border-radius: var(--radius-lg); }

.btn-icon { padding: 0; width: 38px; height: 38px; }
.btn-icon.btn-sm { width: 30px; height: 30px; }

.btn-block { width: 100%; }

/* Knapp-gruppe */
.btn-group { display: inline-flex; }
.btn-group .btn { border-radius: 0; }
.btn-group .btn:first-child { border-radius: var(--radius-md) 0 0 var(--radius-md); }
.btn-group .btn:last-child { border-radius: 0 var(--radius-md) var(--radius-md) 0; }
.btn-group .btn:not(:last-child) { border-right: 0; }

/* === KNAPPER — blå (#2563eb) med hvit skrift, identisk i begge moduser.
       Ingen farge-/skriftendring ved hover, fokus eller besøkt-lenke. === */
.btn, a.btn,
.btn-primary, .btn-secondary, .btn-ghost, .btn-success, .btn-warning,
.btn:hover, .btn:focus, .btn:active, .btn:visited,
.btn-primary:hover, .btn-secondary:hover, .btn-ghost:hover, .btn-success:hover, .btn-warning:hover,
.btn-primary:focus, .btn-secondary:focus, .btn-ghost:focus, .btn-success:focus, .btn-warning:focus,
.btn-primary:active, .btn-secondary:active, .btn-ghost:active, .btn-success:active, .btn-warning:active {
    background: #2563eb !important;
    color: #ffffff !important;
    border-color: #2563eb !important;
    box-shadow: var(--shadow-sm);
    transform: none !important;
}
.btn:focus-visible { outline: 2px solid #ffffff; outline-offset: 2px; }
/* Slett/fare beholder rød — solid, identisk i begge moduser */
.btn-danger, a.btn-danger,
.btn-danger:hover, .btn-danger:focus, .btn-danger:active, .btn-danger:visited {
    background: #dc2626 !important;
    color: #ffffff !important;
    border-color: #dc2626 !important;
    transform: none !important;
}

/* ===== SKJEMA ===== */
.field { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-4); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.field-label {
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    color: var(--text-secondary);
}
.field-label .required { color: var(--danger-fg); margin-left: 2px; }

.input, .select, .textarea {
    width: 100%;
    padding: 0 var(--space-3);
    height: 38px;
    background: var(--bg-input);
    color: var(--text-primary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    transition: all var(--transition-fast);
}
.input:hover, .select:hover, .textarea:hover { border-color: var(--border-strong); }
.input:focus, .select:focus, .textarea:focus {
    outline: 0;
    border-color: var(--brand-500);
    box-shadow: 0 0 0 3px rgba(108,99,255,0.15);
    background: var(--bg-card);
}
.input::placeholder, .textarea::placeholder { color: var(--text-muted); }
.input:disabled, .select:disabled, .textarea:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--bg-glass);
}

.textarea { height: auto; padding: var(--space-2) var(--space-3); resize: vertical; min-height: 80px; line-height: var(--leading-normal); }

.select {
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='%23a8b3c5'><path d='M6 8.825L1.175 4 2.05 3.125 6 7.075 9.95 3.125 10.825 4z'/></svg>");
    background-repeat: no-repeat;
    background-position: right var(--space-3) center;
    padding-right: var(--space-8);
}

.field-help { font-size: var(--text-xs); color: var(--text-muted); }
.field-error { font-size: var(--text-xs); color: var(--danger-fg); }
.input.has-error, .select.has-error, .textarea.has-error { border-color: var(--danger-fg); }

/* Checkbox + Radio */
.checkbox, .radio {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    cursor: pointer;
    user-select: none;
}
.checkbox input[type="checkbox"], .radio input[type="radio"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--border-strong);
    background: var(--bg-input);
    border-radius: var(--radius-xs);
    position: relative;
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
}
.radio input[type="radio"] { border-radius: var(--radius-full); }
.checkbox input:checked, .radio input:checked {
    background: var(--brand-500);
    border-color: var(--brand-500);
}
.checkbox input:checked::after {
    content: '';
    position: absolute;
    top: 3px; left: 6px;
    width: 4px; height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.radio input:checked::after {
    content: ''; position: absolute; top: 50%; left: 50%;
    width: 8px; height: 8px; border-radius: 50%; background: white;
    transform: translate(-50%,-50%);
}
.checkbox input:focus-visible, .radio input:focus-visible {
    box-shadow: 0 0 0 3px rgba(108,99,255,0.20);
}

/* Toggle switch */
.toggle { display: inline-flex; align-items: center; gap: var(--space-2); cursor: pointer; }
.toggle input { display: none; }
.toggle-track {
    width: 36px; height: 20px;
    background: var(--border-default);
    border-radius: var(--radius-full);
    position: relative;
    transition: background var(--transition-base);
}
.toggle-track::after {
    content: '';
    position: absolute; top: 2px; left: 2px;
    width: 16px; height: 16px;
    background: white;
    border-radius: 50%;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}
.toggle input:checked + .toggle-track { background: var(--brand-500); }
.toggle input:checked + .toggle-track::after { transform: translateX(16px); }

/* ===== KORT ===== */
.card {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
}
.card-hover:hover {
    border-color: var(--border-default);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}
.card-header {
    padding: var(--space-4) var(--space-6);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
}
.card-title { font-size: var(--text-md); font-weight: var(--weight-semibold); margin: 0; }
.card-body { padding: var(--space-6); }
.card-footer {
    padding: var(--space-4) var(--space-6);
    border-top: 1px solid var(--border-subtle);
    background: var(--bg-glass);
}

/* Stat-kort (KPI) */
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    position: relative;
    overflow: hidden;
}
.stat-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--brand-500), var(--teal-500));
    opacity: 0; transition: opacity var(--transition-base);
}
.stat-card:hover::before { opacity: 1; }
.stat-label {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    color: var(--text-muted);
    font-weight: var(--weight-medium);
    margin-bottom: var(--space-2);
}
.stat-value {
    font-size: var(--text-3xl);
    font-weight: var(--weight-semibold);
    line-height: 1;
    letter-spacing: var(--tracking-tight);
    color: var(--text-primary);
    margin: 0;
    font-feature-settings: 'tnum';
}
.stat-trend { display: inline-flex; align-items: center; gap: 2px; font-size: var(--text-xs); margin-top: var(--space-2); }
.stat-trend.up { color: var(--success-fg); }
.stat-trend.down { color: var(--danger-fg); }

/* Section-headere (mellom-overskrifter) */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: var(--space-8) 0 var(--space-4);
}
.section-title {
    font-size: var(--text-md);
    font-weight: var(--weight-semibold);
    color: var(--text-primary);
}
.section-subtitle { font-size: var(--text-sm); color: var(--text-muted); margin-top: var(--space-1); }

/* ===== BADGES ===== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: 2px 8px;
    font-size: var(--text-xs);
    font-weight: var(--weight-medium);
    line-height: 1.4;
    border-radius: var(--radius-full);
    background: var(--bg-glass);
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
    white-space: nowrap;
}
.badge-success { background: var(--success-bg); color: var(--success-fg); border-color: var(--success-border); }
.badge-warning { background: var(--warning-bg); color: var(--warning-fg); border-color: var(--warning-border); }
.badge-danger  { background: var(--danger-bg);  color: var(--danger-fg);  border-color: var(--danger-border); }
.badge-info    { background: var(--info-bg);    color: var(--info-fg);    border-color: var(--info-border); }
.badge-brand   { background: rgba(108,99,255,0.12); color: var(--brand-300); border-color: rgba(108,99,255,0.30); }
[data-theme="light"] .badge-brand { color: var(--brand-700); background: rgba(108,99,255,0.10); }

.dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: currentColor;
    display: inline-block;
}
.dot-pulse { position: relative; }
.dot-pulse::after {
    content: ''; position: absolute; inset: -2px;
    border-radius: 50%; background: currentColor;
    animation: pulse-ring 1.6s cubic-bezier(0.215,0.61,0.355,1) infinite;
}
@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(2.4); opacity: 0; }
}

/* ===== TABELLER ===== */
.table-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-sm);
}
.table thead th {
    padding: var(--space-3) var(--space-4);
    background: var(--bg-elevated);
    font-weight: var(--weight-semibold);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    color: var(--text-muted);
    text-align: left;
    border-bottom: 1px solid var(--border-subtle);
    white-space: nowrap;
}
.table tbody td {
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--border-subtle);
    vertical-align: middle;
}
.table tbody tr { transition: background var(--transition-fast); }
.table tbody tr:hover { background: var(--bg-glass); }
.table tbody tr:last-child td { border-bottom: 0; }
.table tr.row-link { cursor: pointer; }
.table tr.row-link:hover td:first-child { box-shadow: inset 3px 0 0 var(--brand-500); }

.table-empty {
    padding: var(--space-12);
    text-align: center;
    color: var(--text-muted);
}
.table-empty-icon { font-size: var(--text-3xl); opacity: 0.4; margin-bottom: var(--space-3); }

/* ===== MODAL / DIALOG ===== */
.modal-overlay {
    position: fixed; inset: 0;
    background: var(--bg-overlay);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
    animation: modal-fade var(--transition-base);
}
.modal {
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: modal-slide var(--transition-slow) var(--easing-spring);
}
.modal-md { max-width: 720px; }
.modal-lg { max-width: 920px; }
.modal-header {
    padding: var(--space-5) var(--space-6);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
}
.modal-title { font-size: var(--text-lg); font-weight: var(--weight-semibold); margin: 0; }
.modal-close {
    width: 32px; height: 32px;
    display: grid; place-items: center;
    background: transparent;
    border: 0;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    cursor: pointer;
    font-size: 20px;
    transition: all var(--transition-fast);
}
.modal-close:hover { background: var(--bg-glass); color: var(--text-primary); }
.modal-body { padding: var(--space-6); overflow-y: auto; flex: 1; }
.modal-footer {
    padding: var(--space-4) var(--space-6);
    border-top: 1px solid var(--border-subtle);
    display: flex;
    justify-content: flex-end;
    gap: var(--space-2);
    background: var(--bg-glass);
}
@keyframes modal-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes modal-slide { from { opacity: 0; transform: translateY(20px) scale(0.96); } to { opacity: 1; transform: none; } }

/* ===== TOAST / NOTIFICATIONS ===== */
.toast-container {
    position: fixed;
    top: var(--space-4);
    right: var(--space-4);
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    max-width: 420px;
}
.toast {
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: var(--space-3) var(--space-4);
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    animation: toast-in var(--transition-slow) var(--easing-spring);
    border-left: 3px solid var(--brand-500);
}
.toast.toast-success { border-left-color: var(--success-fg); }
.toast.toast-warning { border-left-color: var(--warning-fg); }
.toast.toast-danger { border-left-color: var(--danger-fg); }
.toast.toast-info { border-left-color: var(--info-fg); }
.toast-icon { flex-shrink: 0; width: 20px; height: 20px; margin-top: 1px; }
.toast-content { flex: 1; min-width: 0; }
.toast-title { font-weight: var(--weight-semibold); font-size: var(--text-sm); margin-bottom: 2px; }
.toast-message { font-size: var(--text-xs); color: var(--text-secondary); line-height: var(--leading-snug); }
.toast-close {
    background: transparent; border: 0; color: var(--text-muted);
    cursor: pointer; padding: 0; width: 18px; height: 18px;
}
@keyframes toast-in { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }

/* ===== FILTER-BAR ===== */
.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding: var(--space-4) 0 var(--space-5);
    flex-wrap: wrap;
}
.filter-group { display: flex; align-items: center; gap: var(--space-2); }
.filter-search {
    width: 240px; height: 36px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 0 var(--space-3) 0 var(--space-8);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7689' stroke-width='2' stroke-linecap='round'><circle cx='11' cy='11' r='8'/><path d='m21 21-4.3-4.3'/></svg>");
    background-repeat: no-repeat;
    background-position: var(--space-3) center;
    font-size: var(--text-sm);
    color: var(--text-primary);
}
.filter-select {
    height: 36px;
    padding: 0 var(--space-7) 0 var(--space-3);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    color: var(--text-primary);
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='%236b7689'><path d='M6 8.825L1.175 4 2.05 3.125 6 7.075 9.95 3.125 10.825 4z'/></svg>");
    background-repeat: no-repeat;
    background-position: right var(--space-2) center;
}

/* Dropdown */
.dropdown { position: relative; display: inline-block; }
.dropdown-menu {
    position: absolute; top: calc(100% + 4px); right: 0;
    min-width: 200px;
    background: var(--bg-card);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: var(--space-1);
    z-index: var(--z-dropdown);
    animation: dropdown-in var(--transition-fast);
}
.dropdown-item {
    display: flex; align-items: center; gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: var(--text-sm);
    cursor: pointer;
    transition: background var(--transition-fast);
    text-decoration: none;
}
.dropdown-item:hover { background: var(--bg-glass); color: var(--text-primary); }
.dropdown-divider { border: 0; border-top: 1px solid var(--border-subtle); margin: var(--space-1) 0; }
@keyframes dropdown-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* Empty-state-illustrasjon */
.empty-state {
    text-align: center;
    padding: var(--space-16) var(--space-6);
    color: var(--text-muted);
}
.empty-state-icon {
    width: 64px; height: 64px;
    margin: 0 auto var(--space-4);
    opacity: 0.5;
}
.empty-state-title { font-size: var(--text-md); color: var(--text-primary); margin-bottom: var(--space-2); font-weight: var(--weight-medium); }
.empty-state-text { font-size: var(--text-sm); max-width: 360px; margin: 0 auto; line-height: var(--leading-relaxed); }

/* Progress bar */
.progress {
    height: 6px;
    background: var(--bg-elevated);
    border-radius: var(--radius-full);
    overflow: hidden;
}
.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--brand-500), var(--teal-500));
    border-radius: inherit;
    transition: width var(--transition-slow);
}

/* Skeleton-loading */
.skeleton {
    background: linear-gradient(90deg, var(--bg-elevated) 0%, var(--bg-card) 50%, var(--bg-elevated) 100%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.4s ease infinite;
    border-radius: var(--radius-sm);
}
@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Avatar */
.avatar {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-500), var(--teal-500));
    color: white;
    display: grid; place-items: center;
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    flex-shrink: 0;
}
.avatar-sm { width: 28px; height: 28px; font-size: var(--text-xs); }
.avatar-lg { width: 48px; height: 48px; font-size: var(--text-md); }

/* === PrefsBar — språk- og tema-velger === */
.prefs-bar {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 4px;
    background: transparent;
    border: 0;
}
.prefs-form { display: inline-flex; gap: 2px; margin: 0; }
.prefs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    height: 26px;
    padding: 0 var(--space-2);
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    font-weight: var(--weight-medium);
    cursor: pointer;
    transition: all var(--transition-fast);
}
.prefs-btn:hover {
    color: var(--text-primary);
    background: var(--bg-glass);
}
.prefs-btn.active {
    color: var(--text-primary);
    background: var(--bg-elevated);
    border-color: var(--border-default);
}
.prefs-lang { gap: 5px; }
.prefs-lang-icon { font-size: var(--text-sm); line-height: 1; }
.prefs-lang-code { font-weight: var(--weight-semibold); letter-spacing: 0.04em; }
.prefs-lang-toggle { font-weight: var(--weight-semibold); letter-spacing: 0.04em; min-width: 36px; }
.prefs-theme { font-size: var(--text-sm); }
.prefs-currency {
    height: 26px;
    padding: 0 var(--space-2);
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    font-weight: var(--weight-semibold);
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all var(--transition-fast);
}
.prefs-currency:hover { color: var(--text-primary); background: var(--bg-glass); }
.prefs-currency option { background: var(--bg-card); color: var(--text-primary); }

/* === Offentlige skjemaer (.form-field / .form-input) === */
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: var(--text-sm); font-weight: var(--weight-medium); color: var(--text-secondary); }
.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: var(--space-3);
    background: var(--bg-input);
    color: var(--text-primary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-family: inherit;
    transition: all var(--transition-fast);
}
.form-input,
.form-select { height: 44px; }
.form-textarea { resize: vertical; min-height: 110px; line-height: var(--leading-relaxed); }
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: 0;
    border-color: var(--brand-500);
    box-shadow: 0 0 0 3px rgba(108,99,255,0.15);
    background: var(--bg-card);
}
.form-select option { background: var(--bg-card); color: var(--text-primary); }
.prefs-divider {
    width: 1px;
    height: 18px;
    background: var(--border-default);
}
