:root{--bg-base: #f5f6fb;--bg-surface: #ffffff;--bg-surface-strong: #f9fafc;--text-base: #111827;--text-muted: #64748b;--border: #e2e8f0;--shadow: 0 10px 40px rgba(15, 23, 42, .08);--accent: #22c55e;--accent-hover: #16a34a;--accent-muted: rgba(34, 197, 94, .08);--accent-light: #4ade80;--status-draft: #6b7280;--status-sent: #2563eb;--status-pending: #d97706;--status-paid: #059669;--status-error: #dc2626;--success: #059669;--success-light: #ecfdf5;--success-border: #a7f3d0;--premium-bg: linear-gradient(135deg, #f8fafc 0%, #f0fdf4 100%);--premium-border: #d1fae5}@media(max-width:768px){:root{--m-page-pad: 16px;--m-card-pad: 14px;--m-card-radius: 12px;--m-section-gap: 16px;--m-font-page-title: 1.25rem;--m-font-section-title: .9rem;--m-font-label: .75rem;--m-font-body: .88rem;--m-font-small: .8rem}}.dashboard{min-height:100vh;background:var(--bg-base);display:grid;grid-template-columns:240px 1fr}.sidebar{background:var(--bg-surface);border-right:1px solid var(--border);display:flex;flex-direction:column;min-height:100vh;box-shadow:inset -1px 0 #0f172a0d}.sidebar-header{padding:24px 20px}.sidebar-content{flex:1}.usage-section{background:var(--surface);border:1px solid var(--border);border-radius:8px;padding:12px 14px;margin:0 0 16px}.usage-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.usage-label{font-size:.75rem;font-weight:600;color:var(--text-muted);text-transform:uppercase;letter-spacing:.5px}.usage-bar-container{height:6px;background:var(--surface-elevated);border-radius:3px;overflow:hidden;margin-bottom:6px}.usage-bar{height:100%;background:var(--accent);border-radius:3px;transition:width .3s ease}.usage-text{font-size:.8rem;color:var(--text-base);text-align:right}.sidebar-assistant{margin:16px 0;padding:12px 16px;background:var(--surface);border-radius:8px;border:1px solid var(--border)}.assistant-label{font-size:.7rem;color:var(--text-muted);text-transform:uppercase;letter-spacing:.05em;margin:0 0 6px;font-weight:500}.assistant-email-row{display:flex;align-items:center;gap:8px}.assistant-email{font-size:.8rem;color:var(--text-base);font-weight:500;word-break:break-all}.copy-email-btn{flex-shrink:0;background:transparent;border:1px solid var(--border);color:var(--text-muted);font-size:.7rem;padding:4px 8px;border-radius:4px;cursor:pointer;transition:all .15s ease}.copy-email-btn:hover{background:var(--surface);color:var(--text-base);border-color:var(--text-muted)}.copy-email-btn:focus{outline:2px solid var(--accent);outline-offset:1px}.sidebar-footer{padding:20px;border-top:1px solid var(--border)}.support-contact{font-size:.75rem;color:var(--text-muted);margin:0;line-height:1.4}.support-contact a{color:var(--accent);text-decoration:none}.support-contact a:hover{text-decoration:underline}.sidebar-logo{font-weight:700;letter-spacing:-.01em;font-size:1.1rem;color:var(--text-base);margin-bottom:20px}.sidebar nav{display:flex;flex-direction:column;gap:4px}.sidebar-link{background:transparent;border:none;text-align:left;padding:10px 12px;border-radius:6px;transition:all .15s ease;font-weight:500;font-size:.9rem;color:var(--text-muted);cursor:pointer}.sidebar-link:hover{background:var(--bg-surface-strong);color:var(--text-base)}.sidebar-link.active{color:var(--accent);background:var(--accent-muted);font-weight:600}.sidebar-link.disabled,.sidebar-link:disabled{opacity:.5;cursor:not-allowed;pointer-events:none}.content{padding:32px;display:flex;flex-direction:column;gap:16px}.content-header{display:flex;justify-content:space-between;align-items:flex-end;gap:16px}.header-actions{display:flex;align-items:center;gap:16px}.eyebrow{font-size:.75rem;letter-spacing:.2em;text-transform:uppercase;color:var(--text-muted);margin-bottom:2px}.content-header h1{margin:0;font-size:1.75rem;color:var(--text-base)}.content-body{background:transparent;flex:1;display:flex;flex-direction:column;gap:16px}.filters-row{display:flex;align-items:flex-end;gap:12px;margin-bottom:12px}.filter-field{display:flex;flex-direction:column;gap:6px}.filter-field label{font-size:.8rem;font-weight:500;color:var(--text-muted)}.filter-field input,.filter-field select{height:40px;min-width:200px;padding:0 12px;border-radius:8px;border:1px solid var(--border);background:var(--bg-surface);font-family:inherit;font-size:.85rem;box-sizing:border-box}.filter-field input:focus,.filter-field select:focus{outline:none;border-color:var(--accent)}.filters{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;margin-bottom:12px}.filters label{display:flex;flex-direction:column;gap:4px;font-size:.8rem;font-weight:400;color:var(--text-muted)}.filters input,.filters select{min-width:200px;padding:8px 10px;border-radius:6px;border:1px solid rgba(148,163,184,.4);background:var(--bg-surface);font-family:inherit;font-size:.85rem}.filters-footer{margin-left:auto}.filter-chip{background:var(--bg-surface);border:1px solid var(--border);border-radius:999px;padding:6px 14px;display:inline-flex;align-items:center;gap:6px;font-size:.85rem}.filter-chip button{border:none;background:transparent;font-size:.85rem;cursor:pointer;color:var(--text-muted)}.clear-filters-button{height:40px;border:1px solid var(--border);background:var(--bg-surface);padding:0 16px;border-radius:8px;font-size:.85rem;cursor:pointer;color:var(--text-muted);transition:background .15s ease,color .15s ease,border-color .15s ease;white-space:nowrap;box-sizing:border-box}.clear-filters-button:hover{background:var(--bg-surface-strong);color:var(--text-base);border-color:var(--text-muted)}.clear-filters-button.hidden{visibility:hidden;pointer-events:none}.clear-filters-button.visible{visibility:visible}.active-filters{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:8px}.kpi-header{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:12px}.kpi-tile{background:var(--bg-surface);border:1px solid var(--border);border-radius:8px;padding:12px 16px;display:flex;flex-direction:column;gap:4px;transition:all .15s ease}.kpi-label{font-size:.7rem;font-weight:400;text-transform:uppercase;letter-spacing:.06em;color:var(--text-muted)}.kpi-value{font-size:1.25rem;font-weight:500;color:var(--text-base);line-height:1.3}.kpi-skeleton{color:var(--text-muted);opacity:.5}.kpi-error{color:var(--status-error)}.kpi-tile--success .kpi-value{color:#059669}.kpi-tile--warning .kpi-value{color:#d97706}.kpi-tile--muted .kpi-value{color:var(--text-muted)}@media(max-width:900px){.kpi-header{grid-template-columns:repeat(3,1fr)}}@media(max-width:600px){.kpi-header{grid-template-columns:repeat(2,1fr)}}.invoice-status-tabs{display:flex;gap:4px;margin-bottom:12px;border-bottom:1px solid var(--border)}.invoice-status-tab{display:flex;align-items:center;gap:6px;padding:10px 16px;font-size:.9rem;font-weight:500;color:var(--text-muted);background:none;border:none;border-bottom:2px solid transparent;cursor:pointer;transition:color .15s,border-color .15s}.invoice-status-tab:hover{color:var(--text-base)}.invoice-status-tab.active{color:var(--accent);border-bottom-color:var(--accent)}.invoice-status-tab-count{background:var(--bg-muted);color:var(--text-muted);font-size:.75rem;font-weight:600;padding:2px 8px;border-radius:999px;min-width:1.25rem;text-align:center}.invoice-status-tab.active .invoice-status-tab-count{background:var(--accent-muted);color:var(--accent)}.active-filters-indicator{display:flex;align-items:center;font-size:.8rem;color:var(--text-muted);padding-right:12px;border-right:1px solid var(--border);margin-right:8px}.sortable-col-header{display:inline-flex;align-items:center;gap:2px;background:none;border:none;padding:0;font:inherit;color:inherit;cursor:pointer;text-align:left}.sortable-col-header:hover{color:var(--accent)}.sort-indicator{font-size:.75em;opacity:.8}.filter-tag{background:var(--accent-muted);color:var(--accent);padding:4px 12px;border-radius:999px;font-size:.8rem}.filter-tag strong{font-weight:600}.warning-banner{background:#f59e0b1a;border:1px solid rgba(245,158,11,.4);padding:12px 16px;border-radius:10px;color:#b45309;font-size:.9rem}.warning-banner a{color:#b45309;font-weight:600;text-decoration:underline}.toast-notification{position:fixed;top:24px;right:24px;display:inline-flex;align-items:center;gap:12px;min-width:260px;max-width:340px;background:#0f172ae6;color:#f8fafc;padding:10px 18px;border-radius:14px;box-shadow:0 30px 70px #0f172a59;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);letter-spacing:.02em;font-weight:500;z-index:1100;animation:toastFade .3s ease forwards}.toast-accent{width:6px;height:32px;border-radius:999px;background:linear-gradient(180deg,#22c55e,#14b8a6)}.toast-body{flex:1;font-size:.95rem;line-height:1.3}@keyframes toastFade{0%{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:translateY(0)}}.refresh-row{display:flex;align-items:center;gap:12px}.last-updated{font-size:.8rem;color:var(--text-muted)}.refresh-button{border:none;background:var(--accent);color:#fff;padding:8px 16px;border-radius:999px;font-weight:600;cursor:pointer;display:flex;align-items:center;gap:8px}.refresh-button:disabled{opacity:.6;cursor:not-allowed}.spinner{width:16px;height:16px;border-radius:50%;border:2px solid rgba(255,255,255,.4);border-top-color:#fff;animation:spin .9s linear infinite}.table-container{background:var(--bg-surface);border-radius:14px;overflow:hidden;border:1px solid var(--border);box-shadow:var(--shadow)}table{width:100%;border-collapse:collapse;font-size:.9rem}thead tr{background:var(--bg-surface-strong)}th,td{padding:10px 16px;border-bottom:1px solid var(--border)}th{text-transform:uppercase;letter-spacing:.05em;font-size:.75rem;color:var(--text-muted)}tbody tr:hover{background:var(--bg-surface-strong)}.invoice-cell{font-weight:600}.subject-cell{color:var(--text-muted);max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.links-cell{display:flex;flex-wrap:wrap;gap:8px}.link-button{border:1px solid var(--border);background:var(--bg-surface-strong);padding:6px 10px;border-radius:8px;font-size:.8rem;cursor:pointer;color:var(--text-base);text-decoration:none;display:inline-flex;align-items:center;gap:4px}.link-button.primary{background:var(--accent);border-color:transparent;color:#fff}.link-button.primary:hover,.link-button:hover{opacity:.9}.status-badge{padding:4px 10px;border-radius:999px;color:#fff;font-size:.7rem;font-weight:600}.status-badge.log-level.info{background:#22c55e}.status-badge.log-level.warn{background:#f97316}.status-badge.log-level.error{background:#ef4444}.error-banner{background:#ef44441a;border:1px solid rgba(239,68,68,.4);padding:12px 16px;border-radius:10px;color:var(--status-error)}.loading,.empty{background:var(--bg-surface);border:1px dashed var(--border);padding:40px;border-radius:12px;color:var(--text-muted)}.skeleton{background:linear-gradient(90deg,#f0f0f0 25%,#e0e0e0,#f0f0f0 75%);background-size:200% 100%;animation:skeleton-shimmer 1.5s infinite;border-radius:4px}@keyframes skeleton-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}.skeleton-text{height:14px;display:inline-block}.skeleton-text-small{height:10px;display:inline-block}.skeleton-badge{height:24px;width:70px;display:inline-block;border-radius:12px}.skeleton-row td{padding:16px 12px}.empty-state-welcome{background:var(--bg-surface);border:2px dashed var(--border);border-radius:16px;padding:60px 40px;text-align:center;max-width:500px;margin:40px auto}.welcome-icon{font-size:48px;margin-bottom:16px}.empty-state-welcome h2{margin:0 0 12px;font-size:1.5rem;color:var(--text-base)}.empty-state-welcome p{margin:0 0 24px;color:var(--text-muted);line-height:1.6}.welcome-cta{background:linear-gradient(135deg,var(--accent) 0%,var(--accent-hover) 100%);color:#fff;border:none;padding:14px 28px;border-radius:10px;font-size:1rem;font-weight:600;cursor:pointer;transition:all .2s ease;box-shadow:0 4px 12px #22c55e4d}.welcome-cta:hover{transform:translateY(-2px);box-shadow:0 6px 16px #22c55e66}.empty-state-filters{background:var(--bg-surface);border:1px dashed var(--border);border-radius:12px;padding:40px;text-align:center}.empty-icon{font-size:32px;margin-bottom:12px}.empty-state-filters p{margin:0;color:var(--text-muted)}.kpi-tile--clickable{cursor:pointer}.kpi-tile--clickable:hover{background:var(--bg-surface-strong);border-color:var(--accent)}.kpi-tile--active{border-color:var(--accent);background:var(--accent-muted)}.clickable-invoice-row{transition:background-color .2s ease,transform .15s ease}@keyframes row-highlight{0%{background-color:#22c55e33}to{background-color:transparent}}.clickable-invoice-row.row-updated{animation:row-highlight 1.5s ease-out}@keyframes row-fade-in{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.clickable-invoice-row{animation:row-fade-in .3s ease-out}.client-info{display:flex;flex-direction:column;gap:2px}.client-name{font-weight:500;color:var(--text-base)}.client-email-secondary{font-size:.75rem;color:var(--text-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:180px}.logs-controls{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.level-filters{display:flex;gap:8px}.level-button{border:1px solid var(--border);border-radius:999px;padding:6px 14px;background:var(--bg-surface-strong);color:var(--text-base);font-size:.75rem;cursor:pointer;transition:background .15s ease,color .15s ease}.level-button.selected{background:var(--accent);border-color:transparent;color:#fff}.logs-controls input{min-width:220px;border-radius:8px;border:1px solid var(--border);padding:10px 12px;background:var(--bg-surface);font-family:inherit}.kind-cell{font-weight:600;font-size:.85rem}.message-cell{color:var(--text-base)}.meta-cell{font-size:.75rem;color:var(--text-muted);display:flex;flex-direction:column;gap:4px}.status-badge.log-level{font-size:.75rem;padding:4px 10px}@media(max-width:1024px){.dashboard{grid-template-columns:200px 1fr}}@media(max-width:768px){.dashboard{grid-template-columns:1fr;max-width:100vw;overflow-x:hidden}.sidebar{flex-direction:row;align-items:center;position:sticky;top:0;justify-content:space-between}.sidebar nav{flex-direction:row;flex-wrap:wrap;gap:6px}.filters{flex-direction:column;align-items:flex-start}.filters-row{flex-wrap:wrap}}.setup-link{text-decoration:none;display:block}.session-info{margin-top:16px;padding-top:16px;border-top:1px solid var(--border);display:flex;flex-direction:column;gap:8px}.session-email{font-size:.75rem;color:var(--text-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.logout-button{background:transparent;border:1px solid var(--border);padding:6px 12px;border-radius:6px;font-size:.8rem;color:var(--text-muted);cursor:pointer;transition:all .15s ease}.logout-button:hover{background:var(--bg-surface-strong);color:var(--text-base);border-color:var(--text-muted)}.try-it-out-link{display:flex;align-items:center;gap:8px;background:linear-gradient(135deg,#22c55e14,#16a34a14);border:1px solid rgba(34,197,94,.2);position:relative}.try-it-out-link:hover{background:linear-gradient(135deg,#22c55e26,#16a34a26);border-color:#22c55e4d;color:var(--text-base)}.try-it-out-icon{font-size:1rem}.try-it-out-badge{font-size:.6rem;font-weight:700;letter-spacing:.04em;padding:2px 6px;border-radius:4px;background:linear-gradient(135deg,#22c55e,#16a34a);color:#fff;text-transform:uppercase;margin-left:auto}.try-it-out-modal{max-width:380px;width:90vw}.try-it-out-modal .modal-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.try-it-out-modal .modal-header h2{margin:0;font-size:1.25rem;color:var(--text-base)}.try-it-out-description{margin:0 0 20px;color:var(--text-muted);font-size:.9rem;line-height:1.5}.try-it-out-spam-warning{margin:0 0 24px;padding:12px;background:var(--bg-surface-strong);border-radius:6px;font-size:.85rem;color:var(--text-base);line-height:1.4;border-left:3px solid var(--accent)}.try-it-out-question{margin:0 0 16px;font-weight:600;color:var(--text-base);font-size:.95rem}.try-it-out-buttons{display:flex;gap:12px}.try-it-out-provider{flex:1;display:flex;align-items:center;justify-content:center;gap:10px;padding:14px 20px;border-radius:10px;border:1px solid var(--border);background:var(--bg-surface);font-weight:500;font-size:.95rem;color:var(--text-base);cursor:pointer;transition:all .15s ease}.try-it-out-provider:hover:not(:disabled){border-color:var(--accent);background:var(--accent-muted)}.try-it-out-provider:disabled{opacity:.6;cursor:not-allowed}.try-it-out-provider.gmail:hover:not(:disabled){border-color:#ea4335;background:#ea433514}.try-it-out-provider.outlook:hover:not(:disabled){border-color:#0078d4;background:#0078d414}.try-it-out-provider svg{flex-shrink:0}.setup-page{min-height:100vh;background:var(--bg-base);display:flex;align-items:center;justify-content:center;padding:32px}.setup-card{background:var(--bg-surface);border-radius:16px;border:1px solid var(--border);box-shadow:var(--shadow);padding:48px;width:100%;max-width:440px}.setup-card.wide{max-width:640px}.setup-logo{display:block;height:32px;width:auto;margin:0 auto 24px}.setup-card h1{margin:0 0 8px;font-size:1.5rem;color:var(--text-base);text-align:center}.setup-subtitle{margin:0 0 24px;color:var(--text-muted);font-size:.95rem;text-align:center}.setup-step-indicator{display:flex;align-items:center;justify-content:center;gap:8px;margin-bottom:20px}.setup-step-indicator span:first-of-type,.setup-step-indicator span:nth-of-type(3){width:28px;height:28px;border-radius:50%;background:var(--border);color:var(--text-muted);display:inline-flex;align-items:center;justify-content:center;font-size:.85rem;font-weight:600}.setup-step-indicator span.active{background:var(--accent);color:#fff}.setup-step-divider{width:32px;height:2px;background:var(--border)}.setup-step-indicator .setup-step-label{margin-left:10px;font-size:.85rem;color:var(--text-muted);background:transparent}.setup-checkbox-group{display:grid;grid-template-columns:1fr 1fr;gap:8px 16px;margin-top:8px}.setup-checkbox-label{display:flex;align-items:center;gap:8px;font-weight:400;cursor:pointer}.setup-checkbox-label input{margin:0;width:auto}.setup-other-input{margin-top:10px}.setup-step2-actions{display:flex;gap:12px;justify-content:center;margin-top:24px}.setup-button.secondary{background:var(--bg-surface-strong);color:var(--text-base);border:1px solid var(--border)}.setup-button.secondary:hover:not(:disabled){background:var(--border)}.setup-form{display:flex;flex-direction:column;gap:20px}.setup-form label{display:block;font-size:.85rem;font-weight:500;color:var(--text-base)}.setup-form label input,.setup-form label textarea,.setup-form label select{display:block;margin-top:6px;width:100%;box-sizing:border-box}.setup-form input,.setup-form select,.setup-form textarea{padding:12px 14px;border-radius:8px;border:1px solid var(--border);background:var(--bg-surface);font-family:inherit;font-size:1rem;transition:border-color .15s ease,box-shadow .15s ease}.setup-form input:focus,.setup-form select:focus,.setup-form textarea:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-muted)}.input-help{font-size:.75rem;color:var(--text-muted);margin-top:4px}.input-help-spacer{height:1.25em;margin-top:4px}.setup-form textarea{resize:vertical;min-height:80px}.setup-button{background:var(--accent);color:#fff;border:none;padding:14px 24px;border-radius:8px;font-size:1rem;font-weight:600;cursor:pointer;transition:opacity .15s ease;text-decoration:none;text-align:center;display:inline-block}.setup-button:hover{opacity:.9}.setup-button:disabled{opacity:.6;cursor:not-allowed}.setup-secondary-link{display:block;margin-top:12px;color:var(--text-muted);font-size:.9rem;text-decoration:none}.setup-secondary-link:hover{color:var(--text-base);text-decoration:underline}.required-asterisk{color:#e74c3c;font-weight:700;margin-left:2px}.setup-actions{display:flex;flex-direction:column;gap:12px;align-items:center;margin-top:20px}.setup-footer{margin-top:24px;padding-top:16px;border-top:1px solid var(--border);text-align:center}.setup-footer a{color:var(--text-muted);text-decoration:none;font-size:.9rem}.setup-footer a:hover{color:var(--accent)}.setup-success{display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center;margin-top:32px}.success-icon{font-size:3rem;margin-bottom:16px}.setup-success h2{margin:0 0 12px;font-size:1.25rem;color:var(--text-base)}.setup-success p{margin:0 0 12px;color:var(--text-muted);font-size:.95rem}.setup-note{font-size:.85rem;color:var(--text-muted)}.spam-note{font-size:.85rem;color:var(--text-base);background:var(--success-light);border:1px solid var(--success-border);border-radius:6px;padding:8px 12px;margin:8px 0}.form-help{font-size:.8rem;color:var(--text-muted);margin:4px 0 0;line-height:1.4}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.form-grid .full-width{grid-column:1 / -1}@media(max-width:768px){.setup-card,.setup-card.wide{padding:24px var(--m-page-pad)}.setup-card h1{font-size:var(--m-font-page-title);margin-bottom:4px}.setup-subtitle{font-size:var(--m-font-body);margin-bottom:16px}.form-grid{grid-template-columns:1fr;gap:14px}.setup-form{gap:14px}.setup-form label{font-size:var(--m-font-small)}.setup-form input,.setup-form select,.setup-form textarea{padding:10px 12px}.input-help{font-size:var(--m-font-label);line-height:1.3;margin-top:3px}.setup-footer{margin-top:16px}.setup-footer a,.terms-acceptance{font-size:var(--m-font-small)}}.how-to-section{margin-top:32px;padding-top:32px;border-top:1px solid var(--border)}.how-to-section h3{margin:0 0 8px;font-size:1.1rem;color:var(--text-base);font-weight:600}.how-to-tagline{margin:0 0 24px;color:var(--text-muted);font-size:.9rem;line-height:1.5}.try-it-steps{display:flex;flex-direction:column;gap:12px;margin-top:24px}.step-item{display:flex;align-items:center;gap:12px;font-size:.9rem;color:var(--text-base)}.step-number{width:24px;height:24px}.spam-notice{margin-top:16px;padding:12px 16px;background:var(--bg-surface-strong);border-radius:8px;font-size:.85rem;color:var(--text-muted);text-align:center;border:1px solid var(--border)}.get-paid-now-page{background:linear-gradient(135deg,var(--bg-base) 0%,#f0f9f4 100%)}.get-paid-landing{text-align:center}.get-paid-landing h1{font-size:2rem;margin-bottom:12px}.landing-subtitle{font-size:1.1rem;color:var(--text-muted);line-height:1.6;margin-bottom:32px}.landing-features{display:flex;flex-direction:column;gap:16px;margin-bottom:32px;text-align:left;display:inline-flex}.feature-item{display:flex;align-items:center;gap:12px;font-size:1rem;color:var(--text-base)}.feature-icon{font-size:1.5rem}.cta-large{font-size:1.1rem;padding:16px 32px}.landing-disclaimer{margin-top:16px;font-size:.85rem;color:var(--text-muted)}.step-indicator{display:flex;align-items:center;justify-content:center;gap:8px;margin-bottom:24px}.step-indicator .step{width:32px;height:32px;border-radius:50%;background:var(--bg-surface-strong);border:2px solid var(--border);display:flex;align-items:center;justify-content:center;font-size:.85rem;font-weight:600;color:var(--text-muted)}.step-indicator .step.active{background:var(--accent);border-color:var(--accent);color:#fff}.step-indicator .step.done{background:var(--success);border-color:var(--success);color:#fff}.step-indicator .step-line{width:40px;height:2px;background:var(--border)}.step-indicator .step-line.done{background:var(--success)}.step-subtitle{color:var(--text-muted);margin-bottom:24px}.file-drop-zone{border:2px dashed var(--border);border-radius:12px;padding:40px 24px;text-align:center;cursor:pointer;transition:all .2s ease;background:var(--bg-surface-strong);margin-bottom:24px}.file-drop-zone:hover{border-color:var(--accent);background:var(--accent-muted)}.file-drop-zone.has-file{border-color:var(--success);border-style:solid;background:var(--success-light)}.file-drop-zone .upload-icon{font-size:2.5rem;display:block;margin-bottom:12px}.file-drop-zone span{color:var(--text-muted)}.file-selected{display:flex;align-items:center;justify-content:center;gap:12px}.file-selected .file-icon{font-size:1.5rem}.file-selected .file-name{font-weight:500;color:var(--text-base)}.file-selected .file-remove{width:24px;height:24px;border-radius:50%;border:none;background:var(--border);color:var(--text-muted);cursor:pointer;font-size:1rem;line-height:1}.file-selected .file-remove:hover{background:var(--status-error);color:#fff}.intake-form{display:flex;flex-direction:column;gap:16px}.intake-form .form-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}.intake-form label{display:flex;flex-direction:column;gap:6px;font-size:.9rem;font-weight:500;color:var(--text-base)}.intake-form label.full-width{grid-column:1 / -1}.intake-form .label-text{display:inline}.intake-form .label-text .required{margin-left:2px}.intake-form input,.intake-form textarea{padding:10px 12px;border:1px solid var(--border);border-radius:8px;font-size:.95rem;transition:border-color .2s ease}.intake-form input:focus,.intake-form textarea:focus{outline:none;border-color:var(--accent)}.intake-form .required{color:var(--status-error)}.input-with-prefix{display:flex;align-items:center;border:1px solid var(--border);border-radius:8px;overflow:hidden}.input-with-prefix:focus-within{border-color:var(--accent)}.input-with-prefix .input-prefix{padding:10px 12px;background:var(--bg-surface-strong);color:var(--text-muted);border-right:1px solid var(--border)}.input-with-prefix input{border:none;flex:1}.input-with-prefix input:focus{border:none}.form-actions{display:flex;gap:12px;justify-content:flex-end;margin-top:24px}.setup-button-secondary{padding:12px 24px;border:1px solid var(--border);border-radius:8px;background:var(--bg-surface);color:var(--text-base);font-size:.95rem;font-weight:500;cursor:pointer;transition:all .2s ease;text-decoration:none;display:inline-block;text-align:center}.setup-button-secondary:hover{background:var(--bg-surface-strong);border-color:var(--text-muted)}.intake-summary{background:var(--bg-surface-strong);border:1px solid var(--border);border-radius:8px;padding:16px;margin-top:24px}.intake-summary h4{margin:0 0 12px;font-size:.9rem;color:var(--text-muted);text-transform:uppercase;letter-spacing:.5px}.intake-summary .summary-row{display:flex;justify-content:space-between;padding:8px 0;border-bottom:1px solid var(--border)}.intake-summary .summary-row:last-child{border-bottom:none}.intake-summary .summary-row span:first-child{color:var(--text-muted)}.intake-summary .summary-row span:last-child{font-weight:500;color:var(--text-base)}.terms-note{font-size:.85rem;color:var(--text-muted);text-align:center;margin-top:16px}.terms-note a{color:var(--accent)}.success-state{text-align:center;padding:24px 0}.success-icon-large{width:64px;height:64px;background:var(--success);color:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:2rem;margin:0 auto 24px}.success-state h2{color:var(--text-base);margin-bottom:12px}.success-state p{color:var(--text-muted);line-height:1.6}.already-has-account{text-align:center;padding:24px 0}.already-has-account .account-icon{font-size:4rem;margin-bottom:16px}.already-has-account h2{color:var(--text-base);margin-bottom:12px}.already-has-account p{color:var(--text-muted);line-height:1.6;margin-bottom:8px}.already-has-account .subtitle{font-size:.95rem;margin-top:16px}.submitting-state{text-align:center;padding:48px 24px}.submitting-state h2{color:var(--text-base);margin-top:24px;margin-bottom:12px}.submitting-state p{color:var(--text-muted)}.loading-spinner{width:48px;height:48px;border:4px solid var(--border);border-top-color:var(--accent);border-radius:50%;animation:spin 1s linear infinite;margin:0 auto}@keyframes spin{to{transform:rotate(360deg)}}.intake-summary.compact{margin-top:0;margin-bottom:16px;padding:12px 16px;font-size:.9rem}.intake-summary.compact h4{display:none}.verify-email-state{text-align:center;padding:24px 0}.email-icon-large{font-size:4rem;margin-bottom:24px}.verify-email-state h2{color:var(--text-base);margin-bottom:12px}.verify-email-state p{color:var(--text-muted);line-height:1.6}.verify-subtitle{margin-top:12px;font-size:.95rem}.verify-help{background:var(--bg-surface-strong);border:1px solid var(--border);border-radius:8px;padding:16px 20px;margin:24px 0;text-align:left}.verify-help h4{margin:0 0 12px;font-size:.9rem;color:var(--text-base)}.verify-help ul{margin:0;padding-left:20px}.verify-help li{color:var(--text-muted);font-size:.85rem;line-height:1.8}.error-state{text-align:center;padding:24px 0}.error-icon-large{font-size:4rem;margin-bottom:24px}.error-state h2{color:var(--text-base);margin-bottom:12px}.error-state p{color:var(--text-muted);line-height:1.6;max-width:400px;margin:0 auto}.error-actions{display:flex;flex-direction:column;gap:12px;margin-top:32px}.confirmation-email{margin-top:16px;padding:12px 16px;background:var(--bg-surface-strong);border-radius:8px;font-size:.9rem}.confirmation-details{background:var(--bg-surface-strong);border:1px solid var(--border);border-radius:8px;padding:16px;margin:24px 0}.confirmation-details .detail-item{display:flex;justify-content:space-between;padding:8px 0}.confirmation-details .detail-label{color:var(--text-muted);font-size:.9rem}.confirmation-details .detail-value{font-family:monospace;font-size:.85rem;color:var(--text-base)}.whats-next{text-align:left;margin:24px 0}.whats-next h3{font-size:1rem;margin-bottom:12px;color:var(--text-base)}.whats-next ol{margin:0;padding-left:20px}.whats-next li{color:var(--text-muted);line-height:1.8;font-size:.9rem}.cta-section{text-align:center;padding-top:24px;border-top:1px solid var(--border)}.cta-section p{color:var(--text-muted);margin-bottom:16px;font-size:.9rem}.status-display{display:flex;align-items:center;justify-content:center;gap:12px;padding:24px;border-radius:12px;margin:24px 0}.status-display.status-pending{background:#fef3c7;color:#92400e}.status-display.status-success{background:var(--success-light);color:var(--success)}.status-display.status-warning{background:#fef3c7;color:#92400e}.status-display.status-error{background:#fee2e2;color:#991b1b}.status-display.status-muted{background:var(--bg-surface-strong);color:var(--text-muted)}.status-display .status-icon{font-size:2rem}.status-display .status-label{font-size:1.25rem;font-weight:600}.status-details{background:var(--bg-surface-strong);border:1px solid var(--border);border-radius:8px;padding:16px}.status-details .detail-item{display:flex;justify-content:space-between;padding:8px 0;border-bottom:1px solid var(--border)}.status-details .detail-item:last-child{border-bottom:none}.status-details .detail-label{color:var(--text-muted)}.status-details .detail-value{font-weight:500}.offer-section,.needs-info-section,.denied-section{margin-top:24px;padding:24px;background:var(--bg-surface-strong);border-radius:12px;text-align:center}.offer-section h3,.needs-info-section h3{margin:0 0 16px;font-size:1.1rem}.offer-details{margin-bottom:24px}.offer-amount{font-size:2rem;font-weight:700;color:var(--success)}.offer-terms{color:var(--text-muted);margin-top:4px}.help-text{font-size:.9rem;color:var(--text-muted);margin-top:12px}.denial-reason{font-style:italic;color:var(--text-muted);margin:12px 0}.status-footer{margin-top:32px;text-align:center}@media(max-width:600px){.get-paid-landing h1{font-size:1.5rem}.intake-form .form-row{grid-template-columns:1fr}.form-actions{flex-direction:column}.form-actions button{width:100%}}.compose-demo{border:1px solid var(--border);border-radius:12px;overflow:hidden;box-shadow:0 4px 20px #0000000f;background:var(--bg-surface)}.compose-header{display:flex;align-items:center;gap:12px;padding:12px 16px;background:#f8f9fa;border-bottom:1px solid var(--border)}.compose-dots{display:flex;gap:6px}.compose-dots .dot{width:10px;height:10px;border-radius:50%}.compose-dots .dot.red{background:#ff5f56}.compose-dots .dot.yellow{background:#ffbd2e}.compose-dots .dot.green{background:#27ca40}.compose-title{font-size:.8rem;color:var(--text-muted);font-weight:500}.compose-body{padding:16px}.compose-row{display:flex;align-items:center;gap:8px;padding:8px 0;border-bottom:1px solid #f0f0f0}.compose-label{font-size:.8rem;color:var(--text-muted);min-width:50px;font-weight:500}.compose-chips{display:flex;gap:6px;flex-wrap:wrap}.chip{padding:4px 10px;background:#e8eaed;border-radius:16px;font-size:.75rem;color:#5f6368}.chip.bot-chip{background:var(--accent);color:#fff;font-weight:500}.compose-subject{font-size:.85rem;color:var(--text-base)}.compose-divider{height:1px;background:#f0f0f0;margin:12px 0}.compose-content{padding:8px 0}.compose-content p{margin:0 0 8px;font-size:.85rem;color:var(--text-base);line-height:1.5}.compose-content .highlight-line{color:var(--accent);font-style:italic}.compose-skeleton{margin-top:16px;display:flex;flex-direction:column;gap:8px}.skeleton-line{height:8px;background:#f0f0f0;border-radius:4px}@media(max-width:600px){.compose-row{flex-direction:column;align-items:flex-start;gap:4px}.compose-label{min-width:unset}}.invoice-actions{display:flex;gap:6px;flex-wrap:wrap}.action-button{padding:4px 10px;border-radius:6px;font-size:.75rem;font-weight:500;border:1px solid var(--border);background:var(--bg-surface);cursor:pointer;transition:all .15s ease;white-space:nowrap}.action-button:hover:not(:disabled){background:var(--bg-surface-strong);border-color:var(--text-muted)}.action-button:disabled{opacity:.4;cursor:not-allowed}.action-button.send{background:var(--accent);color:#fff;border-color:var(--accent)}.action-button.send:hover:not(:disabled){background:var(--accent-hover);border-color:var(--accent-hover)}.action-button.reminder{background:#f59e0b;color:#fff;border-color:#f59e0b}.action-button.reminder:hover:not(:disabled){background:#d97706;border-color:#d97706}.action-button.paid{background:#22c55e;color:#fff;border-color:#22c55e}.action-button.paid:hover:not(:disabled){background:#16a34a;border-color:#16a34a}.invoice-timing{display:flex;flex-direction:column;gap:4px}.timing-tag{font-size:.7rem;padding:2px 6px;border-radius:4px;white-space:nowrap}.timing-tag.sent{background:#dbeafe;color:#1e40af}.timing-tag.reminder{background:#fef3c7;color:#92400e}.timing-tag.recommend{background:#fee2e2;color:#991b1b;font-weight:500}.timing-cell{min-width:130px}.actions-cell{min-width:200px}.invoice-cell{min-width:140px}.invoice-primary{display:flex;flex-direction:column;gap:2px}.invoice-number{font-weight:600;color:var(--text-base);font-size:.9rem}.invoice-created{font-size:.75rem;color:var(--text-muted)}.client-cell{min-width:120px;max-width:200px}.client-cell span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.amount-col,.amount-cell{text-align:right;white-space:nowrap;min-width:80px}.amount-cell{font-weight:600;font-variant-numeric:tabular-nums}.due-col,.due-cell{white-space:nowrap;min-width:70px}.due-cell{color:var(--text-muted)}.activity-cell{min-width:120px;max-width:150px}.activity-text{font-size:.85rem;color:var(--text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.activity-text.activity-success{color:#059669;font-weight:500}.activity-text.activity-urgent{color:#dc2626;font-weight:500}.activity-text.activity-pending{color:#d97706}.instant-pay-list-badge{margin-left:6px;font-size:.875rem;cursor:help}.status-badge{padding:4px 8px;border-radius:12px;font-size:.75rem;font-weight:500;text-transform:uppercase;letter-spacing:.025em;white-space:nowrap}.status-awaiting{background:#f3f4f6;color:#4b5563}.status-sent{background:#dbeafe;color:#1e40af}.status-paid{background:#dcfce7;color:#047857}.status-error{background:#fee2e2;color:#b91c1c}.status-processing{background:#fef3c7;color:#92400e}.status-unknown{background:#f3f4f6;color:#6b7280}.status-processing{background:#f3f4f6;color:#374151}.status-unknown{background:#f9fafb;color:#6b7280}.status-external-review{background:#fef3c7;color:#92400e}.status-void{background:#f3f4f6;color:#6b7280}.source-badge{display:inline-block;font-size:.6rem;background:#6366f1;color:#fff;padding:2px 6px;border-radius:4px;margin-right:6px;vertical-align:middle;text-transform:uppercase;letter-spacing:.5px}.invoice-actions{display:flex;align-items:center;gap:8px}.primary-action-button{padding:6px 12px;border-radius:6px;font-size:.8rem;font-weight:500;border:1px solid var(--border);background:var(--accent);color:#fff;cursor:pointer;transition:all .15s ease;white-space:nowrap}.primary-action-button:hover:not(:disabled){background:var(--accent-hover);border-color:var(--accent-hover)}.primary-action-button:disabled{opacity:.4;cursor:not-allowed}.request-instant-pay-btn{padding:6px 12px;border-radius:6px;font-size:.8rem;font-weight:600;border:1px solid var(--accent);background:var(--accent);color:#fff;cursor:pointer;transition:all .15s ease;white-space:nowrap;box-shadow:0 1px 2px #0000000f}.request-instant-pay-btn:hover{background:var(--accent-hover);border-color:var(--accent-hover);box-shadow:0 2px 4px #00000014}.overflow-menu{position:relative}.menu-trigger{padding:6px 8px;border-radius:4px;border:1px solid var(--border);background:var(--bg-surface);color:var(--text-muted);cursor:pointer;font-size:1rem;line-height:1;transition:all .15s ease}.menu-trigger:hover{background:var(--bg-surface-strong);border-color:var(--text-muted)}.menu-trigger:focus{outline:2px solid var(--accent);outline-offset:2px}.menu-dropdown{position:absolute;right:0;top:100%;z-index:1000;min-width:180px;background:var(--bg-surface);border:1px solid var(--border);border-radius:6px;box-shadow:var(--shadow);margin-top:4px}.menu-item{display:flex;align-items:center;gap:8px;width:100%;padding:8px 12px;border:none;background:none;color:var(--text-base);cursor:pointer;font-size:.85rem;text-align:left;transition:background .15s ease}.menu-item:hover:not(:disabled){background:var(--bg-surface-strong)}.menu-item:disabled{opacity:.5;cursor:not-allowed}.menu-item:first-child{border-radius:6px 6px 0 0}.menu-item:last-child{border-radius:0 0 6px 6px}.menu-item:only-child{border-radius:6px}.menu-icon{font-size:.9rem;min-width:16px}.menu-label{flex:1}.user-chip{position:relative;display:flex;align-items:center;gap:12px;padding:8px 12px;border-radius:8px;background:var(--bg-surface-strong);border:1px solid var(--border);cursor:pointer;transition:all .15s ease;-webkit-user-select:none;user-select:none}.user-chip:hover{background:var(--bg-surface);border-color:var(--accent)}.user-chip:focus{outline:2px solid var(--accent);outline-offset:2px}.user-avatar{width:32px;height:32px;border-radius:50%;background:var(--accent);color:#fff;display:flex;align-items:center;justify-content:center;font-size:.8rem;font-weight:600;flex-shrink:0}.user-info{flex:1;min-width:0}.user-email{display:block;font-size:.85rem;color:var(--text-base);font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.user-chevron{font-size:.8rem;color:var(--text-muted);transition:transform .15s ease}.user-chip[aria-expanded=true] .user-chevron{transform:rotate(180deg)}.user-dropdown{min-width:180px;background:var(--bg-surface);border:1px solid var(--border);border-radius:8px;box-shadow:var(--shadow)}.dropdown-item{display:flex;align-items:center;gap:8px;width:100%;padding:12px 16px;border:none;background:none;color:var(--text-base);cursor:pointer;font-size:.9rem;text-align:left;transition:background .15s ease}.dropdown-item:hover:not(:disabled){background:var(--bg-surface-strong)}.dropdown-item:disabled{opacity:.5;cursor:not-allowed}.dropdown-item.logout{color:#dc2626}.dropdown-item.logout:hover:not(:disabled){background:#dc26261a}.profile-modal{max-width:500px;width:90vw;max-height:85vh;overflow-y:auto;display:flex;flex-direction:column}.profile-sections{display:flex;flex-direction:column;gap:24px}.profile-section{padding:16px 0;border-bottom:1px solid var(--border)}.profile-section:last-child{border-bottom:none}.profile-section h3{margin:0 0 12px;font-size:1rem;font-weight:600;color:var(--text-base)}.profile-field{display:flex;flex-direction:column;gap:4px;margin-bottom:12px}.profile-field:last-child{margin-bottom:0}.profile-field label{font-size:.8rem;font-weight:500;color:var(--text-muted);text-transform:uppercase;letter-spacing:.025em}.profile-field span{font-size:.9rem;color:var(--text-base);word-break:break-word}.profile-footer{margin-top:24px;padding-top:16px;border-top:1px solid var(--border);display:flex;justify-content:center;gap:12px;flex-wrap:wrap}.profile-note{color:var(--text-muted);font-size:.8rem}.profile-edit-button{background:var(--accent);color:#fff;border:none;padding:10px 20px;border-radius:8px;font-weight:600;font-size:.9rem;cursor:pointer;transition:opacity .15s ease}.profile-edit-button:hover{opacity:.9}.profile-manage-subscription-button{background:var(--surface-elevated);color:var(--text-base);border:1px solid var(--border);padding:10px 20px;border-radius:8px;font-weight:600;font-size:.9rem;cursor:pointer;transition:all .15s ease;text-decoration:none;display:inline-block}.profile-manage-subscription-button:hover{background:var(--surface-hover);border-color:var(--border-hover)}.profile-edit-form{display:flex;flex-direction:column;gap:20px;flex:1;min-height:0;overflow-y:auto;padding-right:8px;margin-right:-8px}.profile-form-section{padding-bottom:16px;border-bottom:1px solid var(--border)}.profile-form-section:last-of-type{border-bottom:none}.profile-form-section h3{margin:0 0 12px;font-size:1rem;font-weight:600;color:var(--text-base)}.profile-form-field{margin-bottom:12px}.profile-form-field:last-child{margin-bottom:0}.profile-form-field label{display:block;font-size:.8rem;font-weight:500;color:var(--text-muted);margin-bottom:6px}.profile-form-field input,.profile-form-field textarea{width:100%;padding:10px 12px;border:1px solid var(--border);border-radius:8px;font-size:.9rem;font-family:inherit;background:var(--bg-surface);color:var(--text-base);transition:border-color .15s ease;box-sizing:border-box}.profile-form-field input:focus,.profile-form-field textarea:focus{outline:none;border-color:var(--accent)}.profile-form-field input.disabled{background:var(--bg-surface-strong);color:var(--text-muted);cursor:not-allowed}.profile-form-field textarea{resize:vertical;min-height:80px}.profile-field-note{display:block;font-size:.75rem;color:var(--text-muted);margin-top:4px}.profile-form-row{display:flex;gap:16px}.profile-form-row .profile-form-field{flex:0 0 auto}.profile-form-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:16px;padding-top:16px;border-top:1px solid var(--border);flex-shrink:0;background:var(--bg-surface);position:sticky;bottom:0;padding-bottom:4px}.profile-modal-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;padding-bottom:16px;border-bottom:1px solid var(--border)}.profile-modal-header h2{margin:0;font-size:1.25rem;font-weight:600;color:var(--text-base)}.profile-modal-header-actions{display:flex;align-items:center;gap:8px}.profile-edit-btn{background:transparent;color:var(--text-muted);border:1px solid var(--border);padding:6px 14px;border-radius:6px;font-weight:500;font-size:.85rem;cursor:pointer;transition:all .15s ease;line-height:1}.profile-edit-btn:hover{background:var(--bg-surface-strong);color:var(--text-base);border-color:var(--text-muted)}.profile-close-btn{display:flex;align-items:center;justify-content:center;width:32px;height:32px;background:transparent;border:none;border-radius:6px;font-size:1.25rem;color:var(--text-muted);cursor:pointer;transition:all .15s ease;line-height:1}.profile-close-btn:hover{background:var(--bg-surface-strong);color:var(--text-base)}.profile-primary{display:flex;align-items:center;gap:16px;padding-bottom:20px;border-bottom:1px solid var(--border)}.profile-avatar-large{width:56px;height:56px;border-radius:50%;background:linear-gradient(135deg,var(--accent),#6366f1);color:#fff;display:flex;align-items:center;justify-content:center;font-size:1.5rem;font-weight:600;flex-shrink:0}.profile-primary-info{display:flex;flex-direction:column;gap:4px;min-width:0}.profile-name{font-size:1.25rem;font-weight:600;color:var(--text-base);line-height:1.3}.profile-email{font-size:.9rem;color:var(--text-muted);word-break:break-word}.profile-value{font-size:.95rem;color:var(--text-base);word-break:break-word;line-height:1.5}.profile-value.secondary{font-size:.875rem;color:var(--text-muted)}.profile-value.pre-wrap{white-space:pre-wrap}.profile-field-row{display:flex;gap:24px}.profile-field-row .profile-field{flex:1;margin-bottom:0}.profile-skeleton{display:flex;flex-direction:column;gap:24px;padding:8px 0}.profile-skeleton-header{display:flex;align-items:center;gap:16px;padding-bottom:20px;border-bottom:1px solid var(--border)}.profile-skeleton .skeleton-avatar{width:56px;height:56px;border-radius:50%;flex-shrink:0}.profile-skeleton-info{display:flex;flex-direction:column;gap:8px;flex:1}.profile-skeleton .skeleton-text-lg{height:24px;width:60%;border-radius:4px}.profile-skeleton .skeleton-text-md{height:18px;width:80%;border-radius:4px}.profile-skeleton .skeleton-text-sm{height:16px;width:50%;border-radius:4px}.profile-skeleton .skeleton-text-xs{height:12px;width:30%;border-radius:4px;margin-bottom:8px}.profile-skeleton-section{display:flex;flex-direction:column;gap:8px;padding-bottom:16px;border-bottom:1px solid var(--border)}.profile-skeleton-section:last-child{border-bottom:none}.session-info,.session-email,.logout-button{display:none}.modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background:#00000080;display:flex;align-items:center;justify-content:center;z-index:1000}.modal-content{background:var(--bg-surface);border-radius:12px;padding:24px;max-width:400px;width:90%;box-shadow:0 20px 60px #0003}.modal-content h3{margin:0 0 12px;font-size:1.1rem;color:var(--text-base)}.modal-content p{margin:0 0 20px;color:var(--text-muted);font-size:.9rem;line-height:1.5}.modal-actions{display:flex;gap:12px;justify-content:flex-end}.modal-button{padding:10px 20px;border-radius:8px;font-size:.9rem;font-weight:500;cursor:pointer;transition:all .15s ease;border:none}.modal-button.cancel{background:var(--bg-surface-strong);color:var(--text-muted)}.modal-button.cancel:hover:not(:disabled){background:var(--border);color:var(--text-base)}.modal-button.confirm{background:var(--accent);color:#fff}.modal-button.confirm:hover:not(:disabled){background:var(--accent-hover)}.modal-button:disabled{opacity:.6;cursor:not-allowed}.account-banner{margin:0 24px 20px;border-radius:12px;padding:20px;display:flex;align-items:center;gap:16px;box-shadow:var(--shadow)}.account-banner--signed-up{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff}.account-banner--paid-active{background:linear-gradient(135deg,#43e97b,#38f9d7);color:#fff}.account-banner--past-due{background:linear-gradient(135deg,#fa709a,#fee140);color:#1f2937}.banner-content{display:flex;align-items:center;gap:16px;width:100%}.banner-icon{font-size:32px;flex-shrink:0}.banner-text{flex:1}.banner-text h3{margin:0 0 4px;font-size:18px;font-weight:600}.banner-text p{margin:0;font-size:14px;opacity:.9;line-height:1.4}.banner-hint{font-size:12px;opacity:.8;font-style:italic}.banner-button{background:#fff3;border:1px solid rgba(255,255,255,.3);color:#fff;padding:8px 16px;border-radius:6px;font-weight:500;cursor:pointer;transition:all .2s ease;flex-shrink:0}.banner-button:hover{background:#ffffff4d;transform:translateY(-1px)}.banner-button--urgent{background:#ef4444;border-color:#ef4444;color:#fff}.banner-button--urgent:hover{background:#dc2626}.account-banner--instant-pay-eligible{background:linear-gradient(135deg,#f59e0b,#f97316);color:#fff}.instant-pay-list-badge.eligible{opacity:.85}.invoice-card-badges{display:flex;align-items:center;gap:4px}.post-demo-modal{max-width:420px;text-align:center;padding:32px}.post-demo-modal .success-icon{font-size:48px;margin-bottom:16px}.post-demo-modal h2{color:var(--text-base);margin-bottom:12px;font-size:24px}.post-demo-modal p{color:var(--text-muted);margin-bottom:16px;line-height:1.5;font-size:16px}.post-demo-modal p:last-of-type{margin-bottom:0}.modal-actions{display:flex;flex-direction:column;gap:12px;margin-top:24px}.primary-button{background:var(--accent);color:#fff;padding:12px 24px;border-radius:6px;border:none;font-weight:500;cursor:pointer;font-size:16px;transition:all .2s ease}.primary-button:hover{background:var(--accent-hover);transform:translateY(-1px)}.secondary-button{background:transparent;color:var(--text-muted);padding:10px 20px;border:1px solid var(--border);border-radius:6px;cursor:pointer;font-size:14px;transition:all .2s ease}.secondary-button:hover{background:var(--bg-surface-strong);color:var(--text-base)}.payment-info-modal{max-width:400px;text-align:center}.payment-info-modal .modal-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.payment-info-modal .modal-header h2{font-size:22px;color:var(--text-base);margin:0}.payment-info-content{padding:8px 0}.pricing-highlight{margin:20px 0}.pricing-highlight .price{font-size:48px;font-weight:700;color:var(--text-base)}.pricing-highlight .period{font-size:18px;color:var(--text-muted)}.payment-benefits{list-style:none;padding:0;margin:20px 0;text-align:left}.payment-benefits li{padding:8px 0;font-size:15px;color:var(--text-base)}.trial-note{font-size:13px;color:var(--text-muted);margin-top:16px;padding:12px;background:var(--bg-surface-strong);border-radius:8px;line-height:1.4}.banner-actions{display:flex;gap:12px;align-items:center;margin-top:16px}.banner-button--primary{background:var(--accent);color:#fff;border:none}.banner-button--primary:hover{background:var(--accent-hover)}.banner-button--secondary{background:#fff3;border:1px solid rgba(255,255,255,.3);color:#fff}.banner-button--secondary:hover{background:#ffffff4d}.banner-button--disabled{background:#ffffff1a;border:1px solid rgba(255,255,255,.2);color:#fff9;cursor:not-allowed}.banner-button--disabled:hover{background:#ffffff1a}.proof-helper-section{margin-bottom:24px;padding:16px;background:var(--bg-surface-strong);border-radius:8px;border:1px solid var(--border)}.proof-helper-title{margin:0 0 12px;font-size:1rem;font-weight:600;color:var(--text-base)}.proof-helper-description{margin:0 0 8px;font-size:.875rem;color:var(--text-base);line-height:1.5}.proof-helper-reassurance{margin:0;font-size:.75rem;color:var(--text-muted);font-style:italic}.examples-section{margin-bottom:20px}.examples-label{display:block;font-size:.75rem;color:var(--text-muted);text-transform:uppercase;letter-spacing:.05em;font-weight:500;margin-bottom:8px}.examples-chips{display:flex;flex-wrap:wrap;gap:8px}.example-chip{padding:4px 8px;background:var(--bg-surface-strong);color:var(--text-muted);border-radius:16px;font-size:.75rem;font-weight:500;border:1px solid var(--border)}.file-input{width:100%;padding:8px 12px;border:1px solid var(--border);border-radius:6px;font-size:.875rem;background:var(--bg-surface);color:var(--text-base)}.selected-files{margin-top:8px}.files-label{display:block;font-size:.75rem;color:var(--text-muted);margin-bottom:4px}.files-list{margin:0;padding-left:16px}.file-item{font-size:.875rem;color:var(--text-base);margin-bottom:2px}.field-helper{margin:4px 0 8px;font-size:.75rem;color:var(--text-muted);line-height:1.4}.instant-pay-banner{margin-bottom:12px;padding:10px 14px;background:var(--accent-muted);border:1px solid var(--accent);border-radius:6px;color:var(--accent);font-size:.85rem;font-weight:500}.banner-text{display:block}.instant-pay-modal{max-width:400px}.instant-pay-modal .modal-body{margin:20px 0}.instant-pay-modal .modal-description{color:var(--text-base);line-height:1.5;margin:0}.invoice-details-sheet{position:fixed;top:0;right:0;width:480px;height:100vh;background:var(--bg-surface);box-shadow:var(--shadow);border-left:1px solid var(--border);display:flex;flex-direction:column;z-index:1000;animation:slideInFromRight .2s ease-out}@keyframes slideInFromRight{0%{transform:translate(100%)}to{transform:translate(0)}}.sheet-header{padding:20px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between}.sheet-header h2{margin:0;font-size:1.25rem;font-weight:600;color:var(--text-base)}.sheet-close{background:none;border:none;font-size:24px;color:var(--text-muted);cursor:pointer;padding:0;width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:4px;transition:all .15s ease}.sheet-close:hover{background:var(--bg-surface-strong);color:var(--text-base)}.sheet-content{flex:1;overflow-y:auto;padding:20px}.details-section{margin-bottom:32px}.details-section h3{margin:0 0 16px;font-size:1rem;font-weight:600;color:var(--text-base)}.details-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.detail-item{display:flex;flex-direction:column;gap:4px}.detail-item label{font-size:.75rem;color:var(--text-muted);text-transform:uppercase;letter-spacing:.05em;font-weight:500}.detail-item span{font-size:.875rem;color:var(--text-base);font-weight:500}.pdf-link,.no-pdf,.no-history{display:inline-block;padding:8px 12px;border-radius:6px;font-size:.875rem;font-weight:500}.pdf-link{background:var(--accent-muted);color:var(--accent);text-decoration:none;transition:all .15s ease}.pdf-link:hover{background:var(--accent);color:#fff}.no-pdf,.no-history{background:var(--bg-surface-strong);color:var(--text-muted)}.invoice-timeline{display:flex;flex-direction:column;gap:12px;padding:16px;background:var(--bg-surface-strong);border-radius:8px}.timeline-item{display:flex;align-items:center;gap:16px;font-size:.875rem}.timeline-date{min-width:60px;font-weight:600;color:var(--text-base)}.timeline-event{color:var(--text-muted)}.timeline-item.timeline-success .timeline-date,.timeline-item.timeline-success .timeline-event{color:#059669}.timeline-item.timeline-overdue .timeline-date,.timeline-item.timeline-overdue .timeline-event{color:#dc2626;font-weight:500}.timeline-item.timeline-future .timeline-event{color:var(--text-muted)}.timeline-item.timeline-instant-pay .timeline-event{color:#7c3aed;font-weight:500}.timeline-item.timeline-instant-pay.timeline-success .timeline-event{color:#059669}.timeline-item.timeline-error .timeline-date,.timeline-item.timeline-error .timeline-event{color:#dc2626}.invoice-header-card{background:var(--bg-surface-strong);border:1px solid var(--border);border-radius:12px;padding:20px;margin-bottom:20px}.invoice-header-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}.invoice-number-large{font-size:1rem;font-weight:600;color:var(--text-base)}.invoice-client-line{display:flex;flex-direction:column;gap:2px;margin-bottom:12px}.client-name-display{font-size:.95rem;font-weight:500;color:var(--text-base)}.client-email-display{font-size:.85rem;color:var(--text-muted)}.invoice-amount-line{display:flex;justify-content:space-between;align-items:baseline;padding-top:12px;border-top:1px solid var(--border)}.amount-large{font-size:1.5rem;font-weight:700;color:var(--text-base)}.due-date-display{font-size:.85rem;color:var(--text-muted)}.due-date-display.overdue{color:var(--status-error);font-weight:500}.sheet-quick-actions{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:24px}.quick-action-btn{padding:10px 16px;border:1px solid var(--border);border-radius:8px;background:var(--bg-surface);color:var(--text-base);font-size:.85rem;font-weight:500;cursor:pointer;transition:all .15s ease;text-decoration:none;display:inline-flex;align-items:center;gap:6px}.quick-action-btn:hover{background:var(--bg-surface-strong);border-color:var(--text-muted)}.quick-action-btn.primary{background:var(--accent);border-color:var(--accent);color:#fff}.quick-action-btn.primary:hover{background:var(--accent-hover);border-color:var(--accent-hover)}.quick-action-btn.success{background:var(--success);border-color:var(--success);color:#fff}.quick-action-btn.success:hover{background:#047857;border-color:#047857}.quick-action-btn.outline{background:transparent;border-color:var(--border);color:var(--text-muted)}.quick-action-btn.outline:hover{background:var(--bg-surface-strong);color:var(--text-base)}.quick-action-btn.full-width{width:100%;justify-content:center}.collapsible-section{border:1px solid var(--border);border-radius:8px;margin-bottom:16px;overflow:hidden}.collapsible-header{width:100%;display:flex;justify-content:space-between;align-items:center;padding:12px 16px;background:var(--bg-surface-strong);border:none;cursor:pointer;font-size:.9rem;font-weight:600;color:var(--text-base);transition:background .15s ease}.collapsible-header:hover{background:#f1f5f9}.collapsible-icon{font-size:1.1rem;color:var(--text-muted);font-weight:400}.collapsible-content{padding:16px;background:var(--bg-surface)}.collapsible-section .invoice-timeline{padding:0;background:transparent;border-radius:0}.instant-pay-prompt{text-align:center;padding:16px;background:var(--bg-surface-strong);border-radius:8px}.instant-pay-prompt p{margin:0 0 12px;font-size:.9rem;color:var(--text-muted)}.instant-pay-status-card{padding:16px;border-radius:8px;background:var(--bg-surface-strong)}.instant-pay-status-card .status-label{display:inline-block;font-weight:600;font-size:.9rem;margin-bottom:8px}.instant-pay-status-card .status-label.success{color:var(--success)}.instant-pay-status-card .status-label.error{color:var(--status-error)}.instant-pay-status-card .status-label.warning{color:#d97706}.instant-pay-status-card .status-label.pending{color:var(--accent)}.instant-pay-status-card .status-notes{margin:0;font-size:.85rem;color:var(--text-muted)}.instant-pay-offer-card{padding:20px;border-radius:10px;background:linear-gradient(135deg,#ecfdf5,#d1fae5);border:1px solid #6ee7b7}.instant-pay-offer-card .offer-badge{display:inline-block;font-weight:600;font-size:1rem;color:#059669;margin-bottom:8px}.instant-pay-offer-card .offer-intro{margin:0 0 16px;font-size:.9rem;color:#065f46}.offer-breakdown{background:#fff;padding:16px;border-radius:8px;margin-bottom:16px}.offer-line{display:flex;justify-content:space-between;padding:8px 0;font-size:.9rem;color:var(--text-base)}.offer-line:not(:last-child){border-bottom:1px solid #e5e7eb}.offer-line.fee{color:#dc2626}.offer-line.total{font-weight:600;font-size:1rem;color:#059669;border-bottom:none;padding-top:12px}.instant-pay-offer-card .offer-note{margin:0 0 16px;font-size:.8rem;color:#065f46;line-height:1.4}.offer-actions{display:flex;gap:12px}.accept-offer-btn{flex:1;background:linear-gradient(135deg,#059669,#047857);color:#fff;border:none;padding:14px 24px;border-radius:8px;font-weight:600;font-size:1rem;cursor:pointer;transition:all .15s ease}.accept-offer-btn:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 4px 12px #0596694d}.accept-offer-btn:disabled{opacity:.7;cursor:not-allowed}.instant-pay-offer-card .offer-admin-notes{margin:16px 0 0;padding-top:12px;border-top:1px solid #a7f3d0;font-size:.8rem;color:#065f46;font-style:italic}.instant-pay-status-card--accepted,.instant-pay-status-card--funded{background:linear-gradient(135deg,#ecfdf5,#d1fae5);border:1px solid #6ee7b7}.referral-nudge{margin-top:12px;padding:16px;background:var(--bg-surface);border:1px solid var(--border);border-radius:10px}.referral-nudge-text{margin:0 0 12px;font-size:.875rem;color:var(--text-muted);line-height:1.5}.referral-nudge-actions{display:flex;gap:8px}.referral-btn{display:inline-flex;align-items:center;justify-content:center;padding:10px 16px;border-radius:8px;font-size:.85rem;font-weight:600;cursor:pointer;text-decoration:none;transition:all .15s ease;min-height:44px;border:none}.referral-btn--primary{background:var(--accent);color:#fff;flex:1}.referral-btn--primary:hover{background:var(--accent-hover)}.referral-btn--secondary{background:var(--bg-surface-strong);color:var(--text-base);border:1px solid var(--border);flex:1}.referral-btn--secondary:hover{background:var(--bg-base)}@media(max-width:768px){.referral-nudge-actions{flex-direction:column}}.instant-pay-form-container{padding:16px;background:var(--bg-surface-strong);border-radius:8px}.cancel-link{display:block;width:100%;margin-top:12px;padding:8px;background:transparent;border:none;color:var(--text-muted);font-size:.85rem;cursor:pointer;text-align:center}.cancel-link:hover{color:var(--text-base);text-decoration:underline}.instant-pay-status{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;background:var(--bg-surface-strong);border-radius:8px;border:1px solid var(--border)}.status-text{font-size:.875rem;color:var(--text-base);font-weight:500}.status-button{padding:6px 12px;border:1px solid var(--border);border-radius:6px;background:var(--bg-surface);color:var(--text-base);font-size:.75rem;font-weight:500;cursor:not-allowed;opacity:.6}.status-button.disabled{cursor:not-allowed}.instant-pay-result{padding:16px;border-radius:8px;border:1px solid var(--border);background:var(--bg-surface-strong)}.instant-pay-result--approved{background:#22c55e1a;border-color:#22c55e4d}.instant-pay-result--denied{background:#ef44441a;border-color:#ef44444d}.instant-pay-result--needs_info{background:#f59e0b1a;border-color:#f59e0b4d}.instant-pay-result--submitted{background:#3b82f61a;border-color:#3b82f64d}.instant-pay-result-header{margin-bottom:12px}.instant-pay-badge{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border-radius:20px;font-size:.875rem;font-weight:600;background:var(--bg-surface)}.instant-pay-badge.approved{color:#16a34a;background:#22c55e26}.instant-pay-badge.denied{color:#dc2626;background:#ef444426}.instant-pay-badge.needs-info{color:#d97706;background:#f59e0b26}.instant-pay-badge.submitted{color:#2563eb;background:#3b82f626}.instant-pay-notes{margin-top:12px;padding:12px;background:var(--bg-surface);border-radius:6px;font-size:.875rem}.instant-pay-notes strong{display:block;margin-bottom:4px;color:var(--text-muted);font-size:.75rem;text-transform:uppercase;letter-spacing:.5px}.instant-pay-notes p{margin:0;color:var(--text-base);line-height:1.5;white-space:pre-wrap}.instant-pay-decided-at{margin-top:8px;font-size:.75rem;color:var(--text-muted)}.instant-pay-section{background:linear-gradient(135deg,#faf5ff,#f3e8ff);border:1px solid #d8b4fe;border-radius:12px;padding:20px;margin-top:8px}.instant-pay-section h3{color:#7c3aed;margin-bottom:16px}.instant-pay-cta{margin-bottom:20px;padding:16px;background:#fff;border-radius:10px;border:1px solid #e9d5ff}.instant-pay-cta-content{display:flex;align-items:flex-start;gap:12px}.instant-pay-cta-icon{font-size:1.5rem;line-height:1}.instant-pay-cta-text strong{display:block;font-size:1rem;color:#5b21b6;margin-bottom:4px}.instant-pay-cta-text p{margin:0;font-size:.875rem;color:#7c3aed;line-height:1.4}.instant-pay-not-enabled{padding:16px;background:#fff;border-radius:10px;border:1px solid #e9d5ff}.instant-pay-not-enabled p{margin:0;font-size:.9rem;color:#5b21b6}.instant-pay-not-enabled-hint{margin-top:8px!important;font-size:.85rem!important;color:#7c3aed!important;line-height:1.4}.instant-pay-form{max-width:100%}.instant-pay-form.simplified{padding:0}.instant-pay-form .form-intro{margin:0 0 16px;font-size:.85rem;color:var(--text-muted);line-height:1.4}.selected-files-compact{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}.file-chip{display:inline-block;padding:4px 10px;background:var(--accent-muted);color:var(--accent);font-size:.75rem;border-radius:12px;max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.form-group{margin-bottom:20px}.form-group label{display:block;margin-bottom:6px;font-size:.85rem;font-weight:500;color:var(--text-muted)}.form-group input,.form-group select,.form-group textarea{width:100%;padding:10px 12px;border:1px solid var(--border);border-radius:8px;font-size:.9rem;background:var(--bg-surface);color:var(--text-base);transition:border-color .15s ease,box-shadow .15s ease}.form-group input:focus,.form-group select:focus,.form-group textarea:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-muted)}.link-input-group{display:flex;align-items:center;gap:8px;margin-bottom:8px}.link-input-group input{flex:1}.remove-link-btn{background:none;border:1px solid var(--border);color:var(--text-muted);width:32px;height:32px;border-radius:4px;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:16px;transition:all .15s ease}.remove-link-btn:hover{background:#fee2e2;border-color:#fca5a5;color:#dc2626}.add-link-btn{background:none;border:1px solid var(--border);color:var(--text-muted);padding:6px 12px;border-radius:4px;font-size:.75rem;cursor:pointer;transition:all .15s ease}.add-link-btn:hover{background:var(--bg-surface-strong);color:var(--text-base)}.submit-btn{width:100%;padding:12px 16px;background:linear-gradient(135deg,var(--accent) 0%,var(--accent-hover) 100%);color:#fff;border:none;border-radius:8px;font-size:.9rem;font-weight:600;cursor:pointer;transition:all .15s ease;box-shadow:0 2px 8px #22c55e40}.submit-btn:hover:not(:disabled){background:linear-gradient(135deg,var(--accent-hover) 0%,#15803d 100%);box-shadow:0 4px 12px #22c55e59}.submit-btn:disabled{opacity:.6;cursor:not-allowed}.clickable-invoice-row{cursor:pointer;transition:background-color .15s ease}.clickable-invoice-row:hover{background:var(--bg-surface-strong)}@media(max-width:768px){.invoice-details-sheet{width:100vw;left:0}}.instant-pay-optin{margin-top:16px;padding:16px;background:#22c55e0f;border:1px solid rgba(34,197,94,.15);border-radius:8px}.instant-pay-optin.full-width{grid-column:1 / -1}.checkbox-label{display:flex!important;gap:12px;cursor:pointer;align-items:flex-start}.checkbox-label input[type=checkbox]{display:inline-block;margin-top:0;width:auto}.checkbox-label input[type=checkbox]{width:20px;height:20px;min-width:20px;margin-top:2px;accent-color:var(--accent);cursor:pointer}.checkbox-text{display:flex;flex-direction:column;gap:4px}.checkbox-text strong{color:var(--text-base);font-size:.95rem}.checkbox-text small{color:var(--text-muted);font-size:.85rem;line-height:1.4}.instant-pay-status{display:flex;flex-direction:column;gap:8px;padding:12px;background:var(--bg-surface-strong);border-radius:6px;border:1px solid var(--border)}.instant-pay-status.disabled{opacity:.9}.instant-pay-status .status-badge{font-weight:500;font-size:.9rem}.instant-pay-status .status-badge.enabled{color:#22c55e}.instant-pay-status .status-badge.not-enabled{color:var(--text-muted)}.instant-pay-status .field-note{color:var(--text-muted);font-size:.8rem;line-height:1.4}.terms-acceptance{margin-top:24px;padding:16px;background:var(--bg-surface-strong);border-radius:8px;border:1px solid var(--border)}.terms-checkbox{align-items:center}.terms-checkbox .checkbox-text{display:inline;font-size:.95rem;color:var(--text-base)}.terms-checkbox .checkbox-text a{color:var(--accent);text-decoration:none;font-weight:500}.terms-checkbox .checkbox-text a:hover{text-decoration:underline}.terms-page{min-height:100vh;background:var(--bg-base);padding:40px 20px}.terms-container{max-width:800px;margin:0 auto;background:var(--bg-surface);border-radius:12px;box-shadow:var(--shadow);padding:48px}.terms-container h1{font-size:2rem;font-weight:700;color:var(--text-base);margin-bottom:8px}.terms-effective{color:var(--text-muted);font-size:.9rem;margin-bottom:32px}.terms-intro{padding:20px;background:var(--bg-surface-strong);border-radius:8px;border-left:4px solid var(--accent);margin-bottom:32px}.terms-intro p{margin:0;color:var(--text-base);line-height:1.6}.terms-section{margin-bottom:32px;padding-bottom:24px;border-bottom:1px solid var(--border)}.terms-section:last-of-type{border-bottom:none;margin-bottom:24px}.terms-section h2{font-size:1.15rem;font-weight:600;color:var(--text-base);margin-bottom:12px}.terms-section p{color:var(--text-base);line-height:1.7;margin-bottom:12px}.terms-section p:last-child{margin-bottom:0}.terms-section ul{margin:12px 0;padding-left:24px}.terms-section li{color:var(--text-base);line-height:1.7;margin-bottom:8px}.terms-section li:last-child{margin-bottom:0}.terms-section ul ul{margin-top:8px;margin-bottom:0}.terms-section strong{color:var(--text-base);font-weight:600}.terms-section a{color:var(--accent);text-decoration:none}.terms-section a:hover{text-decoration:underline}.terms-footer{margin-top:32px;padding-top:24px;border-top:1px solid var(--border);text-align:center}.terms-footer p{color:var(--text-muted);font-size:.85rem;margin:0}@media(max-width:768px){.terms-container{padding:24px}.terms-container h1{font-size:1.5rem}.terms-section h2{font-size:1.05rem}}.create-invoice-button{margin-left:auto;padding:12px 24px;background:linear-gradient(135deg,var(--accent) 0%,var(--accent-hover) 100%);color:#fff;border:none;border-radius:10px;font-size:.95rem;font-weight:600;cursor:pointer;transition:all .2s ease;white-space:nowrap;box-shadow:0 2px 8px #22c55e4d}.create-invoice-button:hover{background:linear-gradient(135deg,var(--accent-hover) 0%,#15803d 100%);transform:translateY(-1px);box-shadow:0 4px 12px #22c55e66}.create-invoice-overlay{padding:20px}.create-invoice-modal{max-width:700px;width:95%;max-height:90vh;overflow-y:auto}.create-invoice-modal.split-view{max-width:1200px;width:95%;max-height:95vh;display:flex;overflow:hidden;padding:0}.split-view-preview{flex:1;min-width:0;background:#f1f5f9;border-right:1px solid var(--border);display:flex;flex-direction:column;overflow:hidden}.preview-header-bar{padding:12px 16px;background:#e2e8f0;border-bottom:1px solid var(--border);flex-shrink:0}.preview-label-badge{font-size:.8rem;font-weight:600;color:#475569;text-transform:uppercase;letter-spacing:.5px}.split-view-form{flex:1;min-width:0;display:flex;flex-direction:column;overflow:hidden;padding:24px}.split-view-form .create-invoice-form{flex:1;overflow-y:auto;padding-right:8px}.split-view-form .modal-actions{flex-shrink:0;margin-top:auto;padding-top:16px;border-top:1px solid var(--border)}.create-invoice-modal .modal-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;padding-bottom:16px;border-bottom:1px solid var(--border);flex-shrink:0}.create-invoice-modal .modal-header h2{margin:0;font-size:1.25rem;color:var(--text-base)}.invoice-preview-container{flex:1;overflow:hidden;display:flex;flex-direction:column}.invoice-preview-scroll{flex:1;overflow-y:auto;padding:24px;display:flex;justify-content:center}.invoice-preview{background:#fff;box-shadow:0 4px 20px #0000001a;border-radius:4px;width:100%;max-width:500px;padding:32px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif;font-size:11px;line-height:1.5;color:#333}.preview-header{display:flex;justify-content:space-between;margin-bottom:24px;padding-bottom:16px;border-bottom:2px solid #333}.preview-title{font-size:24px;font-weight:700;color:#333}.preview-invoice-number{font-size:11px;color:#666;margin-top:4px}.preview-from{text-align:right}.preview-business-name{font-weight:700;font-size:13px}.preview-email{color:#666}.preview-info-row{display:flex;justify-content:space-between;margin-bottom:24px}.preview-bill-to{flex:1}.preview-label{font-weight:700;color:#666;font-size:9px;text-transform:uppercase;display:block;margin-bottom:6px}.preview-client-name{font-weight:700;font-size:13px}.preview-client-email{color:#666}.preview-dates{display:flex;gap:20px;text-align:right}.preview-date-item{display:flex;flex-direction:column;gap:4px}.preview-date-value{font-weight:700;font-size:10px}.preview-table{width:100%;border-collapse:collapse;margin-bottom:20px}.preview-table th{background:#f5f5f5;padding:8px;text-align:left;font-weight:700;font-size:9px;border-bottom:2px solid #333}.preview-table th.right,.preview-table td.right{text-align:right}.preview-table td{padding:8px;border-bottom:1px solid #eee;font-size:10px}.preview-table .empty-row{text-align:center;color:#999;font-style:italic}.preview-totals{width:200px;margin-left:auto}.preview-totals-row{display:flex;justify-content:space-between;padding:6px 0;border-bottom:1px solid #eee;font-size:10px}.preview-totals-row.total{font-weight:700;font-size:13px;border-bottom:2px solid #333;border-top:2px solid #333;padding:8px 0}.preview-footer{margin-top:20px;padding-top:12px;border-top:1px solid #eee}.preview-payment-instructions{padding:12px;background:linear-gradient(135deg,#f0f9ff,#e0f2fe);border:2px solid #0ea5e9;border-radius:6px;margin-bottom:12px}.preview-payment-label{font-weight:700;color:#0369a1;font-size:10px;text-transform:uppercase;margin-bottom:6px}.preview-payment-content{color:#0c4a6e;font-size:10px;line-height:1.5;white-space:pre-wrap}.preview-notes{padding:10px;background:#f9f9f9;border-radius:4px}.preview-notes-label{font-weight:700;color:#666;font-size:9px;text-transform:uppercase;margin-bottom:4px}.preview-powered-by{margin-top:12px;padding-top:8px;border-top:1px solid #eee;text-align:center;color:#999;font-size:8px}.preview-brand{font-weight:800;letter-spacing:-.3px;color:#333}.create-invoice-form{display:flex;flex-direction:column;gap:24px}.create-invoice-form .form-section{display:flex;flex-direction:column;gap:12px}.create-invoice-form .form-section h3{font-size:.85rem;font-weight:600;color:var(--text-muted);text-transform:uppercase;letter-spacing:.03em;margin:0 0 8px}.create-invoice-form .field-hint{display:block;margin-top:6px;font-size:.8rem;color:var(--text-muted)}.create-invoice-form .form-row{display:flex;gap:16px}.create-invoice-form .form-row label{flex:1;display:flex;flex-direction:column;gap:6px;font-size:.85rem;color:var(--text-muted)}.create-invoice-form .form-row label.full-width{flex:1 0 100%}.create-invoice-form .form-row-full{display:flex;flex-direction:column;gap:8px}.create-invoice-form .form-row-inline{display:flex;gap:8px;align-items:center}.create-invoice-form .form-input-inline{flex:1;min-width:0}.create-invoice-form .form-remove-inline{flex-shrink:0;padding:6px 12px;font-size:.8rem;color:var(--text-muted);background:var(--bg-surface);border:1px solid var(--border);border-radius:6px;cursor:pointer}.create-invoice-form .form-remove-inline:hover{border-color:var(--text-muted);color:var(--text-base)}.create-invoice-form .form-add-cc{padding:8px 12px;font-size:.85rem;color:var(--accent);background:transparent;border:1px dashed var(--border);border-radius:8px;cursor:pointer}.create-invoice-form .form-add-cc:hover{border-color:var(--accent);background:var(--accent-muted)}.create-invoice-form input,.create-invoice-form select,.create-invoice-form textarea{padding:10px 12px;border:1px solid var(--border);border-radius:8px;font-size:.9rem;background:var(--bg-surface);color:var(--text-base);transition:border-color .15s ease}.create-invoice-form input:focus,.create-invoice-form select:focus,.create-invoice-form textarea:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-muted)}.create-invoice-form textarea{resize:vertical;min-height:80px}.line-items-header{display:flex;gap:12px;padding:8px 0;font-size:.75rem;font-weight:600;color:var(--text-muted);text-transform:uppercase;border-bottom:1px solid var(--border)}.line-item-row{display:flex;gap:12px;align-items:center;padding:8px 0;border-bottom:1px solid var(--border-subtle)}.col-description{flex:3}.col-qty{flex:0 0 70px;text-align:right}.col-price{flex:0 0 100px;text-align:right}.col-amount{flex:0 0 100px;text-align:right;font-weight:500;color:var(--text-base)}.col-action{flex:0 0 32px}.line-item-row input{width:100%}.line-item-row .col-qty input,.line-item-row .col-price input{text-align:right}.remove-item{width:28px;height:28px;border:none;background:transparent;color:var(--text-muted);font-size:1.2rem;cursor:pointer;border-radius:4px;display:flex;align-items:center;justify-content:center;transition:all .15s ease}.remove-item:hover:not(:disabled){background:#fee2e2;color:#dc2626}.remove-item:disabled{opacity:.3;cursor:not-allowed}.add-line-item{align-self:flex-start;padding:8px 16px;background:transparent;border:1px dashed var(--border);border-radius:6px;color:var(--text-muted);font-size:.85rem;cursor:pointer;transition:all .15s ease;margin-top:8px}.add-line-item:hover{border-color:var(--accent);color:var(--accent);background:var(--bg-surface-strong)}.invoice-total{display:flex;justify-content:flex-end;gap:24px;padding:16px 0;margin-top:8px;border-top:2px solid var(--border);font-size:1.1rem;font-weight:600}.total-amount{color:var(--accent)}.auto-reminders-section,.instant-pay-toggle-section{margin-top:16px;padding:16px;background:var(--bg-surface-strong);border:1px solid var(--border);border-radius:8px}.auto-reminders-section .checkbox-label,.instant-pay-toggle-section .checkbox-label{display:flex;align-items:flex-start;gap:12px;cursor:pointer}.auto-reminders-section .checkbox-label input[type=checkbox],.instant-pay-toggle-section .checkbox-label input[type=checkbox]{width:18px;height:18px;margin-top:2px;accent-color:var(--accent);cursor:pointer}.auto-reminders-section .checkbox-text,.instant-pay-toggle-section .checkbox-text{display:flex;flex-direction:column;gap:4px}.auto-reminders-section .checkbox-text strong,.instant-pay-toggle-section .checkbox-text strong{font-size:.9rem;color:var(--text-base);font-weight:500}.auto-reminders-section .checkbox-text small,.instant-pay-toggle-section .checkbox-text small{font-size:.8rem;color:var(--text-muted);line-height:1.4}.instant-pay-notice{display:flex;align-items:flex-start;gap:10px;margin-top:12px;padding:12px;background:var(--accent-muted);border-radius:6px}.instant-pay-notice .notice-icon{font-size:1rem;line-height:1}.instant-pay-notice p{margin:0;font-size:.8rem;color:var(--accent-hover);line-height:1.4}.create-invoice-modal .modal-actions{margin-top:24px;padding-top:20px;border-top:1px solid var(--border)}.invoice-created-modal{max-width:500px}.invoice-created-modal .modal-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.invoice-created-modal .modal-header h2{margin:0;color:#059669;font-size:1.25rem}.success-content{display:flex;align-items:center;gap:20px;padding:20px;background:#ecfdf5;border-radius:12px;margin-bottom:24px}.success-icon{width:48px;height:48px;background:#059669;color:#fff;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:24px;font-weight:700;flex-shrink:0}.success-icon.sent{width:64px;height:64px;font-size:32px;background:linear-gradient(135deg,var(--success) 0%,#047857 100%);box-shadow:0 4px 12px #0596694d}.invoice-summary p{margin:0 0 4px;color:var(--text-base);font-size:.95rem}.invoice-summary p:first-child{font-size:1.1rem}.next-steps{background:var(--bg-surface-strong);border-radius:12px;padding:20px;margin-bottom:20px}.next-steps h3{margin:0 0 16px;font-size:1rem;color:var(--text-base)}.next-steps ol{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:12px}.next-steps li{font-size:.9rem;color:var(--text-muted);line-height:1.5}.next-steps li strong{color:var(--text-base)}.next-steps code{background:var(--bg-surface);padding:2px 6px;border-radius:4px;font-size:.85rem;color:var(--accent)}.cc-highlight{display:flex;align-items:center;gap:12px;margin-top:16px;padding:12px 16px;background:var(--bg-surface);border:2px solid var(--accent);border-radius:8px}.cc-label{font-size:.85rem;color:var(--text-muted);font-weight:500}.cc-email{flex:1;font-size:.95rem;font-weight:600;color:var(--accent);background:transparent;padding:0}.copy-email-btn{padding:6px 12px;background:var(--accent);color:#fff;border:none;border-radius:6px;font-size:.8rem;font-weight:500;cursor:pointer;transition:background .15s ease}.copy-email-btn:hover{background:var(--accent-hover)}.send-preview{background:var(--bg-surface-strong);border-radius:12px;padding:16px 20px;margin-bottom:20px}.send-preview-text{margin:0;font-size:.95rem;color:var(--text-muted);line-height:1.5}.send-preview-text strong{color:var(--text-base)}.send-invoice-btn{background:linear-gradient(135deg,var(--accent) 0%,var(--accent-hover) 100%)!important;box-shadow:0 2px 8px #22c55e4d}.send-invoice-btn:hover:not(:disabled){background:linear-gradient(135deg,var(--accent-hover) 0%,#15803d 100%)!important;box-shadow:0 4px 12px #22c55e66}.send-invoice-btn:disabled{opacity:.7;cursor:not-allowed}.modal-button.secondary{background:var(--bg-surface);color:var(--text-base);border:1px solid var(--border)}.modal-button.secondary:hover:not(:disabled){background:var(--bg-surface-strong)}.auto-reminders-notice{display:flex;align-items:flex-start;gap:12px;padding:16px;background:linear-gradient(135deg,#f0fdf4,#ecfdf5);border:1px solid #86efac;border-radius:10px;margin-bottom:20px}.auto-reminders-notice .notice-icon{font-size:1.25rem;line-height:1}.auto-reminders-notice p{margin:0;font-size:.9rem;color:#166534;line-height:1.4}.instant-pay-promo-card{padding:16px;background:linear-gradient(135deg,#fef3c7,#fef9c3);border:1px solid #fcd34d;border-radius:10px;margin-bottom:20px}.instant-pay-promo-card .promo-header{display:flex;align-items:center;gap:8px;margin-bottom:8px}.instant-pay-promo-card .promo-icon{font-size:1.1rem}.instant-pay-promo-card strong{font-size:.95rem;color:#92400e}.instant-pay-promo-card p{margin:0 0 12px;font-size:.85rem;color:#78350f;line-height:1.4}.instant-pay-promo-card .request-access-link{display:inline-block;color:#d97706;font-weight:600;font-size:.9rem;text-decoration:none;transition:color .15s ease}.instant-pay-promo-card .request-access-link:hover{color:#b45309;text-decoration:underline}.instant-pay-tip-section{padding-bottom:0!important;border-bottom:none!important}.instant-pay-tip{display:flex;align-items:flex-start;gap:12px;padding:14px;background:var(--bg-surface-strong);border:1px solid var(--border);border-radius:8px}.instant-pay-tip .tip-icon{font-size:1.1rem;line-height:1}.instant-pay-tip .tip-content{flex:1}.instant-pay-tip .tip-content strong{display:block;font-size:.9rem;color:var(--text-base);margin-bottom:4px}.instant-pay-tip .tip-content p{margin:0 0 8px;font-size:.8rem;color:var(--text-muted);line-height:1.4}.instant-pay-tip .tip-link{font-size:.8rem;font-weight:600;color:var(--accent);text-decoration:none}.instant-pay-tip .tip-link:hover{text-decoration:underline}.sent-details{font-size:.9rem!important;color:var(--text-muted)!important}.sent-details strong{color:var(--text-base)}@media(max-width:1024px){.create-invoice-modal.split-view{flex-direction:column;max-width:95%;max-height:95vh}.split-view-preview{max-height:35vh;border-right:none;border-bottom:1px solid var(--border)}.split-view-form{flex:1;min-height:0}}@media(max-width:768px){.create-invoice-modal{max-width:100%;width:100%;height:100%;max-height:100%;border-radius:0}.create-invoice-modal.split-view{max-width:100%;max-height:100%;border-radius:0}.split-view-preview{display:none}.split-view-form{width:100%}.create-invoice-form .form-row{flex-direction:column}.line-items-header{display:none}.line-item-row{flex-wrap:wrap}.col-description{flex:1 0 100%;order:1}.col-qty,.col-price,.col-amount{flex:1}.col-action{order:0;position:absolute;right:0;top:0}.line-item-row{position:relative;padding-right:40px}.create-invoice-button{padding:8px 12px;font-size:.8rem}.cc-highlight{flex-direction:column;align-items:stretch;text-align:center}.cc-email{word-break:break-all}}.admin-page{min-height:100vh;background:var(--bg-base);padding:24px}.admin-loading{display:flex;justify-content:center;align-items:center;min-height:200px;color:var(--text-muted);font-size:1rem}.admin-denied{max-width:400px;margin:100px auto;text-align:center;background:var(--bg-surface);padding:40px;border-radius:12px;box-shadow:var(--shadow)}.admin-denied h1{font-size:1.5rem;margin-bottom:12px;color:var(--text-base)}.admin-denied p{color:var(--text-muted);margin-bottom:24px}.admin-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px;padding-bottom:16px;border-bottom:1px solid var(--border)}.admin-header-left{display:flex;align-items:baseline;gap:16px}.admin-header h1{font-size:1.75rem;font-weight:600;color:var(--text-base);margin:0}.admin-email{font-size:.85rem;color:var(--text-muted)}.admin-back-link{color:var(--accent);text-decoration:none;font-size:.9rem;font-weight:500}.admin-back-link:hover{text-decoration:underline}.admin-error{background:#fee2e2;border:1px solid #ef4444;color:#b91c1c;padding:12px 16px;border-radius:8px;margin-bottom:20px;display:flex;justify-content:space-between;align-items:center}.admin-error button{background:transparent;border:none;color:#b91c1c;cursor:pointer;font-weight:500}.admin-tabs{display:flex;gap:8px;margin-bottom:24px;flex-wrap:wrap}.admin-tab{padding:10px 20px;border:1px solid var(--border);background:var(--bg-surface);border-radius:8px;cursor:pointer;font-size:.9rem;font-weight:500;color:var(--text-muted);transition:all .15s ease}.admin-tab:hover{border-color:var(--accent);color:var(--accent)}.admin-tab.active{background:var(--accent);border-color:var(--accent);color:#fff}.admin-content{background:var(--bg-surface);border-radius:12px;padding:24px;box-shadow:var(--shadow)}.admin-stats-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:20px;margin-bottom:32px}.admin-stat-card{background:var(--bg-surface-strong);border:1px solid var(--border);border-radius:10px;padding:24px;text-align:center}.admin-stat-value{font-size:2.5rem;font-weight:700;color:var(--accent);line-height:1;margin-bottom:8px}.admin-stat-label{font-size:.85rem;color:var(--text-muted);font-weight:500;text-transform:uppercase;letter-spacing:.5px}.admin-section{margin-top:24px}.admin-section h3{font-size:1rem;font-weight:600;color:var(--text-base);margin-bottom:16px}.admin-breakdown{display:flex;gap:24px;flex-wrap:wrap}.admin-breakdown-item{display:flex;align-items:center;gap:12px}.admin-breakdown-label{font-size:.9rem;color:var(--text-muted)}.admin-breakdown-value{font-size:1.25rem;font-weight:600;color:var(--text-base)}.growth-chart-section{margin-bottom:20px}.growth-chart-header{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;margin-bottom:12px}.growth-chart-header h3{margin:0;font-size:1rem;font-weight:600}.growth-chart-controls{display:flex;gap:12px;flex-wrap:wrap}.growth-toggle-group{display:flex;border:1px solid var(--border);border-radius:6px;overflow:hidden}.growth-toggle{padding:5px 12px;font-size:.75rem;font-weight:500;border:none;background:var(--bg-surface);color:var(--text-muted);cursor:pointer;transition:all .15s ease}.growth-toggle:not(:last-child){border-right:1px solid var(--border)}.growth-toggle.active{background:var(--accent);color:#fff}.growth-toggle:hover:not(.active){background:var(--bg-base)}.growth-chart-svg{width:100%;height:auto;background:var(--bg-surface);border:1px solid var(--border);border-radius:8px}.growth-chart-summary{display:flex;gap:6px;align-items:center;margin-top:8px;font-size:.8rem;color:var(--text-muted)}.growth-chart-summary strong{color:var(--text-base)}.growth-chart-sep{color:var(--border)}.growth-chart-empty{padding:40px 20px;text-align:center;color:var(--text-muted);font-size:.875rem;background:var(--bg-surface);border:1px solid var(--border);border-radius:8px}.admin-filters{display:flex;gap:16px;align-items:flex-end;margin-bottom:20px;flex-wrap:wrap}.admin-filters label{display:flex;flex-direction:column;gap:6px;font-size:.85rem;font-weight:500;color:var(--text-muted)}.admin-filters input,.admin-filters select{padding:8px 12px;border:1px solid var(--border);border-radius:6px;font-size:.9rem;min-width:200px}.admin-filter-btn{padding:8px 16px;background:var(--accent);color:#fff;border:none;border-radius:6px;cursor:pointer;font-weight:500;font-size:.9rem}.admin-filter-btn:hover{background:var(--accent-hover)}.admin-table-container{overflow-x:auto}.admin-table{width:100%;border-collapse:collapse;font-size:.9rem}.admin-table th{text-align:left;padding:12px 16px;background:var(--bg-surface-strong);border-bottom:2px solid var(--border);font-weight:600;color:var(--text-muted);font-size:.8rem;text-transform:uppercase;letter-spacing:.5px;white-space:nowrap}.admin-table td{padding:12px 16px;border-bottom:1px solid var(--border);color:var(--text-base)}.admin-table tr:hover{background:var(--bg-surface-strong)}.admin-cell-email{font-family:monospace;font-size:.85rem;color:var(--text-muted)}.admin-cell-invoice,.admin-cell-token{font-family:monospace;font-size:.85rem}.admin-badge{display:inline-block;padding:4px 10px;border-radius:4px;font-size:.75rem;font-weight:600;text-transform:uppercase;letter-spacing:.5px}.admin-badge.success{background:#d1fae5;color:#065f46}.admin-badge.error{background:#fee2e2;color:#b91c1c}.admin-badge.warning{background:#fef3c7;color:#92400e}.admin-badge.info{background:#dbeafe;color:#1e40af}.admin-badge.muted{background:#f3f4f6;color:#6b7280}.admin-action-link{color:var(--accent);text-decoration:none;font-weight:500;font-size:.85rem}.admin-action-link:hover{text-decoration:underline}@media(max-width:768px){.admin-page{padding:16px}.admin-header{flex-direction:column;align-items:flex-start;gap:12px}.admin-header-left{flex-direction:column;gap:4px}.admin-tabs{overflow-x:auto;flex-wrap:nowrap;padding-bottom:8px}.admin-tab{white-space:nowrap}.admin-stats-grid{grid-template-columns:repeat(2,1fr)}.admin-content{padding:16px}}.clerk-auth-card{max-width:480px}.clerk-sign-in-container{margin:24px 0}.clerk-sign-in-container .cl-rootBox{width:100%}.clerk-sign-in-container .cl-card{box-shadow:none;border:1px solid var(--border);border-radius:12px}.clerk-sign-in-container .cl-formButtonPrimary{background:var(--accent);font-weight:600;border-radius:8px;padding:12px 24px;transition:background .2s ease}.clerk-sign-in-container .cl-formButtonPrimary:hover{background:var(--accent-hover)}.clerk-sign-in-container .cl-footerActionLink{color:var(--accent)}.clerk-sign-in-container .cl-footerActionLink:hover{color:var(--accent-hover)}.clerk-sign-in-container .cl-headerTitle,.clerk-sign-in-container .cl-headerSubtitle{display:none}@media(max-width:768px){.setup-page{padding:16px;align-items:stretch;overflow:hidden;position:relative;width:100%;max-width:100vw}.clerk-auth-card{max-width:100%;width:100%;padding:24px 16px;box-sizing:border-box;border-radius:12px;margin:0 auto;word-break:break-word}.clerk-sign-in-container{margin:16px 0;overflow:hidden;max-width:100%;width:100%;min-width:0}.clerk-sign-in-container *,.clerk-sign-in-container *:before,.clerk-sign-in-container *:after{max-width:100%!important;box-sizing:border-box!important}.clerk-sign-in-container .cl-rootBox{max-width:100%!important;width:100%!important;overflow:hidden}.clerk-sign-in-container .cl-card{max-width:100%!important;width:100%!important;box-sizing:border-box;padding:16px!important;overflow:hidden}}.agency-kpi-card{background:var(--bg-surface);border:1px solid var(--border);border-radius:12px;padding:20px 24px;margin-bottom:24px}.agency-kpi-card-header{margin-bottom:16px}.agency-kpi-card-title{font-size:.8rem;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:var(--text-muted);margin:0}.agency-kpi-grid{grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:0}@media(max-width:900px){.agency-kpi-grid{grid-template-columns:repeat(2,1fr)}}.agency-table-section{background:var(--bg-surface);border:1px solid var(--border);border-radius:12px;overflow:hidden}.agency-table-header{display:flex;justify-content:space-between;align-items:center;padding:16px 20px;border-bottom:1px solid var(--border);background:var(--bg-surface-strong)}.agency-table-title{font-size:1rem;font-weight:600;color:var(--text-base);margin:0;display:flex;align-items:center;gap:8px}.agency-table-count{font-weight:400;color:var(--text-muted);font-size:.9rem}.agency-table-filters{display:flex;align-items:center;gap:8px}.agency-filter-select{height:36px;padding:0 32px 0 12px;border-radius:6px;border:1px solid var(--border);background:var(--bg-surface);font-family:inherit;font-size:.85rem;color:var(--text-base);cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M3 5l3 3 3-3'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 10px center}.agency-filter-select:focus{outline:none;border-color:var(--accent)}.agency-clear-filter{height:36px;padding:0 12px;border-radius:6px;border:1px solid var(--border);background:transparent;font-family:inherit;font-size:.8rem;color:var(--text-muted);cursor:pointer;transition:all .15s ease}.agency-clear-filter:hover{background:var(--bg-surface-strong);color:var(--text-base)}.agency-table-section .table-container{border:none;border-radius:0}.agency-table-section .empty-state-welcome{border:none;border-radius:0;margin:0}.secondary-action-button{padding:6px 12px;border-radius:6px;font-size:.8rem;font-weight:500;border:1px solid var(--border);background:var(--bg-surface);color:var(--text-muted);cursor:pointer;transition:all .15s ease;white-space:nowrap}.secondary-action-button:hover{background:var(--bg-surface-strong);color:var(--text-base);border-color:var(--text-muted)}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.extraction-highlight{animation:highlight-pulse 2s ease-out}@keyframes highlight-pulse{0%{background-color:#dbeafe}to{background-color:transparent}}@media(max-width:768px){.hide-on-mobile{display:none!important}}.hide-on-desktop{display:none!important}@media(max-width:768px){.hide-on-desktop{display:flex!important}}.sheet-secondary-actions{margin-bottom:16px}.more-actions-toggle{width:100%;padding:10px 16px;border:1px solid var(--border);border-radius:8px;background:var(--bg-surface-strong);color:var(--text-muted);font-size:.85rem;font-weight:500;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:6px;transition:all .15s ease;min-height:44px;margin-bottom:8px}.more-actions-toggle:hover{background:var(--border);color:var(--text-base)}.toggle-chevron{font-size:.7rem}.secondary-actions-list{display:flex;gap:8px;flex-wrap:wrap}@media(max-width:768px){.secondary-actions-list{display:none;flex-direction:column}.secondary-actions-list.mobile-visible{display:flex}.secondary-actions-list .quick-action-btn{width:100%;justify-content:center;min-height:44px}}@media(max-width:768px){.sidebar{display:none!important}.content{padding:16px;gap:12px;min-width:0;max-width:100vw;overflow-x:hidden}.dashboard-banners{order:10}.content-body{order:1}.content-header{flex-direction:row;align-items:center;justify-content:space-between;gap:12px;position:sticky;top:0;background:var(--bg-base);z-index:100;padding:4px 0 8px}.content-header .eyebrow,.content-header h1{display:none}.mobile-page-title{font-size:1.25rem;font-weight:700;color:var(--text-base);margin:0;line-height:1}.header-actions{width:auto;flex-wrap:nowrap;gap:8px}.user-chip{padding:0;border:none;background:none;gap:0}.user-chip:hover{background:none;border:none}.user-info,.user-chevron{display:none}.user-avatar{width:36px;height:36px;font-size:.85rem}.last-updated{display:none}}@media(max-width:480px){.kpi-header{grid-template-columns:1fr}}.agency-mobile-hamburger{position:relative}.agency-hamburger-btn{width:36px;height:36px;border:none;border-radius:8px;background:var(--bg-surface);color:var(--text-base);font-size:1.2rem;cursor:pointer;display:flex;align-items:center;justify-content:center;-webkit-tap-highlight-color:transparent;transition:background .15s ease}.agency-hamburger-btn:active{background:var(--bg-surface-strong)}.agency-mobile-menu{position:absolute;top:calc(100% + 6px);left:0;background:var(--bg-surface);border:1px solid var(--border);border-radius:10px;box-shadow:0 8px 24px #0000001f;min-width:200px;padding:6px;z-index:200;animation:agency-menu-in .12s ease-out}@keyframes agency-menu-in{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}.agency-mobile-menu button{width:100%;padding:12px 14px;border:none;border-radius:8px;background:transparent;color:var(--text-muted);font-size:.9rem;font-weight:500;cursor:pointer;text-align:left;display:flex;align-items:center;justify-content:space-between;gap:8px;-webkit-tap-highlight-color:transparent;transition:background .12s ease}.agency-mobile-menu button:active{background:var(--bg-surface-strong)}.agency-mobile-menu button.active{color:var(--accent);font-weight:600;background:var(--accent-muted)}.agency-menu-badge{background:#ef4444;color:#fff;border-radius:8px;padding:1px 7px;font-size:.7rem;font-weight:700;line-height:18px;min-width:18px;text-align:center}.agency-menu-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:199}.receivable-card-actions{display:flex;gap:8px;margin-top:10px;padding-top:10px;border-top:1px solid var(--border)}.receivable-card-actions .quick-action-btn{flex:1;justify-content:center;min-height:40px}.mobile-fab{position:fixed;bottom:24px;right:16px;bottom:calc(24px + env(safe-area-inset-bottom,0px));display:flex;align-items:center;gap:8px;padding:14px 22px;background:linear-gradient(135deg,var(--accent) 0%,var(--accent-hover) 100%);color:#fff;border:none;border-radius:999px;font-size:.9rem;font-weight:600;cursor:pointer;box-shadow:0 4px 16px #22c55e66;z-index:90;-webkit-tap-highlight-color:transparent;transition:transform .15s ease,box-shadow .15s ease}.mobile-fab:active{transform:scale(.96);box-shadow:0 2px 8px #22c55e4d}.mobile-fab-icon{font-size:1.2rem;line-height:1;font-weight:700}.mobile-fab-label{white-space:nowrap}.mobile-actions-bar{display:flex;gap:8px;margin-bottom:8px}.mobile-actions-bar .mobile-filter-toggle{flex:1;justify-content:center}.mobile-filter-toggle{padding:10px 16px;border:1px solid var(--border);border-radius:10px;background:var(--bg-surface);color:var(--text-muted);font-size:.85rem;font-weight:500;cursor:pointer;display:flex;align-items:center;gap:6px;min-height:44px;white-space:nowrap;transition:all .15s ease}.mobile-filter-toggle:hover{background:var(--bg-surface-strong);color:var(--text-base)}.filter-dot{width:6px;height:6px;border-radius:50%;background:var(--accent);flex-shrink:0}@media(max-width:768px){.filters-row-wrapper,.active-filters{display:none!important}.filters-row{display:none;flex-direction:column;gap:8px}.filters-row.mobile-visible{display:flex}.filter-field{width:100%}.filter-field input,.filter-field select,.filters-row select{width:100%;min-width:unset}.filter-select{min-width:unset;width:100%}}.kpi-mobile-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:10px}.kpi-mobile-card{background:var(--bg-surface);border:1px solid var(--border);border-radius:10px;padding:12px 14px;display:flex;flex-direction:column;gap:2px}.kpi-mobile-card-label{font-size:.7rem;font-weight:400;text-transform:uppercase;letter-spacing:.05em;color:var(--text-muted)}.kpi-mobile-card-value{font-size:1.1rem;font-weight:600;color:var(--text-base);line-height:1.3}.kpi-mobile-card--warning .kpi-mobile-card-value{color:#d97706}.kpi-mobile-card--success .kpi-mobile-card-value{color:#059669}.kpi-mobile-card--muted .kpi-mobile-card-value{color:var(--text-muted)}@media(max-width:768px){.invoice-status-tabs{gap:0}.invoice-status-tab{flex:1;justify-content:center;padding:10px 8px;min-height:44px;font-size:.82rem}.invoice-status-tab.active{background:var(--accent-muted);border-bottom-width:3px}.invoice-status-tab-label-full{display:none}.invoice-status-tab-label-short{display:inline}}@media(min-width:769px){.invoice-status-tab-label-short{display:none}.invoice-status-tab-label-full{display:inline}}.invoice-card-list{display:flex;flex-direction:column;gap:8px;padding-bottom:80px}.invoice-card{background:var(--bg-surface);border:1px solid var(--border);border-radius:12px;padding:14px 16px;cursor:pointer;transition:background .15s ease;-webkit-tap-highlight-color:transparent}.invoice-card:active{background:var(--bg-surface-strong)}.invoice-card-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px}.invoice-card-number{font-size:.8rem;font-weight:600;color:var(--text-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:60%}.invoice-card-middle{display:flex;flex-direction:column;gap:2px;margin-bottom:8px}.invoice-card-client{font-weight:600;font-size:.95rem;color:var(--text-base);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.invoice-card-email{font-size:.8rem;color:var(--text-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.invoice-card-bottom{display:flex;justify-content:space-between;align-items:center}.invoice-card-date{font-size:.8rem;color:var(--text-muted)}.invoice-card-amount{font-size:1rem;font-weight:700;color:var(--text-base)}.mobile-status-inline{display:none}@media(max-width:768px){.mobile-status-inline{display:inline}.mobile-status-inline .status-badge{font-size:.6rem;padding:2px 6px;vertical-align:middle}}@media(max-width:768px){.table-container{overflow-x:auto;-webkit-overflow-scrolling:touch}table th,table td{padding:8px 10px}.invoice-cell{min-width:100px}.client-cell{min-width:90px;max-width:140px}.client-email-secondary{max-width:120px}.amount-col,.amount-cell{min-width:60px}.due-col,.due-cell{min-width:50px}.activity-cell{min-width:80px}}@media(max-width:768px){.sheet-header{padding:12px var(--m-page-pad);border-bottom:none}.sheet-header h2{font-size:var(--m-font-page-title)}.sheet-content{padding:var(--m-page-pad)}.invoice-header-card{padding:var(--m-card-pad);border-radius:var(--m-card-radius);margin-bottom:var(--m-section-gap)}.invoice-header-top{flex-wrap:wrap;gap:6px}.invoice-number-large{font-size:var(--m-font-body)}.invoice-client-line{font-size:var(--m-font-small);gap:2px}.invoice-amount-line{flex-wrap:wrap;gap:4px}.amount-large{font-size:1.3rem}.details-section{margin-bottom:var(--m-section-gap)}.details-section h3{font-size:var(--m-font-section-title);margin-bottom:10px}.details-grid{grid-template-columns:1fr;gap:10px}.sheet-quick-actions{flex-direction:column;gap:8px}.sheet-quick-actions .quick-action-btn{width:100%;justify-content:center;min-height:44px}.sheet-quick-actions .quick-action-btn.outline{background:none;border:none;color:var(--accent);font-weight:600;padding:10px 0;box-shadow:none;min-height:36px;font-size:var(--m-font-small)}.invoice-timeline{gap:6px}.timeline-item{padding:6px 0;font-size:var(--m-font-small)}.timeline-date{min-width:50px;font-size:var(--m-font-label)}.collapsible-header{padding:10px 0;font-size:var(--m-font-section-title)}}@media(max-width:768px){.instant-pay-section{padding:var(--m-card-pad);background:var(--premium-bg);border:1px solid var(--premium-border);border-radius:var(--m-card-radius);margin-bottom:var(--m-section-gap)}.instant-pay-section h3{font-size:var(--m-font-section-title);margin-bottom:8px}.instant-pay-intro{font-size:var(--m-font-small);line-height:1.4;color:var(--text-muted);margin-bottom:12px}.instant-pay-offer-card{padding:var(--m-card-pad);border-radius:10px}.offer-badge{font-size:var(--m-font-small)}.offer-intro{font-size:var(--m-font-small);margin:6px 0 10px}.offer-breakdown{font-size:var(--m-font-body)}.offer-line{flex-wrap:wrap;gap:4px;padding:6px 0}.offer-note{font-size:var(--m-font-small);color:var(--text-muted);margin-top:8px}.instant-pay-status-card{padding:var(--m-card-pad);border-radius:10px}.status-notes{font-size:var(--m-font-small);line-height:1.4}.instant-pay-form input,.instant-pay-form textarea,.instant-pay-form select{font-size:16px}.instant-pay-form .form-intro{font-size:var(--m-font-small);color:var(--text-muted);margin-bottom:12px}.instant-pay-form .form-group{margin-bottom:12px}.instant-pay-form .form-group label{font-size:var(--m-font-label);font-weight:600;text-transform:uppercase;letter-spacing:.03em;color:var(--text-muted)}.instant-pay-form .file-input{max-width:100%}.submit-btn{width:100%;min-height:44px}.instant-pay-prompt .quick-action-btn{min-height:44px}.instant-pay-prompt p{font-size:var(--m-font-body);margin-bottom:10px}.instant-pay-tip{font-size:var(--m-font-small);padding:10px 12px;border-radius:8px}.instant-pay-tip .tip-content p{font-size:var(--m-font-small);line-height:1.3;margin-top:2px}}@media(max-width:768px){.profile-modal{max-width:100vw;width:100vw;height:100vh;max-height:100vh;border-radius:0}.profile-modal-header{padding:12px var(--m-page-pad);border-bottom:1px solid var(--border)}.profile-modal-header h2{font-size:var(--m-font-page-title)}.profile-form-content{padding:var(--m-page-pad)}.profile-modal input,.profile-modal textarea,.profile-modal select{font-size:16px}.profile-sections{gap:var(--m-section-gap)}.profile-section{padding:12px 0;border-bottom-color:var(--bg-surface-strong)}.profile-section h3{font-size:var(--m-font-section-title);font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:var(--text-muted);margin-bottom:10px}.profile-field{margin-bottom:10px;gap:2px}.profile-field label{font-size:var(--m-font-label)}.profile-field span{font-size:var(--m-font-body)}.profile-field-row{flex-direction:column;gap:10px}.profile-primary{gap:12px;padding-bottom:12px}.profile-avatar-large{width:44px;height:44px;font-size:1.1rem}.profile-name{font-size:1rem}.profile-email{font-size:var(--m-font-small)}.profile-form-section{margin-bottom:var(--m-section-gap);padding-bottom:var(--m-section-gap);border-bottom:1px solid var(--bg-surface-strong)}.profile-form-section:last-of-type{border-bottom:none}.profile-form-section h3{font-size:var(--m-font-section-title);font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:var(--text-muted);margin-bottom:10px}.profile-form-field{margin-bottom:12px}.profile-form-field label{font-size:var(--m-font-small);margin-bottom:4px}.profile-form-field input,.profile-form-field textarea{padding:10px 12px}.profile-field-note,.field-helper{font-size:var(--m-font-label);line-height:1.3;margin-top:3px}.profile-form-actions{position:sticky;bottom:0;background:var(--bg-surface);padding:12px var(--m-page-pad);margin:0 calc(-1 * var(--m-page-pad));border-top:1px solid var(--border);display:flex;gap:8px;z-index:10}.profile-form-actions .modal-button.cancel{flex:0;background:none;border:none;color:var(--text-muted);font-weight:500;padding:10px 16px;min-height:44px;white-space:nowrap}.profile-form-actions .modal-button.confirm{flex:1;min-height:44px}}@media(max-width:768px){.create-invoice-overlay{padding:0}.create-invoice-form input,.create-invoice-form textarea,.create-invoice-form select{font-size:16px}.create-invoice-modal .modal-actions{flex-direction:column;gap:8px}.create-invoice-modal .modal-actions .modal-button{width:100%;min-height:44px}}@media(max-width:768px){.modal-content{width:92vw;max-width:92vw}.modal-actions{flex-direction:column;gap:8px}.modal-button{width:100%;min-height:44px;justify-content:center}}@media(max-width:768px){.toast-notification{top:12px;left:12px;right:12px;min-width:unset;max-width:unset}}@media(max-width:768px){.setup-card.wide{padding:24px 16px}.file-drop-zone{min-height:100px;padding:16px}.intake-form input,.intake-form textarea,.intake-form select{font-size:16px}}@media(max-width:768px){.setup-page input,.setup-page textarea,.setup-page select{font-size:16px}.setup-success{text-align:center}.setup-success .success-icon{font-size:2rem;margin-bottom:8px}.setup-success h2{font-size:var(--m-font-page-title);margin-bottom:8px}.setup-success p{font-size:var(--m-font-body);margin-bottom:8px}.setup-actions{gap:8px;margin-top:12px}.setup-actions .setup-button{width:100%}.setup-secondary-link{font-size:var(--m-font-small);margin-top:8px}.how-to-section{margin-top:var(--m-section-gap);padding-top:var(--m-section-gap)}.how-to-section h3{font-size:var(--m-font-section-title);font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:var(--text-muted)}.how-to-section p{font-size:var(--m-font-small);line-height:1.4}.try-it-steps{gap:8px;margin-top:12px}.step-item{gap:10px;font-size:var(--m-font-body)}.step-number{width:22px;height:22px;font-size:var(--m-font-label)}.spam-notice{font-size:var(--m-font-small);padding:10px 12px;margin-top:12px;line-height:1.4}}@media(max-width:768px){input,select,textarea{font-size:max(16px,inherit)}button,.sidebar-link,.quick-action-btn,.link-button,.action-button,.modal-button,.setup-button,.setup-button-secondary{min-height:44px}html,body{overflow-x:hidden}.account-banner{margin:0 0 12px;padding:14px;overflow:hidden;box-sizing:border-box;max-width:100%}.banner-content{flex-direction:column;align-items:flex-start;gap:10px}.banner-icon{font-size:24px}.banner-text h3{font-size:15px}.banner-text p{font-size:13px}.banner-button{min-height:44px;width:100%;text-align:center}.collapsible-header{min-height:44px}.empty-state-welcome,.empty-state-filters{padding:24px 16px}.welcome-cta{width:100%;min-height:44px}}:root{font-family:Geist Sans,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background-color:#f5f6fb}*{box-sizing:border-box;margin:0;padding:0}body{min-height:100vh;background-color:#f5f6fb;color:#111827}#root{min-height:100vh}@media(max-width:768px){html{overflow:hidden;position:relative;height:100%}body{overflow-x:hidden;overflow-y:scroll;position:relative;width:100%;height:100%}}
