/* ============================================
   BYLLR Design System
   Modern, bold, dark color palette + Dark Mode
   ============================================ */

/* --- CSS Custom Properties (Light) --- */
:root {
    --byllr-black: #0a0a0a;
    --byllr-charcoal: #1a1a2e;
    --byllr-navy: #16213e;
    --byllr-deep-blue: #0f3460;
    --byllr-electric: #6366f1;
    --byllr-electric-hover: #5558e0;
    --byllr-surface: #e4e6ed;
    --byllr-surface-alt: #d8dae3;
    --byllr-border: #c5c8d4;
    --byllr-text: #1a1a2e;
    --byllr-text-muted: #5a5e6e;
    --byllr-success: #10b981;
    --byllr-warning: #f59e0b;
    --byllr-danger: #ef4444;
    --byllr-info: #3b82f6;
    --byllr-white: #f0f1f5;
    --byllr-card-bg: #eff0f4;
    --byllr-gradient: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    --byllr-gradient-accent: linear-gradient(135deg, #6366f1 0%, #5558e0 100%);
    --byllr-shadow-sm: 0 1px 3px rgba(10, 10, 10, 0.1);
    --byllr-shadow: 0 4px 12px rgba(10, 10, 10, 0.12);
    --byllr-shadow-lg: 0 8px 30px rgba(10, 10, 10, 0.16);
    --byllr-shadow-glow: 0 0 30px rgba(99, 102, 241, 0.15);
    --byllr-radius: 10px;
    --byllr-radius-lg: 16px;
    --byllr-radius-xl: 24px;
    --byllr-transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Dark Mode Variables --- */
[data-bs-theme="dark"] {
    --byllr-surface: #161620;
    --byllr-surface-alt: #252533;
    --byllr-border: #3d3d52;
    --byllr-text: #e8e8f0;
    --byllr-text-muted: #a0a0b8;
    --byllr-white: #262635;
    --byllr-card-bg: #262635;
    --byllr-charcoal: #e8e8f0;
    --byllr-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --byllr-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    --byllr-shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.5);
    --byllr-shadow-glow: 0 0 30px rgba(99, 102, 241, 0.25);
    --bs-body-bg: #161620;
    --bs-body-color: #e8e8f0;
}

[data-bs-theme="dark"] body {
    background: #0f0f17;
    color: #e4e4ec;
}

[data-bs-theme="dark"] .form-control::placeholder {
    color: var(--byllr-text-muted);
    opacity: 0.7;
}

[data-bs-theme="dark"] h1,
[data-bs-theme="dark"] h2,
[data-bs-theme="dark"] h3,
[data-bs-theme="dark"] h4,
[data-bs-theme="dark"] h5,
[data-bs-theme="dark"] h6 {
    color: #e4e4ec;
}

[data-bs-theme="dark"] .card {
    background: var(--byllr-card-bg);
    border-color: var(--byllr-border);
}

[data-bs-theme="dark"] .card-header {
    background: #1a1a28;
    border-bottom-color: var(--byllr-border);
}

[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select {
    background: #1a1a28;
    border-color: var(--byllr-border);
    color: #e4e4ec;
}

[data-bs-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .form-select:focus {
    background: #1a1a28;
    border-color: var(--byllr-electric);
    color: #e4e4ec;
}

[data-bs-theme="dark"] .form-label {
    color: #c4c4d4;
}

[data-bs-theme="dark"] .table {
    --bs-table-bg: transparent;
    --bs-table-hover-bg: rgba(99, 102, 241, 0.06);
    --bs-table-color: #e4e4ec;
    --bs-table-border-color: var(--byllr-border);
}

[data-bs-theme="dark"] .table thead th {
    color: var(--byllr-text-muted);
    border-bottom-color: var(--byllr-border);
}

[data-bs-theme="dark"] .table-light {
    --bs-table-bg: #1a1a28;
    --bs-table-color: #e4e4ec;
}

[data-bs-theme="dark"] .modal-content {
    background: #16161f;
}

[data-bs-theme="dark"] .modal-header,
[data-bs-theme="dark"] .modal-footer {
    border-color: var(--byllr-border);
}

[data-bs-theme="dark"] .list-group-item {
    background: transparent;
    border-color: var(--byllr-border);
    color: #e4e4ec;
}

[data-bs-theme="dark"] .btn-outline-secondary {
    border-color: var(--byllr-border) !important;
    color: #8b8ba0 !important;
}

[data-bs-theme="dark"] .btn-outline-secondary:hover {
    background: #1a1a28 !important;
    color: #e4e4ec !important;
}

[data-bs-theme="dark"] .btn-check:checked+.btn-outline-secondary,
[data-bs-theme="dark"] .btn-outline-secondary.active,
[data-bs-theme="dark"] .btn-outline-secondary:active,
[data-bs-theme="dark"] .btn-group .btn-outline-secondary.active {
    background: #6366f1 !important;
    border-color: #6366f1 !important;
    color: #fff !important;
    --bs-btn-active-bg: #6366f1;
    --bs-btn-active-border-color: #6366f1;
    --bs-btn-active-color: #fff;
}

[data-bs-theme="dark"] .stat-card {
    background: var(--byllr-card-bg);
}

[data-bs-theme="dark"] .stat-card .stat-value {
    color: #e4e4ec;
}

[data-bs-theme="dark"] .auth-card {
    background: #16161f;
}

[data-bs-theme="dark"] .auth-brand {
    color: #e4e4ec;
}

[data-bs-theme="dark"] .feature-card {
    background: #16161f;
    border-color: var(--byllr-border);
}

[data-bs-theme="dark"] .pricing-card {
    background: #16161f;
    border-color: var(--byllr-border);
}

[data-bs-theme="dark"] .pricing-card .price {
    color: #e4e4ec;
}

[data-bs-theme="dark"] .pricing-card ul li {
    color: #c4c4d4;
}

[data-bs-theme="dark"] .btn-dark {
    background: #2a2a3d !important;
    border-color: #2a2a3d !important;
    color: #e4e4ec !important;
}

[data-bs-theme="dark"] .btn-dark:hover {
    background: #3a3a50 !important;
    border-color: #3a3a50 !important;
}

[data-bs-theme="dark"] .comparison-item div {
    color: #c4c4d4;
}

[data-bs-theme="dark"] .comparison-item strong {
    color: #e4e4ec;
}

[data-bs-theme="dark"] .byllr-footer {
    background: #0f0f17;
    border-top-color: var(--byllr-border);
}

[data-bs-theme="dark"] #timer-card {
    background: #16161f;
    border-color: var(--byllr-border);
}

[data-bs-theme="dark"] #timer-display {
    color: #e4e4ec;
}

[data-bs-theme="dark"] .progress {
    background: #1a1a28;
}

[data-bs-theme="dark"] .alert {
    background: #1a1a28;
    color: #e4e4ec;
}

[data-bs-theme="dark"] .text-muted {
    color: #8b8ba0 !important;
}

/* Dark mode toggle button */
.theme-toggle {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    padding: 0.4rem;
    cursor: pointer;
    transition: var(--byllr-transition);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
}

.theme-toggle:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

/* Landing page dark mode toggle (kept for backwards compat) */
.theme-toggle-landing {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 1000;
    background: var(--byllr-card-bg);
    border: 1px solid var(--byllr-border);
    color: var(--byllr-text);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: var(--byllr-shadow);
}

.theme-toggle-landing:hover {
    background: var(--byllr-surface-alt);
    color: var(--byllr-electric);
}

/* Testimonial styles */
.testimonial-card {
    border: 1px solid var(--byllr-border);
    border-radius: var(--byllr-radius-lg);
    padding: 1.75rem;
    background: var(--byllr-card-bg);
    transition: var(--byllr-transition);
    height: 100%;
}

.testimonial-card:hover {
    box-shadow: var(--byllr-shadow);
    transform: translateY(-2px);
}

.testimonial-card .testimonial-text {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--byllr-text);
    font-style: italic;
    margin-bottom: 1.25rem;
}

.testimonial-card .testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.testimonial-card .author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--byllr-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.testimonial-card .author-name {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--byllr-text);
}

.testimonial-card .author-role {
    font-size: 0.75rem;
    color: var(--byllr-text-muted);
}

.testimonial-stars {
    color: var(--byllr-warning);
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
}

/* Comparison section */
.comparison-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
}

.comparison-item .comparison-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.8rem;
}

.comparison-icon-yes {
    background: rgba(16, 185, 129, 0.1);
    color: var(--byllr-success);
}

.comparison-icon-no {
    background: rgba(239, 68, 68, 0.1);
    color: var(--byllr-danger);
}

/* Stats bar on landing */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 3rem;
    padding: 1.5rem 0;
}

.stats-bar .stat-item {
    text-align: center;
}

.stats-bar .stat-number {
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--byllr-electric);
    letter-spacing: -0.03em;
    font-family: 'JetBrains Mono', monospace;
}

.stats-bar .stat-desc {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--byllr-text-muted);
}

/* How it works steps */
.how-it-works-step {
    padding: 2rem 1.5rem;
    border: 1px solid var(--byllr-border);
    border-radius: var(--byllr-radius-lg);
    background: var(--byllr-card-bg);
    transition: var(--byllr-transition);
    height: 100%;
}

.how-it-works-step:hover {
    box-shadow: var(--byllr-shadow);
    transform: translateY(-2px);
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--byllr-gradient-accent);
    color: white;
    font-weight: 900;
    font-size: 1.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

[data-bs-theme="dark"] .how-it-works-step {
    background: #16161f;
    border-color: var(--byllr-border);
}

/* CTA section */
.cta-section {
    background: var(--byllr-gradient);
    border-radius: var(--byllr-radius-xl);
    padding: 3.5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -15%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-section h2,
.cta-section p,
.cta-section .btn {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    color: white;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.7);
}

.cta-section .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* --- Typography --- */
/* Font loaded via <link> in base.html for faster parallel loading */

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--byllr-surface);
    color: var(--byllr-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background 0.3s ease, color 0.3s ease;
}

main {
    flex: 1;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--byllr-charcoal);
    letter-spacing: -0.025em;
}

.display-1, .display-2, .display-3, .display-4, .display-5 {
    font-weight: 900;
    letter-spacing: -0.04em;
}

/* --- Navbar --- */
.navbar-byllr {
    background: var(--byllr-gradient) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.6rem 0;
}

.navbar-byllr .navbar-brand {
    font-weight: 900;
    font-size: 1.4rem;
    letter-spacing: -0.03em;
    color: var(--byllr-white) !important;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

[data-bs-theme="dark"] .navbar-byllr .navbar-brand {
    color: white !important;
}

.navbar-byllr .navbar-brand .brand-dot {
    width: 8px;
    height: 8px;
    background: var(--byllr-electric);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px var(--byllr-electric);
}

.navbar-byllr .nav-link {
    color: rgba(255, 255, 255, 0.7) !important;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.5rem 0.85rem !important;
    border-radius: var(--byllr-radius);
    transition: var(--byllr-transition);
}

.navbar-byllr .nav-link:hover,
.navbar-byllr .nav-link.active {
    color: var(--byllr-white) !important;
    background: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .navbar-byllr .nav-link:hover,
[data-bs-theme="dark"] .navbar-byllr .nav-link.active {
    color: white !important;
}

.navbar-byllr .nav-link.active {
    background: rgba(99, 102, 241, 0.2);
}

/* Calendar icon in navbar */
.nav-calendar-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.1em;
    height: 1.1em;
}

.nav-calendar-icon .bi-calendar {
    font-size: 1.05em;
}

.nav-calendar-day {
    position: absolute;
    bottom: 1px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.55em;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
    font-family: 'Inter', sans-serif;
}

/* Tier badges in navbar */
.badge-tier-free {
    background: rgba(255, 255, 255, 0.15) !important;
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 600;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.3em 0.7em;
    border-radius: 6px;
}

.badge-tier-pro {
    background: var(--byllr-gradient-accent) !important;
    color: white !important;
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.3em 0.7em;
    border-radius: 6px;
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.3);
}

.badge-tier-team {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: white !important;
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.3em 0.7em;
    border-radius: 6px;
}

/* Smaller tier badges for dropdowns */
.badge-sm.badge-tier-free,
.badge-sm.badge-tier-pro,
.badge-sm.badge-tier-team {
    font-size: 0.6rem;
    padding: 0.2em 0.5em;
}

/* Pro-gated feature links */
.disabled-pro-feature {
    opacity: 0.55;
    cursor: default;
}
.disabled-pro-feature:hover {
    opacity: 0.7;
}

/* --- Cards --- */
.card {
    border: 1px solid var(--byllr-border);
    border-radius: var(--byllr-radius-lg);
    box-shadow: var(--byllr-shadow-sm);
    transition: var(--byllr-transition);
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--byllr-shadow);
    transform: translateY(-1px);
}

.card-header {
    background: var(--byllr-white);
    border-bottom: 1px solid var(--byllr-border);
    padding: 1rem 1.25rem;
}

.card-header h5 {
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
}

/* --- Buttons --- */
.btn-primary {
    background: var(--byllr-gradient-accent) !important;
    border: none !important;
    font-weight: 600;
    border-radius: var(--byllr-radius);
    transition: var(--byllr-transition);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
}

.btn-primary:hover {
    background: var(--byllr-electric-hover) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.35);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline-primary {
    color: var(--byllr-electric) !important;
    border-color: var(--byllr-electric) !important;
    font-weight: 600;
    border-radius: var(--byllr-radius);
    transition: var(--byllr-transition);
}

.btn-outline-primary:hover {
    background: var(--byllr-electric) !important;
    border-color: var(--byllr-electric) !important;
    color: white !important;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.25);
}

.btn-check:checked+.btn-outline-primary,
.btn-outline-primary.active,
.btn-outline-primary:active {
    background: var(--byllr-electric) !important;
    border-color: var(--byllr-electric) !important;
    color: #fff !important;
    --bs-btn-active-bg: #6366f1;
    --bs-btn-active-border-color: #6366f1;
    --bs-btn-active-color: #fff;
}

.btn-dark {
    background: #1a1a2e !important;
    border-color: #1a1a2e !important;
    font-weight: 600;
    border-radius: var(--byllr-radius);
}

.btn-dark:hover {
    background: #16213e !important;
    border-color: #16213e !important;
}

.btn-outline-secondary {
    border-color: var(--byllr-border) !important;
    color: var(--byllr-text-muted) !important;
    font-weight: 500;
    border-radius: var(--byllr-radius);
}

.btn-outline-secondary:hover {
    background: var(--byllr-surface-alt) !important;
    border-color: var(--byllr-border) !important;
    color: var(--byllr-text) !important;
}

.btn-check:checked+.btn-outline-secondary,
.btn-outline-secondary.active,
.btn-outline-secondary:active,
.btn-group .btn-outline-secondary.active {
    background: #6366f1 !important;
    border-color: #6366f1 !important;
    color: #fff !important;
    --bs-btn-active-bg: #6366f1;
    --bs-btn-active-border-color: #6366f1;
    --bs-btn-active-color: #fff;
}

.btn-success {
    background: var(--byllr-success) !important;
    border-color: var(--byllr-success) !important;
    font-weight: 600;
    border-radius: var(--byllr-radius);
}

.btn-outline-danger {
    border-color: var(--byllr-danger) !important;
    color: var(--byllr-danger) !important;
    border-radius: var(--byllr-radius);
}

.btn-outline-danger:hover {
    background: var(--byllr-danger) !important;
    border-color: var(--byllr-danger) !important;
}

/* --- Forms --- */
.form-control, .form-select {
    border: 1.5px solid var(--byllr-border);
    border-radius: var(--byllr-radius);
    padding: 0.55rem 0.85rem;
    font-size: 0.9rem;
    transition: var(--byllr-transition);
    background: var(--byllr-white);
}

.form-control:focus, .form-select:focus {
    border-color: var(--byllr-electric);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.form-label {
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--byllr-charcoal);
    letter-spacing: 0.01em;
}

.form-text {
    color: var(--byllr-text-muted);
    font-size: 0.78rem;
}

/* --- Tables --- */
.table {
    --bs-table-hover-bg: rgba(99, 102, 241, 0.03);
}

.table td, .table th {
    vertical-align: middle;
    padding: 0.85rem 1rem;
}

.table thead th {
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--byllr-text-muted);
    border-bottom: 2px solid var(--byllr-border);
}

.table-light {
    --bs-table-bg: var(--byllr-surface);
}

/* --- Badges --- */
.badge {
    font-weight: 600;
    font-size: 0.72rem;
    letter-spacing: 0.03em;
    padding: 0.35em 0.65em;
    border-radius: 6px;
}

.bg-success { background: var(--byllr-success) !important; }
.bg-warning { background: var(--byllr-warning) !important; }
.bg-danger { background: var(--byllr-danger) !important; }
.bg-info { background: var(--byllr-info) !important; }
.bg-secondary { background: var(--byllr-text-muted) !important; }

/* --- Alerts --- */
.alert {
    border: none;
    border-radius: var(--byllr-radius);
    font-weight: 500;
    font-size: 0.9rem;
}

/* Floating flash messages */
.flash-float-container {
    position: fixed;
    top: 60px;
    right: 1rem;
    z-index: 1055;
    max-width: 380px;
}

.flash-float {
    animation: flashSlideIn 0.3s ease-out;
    box-shadow: var(--byllr-shadow-lg);
}

@keyframes flashSlideIn {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

.flash-float.flash-fade-out {
    animation: flashFadeOut 0.4s ease-in forwards;
}

@keyframes flashFadeOut {
    from { opacity: 1; transform: translateX(0); }
    to { opacity: 0; transform: translateX(40px); }
}

/* --- Timer --- */
#timer-display {
    min-width: 110px;
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--byllr-charcoal);
    letter-spacing: -0.02em;
}

#timer-card {
    border: 2px solid var(--byllr-border);
    background: var(--byllr-white);
}

#timer-card.timer-running {
    border-color: var(--byllr-electric);
    box-shadow: var(--byllr-shadow-glow);
}

/* --- Floating Timer --- */
.floating-timer {
    position: fixed;
    bottom: 0.75rem;
    left: 1rem;
    z-index: 1050;
}

.floating-timer-card {
    background: var(--byllr-surface);
    border: 1px solid var(--byllr-border);
    border-left: 3px solid var(--byllr-electric);
    border-radius: 8px;
    padding: 0.5rem 0.65rem;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.12);
    width: 420px;
}

.floating-timer-display {
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.floating-timer-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    flex-shrink: 0;
    animation: timer-dot-pulse 1.5s ease-in-out infinite;
}

.floating-timer-card .ghost-select {
    width: 100%;
}

.floating-timer-desc {
    min-height: 1.5rem;
    resize: none;
    overflow: hidden;
    flex: 1;
    min-width: 0;
}

.floating-timer-action-btn {
    background: none;
    border: 1px solid var(--byllr-border);
    border-radius: 6px;
    padding: 0.15rem 0.5rem;
    font-size: 0.75rem;
    color: var(--byllr-text-muted);
    cursor: pointer;
    transition: var(--byllr-transition);
    white-space: nowrap;
}

.floating-timer-action-btn:hover {
    color: var(--byllr-text);
    border-color: var(--byllr-text-muted);
}

.floating-timer-stop-btn {
    background: var(--byllr-electric);
    border-color: var(--byllr-electric);
    color: white;
}

.floating-timer-stop-btn:hover {
    color: white;
    filter: brightness(1.1);
}

.floating-timer-discard-btn:hover {
    color: var(--byllr-electric);
    border-color: var(--byllr-electric);
}

.floating-timer-collapse-btn {
    background: none;
    border: none;
    color: var(--byllr-text-muted);
    cursor: pointer;
    padding: 0;
    font-size: 0.85rem;
    line-height: 1;
    opacity: 0.5;
    transition: opacity 0.15s;
    flex-shrink: 0;
}

.floating-timer-collapse-btn:hover {
    opacity: 1;
}

/* Collapsed pill */
.floating-timer-pill {
    background: var(--byllr-surface);
    border: 1px solid var(--byllr-border);
    border-radius: 20px;
    padding: 0.3rem 0.7rem;
    font-size: 0.8rem;
    color: var(--byllr-text);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.15s, border-color 0.15s;
    border-left: 3px solid var(--byllr-electric);
}

.floating-timer-pill:hover {
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.15);
}

@media (max-width: 575px) {
    .floating-timer {
        left: 0.5rem;
        bottom: 0.5rem;
    }
    .floating-timer-card {
        width: calc(100vw - 1rem);
    }
}

/* --- Progress bars --- */
.progress {
    background: var(--byllr-surface-alt);
    border-radius: var(--byllr-radius);
    overflow: hidden;
}

.progress-bar {
    background: var(--byllr-gradient-accent);
    font-weight: 600;
    font-size: 0.75rem;
}

/* --- Landing page hero --- */
.byllr-hero {
    background: var(--byllr-gradient);
    border-radius: var(--byllr-radius-xl);
    padding: 5rem 2rem 4rem;
    margin: -1.5rem -0.75rem 2rem;
    position: relative;
    overflow: hidden;
}

.byllr-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.byllr-hero::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(15, 52, 96, 0.3) 0%, transparent 70%);
    border-radius: 50%;
}

.byllr-hero h1 {
    color: white !important;
    position: relative;
    z-index: 1;
}

.byllr-hero p {
    color: rgba(255, 255, 255, 0.7);
    position: relative;
    z-index: 1;
}

.byllr-hero .btn {
    position: relative;
    z-index: 1;
}

.byllr-hero .form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.byllr-hero .hero-brand {
    font-weight: 900;
    font-size: 1.1rem;
    color: white;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.byllr-hero .hero-brand .brand-dot {
    width: 8px;
    height: 8px;
    background: var(--byllr-electric);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--byllr-electric);
}

/* --- Feature cards on landing --- */
.feature-card {
    border: 1px solid var(--byllr-border);
    border-radius: var(--byllr-radius-lg);
    padding: 2rem;
    text-align: center;
    background: var(--byllr-card-bg);
    transition: var(--byllr-transition);
}

.feature-card:hover {
    box-shadow: var(--byllr-shadow-lg);
    transform: translateY(-4px);
}

.feature-card .feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.feature-icon-time {
    background: rgba(99, 102, 241, 0.1);
    color: var(--byllr-electric);
}

.feature-icon-invoice {
    background: rgba(59, 130, 246, 0.1);
    color: var(--byllr-info);
}

.feature-icon-email {
    background: rgba(16, 185, 129, 0.1);
    color: var(--byllr-success);
}

.feature-icon-report {
    background: rgba(245, 158, 11, 0.1);
    color: var(--byllr-warning);
}

.feature-icon-template {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.feature-icon-expense {
    background: rgba(6, 182, 212, 0.1);
    color: #06b6d4;
}

/* --- Pricing cards --- */
.pricing-card {
    border: 2px solid var(--byllr-border);
    border-radius: var(--byllr-radius-xl);
    padding: 2rem;
    text-align: center;
    background: var(--byllr-card-bg);
    transition: var(--byllr-transition);
}

.pricing-card:hover {
    box-shadow: var(--byllr-shadow-lg);
}

.pricing-card.pricing-featured {
    border-color: var(--byllr-electric);
    box-shadow: var(--byllr-shadow-glow);
    position: relative;
}

.pricing-card .price {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: var(--byllr-charcoal);
    line-height: 1;
}

.pricing-card .price-period {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--byllr-text-muted);
}

.pricing-card ul {
    text-align: left;
}

.pricing-card ul li {
    padding: 0.4rem 0;
    font-size: 0.9rem;
    color: var(--byllr-text);
}

.pricing-card ul li.disabled {
    color: var(--byllr-text-muted);
    text-decoration: line-through;
}

/* --- Pricing comparison table --- */
.comparison-table-wrap {
    background: var(--byllr-card-bg);
    border: 1px solid var(--byllr-border);
    border-radius: var(--byllr-radius-xl);
    overflow: hidden;
}

.comparison-table {
    margin: 0;
}

.comparison-table thead th {
    border-bottom: 2px solid var(--byllr-border) !important;
    padding: 1.5rem 1rem 1.25rem !important;
    font-size: inherit;
    text-transform: none;
    letter-spacing: normal;
    vertical-align: bottom;
}

.comparison-table .feature-col {
    width: 45%;
}

.comparison-table .plan-col {
    width: 27.5%;
}

.comparison-table .plan-col-featured {
    background: rgba(99, 102, 241, 0.04);
}

.comparison-table .plan-header .plan-name {
    font-weight: 800;
    font-size: 1.1rem;
}

.comparison-table .plan-header .plan-price {
    font-size: 2.2rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.1;
    margin-top: 0.25rem;
}

.comparison-table .plan-header .plan-period {
    font-size: 0.82rem;
    color: var(--byllr-text-muted);
    font-weight: 500;
}

.comparison-table tbody td {
    padding: 0.75rem 1rem !important;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--byllr-border);
    vertical-align: middle;
}

.comparison-table tfoot td {
    border: none !important;
    padding: 1rem 1rem 1.5rem !important;
}

[data-bs-theme="dark"] .comparison-table-wrap {
    background: #16161f;
    border-color: var(--byllr-border);
}

[data-bs-theme="dark"] .comparison-table .plan-col-featured {
    background: rgba(99, 102, 241, 0.08);
}

/* --- Stat cards on dashboard --- */
.stat-card {
    border: none;
    border-radius: var(--byllr-radius-lg);
    background: var(--byllr-card-bg);
    box-shadow: var(--byllr-shadow-sm);
    transition: var(--byllr-transition);
}

.stat-card:hover {
    box-shadow: var(--byllr-shadow);
}

.stat-card .stat-value {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--byllr-charcoal);
}

.stat-card .stat-label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--byllr-text-muted);
}

/* --- Auth cards --- */
.auth-card {
    border: none;
    border-radius: var(--byllr-radius-xl);
    box-shadow: var(--byllr-shadow-lg);
    overflow: hidden;
}

.auth-card .card-body {
    padding: 2.5rem;
}

.auth-brand {
    font-weight: 900;
    font-size: 1.8rem;
    letter-spacing: -0.03em;
    color: var(--byllr-charcoal);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-bottom: 0.25rem;
}

.auth-brand .brand-dot {
    width: 10px;
    height: 10px;
    background: var(--byllr-electric);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--byllr-electric);
}

/* --- Footer --- */
.byllr-footer {
    background: var(--byllr-white);
    border-top: 1px solid var(--byllr-border);
    padding: 32px 0;
    font-size: 0.8rem;
}

.byllr-footer small {
    color: #aaa;
    font-weight: 500;
}

.byllr-footer a.text-muted {
    color: #aaa !important;
    transition: color 0.2s;
}

.byllr-footer a.text-muted:hover {
    color: #6366f1 !important;
}

/* --- Misc --- */
.cursor-pointer {
    cursor: pointer;
}

.text-electric {
    color: var(--byllr-electric) !important;
}

.bg-electric {
    background: var(--byllr-electric) !important;
}

/* Modals */
.modal-content {
    border: none;
    border-radius: var(--byllr-radius-lg);
    box-shadow: var(--byllr-shadow-lg);
}

.modal-header {
    border-bottom: 1px solid var(--byllr-border);
    padding: 1.25rem 1.5rem;
}

.modal-header .modal-title {
    font-weight: 700;
}

.modal-footer {
    border-top: 1px solid var(--byllr-border);
    padding: 1rem 1.5rem;
}

/* Empty states */
.empty-state {
    padding: 3rem 1rem;
    text-align: center;
}

.empty-state i {
    color: var(--byllr-border);
    margin-bottom: 1rem;
}

.empty-state p {
    color: var(--byllr-text-muted);
    font-weight: 500;
}

/* Invoice view table header */
.table-byllr-dark {
    --bs-table-bg: #1a1a2e;
    --bs-table-color: white;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--byllr-surface);
}

::-webkit-scrollbar-thumb {
    background: var(--byllr-border);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--byllr-text-muted);
}

/* --- Flatpickr dark mode --- */
[data-bs-theme="dark"] .flatpickr-calendar {
    background: var(--byllr-charcoal);
    border-color: var(--byllr-border);
    box-shadow: var(--byllr-shadow-lg);
}
[data-bs-theme="dark"] .flatpickr-months .flatpickr-month,
[data-bs-theme="dark"] .flatpickr-current-month .flatpickr-monthDropdown-months,
[data-bs-theme="dark"] .flatpickr-weekdays,
[data-bs-theme="dark"] span.flatpickr-weekday {
    background: var(--byllr-charcoal);
    color: var(--byllr-text-muted);
}
[data-bs-theme="dark"] .flatpickr-day {
    color: #ccc;
}
[data-bs-theme="dark"] .flatpickr-day:hover {
    background: var(--byllr-navy);
    border-color: var(--byllr-navy);
}
[data-bs-theme="dark"] .flatpickr-day.selected {
    background: var(--byllr-electric);
    border-color: var(--byllr-electric);
    color: #fff;
}
[data-bs-theme="dark"] .flatpickr-day.today {
    border-color: var(--byllr-electric);
}
[data-bs-theme="dark"] .flatpickr-months .flatpickr-prev-month,
[data-bs-theme="dark"] .flatpickr-months .flatpickr-next-month {
    fill: #ccc;
}
[data-bs-theme="dark"] .flatpickr-months .flatpickr-prev-month:hover svg,
[data-bs-theme="dark"] .flatpickr-months .flatpickr-next-month:hover svg {
    fill: var(--byllr-electric);
}
[data-bs-theme="dark"] .flatpickr-current-month input.cur-year {
    color: #ccc;
}
[data-bs-theme="dark"] .flatpickr-day.flatpickr-disabled,
[data-bs-theme="dark"] .flatpickr-day.prevMonthDay,
[data-bs-theme="dark"] .flatpickr-day.nextMonthDay {
    color: #555;
}

/* --- Fixed-width table cells --- */
.table-fixed-cols td,
.table-fixed-cols th {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Description column wraps normally */
.table-fixed-cols td:nth-child(4) {
    white-space: normal;
    word-break: break-word;
}

/* Actions column — don't clip buttons */
.table-fixed-cols td:last-child {
    overflow: visible;
    white-space: nowrap;
}

/* Quick-add row needs visible overflow for form controls */
.table-fixed-cols .quick-add-row td {
    overflow: visible;
    white-space: normal;
}

/* --- Inline Editing --- */
.editable {
    cursor: pointer;
    transition: background 0.15s ease;
}

.editable:hover {
    background: rgba(99, 102, 241, 0.04);
    text-decoration: underline dotted var(--byllr-text-muted);
    text-underline-offset: 3px;
}

.inline-edit-input {
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: var(--byllr-text) !important;
    font-size: inherit !important;
    font-family: inherit !important;
    padding: 0.1rem 0 !important;
    width: 100%;
    outline: none !important;
    outline: none;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15) !important;
}

.inline-edit-input:focus {
    box-shadow: none !important;
}

.inline-edit-textarea {
    resize: none;
    overflow: hidden;
    min-height: 1.4em;
    line-height: 1.4;
    font-size: 0.75rem !important;
    color: var(--byllr-text-muted) !important;
    white-space: pre-wrap;
    word-wrap: break-word;
    display: block;
}

[data-bs-theme="dark"] .inline-edit-input {
    background: transparent !important;
    color: #e4e4ec !important;
}

/* --- Quick-Add Row --- */
.quick-add-row {
    background: var(--byllr-surface) !important;
    border-bottom: 2px solid var(--byllr-border) !important;
}

.quick-add-row td {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    vertical-align: middle !important;
}

.quick-add-row input,
.quick-add-row select {
    font-size: 0.82rem !important;
}

.quick-add-row input.is-invalid,
.quick-add-row select.is-invalid {
    border-color: var(--byllr-danger) !important;
}

[data-bs-theme="dark"] .quick-add-row {
    background: #1a1a28 !important;
}

/* --- Today Page --- */
.today-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: stretch;
}

.today-grid > div {
    display: flex;
}

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

.day-card {
    border-radius: var(--byllr-radius-lg);
    overflow: hidden;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.day-card-header {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--byllr-border);
    background: var(--byllr-white);
}

[data-bs-theme="dark"] .day-card-header {
    background: #1a1a28;
}

.day-card.is-today .day-card-header {
    background: rgba(99, 102, 241, 0.06);
    border-bottom-color: var(--byllr-electric);
}

[data-bs-theme="dark"] .day-card.is-today .day-card-header {
    background: rgba(99, 102, 241, 0.1);
}

.day-card-body {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.day-card-footer {
    border-top: 1px solid var(--byllr-border);
    padding: 0.5rem 1rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--byllr-text-muted);
    font-family: 'JetBrains Mono', monospace;
}

.day-card-reference {
    /* interactive like today card */
}

/* Entry group (client/project grouping within day cards) */
.entry-group { margin-bottom: 0.25rem; }
.entry-group:last-child { margin-bottom: 0; }

/* Project card mode — wraps entries with a bordered container */
.entry-group.is-card {
    border: 1px solid var(--byllr-border);
    border-left: 3px solid var(--byllr-electric);
    border-radius: 8px;
    background: var(--byllr-white);
    padding: 0.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.entry-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.2rem 0.5rem 0.2rem 0.65rem;
    border-left: 3px solid var(--byllr-electric);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--byllr-text-muted);
    background: rgba(99, 102, 241, 0.03);
    border-radius: 4px;
    margin-bottom: 0.15rem;
}
/* When inside a card, the header is a clean label (card border provides the accent) */
.entry-group.is-card > .entry-group-header {
    border-left: none;
    background: none;
    border-radius: 0;
    padding: 0.1rem 0.15rem;
    margin-bottom: 0;
}

.entry-group-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    flex: 1;
}
.entry-group-total {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--byllr-charcoal);
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: 0.25rem;
}

/* Entries inside a project card — no individual border-left (card provides context) */
.entry-group.is-card > .day-entry {
    border-left-width: 0;
    border-radius: 6px;
}
.entry-group.is-card > .day-entry.entry-focusable:focus {
    border-left-width: 0;
}

/* Week view group headers */
.week-entry-group { margin-bottom: 0.25rem; }
.week-entry-group:last-child { margin-bottom: 0; }

.week-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.15rem 0.4rem 0.15rem 0.5rem;
    border-left: 3px solid var(--byllr-electric);
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--byllr-text-muted);
    background: rgba(99, 102, 241, 0.03);
    border-radius: 4px;
    margin-bottom: 0.15rem;
    min-width: 0;
}
.week-group-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    flex: 1;
}
.week-group-total {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--byllr-charcoal);
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: 0.25rem;
}

/* Week project card mode — compact nested card for week columns */
.week-entry-group.is-card {
    border: 1px solid var(--byllr-border);
    border-left: 3px solid var(--byllr-electric);
    border-radius: 6px;
    background: var(--byllr-white);
    padding: 0.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.week-entry-group.is-card > .week-group-header {
    border-left: none;
    background: none;
    border-radius: 0;
    padding: 0.05rem 0.1rem;
    margin-bottom: 0;
}
.week-entry-group.is-card > .week-entry {
    border-left-width: 0;
    border-radius: 4px;
}

/* Week client card mode — wraps project cards within a client container */
.week-client-group.is-card {
    border: 1px solid var(--byllr-border);
    border-left: 4px solid var(--byllr-electric);
    border-radius: 8px;
    background: rgba(99, 102, 241, 0.02);
    padding: 0.3rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin-bottom: 0.25rem;
}
.week-client-group.is-card:last-child { margin-bottom: 0; }
.week-client-group.is-card > .week-client-header {
    border-left: none;
    background: none;
    border-radius: 0;
    padding: 0.05rem 0.1rem;
    margin-bottom: 0;
}
.week-client-group.is-card > .week-entry-group.is-card {
    margin-bottom: 0;
}

/* Week entries: always visible (including in collapsed columns) */

/* Client-level group (day cards) */
.entry-client-group { margin-bottom: 0.15rem; }
.entry-client-group:last-child { margin-bottom: 0; }

/* Client card mode — large container wrapping project cards */
.entry-client-group.is-card {
    border: 1px solid var(--byllr-border);
    border-left: 4px solid var(--byllr-electric);
    border-radius: 10px;
    background: rgba(99, 102, 241, 0.02);
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: 0.35rem;
}
.entry-client-group.is-card:last-child { margin-bottom: 0; }

.entry-client-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.15rem 0.15rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--byllr-charcoal);
}
.entry-client-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    flex: 1;
}
.entry-client-total {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: 0.5rem;
}

/* Project cards nested inside client cards need less border — card already has color */
.entry-client-group.is-card > .entry-group.is-card {
    margin-bottom: 0;
}

/* Week view client headers */
.week-client-group { margin-bottom: 0.25rem; }
.week-client-group:last-child { margin-bottom: 0; }

.week-client-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.15rem 0.4rem 0.15rem 0.5rem;
    border-left: 4px solid var(--byllr-electric);
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--byllr-charcoal);
    background: rgba(99, 102, 241, 0.05);
    border-radius: 4px;
    margin-bottom: 0.1rem;
    min-width: 0;
}

/* Single-project client: de-emphasize redundant inner project card */
.entry-client-group.is-card:not(:has(.entry-group.is-card ~ .entry-group.is-card)) > .entry-group.is-card {
    border: none; background: transparent; padding: 0;
}
.week-client-group.is-card:not(:has(.week-entry-group.is-card ~ .week-entry-group.is-card)) > .week-entry-group.is-card {
    border: none; background: transparent; padding: 0;
}

/* Dark mode group headers & cards */
[data-bs-theme="dark"] .entry-group-header,
[data-bs-theme="dark"] .week-group-header {
    background: rgba(99, 102, 241, 0.06);
}
[data-bs-theme="dark"] .entry-group.is-card > .entry-group-header,
[data-bs-theme="dark"] .week-entry-group.is-card > .week-group-header {
    background: none;
}
[data-bs-theme="dark"] .entry-group-total,
[data-bs-theme="dark"] .week-group-total {
    color: var(--byllr-text);
}
[data-bs-theme="dark"] .entry-client-header,
[data-bs-theme="dark"] .week-client-header {
    color: var(--byllr-text);
}
[data-bs-theme="dark"] .entry-client-total { color: var(--byllr-text); }
[data-bs-theme="dark"] .entry-client-group.is-card,
[data-bs-theme="dark"] .week-client-group.is-card {
    background: rgba(99, 102, 241, 0.04);
    border-color: var(--byllr-border);
}
[data-bs-theme="dark"] .entry-group.is-card,
[data-bs-theme="dark"] .week-entry-group.is-card {
    background: var(--byllr-surface);
    border-color: var(--byllr-border);
}
[data-bs-theme="dark"] .entry-client-group.is-card:not(:has(.entry-group.is-card ~ .entry-group.is-card)) > .entry-group.is-card,
[data-bs-theme="dark"] .week-client-group.is-card:not(:has(.week-entry-group.is-card ~ .week-entry-group.is-card)) > .week-entry-group.is-card {
    border: none; background: transparent;
}

.day-entry {
    background: var(--byllr-surface);
    border-radius: 8px;
    padding: 0.5rem 0.65rem;
    border-left: 3px solid var(--byllr-electric);
    transition: var(--byllr-transition);
    outline: none;
}

.day-entry.entry-focusable:focus {
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08), inset 0 0 0 1px rgba(0, 0, 0, 0.06);
    border-left-width: 5px;
    background: var(--byllr-white);
}

[data-bs-theme="dark"] .day-entry.entry-focusable:focus {
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.06), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    border-left-width: 5px;
    background: #252535;
}

/* Keyboard hint */
.keyboard-hint {
    text-align: center;
    font-size: 0.72rem;
    color: var(--byllr-text-muted);
    opacity: 0.6;
}

.keyboard-hint-key {
    display: inline-block;
    background: var(--byllr-surface);
    border: 1px solid var(--byllr-border);
    border-radius: 3px;
    padding: 0 0.3em;
    font-size: 0.68rem;
    font-family: 'JetBrains Mono', monospace;
    line-height: 1.6;
    vertical-align: middle;
}

.keyboard-hint-sep {
    margin: 0 0.3em;
    opacity: 0.4;
}

/* Expand chevron (row 2, where delete used to be) */
.entry-expand-btn {
    background: none;
    border: none;
    color: var(--byllr-text-muted);
    opacity: 0;
    transition: opacity 0.15s, color 0.15s;
    cursor: pointer;
    font-size: 0.65rem;
    padding: 0 2px;
    line-height: 1;
    flex-shrink: 0;
    margin-left: 0.25rem;
}

.day-entry:hover .entry-expand-btn {
    opacity: 0.5;
}

.entry-expand-btn:hover {
    opacity: 1 !important;
    color: var(--byllr-electric) !important;
}

/* Delete button in detail row (always visible, muted until hover) */
.entry-delete-btn-detail {
    background: none;
    border: none;
    color: var(--byllr-text-muted);
    font-size: 0.7rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.1rem 0.3rem;
    transition: color 0.15s;
}

.entry-delete-btn-detail:hover {
    color: var(--byllr-danger);
}

/* Detail row (billable + date) */
.entry-details {
    margin-top: 0.35rem;
    padding-top: 0.35rem;
    border-top: 1px dashed var(--byllr-border);
}

/* Billable pill */
.entry-billable-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    border: 1px solid var(--byllr-border);
    background: transparent;
    color: var(--byllr-text-muted);
    cursor: pointer;
    transition: all 0.15s ease;
}

.entry-billable-pill.is-billable {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--byllr-success);
    color: var(--byllr-success);
}

/* Date input in detail row */
.entry-date-input {
    border: 1px solid var(--byllr-border);
    border-radius: 4px;
    background: var(--byllr-white);
    color: var(--byllr-text);
    font-size: 0.72rem;
    padding: 0.1rem 0.35rem;
    outline: none;
}

.entry-date-input:focus {
    border-color: var(--byllr-electric);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
}

/* Dark mode: detail row controls */
[data-bs-theme="dark"] .entry-date-input {
    background: #1a1a28;
    color: #e4e4ec;
    border-color: var(--byllr-border);
}

[data-bs-theme="dark"] .entry-date-input:focus {
    border-color: var(--byllr-electric);
}

.entry-delete-btn {
    background: none;
    border: none;
    color: var(--byllr-text-muted);
    opacity: 0;
    transition: opacity 0.15s, color 0.15s;
    cursor: pointer;
    font-size: 0.7rem;
    padding: 0 2px;
    line-height: 1;
    flex-shrink: 0;
    margin-left: 0.25rem;
}

.day-entry:hover .entry-delete-btn {
    opacity: 0.5;
}

.entry-delete-btn:hover {
    opacity: 1 !important;
    color: var(--byllr-danger) !important;
}

.day-entry:hover {
    box-shadow: var(--byllr-shadow-sm);
    background: var(--byllr-surface-alt);
}

.day-entry .entry-project {
    font-weight: 600;
    color: var(--byllr-charcoal);
    font-size: 0.78rem;
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
}
/* Hide TomSelect caret — all project dropdowns look like plain text until clicked */
.ghost-project-label .ts-wrapper.single .ts-control,
.editable-inline .ts-wrapper.single .ts-control {
    background-image: none !important;
    padding-right: 0.3rem !important;
}

.day-entry .entry-desc {
    color: var(--byllr-text-muted);
    font-size: 0.75rem;
    line-height: 1.4;
    white-space: pre-line;
}

.day-entry .entry-hours {
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    white-space: nowrap;
}

.day-entry .editable-inline {
    cursor: pointer;
    border-radius: 3px;
    transition: background 0.15s ease;
}

.day-entry .editable-inline:hover {
    background: rgba(99, 102, 241, 0.06);
}

/* Inline client/project edit selects */
.inline-edit-select {
    border: 1px solid var(--byllr-electric);
    border-radius: 4px;
    background: var(--byllr-white);
    color: var(--byllr-text);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.1rem 0.25rem;
    outline: none;
    max-width: 140px;
    cursor: pointer;
}

.inline-edit-select:focus {
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
}

[data-bs-theme="dark"] .inline-edit-select {
    background: #1a1a28;
    color: #e4e4ec;
    border-color: var(--byllr-electric);
}

/* Client color dot */
.client-color-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 0.25rem;
}

/* Ghost rows */
.ghost-row {
    border-width: 1px 1px 1px 3px !important;
    border-style: dashed dashed dashed solid !important;
    opacity: 0.7;
    background: transparent !important;
}

.ghost-row:focus-within {
    opacity: 1;
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.1);
}

.ghost-input {
    background: transparent;
    border: none;
    outline: none;
    font-size: 0.78rem;
    color: var(--byllr-text);
    width: 100%;
    padding: 0.1rem 0;
}

.ghost-input::placeholder {
    color: var(--byllr-text-muted);
    opacity: 0.6;
}

.ghost-input:focus {
    outline: none;
}

.ghost-hours {
    text-align: right;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
}

/* Ghost row project label with inline selects */
.ghost-project-label {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    min-width: 0;
    flex: 1;
    overflow: hidden;
}

.ghost-select {
    background: transparent;
    border: none;
    outline: none;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--byllr-charcoal);
    padding: 0;
    cursor: pointer;
    width: 100%;
    text-overflow: ellipsis;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.ghost-select:focus {
    background: rgba(99, 102, 241, 0.06);
    border-radius: 3px;
    outline: 1px solid var(--byllr-electric);
}

.ghost-select:hover {
    background: rgba(99, 102, 241, 0.04);
    border-radius: 3px;
}

[data-bs-theme="dark"] .ghost-select {
    color: #e4e4ec;
}

/* + Add entry button */
.add-ghost-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: 100%;
    padding: 0.45rem;
    border: 1px dashed var(--byllr-border);
    border-radius: 8px;
    background: transparent;
    color: var(--byllr-text-muted);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--byllr-transition);
}

.add-ghost-btn:hover {
    border-color: var(--byllr-electric);
    color: var(--byllr-electric);
    background: rgba(99, 102, 241, 0.03);
}

/* Ghost description — match existing entry-desc appearance */
textarea.ghost-desc {
    resize: none;
    overflow: hidden;
    font-size: 0.75rem;
    color: var(--byllr-text-muted);
    line-height: 1.4;
}

/* --- Expense card list --- */
.expense-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.expense-entry {
    background: var(--byllr-white);
    border-radius: 8px;
    padding: 0.55rem 0.75rem;
    border-left: 3px solid var(--byllr-electric);
    transition: var(--byllr-transition);
    outline: none;
}

.expense-entry:hover {
    box-shadow: var(--byllr-shadow-sm);
    background: var(--byllr-surface);
}

.expense-entry .expense-client {
    font-weight: 600;
    color: var(--byllr-charcoal);
    font-size: 0.78rem;
}

.expense-entry .expense-desc {
    color: var(--byllr-text-muted);
    font-size: 0.75rem;
    line-height: 1.4;
    white-space: pre-line;
    word-break: break-word;
}

.expense-desc-multiline {
    white-space: pre-line;
    word-break: break-word;
}

.expense-entry .expense-amount {
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    white-space: nowrap;
}

.expense-entry .expense-date {
    font-size: 0.72rem;
    color: var(--byllr-text-muted);
}

.expense-category-badge {
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.1rem 0.45rem;
    border-radius: 10px;
    display: inline-block;
    background: var(--byllr-surface) !important;
    color: var(--byllr-charcoal) !important;
    border: 1px solid var(--byllr-border);
    white-space: nowrap;
}
[data-bs-theme="dark"] .expense-category-badge {
    background: rgba(255, 255, 255, 0.08) !important;
    color: var(--byllr-text) !important;
    border-color: rgba(255, 255, 255, 0.15);
}
.ghost-category-pill {
    cursor: pointer;
    transition: background 0.15s ease;
}
.ghost-category-pill:hover {
    background: rgba(99, 102, 241, 0.12) !important;
    border-color: var(--byllr-electric);
}

.expense-entry .editable-inline {
    cursor: pointer;
    border-radius: 3px;
    transition: background 0.15s ease;
}

.expense-entry .editable-inline:hover {
    background: rgba(99, 102, 241, 0.06);
}

/* (delete button moved to expand section — see .expense-delete-btn-detail) */

.expense-entry .expense-billable-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.15rem;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.1rem 0.4rem;
    border-radius: 10px;
    border: 1px solid var(--byllr-border);
    background: transparent;
    color: var(--byllr-text-muted);
    cursor: pointer;
    transition: all 0.15s ease;
}

.expense-entry .expense-billable-pill.is-billable {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--byllr-success);
    color: var(--byllr-success);
}

/* Expense expand button (mirrors .entry-expand-btn) */
.expense-expand-btn {
    background: none;
    border: none;
    color: var(--byllr-text-muted);
    opacity: 0;
    transition: opacity 0.15s, color 0.15s;
    cursor: pointer;
    font-size: 0.65rem;
    padding: 0 2px;
    line-height: 1;
    flex-shrink: 0;
    margin-left: 0.25rem;
}
.expense-entry:hover .expense-expand-btn { opacity: 0.5; }
.expense-expand-btn:hover { opacity: 1 !important; color: var(--byllr-electric) !important; }

/* Expense delete button in detail row */
.expense-delete-btn-detail {
    background: none;
    border: none;
    color: var(--byllr-text-muted);
    font-size: 0.7rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.1rem 0.3rem;
    transition: color 0.15s;
}
.expense-delete-btn-detail:hover { color: var(--byllr-danger); }

/* Expense detail row (date + delete + receipts) */
.expense-details {
    margin-top: 0.35rem;
    padding-top: 0.35rem;
    border-top: 1px dashed var(--byllr-border);
}
.expense-date-input {
    font-size: 0.72rem;
    padding: 0.1rem 0.25rem;
    border: 1px solid var(--byllr-border);
    border-radius: 4px;
    background: var(--byllr-white);
    color: var(--byllr-text);
}

/* Receipt display */
.receipt-list { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.receipt-thumb {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.68rem;
    padding: 0.15rem 0.4rem;
    border-radius: 6px;
    background: var(--byllr-surface);
    border: 1px solid var(--byllr-border);
    max-width: 200px;
}
.receipt-thumb .receipt-link {
    color: var(--byllr-text);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.receipt-thumb .receipt-link:hover { color: var(--byllr-electric); }
.receipt-delete-btn {
    background: none;
    border: none;
    color: var(--byllr-text-muted);
    font-size: 0.7rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
}
.receipt-delete-btn:hover { color: var(--byllr-danger); }
.receipt-upload-label {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.68rem;
    color: var(--byllr-text-muted);
    cursor: pointer;
    padding: 0.15rem 0.4rem;
    border-radius: 6px;
    border: 1px dashed var(--byllr-border);
    transition: var(--byllr-transition);
    margin-top: 0.25rem;
}
.receipt-upload-label:hover {
    color: var(--byllr-electric);
    border-color: var(--byllr-electric);
    background: rgba(99, 102, 241, 0.04);
}

/* Week expense collapsed-state truncation */
.expense-week-entry {
    overflow: hidden;
    min-width: 0;
}
.expense-week-entry > .d-flex {
    min-width: 0;
}
.expense-week-entry .expense-client {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}
.expense-week-entry .expense-amount {
    white-space: nowrap;
    flex-shrink: 0;
}
.expense-week-entry .expense-category-badge {
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.expense-week-entry .expense-desc-multiline {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    line-height: 1.3;
}
/* When expanded, remove truncation */
.week-day.is-expanded .expense-week-entry .expense-client {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
}
.week-day.is-expanded .expense-week-entry .expense-desc-multiline {
    display: block;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
    overflow: visible;
    text-overflow: unset;
    white-space: pre-line;
}

/* Week expense expand */
.expense-week-entry .expense-expand-btn { display: none; }
.week-day.is-expanded .expense-week-entry .expense-expand-btn { display: inline-flex; }
.week-day.is-expanded .expense-week-entry .expense-expand-btn {
    background: none;
    border: none;
    color: var(--byllr-text-muted);
    opacity: 0;
    transition: opacity 0.15s, color 0.15s;
    cursor: pointer;
    font-size: 0.6rem;
    padding: 0 2px;
    line-height: 1;
    flex-shrink: 0;
}
.week-day.is-expanded .expense-week-entry:hover .expense-expand-btn { opacity: 0.5; }
.week-day.is-expanded .expense-week-entry .expense-expand-btn:hover { opacity: 1 !important; color: var(--byllr-electric) !important; }
.expense-week-entry .expense-details {
    margin-top: 0.3rem;
    padding-top: 0.3rem;
    border-top: 1px dashed var(--byllr-border);
    font-size: 0.7rem;
}
.expense-week-entry .expense-date-input { font-size: 0.65rem; padding: 0.05rem 0.25rem; }
.expense-week-entry .expense-delete-btn-detail { font-size: 0.65rem; }

/* Week "+" add expense button (reuses week-add-entry-btn pattern) */
.week-add-expense-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    width: 100%;
    padding: 0.3rem 0.5rem;
    margin-top: auto;
    background: none;
    border: 1px dashed var(--byllr-border);
    border-radius: 6px;
    color: var(--byllr-text-muted);
    font-size: 0.7rem;
    cursor: pointer;
    transition: var(--byllr-transition);
    opacity: 0.5;
}
.week-add-expense-btn:hover {
    opacity: 1;
    border-color: var(--byllr-electric);
    color: var(--byllr-electric);
    background: rgba(99, 102, 241, 0.04);
}
.week-day.is-expanded .week-add-expense-btn { opacity: 0.7; }

/* Expense ghost row (card style) */
.expense-ghost-row {
    background: var(--byllr-white);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    border: 1px dashed var(--byllr-border);
    border-left: 3px solid var(--byllr-electric);
    opacity: 0.7;
    transition: var(--byllr-transition);
}

.expense-ghost-row:focus-within {
    opacity: 1;
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.1);
}

.expense-ghost-row .ghost-select {
    background: transparent;
    border: none;
    outline: none;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--byllr-charcoal);
    padding: 0;
    cursor: pointer;
    max-width: 140px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.expense-ghost-row .ghost-select:focus {
    background: rgba(99, 102, 241, 0.06);
    border-radius: 3px;
    outline: 1px solid var(--byllr-electric);
}

[data-bs-theme="dark"] .expense-ghost-row .ghost-select {
    color: #e4e4ec;
}

.expense-ghost-row .ghost-input {
    background: transparent;
    border: none;
    outline: none;
    font-size: 0.78rem;
    color: var(--byllr-text);
    padding: 0.1rem 0;
}

.expense-ghost-row .ghost-input::placeholder {
    color: var(--byllr-text-muted);
    opacity: 0.6;
}

.expense-ghost-row .ghost-input:focus {
    outline: none;
}

.expense-ghost-row .ghost-desc {
    resize: none;
    overflow: hidden;
    min-height: 1.4em;
    line-height: 1.4;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: inherit;
}

.expense-ghost-row .ghost-amount {
    text-align: right;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    width: 70px;
}

/* Expense week ghost row compact adjustments */
.expense-week-ghost {
    padding: 0.35rem 0.5rem;
    overflow: hidden;
}
.expense-week-ghost .ghost-select,
.expense-week-ghost .ghost-input {
    font-size: 0.65rem;
}
.expense-week-ghost .ghost-project-label {
    overflow: hidden;
    min-width: 0;
}
.expense-week-ghost .ghost-select {
    max-width: 100%;
}

/* Expense day group (list view) */
.expense-day-group .expense-list {
    border-radius: var(--byllr-radius);
    overflow: hidden;
}

/* --- Invoice card list --- */
.invoice-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.invoice-entry {
    background: var(--byllr-white);
    border-radius: 8px;
    padding: 0.55rem 0.75rem;
    border-left: 3px solid var(--byllr-electric);
    transition: var(--byllr-transition);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.invoice-entry:hover {
    box-shadow: var(--byllr-shadow-sm);
    background: var(--byllr-surface);
    color: inherit;
    text-decoration: none;
}

.invoice-entry .invoice-number {
    font-weight: 700;
    color: var(--byllr-charcoal);
    font-size: 0.82rem;
}

.invoice-entry .invoice-client {
    font-weight: 600;
    color: var(--byllr-charcoal);
    font-size: 0.78rem;
}

.invoice-entry .invoice-date {
    font-size: 0.72rem;
    color: var(--byllr-text-muted);
}

.invoice-entry .invoice-amount {
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    white-space: nowrap;
}

.invoice-entry .invoice-mark-paid-btn {
    background: none;
    border: none;
    color: var(--byllr-text-muted);
    opacity: 0;
    transition: opacity 0.15s, color 0.15s;
    cursor: pointer;
    font-size: 0.75rem;
    padding: 0.1rem 0.3rem;
    line-height: 1;
    flex-shrink: 0;
}

.invoice-entry:hover .invoice-mark-paid-btn {
    opacity: 0.6;
}

.invoice-entry .invoice-mark-paid-btn:hover {
    opacity: 1 !important;
    color: var(--byllr-success) !important;
}

/* Invoice status border colors */
.invoice-entry.status-paid {
    border-left-color: var(--byllr-success);
}

.invoice-entry.status-sent {
    border-left-color: var(--byllr-info);
}

.invoice-entry.status-overdue {
    border-left-color: var(--byllr-danger);
}

.invoice-entry.status-draft {
    border-left-color: var(--byllr-warning);
}
.invoice-entry.status-expired {
    border-left-color: var(--byllr-text-muted);
}
.invoice-entry.status-accepted {
    border-left-color: var(--byllr-success);
}
.invoice-entry.status-declined {
    border-left-color: var(--byllr-danger);
}
.invoice-entry.status-converted {
    border-left-color: var(--byllr-electric);
}

/* Auto-grow textarea for line item descriptions */
textarea.auto-grow { overflow: hidden; resize: none; min-height: 31px; }

/* Estimate inline edit discoverability */
.estimate-view .editable-inline { cursor: pointer; border-radius: 3px; transition: background 0.15s ease; }
.estimate-view .editable-inline:hover { background: rgba(99, 102, 241, 0.06); }
.estimate-view .editable-inline:hover::after { content: '\F4CB'; font-family: 'bootstrap-icons'; font-size: 0.65rem; color: var(--byllr-text-muted); margin-left: 0.3em; }
.estimate-view .editable-li-cell { cursor: pointer; border-radius: 3px; transition: background 0.15s ease; }
.estimate-view .editable-li-cell:hover { background: rgba(99, 102, 241, 0.06); }

/* Invoice activity log */
.invoice-activity-log {
    padding: 0.5rem 0;
}
.activity-event {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid var(--byllr-border);
}
.activity-event:last-child { border-bottom: none; }
.activity-icon { font-size: 0.85rem; padding-top: 2px; }
.activity-type { font-weight: 600; font-size: 0.8rem; }
.activity-detail { font-size: 0.75rem; color: var(--byllr-text-muted); margin-left: 0.25rem; }
.activity-meta { display: block; font-size: 0.7rem; color: var(--byllr-text-muted); }

/* Invoice filter pills */
.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    border: 1px solid var(--byllr-border);
    background: transparent;
    color: var(--byllr-text-muted);
    cursor: pointer;
    transition: var(--byllr-transition);
}

.filter-pill:hover {
    border-color: var(--byllr-text-muted);
    color: var(--byllr-text);
}

.filter-pill.active {
    background: var(--byllr-gradient-accent);
    border-color: transparent;
    color: white;
}

.filter-pill .filter-count {
    font-size: 0.68rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.05rem 0.35rem;
    border-radius: 10px;
    min-width: 1.2rem;
    text-align: center;
}

.filter-pill:not(.active) .filter-count {
    background: var(--byllr-surface-alt);
}

/* --- Member Filter Bar --- */
.member-filter-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.member-filter-bar .filter-pills {
    margin-bottom: 0;
}
.member-filter-bar .pill-remove {
    font-size: 0.55rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.15s;
}
.member-filter-bar .pill-remove:hover {
    opacity: 1;
}
/* Hide native select before TomSelect replaces it */
.member-filter-bar #member-typeahead { display: none; }
.member-filter-bar #member-typeahead + .ts-wrapper {
    min-width: 160px;
    max-width: 220px;
}
.member-filter-bar .ts-wrapper .ts-control {
    font-size: 0.78rem;
    min-height: 0;
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
    border-color: var(--byllr-border);
    background: transparent;
}
.member-filter-bar .ts-wrapper .ts-control input {
    font-size: 0.78rem;
}
.member-filter-bar .ts-wrapper .ts-dropdown {
    font-size: 0.78rem;
    border-radius: var(--byllr-radius);
    border-color: var(--byllr-border);
}
/* Tom Select dark mode overrides */
[data-bs-theme="dark"] .member-filter-bar .ts-wrapper .ts-control {
    background: var(--byllr-surface);
    border-color: var(--byllr-border);
    color: var(--byllr-text);
}
[data-bs-theme="dark"] .member-filter-bar .ts-wrapper .ts-dropdown {
    background: var(--byllr-card-bg);
    border-color: var(--byllr-border);
    color: var(--byllr-text);
}
[data-bs-theme="dark"] .member-filter-bar .ts-wrapper .ts-dropdown .option:hover,
[data-bs-theme="dark"] .member-filter-bar .ts-wrapper .ts-dropdown .active {
    background: var(--byllr-surface-alt);
    color: var(--byllr-text);
}

/* --- TomSelect in ghost forms & inline edits --- */
.ghost-project-label .ts-wrapper {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    max-width: none !important;
    width: 100% !important;
}
.ghost-project-label .ts-wrapper .ts-control {
    font-size: 0.78rem;
    font-weight: 600;
    min-height: 0;
    padding: 0 0.3rem;
    border: none;
    background: transparent;
    box-shadow: none;
    cursor: pointer;
}
.ghost-project-label .ts-wrapper .ts-control input {
    font-size: 0.78rem;
    font-weight: 600;
}
.ghost-project-label .ts-wrapper .ts-control .item {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.ghost-project-label .ts-wrapper.focus .ts-control {
    background: rgba(99, 102, 241, 0.06);
    border-radius: 3px;
    outline: 1px solid var(--byllr-electric);
    box-shadow: none;
}
/* Hide selected item only when user is actively typing a filter */
.ghost-project-label .ts-wrapper.single.typing .ts-control > .item,
.editable-inline .ts-wrapper.single.typing .ts-control > .item {
    display: none;
}

/* Inline edit TomSelect (client/project on entries) */
.editable-inline:has(.ts-wrapper) {
    display: flex !important;
}
.editable-inline .ts-wrapper {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: none !important;
}
.editable-inline .ts-wrapper .ts-control {
    font-size: 0.78rem;
    font-weight: 600;
    min-height: 0;
    padding: 0.1rem 0.4rem;
    border: 1px solid var(--byllr-border);
    border-radius: 4px;
    background: var(--byllr-surface);
}
.editable-inline .ts-wrapper .ts-control input {
    font-size: 0.78rem;
}
.editable-inline .ts-wrapper .ts-control .item {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.editable-inline .ts-wrapper.focus .ts-control {
    border-color: var(--byllr-electric);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.15);
}

/* Body-appended TomSelect dropdown (from dropdownParent: 'body') */
body > .ts-dropdown {
    font-size: 0.82rem;
    border-radius: var(--byllr-radius);
    border-color: var(--byllr-border);
    z-index: 10000;
    min-width: 280px;
}
body > .ts-dropdown .optgroup-header {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--byllr-muted);
    padding: 0.25rem 0.6rem 0.1rem;
}
body > .ts-dropdown .option {
    padding: 0.15rem 0.6rem;
    font-size: 0.78rem;
}
body > .ts-dropdown .option.selected {
    background: rgba(99, 102, 241, 0.12);
    font-weight: 600;
}
body > .ts-dropdown .option.active {
    background: rgba(99, 102, 241, 0.18);
}
body > .ts-dropdown .option.selected.active {
    background: rgba(99, 102, 241, 0.22);
}

/* Dark mode for ghost/inline TomSelect */
[data-bs-theme="dark"] .ghost-project-label .ts-wrapper .ts-control {
    color: var(--byllr-text);
    background: transparent;
}
[data-bs-theme="dark"] .ghost-project-label .ts-wrapper.focus .ts-control {
    background: rgba(99, 102, 241, 0.12);
}
[data-bs-theme="dark"] .editable-inline .ts-wrapper .ts-control {
    background: var(--byllr-surface);
    border-color: var(--byllr-border);
    color: var(--byllr-text);
}
[data-bs-theme="dark"] body > .ts-dropdown {
    background: var(--byllr-card-bg);
    border-color: var(--byllr-border);
    color: var(--byllr-text);
}
[data-bs-theme="dark"] body > .ts-dropdown .option:hover,
[data-bs-theme="dark"] body > .ts-dropdown .option.active {
    background: rgba(99, 102, 241, 0.25);
    color: var(--byllr-text);
}
[data-bs-theme="dark"] body > .ts-dropdown .option.selected {
    background: rgba(99, 102, 241, 0.18);
    font-weight: 600;
}
[data-bs-theme="dark"] body > .ts-dropdown .option.selected.active {
    background: rgba(99, 102, 241, 0.3);
}

/* --- Compact Stats --- */
.compact-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.compact-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 1rem;
}

.compact-stat-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--byllr-text-muted);
}

.compact-stat-value {
    font-size: 0.85rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    color: var(--byllr-charcoal);
}

[data-bs-theme="dark"] .compact-stat-value {
    color: #e4e4ec;
}

.compact-stat-divider {
    width: 1px;
    height: 24px;
    background: var(--byllr-border);
    flex-shrink: 0;
}

/* --- Day Navigation Wrapper --- */
.day-nav-wrapper {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
}

.day-nav-btn {
    background: none;
    border: 1px solid var(--byllr-border);
    border-radius: var(--byllr-radius);
    color: var(--byllr-text-muted);
    font-size: 1rem;
    padding: 0 0.4rem;
    cursor: pointer;
    transition: var(--byllr-transition);
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.day-nav-btn:hover:not(:disabled) {
    color: var(--byllr-electric);
    border-color: var(--byllr-electric);
    background: rgba(99, 102, 241, 0.04);
}

.day-nav-btn:disabled {
    opacity: 0.3;
    cursor: default;
}

.day-nav-wrapper .today-grid {
    flex: 1;
    min-width: 0;
}

/* --- Ghost play button --- */
.ghost-play-btn {
    border-radius: 4px !important;
}

/* Ghost timer running card */
.ghost-timer-active {
    background: var(--byllr-surface);
    border-width: 1px 1px 1px 3px;
    border-style: dashed dashed dashed solid;
}

.ghost-timer-display {
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.ghost-timer-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    animation: timer-dot-pulse 1.5s ease-in-out infinite;
}

@keyframes timer-dot-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.ghost-timer-desc-input {
    min-height: 1.5rem;
    resize: none;
    overflow: hidden;
    flex: 1;
    min-width: 0;
}

.ghost-timer-desc-input:focus {
    outline: none;
}

/* Dollar amounts in group/day headers */
.day-card-amount,
.entry-group-amount,
.entry-client-amount,
.week-group-amount,
.week-breakdown-amount {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--byllr-text-muted);
    margin-left: 0.25rem;
}

/* Compact week timer card */
.week-timer-card {
    font-size: 0.72rem;
    padding: 0.3rem 0.4rem;
    border-left: 3px solid var(--byllr-electric);
    border-radius: 6px;
    background: var(--byllr-surface);
}
.week-timer-card .ghost-timer-display {
    font-size: 0.68rem;
}

/* Onboarding card */
.onboarding-card {
    max-width: 500px;
    margin: 2rem auto;
}

/* ============================================
   Manage Tree
   ============================================ */

.tree-node {
    padding: 0.3rem 0.4rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.15s;
    user-select: none;
}

.tree-node:hover {
    background: var(--byllr-surface);
}

.tree-node.active {
    background: var(--byllr-surface-alt);
    font-weight: 600;
}

.tree-node-org {
    font-weight: 600;
}

.tree-node-client {
    padding-left: 1.2rem;
}

.tree-node-project {
    padding-left: 2.4rem;
}

.tree-indent {
    display: inline-block;
    width: 1.2rem;
}

.tree-toggle {
    color: var(--byllr-text-muted);
    line-height: 1;
    width: 18px;
    text-align: center;
}

.tree-toggle:hover {
    color: var(--byllr-text);
}

.tree-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tree-add-btn {
    color: var(--byllr-electric);
    opacity: 0.45;
    transition: opacity 0.15s, color 0.15s;
    line-height: 1;
    font-size: 1rem;
}

.tree-node:hover .tree-add-btn {
    opacity: 1;
}

.tree-add-btn:hover {
    color: var(--byllr-electric);
    opacity: 1;
}

.tree-add-btn[disabled] {
    color: var(--byllr-text-muted);
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: auto;
    border-color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
}

.tree-add-btn[disabled]:hover {
    color: var(--byllr-text-muted);
    opacity: 0.3;
}

.tree-color-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.ghost-row {
    padding: 0.2rem 0.4rem;
}

.ghost-row input {
    background: var(--byllr-surface);
    border: 1px solid var(--byllr-electric);
    color: var(--byllr-text);
}

/* --- Inline Billable Icon (on entry rows) --- */
.entry-billable-icon {
    background: none;
    border: none;
    color: var(--byllr-text-muted);
    opacity: 0.4;
    font-size: 0.9rem;
    padding: 0;
    cursor: pointer;
    transition: opacity 0.15s, color 0.15s;
    line-height: 1;
    flex-shrink: 0;
}

.entry-billable-icon.is-billable {
    color: var(--byllr-success);
    opacity: 0.7;
}

.day-entry:hover .entry-billable-icon {
    opacity: 0.8;
}

.entry-billable-icon:hover {
    opacity: 1 !important;
    color: var(--byllr-success) !important;
}

/* --- Entry Actions (repeat + expand) --- */
.entry-actions {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    flex-shrink: 0;
}

/* --- Repeat/Clone Button --- */
.entry-repeat-btn {
    background: none;
    border: none;
    color: var(--byllr-text-muted);
    opacity: 0;
    transition: opacity 0.15s, color 0.15s;
    cursor: pointer;
    font-size: 0.7rem;
    padding: 0 2px;
    line-height: 1;
    flex-shrink: 0;
}

.day-entry:hover .entry-repeat-btn {
    opacity: 0.5;
}

.entry-repeat-btn:hover {
    opacity: 1 !important;
    color: var(--byllr-electric) !important;
}

/* --- Free Tier Usage Pills --- */
.usage-pills {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 0.72rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.usage-pill {
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    border: 1px solid var(--byllr-border);
    white-space: nowrap;
}

.usage-ok {
    color: var(--byllr-success);
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.06);
}

.usage-warn {
    color: var(--byllr-warning);
    border-color: rgba(245, 158, 11, 0.3);
    background: rgba(245, 158, 11, 0.06);
}

.usage-danger {
    color: var(--byllr-danger);
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.06);
}

/* --- View Toggle --- */
.view-toggle .btn { padding: 0.35rem 0.75rem; font-size: 0.82rem; font-weight: 600; }
.view-toggle .btn.active {
    background: var(--byllr-charcoal) !important;
    border-color: var(--byllr-charcoal) !important;
    color: white !important;
}

/* View toggle micro-icons */
.view-icon { display: inline-grid; width: 14px; height: 12px; gap: 1px; vertical-align: middle; }
.view-icon-2day { grid-template-columns: 1fr 1fr; }
.view-icon-2day::before, .view-icon-2day::after { content: ''; background: currentColor; border-radius: 1px; }
.view-icon-5day { grid-template-columns: repeat(5, 1fr); }
.view-icon-5day::before, .view-icon-5day i:nth-child(1), .view-icon-5day i:nth-child(2), .view-icon-5day i:nth-child(3), .view-icon-5day::after { content: ''; background: currentColor; border-radius: 1px; display: block; }
.view-icon-7day { grid-template-columns: repeat(7, 1fr); }
.view-icon-7day span { background: currentColor; border-radius: 1px; display: block; }
.view-icon-list { display: inline-flex; flex-direction: column; width: 14px; height: 12px; gap: 2px; justify-content: center; vertical-align: middle; }
.view-icon-list span { background: currentColor; border-radius: 1px; height: 2px; display: block; }

/* --- Weekly Grid --- */
.week-grid {
    display: flex;
    border: 1px solid var(--byllr-border);
    border-radius: var(--byllr-radius-lg);
    overflow: hidden;
    background: var(--byllr-white);
}
.week-day {
    border-right: 1px solid var(--byllr-border);
    min-height: 200px;
    display: flex;
    flex-direction: column;
    flex: 1 1 0%;
    min-width: 0;
    transition: flex 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.2s ease;
    overflow: hidden;
}
.week-day:last-child { border-right: none; }
.week-day.is-pinned {
    box-shadow: inset 0 0 0 2px var(--byllr-electric), 0 0 12px rgba(99, 102, 241, 0.12);
    z-index: 1;
}
.week-day-header {
    padding: 0.6rem 0.75rem;
    background: var(--byllr-surface);
    border-bottom: 1px solid var(--byllr-border);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--byllr-text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.week-day-header .day-date {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--byllr-charcoal);
    letter-spacing: -0.02em;
    text-transform: none;
}
.week-day.is-today .week-day-header {
    background: rgba(99, 102, 241, 0.06);
    border-bottom-color: var(--byllr-electric);
}
.week-day.is-today .week-day-header .day-date {
    color: var(--byllr-electric);
}
.week-pin-btn {
    background: none;
    border: none;
    color: var(--byllr-text-muted);
    font-size: 0.65rem;
    padding: 0 2px;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s, color 0.15s;
}
.week-day:hover .week-pin-btn,
.week-day.is-pinned .week-pin-btn { opacity: 0.5; }
.week-pin-btn:hover { opacity: 1 !important; color: var(--byllr-electric) !important; }
.week-day.is-pinned .week-pin-btn { opacity: 1; color: var(--byllr-electric); }
.week-day-body {
    padding: 0.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.week-entry {
    background: var(--byllr-surface);
    border-radius: 8px;
    padding: 0.5rem 0.6rem;
    font-size: 0.8rem;
    border-left: 3px solid var(--byllr-electric);
    transition: var(--byllr-transition);
}
.week-entry:hover {
    box-shadow: var(--byllr-shadow-sm);
    background: var(--byllr-surface-alt);
}
.week-entry .entry-project {
    font-weight: 600;
    color: var(--byllr-charcoal);
    font-size: 0.75rem;
    display: none;
    transition: opacity 0.15s ease;
}
.week-entry .entry-desc {
    color: var(--byllr-text-muted);
    font-size: 0.72rem;
    line-height: 1.3;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.week-entry .entry-expand-btn { display: none; }
.week-day.is-expanded .week-entry .entry-project {
    display: inline;
    animation: weekFadeIn 0.15s ease;
}
.week-day.is-expanded .week-entry .entry-desc {
    max-width: none;
    white-space: pre-line;
    text-overflow: unset;
}
.week-day.is-expanded .week-entry .entry-expand-btn { display: inline-flex; }
@keyframes weekFadeIn { from { opacity: 0; } to { opacity: 1; } }
.week-entry .entry-desc .inline-edit-textarea {
    background: var(--byllr-card-bg);
    box-shadow: var(--byllr-shadow-lg);
    border-radius: 6px;
    padding: 0.4rem;
    min-width: 100%;
}
.week-entry .editable-inline {
    cursor: pointer;
    border-radius: 3px;
    transition: background 0.15s ease;
}
.week-entry .editable-inline:hover { background: rgba(99, 102, 241, 0.06); }
.week-entry .entry-hours {
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    color: var(--byllr-charcoal);
    font-size: 0.75rem;
}
.week-day.is-expanded .week-entry .entry-expand-btn {
    background: none;
    border: none;
    color: var(--byllr-text-muted);
    opacity: 0;
    transition: opacity 0.15s, color 0.15s;
    cursor: pointer;
    font-size: 0.6rem;
    padding: 0 2px;
    line-height: 1;
    flex-shrink: 0;
}
.week-day.is-expanded .week-entry:hover .entry-expand-btn { opacity: 0.5; }
.week-day.is-expanded .week-entry .entry-expand-btn:hover { opacity: 1 !important; color: var(--byllr-electric) !important; }
.week-entry .entry-details {
    margin-top: 0.3rem;
    padding-top: 0.3rem;
    border-top: 1px dashed var(--byllr-border);
    font-size: 0.7rem;
}
.week-entry .entry-billable-pill { font-size: 0.65rem; padding: 0.1rem 0.4rem; }
.week-entry .entry-date-input { font-size: 0.65rem; padding: 0.05rem 0.25rem; }
.week-entry .entry-delete-btn-detail { font-size: 0.65rem; }
.week-day-footer {
    padding: 0.4rem 0.75rem;
    border-top: 1px solid var(--byllr-border);
    background: var(--byllr-surface);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--byllr-charcoal);
    display: flex;
    justify-content: space-between;
}
.week-add-entry-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    width: 100%;
    padding: 0.3rem 0.5rem;
    margin-top: auto;
    background: none;
    border: 1px dashed var(--byllr-border);
    border-radius: 6px;
    color: var(--byllr-text-muted);
    font-size: 0.7rem;
    cursor: pointer;
    transition: var(--byllr-transition);
    opacity: 0.5;
}
.week-add-entry-btn:hover {
    opacity: 1;
    border-color: var(--byllr-electric);
    color: var(--byllr-electric);
    background: rgba(99, 102, 241, 0.04);
}
.week-day.is-expanded .week-add-entry-btn { opacity: 0.7; }
.week-nav { display: flex; align-items: center; gap: 1rem; }
.week-nav .week-label {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--byllr-charcoal);
    min-width: 220px;
    text-align: center;
}
.week-summary { display: flex; gap: 2rem; align-items: center; }
.week-summary .summary-item { text-align: center; }
.week-summary .summary-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--byllr-charcoal);
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: -0.02em;
}
.week-summary .summary-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--byllr-text-muted);
}

/* Weekly breakdown in week summary header */
.week-breakdown {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 1rem;
    padding-top: 0.35rem;
}
.week-breakdown-row {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    border-left: 3px solid var(--byllr-electric);
    padding-left: 0.35rem;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--byllr-charcoal);
}
.week-breakdown-subrow {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    border-left: 2px solid var(--byllr-electric);
    padding-left: 0.5rem;
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--byllr-text-muted);
}
.week-breakdown-hours {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    font-weight: 700;
}
[data-bs-theme="dark"] .week-breakdown-row { color: var(--byllr-text); }
[data-bs-theme="dark"] .week-breakdown-hours { color: var(--byllr-text); }

/* Week ghost forms */
.week-day-body .ghost-row { font-size: 0.75rem; }
.week-day-body .ghost-select { font-size: 0.7rem; max-width: 100px; }
.week-day-body .ghost-input { font-size: 0.72rem; }
.week-day-body .ghost-hours { width: 40px !important; }

/* --- Timer Paused State --- */
.timer-paused .floating-timer-dot,
.timer-paused .ghost-timer-dot {
    background: var(--byllr-warning);
    animation: none;
}

.timer-paused {
    border-left-color: var(--byllr-warning) !important;
}

/* Week grid mobile responsive */
@media (max-width: 991px) {
    .week-grid {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .week-grid::-webkit-scrollbar { display: none; }
    .week-day {
        flex: 0 0 85vw !important;
        min-width: 85vw;
        scroll-snap-align: start;
        min-height: auto;
        transition: none;
    }
    .week-entry .entry-project { display: inline; }
    .week-entry .entry-desc {
        max-width: none;
        white-space: pre-line;
        text-overflow: unset;
    }
    .week-entry .entry-expand-btn { display: inline-flex; }
    .expense-week-entry .expense-expand-btn { display: inline-flex; }
    .week-add-entry-btn { opacity: 0.7; }
    .week-add-expense-btn { opacity: 0.7; }
    .week-pin-btn { display: none !important; }
    .week-scroll-indicators {
        display: flex;
        justify-content: center;
        gap: 0.35rem;
        padding: 0.5rem 0;
    }
    .week-scroll-dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: var(--byllr-border);
        transition: background 0.2s;
    }
    .week-scroll-dot.active {
        background: var(--byllr-electric);
    }
}

@media (min-width: 992px) {
    .week-scroll-indicators {
        display: none;
    }
}

/* ===== Dashboard Toolbar ===== */
.toolbar-btn {
    background: var(--byllr-bg-secondary);
    border: 1px solid var(--byllr-border);
    border-radius: 6px;
    padding: 2px 8px;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--byllr-text);
    cursor: pointer;
    transition: var(--byllr-transition);
    line-height: 1.4;
}
.toolbar-btn:hover { background: var(--byllr-bg-hover); }
.toolbar-btn.is-off { opacity: 0.4; }

/* ===== Aggregate Toggle: hide group chrome ===== */
/* Day view */
[data-show-aggregates="false"] .entry-client-group.is-card {
    border: none; background: transparent; padding: 0; margin: 0;
}
[data-show-aggregates="false"] .entry-client-header,
[data-show-aggregates="false"] .entry-group-header {
    display: none;
}
[data-show-aggregates="false"] .entry-group.is-card {
    border: none; background: transparent; padding: 0; margin: 0;
}
/* Re-enable individual entry border-left when parent card is hidden */
[data-show-aggregates="false"] .entry-group.is-card > .day-entry {
    border-left-width: 3px;
}
[data-show-aggregates="false"] .entry-group.is-card > .day-entry.entry-focusable:focus {
    border-left-width: 3px;
}

/* Week view */
[data-show-aggregates="false"] .week-client-group.is-card {
    border: none; background: transparent; padding: 0; margin: 0;
}
[data-show-aggregates="false"] .week-client-header,
[data-show-aggregates="false"] .week-group-header {
    display: none;
}
[data-show-aggregates="false"] .week-entry-group.is-card {
    border: none; background: transparent; padding: 0; margin: 0;
}
/* Re-enable individual entry border-left when parent card is hidden */
[data-show-aggregates="false"] .week-entry-group.is-card > .week-entry {
    border-left-width: 3px;
}

/* Week breakdown section */
[data-show-aggregates="false"] .week-breakdown {
    display: none;
}

/* --- Address Autocomplete Dropdown --- */
.address-autocomplete-dropdown {
    position: absolute;
    z-index: 1050;
    background: var(--byllr-card-bg);
    border: 1px solid var(--byllr-border);
    border-radius: 0.375rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    max-height: 220px;
    overflow-y: auto;
    font-size: 0.85rem;
}
.address-autocomplete-item {
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    border-bottom: 1px solid var(--byllr-border);
    color: var(--byllr-text);
}
.address-autocomplete-item:last-child { border-bottom: none; }
.address-autocomplete-item:hover,
.address-autocomplete-item.active {
    background: rgba(99, 102, 241, 0.15);
    color: var(--byllr-electric);
}
.geoapify-attribution { font-size: 0.7rem; opacity: 0.6; }
.geoapify-attribution a { color: inherit; }
.editable[data-field="address"] { white-space: pre-line; }

/* --- Template Card Selector --- */
.template-card {
    display: flex; gap: 0.5rem; align-items: center;
    padding: 0.4rem 0.6rem; border: 2px solid var(--bs-border-color);
    border-radius: 0.5rem; cursor: pointer; transition: all 0.15s ease;
    min-width: 140px;
}
.template-card:hover { border-color: var(--byllr-electric); }
.template-card.active { border-color: var(--byllr-electric); background: rgba(99, 102, 241, 0.06); }
.template-swatch {
    width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;
}
.template-info { display: flex; flex-direction: column; line-height: 1.2; }
