/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg:           #0f1117;
    --surface:      #1a1d27;
    --surface-2:    #232736;
    --surface-3:    #2a2f45;
    --border:       #2e3350;
    --accent:       #6c63ff;
    --accent-hover: #5a52e0;
    --accent-light: rgba(108,99,255,0.15);
    --danger:       #e05c5c;
    --danger-hover: #c94a4a;
    --success:      #4caf84;
    --warning:      #f5a623;
    --info:         #3b9ede;
    --text:         #e8eaf0;
    --text-muted:   #8890aa;
    --text-subtle:  #5a6080;
    --radius:       8px;
    --radius-sm:    5px;
    --radius-lg:    12px;
    --shadow:       0 4px 24px rgba(0,0,0,0.45);
    --shadow-sm:    0 2px 8px rgba(0,0,0,0.3);
    --transition:   0.18s ease;
    --sidebar-w:    260px;
}

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== APP LAYOUT ===== */
.app-layout {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* ===== SIDEBAR ===== */
.sidebar {
    width: var(--sidebar-w);
    min-width: var(--sidebar-w);
    background: var(--surface);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    flex-shrink: 0;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 16px;
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    letter-spacing: -0.3px;
}

.sidebar-nav { flex: 1; padding: 8px 0; }

.nav-section { padding: 4px 0 8px; }

.nav-section-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 16px 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-subtle);
}

.btn-add-folder {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 2px;
    display: flex;
    align-items: center;
    border-radius: var(--radius-sm);
    transition: color var(--transition), background var(--transition);
}
.btn-add-folder svg { width: 14px; height: 14px; }
.btn-add-folder:hover { color: var(--accent); background: var(--accent-light); }

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 16px;
    color: var(--text-muted);
    font-size: 13.5px;
    transition: background var(--transition), color var(--transition);
    cursor: pointer;
    border-left: 2px solid transparent;
    text-decoration: none;
    position: relative;
}
.nav-item svg { width: 16px; height: 16px; flex-shrink: 0; }
.nav-item:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.nav-item.active { background: var(--accent-light); color: var(--accent); border-left-color: var(--accent); }
.nav-item.active svg { stroke: var(--accent); }

.nav-count {
    margin-left: auto;
    background: var(--surface-3);
    color: var(--text-muted);
    font-size: 11px;
    padding: 1px 6px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
}

.nav-folder-item { padding-right: 8px; }
.folder-label { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.folder-item-count { font-size: 11px; color: var(--text-subtle); margin-right: 4px; }
.folder-actions { display: none; gap: 2px; }
.nav-folder-item:hover .folder-actions { display: flex; }
.folder-btn {
    background: none; border: none; cursor: pointer; padding: 3px;
    color: var(--text-muted); border-radius: 4px; display: flex; align-items: center;
    transition: color var(--transition), background var(--transition);
}
.folder-btn svg { width: 13px; height: 13px; }
.folder-btn:hover { color: var(--text); background: var(--surface-3); }
.folder-btn-danger:hover { color: var(--danger); background: rgba(224,92,92,0.1); }

.sidebar-footer {
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-user { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }

.user-avatar {
    width: 30px; height: 30px;
    background: var(--accent);
    color: white; font-weight: 700;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; flex-shrink: 0;
}

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

.btn-logout {
    background: none; border: none; color: var(--text-muted); cursor: pointer;
    padding: 6px; border-radius: var(--radius-sm); display: flex; align-items: center;
    transition: color var(--transition), background var(--transition);
}
.btn-logout svg { width: 16px; height: 16px; }
.btn-logout:hover { color: var(--danger); background: rgba(224,92,92,0.1); }

/* ===== MAIN CONTENT ===== */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.topbar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 24px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}

.topbar-title {
    font-size: 16px; font-weight: 600;
    margin: 0; flex: 1;
}

.back-link {
    display: flex; align-items: center; gap: 6px;
    color: var(--text-muted); font-size: 13px;
    text-decoration: none;
    transition: color var(--transition);
    flex-shrink: 0;
}
.back-link svg { width: 16px; height: 16px; }
.back-link:hover { color: var(--text); text-decoration: none; }

.search-form { flex: 1; max-width: 500px; }

.search-input-wrap {
    position: relative;
    display: flex; align-items: center;
}

.search-icon {
    position: absolute; left: 11px;
    width: 15px; height: 15px;
    color: var(--text-subtle); pointer-events: none;
}

.search-input {
    width: 100%;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 7px 12px 7px 34px;
    border-radius: var(--radius);
    font-size: 13.5px;
    transition: border-color var(--transition);
}
.search-input:focus { outline: none; border-color: var(--accent); }

.topbar-actions { display: flex; align-items: center; gap: 10px; }

.content-area {
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px;
}

/* ===== SECTION HEADER ===== */
.section-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 16px;
}

.section-title { font-size: 15px; font-weight: 600; }

.item-count { font-size: 12px; color: var(--text-muted); }

/* ===== TYPE SHORTCUTS ===== */
.type-shortcuts {
    display: flex; gap: 8px; margin-bottom: 20px;
}

.shortcut-btn {
    display: flex; align-items: center; gap: 7px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 7px 14px;
    border-radius: var(--radius);
    font-size: 13px;
    text-decoration: none;
    transition: all var(--transition);
}
.shortcut-btn svg { width: 14px; height: 14px; }
.shortcut-btn:hover {
    background: var(--accent-light); border-color: var(--accent);
    color: var(--accent); text-decoration: none;
}

/* ===== ITEM LIST ===== */
.item-list { display: flex; flex-direction: column; gap: 1px; }

.item-row {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    transition: border-color var(--transition), background var(--transition);
    flex-wrap: wrap;
    margin-bottom: 2px;
}
.item-row:hover { background: var(--surface-2); border-color: var(--surface-3); }

.item-icon {
    width: 36px; height: 36px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.item-icon svg { width: 18px; height: 18px; }
.icon-login { background: rgba(108,99,255,0.15); color: var(--accent); }
.icon-login svg { stroke: var(--accent); }
.icon-card { background: rgba(76,175,132,0.15); color: var(--success); }
.icon-card svg { stroke: var(--success); }
.icon-note { background: rgba(245,166,35,0.15); color: var(--warning); }
.icon-note svg { stroke: var(--warning); }

.item-content { flex: 1; min-width: 0; }

.item-name {
    font-size: 14px; font-weight: 600;
    display: flex; align-items: center; gap: 6px;
}

.badge-star { color: #f59e0b; font-size: 13px; }
.badge-archived {
    background: var(--surface-3); color: var(--text-muted);
    font-size: 10px; padding: 1px 6px; border-radius: 10px; font-weight: 500;
}

.item-meta {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
    font-size: 12px; color: var(--text-muted); margin-top: 2px;
}

.meta-url {
    max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    color: var(--text-subtle);
}

.note-preview { font-style: italic; }

.meta-folder {
    display: flex; align-items: center; gap: 3px;
    color: var(--text-subtle); font-size: 11px;
}

.item-actions {
    display: flex; align-items: center; gap: 4px;
    opacity: 0;
    transition: opacity var(--transition);
}
.item-row:hover .item-actions { opacity: 1; }

.action-btn {
    background: none; border: none; cursor: pointer;
    color: var(--text-muted);
    padding: 6px;
    border-radius: var(--radius-sm);
    display: flex; align-items: center;
    transition: color var(--transition), background var(--transition);
    text-decoration: none;
}
.action-btn svg { width: 15px; height: 15px; }
.action-btn:hover { color: var(--text); background: var(--surface-3); text-decoration: none; }
.action-btn-danger:hover { color: var(--danger); background: rgba(224,92,92,0.1); }

/* Reveal row */
.reveal-row {
    flex-basis: 100%;
    display: flex; align-items: center; gap: 8px;
    padding: 8px 0 4px;
    border-top: 1px solid var(--border);
    margin-top: 4px;
}

.reveal-input {
    flex: 1; font-family: monospace; font-size: 13px;
    background: var(--surface-3);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center; padding: 80px 20px; color: var(--text-muted);
}
.empty-icon { width: 64px; height: 64px; margin: 0 auto 20px; opacity: 0.3; }
.empty-icon svg { width: 100%; height: 100%; }
.empty-state p { font-size: 15px; }

/* ===== MODALS ===== */
.modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.6); }
.modal-box {
    position: relative; background: var(--surface-2);
    border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 28px; min-width: 360px; max-width: 480px; width: 90%;
    box-shadow: var(--shadow);
}
.modal-box h3 { font-size: 16px; font-weight: 600; margin-bottom: 16px; }
.modal-actions { display: flex; gap: 10px; margin-top: 20px; justify-content: flex-end; }

/* ===== FORMS ===== */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
label { font-size: 13px; font-weight: 500; color: var(--text-muted); }
.label-optional { font-weight: 400; font-size: 12px; color: var(--text-subtle); }
.label-hint { font-size: 11px; color: var(--text-subtle); font-weight: 400; }

input[type=text], input[type=email], input[type=password], input[type=url],
input[type=number], select, textarea {
    background: var(--surface-2);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 9px 12px;
    border-radius: var(--radius);
    font-size: 14px;
    font-family: inherit;
    transition: border-color var(--transition);
    width: 100%;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
textarea { resize: vertical; min-height: 80px; }
select { cursor: pointer; }

input[type=file].file-input {
    padding: 8px 10px;
    cursor: pointer;
}

.form-row { display: flex; gap: 14px; }
.form-group-half { flex: 1; }
.form-group-third { flex: 1; }

.expiry-row { display: flex; align-items: center; gap: 8px; }
.expiry-row span { color: var(--text-muted); }
.expiry-row select { flex: 1; }

.checkbox-group {
    display: flex; align-items: center; gap: 8px;
    cursor: pointer; font-size: 13px; color: var(--text-muted);
    padding: 4px 0;
}
.checkbox-group input[type=checkbox] { width: auto; cursor: pointer; accent-color: var(--accent); }

.field-error { font-size: 12px; color: var(--danger); }
.field-hint { font-size: 12px; color: var(--text-subtle); margin-top: 3px; }

.input-with-toggle {
    position: relative; display: flex; align-items: center;
}
.input-with-toggle input { padding-right: 72px; }
.toggle-btn {
    position: absolute; right: 4px;
    background: none; border: none; cursor: pointer;
    color: var(--text-subtle); padding: 5px;
    display: flex; align-items: center;
    border-radius: var(--radius-sm);
    transition: color var(--transition);
}
.toggle-btn + .toggle-btn { right: 34px; }
.toggle-btn svg { width: 16px; height: 16px; }
.toggle-btn:hover { color: var(--accent); }
.eye-icon { width: 16px; height: 16px; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 8px 16px; border-radius: var(--radius);
    font-size: 13.5px; font-weight: 500; cursor: pointer;
    border: 1px solid transparent;
    transition: all var(--transition);
    text-decoration: none; font-family: inherit;
}
.btn:hover { text-decoration: none; }
.btn svg { width: 15px; height: 15px; }

.btn-primary {
    background: var(--accent); color: white; border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: white; }

.btn-secondary {
    background: var(--surface-2); color: var(--text); border-color: var(--border);
}
.btn-secondary:hover { background: var(--surface-3); color: var(--text); }

.btn-ghost {
    background: transparent; color: var(--text-muted); border-color: var(--border);
}
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }

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

.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-lg { padding: 11px 22px; font-size: 15px; }
.btn-full, .btn-block { width: 100%; justify-content: center; }

/* ===== QUICK-ADD ROW (dashboard) ===== */
.quick-add-row {
    display: flex; gap: 8px; margin-bottom: 20px;
}
.quick-add-btn {
    display: flex; align-items: center; gap: 6px;
    background: var(--accent-light);
    border: 1px dashed var(--accent);
    color: var(--accent);
    padding: 6px 14px;
    border-radius: var(--radius);
    font-size: 13px; font-weight: 500;
    text-decoration: none;
    transition: all var(--transition);
}
.quick-add-btn svg { width: 13px; height: 13px; }
.quick-add-btn:hover { background: var(--accent); color: white; text-decoration: none; }

/* ===== AUTH PAGES ===== */
.auth-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; }

.auth-wrapper { width: 100%; max-width: 420px; padding: 24px 16px; }

.auth-brand {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    margin-bottom: 28px;
}
.brand-icon { display: flex; }
.brand-name { font-size: 22px; font-weight: 700; letter-spacing: -0.5px; }

.auth-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow);
}

.auth-title { font-size: 18px; font-weight: 700; margin-bottom: 20px; }
.auth-subtitle { font-size: 13px; color: var(--text-muted); margin-top: -14px; margin-bottom: 20px; }

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

.auth-link-row { margin-top: 16px; text-align: center; }

.link-subtle { font-size: 13px; color: var(--text-muted); }
.link-subtle:hover { color: var(--accent); }

.auth-footer-text { text-align: center; font-size: 13px; color: var(--text-muted); margin-top: 20px; }

/* ===== STRENGTH METER ===== */
.strength-wrapper { margin-top: 6px; }

.strength-bar {
    height: 4px; background: var(--surface-3);
    border-radius: 2px; overflow: hidden; margin-bottom: 4px;
}
#strength-fill {
    height: 100%; width: 0;
    border-radius: 2px;
    transition: width 0.3s ease, background 0.3s ease;
}
.strength-text { font-size: 11px; color: var(--text-muted); }

/* ===== ALERTS ===== */
.alert {
    padding: 11px 14px;
    border-radius: var(--radius);
    font-size: 13px;
    margin-bottom: 16px;
    border-left: 3px solid;
}
.alert-error { background: rgba(224,92,92,0.12); border-color: var(--danger); color: #f08080; }
.alert-success { background: rgba(76,175,132,0.12); border-color: var(--success); color: #7dc7a0; }
.alert-info { background: rgba(59,158,222,0.12); border-color: var(--info); color: #7ab8d9; }
.alert-warning { background: rgba(245,166,35,0.12); border-color: var(--warning); color: #d4a04e; }

/* ===== ITEM FORM PAGE ===== */
.form-content { max-width: 720px; margin: 0 auto; }

.type-tabs {
    display: flex; gap: 4px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 4px;
    margin-bottom: 24px;
}

.type-tab {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px;
    padding: 8px 12px;
    background: none; border: none; cursor: pointer;
    color: var(--text-muted); font-size: 13px; font-weight: 500;
    border-radius: 6px;
    transition: all var(--transition);
}
.type-tab svg { width: 15px; height: 15px; }
.type-tab:hover { background: var(--surface-3); color: var(--text); }
.type-tab.active { background: var(--accent); color: white; }
.type-tab.active svg { stroke: white; }

.form-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 16px;
}

.section-label {
    font-size: 12px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.6px;
    color: var(--text-subtle); margin-bottom: 16px;
}

.form-actions {
    display: flex; gap: 10px; align-items: center;
    padding: 8px 0 20px;
}

/* ===== GENERATOR PANEL (inline) ===== */
.generator-panel {
    background: var(--surface-3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin: 8px 0 12px;
}

.generator-top {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 12px;
}
.generator-title { font-size: 13px; font-weight: 600; }

.generator-preview {
    display: flex; gap: 8px; margin-bottom: 12px;
}
.gen-preview-input {
    flex: 1; font-family: monospace; font-size: 13px;
    background: var(--surface-2); border: 1px solid var(--border);
    color: var(--text); padding: 7px 10px; border-radius: var(--radius-sm);
}

.generator-controls .range-label {
    display: flex; align-items: center; gap: 10px;
    font-size: 13px; color: var(--text-muted);
    margin-bottom: 10px;
}
.generator-controls input[type=range] { flex: 1; accent-color: var(--accent); }

.checkbox-row { display: flex; flex-wrap: wrap; gap: 12px; }
.checkbox-label {
    display: flex; align-items: center; gap: 6px;
    font-size: 12.5px; color: var(--text-muted); cursor: pointer;
}
.checkbox-label input[type=checkbox] { width: auto; accent-color: var(--accent); }

/* ===== PASSWORD GENERATOR PAGE ===== */
.generator-page { max-width: 600px; }

.gen-mode-tabs {
    display: flex; gap: 4px;
    background: var(--surface-2); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 4px; margin-bottom: 20px;
    width: fit-content;
}
.gen-mode-tab {
    padding: 7px 20px; background: none; border: none;
    cursor: pointer; color: var(--text-muted); font-size: 13px; font-weight: 500;
    border-radius: 6px; transition: all var(--transition);
}
.gen-mode-tab:hover { background: var(--surface-3); color: var(--text); }
.gen-mode-tab.active { background: var(--accent); color: white; }

.gen-output-row {
    display: flex; gap: 10px; align-items: center;
    margin-bottom: 16px;
}

.gen-output {
    flex: 1; font-family: monospace; font-size: 15px; font-weight: 600;
    background: var(--surface-2); border: 1px solid var(--border);
    color: var(--text); padding: 10px 14px;
    border-radius: var(--radius);
    letter-spacing: 0.5px;
}

.copy-toast {
    position: fixed; bottom: 24px; right: 24px;
    background: var(--success); color: white;
    padding: 10px 18px; border-radius: var(--radius);
    font-size: 13px; font-weight: 500;
    box-shadow: var(--shadow);
    z-index: 9999;
}

.gen-options-panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 16px;
}

.gen-option-row { margin-bottom: 14px; }
.gen-option-row:last-child { margin-bottom: 0; }

.gen-opt-label {
    display: flex; align-items: center; gap: 12px;
    font-size: 13px; color: var(--text-muted); margin-bottom: 8px;
}
.gen-opt-label input[type=range] { flex: 1; accent-color: var(--accent); }

.gen-checkbox {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; color: var(--text-muted); cursor: pointer;
    margin-bottom: 8px;
}
.gen-checkbox input[type=checkbox] { width: auto; accent-color: var(--accent); }

.gen-sep-input {
    width: 60px; text-align: center;
    padding: 6px 8px; font-size: 13px;
}

.gen-strength {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 20px;
}
.gen-strength-bar { flex: 1; margin: 0; }
#gen-strength-fill {
    height: 100%; width: 0; border-radius: 2px;
    transition: width 0.3s ease, background 0.3s ease;
}

.gen-history { margin-top: 8px; }
.gen-history h3 { font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.history-list {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); overflow: hidden;
}
.history-item {
    display: flex; align-items: center; justify-content: space-between;
    padding: 9px 14px; font-family: monospace; font-size: 13px;
    border-bottom: 1px solid var(--border);
    transition: background var(--transition);
}
.history-item:last-child { border-bottom: none; }
.history-item:hover { background: var(--surface-2); }
.history-empty { padding: 20px; text-align: center; color: var(--text-subtle); font-size: 13px; }

/* ===== EXPORT / IMPORT ===== */
.export-import-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 20px; margin-bottom: 28px;
}

.ei-card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 24px;
}

.ei-card-header {
    display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.ei-card-header svg { width: 22px; height: 22px; color: var(--accent); stroke: var(--accent); }
.ei-card-header h2 { font-size: 16px; font-weight: 600; }

.ei-desc { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; line-height: 1.6; }

.format-info {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 24px;
}
.format-info h3 { font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.format-info p { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }
.code-block {
    background: var(--bg); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 16px;
    font-family: monospace; font-size: 12px;
    color: var(--text-muted); overflow-x: auto;
    white-space: pre;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .app-layout { flex-direction: column; height: auto; overflow: auto; }
    .sidebar { width: 100%; min-width: unset; height: auto; flex-direction: row; flex-wrap: wrap; }
    .main-content { height: auto; overflow: visible; }
    .content-area { overflow-y: visible; }
    .export-import-grid { grid-template-columns: 1fr; }
    .form-row { flex-direction: column; }
    .type-shortcuts { flex-wrap: wrap; }
    .item-actions { opacity: 1; }
}
