        /* ===== TODO O CSS ORIGINAL FOI MANTIDO ===== */
        *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
        :root {
            --bg-primary: #0a0a0f;
            --bg-secondary: #14141c;
            --bg-tertiary: #1d1d2a;
            --bg-card: rgba(24,24,36,0.82);
            --bg-glass: rgba(14,14,22,0.75);
            --bg-elevated: #1f1f2e;
            --text-primary: #f3eee5;
            --text-secondary: #b5ad9d;
            --text-muted: #6c6553;
            --accent-primary: #6b9dc7;
            --accent-secondary: #5fa572;
            --accent-warning: #d4a574;
            --accent-danger: #a14a4a;
            --accent-purple: #9c7ab0;
            --accent: #d4a574;
            --accent-hover: #e6b985;
            --accent-soft: rgba(212,165,116,0.14);
            --accent-strong: rgba(212,165,116,0.32);
            --border-color: rgba(212,165,116,0.12);
            --border-strong: rgba(212,165,116,0.25);
            --shadow-sm: 0 1px 2px rgba(0,0,0,0.45);
            --shadow-md: 0 6px 20px rgba(0,0,0,0.5);
            --shadow-lg: 0 16px 48px rgba(0,0,0,0.65);
            --shadow-glow: 0 0 20px rgba(212,165,116,0.25);
            --radius-sm: 8px; --radius-md: 12px; --radius-lg: 16px; --radius-xl: 24px;
            --transition-fast: 0.15s ease; --transition-normal: 0.25s ease;
            --transition-slow: 0.4s cubic-bezier(0.4,0,0.2,1);
            --header-height: 64px; --sidebar-width: 280px; --bottom-nav-height: 64px; --touch-target: 48px;
            --font-display: 'Fraunces', Georgia, serif;
            --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
            --gradient-page: radial-gradient(1200px 600px at 100% -8%, rgba(212,165,116,0.07), transparent 55%),
                             radial-gradient(800px 500px at -8% 100%, rgba(161,74,74,0.07), transparent 55%);
            --paper-texture: repeating-linear-gradient(0deg, rgba(255,255,255,0.01) 0 2px, transparent 2px 4px);
        }
        html[data-theme="light"] {
            --bg-primary: #f5f0e6;
            --bg-secondary: #fbf7ef;
            --bg-tertiary: #ede4d3;
            --bg-card: rgba(255,252,245,0.88);
            --bg-glass: rgba(251,247,239,0.82);
            --bg-elevated: #ffffff;
            --text-primary: #2a221a;
            --text-secondary: #6b5d4a;
            --text-muted: #9c8e75;
            --accent-primary: #4a78a3;
            --accent-secondary: #4a8559;
            --accent-warning: #b8821f;
            --accent-danger: #8a3a3a;
            --accent-purple: #7a5a8e;
            --accent: #8b5a2b;
            --accent-hover: #6f4621;
            --accent-soft: rgba(139,90,43,0.10);
            --accent-strong: rgba(139,90,43,0.22);
            --border-color: rgba(139,90,43,0.12);
            --border-strong: rgba(139,90,43,0.22);
            --shadow-sm: 0 1px 2px rgba(60,40,20,0.07);
            --shadow-md: 0 6px 20px rgba(60,40,20,0.12);
            --shadow-lg: 0 16px 48px rgba(60,40,20,0.20);
            --shadow-glow: 0 0 20px rgba(139,90,43,0.18);
            --gradient-page: radial-gradient(1200px 600px at 100% -8%, rgba(139,90,43,0.07), transparent 55%),
                             radial-gradient(800px 500px at -8% 100%, rgba(138,58,58,0.05), transparent 55%);
            --paper-texture: repeating-linear-gradient(0deg, rgba(60,40,20,0.012) 0 2px, transparent 2px 4px);
        }
        html { font-size: 16px; -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; }
        body {
            font-family: var(--font-body);
            background: var(--bg-primary); color: var(--text-primary);
            line-height: 1.6; min-height: 100vh; min-height: 100dvh;
            overflow-x: hidden; -webkit-font-smoothing: antialiased;
            transition: background-color .4s ease, color .4s ease;
        }
        body::before { content: ''; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
            background: var(--gradient-page); pointer-events: none; z-index: -2; }
        body::after { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: -1;
            background: var(--paper-texture); opacity: 0.5; }
        ::-webkit-scrollbar { width: 6px; height: 6px; }
        ::-webkit-scrollbar-track { background: var(--bg-secondary); }
        ::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }
        .header { position: fixed; top: 0; left: 0; right: 0; height: var(--header-height); background: var(--bg-glass); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid var(--border-color); display: flex; align-items: center; justify-content: space-between; padding: 0 16px; z-index: 100; }
        .header-left { display: flex; align-items: center; gap: 12px; }
        .menu-toggle { display: none; width: var(--touch-target); height: var(--touch-target); border: none; background: transparent; color: var(--text-secondary); cursor: pointer; border-radius: var(--radius-sm); transition: all var(--transition-fast); -webkit-tap-highlight-color: transparent; }
        .menu-toggle:hover { background: var(--bg-tertiary); color: var(--accent); }
        .menu-toggle svg { width: 22px; height: 22px; }
        .logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; letter-spacing: -0.02em; }
        .logo-icon { width: 36px; height: 36px; background: linear-gradient(135deg, var(--accent), #c97a7a); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(212,165,116,0.28), inset 0 1px 0 rgba(255,255,255,0.2); color: #14141c; }
        .logo-icon svg { width: 19px; height: 19px; }
        .header-profile { display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 5px 12px 5px 5px; border-radius: 999px; border: 1px solid transparent; transition: all var(--transition-fast); -webkit-tap-highlight-color: transparent; }
        .header-profile:hover { background: var(--bg-tertiary); border-color: var(--border-color); }
        .header-avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), #c97a7a); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.95rem; color: #14141c; overflow: hidden; flex-shrink: 0; border: 2px solid var(--accent-strong); }
        .header-avatar img { width: 100%; height: 100%; object-fit: cover; }
        .header-user-info { display: flex; flex-direction: column; line-height: 1.2; }
        .header-user-name { font-size: 0.85rem; font-weight: 600; color: var(--text-primary); }
        .header-user-role { font-size: 0.68rem; color: var(--text-muted); letter-spacing: 0.02em; }
        .theme-toggle { width: var(--touch-target); height: var(--touch-target); display: grid; place-items: center; border-radius: 10px; color: var(--text-secondary); cursor: pointer; border: none; background: none; transition: all var(--transition-normal); }
        .theme-toggle:hover { background: var(--bg-tertiary); color: var(--accent); transform: rotate(-15deg); }
        .theme-toggle svg { width: 19px; height: 19px; }
        html[data-theme="light"] .theme-toggle .icon-sun { display: none; }
        html:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
        .bottom-nav {
            display: none; position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom, 0));
            z-index: 120; padding: 0; background: transparent; border: none; height: auto;
        }
        .bottom-nav-inner {
            display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: end; gap: 8px;
            max-width: 680px; margin: 0 auto; padding: 10px 10px 12px;
            background: color-mix(in srgb, var(--bg-secondary) 82%, transparent);
            border: 1px solid rgba(212,165,116,0.14);
            border-radius: 24px; box-shadow: 0 18px 42px rgba(0,0,0,0.34);
            backdrop-filter: saturate(180%) blur(22px); -webkit-backdrop-filter: saturate(180%) blur(22px);
        }
        .nav-item {
            display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
            min-height: 54px; padding: 8px 6px; border: none; background: transparent; color: var(--text-muted);
            font-size: 0.68rem; font-weight: 700; cursor: pointer; border-radius: 18px; transition: all var(--transition-fast);
            -webkit-tap-highlight-color: transparent; text-transform: none; letter-spacing: 0.01em;
        }
        .nav-item svg { width: 21px; height: 21px; }
        .nav-item .nav-label { line-height: 1; }
        .nav-item.active {
            color: var(--accent); background: linear-gradient(180deg, rgba(212,165,116,0.14), rgba(212,165,116,0.06));
            box-shadow: inset 0 0 0 1px rgba(212,165,116,0.16);
        }
        .nav-item:active { transform: translateY(1px) scale(0.97); }
        .nav-item-add {
            width: 62px; height: 62px; min-height: 62px; margin: -26px auto 0;
            border-radius: 999px; background: linear-gradient(135deg, var(--accent), #c97a7a); color: #14141c;
            box-shadow: 0 14px 30px rgba(212,165,116,0.34), inset 0 1px 0 rgba(255,255,255,0.24);
        }
        .nav-item-add:hover, .nav-item-add:active { color: #14141c; }
        .nav-item-add svg { width: 24px; height: 24px; }
        .nav-item-add .nav-label { font-size: 0.62rem; font-weight: 800; }
        .app-container { display: flex; padding-top: var(--header-height); min-height: 100vh; min-height: 100dvh; }
        .sidebar { position: fixed; top: var(--header-height); left: 0; width: var(--sidebar-width); height: calc(100vh - var(--header-height)); height: calc(100dvh - var(--header-height)); background: var(--bg-secondary); border-right: 1px solid var(--border-color); padding: 20px 14px; overflow-y: auto; transition: transform var(--transition-slow); z-index: 90; }
        .sidebar-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); z-index: 85; opacity: 0; visibility: hidden; transition: all var(--transition-normal); }
        .sidebar-overlay.active { opacity: 1; visibility: visible; }
        .sidebar-section { margin-bottom: 24px; }
        .sidebar-title { font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.14em; color: var(--text-secondary); margin-bottom: 10px; padding: 0 12px; }
        .stat-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 14px; margin-bottom: 10px; backdrop-filter: blur(10px); transition: all var(--transition-fast); }
        .stat-card:hover { border-color: var(--border-strong); }
        .stat-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
        .stat-label { font-size: 0.82rem; font-weight: 700; color: var(--text-primary); text-shadow: 0 1px 0 rgba(0,0,0,0.18); }
        .stat-icon { width: 32px; height: 32px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; box-shadow: 0 3px 8px rgba(0,0,0,0.25); }
        .stat-icon svg { width: 17px; height: 17px; }
        .stat-icon.blue { background: linear-gradient(135deg, #6b9dc7, #4a78a3); color: white; }
        .stat-icon.green { background: linear-gradient(135deg, #5fa572, #3e8554); color: white; }
        .stat-icon.yellow { background: linear-gradient(135deg, #d4a574, #b8821f); color: white; }
        .stat-icon.purple { background: linear-gradient(135deg, #9c7ab0, #7a5a8e); color: white; }
        .stat-icon.gold { background: linear-gradient(135deg, #d4a574, #c97a7a); color: white; }
        .stat-value { font-family: var(--font-display); font-size: 1.65rem; font-weight: 700; letter-spacing: -0.02em; color: var(--text-primary); }
        .chart-container { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 16px; backdrop-filter: blur(10px); color: var(--text-primary); }
        .btn-export { border-color: rgba(212,165,116,0.32); }
        .btn-export:hover { border-color: var(--accent); }
        .btn-import { background: rgba(95,165,114,0.14); border-color: rgba(95,165,114,0.38); color: #dff3e4; }
        .btn-import:hover { background: rgba(95,165,114,0.22); border-color: var(--accent-secondary); color: #f3eee5; }
        html[data-theme="light"] .btn-import { color: #23412b; background: rgba(95,165,114,0.12); }
        html[data-theme="light"] .btn-import:hover { color: #1f3525; }
        .main-content { flex: 1; margin-left: var(--sidebar-width); padding: 24px; width: calc(100% - var(--sidebar-width)); }
        .page-section { display: none; }
        .page-section.active { display: block; animation: fadeIn 0.3s ease; }
        @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
        .profile-container { max-width: 800px; margin: 0 auto; }
        .profile-header { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 32px; text-align: center; margin-bottom: 24px; position: relative; overflow: hidden; backdrop-filter: blur(12px); }
        .profile-header::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 110px; background: linear-gradient(135deg, var(--accent), #c97a7a); opacity: 0.18; }
        .profile-avatar-container { position: relative; display: inline-block; margin-bottom: 16px; z-index: 1; }
        .profile-avatar { width: 120px; height: 120px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), #c97a7a); display: flex; align-items: center; justify-content: center; font-size: 3rem; font-weight: 700; color: #14141c; border: 4px solid var(--bg-secondary); position: relative; z-index: 1; overflow: hidden; box-shadow: var(--shadow-lg); }
        .profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
        .profile-avatar-upload { position: absolute; bottom: 2px; right: 2px; width: 34px; height: 34px; background: var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; border: 3px solid var(--bg-secondary); z-index: 2; transition: all var(--transition-fast); -webkit-tap-highlight-color: transparent; box-shadow: var(--shadow-md); }
        .profile-avatar-upload:active { transform: scale(0.95); }
        .profile-avatar-upload svg { width: 14px; height: 14px; color: #14141c; }
        .profile-avatar-upload input { display: none; }
        .profile-name { font-family: var(--font-display); font-size: 1.65rem; font-weight: 700; margin-bottom: 4px; position: relative; z-index: 1; letter-spacing: -0.02em; }
        .profile-name-edit { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; }
        .profile-name-input { background: transparent; border: none; border-bottom: 2px solid var(--accent); color: var(--text-primary); font-size: 1.65rem; font-weight: 700; text-align: center; width: 200px; padding: 4px 8px; outline: none; font-family: var(--font-display); }
        .profile-name-input:focus { background: var(--accent-soft); border-radius: 8px 8px 0 0; }
        .edit-name-btn { background: transparent; border: none; color: var(--text-muted); cursor: pointer; padding: 6px; border-radius: 8px; transition: all var(--transition-fast); }
        .edit-name-btn:hover { color: var(--accent); background: var(--accent-soft); }
        .edit-name-btn svg { width: 15px; height: 15px; }
        .profile-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; position: relative; z-index: 1; }
        .profile-stat { background: var(--bg-tertiary); border: 1px solid var(--border-color); padding: 14px 10px; border-radius: var(--radius-md); transition: all var(--transition-fast); }
        .profile-stat:hover { border-color: var(--accent); transform: translateY(-2px); }
        .profile-stat-value { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--accent); line-height: 1; }
        .profile-stat-label { font-size: 0.72rem; color: var(--text-secondary); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.08em; }
        .profile-form-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 22px; margin-bottom: 20px; backdrop-filter: blur(10px); }
        .profile-form-title { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid rgba(212,165,116,0.1); display: flex; align-items: center; gap: 10px; letter-spacing: -0.01em; }
        .profile-form-title svg { width: 18px; height: 18px; color: var(--accent); }
        .form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
        .form-group { display: flex; flex-direction: column; gap: 6px; }
        .form-group.full-width { grid-column: span 2; }
        .form-label { font-size: 0.72rem; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.08em; }
        .form-input, .form-select, .form-textarea { padding: 10px 14px; background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: var(--radius-md); color: var(--text-primary); font-size: 0.9rem; font-family: inherit; transition: all var(--transition-fast); min-height: var(--touch-target); -webkit-appearance: none; }
        .form-input:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
        .form-textarea { min-height: 100px; resize: vertical; }
        .form-select { cursor: pointer; background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(-45deg, transparent 50%, var(--text-muted) 50%); background-position: calc(100% - 14px) 50%, calc(100% - 9px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 36px; background-color: var(--bg-secondary); }
        .checkbox-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 7px; max-height: 200px; overflow-y: auto; padding: 12px; background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: var(--radius-md); }
        .checkbox-item { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--bg-tertiary); border: 1px solid var(--border-color); border-radius: var(--radius-sm); cursor: pointer; transition: all var(--transition-fast); font-size: 0.82rem; }
        .checkbox-item:hover { border-color: var(--accent); }
        .checkbox-item input { display: none; }
        .checkbox-item.checked { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
        .checkbox-mark { width: 16px; height: 16px; border: 2px solid var(--border-strong); border-radius: 4px; display: flex; align-items: center; justify-content: center; transition: all var(--transition-fast); flex-shrink: 0; }
        .checkbox-item.checked .checkbox-mark { background: var(--accent); border-color: var(--accent); color: #14141c; }
        .checkbox-mark svg { width: 11px; height: 11px; }
        .checkbox-item.checked .checkbox-mark svg { opacity: 1; }
        .checkbox-mark svg { opacity: 0; }
        .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border: 1px solid transparent; border-radius: var(--radius-md); font-size: 0.88rem; font-weight: 600; font-family: inherit; cursor: pointer; transition: all var(--transition-fast); min-height: var(--touch-target); -webkit-tap-highlight-color: transparent; letter-spacing: 0.01em; }
        .btn svg { width: 16px; height: 16px; }
        .btn:active { transform: scale(0.98); }
        .btn-primary { background: var(--accent); color: #14141c; box-shadow: 0 4px 14px rgba(212,165,116,0.3); border-color: transparent; }
        .btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(212,165,116,0.4); }
        .btn-secondary { background: transparent; color: var(--text-primary); border-color: var(--border-strong); }
        .btn-secondary:hover { background: var(--bg-tertiary); border-color: var(--accent); color: var(--accent); }
        .btn-danger { background: var(--accent-danger); color: #fff; }
        .btn-danger:hover { filter: brightness(1.15); }
        .btn-success { background: var(--accent-secondary); color: white; }
        .btn-sm { padding: 6px 12px; font-size: 0.8rem; min-height: 34px; }
        .btn-sm svg { width: 14px; height: 14px; }
        .form-actions { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
        .chart-grid-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
        @media (max-width: 600px) { .chart-grid-2col { grid-template-columns: 1fr; } }
        .profile-fav-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; }
        .profile-fav-item { cursor: pointer; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--accent-strong); background: var(--bg-tertiary); transition: all var(--transition-normal); position: relative; }
        .profile-fav-item:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow-md); }
        .profile-fav-item:active { transform: scale(0.97); }
        .profile-fav-cover { width: 100%; aspect-ratio: 2/3; display: flex; align-items: center; justify-content: center; font-size: 2rem; overflow: hidden; background: var(--bg-secondary); }
        .profile-fav-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
        .profile-fav-info { padding: 7px 8px; }
        .profile-fav-name { font-family: var(--font-display); font-size: 0.75rem; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .profile-fav-star { position: absolute; top: 6px; right: 6px; font-size: 0.8rem; filter: drop-shadow(0 1px 3px rgba(0,0,0,0.7)); }
        .profile-fav-see-all { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; padding: 14px; background: var(--accent-soft); border: 1.5px dashed var(--accent-strong); border-radius: var(--radius-md); color: var(--accent); font-size: 0.88rem; font-weight: 600; cursor: pointer; transition: all var(--transition-fast); gap: 8px; }
        .profile-fav-see-all:hover { background: var(--accent-strong); }
        .profile-cat-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 8px; position: relative; z-index: 1; }
        .profile-cat-tag { padding: 4px 12px; background: var(--accent-soft); border: 1px solid var(--border-strong); color: var(--accent); border-radius: 999px; font-size: 0.72rem; font-weight: 600; }
        .profile-cat-none { font-size: 0.8rem; color: var(--text-muted); font-style: italic; }
        .cat-edit-btn { margin-top: 10px; background: transparent; border: 1px dashed var(--border-color); color: var(--text-muted); border-radius: var(--radius-sm); padding: 6px 14px; font-size: 0.75rem; cursor: pointer; transition: all var(--transition-fast); font-family: inherit; position: relative; z-index: 1; }
        .cat-edit-btn:hover { border-color: var(--accent); color: var(--accent); }
        .storage-monitor { margin-top: 12px; padding: 14px; background: var(--bg-tertiary); border-radius: 10px; }
        .storage-bar-container { height: 8px; background: var(--bg-secondary); border-radius: 999px; overflow: hidden; margin-bottom: 8px; }
        .storage-bar-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--accent), #c97a7a); transition: width 0.5s ease; border-radius: 999px; }
        .storage-text-row { display: flex; justify-content: space-between; align-items: center; }
        .storage-label { font-size: 0.78rem; color: var(--text-secondary); }
        .storage-value { font-size: 0.82rem; font-weight: 700; color: var(--text-primary); }
        .dash-section { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 20px; margin-bottom: 18px; backdrop-filter: blur(10px); }
        .dash-section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid rgba(212,165,116,0.08); }
        .dash-section-title { font-family: var(--font-display); font-size: 1rem; font-weight: 700; display: flex; align-items: center; gap: 8px; letter-spacing: -0.01em; }
        .saga-filter { display: flex; gap: 7px; margin-bottom: 16px; flex-wrap: wrap; }
        .saga-chip { padding: 6px 14px; background: transparent; border: 1px solid var(--border-color); border-radius: 999px; font-size: 0.8rem; font-weight: 600; cursor: pointer; transition: all var(--transition-fast); color: var(--text-secondary); }
        .saga-chip:hover { color: var(--accent); border-color: var(--accent); }
        .saga-chip.active { background: var(--accent); border-color: var(--accent); color: #14141c; }
        .saga-manager-modal { max-width: 500px; }
        .saga-manager-create { margin-bottom: 22px; }
        .saga-manager-create h3, .saga-manager-list h3 { font-family: var(--font-display); font-size: 0.95rem; font-weight: 600; color: var(--text-primary); margin-bottom: 10px; }
        .saga-create-row { display: flex; gap: 8px; }
        .saga-create-row .form-input { flex: 1; }
        .saga-list-container { display: flex; flex-direction: column; gap: 7px; max-height: 300px; overflow-y: auto; }
        .saga-list-item { display: flex; align-items: center; gap: 12px; padding: 11px 14px; background: var(--bg-tertiary); border-radius: var(--radius-md); border: 1px solid var(--border-color); transition: all var(--transition-fast); }
        .saga-list-item:hover { border-color: var(--accent); }
        .saga-list-item-info { flex: 1; min-width: 0; }
        .saga-list-item-name { font-weight: 500; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .saga-list-item-count { font-size: 0.76rem; color: var(--text-muted); margin-top: 2px; font-style: italic; }
        .saga-list-item-actions { display: flex; gap: 6px; }
        .saga-list-item-actions .btn { padding: 5px 10px; font-size: 0.78rem; }
        .saga-list-empty { text-align: center; padding: 28px; color: var(--text-secondary); font-style: italic; }
        .book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 14px; }
        .book-card { cursor: pointer; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border-color); background: var(--bg-card); transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-fast); position: relative; -webkit-tap-highlight-color: transparent; backdrop-filter: blur(8px); }
        .book-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
        .book-card:active { transform: scale(0.97); }
        .book-card.fav { border-color: var(--accent-strong); }
        .book-card.fav:hover { border-color: var(--accent); box-shadow: 0 12px 28px rgba(212,165,116,0.2); }
        .book-card-cover { width: 100%; aspect-ratio: 2/3; background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary)); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; overflow: hidden; position: relative; }
        .book-card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
        .book-card-badge { position: absolute; top: 6px; left: 6px; padding: 2px 7px; border-radius: 999px; font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; backdrop-filter: blur(6px); }
        .book-card-badge.reading { background: rgba(107,157,199,0.85); color: white; }
        .book-card-badge.completed { background: rgba(95,165,114,0.85); color: white; }
        .book-card-badge.pending { background: rgba(212,165,116,0.9); color: #14141c; }
        .book-card-badge.abandoned { background: rgba(161,74,74,0.9); color: white; }
        .book-card-fav-star { position: absolute; top: 6px; right: 8px; font-size: 0.9rem; filter: drop-shadow(0 1px 3px rgba(0,0,0,0.7)); }
        .book-card-info { padding: 9px 10px 10px; }
        .book-card-title { font-family: var(--font-display); font-size: 0.82rem; font-weight: 600; color: var(--text-primary); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.3; margin-bottom: 2px; letter-spacing: -0.01em; }
        .book-card-author { font-size: 0.7rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-style: italic; }
        .book-card-progress { margin-top: 5px; height: 3px; background: var(--bg-tertiary); border-radius: 999px; overflow: hidden; }
        .book-card-progress-fill { height: 100%; background: var(--accent); border-radius: 999px; }
        .book-grid-empty { grid-column: 1/-1; text-align: center; padding: 50px 20px; color: var(--text-muted); background: var(--bg-card); border-radius: var(--radius-lg); border: 1.5px dashed var(--border-color); font-style: italic; }
        .book-grid-empty svg { width: 44px; height: 44px; margin-bottom: 12px; opacity: 0.35; display: block; margin-left: auto; margin-right: auto; }
        @media (max-width: 768px) { .book-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; } }
        @media (max-width: 480px) { .book-grid { grid-template-columns: repeat(auto-fill, minmax(95px, 1fr)); gap: 8px; } }
        .dash-section { margin-bottom: 32px; }
        .dash-section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
        .dash-section-title { font-size: 1rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }
        .controls-section { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; align-items: center; }
        .search-box { flex: 1; min-width: 200px; position: relative; }
        .search-box input { width: 100%; padding: 10px 14px 10px 42px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-md); color: var(--text-primary); font-size: 0.88rem; font-family: inherit; min-height: 40px; transition: all var(--transition-fast); }
        .search-box input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
        .search-box input::placeholder { color: var(--text-muted); }
        .search-box svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--text-muted); pointer-events: none; }
        .filter-select { min-width: 140px; }
        .table-container { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); overflow: hidden; backdrop-filter: blur(10px); }
        .table-wrapper { overflow-x: auto; -webkit-overflow-scrolling: touch; }
        table { width: 100%; border-collapse: collapse; min-width: 1000px; }
        th, td { padding: 13px 16px; text-align: left; border-bottom: 1px solid rgba(212,165,116,0.06); }
        th { background: var(--bg-tertiary); font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); position: sticky; top: 0; }
        tbody tr { transition: background var(--transition-fast); }
        tbody tr:hover { background: var(--accent-soft); }
        tr:last-child td { border-bottom: none; }
        .table-book-info { display: flex; align-items: center; gap: 12px; }
        .table-book-cover { width: 38px; height: 54px; background: var(--bg-tertiary); border-radius: 4px; overflow: hidden; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; box-shadow: 3px 4px 10px rgba(0,0,0,0.3); }
        .table-book-cover img { width: 100%; height: 100%; object-fit: cover; }
        .table-title { font-weight: 600; font-size: 0.88rem; }
        .table-subtitle { font-size: 0.75rem; color: var(--text-muted); font-style: italic; }
        .table-saga { font-size: 0.74rem; color: var(--accent); font-weight: 500; margin-top: 2px; }
        .badge { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
        .badge-reading { background: rgba(107,157,199,0.15); color: var(--accent-primary); }
        .badge-completed { background: rgba(95,165,114,0.15); color: var(--accent-secondary); }
        .badge-pending { background: rgba(212,165,116,0.15); color: var(--accent-warning); }
        .badge-abandoned { background: rgba(161,74,74,0.18); color: var(--accent-danger); }
        .times-read { display: flex; align-items: center; gap: 5px; }
        .times-read-value { font-family: var(--font-display); font-weight: 700; min-width: 20px; text-align: center; font-size: 0.9rem; }
        .times-read-btn { width: 26px; height: 26px; border: none; background: var(--bg-tertiary); color: var(--text-secondary); border-radius: 6px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all var(--transition-fast); }
        .times-read-btn:hover { background: var(--accent); color: #14141c; }
        .times-read-btn svg { width: 13px; height: 13px; }
        .table-actions { display: flex; gap: 4px; justify-content: flex-end; }
        .action-btn { width: 30px; height: 30px; border: none; background: transparent; color: var(--text-muted); border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all var(--transition-fast); -webkit-tap-highlight-color: transparent; }
        .action-btn:hover { background: var(--bg-tertiary); color: var(--text-primary); }
        .action-btn.edit:hover { color: var(--accent-primary); }
        .action-btn.delete:hover { color: var(--accent-danger); }
        .action-btn.fav-on { color: var(--accent-warning); }
        .action-btn svg { width: 15px; height: 15px; }
        .table-empty { padding: 60px 20px; text-align: center; color: var(--text-muted); font-style: italic; }
        .table-empty svg { width: 48px; height: 48px; margin-bottom: 16px; opacity: 0.35; }
        .table-empty p { margin-bottom: 16px; }
        .ownership-value { display: inline-flex; align-items: center; gap: 6px; background: var(--bg-tertiary); padding: 4px 8px; border-radius: 20px; font-size: 0.75rem; font-weight: 500; }
        .ownership-edit-btn { width: 24px; height: 24px; border: none; background: transparent; color: var(--text-muted); border-radius: 6px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: all var(--transition-fast); }
        .ownership-edit-btn:hover { background: var(--accent-soft); color: var(--accent); }
        .pagination { display: flex; justify-content: center; align-items: center; gap: 6px; padding: 14px; border-top: 1px solid var(--border-color); flex-wrap: wrap; }
        .pagination-btn { min-width: 34px; height: 34px; padding: 0 10px; border: 1px solid var(--border-color); background: transparent; color: var(--text-secondary); border-radius: 9px; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 0.88rem; font-weight: 600; transition: all var(--transition-fast); font-family: inherit; }
        .pagination-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
        .pagination-btn.active { background: var(--accent); border-color: var(--accent); color: #14141c; }
        .pagination-btn:disabled { opacity: 0.35; cursor: not-allowed; }
        .pagination-info { font-size: 0.82rem; color: var(--text-muted); padding: 0 8px; font-style: italic; }
        .book-cover-upload { display: flex; flex-direction: column; align-items: center; gap: 12px; }
        .book-cover-preview { width: 120px; height: 180px; background: var(--bg-tertiary); border: 1.5px dashed var(--border-strong); border-radius: 6px; display: flex; align-items: center; justify-content: center; overflow: hidden; transition: all var(--transition-fast); cursor: pointer; box-shadow: 3px 5px 14px rgba(0,0,0,0.3); }
        .book-cover-preview:hover { border-color: var(--accent); }
        .book-cover-preview img { width: 100%; height: 100%; object-fit: cover; }
        .book-cover-preview svg { width: 28px; height: 28px; color: var(--text-muted); }
        .modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.75); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 200; opacity: 0; visibility: hidden; transition: all var(--transition-normal); }
        .modal-overlay.active { opacity: 1; visibility: visible; }
        .modal { background: var(--bg-secondary); border: 1px solid var(--border-color); border-radius: var(--radius-lg); width: 100%; max-width: 600px; max-height: 90vh; max-height: 90dvh; overflow-y: auto; transform: translateY(20px) scale(0.95); transition: transform var(--transition-normal); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; }
        .modal-overlay.active .modal { transform: translateY(0) scale(1); }
        .modal-header { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--border-color); position: sticky; top: 0; background: var(--bg-secondary); z-index: 1; }
        .modal-title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em; }
        .modal-close { width: 34px; height: 34px; border: none; background: transparent; color: var(--text-secondary); cursor: pointer; border-radius: 9px; display: flex; align-items: center; justify-content: center; -webkit-tap-highlight-color: transparent; transition: all var(--transition-fast); }
        .modal-close:hover { background: var(--bg-tertiary); color: var(--accent-danger); }
        .modal-close svg { width: 20px; height: 20px; }
        .modal-body { padding: 22px; flex: 1; }
        .modal-footer { display: flex; gap: 10px; justify-content: flex-end; padding: 14px 22px; border-top: 1px solid var(--border-color); position: sticky; bottom: 0; background: var(--bg-tertiary); }
        .toast-container { position: fixed; top: calc(var(--header-height) + 14px); right: 14px; z-index: 300; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; pointer-events: none; }
        .toast { background: var(--bg-elevated); border: 1px solid var(--border-color); border-left: 4px solid var(--accent); border-radius: var(--radius-md); padding: 13px 18px; box-shadow: var(--shadow-lg); animation: slideIn 0.3s cubic-bezier(.4,0,.2,1); max-width: 360px; pointer-events: auto; font-size: 0.88rem; color: var(--text-primary); }
        @keyframes slideIn { from { transform: translateX(120%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
        .toast.success { border-left-color: var(--accent-secondary); }
        .toast.error { border-left-color: var(--accent-danger); }
        .toast.fav { border-left-color: var(--accent-warning); }
        .toast svg { width: 18px; height: 18px; flex-shrink: 0; }
        .toast-text { display: flex; flex-direction: column; }
        .toast-title { font-weight: 600; font-size: 0.88rem; }
        .toast-subtitle { font-size: 0.78rem; color: var(--text-secondary); margin-top: 2px; }
        .star-rating-wrapper { display: flex; flex-direction: column; gap: 12px; }
        .star-widget { display: flex; gap: 2px; user-select: none; }
        .sw-pos { position: relative; width: 36px; height: 36px; cursor: pointer; flex-shrink: 0; display: inline-block; }
        .sw-bg { font-size: 30px; line-height: 1.2; color: var(--bg-tertiary); display: block; }
        .sw-fill { position: absolute; left: 0; top: 0; overflow: hidden; white-space: nowrap; color: var(--accent-warning); font-size: 30px; line-height: 1.2; transition: width 0.1s ease; pointer-events: none; }
        .sw-click-left, .sw-click-right { position: absolute; top: 0; height: 100%; width: 50%; z-index: 2; cursor: pointer; }
        .sw-click-left { left: 0; }
        .sw-click-right { right: 0; }
        .rating-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
        .rating-number-input { width: 75px !important; min-height: 36px !important; padding: 7px 10px !important; font-size: 0.9rem !important; text-align: center; }
        .rating-label { font-family: var(--font-display); font-size: 0.95rem; font-weight: 700; color: var(--accent-warning); min-width: 120px; }
        .btn-fav-toggle { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1.5px dashed var(--border-strong); border-radius: var(--radius-md); background: transparent; color: var(--text-secondary); font-size: 0.88rem; font-weight: 600; cursor: pointer; transition: all var(--transition-fast); font-family: inherit; width: 100%; justify-content: center; }
        .btn-fav-toggle:hover { border-color: var(--accent-warning); color: var(--accent-warning); background: rgba(212,165,116,0.06); }
        .btn-fav-toggle.fav-active { border-style: solid; border-color: var(--accent-warning); background: rgba(212,165,116,0.15); color: var(--accent-warning); }
        .stars-display { position: relative; display: inline-block; font-size: 1rem; line-height: 1; vertical-align: middle; }
        .stars-bg { color: var(--bg-tertiary); letter-spacing: 1px; }
        .stars-fill { position: absolute; left: 0; top: 0; overflow: hidden; white-space: nowrap; color: var(--accent-warning); letter-spacing: 1px; }
        .fav-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; background: rgba(212,165,116,0.18); color: var(--accent-warning); border-radius: 999px; font-size: 0.72rem; font-weight: 700; border: 1px solid rgba(212,165,116,0.35); }
        .favoritos-container { max-width: 100%; }
        .favoritos-page-header { margin-bottom: 20px; display: flex; align-items: center; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid rgba(212,165,116,0.1); flex-wrap: wrap; }
        .favoritos-page-header-text { flex: 1; }
        .favoritos-title { font-family: var(--font-display); font-size: 1.65rem; font-weight: 700; color: var(--accent-warning); display: flex; align-items: center; gap: 10px; margin-bottom: 4px; letter-spacing: -0.02em; }
        .favoritos-subtitle { color: var(--text-secondary); font-size: 0.88rem; font-style: italic; }
        .favoritos-sort { display: flex; gap: 10px; margin-bottom: 18px; align-items: center; flex-wrap: wrap; }
        .favoritos-sort-label { font-size: 0.74rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
        .list-page-container { max-width: 100%; }
        .list-page-header { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid rgba(212,165,116,0.1); flex-wrap: wrap; }
        .list-page-header-text { flex: 1; }
        .list-page-title { font-family: var(--font-display); font-size: 1.65rem; font-weight: 700; display: flex; align-items: center; gap: 10px; margin-bottom: 4px; letter-spacing: -0.02em; }
        .list-page-subtitle { color: var(--text-secondary); font-size: 0.88rem; font-style: italic; }
        .book-card-more { cursor: pointer; border-radius: var(--radius-md); border: 1.5px dashed var(--border-strong); background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; transition: all var(--transition-fast); -webkit-tap-highlight-color: transparent; min-height: 100%; color: var(--text-muted); font-size: 0.82rem; font-weight: 600; aspect-ratio: 2/3.4; padding: 14px; text-align: center; }
        .book-card-more:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
        .book-card-more:active { transform: scale(0.97); }
        .book-card-more svg { width: 26px; height: 26px; opacity: 0.7; }
        .colecoes-container { max-width: 100%; }
        .colecoes-page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; padding-bottom: 16px; border-bottom: 1px solid rgba(212,165,116,0.1); flex-wrap: wrap; gap: 14px; }
        .colecoes-page-title { font-family: var(--font-display); font-size: 1.65rem; font-weight: 700; display: flex; align-items: center; gap: 10px; letter-spacing: -0.02em; }
        .colecoes-page-title svg { width: 22px; height: 22px; color: var(--accent-purple); }
        .colecoes-page-subtitle { color: var(--text-secondary); font-size: 0.88rem; margin-top: 2px; font-style: italic; }
        .colecoes-stats-strip { display: flex; gap: 10px; margin-bottom: 22px; flex-wrap: wrap; }
        .colecoes-stat-pill { display: flex; align-items: center; gap: 8px; padding: 8px 16px; background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 999px; backdrop-filter: blur(8px); transition: all var(--transition-fast); }
        .colecoes-stat-pill:hover { border-color: var(--accent); }
        .colecoes-stat-pill-val { font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--accent); }
        .colecoes-stat-pill-label { color: var(--text-secondary); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em; }
        .colecoes-grid { display: flex; flex-direction: column; gap: 14px; }
        .saga-card { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow var(--transition-normal), border-color var(--transition-fast); backdrop-filter: blur(10px); }
        .saga-card:hover { box-shadow: var(--shadow-md); border-color: var(--border-strong); }
        .saga-card.saga-fav-card { border-color: var(--accent-strong); }
        .saga-card.saga-fav-card:hover { border-color: var(--accent); box-shadow: 0 8px 32px rgba(212,165,116,0.12); }
        .saga-card-header { display: flex; align-items: center; gap: 14px; padding: 18px 20px 12px; }
        .saga-card-accent-bar { width: 4px; align-self: stretch; border-radius: 2px; flex-shrink: 0; min-height: 40px; }
        .saga-card-meta { flex: 1; min-width: 0; }
        .saga-card-name { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; letter-spacing: -0.01em; }
        .saga-fav-star-badge { font-size: 0.9rem; }
        .saga-card-chips { display: flex; gap: 5px; flex-wrap: wrap; align-items: center; }
        .saga-pill { padding: 3px 10px; border-radius: 999px; font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
        .saga-pill-total { background: var(--accent-soft); color: var(--accent); }
        .saga-pill-done { background: rgba(95,165,114,0.15); color: var(--accent-secondary); }
        .saga-pill-reading { background: rgba(107,157,199,0.15); color: var(--accent-primary); }
        .saga-pill-pending { background: rgba(212,165,116,0.12); color: var(--accent-warning); }
        .saga-card-progress { display: flex; align-items: center; gap: 12px; padding: 0 20px 14px; }
        .saga-card-prog-bar { flex: 1; height: 7px; background: var(--bg-tertiary); border-radius: 999px; overflow: hidden; display: flex; }
        .saga-prog-seg { height: 100%; transition: width 0.4s ease; }
        .saga-prog-seg.done { background: var(--accent-secondary); }
        .saga-prog-seg.reading { background: var(--accent-primary); }
        .saga-prog-seg.pending { background: var(--accent-warning); opacity: 0.7; }
        .saga-prog-seg.abandoned { background: var(--accent-danger); opacity: 0.7; }
        .saga-card-pct { font-family: var(--font-display); font-size: 0.82rem; font-weight: 700; color: var(--accent); min-width: 36px; text-align: right; }
        .saga-card-actions { display: flex; gap: 6px; align-items: center; flex-shrink: 0; }
        .saga-fav-btn { width: 32px; height: 32px; border: 1px solid var(--border-color); background: transparent; color: var(--text-muted); border-radius: 9px; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1rem; transition: all var(--transition-fast); -webkit-tap-highlight-color: transparent; }
        .saga-fav-btn:hover { border-color: var(--accent-warning); color: var(--accent-warning); background: rgba(212,165,116,0.1); }
        .saga-fav-btn.active { border-color: var(--accent-warning); background: rgba(212,165,116,0.15); color: var(--accent-warning); }
        .saga-fav-btn:active { transform: scale(0.9); }
        .saga-pct-badge { background: var(--accent-soft); color: var(--accent); padding: 3px 10px; border-radius: 999px; font-family: var(--font-display); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; }
        .saga-card-books { background: rgba(0,0,0,0.1); border-top: 1px solid var(--border-color); padding: 14px 18px; }
        .saga-card-books-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; align-items: flex-start; }
        .saga-card-books-row::-webkit-scrollbar { height: 3px; }
        .saga-card-books-row::-webkit-scrollbar-track { background: transparent; }
        .saga-card-books-row::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 2px; }
        .saga-spine-book { flex: 0 0 68px; width: 68px; cursor: pointer; transition: transform var(--transition-normal); -webkit-tap-highlight-color: transparent; display: flex; flex-direction: column; align-items: center; }
        .saga-spine-book:hover { transform: translateY(-5px); }
        .saga-spine-book:active { transform: scale(0.96); }
        .saga-spine-cover { width: 68px; height: 100px; border-radius: 3px 5px 5px 3px; background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-secondary)); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; overflow: hidden; position: relative; box-shadow: 3px 5px 14px rgba(0,0,0,0.45), inset -2px 0 5px rgba(0,0,0,0.2); flex-shrink: 0; }
        .saga-spine-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
        .saga-spine-spine { position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(90deg, rgba(0,0,0,0.35), rgba(0,0,0,0.06)); border-radius: 3px 0 0 3px; }
        .saga-spine-order { position: absolute; top: -5px; left: -5px; background: var(--accent); color: #14141c; font-size: 0.58rem; font-weight: 800; min-width: 18px; height: 18px; border-radius: 999px; display: grid; place-items: center; padding: 0 4px; box-shadow: 0 2px 6px rgba(0,0,0,0.4); }
        .saga-spine-fav { position: absolute; bottom: 4px; right: 4px; font-size: 0.7rem; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.8)); }
        .saga-spine-status { position: absolute; bottom: 0; left: 4px; right: 0; height: 3px; }
        .saga-spine-status.reading { background: var(--accent-primary); }
        .saga-spine-status.completed { background: var(--accent-secondary); }
        .saga-spine-status.pending { background: var(--accent-warning); opacity: 0.6; }
        .saga-spine-status.abandoned { background: var(--accent-danger); opacity: 0.6; }
        .saga-spine-title { margin-top: 5px; font-size: 0.6rem; font-weight: 500; color: var(--text-muted); text-align: center; width: 68px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.3; min-height: 2.6em; }
        .saga-card-empty-books { display: flex; align-items: center; justify-content: center; padding: 20px; color: var(--text-muted); font-size: 0.84rem; gap: 8px; font-style: italic; }
        .colecoes-empty { text-align: center; padding: 80px 20px; color: var(--text-muted); background: var(--bg-card); border-radius: var(--radius-xl); border: 1.5px dashed var(--border-color); }
        .colecoes-empty-icon { font-size: 3.5rem; margin-bottom: 14px; opacity: 0.45; }
        .colecoes-empty p { font-size: 0.95rem; line-height: 1.7; font-style: italic; }
        .sidebar-nav { display: flex; flex-direction: column; gap: 2px; }
        .sidebar-nav-item { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border: none; background: transparent; color: var(--text-secondary); font-size: 0.875rem; font-weight: 500; font-family: inherit; cursor: pointer; border-radius: var(--radius-md); transition: all var(--transition-fast); text-align: left; width: 100%; -webkit-tap-highlight-color: transparent; position: relative; min-height: var(--touch-target); }
        .sidebar-nav-item svg { width: 17px; height: 17px; flex-shrink: 0; }
        .sidebar-nav-item:hover { background: var(--bg-tertiary); color: var(--text-primary); }
        .sidebar-nav-item.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
        .sidebar-nav-item.active::before { content: ""; position: absolute; left: 0; top: 20%; bottom: 20%; width: 3px; background: var(--accent); border-radius: 0 3px 3px 0; }
        .sidebar-nav-item:active { transform: scale(0.98); }
        .sidebar-nav-item.colecoes-item:not(.active) { color: var(--accent-purple); }
        .sidebar-nav-item.aler-item:not(.active) { color: var(--accent-primary); }
        .sidebar-nav-item.aler-item.active { background: rgba(107,157,199,0.12); color: var(--accent-primary); }
        .sidebar-nav-item.aler-item.active::before { background: var(--accent-primary); }
        .sidebar-nav-item.cluidos-item:not(.active) { color: var(--accent-secondary); }
        .sidebar-nav-item.fav-item:not(.active) { color: var(--accent-warning); }
        .sidebar-nav-item.colecoes-item.active { background: rgba(156,122,176,0.12); color: var(--accent-purple); }
        .sidebar-nav-item.colecoes-item.active::before { background: var(--accent-purple); }
        .sidebar-nav-item.cluidos-item.active { background: rgba(95,165,114,0.12); color: var(--accent-secondary); }
        .sidebar-nav-item.cluidos-item.active::before { background: var(--accent-secondary); }
        .sidebar-nav-item.fav-item.active { background: rgba(212,165,116,0.12); color: var(--accent-warning); }
        .sidebar-nav-item.fav-item.active::before { background: var(--accent-warning); }
        .dashboard-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
        .dashboard-title { font-family: var(--font-display); font-size: 1.65rem; font-weight: 700; letter-spacing: -0.02em; }
        .dashboard-actions { display: flex; gap: 10px; }
        .left-actions { display: flex; gap: 10px; }
        .page-filters { display: flex; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; align-items: flex-end; }
        @media (max-width: 1024px) {
            :root { --sidebar-width: 260px; }
            .header-user-info { display: none; }
        }
        @media (max-width: 768px) {
            :root { --header-height: 60px; --bottom-nav-height: 92px; }
            .menu-toggle { display: flex; }
            .bottom-nav { display: block; }
            .sidebar { transform: translateX(-100%); width: 85%; max-width: 320px; }
            .sidebar.active { transform: translateX(0); }
            .main-content {
                margin-left: 0; width: 100%; padding: 16px;
                padding-bottom: calc(var(--bottom-nav-height) + 30px + env(safe-area-inset-bottom, 0));
            }
            .form-grid { grid-template-columns: 1fr; }
            .form-group.full-width { grid-column: span 1; }
            .profile-stats { grid-template-columns: 1fr; gap: 10px; }
            .profile-header { padding: 22px 16px; }
            .profile-avatar { width: 90px; height: 90px; font-size: 2.2rem; }
            .profile-name { font-size: 1.3rem; }
            .dashboard-header { flex-direction: column; align-items: stretch; }
            .dashboard-actions { flex-direction: row; justify-content: space-between; }
            .controls-section { flex-direction: column; }
            .search-box, .filter-select { width: 100%; min-width: unset; }
            th, td { padding: 10px 12px; }
            .toast-container { top: auto; bottom: calc(var(--bottom-nav-height) + 18px + env(safe-area-inset-bottom, 0)); right: 10px; left: 10px; }
            .toast { max-width: none; }
            .modal { max-height: 88dvh; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
            .modal-footer { flex-direction: column; }
            .modal-footer .btn { width: 100%; }
            .checkbox-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
            .colecoes-stats-strip { gap: 8px; }
        }
        @media (max-width: 480px) {
            html { font-size: 14px; }
            .logo span { display: none; }
            .header-profile { padding: 4px; }
            .header-avatar { width: 32px; height: 32px; }
            .profile-avatar { width: 76px; height: 76px; font-size: 1.8rem; }
            .bottom-nav { left: 8px; right: 8px; bottom: calc(8px + env(safe-area-inset-bottom, 0)); }
            .bottom-nav-inner { gap: 4px; padding: 8px 6px 10px; border-radius: 20px; }
            .nav-item { min-height: 50px; padding: 7px 4px; font-size: 0.58rem; }
            .nav-item svg { width: 19px; height: 19px; }
            .nav-item-add { width: 58px; height: 58px; min-height: 58px; margin-top: -22px; }
            .nav-item .nav-label { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        }
        @media (hover: none) and (pointer: coarse) {
            .btn:hover { transform: none; }
        }
    

        /* ===== V3 polish ===== */
        .dashboard-hero {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 18px;
            margin-bottom: 22px;
            padding: 22px;
            background:
                radial-gradient(900px 240px at 100% 0%, rgba(212,165,116,0.12), transparent 60%),
                linear-gradient(180deg, rgba(255,255,255,0.02), transparent),
                var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: var(--radius-xl);
            box-shadow: var(--shadow-md);
            backdrop-filter: blur(10px);
        }
        .dashboard-hero-copy { flex: 1; min-width: 0; }
        .dashboard-eyebrow {
            display: inline-flex; align-items: center; gap: 8px;
            padding: 6px 12px; border-radius: 999px;
            background: rgba(95,165,114,0.12); border: 1px solid rgba(95,165,114,0.25);
            color: #dff3e4; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
            margin-bottom: 10px;
        }
        html[data-theme="light"] .dashboard-eyebrow { color: #2d5a38; }
        .dashboard-subtitle {
            color: var(--text-secondary); max-width: 68ch; margin-top: 8px;
            font-size: 0.95rem; line-height: 1.65;
        }
        .dashboard-hero-stats {
            display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px;
        }
        .hero-pill {
            min-width: 110px; padding: 12px 14px; border-radius: 16px;
            background: rgba(0,0,0,0.16); border: 1px solid var(--border-color);
        }
        .hero-pill strong { display: block; font-family: var(--font-display); font-size: 1.18rem; color: var(--text-primary); }
        .hero-pill span { display: block; font-size: 0.76rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: .08em; margin-top: 3px; }
        .dashboard-actions { flex-wrap: wrap; justify-content: flex-end; }
        .action-cluster {
            display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch;
        }
        .action-cluster .btn {
            min-width: 132px;
            box-shadow: var(--shadow-sm);
        }
        .workspace-panel {
            display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 16px; margin-bottom: 22px;
        }
        .workspace-card {
            background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius-lg);
            padding: 18px; backdrop-filter: blur(10px); box-shadow: var(--shadow-sm);
        }
        .workspace-card h3 {
            font-family: var(--font-display); font-size: 1rem; font-weight: 700; margin-bottom: 6px; letter-spacing: -0.01em;
        }
        .workspace-card p { color: var(--text-secondary); font-size: 0.88rem; line-height: 1.6; }
        .workspace-meta {
            display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px;
        }
        .workspace-badge {
            display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px;
            background: var(--bg-tertiary); border: 1px solid var(--border-color); color: var(--text-primary);
            font-size: 0.74rem; font-weight: 700; letter-spacing: .03em;
        }
        .workspace-badge.ok { background: rgba(95,165,114,0.12); border-color: rgba(95,165,114,0.25); color: #dff3e4; }
        .workspace-badge.warn { background: rgba(212,165,116,0.14); border-color: rgba(212,165,116,0.28); color: #f0d8b9; }
        html[data-theme="light"] .workspace-badge.ok { color: #2d5a38; }
        html[data-theme="light"] .workspace-badge.warn { color: #7c541e; }
        .workspace-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
        .workspace-actions .btn { min-width: 126px; }
        .stat-card {
            background: linear-gradient(180deg, rgba(255,255,255,0.025), transparent), var(--bg-card);
        }
        .stat-label { color: var(--text-primary); }
        .stat-value { text-shadow: 0 1px 0 rgba(0,0,0,0.25); }
        .storage-monitor {
            border: 1px solid var(--border-color);
            background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent), var(--bg-tertiary);
        }
        .storage-label { color: var(--text-primary); font-weight: 600; }
        .storage-value { color: var(--text-primary); }
        .chart-container canvas { filter: saturate(1.08); }
        .toast {
            display: flex; align-items: center; gap: 10px;
        }
        .toast::before {
            content: '•'; font-size: 1.4rem; line-height: 1; color: currentColor; opacity: 0.8;
        }
        .btn:focus-visible, .action-btn:focus-visible, .sidebar-nav-item:focus-visible, .nav-item:focus-visible, .theme-toggle:focus-visible {
            outline: 3px solid var(--accent-soft); outline-offset: 2px;
        }
        @media (max-width: 980px) {
            .workspace-panel { grid-template-columns: 1fr; }
            .dashboard-hero { flex-direction: column; }
            .dashboard-actions { width: 100%; justify-content: flex-start; }
        }
        @media (max-width: 768px) {
            .dashboard-hero { padding: 18px; }
            .action-cluster { width: 100%; }
            .action-cluster .btn { flex: 1 1 calc(50% - 10px); min-width: 0; }
            .hero-pill { flex: 1 1 calc(50% - 10px); min-width: 0; }
        }

    
        /* ===== DREAM DASHBOARD ===== */
        .dream-dashboard { display:flex; flex-direction:column; gap:22px; }
        .dream-hero {
            display:grid; grid-template-columns: minmax(0,1.25fr) minmax(280px,0.75fr); gap:20px;
            padding: 24px; border-radius: 26px; border:1px solid rgba(212,165,116,0.18);
            background:
                radial-gradient(circle at top right, rgba(212,165,116,0.18), transparent 32%),
                radial-gradient(circle at bottom left, rgba(107,157,199,0.16), transparent 28%),
                linear-gradient(135deg, rgba(20,20,28,0.96), rgba(29,29,42,0.9));
            box-shadow: var(--shadow-lg);
            overflow:hidden;
        }
        html[data-theme="light"] .dream-hero {
            background:
                radial-gradient(circle at top right, rgba(139,90,43,0.14), transparent 32%),
                radial-gradient(circle at bottom left, rgba(74,120,163,0.12), transparent 28%),
                linear-gradient(135deg, rgba(255,252,245,0.96), rgba(244,236,223,0.94));
        }
        .dream-kicker { color: var(--accent); font-size:0.72rem; font-weight:800; letter-spacing:0.16em; text-transform:uppercase; margin-bottom:10px; }
        .dream-title { font-family:var(--font-display); font-size:2.3rem; line-height:1.05; letter-spacing:-0.04em; margin-bottom:12px; }
        .dream-subtitle { max-width: 65ch; color: var(--text-secondary); font-size: 0.98rem; }
        .dream-primary-actions { display:flex; gap:10px; flex-wrap:wrap; margin-top:18px; }
        .dream-hero-panel { display:flex; flex-direction:column; gap:16px; justify-content:center; }
        .dream-orbit {
            min-height: 270px; border-radius: 24px; position:relative; display:grid; place-items:center;
            background:
                radial-gradient(circle at center, rgba(212,165,116,0.12) 0 18%, transparent 18% 100%),
                repeating-radial-gradient(circle at center, rgba(212,165,116,0.16) 0 2px, transparent 2px 48px),
                linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0));
            border:1px solid rgba(212,165,116,0.18);
        }
        .dream-orbit::before, .dream-orbit::after {
            content:""; position:absolute; inset: 22px; border-radius:50%;
            border:1px dashed rgba(212,165,116,0.18);
        }
        .dream-orbit::after { inset: 54px; border-style:solid; border-color: rgba(107,157,199,0.18); }
        .dream-orbit-core { position:relative; z-index:1; width:170px; height:170px; border-radius:50%; display:flex; flex-direction:column; align-items:center; justify-content:center; background:rgba(10,10,15,0.68); border:1px solid rgba(212,165,116,0.24); box-shadow: inset 0 0 30px rgba(212,165,116,0.08), 0 12px 40px rgba(0,0,0,0.35); text-align:center; }
        html[data-theme="light"] .dream-orbit-core { background: rgba(255,255,255,0.8); }
        .dream-orbit-label { font-size:0.72rem; text-transform:uppercase; letter-spacing:0.12em; color:var(--text-muted); margin-bottom:6px; }
        .dream-orbit-core strong { font-family:var(--font-display); font-size:3rem; line-height:1; letter-spacing:-0.06em; }
        .dream-orbit-caption { margin-top:8px; color:var(--text-secondary); font-size:0.84rem; }
        .dream-mini-metrics { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
        .dream-mini-card { padding:14px; border-radius:18px; background:rgba(255,255,255,0.04); border:1px solid rgba(212,165,116,0.12); min-height:88px; display:flex; flex-direction:column; justify-content:space-between; }
        html[data-theme="light"] .dream-mini-card { background: rgba(255,255,255,0.64); }
        .dream-mini-card span { color:var(--text-secondary); font-size:0.8rem; }
        .dream-mini-card strong { font-family:var(--font-display); font-size:1.35rem; letter-spacing:-0.03em; }
        .dream-kpi-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
        .dream-kpi-card, .dream-panel {
            background: var(--bg-card); border:1px solid rgba(212,165,116,0.14); border-radius: 22px; padding:18px; backdrop-filter: blur(10px); box-shadow: var(--shadow-md);
        }
        .dream-kpi-card { min-height:132px; display:flex; flex-direction:column; justify-content:space-between; }
        .dream-kpi-label { color:var(--text-secondary); font-size:0.82rem; text-transform:uppercase; letter-spacing:0.08em; }
        .dream-kpi-value { font-family:var(--font-display); font-size:2.1rem; line-height:1; letter-spacing:-0.05em; }
        .dream-kpi-foot { color:var(--text-muted); font-size:0.82rem; }
        .dream-grid { display:grid; grid-template-columns:1.2fr 0.8fr; gap:16px; }
        .dream-panel-wide { grid-column: 1 / -1; }
        .dream-panel-head { display:flex; justify-content:space-between; gap:12px; align-items:flex-start; margin-bottom:14px; }
        .dream-panel-head h2 { font-family:var(--font-display); font-size:1.15rem; letter-spacing:-0.02em; }
        .dream-chip { display:inline-flex; align-items:center; padding:5px 10px; border-radius:999px; background:var(--accent-soft); color:var(--accent); font-size:0.72rem; font-weight:700; }
        .dream-radar-strip { display:grid; grid-template-columns: repeat(4, 1fr); gap:12px; }
        .dream-radar-card { padding:14px; border-radius:18px; background: var(--bg-tertiary); border:1px solid rgba(212,165,116,0.12); }
        .dream-radar-top { display:flex; justify-content:space-between; gap:10px; margin-bottom:10px; align-items:flex-end; }
        .dream-radar-title { color:var(--text-secondary); font-size:0.78rem; }
        .dream-radar-value { font-family:var(--font-display); font-size:1.45rem; letter-spacing:-0.04em; }
        .dream-radar-bar { height:8px; background:rgba(255,255,255,0.04); border-radius:999px; overflow:hidden; }
        .dream-radar-fill { height:100%; border-radius:999px; background:linear-gradient(90deg, var(--accent), #c97a7a); }
        .dream-radar-note { display:block; margin-top:8px; color:var(--text-muted); font-size:0.76rem; }
        .dream-genre-bars, .dream-reading-list, .dream-timeline, .dream-focus-box { display:flex; flex-direction:column; gap:10px; }
        .dream-genre-row, .dream-reading-item, .dream-timeline-item, .dream-focus-card {
            background: var(--bg-tertiary); border:1px solid rgba(212,165,116,0.12); border-radius:16px; padding:12px 14px;
        }
        .dream-genre-top, .dream-reading-top, .dream-timeline-top { display:flex; justify-content:space-between; gap:10px; align-items:center; }
        .dream-genre-name, .dream-reading-title, .dream-timeline-title { font-weight:600; }
        .dream-genre-meta, .dream-reading-meta, .dream-timeline-meta, .dream-focus-meta { color:var(--text-muted); font-size:0.78rem; }
        .dream-small-progress { margin-top:8px; height:7px; background:rgba(255,255,255,0.04); border-radius:999px; overflow:hidden; }
        .dream-small-progress > span { display:block; height:100%; border-radius:999px; background:linear-gradient(90deg, var(--accent-primary), var(--accent)); }
        .dream-mission-card { display:flex; flex-direction:column; gap:14px; }
        .dream-progress-meta { display:flex; justify-content:space-between; gap:12px; align-items:flex-start; color:var(--text-secondary); }
        .dream-progress-meta strong { font-family:var(--font-display); font-size:1.6rem; color:var(--text-primary); letter-spacing:-0.04em; }
        .dream-progress { height:10px; background:rgba(255,255,255,0.05); border-radius:999px; overflow:hidden; }
        .dream-progress-fill { height:100%; width:0%; border-radius:999px; background:linear-gradient(90deg, var(--accent), #c97a7a); transition:width .35s ease; }
        .dream-mission-actions { display:flex; gap:10px; flex-wrap:wrap; }
        .dream-focus-card strong { font-family:var(--font-display); font-size:1.25rem; letter-spacing:-0.03em; display:block; margin-bottom:6px; }
        .dream-focus-pills { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
        .dream-focus-pill { padding:4px 10px; border-radius:999px; background:rgba(107,157,199,0.12); color:var(--accent-primary); font-size:0.72rem; font-weight:700; }
        .dream-empty { color:var(--text-muted); font-style:italic; padding:8px 0; }
        @media (max-width: 1180px) {
            .dream-kpi-grid { grid-template-columns:repeat(2,1fr); }
            .dream-grid { grid-template-columns:1fr; }
            .dream-radar-strip { grid-template-columns:repeat(2,1fr); }
        }
        @media (max-width: 860px) {
            .dream-hero { grid-template-columns:1fr; padding:18px; }
        }
        @media (max-width: 640px) {
            .dream-title { font-size:1.8rem; }
            .dream-mini-metrics, .dream-kpi-grid, .dream-radar-strip { grid-template-columns:1fr; }
        }

    

/* v5 usability hardening */
.library-utility-bar {
    display:flex; align-items:center; justify-content:space-between; gap:18px; flex-wrap:wrap;
    padding:20px 22px; margin-bottom:18px; border:1px solid var(--border-color); border-radius:var(--radius-lg);
    background:linear-gradient(180deg, rgba(212,165,116,0.07), rgba(212,165,116,0.02)), var(--bg-card);
    backdrop-filter: blur(10px);
}
.library-utility-copy h1 {
    font-family: var(--font-display); font-size:1.35rem; line-height:1.1; margin-bottom:6px; letter-spacing:-0.02em;
}
.library-utility-copy p { color: var(--text-secondary); max-width: 620px; }
.library-utility-kicker {
    font-size:0.72rem; text-transform:uppercase; letter-spacing:0.12em; color: var(--accent); font-weight:700; margin-bottom:8px;
}
.library-utility-actions { display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.library-utility-actions .btn { box-shadow:none; }
.btn-import { border-color: var(--accent-primary); color: var(--accent-primary); }
.btn-import:hover { background: rgba(107,157,199,0.12); border-color: var(--accent-primary); color: var(--accent-primary); }
@media (max-width: 768px) {
    .library-utility-bar { padding:16px; }
    .library-utility-copy h1 { font-size:1.15rem; }
    .library-utility-actions { width:100%; }
    .library-utility-actions .btn { flex:1 1 calc(50% - 10px); min-width:140px; }
}
