:root {
    --bg:         #0a0a0a;
    --surface:    #141414;
    --surface2:   #1c1c1c;
    --border:     #242424;
    --border2:    #2e2e2e;
    --text:       #e0e0e0;
    --text-muted: #666;
    --text-dim:   #999;
    --accent:     #ffffff;
    --success:    #22c55e;
    --error:      #ef4444;
    --warning:    #f59e0b;
    --danger:     #dc2626;
    --radius:     8px;
    --radius-lg:  12px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

/* ── AUTH ── */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
}

.auth-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    width: 100%;
    max-width: 420px;
}

.auth-logo {
    display: block;
    height: 36px;
    width: auto;
    margin: 0 auto 28px;
    filter: invert(1);
    opacity: .9;
}

.auth-title {
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 6px;
}

.auth-subtitle {
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 28px;
    font-size: 13px;
}

.auth-form { display: flex; flex-direction: column; gap: 12px; }

.form-field input {
    width: 100%;
    background: var(--surface2);
    border: 1px solid var(--border2);
    border-radius: var(--radius);
    padding: 10px 14px;
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color .15s;
}

.form-field input:focus { border-color: #555; }
.form-field input::placeholder { color: var(--text-muted); }

.setup-group {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.setup-group legend {
    padding: 0 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: .05em;
}

.legend-note { font-weight: 400; text-transform: none; letter-spacing: 0; }

/* ── BUTTONS ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: var(--radius);
    font-size: 14px;
    font-family: inherit;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: opacity .15s, background .15s;
}

.btn:disabled { opacity: .4; cursor: not-allowed; }

.btn-primary { background: var(--accent); color: #000; }
.btn-primary:hover:not(:disabled) { opacity: .88; }

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border2);
}
.btn-ghost:hover { color: var(--text); border-color: #555; }

.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { opacity: .88; }

.btn-full { width: 100%; }

.btn-google {
    background: #fff;
    color: #1a1a1a;
    border: 1px solid #ddd;
    font-size: 14px;
    padding: 10px 18px;
}
.btn-google:hover { background: #f5f5f5; }

/* ── AUTH extras ── */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin: 20px 0;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border2);
}

/* ── ALERT ── */
.alert {
    padding: 10px 14px;
    border-radius: var(--radius);
    font-size: 13px;
    margin-bottom: 16px;
}
.alert-error  { background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.3); color: #fca5a5; }
.alert-success{ background: rgba(34,197,94,.12); border: 1px solid rgba(34,197,94,.3); color: #86efac; }
.alert-success a { color: #86efac; text-decoration: underline; }

/* ── HEADER ── */
.app-header {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 0 32px;
    height: 60px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-logo {
    height: 26px;
    width: auto;
    filter: invert(1);
    opacity: .85;
    flex-shrink: 0;
}

.tabs {
    display: flex;
    gap: 2px;
}

.tab {
    padding: 6px 14px;
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    transition: color .15s, background .15s;
}
.tab:hover { color: var(--text); background: var(--surface2); }
.tab-active { color: var(--text); background: var(--surface2); }

/* ── HEADER SEARCH ── */
.header-search {
    position: relative;
    flex: 1;
    max-width: 320px;
    margin-left: 8px;
}

.header-search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    color: var(--text-muted);
    pointer-events: none;
}

.header-search-input {
    width: 100%;
    background: var(--surface2);
    border: 1px solid var(--border2);
    border-radius: var(--radius);
    padding: 7px 10px 7px 32px;
    font-size: 13px;
    font-family: inherit;
    color: var(--text);
    transition: border-color .15s, background .15s;
}
.header-search-input::placeholder { color: var(--text-muted); }
.header-search-input:focus { border-color: #555; background: var(--surface); }

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.badge-admin {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    background: rgba(239,68,68,.15);
    border: 1px solid rgba(239,68,68,.3);
    color: #fca5a5;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.user-badge {
    font-size: 12px;
    color: var(--text-muted);
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-logout {
    font-size: 13px;
    color: var(--text-muted);
    padding: 5px 10px;
    border-radius: var(--radius);
    transition: color .15s;
}
.btn-logout:hover { color: var(--text); }

/* ── MAIN ── */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

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

/* ── DASHBOARD LAYOUT ── */
.dashboard-layout {
    display: flex;
    height: calc(100vh - 60px);
    overflow: hidden;
}

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

.sidebar-header {
    padding: 20px 16px 12px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-muted);
    flex: 1;
}

.sidebar-body {
    flex: 1;
    overflow-y: auto;
    padding: 8px 0;
}

.sidebar-empty {
    padding: 24px 16px;
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
}

.project-list-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    cursor: default;
    border-radius: 0;
    transition: background .15s;
    position: relative;
}
.project-list-item:hover { background: var(--surface2); }
.project-list-item.hidden { display: none; }
.sidebar-empty.hidden { display: none; }

.project-list-item .item-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    background: var(--surface2);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.project-list-item:hover .item-icon { background: var(--border2); }
.project-list-item .item-icon svg { width: 14px; height: 14px; color: var(--text-muted); }

.project-list-item .item-info { flex: 1; min-width: 0; }
.project-list-item .item-name {
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text);
}
.project-list-item .item-meta {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 1px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.item-meta-date {
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-pw-label {
    font-size: 10px;
    font-family: 'IBM Plex Mono', monospace;
    color: #60a5fa;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-actions {
    display: flex;
    gap: 2px;
    opacity: 0;
    transition: opacity .15s;
    flex-shrink: 0;
}
.project-list-item:hover .item-actions { opacity: 1; }

.item-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--text-muted);
    border-radius: 4px;
    transition: color .15s, background .15s;
    line-height: 0;
}
.item-btn svg { width: 13px; height: 13px; display: block; }
.item-btn:hover { color: var(--text); background: var(--border); }
.item-btn.item-btn-delete:hover  { color: var(--error); background: rgba(239,68,68,.1); }
.item-btn.item-btn-protect:hover { color: #86efac; background: rgba(34,197,94,.1); }
.item-btn.item-btn-key:hover     { color: #60a5fa; background: rgba(96,165,250,.1); }

.item-link {
    color: var(--text);
    text-decoration: none;
    transition: color .15s;
}
.item-link:hover { color: var(--text-dim); }

.item-unprotected {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--warning);
    flex-shrink: 0;
    margin-left: 2px;
}


.dashboard-main {
    flex: 1;
    overflow-y: auto;
    padding: 40px 40px;
}

/* ── UPLOAD ZONE ── */
.upload-section {}

.drop-zone {
    border: 2px dashed var(--border2);
    border-radius: var(--radius-lg);
    background: var(--surface);
    transition: border-color .2s, background .2s;
    cursor: pointer;
}

.drop-zone:hover,
.drop-zone.drag-over {
    border-color: #555;
    background: var(--surface2);
}

.drop-zone.drag-over {
    border-color: var(--accent);
    background: rgba(255,255,255,.04);
}

.drop-zone-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 32px;
    gap: 10px;
    pointer-events: none;
}

.drop-icon {
    width: 40px;
    height: 40px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.drop-title {
    font-size: 15px;
    font-weight: 500;
}

.drop-sub {
    font-size: 13px;
    color: var(--text-muted);
}

.browse-link {
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    pointer-events: all;
}

/* ── PROJECTS GRID ── */
.section-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.count-badge {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 500;
    padding: 2px 8px;
    color: var(--text-muted);
}

.empty-state {
    color: var(--text-muted);
    padding: 40px 0;
    text-align: center;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.project-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    transition: border-color .15s;
    position: relative;
}
.project-card:hover { border-color: var(--border2); }

.project-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    background: var(--surface2);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}
.project-icon svg { width: 18px; height: 18px; color: var(--text-muted); }

.project-info { flex: 1; min-width: 0; }

.project-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.project-url {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-muted);
    transition: color .15s;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.project-url:hover { color: var(--text); }

.external-icon { width: 10px; height: 10px; flex-shrink: 0; }

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
    font-size: 11px;
    color: var(--text-muted);
}

.card-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity .15s;
}
.project-card:hover .card-actions { opacity: 1; }

.btn-preview,
.btn-delete {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    color: var(--text-muted);
    border-radius: 4px;
    transition: color .15s, background .15s;
    line-height: 0;
}
.btn-preview svg,
.btn-delete svg  { width: 15px; height: 15px; display: block; }

.btn-preview:hover  { color: var(--text); background: var(--surface2); }
.btn-protect:hover  { color: #86efac; background: rgba(34,197,94,.1); }
.btn-delete:hover   { color: var(--error); background: rgba(239,68,68,.1); }

.badge-unprotected {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    background: rgba(245,158,11,.12);
    border: 1px solid rgba(245,158,11,.3);
    color: #fcd34d;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: .04em;
    white-space: nowrap;
}

/* ── SETTINGS ── */
.settings-section {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.settings-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    max-width: 520px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0 auto;
}

.settings-note {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.settings-group {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.settings-group:last-of-type { border-bottom: none; }

.settings-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.settings-sublabel {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.settings-required { color: var(--error); }

.settings-input {
    width: 100%;
    background: var(--surface2);
    border: 1px solid var(--border2);
    border-radius: var(--radius);
    padding: 10px 14px;
    color: var(--text);
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color .15s;
    margin-top: 2px;
}
.settings-input:focus { border-color: #555; }
.settings-input::placeholder { color: var(--text-muted); }

.settings-divider {
    height: 1px;
    background: var(--border2);
    margin: 4px 0;
}

.settings-footer {
    padding-top: 24px;
}

.alert.hidden { display: none; }

/* ── PREVIEW PANEL ── */
.preview-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 150;
}
.preview-overlay.hidden { display: none; }

.preview-panel {
    position: fixed;
    top: 60px;
    right: 0;
    bottom: 0;
    width: 65%;
    min-width: 480px;
    background: var(--surface);
    border-left: 1px solid var(--border2);
    z-index: 151;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform .25s ease;
}
.preview-panel.hidden { display: none; }
.preview-panel.open   { transform: translateX(0); }

.preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    gap: 12px;
    flex-shrink: 0;
}

.preview-title {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    color: var(--text-dim);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.preview-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.btn-sm { padding: 5px 12px; font-size: 12px; }

.preview-frame {
    flex: 1;
    border: none;
    background: #fff;
}

/* ── HISTORY TABLE ── */
.history-section {}

.table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.history-table th {
    background: var(--surface);
    padding: 12px 16px;
    text-align: left;
    font-weight: 500;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.history-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
}
.history-table tr:last-child td { border-bottom: none; }
.history-table tbody tr:hover td { background: var(--surface); }

.td-folder { font-weight: 500; font-family: 'IBM Plex Mono', monospace; }
.td-user   { color: var(--text-dim); max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.td-date   { color: var(--text-dim); white-space: nowrap; }
.td-num    { color: var(--text-dim); }

.table-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    transition: color .15s;
}
.table-link:hover { color: var(--text); }

/* ── MODAL ── */
.modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.hidden { display: none; }

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.7);
    backdrop-filter: blur(4px);
}

.modal-box {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border2);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 560px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    z-index: 1;
}

.modal-box-sm { max-width: 400px; }

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 0;
}

.modal-header h2 { font-size: 16px; font-weight: 600; }

.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 4px;
    line-height: 1;
    transition: color .15s;
}
.modal-close:hover { color: var(--text); }

.modal-body {
    padding: 20px 24px;
    overflow-y: auto;
    flex: 1;
}

.modal-footer {
    padding: 16px 24px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid var(--border);
}

/* ── FOLDER NAME INPUT ── */
.folder-name-row {
    margin-bottom: 16px;
}

.folder-name-row label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text-muted);
    margin-bottom: 6px;
    font-weight: 500;
}

.folder-name-input-wrap {
    display: flex;
    align-items: center;
    background: var(--surface2);
    border: 1px solid var(--border2);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color .15s;
}
.folder-name-input-wrap:focus-within { border-color: #555; }

.folder-prefix {
    padding: 9px 0 9px 12px;
    color: var(--text-muted);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 14px;
    flex-shrink: 0;
}

.folder-name-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    padding: 9px 12px 9px 4px;
    color: var(--text);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 14px;
}

.folder-name-hint {
    margin-top: 6px;
    font-size: 12px;
}
.folder-name-hint.error   { color: var(--error); }
.folder-name-hint.warning { color: var(--warning); }
.folder-name-hint.hidden  { display: none; }

/* ── PASSWORD MODAL CURRENT ROW ── */
.pw-current-row {
    margin-bottom: 16px;
}

.pw-current-wrap {
    display: flex;
    gap: 8px;
    align-items: center;
}

.pw-current-input {
    font-family: 'IBM Plex Mono', monospace !important;
    letter-spacing: 0.04em;
    flex: 1;
}

.pw-change-section {
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

/* ── PROJECT PASSWORD ROW ── */
.project-pw-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 0 0;
    margin-top: 12px;
    border-top: 1px solid var(--border);
}

.project-pw-label {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text-muted);
}

.project-pw-optional {
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    opacity: .7;
}

.project-pw-sub {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ── FILE TREE ── */
.file-tree {
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 12px;
    max-height: 240px;
    overflow-y: auto;
    margin-bottom: 14px;
}

.tree-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 2px 0;
    white-space: nowrap;
}

.tree-item.blocked { color: var(--error); }
.tree-item.allowed { color: var(--text-dim); }

.tree-indent { display: inline-block; width: 16px; flex-shrink: 0; }

.tree-icon { flex-shrink: 0; }

.tree-more {
    color: var(--text-muted);
    padding: 4px 0 0;
    font-size: 11px;
}

/* ── VALIDATION SUMMARY ── */
.validation-summary {
    font-size: 13px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
    border-bottom: 1px solid var(--border);
}
.summary-row:last-child { border-bottom: none; }

.summary-label { color: var(--text-muted); }
.summary-value { font-weight: 500; }
.summary-value.error   { color: var(--error); }
.summary-value.success { color: var(--success); }
.summary-value.warning { color: var(--warning); }

.validation-warning {
    margin-top: 12px;
    padding: 10px 12px;
    background: rgba(239,68,68,.1);
    border: 1px solid rgba(239,68,68,.25);
    border-radius: var(--radius);
    color: #fca5a5;
    font-size: 12px;
    line-height: 1.8;
}

.validation-warning code {
    background: rgba(255,255,255,.1);
    border-radius: 3px;
    padding: 1px 5px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
}

/* ── PROGRESS ── */
.progress-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.75);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 300;
}
.progress-overlay.hidden { display: none; }

.progress-box {
    background: var(--surface);
    border: 1px solid var(--border2);
    border-radius: var(--radius-lg);
    padding: 32px 40px;
    text-align: center;
    min-width: 280px;
}

.progress-label { font-weight: 500; margin-bottom: 16px; }

.progress-bar-wrap {
    height: 4px;
    background: var(--surface2);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-bar {
    height: 100%;
    background: var(--accent);
    border-radius: 2px;
    transition: width .1s;
}

.progress-pct { font-size: 13px; color: var(--text-muted); }

/* ── TOAST ── */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--surface);
    border: 1px solid var(--border2);
    border-radius: var(--radius);
    padding: 12px 18px;
    font-size: 13px;
    font-weight: 500;
    z-index: 400;
    box-shadow: 0 8px 32px rgba(0,0,0,.4);
    transform: translateY(0);
    transition: transform .2s, opacity .2s;
    max-width: 320px;
}
.toast.hidden { display: none; }
.toast.success { border-color: rgba(34,197,94,.3); color: #86efac; }
.toast.error   { border-color: rgba(239,68,68,.3); color: #fca5a5; }

.muted { color: var(--text-muted); }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #444; }
