:root,[data-theme=gold]{--bg:#10100e;--surface:#171613;--surface-2:#201e19;--border:#343027;--hover:#29261f;--shadow:0 20px 48px #0000003d;--bg-pattern:#ffffff04;--text-h:#f5f0e6;--text-secondary:#b5ad9f;--text-tertiary:#756e62;--accent:#d5b16c;--accent-hover:#e4c583;--accent-contrast:#17130d;--accent-bg:#d5b16c1f;--accent-border:#d5b16c4d;--accent-ring:#d5b16c2e;--accent-shadow:#d5b16c33;--gold:#d5b16c;--gold-light:#ecd198;--gold-glow:#d5b16c1f;--green:#2ecc71;--green-bg:#2ecc711a;--green-border:#2ecc7140;--green-glow:#2ecc7166;--red:#e74c3c;--red-bg:#e74c3c1a;--red-border:#e74c3c40;--link:#6ab0f3;--font:"Avenir Next", "Helvetica Neue", system-ui, sans-serif;--font-display:"Iowan Old Style", "Palatino Linotype", Georgia, serif}[data-theme=light]{--bg:#f6f4ef;--surface:#fff;--surface-2:#f0ede6;--border:#e7e2d7;--hover:#efebe2;--shadow:0 16px 40px #28221617;--bg-pattern:#3c321e03;--text-h:#1b1a16;--text-secondary:#5c564b;--text-tertiary:#8a8272;--accent:#3358d4;--accent-hover:#2946b8;--accent-contrast:#fff;--accent-bg:#3358d414;--accent-border:#3358d447;--accent-ring:#3358d42e;--accent-shadow:#3358d42e;--gold:#c08a3e;--gold-light:#d2a85e;--gold-glow:#c08a3e1f;--green:#2e9e6b;--green-bg:#2e9e6b1a;--green-border:#2e9e6b38;--green-glow:#2e9e6b52;--red:#cf5b48;--red-bg:#cf5b4817;--red-border:#cf5b4838;--link:#3358d4}[data-theme=ocean]{--bg:#f2f6f8;--surface:#fff;--surface-2:#f6fafb;--border:#dde6ea;--hover:#ecf3f5;--shadow:0 14px 36px #0f3c4b12;--bg-pattern:#0e749003;--text-h:#12262e;--text-secondary:#4e646e;--text-tertiary:#8299a3;--accent:#0e94ab;--accent-hover:#0b7d91;--accent-contrast:#fff;--accent-bg:#0e94ab17;--accent-border:#0e94ab42;--accent-ring:#0e94ab29;--accent-shadow:#0e94ab2e;--gold:#0e94ab;--gold-light:#29b3ca;--gold-glow:#0e94ab14;--green:#16a34a;--green-bg:#16a34a14;--green-border:#16a34a33;--green-glow:#16a34a4d;--red:#dc2626;--red-bg:#dc262612;--red-border:#dc262633;--link:#1d4ed8;--font-display:"Avenir Next", "Helvetica Neue", system-ui, sans-serif}[data-theme=ocean-dark]{--bg:#15130e;--surface:#1e1b14;--surface-2:#262218;--border:#322c22;--hover:#2a2519;--shadow:0 20px 48px #00000080;--bg-pattern:#ffffff03;--text-h:#f1ece1;--text-secondary:#b3ab9b;--text-tertiary:#8c8474;--accent:#6b8bf5;--accent-hover:#86a0f8;--accent-contrast:#0c1020;--accent-bg:#6b8bf524;--accent-border:#6b8bf552;--accent-ring:#6b8bf533;--accent-shadow:#6b8bf538;--gold:#d2a85e;--gold-light:#e4c07a;--gold-glow:#d2a85e24;--green:#4fbe88;--green-bg:#4fbe881f;--green-border:#4fbe8842;--green-glow:#4fbe8857;--red:#e27a67;--red-bg:#e27a671f;--red-border:#e27a6742;--link:#6b8bf5}:root{font-family:var(--font);color:var(--text-h);background:var(--bg);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;--ease-smooth:cubic-bezier(.22, 1, .36, 1);font-size:16px;line-height:1.5}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.001ms!important;animation-duration:.001ms!important;animation-iteration-count:1!important}}*,:before,:after{box-sizing:border-box}html{background-color:var(--bg);height:100dvh}body{overscroll-behavior:none;background-color:var(--bg);background-image:repeating-linear-gradient(135deg, var(--bg-pattern) 0 1px, transparent 1px 7px);height:100dvh;color:var(--text-h);margin:0;overflow:hidden}#root{height:100%;overflow:hidden auto}::-webkit-scrollbar{width:6px}::-webkit-scrollbar-track{background:0 0}::-webkit-scrollbar-thumb{background:var(--border);border-radius:3px}::selection{background:var(--accent-bg);color:var(--accent)}.app{background:var(--bg);min-height:100svh;padding-top:env(safe-area-inset-top,0);flex-direction:column;display:flex}.content{padding-bottom:env(safe-area-inset-bottom,0);flex:1;overflow-y:auto}.top-nav{background:var(--surface);border-bottom:1px solid var(--border);-webkit-backdrop-filter:blur(20px);z-index:100;align-items:center;gap:32px;height:64px;padding:0 32px;display:flex;position:sticky;top:0}.top-nav-brand{flex-shrink:0;align-items:center;gap:10px;display:flex}.brand-icon{width:26px;height:26px;color:var(--accent)}.brand-icon svg{width:100%;height:100%}.brand-text{color:var(--text-h);letter-spacing:-.3px;font-size:17px;font-weight:700}.top-nav-tabs{gap:4px;display:flex}.top-nav-tab{color:var(--text-secondary);cursor:pointer;background:0 0;border:none;border-radius:10px;align-items:center;gap:7px;padding:8px 16px;font-family:inherit;font-size:14px;font-weight:500;transition:all .2s;display:flex}.top-nav-tab:hover{background:var(--hover);color:var(--text-h)}.top-nav-tab.active{background:var(--accent-bg);color:var(--accent)}.top-nav-tab-icon{width:18px;height:18px}.top-nav-tab-icon svg{width:100%;height:100%}.bottom-nav{background:var(--bg);border-top:1px solid var(--border);padding:6px 0 calc(6px + env(safe-area-inset-bottom,0));z-index:100;display:none;position:fixed;bottom:0;left:0;right:0}.bottom-nav-tab{color:var(--text-tertiary);cursor:pointer;transition:color .2s var(--ease-smooth), transform .15s var(--ease-smooth);-webkit-tap-highlight-color:transparent;background:0 0;border:none;flex-direction:column;flex:1;justify-content:center;align-items:center;gap:3px;padding:8px 4px;font-family:inherit;display:flex}.bottom-nav-tab.active{color:var(--accent)}.bottom-nav-tab:active{transform:scale(.92)}.bottom-nav-icon{width:24px;height:24px}.bottom-nav-icon svg{width:100%;height:100%}.bottom-nav-label{letter-spacing:.2px;font-size:10px;font-weight:600}.page{box-sizing:border-box;width:100%;max-width:860px;margin:0 auto;padding:32px 24px 40px}.page-title{color:var(--text-h);letter-spacing:-.5px;margin:0;font-size:28px;font-weight:800}.page-subtitle{color:var(--text-secondary);margin:0 0 28px;font-size:15px}.page-header-row{flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:16px 20px;margin-bottom:22px;display:flex}.section-header{justify-content:space-between;align-items:center;margin:28px 0 12px;display:flex}.section-header h2{color:var(--text-h);margin:0;font-size:18px;font-weight:700}.stats-grid{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px;margin-bottom:8px;display:grid}.stat-card{background:var(--surface);border:1px solid var(--border);border-radius:16px;flex-direction:column;gap:6px;padding:22px 20px;transition:transform .15s,box-shadow .15s;display:flex}.stat-card:hover{box-shadow:var(--shadow);transform:translateY(-2px)}.stat-number{color:var(--text-h);letter-spacing:-.5px;font-size:28px;font-weight:800}.stat-label{color:var(--text-secondary);font-size:13px;font-weight:500}.stat-success .stat-number{color:var(--green)}.stat-error .stat-number{color:var(--red)}.stat-success{border-color:var(--green-border);background:var(--green-bg)}.stat-error{border-color:var(--red-border);background:var(--red-bg)}.invoice-list{flex-direction:column;gap:8px;display:flex}.invoice-item{background:var(--surface);border:1px solid var(--border);border-radius:12px;align-items:center;gap:15px;padding:18px 20px;transition:border-color .15s,box-shadow .15s,background .15s;display:flex}.invoice-item:hover{border-color:var(--accent-border);box-shadow:var(--shadow)}.invoice-status-icon{background:var(--surface-2);width:38px;height:38px;color:var(--text-tertiary);border:1px solid var(--border);border-radius:10px;flex-shrink:0;justify-content:center;align-items:center;display:flex}.invoice-status-icon svg{width:17px;height:17px}.invoice-item.success .invoice-status-icon{color:var(--green)}.invoice-item.inline .invoice-status-icon{color:var(--accent)}.invoice-item.error .invoice-status-icon{color:var(--text-tertiary)}.invoice-info{flex-direction:column;flex:1;gap:3px;min-width:0;display:flex}.invoice-sender{color:var(--text-h);white-space:nowrap;text-overflow:ellipsis;align-items:center;gap:8px;font-size:16px;font-weight:650;display:flex;overflow:hidden}.invoice-sender-email{color:var(--text-tertiary);white-space:nowrap;text-overflow:ellipsis;font-size:13.5px;overflow:hidden}.invoice-subject{color:var(--text-secondary);white-space:nowrap;text-overflow:ellipsis;font-size:13px;overflow:hidden}.invoice-meta{text-align:right;flex-direction:column;flex-shrink:0;align-items:flex-end;gap:3px;display:flex}.invoice-amount{color:var(--text-h);letter-spacing:-.2px;font-variant-numeric:tabular-nums;font-size:15.5px;font-weight:700}.invoice-amount-block{flex-direction:column;align-items:flex-end;gap:1px;display:flex}.invoice-amount-eur{color:var(--accent);font-size:12px;font-weight:600}.invoice-amount-note{color:var(--text-tertiary);font-weight:500}.invoice-date{color:var(--text-tertiary);font-variant-numeric:tabular-nums;font-size:11.5px}.invoice-actions{opacity:.55;flex-shrink:0;align-items:center;gap:4px;transition:opacity .15s;display:flex}.invoice-item:hover .invoice-actions,.invoice-actions:focus-within{opacity:1}@media (hover:none){.invoice-actions{opacity:1}}.btn{letter-spacing:.1px;cursor:pointer;min-height:40px;transition:background .15s var(--ease-smooth), border-color .15s var(--ease-smooth), color .15s var(--ease-smooth), box-shadow .15s var(--ease-smooth), transform .1s var(--ease-smooth);white-space:nowrap;border:1px solid #0000;border-radius:10px;justify-content:center;align-items:center;gap:8px;padding:0 18px;font-family:inherit;font-size:13.5px;font-weight:600;display:inline-flex}.btn:active:not(:disabled){transform:translateY(1px)}.btn:focus-visible{box-shadow:0 0 0 3px var(--accent-ring);outline:none}.btn:disabled{opacity:.55;cursor:not-allowed}.btn-primary{background:var(--accent);border-color:var(--accent);color:var(--accent-contrast)}.btn-primary:hover:not(:disabled){background:var(--accent-hover);border-color:var(--accent-hover)}.btn-secondary{background:var(--surface);border-color:var(--border);color:var(--text-h)}.btn-secondary:hover:not(:disabled){border-color:var(--accent-border);background:var(--surface-2)}.btn-danger{background:var(--red-bg);border-color:var(--red-border);color:var(--red)}.btn-danger:hover:not(:disabled){background:var(--red);border-color:var(--red);color:#fff}.btn-icon{width:16px;height:16px}.btn-icon svg{width:100%;height:100%}.icon-btn{border:1px solid var(--border);background:var(--surface);width:36px;height:36px;color:var(--text-secondary);cursor:pointer;transition:background .15s var(--ease-smooth), border-color .15s var(--ease-smooth), color .15s var(--ease-smooth), transform .1s var(--ease-smooth);border-radius:10px;flex-shrink:0;justify-content:center;align-items:center;text-decoration:none;display:flex}.icon-btn svg{width:18px;height:18px}.icon-btn:hover{background:var(--hover);color:var(--text-h)}.icon-btn:active:not(:disabled){transform:translateY(1px)}.icon-btn.danger:hover{background:var(--red-bg);color:var(--red);border-color:var(--red-border)}.icon-btn.retry:hover{background:var(--accent-bg);color:var(--accent)}.add-card{background:var(--surface);border:1px solid var(--accent-border);border-radius:16px;margin-bottom:24px;padding:24px}.add-card h3{color:var(--text-h);margin:0 0 20px;font-size:17px;font-weight:700}.form-group{margin-bottom:16px}.form-group label{color:var(--text-secondary);margin-bottom:6px;font-size:13px;font-weight:600;display:block}.input{border:1px solid var(--border);background:var(--bg);width:100%;color:var(--text-h);transition:border-color .2s var(--ease-smooth), box-shadow .2s var(--ease-smooth);box-sizing:border-box;border-radius:10px;padding:11px 14px;font-family:inherit;font-size:14px}.input:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-ring);outline:none}.input-sm{width:auto;min-width:160px;padding:8px 12px;font-size:13px}.date-field{width:100%;position:relative}.date-field-input{width:100%}.date-field-empty .date-field-input{color:#0000}.date-field-empty .date-field-input::-webkit-datetime-edit{color:#0000}.date-field-placeholder{color:var(--text-tertiary);cursor:pointer;pointer-events:auto;align-items:center;padding:0 14px;font-size:14px;display:flex;position:absolute;inset:0}.date-field .input-sm~.date-field-placeholder,.date-field-input.input-sm+.date-field-placeholder{padding:0 12px;font-size:13px}.form-actions{gap:10px;margin-top:20px;display:flex}.mail-list{flex-direction:column;gap:10px;display:flex}.mail-card{background:var(--surface);border:1px solid var(--border);border-radius:14px;justify-content:space-between;align-items:center;padding:18px 20px;transition:transform .15s,box-shadow .15s;display:flex}.mail-card:hover{box-shadow:var(--shadow);transform:translateY(-1px)}.mail-card-header{align-items:center;gap:14px;min-width:0;display:flex}.mail-status-dot{background:var(--text-tertiary);border-radius:50%;flex-shrink:0;width:10px;height:10px}.mail-status-dot.connected{background:var(--green);box-shadow:0 0 8px var(--green-glow)}.mail-card-info{flex-direction:column;gap:2px;min-width:0;display:flex}.mail-email{color:var(--text-h);text-overflow:ellipsis;white-space:nowrap;max-width:100%;font-size:15px;font-weight:600;overflow:hidden}.mail-provider{color:var(--text-secondary);font-size:13px}.mail-card-actions{gap:8px;display:flex}.settings-card{background:var(--surface);border:1px solid var(--border);border-radius:16px;overflow:hidden}.setting-row{justify-content:space-between;align-items:center;gap:20px;padding:20px 22px;display:flex}.setting-row+.setting-row{border-top:1px solid var(--border)}.setting-info{flex-direction:column;flex:1;gap:3px;min-width:0;display:flex}.setting-title{color:var(--text-h);font-size:15px;font-weight:600}.setting-desc{color:var(--text-secondary);font-size:13px}.account-card{margin-bottom:20px}.account-form-row{grid-template-columns:1fr 1fr;gap:14px;padding:4px 22px 20px;display:grid}.account-field{flex-direction:column;gap:6px;min-width:0;display:flex}.account-field label{color:var(--text-secondary);font-size:12.5px;font-weight:600}.account-save-row{justify-content:flex-end;gap:8px;padding:0 22px 20px;display:flex}.account-email-field{border-top:1px solid var(--border);padding:20px 22px}.account-email-row{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.account-email-current{min-width:0;color:var(--text-h);text-overflow:ellipsis;white-space:nowrap;flex:1;font-size:14.5px;overflow:hidden}.account-email-row .input{flex:1;min-width:200px}.account-email-code{flex-direction:column;gap:14px;display:flex}@media (width<=520px){.account-form-row{grid-template-columns:1fr}}.toggle{background:var(--border);cursor:pointer;border:none;border-radius:14px;flex-shrink:0;width:48px;height:28px;padding:0;transition:background .25s;position:relative}.toggle-knob{background:#fff;border-radius:50%;width:22px;height:22px;transition:transform .25s;position:absolute;top:3px;left:3px;box-shadow:0 1px 3px #0003}.toggle.active .toggle-knob{transform:translate(20px)}.tag-list{flex-wrap:wrap;gap:6px;display:flex}.tag{background:var(--accent-bg);color:var(--accent);border-radius:8px;padding:5px 12px;font-size:12px;font-weight:600;display:inline-block}.auto-log{flex-direction:column;gap:8px;display:flex}.log-item{background:var(--surface);border:1px solid var(--border);border-radius:12px;align-items:center;gap:12px;padding:14px 18px;display:flex}.log-item.success{border-left:3px solid var(--green)}.log-item.error{border-left:3px solid var(--red)}.log-icon{border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:28px;height:28px;display:flex}.log-icon svg{width:14px;height:14px}.log-item.success .log-icon{background:var(--green-bg);color:var(--green)}.log-item.error .log-icon{background:var(--red-bg);color:var(--red)}.log-text{color:var(--text-h);flex:1;font-size:14px;font-weight:500}.log-time{color:var(--text-tertiary);flex-shrink:0;font-size:12px}@media (width<=768px){.top-nav{display:none}.bottom-nav{display:flex}.content{padding-bottom:calc(72px + env(safe-area-inset-bottom,0))}.page{padding:20px 16px 32px}.page-header-row{flex-direction:column}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.stat-card{padding:16px}.stat-number{font-size:22px}.invoice-item{gap:10px;padding:14px}.invoice-meta{display:none}.setting-row{flex-direction:column;align-items:flex-start;gap:12px;padding:16px}.tag-list{margin-top:4px}.input-sm{width:100%}.mail-card{flex-direction:column;align-items:stretch;gap:14px;padding:16px}.mail-card-header{width:100%}.mail-card-actions{align-self:stretch;width:100%}.mail-card-actions .btn-sm{flex:1}.log-time{display:none}}@media (width>=769px) and (width<=1024px){.bottom-nav{display:none}.top-nav{display:flex}.page{padding:28px 20px 36px}}.auth-page{background:var(--bg);justify-content:center;align-items:center;min-height:100svh;padding:20px;display:flex}.auth-card{background:var(--surface);border:1px solid var(--border);width:100%;max-width:420px;box-shadow:var(--shadow);border-radius:20px;padding:40px 36px}.auth-header{text-align:center;margin-bottom:28px}.auth-logo{width:48px;height:48px;color:var(--accent);display:inline-flex}.auth-logo svg{width:100%;height:100%}.auth-header h1{color:var(--text-h);letter-spacing:-.5px;margin:16px 0 6px;font-size:24px;font-weight:800}.auth-header p{color:var(--text-secondary);margin:0;font-size:14px}.auth-switch{text-align:center;color:var(--text-secondary);margin-top:20px;font-size:14px}.link-btn{color:var(--accent);cursor:pointer;font-weight:600;font-size:inherit;background:0 0;border:none;padding:0;font-family:inherit}.link-btn:hover{text-decoration:underline}.btn-full{justify-content:center;width:100%;margin-top:8px;padding:13px 20px;font-size:15px}.alert{border-radius:10px;margin-bottom:16px;padding:12px 16px;font-size:14px;font-weight:500}.alert-error{background:var(--red-bg);color:var(--red);border:1px solid var(--red-border)}.top-nav-user{color:var(--text-secondary);align-items:center;gap:8px;margin-left:auto;font-size:14px;font-weight:500;display:flex}.user-icon{width:20px;height:20px}.user-icon svg{width:100%;height:100%}.user-name{color:var(--text-h)}.empty-state{text-align:center;color:var(--text-secondary);padding:48px 20px}.empty-icon{width:48px;height:48px;color:var(--text-tertiary);margin-bottom:12px;display:inline-flex}.empty-icon svg{width:100%;height:100%}.empty-state h3{color:var(--text-h);margin:0 0 8px;font-size:18px;font-weight:700}.empty-state p{max-width:340px;margin:0 auto;font-size:14px;line-height:1.5}.info-card h3{color:var(--text-h);margin:0 0 16px;font-size:17px;font-weight:700}.how-it-works{color:var(--text-secondary);flex-direction:column;gap:12px;margin:0;padding-left:20px;font-size:14px;line-height:1.5;display:flex}.how-it-works strong{color:var(--text-h)}.security-hints{color:var(--text-secondary);flex-direction:column;gap:10px;margin:0;padding-left:20px;font-size:14px;line-height:1.5;display:flex}.security-hints a{color:var(--accent);text-decoration:none}.security-hints a:hover{text-decoration:underline}.btn-sm{border-radius:10px;padding:8px 14px;font-size:13px}.invoice-attachment{color:var(--text-tertiary);font-size:12px}.invoice-toolbar{flex-wrap:wrap;gap:10px;margin-bottom:14px;display:flex}.search-input-wrapper{flex:1;min-width:220px;position:relative}.search-input-icon{width:16px;height:16px;color:var(--text-tertiary);pointer-events:none;position:absolute;top:50%;left:12px;transform:translateY(-50%)}.search-input{width:100%;padding-left:36px!important}.category-select{cursor:pointer;max-width:200px}.filter-tabs{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:16px;display:grid}.filter-tab{border:1.5px solid var(--border);background:var(--surface);color:var(--text-secondary);cursor:pointer;transition:all .2s var(--ease-smooth);white-space:nowrap;border-radius:20px;justify-content:center;align-items:center;gap:6px;padding:8px 16px;font-family:inherit;font-size:14px;font-weight:500;display:flex}.filter-tab:hover{border-color:var(--accent);color:var(--accent)}.filter-tab:active{transform:translateY(1px)}.filter-tab.active{background:var(--accent);border-color:var(--accent);color:#fff}.filter-tab-count{text-align:center;background:#ffffff40;border-radius:10px;min-width:20px;padding:1px 7px;font-size:12px;font-weight:700}.filter-tab:not(.active) .filter-tab-count{background:var(--hover);color:var(--text-tertiary)}.amount-summary{background:var(--green-bg);border:1px solid var(--green-border,#b0e6c0);color:var(--green);border-radius:12px;align-items:center;gap:6px;margin-bottom:16px;padding:8px 16px;font-size:14px;display:inline-flex}.amount-summary strong{font-size:16px;font-weight:700}.form-hint{color:var(--text-tertiary);margin-top:6px;font-size:12px;line-height:1.4;display:block}.form-hint a{color:var(--accent);text-decoration:none}.form-hint a:hover{text-decoration:underline}@media (width<=768px){.auth-card{padding:28px 20px}.form-row{grid-template-columns:1fr}.mail-card-actions{flex-wrap:nowrap}}.password-wrapper{align-items:center;display:flex;position:relative}.password-wrapper .input{width:100%;padding-right:44px}.pw-toggle{width:36px;height:36px;color:var(--text-tertiary);cursor:pointer;background:0 0;border:none;border-radius:8px;justify-content:center;align-items:center;padding:0;transition:all .15s;display:flex;position:absolute;right:4px}.pw-toggle svg{width:18px;height:18px}.pw-toggle:hover{background:var(--hover);color:var(--text-secondary)}.provider-logo{border:1px solid var(--border);background:var(--surface-2);width:32px;height:32px;color:var(--accent);border-radius:8px;flex-shrink:0;justify-content:center;align-items:center;font-size:13px;font-weight:800;display:inline-flex;position:relative;overflow:hidden}.provider-logo img{object-fit:contain;background:var(--surface);width:100%;height:100%;padding:5px;position:absolute;inset:0}.provider-logo-fallback{line-height:1}.widget-grid{border:1px solid var(--border);border-radius:16px;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;margin-bottom:16px;display:grid;overflow:hidden}.widget-card{background:var(--surface);border:0;border-radius:0;min-width:0;padding:24px 20px;transition:transform .2s,box-shadow .2s,border-color .2s;position:relative;overflow:visible}.widget-card:not(.widget-large){border-right:1px solid var(--border);border-bottom:1px solid var(--border)}.widget-card:nth-child(odd):not(.widget-large){border-right:1px solid var(--border)}.widget-card:nth-child(2n):not(.widget-large){border-right:0}.widget-card:nth-child(-n+2):not(.widget-large){border-top:0}.widget-card:nth-last-child(-n+2):not(.widget-large){border-bottom:0}.widget-large{border-bottom:1px solid var(--border)}.widget-large:last-child{border-bottom:0}.widget-grid>.widget-card:first-child:not(.widget-large){border-radius:16px 0 0}.widget-grid>.widget-card:nth-child(2):not(.widget-large){border-radius:0 16px 0 0}.widget-grid>.widget-card:nth-last-child(2):not(.widget-large){border-radius:0 0 0 16px}.widget-grid>.widget-card:last-child:not(.widget-large){border-radius:0 0 16px}.widget-grid>.widget-large:first-child{border-radius:16px 16px 0 0}.widget-grid>.widget-large:last-child{border-radius:0 0 16px 16px}.widget-card:hover{border-color:var(--accent-border);box-shadow:var(--shadow);transform:translateY(-2px)}.widget-large{grid-column:1/-1}.widget-card-icon{background:var(--accent-bg);width:30px;height:30px;color:var(--accent);border-radius:9px;justify-content:center;align-items:center;display:flex;position:absolute;top:20px;right:20px}.widget-card-icon svg{width:16px;height:16px}.widget-stat{flex-direction:column;gap:8px;padding-right:40px;display:flex}.widget-value{color:var(--text-h);letter-spacing:-.5px;font-size:28px;font-weight:800;line-height:1.1}.widget-value.gold{color:var(--text-h)}.widget-value-sm{font-size:18px;font-weight:700}.widget-label{color:var(--text-secondary);letter-spacing:.2px;font-size:13px;font-weight:600}.widget-empty{color:var(--text-tertiary);padding:12px 0;font-size:13px}.widget-list-container{flex-direction:column;gap:14px;display:flex}.widget-invoice-list,.widget-senders-list{flex-direction:column;gap:8px;display:flex}.widget-invoice-item{background:var(--hover);border-radius:10px;align-items:center;gap:12px;padding:10px 12px;transition:background .15s;display:flex}.widget-invoice-item:hover{background:var(--border)}.widget-appointment-item{text-align:left;cursor:pointer;border:none;width:100%;font-family:inherit}.widget-inv-open-btn{border:1px solid var(--border);background:var(--surface);width:28px;height:28px;color:var(--text-secondary);cursor:pointer;border-radius:8px;flex-shrink:0;justify-content:center;align-items:center;transition:all .2s;display:flex}.widget-inv-open-btn:hover{background:var(--accent-bg);border-color:var(--accent-border);color:var(--accent)}.widget-inv-open-btn svg{width:14px;height:14px}.widget-inv-dot{background:var(--red);border-radius:50%;flex-shrink:0;width:8px;height:8px}.widget-inv-dot.success{background:var(--green)}.widget-inv-dot.inline{background:var(--accent)}.widget-inv-info{flex-direction:column;flex:1;gap:1px;min-width:0;display:flex}.widget-inv-sender{color:var(--text-h);white-space:nowrap;text-overflow:ellipsis;font-size:13px;font-weight:600;overflow:hidden}.widget-inv-subject{color:var(--text-tertiary);white-space:nowrap;text-overflow:ellipsis;font-size:12px;overflow:hidden}.widget-inv-meta{flex-direction:column;flex-shrink:0;align-items:flex-end;gap:1px;display:flex}.widget-inv-amount{color:var(--gold);font-size:13px;font-weight:700}.widget-inv-amount.red{color:var(--red)}.widget-inv-amount-block{flex-direction:column;align-items:flex-end;gap:0;display:flex}.widget-inv-amount-eur{color:var(--accent);opacity:.8;font-size:10px;font-weight:500}.widget-inv-date{color:var(--text-tertiary);font-size:11px}.widget-sender-item{background:var(--hover);border-radius:10px;align-items:center;gap:12px;padding:10px 12px;display:flex}.widget-sender-rank{color:var(--gold);min-width:28px;font-size:14px;font-weight:800}.widget-sender-name{color:var(--text-h);white-space:nowrap;text-overflow:ellipsis;flex:1;font-size:14px;font-weight:600;overflow:hidden}.widget-sender-count{color:var(--text-tertiary);flex-shrink:0;font-size:12px}.widget-sub-item{background:var(--hover);border-radius:10px;align-items:center;gap:12px;padding:10px 12px;display:flex}.widget-sub-icon{background:var(--accent-bg);width:32px;height:32px;color:var(--accent);border-radius:8px;flex-shrink:0;justify-content:center;align-items:center;display:flex}.widget-sub-icon svg{width:16px;height:16px}.widget-sub-info{flex-direction:column;flex:1;gap:1px;min-width:0;display:flex}.widget-sub-name{color:var(--text-h);white-space:nowrap;text-overflow:ellipsis;font-size:13.5px;font-weight:600;overflow:hidden}.widget-sub-meta{color:var(--text-tertiary);font-size:11.5px}.widget-chart-container{flex-direction:column;gap:16px;display:flex}.widget-chart-bars{align-items:flex-end;gap:12px;height:160px;padding-top:20px;display:flex}.widget-chart-col{flex-direction:column;flex:1;align-items:center;gap:8px;height:100%;display:flex}.widget-chart-value{color:var(--text-tertiary);white-space:nowrap;min-height:14px;font-size:10px;font-weight:600}.widget-chart-bar-wrap{flex:1;align-items:flex-end;width:100%;display:flex}.widget-chart-bar{background:linear-gradient(180deg, var(--gold-light), var(--gold));border-radius:4px 4px 0 0;width:100%;min-height:4px;transition:height .5s}.widget-chart-month{color:var(--text-secondary);font-size:12px;font-weight:500}.widget-quick-actions{grid-template-columns:1fr 1fr;gap:8px;display:grid}.widget-action-btn{background:var(--hover);border:1px solid var(--border);color:var(--text-h);cursor:pointer;border-radius:10px;align-items:center;gap:10px;padding:12px 14px;font-family:inherit;font-size:13px;font-weight:600;transition:all .2s;display:flex}.widget-action-btn:hover{border-color:var(--accent-border);background:var(--accent-bg);color:var(--accent)}.widget-action-icon{flex-shrink:0;width:18px;height:18px}.widget-action-icon svg{width:100%;height:100%}.widget-modal-overlay{-webkit-backdrop-filter:blur(8px);z-index:200;animation:fadeIn .2s var(--ease-smooth);background:#0009;justify-content:center;align-items:center;padding:20px;display:flex;position:fixed;inset:0}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes icon-spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.icon-spin{animation:.8s linear infinite icon-spin}.widget-modal{background:var(--surface);border:1px solid var(--border);width:100%;max-width:680px;max-height:85vh;animation:slideUp .28s var(--ease-smooth);border-radius:20px;flex-direction:column;display:flex;box-shadow:0 8px 40px #0006}@keyframes slideUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.widget-modal-header{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;padding:24px 24px 16px;display:flex}.widget-modal-header h2{color:var(--text-h);margin:0;font-size:20px;font-weight:700}.widget-modal-body{padding:16px 24px 24px;overflow-y:auto}.widget-category{margin-bottom:28px}.widget-category:last-child{margin-bottom:0}.widget-category-title{text-transform:uppercase;letter-spacing:1.5px;color:var(--accent);margin:0 0 12px;font-size:11px;font-weight:700}.widget-library-grid{grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px;display:grid}.widget-lib-card{background:var(--surface);border:1px solid var(--border);border-radius:16px;transition:transform .2s,border-color .2s,box-shadow .2s;position:relative;overflow:visible}.widget-lib-card:hover{border-color:var(--accent-border);box-shadow:var(--shadow);transform:translateY(-2px)}.widget-lib-card.active{border-color:var(--accent)}.widget-lib-preview{pointer-events:none;justify-content:center;align-items:center;min-height:80px;padding:20px 18px 12px;display:flex;position:relative}.widget-lib-icon{background:var(--accent-bg);width:22px;height:22px;color:var(--accent);border-radius:7px;justify-content:center;align-items:center;display:flex;position:absolute;top:8px;right:8px}.widget-lib-icon svg{width:12px;height:12px}.widget-preview-mini{transform-origin:50%;width:100%;transform:scale(.9)}.widget-preview-large{text-align:center;width:100%;padding:8px 0}.widget-lib-footer{border-top:1px solid var(--border);justify-content:space-between;align-items:center;gap:8px;padding:12px 18px 16px;display:flex}.widget-lib-info{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.widget-lib-name{color:var(--text-h);white-space:nowrap;text-overflow:ellipsis;font-size:13px;font-weight:600;overflow:hidden}.widget-lib-desc{color:var(--text-tertiary);white-space:nowrap;text-overflow:ellipsis;font-size:11px;overflow:hidden}.widget-add-btn{background:var(--green);color:#fff;cursor:pointer;width:30px;height:30px;box-shadow:0 2px 8px var(--green-glow);border:none;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;transition:all .2s;display:flex}.widget-add-btn svg{width:16px;height:16px}.widget-add-btn:hover{box-shadow:0 4px 14px var(--green-glow);transform:scale(1.1)}.widget-added-btn{background:var(--accent);color:#fff;cursor:pointer;border:none;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:30px;height:30px;transition:all .2s;display:flex}.widget-added-btn svg{width:16px;height:16px}.widget-added-btn:hover{background:var(--red);transform:scale(1.1)}.widget-remove-btn{background:var(--red);border:3px solid var(--bg);color:#fff;cursor:pointer;z-index:10;border-radius:50%;justify-content:center;align-items:center;width:28px;height:28px;padding:0;transition:transform .15s;display:flex;position:absolute;top:-10px;left:-10px;box-shadow:0 2px 8px #e74c3c99}.widget-remove-btn svg{width:14px;height:14px}.widget-add-tile{color:var(--text-tertiary);cursor:pointer;flex-direction:column;justify-content:center;align-items:center;gap:10px;min-height:126px;font-size:13px;font-weight:600;transition:border-color .15s,color .15s,background .15s;display:flex;border:1px dashed var(--border)!important;background:0 0!important}.widget-add-tile:hover{color:var(--accent);border-color:var(--accent)!important;background:var(--accent-bg,var(--hover))!important}.widget-add-tile-icon{border:1px solid;border-radius:50%;justify-content:center;align-items:center;width:32px;height:32px;display:flex}.widget-add-tile-icon svg{width:16px;height:16px}.widget-remove-btn:hover{transform:scale(1.2)}@keyframes wiggle-sm{0%{transform:rotate(-1.6deg)}25%{transform:rotate(1.5deg)}50%{transform:rotate(-1.5deg)}75%{transform:rotate(1.6deg)}to{transform:rotate(-1.6deg)}}@keyframes wiggle-lg{0%{transform:rotate(-.85deg)translate(-.4px)}25%{transform:rotate(.8deg)translate(.4px)}50%{transform:rotate(-.8deg)translate(-.3px)}75%{transform:rotate(.85deg)translate(.3px)}to{transform:rotate(-.85deg)translate(-.4px)}}.widget-card.wiggle{cursor:grab;transform-origin:50%;will-change:transform;animation:.72s cubic-bezier(.36,.07,.64,.93) infinite wiggle-sm}.widget-card.wiggle.widget-large{animation-name:wiggle-lg;animation-duration:.85s}.widget-card.wiggle:nth-child(2n){animation-delay:-.15s}.widget-card.wiggle:nth-child(3n){animation-delay:-.3s}.widget-card.wiggle:nth-child(4n){animation-delay:-.45s}.widget-card.wiggle:nth-child(5n){animation-delay:-.6s}.widget-card.wiggle:active{cursor:grabbing}.widget-card.is-placeholder{opacity:0;pointer-events:none}.widget-floating{z-index:1000;pointer-events:none;cursor:grabbing;box-shadow:0 22px 50px -12px #0000008c, 0 0 0 1px var(--accent-border);transition:transform .18s var(--ease-smooth);will-change:left, top, transform;margin:0;position:fixed;transform:scale(1.05);animation:none!important}.widget-floating.is-dropping{transition:left .19s var(--ease-smooth), top .19s var(--ease-smooth), transform .19s ease;transform:scale(1)}.widget-grid.is-dragging .widget-card.wiggle{animation-play-state:paused}.widget-grid.edit-mode .widget-card{border-color:var(--accent-border);touch-action:none;-webkit-user-select:none;user-select:none}.widget-grid.edit-mode .widget-card:hover{transform:none}.edit-mode-hint{text-align:center;color:var(--text-secondary);letter-spacing:.2px;margin-top:18px;font-size:13px;font-weight:500}.page-header-actions{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.dashboard-toolbar{gap:10px;margin-bottom:16px;display:flex}.btn-edit-done{background:var(--green);color:#fff;border:none;font-weight:700}.btn-edit-done:hover{background:var(--green);filter:brightness(1.08);transform:translateY(-1px)}.toggle.active{background:var(--green)}@media (width<=768px){.widget-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.widget-card{padding:18px 16px}.widget-value{font-size:22px}.widget-modal{border-radius:16px;max-height:90vh}.widget-quick-actions{grid-template-columns:1fr}.widget-library-grid{grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:10px}.page-header-actions{flex-wrap:wrap}}@media (width<=420px){.widget-grid{grid-template-columns:1fr}.widget-card{padding:16px 14px}.widget-value{font-size:21px}}.google-icon{width:20px!important;height:20px!important}.google-icon svg{width:100%;height:100%}.oauth-divider{color:var(--text-tertiary);align-items:center;gap:16px;margin:20px 0 4px;font-size:13px;display:flex}.oauth-divider:before,.oauth-divider:after,.provider-picker-divider:before,.provider-picker-divider:after{content:"";background:var(--border);flex:1;height:1px}.provider-picker-divider{color:var(--text-tertiary);align-items:center;gap:14px;margin:20px 0 12px;font-size:12.5px;display:flex}.provider-picker-lead{color:var(--text-secondary);margin:0 0 14px;font-size:13px}.provider-picker-scroll{grid-template-columns:1fr;gap:8px;max-height:340px;padding-right:2px;display:grid;overflow-y:auto}.provider-picker-item{border:1px solid var(--border);background:var(--surface);text-align:left;cursor:pointer;border-radius:12px;flex-direction:row;align-items:center;gap:11px;padding:12px 14px;transition:all .2s;display:flex}.provider-picker-item:hover{border-color:var(--accent-border);background:var(--accent-bg)}.provider-picker-name{color:var(--text-h);font-size:14px;font-weight:700}.provider-picker-copy{flex-direction:column;flex:1;gap:3px;min-width:0;display:flex}.provider-picker-meta{color:var(--text-tertiary);font-size:12px}.provider-selected-row{justify-content:space-between;align-items:center;gap:10px;display:flex}.provider-selected-chip{background:var(--accent-bg);border:1px solid var(--accent-border);color:var(--accent);border-radius:999px;align-items:center;padding:6px 10px;font-size:12px;font-weight:700;display:inline-flex}.provider-selected-chip .provider-logo{border:0;width:20px;height:20px}.provider-selected-chip .provider-logo img{padding:2px}.info-card{background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:24px}.info-card h3{color:var(--text-h);margin-bottom:16px;font-size:16px;font-weight:700}.how-it-works{flex-direction:column;gap:14px;margin:0;padding:0;list-style:none;display:flex}.how-it-works li{color:var(--text-secondary);padding-left:28px;font-size:14px;line-height:1.5;position:relative}.how-it-works li:before{content:counter(list-item);counter-increment:list-item;background:var(--accent-bg);width:20px;height:20px;color:var(--accent);border-radius:50%;justify-content:center;align-items:center;font-size:11px;font-weight:700;display:flex;position:absolute;left:0}.how-it-works li strong{color:var(--text-h)}.text-green{color:var(--green);font-weight:600}.text-red{color:var(--red);font-weight:600}.provider-list{flex-direction:column;gap:10px;margin:0;padding:0;list-style:none;display:flex}.provider-list li{color:var(--text-secondary);padding-left:16px;font-size:14px;position:relative}.provider-list li:before{content:"•";color:var(--accent);font-weight:700;position:absolute;left:0}.provider-list li strong{color:var(--text-h)}.form-row{grid-template-columns:1fr 1fr;gap:12px;display:grid}@media (width<=480px){.form-row{grid-template-columns:1fr}}@media (prefers-color-scheme:dark){.btn-google{color:#e8eaed;background:#2d2d2d;border-color:#5f6368}.btn-google:hover{background:#3c3c3c;border-color:#8ab4f8}}.workspace-shell{background:0 0;grid-template-columns:236px minmax(0,1fr);height:100dvh;display:grid}.workspace-sidebar{background:var(--surface);border-right:1px solid var(--border);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);flex-direction:column;height:100dvh;padding:22px 14px 16px;display:flex;position:sticky;top:0}.workspace-brand{width:fit-content;color:var(--text-h);cursor:pointer;font-family:var(--font-display);background:0 0;border:0;align-items:center;gap:10px;padding:7px 9px;font-size:22px;display:inline-flex}.brand-wordmark{font-weight:700}.ophir-wordmark{font-family:var(--font-display);letter-spacing:-.01em;color:var(--text-h);white-space:nowrap;font-weight:600}.ophir-wordmark-flow{color:var(--gold)}.workspace-nav{flex-direction:column;gap:3px;margin-top:34px;display:flex}.workspace-nav-item{width:100%;min-height:42px;color:var(--text-secondary);cursor:pointer;font:600 13px/1 var(--font);text-align:left;transition:background .16s var(--ease-smooth), color .16s var(--ease-smooth), border-color .16s var(--ease-smooth);background:0 0;border:1px solid #0000;border-radius:7px;align-items:center;gap:11px;padding:0 12px;display:flex}.workspace-nav-item:hover{background:var(--hover);color:var(--text-h)}.workspace-nav-item.active{background:var(--accent-bg);border-color:var(--accent-border);color:var(--accent)}.workspace-nav-icon{place-items:center;width:18px;height:18px;display:grid}.workspace-nav-icon svg{width:18px;height:18px}.workspace-sidebar-foot{border-top:1px solid var(--border);color:var(--text-secondary);align-items:center;gap:9px;min-width:0;margin-top:auto;padding:11px 9px;font-size:12px;display:flex}.workspace-avatar{background:var(--accent-bg);width:25px;height:25px;color:var(--gold-light);font-family:var(--font-display);border-radius:50%;flex:none;place-items:center;font-size:14px;display:grid}.workspace-user-name{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.workspace-stage{flex-direction:column;min-width:0;min-height:0;display:flex}.workspace-header{border-bottom:1px solid var(--border);background:color-mix(in srgb, var(--bg) 78%, transparent);-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);z-index:20;justify-content:space-between;align-items:center;min-height:72px;padding:0 42px;display:flex;position:sticky;top:0}.workspace-context{flex-direction:column;align-items:flex-start;gap:1px;display:flex}.workspace-context strong{color:var(--text-h);font-family:var(--font-display);font-size:21px;font-weight:600}.workspace-eyebrow{color:var(--text-tertiary);text-transform:uppercase;letter-spacing:.8px;font-size:11px;font-weight:700}.workspace-header-actions{align-items:center;gap:8px;display:flex}.sync-status{color:var(--text-tertiary);align-items:center;gap:7px;font-size:12px;display:inline-flex}.sync-status i{background:var(--green);border-radius:50%;width:6px;height:6px;display:block}.workspace-tab-action{min-width:auto;height:38px;min-height:38px;padding:0 14px}.workspace-icon-btn{border:1px solid var(--border);background:var(--surface);width:38px;height:38px;color:var(--text-secondary);cursor:pointer;border-radius:10px;flex-shrink:0;justify-content:center;align-items:center;display:inline-flex}.workspace-icon-btn:hover{border-color:var(--accent-border);color:var(--accent)}.workspace-icon-btn:disabled{opacity:.5;cursor:default}.workspace-icon-btn svg{width:17px;height:17px}.workspace-shell .content{min-width:0}.workspace-shell .page{max-width:1320px;padding:44px 48px 72px}.workspace-shell .page-subtitle{color:var(--text-tertiary);margin:0 0 30px;font-size:13px}.workspace-shell .btn{border:1px solid var(--border);letter-spacing:.1px;min-height:38px;box-shadow:none;border-radius:7px;padding:0 13px;font-size:12px;font-weight:700}.workspace-shell .btn-primary{background:var(--accent);border-color:var(--accent);color:var(--accent-contrast)}.workspace-shell .btn-primary:hover:not(:disabled){background:var(--accent-hover);border-color:var(--accent-hover);filter:none}.workspace-shell .btn-secondary{background:var(--surface);border-color:var(--border);color:var(--text-secondary)}.workspace-shell .btn-secondary:hover:not(:disabled){background:var(--hover);border-color:var(--accent-border);color:var(--text-h)}.workspace-shell .btn:disabled{opacity:.42;cursor:not-allowed}.workspace-shell .stats-grid{border:1px solid var(--border);background:var(--border);border-radius:8px;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;margin:0 0 34px;overflow:hidden}.workspace-shell .stat-card{background:var(--surface);border:0;border-radius:0;min-height:126px;padding:22px}.workspace-shell .stat-card:hover{box-shadow:none;background:var(--surface-2);transform:none}.workspace-shell .stat-number{font-family:var(--font);letter-spacing:-.02em;font-variant-numeric:tabular-nums;font-size:30px;font-weight:700}.workspace-shell .stat-label{text-transform:uppercase;letter-spacing:.7px;color:var(--text-tertiary);font-size:11px}.workspace-shell .section-header{margin:32px 0 11px}.workspace-shell .section-header h2{font-family:var(--font-display);font-size:23px;font-weight:600}.workspace-shell .invoice-list{border:0;border-radius:0;gap:0}.workspace-shell .invoice-item{border:0;border-bottom:1px solid var(--border);background:var(--surface);border-left:2px solid #0000;border-radius:0;min-height:99px;padding:17px 18px}.workspace-shell .invoice-list>.swipe-row-wrap:last-child .invoice-item{border-bottom:0}.workspace-shell .invoice-item:hover{box-shadow:none;background:var(--surface-2);transform:none}.workspace-shell .invoice-item.success{border-left-color:var(--green)}.workspace-shell .invoice-item.error{border-left-color:var(--red)}.workspace-shell .invoice-item.inline{border-left-color:var(--accent)}.workspace-shell .invoice-sender{font-size:16.5px}.workspace-shell .invoice-sender-email{font-size:14px}.workspace-shell .invoice-subject{font-size:12.5px}.workspace-shell .invoice-amount{font-family:var(--font);letter-spacing:-.01em;font-variant-numeric:tabular-nums;font-size:16px;font-weight:700}.workspace-shell .invoice-actions{gap:6px}.workspace-shell .icon-btn{border:1px solid var(--border);background:0 0;border-radius:6px;width:32px;height:32px}.workspace-shell .icon-btn:hover{background:var(--hover);border-color:var(--accent-border);color:var(--accent)}.workspace-shell .filter-tabs{gap:6px;margin-bottom:14px}.workspace-shell .filter-tab{border-color:var(--border);border-radius:6px;min-height:32px;padding:0 11px;font-size:12px}.workspace-shell .filter-tab.active{color:var(--accent-contrast);background:var(--accent);border-color:var(--accent)}.workspace-shell .filter-tab-count{background:#00000024}.workspace-shell .invoice-toolbar{margin-bottom:12px}.workspace-shell .input{background:var(--surface);border-color:var(--border);min-height:40px;color:var(--text-h);border-radius:6px}.workspace-shell .input:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-ring)}.workspace-shell .mail-list,.workspace-shell .widget-grid{gap:10px}.workspace-shell .mail-card,.workspace-shell .settings-card,.workspace-shell .add-card,.workspace-shell .info-card,.workspace-shell .data-source-card,.workspace-shell .chart-card{border-color:var(--border);box-shadow:none;background:var(--surface);border-radius:8px}.workspace-shell .mail-card{padding:15px 16px}.workspace-shell .mail-card:hover{box-shadow:none;background:var(--surface-2);transform:none}.workspace-shell .setting-row{padding:18px 20px}.workspace-shell .setting-title{font-size:14px}.workspace-shell .setting-desc{color:var(--text-tertiary);font-size:12px}.workspace-shell .info-card{padding:20px}.workspace-shell .info-card h3{font-family:var(--font-display);font-size:21px;font-weight:600}.workspace-shell .how-it-works{gap:10px}.workspace-shell .how-it-works li{padding-left:0;font-size:13px}.workspace-shell .how-it-works li:before{display:none}.workspace-shell .widget-card{background:var(--surface);border-color:var(--border);border-radius:8px}.workspace-shell .widget-card:hover{box-shadow:none;border-color:var(--accent-border);transform:none}.workspace-shell .widget-title{text-transform:uppercase;letter-spacing:.7px;color:var(--text-tertiary);font-size:11px}.workspace-shell .widget-value{font-family:var(--font);letter-spacing:-.02em;font-variant-numeric:tabular-nums}.workspace-shell .empty-state{border:1px dashed var(--border);background:0 0;border-radius:8px}.workspace-shell .provider-picker-item{border-radius:7px}.workspace-shell .provider-picker-scroll{max-height:290px}.auth-page{background-color:var(--bg);background-image:repeating-linear-gradient(135deg, color-mix(in srgb, var(--text-h) 5%, transparent) 0 1px, transparent 1px 8px)}.auth-card{border-color:var(--border);background:var(--surface);width:min(420px,100vw - 40px);box-shadow:var(--shadow);border-radius:8px}.auth-logo{color:var(--gold-light)}.auth-brand h1,.auth-card h1{font-family:var(--font-display);letter-spacing:0}@media (width<=840px){.workspace-shell{display:block}.workspace-stage{height:100dvh;overflow:hidden}.workspace-sidebar{display:none}.workspace-header{min-height:60px;padding:0 18px}.workspace-context strong{font-size:19px}.workspace-eyebrow,.sync-status{display:none}.workspace-header-actions{gap:8px}.workspace-shell .workspace-tab-action{min-width:auto;height:36px;min-height:36px;padding:0 12px}.workspace-icon-btn{width:36px;height:36px}.workspace-shell .page{padding:28px 18px 94px}.workspace-shell .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.workspace-shell .stat-card{min-height:106px;padding:16px}.bottom-nav{background:var(--bg);border-color:var(--border);display:flex}.bottom-nav-tab{color:var(--text-tertiary)}.bottom-nav-tab.active{color:var(--accent)}}@media (width<=520px){.workspace-header-actions{gap:6px}.workspace-shell .page-header-row{align-items:flex-start}.workspace-shell .stats-grid{margin-bottom:24px}}@keyframes jiggle-nat{0%{rotate:-1.05deg}50%{rotate:1.15deg}to{rotate:-1.05deg}}@keyframes jiggle-nat-lg{0%{rotate:-.55deg}50%{rotate:.6deg}to{rotate:-.55deg}}.widget-card.wiggle{animation:jiggle-nat var(--wiggle-dur,.34s) ease-in-out infinite;animation-delay:var(--wiggle-delay,0s);transform-origin:50%;will-change:transform, rotate}.widget-card.wiggle:nth-child(2n),.widget-card.wiggle:nth-child(3n),.widget-card.wiggle:nth-child(4n),.widget-card.wiggle:nth-child(5n){animation-delay:var(--wiggle-delay,0s);animation-duration:var(--wiggle-dur,.34s)}.widget-card.wiggle.widget-large{animation-name:jiggle-nat-lg}.widget-card.wiggle:active{cursor:grabbing;opacity:1;animation-play-state:running}.widget-card.is-placeholder{opacity:0;pointer-events:none;animation-play-state:paused;rotate:0deg}.widget-grid.edit-mode .widget-card{transition:scale .25s var(--ease-smooth), opacity .2s, box-shadow .25s;touch-action:none;-webkit-user-select:none;user-select:none}.widget-grid.edit-mode{padding-top:10px}@keyframes skeleton-pulse{0%,to{opacity:.45}50%{opacity:.85}}.widget-card.skeleton{background:linear-gradient(120deg, var(--surface) 40%, var(--surface-2) 55%, var(--surface) 70%);border-color:var(--border);pointer-events:none;min-height:108px;animation:1.4s ease-in-out infinite skeleton-pulse}.toast-stack{z-index:1000;pointer-events:none;flex-direction:column;gap:10px;display:flex;position:fixed;bottom:24px;right:24px}@keyframes toast-in{0%{opacity:0;transform:translateY(14px)scale(.97)}to{opacity:1;transform:translateY(0)scale(1)}}.toast{background:var(--surface-2);border:1px solid var(--border);animation:toast-in .28s var(--ease-smooth);max-width:380px;color:var(--text-h);border-radius:14px;align-items:center;gap:10px;padding:12px 18px 12px 14px;font-size:13.5px;display:flex;box-shadow:0 12px 34px #00000059}.toast-success{border-left:3px solid var(--green)}.toast-error{border-left:3px solid var(--red)}.toast-icon{flex-shrink:0;width:18px;height:18px;display:inline-flex}.toast-icon svg{width:100%;height:100%}.toast-success .toast-icon{color:var(--green)}.toast-error .toast-icon{color:var(--red)}.trend-badge{vertical-align:middle;letter-spacing:0;font-size:11.5px;font-weight:700;font-family:var(--font);border-radius:999px;align-items:center;gap:3px;padding:2px 8px;display:inline-flex}.trend-up{color:var(--red);background:var(--red-bg)}.trend-down{color:var(--green);background:var(--green-bg)}.sparkline{color:var(--accent);opacity:.75}.widget-spark{margin-top:8px;display:block}.widget-value.danger{color:var(--red)}.widget-inv-dot.warn{background:#e8a33d;box-shadow:0 0 8px #e8a33d80}.widget-inv-dot.danger{background:var(--red);box-shadow:0 0 8px var(--red-border)}.status-chip{text-transform:uppercase;letter-spacing:.3px;border-radius:6px;flex-shrink:0;align-items:center;padding:2px 7px;font-size:10px;font-weight:700;display:inline-flex}.chip-overdue{color:var(--red);background:var(--red-bg);border:1px solid var(--red-border)}.chip-paid{color:var(--green);background:var(--green-bg);border:1px solid var(--green-border)}.chip-open{color:var(--accent);background:var(--accent-bg);border:1px solid var(--accent-border)}.category-chip{color:var(--accent);background:var(--accent-bg);border:1px solid var(--accent-border);border-radius:999px;flex-shrink:0;align-items:center;padding:2px 8px;font-size:10.5px;font-weight:650;display:inline-flex}.invoice-detail-line{color:var(--text-tertiary);flex-wrap:wrap;gap:12px;margin-top:1px;font-size:11.5px;display:flex}.detail-attach{white-space:nowrap;text-overflow:ellipsis;opacity:.85;max-width:220px;overflow:hidden}.detail-attach:before{content:"◇ ";opacity:.6}.detail-overdue{color:var(--red);font-weight:600}.invoice-item.is-overdue{border-left:3px solid var(--red)}.invoice-item.is-spam-highlighted{border-color:var(--red-border);background:var(--red-bg)}.invoice-item.is-spam-highlighted .category-chip.doc-chip{color:var(--red);border-color:var(--red-border)}.invoice-item.is-spam-highlighted:hover{border-color:var(--red);background:color-mix(in srgb, var(--red) 22%, transparent);box-shadow:none}.icon-btn.is-active-green{color:var(--green)}.btn-caret{opacity:.6;margin-left:2px}.btn-caret svg{width:14px;height:14px}@keyframes menu-in{0%{opacity:0;transform:translateY(-6px)scale(.98)}to{opacity:1;transform:translateY(0)scale(1)}}.export-menu{background:var(--surface-2);border:1px solid var(--border);z-index:1000;min-width:265px;animation:menu-in .18s var(--ease-smooth);border-radius:14px;max-height:70vh;padding:8px;overflow-y:auto;box-shadow:0 16px 44px #0006}.export-menu-title{text-transform:uppercase;letter-spacing:.6px;color:var(--text-tertiary);padding:8px 10px 4px;font-size:10.5px;font-weight:700;display:block}.export-menu button{width:100%;color:var(--text-h);cursor:pointer;text-align:left;background:0 0;border:none;border-radius:9px;justify-content:space-between;align-items:center;gap:12px;padding:9px 10px;font-family:inherit;font-size:13.5px;font-weight:500;transition:background .15s;display:flex}.export-menu button:hover{background:var(--hover)}.export-menu button em{color:var(--text-tertiary);flex-shrink:0;font-size:11.5px;font-style:normal}.filter-tabs-divider{background:var(--border);align-self:stretch;width:1px;margin:4px 6px}.segmented{background:var(--surface);border:1px solid var(--border);border-radius:12px;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;max-width:640px;margin:0 auto 24px;padding:4px;display:grid}.segmented-item{color:var(--text-secondary);text-align:center;cursor:pointer;transition:all .2s var(--ease-smooth);background:0 0;border:none;border-radius:9px;padding:8px 18px;font-family:inherit;font-size:13.5px;font-weight:600}.segmented-item:active{transform:translateY(1px)}.segmented-item:hover{color:var(--text-h);background:var(--hover)}.segmented-item.active{background:var(--accent-bg);color:var(--accent)}.analysis-kpi-row{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:16px;margin-bottom:22px;display:grid}.analysis-kpi{background:var(--surface);border:1px solid var(--border);border-radius:16px;flex-direction:column;gap:6px;padding:20px 22px;display:flex}.analysis-kpi-value{font-family:var(--font);letter-spacing:-.02em;font-variant-numeric:tabular-nums;color:var(--text-h);font-size:27px;font-weight:700}.analysis-kpi-value.gold{color:var(--gold)}.analysis-kpi-label{color:var(--text-secondary);font-size:12.5px}.vendor-table-wrap{background:var(--surface);border:1px solid var(--border);border-radius:16px;overflow-x:auto}.vendor-table{border-collapse:collapse;width:100%;font-size:13.5px}.vendor-table th{text-align:left;text-transform:uppercase;letter-spacing:.5px;color:var(--text-tertiary);border-bottom:1px solid var(--border);white-space:nowrap;padding:14px 18px;font-size:11px;font-weight:700}.vendor-table td{border-bottom:1px solid var(--border);color:var(--text-secondary);vertical-align:middle;padding:13px 18px}.vendor-table tr:last-child td{border-bottom:none}.vendor-table tbody tr{transition:background .15s}.vendor-table tbody tr:hover{background:var(--hover)}@media (width<=640px){.vendor-table-wrap{border-radius:12px;margin:0 -2px}.vendor-table th,.vendor-table td{padding:11px 12px}.vendor-table{font-size:12.5px}}.vendor-name{color:var(--text-h);font-weight:600;display:block}.vendor-email{color:var(--text-tertiary);font-size:11.5px;display:block}.vendor-total{font-weight:700;color:var(--gold)!important}.analysis-connect-actions{flex-wrap:wrap;gap:10px;display:flex}.data-source-list{flex-direction:column;gap:10px;margin-bottom:24px;display:flex}.data-source-card{background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:14px 16px;transition:border-color .2s}.data-source-card.active{border-color:var(--accent-border)}.data-source-card-row{align-items:center;gap:10px;display:flex}.data-source-card-main{text-align:left;cursor:pointer;min-width:0;font:inherit;color:inherit;background:0 0;border:none;flex:1;align-items:center;gap:14px;padding:0;display:flex}.data-source-card-main:disabled{cursor:default}.data-source-icon{background:var(--accent-bg);width:38px;height:38px;color:var(--accent);border-radius:10px;flex-shrink:0;justify-content:center;align-items:center;display:flex}.data-source-icon svg{width:18px;height:18px}.data-source-connect-form{border-top:1px solid var(--border);gap:8px;margin-top:12px;padding-top:12px;display:flex}.data-source-connect-form .input{flex:1}.spreadsheet-analysis{flex-direction:column;gap:20px;display:flex}.chart-card{background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:20px 20px 8px}.chart-card-title{font-family:var(--font-display);color:var(--text-h);margin:0 0 6px;font-size:16px;font-weight:600}.spreadsheet-table-toggle{justify-content:flex-end;display:flex}.category-bars{flex-direction:column;gap:9px;margin-top:10px;display:flex}.category-bar-row{grid-template-columns:130px 1fr auto;align-items:center;gap:12px;display:grid}.category-bar-name{color:var(--text-secondary);white-space:nowrap;text-overflow:ellipsis;font-size:12px;overflow:hidden}.category-bar-track{background:var(--surface-2);border-radius:999px;height:7px;overflow:hidden}.category-bar-fill{background:var(--accent);height:100%;transition:width .5s var(--ease-smooth);border-radius:999px}.category-bar-value{color:var(--text-h);white-space:nowrap;font-size:12px;font-weight:650}.assistant-page{flex-direction:column;display:flex}.workspace-shell.chat-fullscreen{height:100dvh;overflow:hidden}.workspace-shell.chat-fullscreen .content{min-height:0;padding-bottom:0;overflow:hidden}.workspace-shell.chat-fullscreen .page.assistant-page{height:100%;padding-bottom:16px;animation:none}.workspace-shell.chat-fullscreen .chat-container{flex:1;min-height:0;max-height:none}.workspace-shell.chat-empty .chat-messages{justify-content:center;overflow:hidden}@media (width<=768px){.workspace-shell.chat-fullscreen .content{padding-bottom:calc(64px + env(safe-area-inset-bottom,0))}}.chat-container{flex-direction:column;min-height:420px;max-height:calc(100vh - 300px);display:flex}.chat-messages{-webkit-overflow-scrolling:touch;flex-direction:column;flex:1;gap:16px;padding:26px 36px;display:flex;overflow-y:auto}.chat-welcome{text-align:center;flex-direction:column;align-items:center;gap:8px;max-width:480px;margin:auto;padding:20px 0;display:flex}.chat-welcome-icon{width:40px;height:40px;color:var(--gold)}.chat-welcome-icon svg{width:100%;height:100%}.chat-welcome h3{font-family:var(--font-display);color:var(--text-h);margin:0;font-size:21px}.chat-welcome p{color:var(--text-secondary);margin:0;font-size:13.5px;line-height:1.55}.chat-prompt-cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;width:100%;margin-top:18px;display:grid}.chat-prompt-card{text-align:center;border:1px solid var(--accent-border);background:var(--accent-bg);min-height:112px;color:var(--text-h);cursor:pointer;border-radius:14px;justify-content:center;align-items:center;padding:18px 20px;font-family:inherit;font-size:16.5px;font-weight:550;line-height:1.42;transition:all .2s;display:flex}.chat-prompt-card:hover:not(:disabled){background:var(--accent);color:var(--accent-contrast);border-color:var(--accent);transform:translateY(-1px)}.chat-prompt-card:disabled{opacity:.6;cursor:default}@media (width<=640px){.chat-prompt-cards{grid-template-columns:1fr}}@keyframes bubble-in{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.chat-msg{width:100%;animation:bubble-in .25s var(--ease-smooth);flex-direction:column;gap:8px;display:flex}.chat-msg-user{align-items:flex-end}.chat-msg-assistant{align-items:stretch}.chat-msg-body{white-space:pre-wrap;word-break:break-word;font-size:14.5px;line-height:1.65}.chat-msg-user .chat-msg-body{background:var(--accent);max-width:78%;color:var(--accent-contrast);border-radius:16px 16px 5px;padding:11px 16px;font-weight:500}.chat-msg-assistant .chat-msg-body{width:100%;color:var(--text-h)}.chat-msg-assistant.error .chat-msg-body{color:var(--red)}.chat-msg-body .md{white-space:normal}.md-p{margin:0}.md-p+.md-p{margin-top:3px}.md-gap{height:8px}.md-h{color:var(--text-h);margin:6px 0 2px;font-weight:700}.md-li{gap:8px;margin:3px 0;display:flex}.md-li .md-bullet{color:var(--accent);flex-shrink:0;line-height:1.65}.chat-msg-body strong{color:inherit;font-weight:700}.chat-msg-body em{font-style:italic}.chat-msg-body code{background:var(--hover);border-radius:5px;padding:1px 5px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.88em}.chat-thinking{align-items:center;gap:5px;padding:6px 0;display:inline-flex}.chat-msg-user .chat-msg-body.chat-thinking{padding:11px 16px}@keyframes chat-dot-bounce{0%,60%,to{opacity:.4;transform:translateY(0)}30%{opacity:1;transform:translateY(-4px)}}.chat-dot{background:var(--text-secondary);border-radius:50%;width:6px;height:6px;animation:1.2s ease-in-out infinite chat-dot-bounce}.chat-dot:nth-child(2){animation-delay:.15s}.chat-dot:nth-child(3){animation-delay:.3s}.chat-input-row{background:var(--surface);border:1.5px solid var(--border);border-radius:999px;align-items:center;gap:8px;margin:10px 16px 12px;padding:10px 14px;transition:border-color .18s,box-shadow .18s;display:flex;box-shadow:0 2px 12px -4px #0000001f}.chat-input-row:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft,#9c7c3826), 0 2px 12px -4px #0000001f}.chat-input-area{display:contents}@media (width<=840px){.workspace-shell .assistant-page{padding-bottom:0}.chat-container{max-height:none;margin:0 -18px}.chat-messages{padding:16px 22px calc(160px + env(safe-area-inset-bottom,0))}.chat-input-area{left:0;right:0;bottom:calc(var(--keyboard-offset,0px) + 60px + env(safe-area-inset-bottom,0));z-index:90;background:var(--bg);flex-direction:column;padding-bottom:4px;display:flex;position:fixed}.chat-input-row{margin:6px 12px;box-shadow:0 -2px 20px -6px #0000002e}.ai-context-chip,.chat-image-chip{margin:0 12px}}.ai-context-chip{border:1px solid var(--accent);background:var(--accent-soft,var(--surface-2));color:var(--text-h);border-bottom:none;border-radius:10px 10px 0 0;align-items:center;gap:8px;min-width:0;margin:0 16px;padding:8px 12px;font-size:13px;display:flex}.ai-context-arrow{width:16px;height:16px;color:var(--accent);flex-shrink:0}.ai-context-name{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;font-weight:600;overflow:hidden}.ai-context-remove{width:22px;height:22px;color:var(--text-secondary);cursor:pointer;background:0 0;border:none;border-radius:6px;flex-shrink:0;justify-content:center;align-items:center;display:inline-flex}.ai-context-remove:hover{background:var(--surface);color:var(--text-h)}.ai-context-remove svg{width:14px;height:14px}.ai-context-reply-btn{border:1px solid var(--accent);color:var(--accent);cursor:pointer;white-space:nowrap;background:0 0;border-radius:999px;flex-shrink:0;align-items:center;gap:6px;padding:5px 10px;font-family:inherit;font-size:12px;font-weight:650;display:inline-flex}.ai-context-reply-btn:hover{background:var(--accent);color:var(--accent-contrast)}.ai-context-reply-btn svg{width:13px;height:13px}.chat-msg-context{background:var(--accent-bg);max-width:78%;color:var(--accent);border-radius:999px;align-items:center;gap:6px;padding:4px 10px;font-size:11.5px;font-weight:650;display:flex}.chat-msg-context svg{flex-shrink:0;width:12px;height:12px}.chat-msg-context span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.ai-btn{letter-spacing:.5px;color:var(--gold);border:1px solid var(--gold);font-size:11px;font-weight:800}.ai-btn:hover{background:var(--gold);color:var(--surface)}.widget-modal-header-actions{align-items:center;gap:8px;display:flex}.email-text-block{border:1px solid var(--border);background:var(--surface-2);white-space:pre-wrap;word-break:break-word;max-height:260px;color:var(--text-h);border-radius:10px;padding:12px 14px;font-size:13px;line-height:1.55;overflow-y:auto}.email-text-privacy{margin-top:6px}.email-text-error{color:var(--danger,#c0392b)}.email-link{color:var(--link);text-underline-offset:2px;word-break:break-all;text-decoration:underline}.email-link:hover{text-decoration-thickness:2px}.chat-input{resize:none;background:0 0;border:none;outline:none;flex:1;min-height:44px;max-height:140px;padding:10px 4px;font-size:15px;line-height:1.4;overflow-y:auto}.chat-send-btn,.workspace-shell .chat-send-btn{border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:40px;height:40px;padding:0;display:inline-flex}.chat-send-btn svg{width:18px;height:18px}.chat-image-input{display:none}.chat-upload-btn,.workspace-shell .chat-upload-btn{border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:40px;height:40px;padding:0;display:inline-flex}.chat-upload-btn svg{width:20px;height:20px}.chat-image-chip{border:1px solid var(--border);background:var(--surface-2);color:var(--text-secondary);border-bottom:none;border-radius:10px 10px 0 0;align-items:center;gap:8px;margin:0 16px;padding:6px 10px;font-size:12.5px;display:flex}.chat-image-chip-thumb{object-fit:cover;border-radius:6px;flex-shrink:0;width:30px;height:30px}.chat-image-chip-status{flex:1;min-width:0}.chat-image-chip-remove{width:22px;height:22px;color:var(--text-tertiary);cursor:pointer;background:0 0;border:none;border-radius:6px;flex-shrink:0;justify-content:center;align-items:center;display:inline-flex}.chat-image-chip-remove:hover{background:var(--surface-3);color:var(--text-h)}.chat-image-chip-remove svg{width:14px;height:14px}.chat-ref-btn{border:1px solid var(--accent-border);background:var(--accent-bg);color:var(--accent);cursor:pointer;border-radius:8px;align-items:center;gap:6px;max-width:100%;margin-top:10px;padding:7px 12px;font-family:inherit;font-size:12.5px;font-weight:600;transition:all .15s;display:flex}.chat-ref-btn:hover{background:var(--accent);color:var(--accent-contrast)}.chat-ref-btn svg{flex-shrink:0;width:14px;height:14px}.chat-ref-btn span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.chat-ref-btn.danger{border-color:var(--red-border);background:var(--red-bg);color:var(--red)}.chat-ref-btn.danger:hover:not(:disabled){background:var(--red);color:#fff}.chat-ref-btn.danger:disabled{opacity:.6;cursor:default}.chat-msg-deleted-note{color:var(--text-secondary);margin:8px 0 0;font-size:12.5px}.chat-msg-actions{flex-wrap:wrap;gap:8px;margin-top:10px;display:flex}.chat-nav-btn{border:1px solid var(--border);background:var(--surface);color:var(--text-h);cursor:pointer;border-radius:999px;align-items:center;gap:6px;max-width:100%;padding:7px 12px;font-family:inherit;font-size:12.5px;font-weight:600;transition:all .15s;display:inline-flex}.chat-nav-btn:hover{border-color:var(--accent);color:var(--accent);background:var(--accent-bg)}.chat-nav-btn svg{flex-shrink:0;width:13px;height:13px}.chat-nav-btn span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.auth-split{grid-template-columns:1fr 1fr;align-items:stretch;min-height:100svh;padding:0;display:grid}.auth-hero-panel{background:radial-gradient(1100px 500px at -10% -20%, var(--gold-glow), transparent 60%), repeating-linear-gradient(135deg, color-mix(in srgb, var(--text-h) 5%, transparent) 0 1px, transparent 1px 8px), var(--surface);border-right:1px solid var(--border);flex-direction:column;justify-content:center;padding:64px 72px;display:flex}.auth-hero-brand{font-family:var(--font-display);color:var(--text-h);align-items:center;gap:12px;margin-bottom:48px;font-size:19px;font-weight:600;display:flex}.auth-hero-logo{width:30px;height:30px;color:var(--accent)}.auth-hero-logo svg{width:100%;height:100%}.auth-hero-headline{font-family:var(--font-display);color:var(--text-h);max-width:480px;margin:0 0 40px;font-size:clamp(28px,3.2vw,40px);font-weight:600;line-height:1.18}.auth-hero-features{flex-direction:column;gap:26px;max-width:460px;margin:0;padding:0;list-style:none;display:flex}.auth-hero-features li{align-items:flex-start;gap:16px;display:flex}.auth-hero-icon{background:var(--accent-bg);border:1px solid var(--accent-border);width:40px;height:40px;color:var(--accent);border-radius:12px;flex-shrink:0;justify-content:center;align-items:center;display:inline-flex}.auth-hero-icon svg{width:19px;height:19px}.auth-hero-features strong{color:var(--text-h);margin-bottom:3px;font-size:14.5px;display:block}.auth-hero-features span{color:var(--text-secondary);font-size:13px;line-height:1.5}.auth-hero-cta{gap:12px;max-width:460px;margin-top:36px;display:flex}.auth-hero-cta-btn{flex:1;min-height:48px;font-size:14.5px}.auth-hero-mockup{border:1px solid var(--border);background:var(--bg);border-radius:16px;flex-direction:column;max-width:460px;margin-top:40px;display:flex;overflow:hidden;transform:perspective(1400px)rotateX(1.5deg);box-shadow:0 24px 48px -24px #14120c47,0 2px 6px #14120c0d}.auth-hero-mockup-head{border-bottom:1px solid var(--border);background:var(--surface);justify-content:space-between;align-items:center;padding:14px 18px;display:flex}.auth-hero-mockup-title{font-family:var(--font-display);color:var(--text-h);font-size:14px;font-weight:600}.auth-hero-mockup-btn{color:var(--accent-contrast);background:var(--accent);border-radius:8px;padding:6px 11px;font-size:11px;font-weight:650}.auth-hero-mockup-list{flex-direction:column;flex:1;justify-content:center;display:flex}.auth-hero-mockup-row{border-bottom:1px solid var(--border);background:var(--surface);justify-content:space-between;align-items:center;gap:10px;padding:13px 18px;display:flex}.auth-hero-mockup-row:last-child{border-bottom:0}.auth-hero-mockup-row-info{flex-direction:column;gap:5px;min-width:0;display:flex}.auth-hero-mockup-sender{color:var(--text-h);white-space:nowrap;text-overflow:ellipsis;font-size:13px;font-weight:650;overflow:hidden}.auth-hero-mockup-chips{gap:5px;display:flex}.auth-hero-mockup-chip{white-space:nowrap;border-radius:999px;padding:2px 7px;font-size:9.5px;font-weight:650}.auth-hero-mockup-chip.gold{color:var(--gold);background:var(--gold-glow)}.auth-hero-mockup-chip.blue{color:var(--accent);background:var(--accent-bg)}.auth-hero-mockup-row-meta{flex-direction:column;flex-shrink:0;align-items:flex-end;gap:4px;display:flex}.auth-hero-mockup-amount{color:var(--text-h);letter-spacing:-.01em;font-variant-numeric:tabular-nums;font-size:13.5px;font-weight:700}.auth-hero-mockup-pill{border-radius:999px;padding:1px 7px;font-size:9.5px;font-weight:700}.auth-hero-mockup-pill.paid{color:var(--green);background:var(--green-bg)}.auth-hero-mockup-pill.open{color:var(--red);background:var(--red-bg)}@media (width<=1080px){.auth-hero-panel .auth-hero-mockup{display:none}}.landing-page{width:100%;max-width:1180px;margin:0 auto;padding:56px 32px 80px;display:block}.landing-hero-viewport{flex-direction:column;align-items:center;display:flex}.landing-header{justify-content:center;margin-bottom:64px;display:flex}.landing-header .ophir-wordmark{font-size:22px}.landing-scroll-hint{border:1px solid var(--border);background:var(--surface);width:40px;height:40px;color:var(--text-secondary);cursor:pointer;border-radius:50%;justify-content:center;align-items:center;animation:2s ease-in-out infinite scroll-hint-bounce;display:none}.landing-scroll-hint svg{width:18px;height:18px}@keyframes scroll-hint-bounce{0%,to{opacity:.6;transform:translateY(0)}50%{opacity:1;transform:translateY(6px)}}@keyframes icon-float{0%,to{transform:translateY(0)}50%{transform:translateY(-7px)}}.auth-hero-icon.float{animation:3.2s ease-in-out infinite icon-float;animation-delay:var(--float-delay,0s)}.reveal{opacity:0;transition:opacity .6s var(--ease-smooth), transform .6s var(--ease-smooth);transition-delay:var(--reveal-delay,0s);transform:translateY(28px)}.reveal.is-visible{opacity:1;transform:translateY(0)}@media (prefers-reduced-motion:reduce){.landing-scroll-hint,.auth-hero-icon.float{animation:none}.reveal{opacity:1;transition:none;transform:none}}.landing-hero{text-align:center;max-width:720px;margin:0 auto 72px}.landing-headline{font-family:var(--font-display);color:var(--text-h);text-wrap:balance;margin:0 0 32px;font-size:clamp(32px,4.6vw,52px);font-weight:600;line-height:1.14}.landing-cta{justify-content:center;gap:14px;display:flex}.landing-cta .auth-hero-cta-btn{flex:0 220px;min-height:52px;font-size:15px}.landing-features{grid-template-columns:repeat(3,minmax(0,1fr));gap:32px;max-width:980px;margin:0 auto 72px;padding:0;list-style:none;display:grid}.landing-features li{text-align:center;flex-direction:column;align-items:center;gap:14px;display:flex}.landing-features strong{color:var(--text-h);margin-bottom:4px;font-size:15px;display:block}.landing-features span{color:var(--text-secondary);font-size:13px;line-height:1.55}.landing-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:24px;display:grid}.landing-mockup{border:1px solid var(--border);background:var(--surface);border-radius:16px;flex-direction:column;display:flex;overflow:visible;box-shadow:0 20px 40px -24px #14120c38}.landing-mockup-head{border-bottom:1px solid var(--border);padding:14px 18px}.landing-mockup-title{font-family:var(--font-display);color:var(--text-h);font-size:14px;font-weight:600}.landing-mockup-tiles{background:var(--border);flex:1;grid-template-columns:repeat(3,minmax(0,1fr));align-items:center;gap:1px;display:grid}.landing-tile{background:var(--surface);flex-direction:column;gap:6px;padding:16px 14px;display:flex}.landing-tile-k{color:var(--text-tertiary);font-size:10.5px;font-weight:600}.landing-tile-v{color:var(--text-h);letter-spacing:-.02em;font-variant-numeric:tabular-nums;font-size:18px;font-weight:700}.landing-chat-bubbles{flex-direction:column;flex:1;justify-content:center;gap:10px;padding:16px 18px;display:flex}.landing-chat-bubble{border-radius:14px;max-width:88%;padding:10px 14px;font-size:13px;line-height:1.5}.landing-chat-bubble.user{background:var(--accent);color:var(--accent-contrast);border-bottom-right-radius:4px;align-self:flex-end}.landing-chat-bubble.assistant{background:var(--surface-2);color:var(--text-h);border-bottom-left-radius:4px;align-self:flex-start}.landing-cal-list{flex-direction:column;flex:1;justify-content:center;padding:6px 18px 16px;display:flex}.landing-cal-row{border-bottom:1px solid var(--border);align-items:center;gap:10px;padding:10px 0;display:flex}.landing-cal-row:last-child{border-bottom:none}.landing-cal-dot{background:var(--green);border-radius:50%;flex-shrink:0;width:8px;height:8px}.landing-cal-dot.danger{background:var(--red)}.landing-cal-label{color:var(--text-h);flex:1;font-size:13px;font-weight:600}.landing-cal-when{color:var(--text-tertiary);font-size:12px}@media (width<=720px){.landing-page{padding:0 0 64px}.landing-hero-viewport{box-sizing:border-box;flex-direction:column;justify-content:space-between;align-items:center;gap:24px;min-height:100dvh;padding:40px 20px;display:flex}.landing-header{margin-bottom:0}.landing-header .ophir-wordmark{font-size:30px}.landing-hero{margin-bottom:0}.landing-headline{margin-bottom:26px;font-size:clamp(28px,8vw,36px)}.landing-cta{flex-direction:column;align-items:center;gap:12px}.landing-cta .auth-hero-cta-btn{flex:none;width:100%;max-width:260px;min-height:58px;font-size:15.5px}.landing-features{grid-template-columns:1fr;gap:28px;margin:0 0 48px;padding:0 20px}.landing-gallery{padding:0 20px}.landing-gallery-grid{grid-template-columns:1fr}.landing-scroll-hint{display:flex}}.auth-form-panel{justify-content:center;align-items:center;padding:40px 24px;display:flex}@media (width<=900px){.auth-split{grid-template-columns:1fr}.auth-hero-panel{display:none}}.sync-status.scanning i{background:var(--accent);animation:1s ease-in-out infinite skeleton-pulse}.btn-primary,.btn-primary:hover:not(:disabled){color:var(--accent-contrast)}.page{animation:page-in .32s var(--ease-smooth)}@keyframes page-in{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}.workspace-brand{letter-spacing:-.2px;font-size:16.5px}.task-compose{flex-wrap:wrap;align-items:center;gap:4px 8px;margin-bottom:10px;display:flex}.task-title-input{flex:260px;min-width:200px}.task-date-input{flex:none;width:160px}.task-prio-input{flex:none;width:130px}@media (width<=640px){.task-compose .btn{flex:100%;justify-content:center}.task-date-input,.task-prio-input{flex:45%;width:auto}}.task-list{flex-direction:column;gap:10px;display:flex}.task-item{background:var(--surface);border:1px solid var(--border);border-radius:12px;align-items:center;gap:14px;padding:13px 16px;transition:border-color .15s,box-shadow .15s,opacity .2s;display:flex}.task-item:hover{border-color:var(--accent-border);box-shadow:var(--shadow)}.task-item.is-done{opacity:.6}.task-check{border:2px solid var(--border);width:24px;height:24px;color:var(--accent-contrast);cursor:pointer;background:0 0;border-radius:7px;flex-shrink:0;justify-content:center;align-items:center;padding:0;transition:background .15s,border-color .15s,transform .1s;display:flex}.task-check:hover{border-color:var(--accent)}.task-check:active{transform:scale(.9)}.task-check.checked{background:var(--green);border-color:var(--green)}.task-check svg{width:15px;height:15px}.task-body{flex-direction:column;flex:1;gap:4px;min-width:0;display:flex}.task-title-text{color:var(--text-h);word-break:break-word;font-size:14.5px;font-weight:600;line-height:1.35}.task-item.is-done .task-title-text{color:var(--text-secondary);text-decoration:line-through}.task-meta{flex-wrap:wrap;align-items:center;gap:8px;font-size:11.5px;display:flex}.task-prio{border-radius:6px;align-items:center;gap:4px;padding:2px 8px 2px 6px;font-weight:600;display:inline-flex}.task-prio svg{width:12px;height:12px}.task-prio.prio-high{color:var(--red);background:var(--red-bg);border:1px solid var(--red-border)}.task-prio.prio-low{color:var(--text-secondary);background:var(--surface-2);border:1px solid var(--border)}.task-due{color:var(--text-tertiary);align-items:center;font-weight:500;display:inline-flex}.task-due.overdue{color:var(--red);font-weight:700}.task-actions{opacity:.5;flex-shrink:0;transition:opacity .15s}.task-item:hover .task-actions{opacity:1}@media (hover:none){.task-actions{opacity:1}}.more-nav-overlay{z-index:90;background:#00000073;align-items:flex-end;animation:.18s overlay-in;display:flex;position:fixed;inset:0}@keyframes overlay-in{0%{opacity:0}to{opacity:1}}.more-nav-sheet{background:var(--surface);border-top:1px solid var(--border);width:100%;padding:8px 14px calc(76px + env(safe-area-inset-bottom,0px));animation:sheet-up .24s var(--ease-smooth);border-radius:18px 18px 0 0}@keyframes sheet-up{0%{opacity:.6;transform:translateY(40%)}to{opacity:1;transform:translateY(0)}}.more-nav-grabber{background:var(--border);border-radius:2px;width:38px;height:4px;margin:6px auto 12px}.more-nav-item{width:100%;min-height:52px;color:var(--text-h);cursor:pointer;text-align:left;background:0 0;border:none;border-radius:12px;align-items:center;gap:14px;padding:0 10px;font-size:15px;font-weight:600;display:flex}.more-nav-item:active{background:var(--hover)}.more-nav-item.active{color:var(--accent)}.more-nav-icon{width:24px;height:24px;color:var(--text-secondary);display:inline-flex}.more-nav-item.active .more-nav-icon{color:var(--accent)}.more-nav-icon svg{width:22px;height:22px}.more-nav-chevron{width:18px;color:var(--text-tertiary);margin-left:auto;display:inline-flex}.more-nav-chevron svg{width:18px;height:18px}@media (width>=901px){.more-nav-overlay{display:none}}.bottom-nav-tab{min-height:52px}.cmdk-overlay{z-index:120;background:#00000080;justify-content:center;align-items:flex-start;padding:min(14vh,130px) 16px 16px;animation:.15s overlay-in;display:flex;position:fixed;inset:0}.cmdk-panel{background:var(--surface);border:1px solid var(--border);width:min(620px,100%);animation:cmdk-in .18s var(--ease-smooth);border-radius:14px;overflow:hidden;box-shadow:0 30px 70px -20px #0009}@keyframes cmdk-in{0%{opacity:0;transform:translateY(-8px)scale(.99)}to{opacity:1;transform:translateY(0)scale(1)}}.cmdk-input-row{border-bottom:1px solid var(--border);align-items:center;gap:12px;padding:14px 18px;display:flex}.cmdk-input-icon{width:18px;color:var(--text-tertiary);display:inline-flex}.cmdk-input-icon svg{width:18px;height:18px}.cmdk-input{color:var(--text-h);background:0 0;border:none;outline:none;flex:1;font-family:inherit;font-size:15.5px}.cmdk-input::placeholder{color:var(--text-tertiary)}.cmdk-kbd{color:var(--text-tertiary);background:var(--surface-2);border:1px solid var(--border);border-radius:5px;padding:2px 6px;font-family:inherit;font-size:10.5px;font-weight:600}.cmdk-results{max-height:min(46vh,420px);padding:8px;overflow-y:auto}.cmdk-group+.cmdk-group{margin-top:6px}.cmdk-group-title{text-transform:uppercase;letter-spacing:.6px;color:var(--text-tertiary);padding:8px 10px 4px;font-size:10.5px;font-weight:700;display:block}.cmdk-item{width:100%;min-height:42px;color:var(--text-h);cursor:pointer;text-align:left;background:0 0;border:none;border-radius:9px;align-items:center;gap:12px;padding:6px 10px;font-size:13.8px;font-weight:500;display:flex}.cmdk-item:hover,.cmdk-item:focus-visible{background:var(--hover)}.cmdk-item-icon{width:18px;color:var(--text-secondary);flex-shrink:0;display:inline-flex}.cmdk-item-icon svg{width:17px;height:17px}.cmdk-item-main{flex-direction:column;flex:1;gap:1px;min-width:0;display:flex}.cmdk-item-sub{color:var(--text-tertiary);white-space:nowrap;text-overflow:ellipsis;font-size:11.5px;overflow:hidden}.cmdk-item-meta{color:var(--text-h);font-variant-numeric:tabular-nums;font-size:12.5px;font-weight:700}.cmdk-done{color:var(--text-secondary);text-decoration:line-through}.cmdk-empty{text-align:center;color:var(--text-tertiary);padding:26px 16px;font-size:13.5px}.workspace-search-trigger{background:var(--surface-2);border:1px solid var(--border);min-width:190px;min-height:36px;color:var(--text-tertiary);cursor:pointer;border-radius:9px;align-items:center;gap:9px;padding:0 12px;font-family:inherit;font-size:13px;transition:border-color .15s,color .15s;display:inline-flex}.workspace-search-trigger:hover{border-color:var(--accent-border);color:var(--text-secondary)}.workspace-search-icon{width:15px;display:inline-flex}.workspace-search-icon svg{width:15px;height:15px}.workspace-search-label{text-align:left;flex:1}@media (width<=840px){.workspace-search-trigger{min-width:0}.workspace-search-label,.workspace-search-trigger .cmdk-kbd{display:none}}.transfer-modal{max-width:480px}.summary-modal{max-width:620px;max-height:88vh}.transfer-modal-body{flex:1;min-height:0;padding:4px 20px 22px;overflow-y:auto}.transfer-lead{color:var(--text-secondary);margin:0 0 14px;font-size:13px}.copy-field{border-bottom:1px solid var(--border);align-items:center;gap:12px;padding:10px 0;display:flex}.copy-field:last-of-type{border-bottom:none}.copy-field-text{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.copy-field-label{text-transform:uppercase;letter-spacing:.5px;color:var(--text-tertiary);font-size:10.5px;font-weight:700}.copy-field-value{color:var(--text-h);word-break:break-all;font-variant-numeric:tabular-nums;font-size:14px;font-weight:600}.copy-btn{flex-shrink:0;min-width:92px}.copy-btn.copied{color:var(--green);border-color:var(--green-border)}.transfer-skonto{background:var(--accent-bg);border:1px solid var(--accent-border);color:var(--text-h);border-radius:10px;align-items:flex-start;gap:10px;margin-top:14px;padding:10px 12px;font-size:12.5px;display:flex}.transfer-skonto-icon{width:16px;color:var(--accent);flex-shrink:0;margin-top:1px;display:inline-flex}.transfer-skonto-icon svg{width:16px;height:16px}.transfer-no-iban{color:var(--text-tertiary);margin-top:12px;font-size:12.5px}.summary-text{color:var(--text-h);font-size:13.5px;line-height:1.6}.summary-thinking{padding:8px 0}.detail-skonto{color:var(--accent);font-weight:600}.detail-contract{color:var(--text-secondary);white-space:nowrap;text-overflow:ellipsis;max-width:320px;font-style:italic;overflow:hidden}.calendar-toolbar{border:1px solid var(--border);border-bottom:0;border-radius:10px 10px 0 0;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;margin-bottom:0;display:grid;overflow:hidden}.calendar-add-button{border:0;border-right:1px solid var(--border);justify-content:center;min-width:0;border-radius:0!important;min-height:28px!important;padding:0 8px!important;font-size:11px!important}.calendar-add-label{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.calendar-connect-button{border:0;border-right:1px solid var(--border);justify-content:center;align-items:center;min-width:0;display:inline-flex;position:relative;border-radius:0!important;min-height:28px!important;padding:0 8px!important}.calendar-toolbar>.calendar-connect-button:last-of-type{border-right:0}.calendar-connect-button.is-connected{border-color:color-mix(in srgb, #2587f5 52%, var(--border));color:var(--text-h)}.calendar-provider-logo{flex:none;width:15px;height:15px}.calendar-provider-logo.apple{color:var(--text-h);transform:scale(1.16)}.calendar-connected{color:#2587f5;width:10px;height:10px;display:inline-flex;position:absolute;top:3px;right:4px}.calendar-connected svg{stroke-width:3px;width:100%;height:100%}.calendar-navigation{border:1px solid var(--border);border-top:1px solid var(--border);border-radius:0 0 10px 10px;grid-template-columns:repeat(3,minmax(0,1fr));align-items:center;gap:0;margin-top:0;margin-bottom:14px;display:grid;overflow:hidden}.calendar-navigation .btn{border:0;border-right:1px solid var(--border);justify-content:center;width:100%;border-radius:0!important;min-height:28px!important;padding:0 8px!important}.calendar-navigation .btn:last-child{border-right:0}.calendar-navigation .btn:first-child,.calendar-navigation .btn:last-child{border-radius:0}.calendar-nav-arrow{justify-content:center;align-items:center;display:inline-flex}.calendar-nav-arrow span{justify-content:center;align-items:center;width:16px;height:16px;display:inline-flex}.calendar-nav-arrow svg{width:100%;height:100%}.calendar-month-btn{min-height:28px;font:inherit;color:var(--text-h);text-align:center;text-transform:capitalize;cursor:pointer;background:0 0;border:0;font-size:12px;font-weight:750}.calendar-grid-head{text-transform:uppercase;letter-spacing:.4px;color:var(--text-tertiary);grid-template-columns:repeat(7,1fr);gap:1px;margin-bottom:6px;font-size:11px;font-weight:700;display:grid}.calendar-grid-head span{text-align:center}.calendar-grid{border:1px solid var(--border);background:var(--border);border-radius:7px;grid-template-columns:repeat(7,1fr);grid-auto-rows:clamp(57px,7vw,78px);gap:1px;display:grid;overflow:hidden}.calendar-cell{background:var(--surface);cursor:pointer;border:0;border-radius:0;flex-direction:column;gap:4px;min-height:0;padding:6px;transition:border-color .15s,background .15s;display:flex;overflow:hidden}.calendar-cell:hover,.calendar-cell.outside-month{background:var(--surface-2)}.calendar-cell.outside-month .calendar-day-num{color:var(--text-tertiary);opacity:.62}.calendar-cell.today{box-shadow:0 0 0 1px var(--accent) inset}.calendar-day-num{color:var(--text-secondary);font-size:11.5px;font-weight:700}.calendar-cell.today .calendar-day-num{color:var(--accent)}.calendar-cell-events{flex-direction:column;gap:3px;min-width:0;display:flex}.calendar-event{white-space:nowrap;text-overflow:ellipsis;border-radius:5px;padding:2px 6px;font-size:clamp(8px,1vw,10px);font-weight:600;overflow:hidden}button.calendar-event{text-align:left;cursor:pointer;width:100%;font-family:inherit;display:block}.calendar-event.ev-due{color:var(--accent);background:var(--accent-bg);border:1px solid var(--accent-border)}.calendar-event.ev-due.ev-overdue{color:var(--red);background:var(--red-bg);border-color:var(--red-border)}.calendar-event.ev-task{color:var(--text-secondary);background:var(--surface-2);border:1px solid var(--border)}.calendar-event.ev-task:hover{border-color:var(--accent-border);color:var(--text-h)}.calendar-event.ev-sub{color:var(--green);background:var(--green-bg);border:1px solid var(--green-border)}.calendar-more{color:var(--text-tertiary);padding-left:2px;font-size:10px}.calendar-next-up{border:1px solid var(--border);background:var(--surface);border-radius:10px;flex-direction:column;gap:4px;margin-bottom:14px;padding:10px 14px;display:flex}.calendar-next-up-title{text-transform:uppercase;letter-spacing:.4px;color:var(--text-tertiary);font-size:11px;font-weight:700}.calendar-next-up-body{align-items:center;gap:10px;font-size:12.5px;display:flex}button.calendar-next-up-body{cursor:pointer;text-align:left;background:0 0;border:none;width:100%;padding:0;font-family:inherit}button.calendar-next-up-clickable:hover .calendar-next-up-label{color:var(--accent)}.calendar-next-up-date{color:var(--accent);flex-shrink:0;font-weight:700}.calendar-next-up-label{color:var(--text-h);text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;font-weight:500;overflow:hidden}.calendar-next-up-amount{color:var(--text-secondary);font-variant-numeric:tabular-nums;flex-shrink:0;font-weight:700}.calendar-upcoming-title{color:var(--text-h);margin:26px 0 12px;font-size:17px;font-weight:700}.calendar-upcoming{flex-direction:column;gap:10px;display:flex}.calendar-upcoming-day{background:var(--surface);border:1px solid var(--border);border-radius:12px;gap:16px;padding:12px 16px;display:flex}.calendar-upcoming-date{color:var(--accent);flex:0 0 100px;font-size:13.5px;font-weight:700}.calendar-upcoming-items{flex-direction:column;flex:1;gap:6px;min-width:0;display:flex}.calendar-upcoming-item{justify-content:space-between;gap:12px;font-size:14px;display:flex}button.calendar-upcoming-item{cursor:pointer;background:0 0;border:none;padding:0;font-family:inherit}button.calendar-upcoming-item:hover .calendar-upcoming-label{color:var(--accent)}.calendar-upcoming-label{color:var(--text-h);text-overflow:ellipsis;white-space:nowrap;min-width:0;font-weight:500;overflow:hidden}.calendar-upcoming-amount{color:var(--text-secondary);font-variant-numeric:tabular-nums;flex-shrink:0;font-weight:700}.calendar-event-page{max-width:720px}.calendar-event-topbar{align-items:center;gap:16px;margin-bottom:22px;display:flex}.calendar-event-page-title{color:var(--text-h);margin:0;font-size:22px;font-weight:700}.calendar-event-card{background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:24px}.calendar-event-form{flex-direction:column;gap:18px;display:flex}.calendar-event-form .form-group{margin:0}.calendar-type-picker{border:1px solid var(--border);border-radius:10px;flex-shrink:0;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;display:grid;overflow:hidden}.calendar-type-option{border:0;border-right:1px solid var(--border);background:var(--surface);min-height:34px;color:var(--text-secondary);cursor:pointer;border-radius:0;padding:0 6px;font-family:inherit;font-size:12.5px;font-weight:600;transition:background .15s,color .15s}.calendar-type-option:last-child{border-right:0}.calendar-type-option:hover{color:var(--text-h);background:var(--hover)}.calendar-type-option.active{background:var(--accent);color:var(--accent-contrast)}.calendar-event-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;display:grid}.calendar-title-field,.calendar-location-field{grid-column:1/-1}.calendar-form-section{border:1px solid var(--border);background:var(--surface-2);border-radius:10px;padding:15px}.calendar-section-label{color:var(--text-h);font-size:13px;font-weight:700;display:block}.calendar-section-hint{color:var(--text-tertiary);margin:4px 0 13px;font-size:12px}.calendar-section-heading{justify-content:space-between;align-items:center;gap:12px;display:flex}.calendar-section-heading>span{color:var(--accent);white-space:nowrap;font-size:11px;font-weight:700}.calendar-color-palette{flex-wrap:wrap;gap:9px;margin-top:13px;display:flex}.calendar-color-option{background:var(--calendar-event-color);cursor:pointer;width:29px;height:29px;box-shadow:0 0 0 1px color-mix(in srgb, var(--calendar-event-color) 45%, transparent);border:2px solid #0000;border-radius:50%;padding:0;transition:transform .15s,box-shadow .15s}.calendar-color-option:hover{transform:scale(1.1)}.calendar-color-option.selected{border-color:var(--surface);box-shadow:0 0 0 2px var(--text-h), 0 0 0 4px color-mix(in srgb, var(--calendar-event-color) 55%, transparent)}.calendar-notes-input{resize:vertical;min-height:92px;line-height:1.45}.calendar-participant-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;display:grid}.calendar-participant{border:1px solid var(--border);min-width:0;min-height:53px;color:var(--text-h);background:var(--surface);cursor:pointer;border-radius:8px;align-items:center;gap:9px;padding:8px 10px;display:flex;position:relative}.calendar-participant:has(input:checked){border-color:var(--accent);background:var(--accent-bg)}.calendar-participant input{opacity:0;pointer-events:none;position:absolute}.calendar-participant-avatar{background:var(--accent-bg);width:29px;height:29px;color:var(--accent);border-radius:50%;flex:none;place-items:center;font-size:12px;font-weight:800;display:grid}.calendar-participant-info{flex-direction:column;min-width:0;display:flex}.calendar-participant-info strong,.calendar-participant-info small{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.calendar-participant-info strong{font-size:12.5px;font-weight:700}.calendar-participant-info small{color:var(--text-tertiary);font-size:10.5px}.calendar-event-actions{border-top:1px solid var(--border);justify-content:space-between;align-items:center;gap:10px;padding-top:18px;display:flex}.calendar-event-actions .btn-primary{margin-left:auto}.calendar-subscribe-link{text-decoration:none}@media (width<=1024px) and (width>=641px){.calendar-grid-head,.calendar-grid{gap:1px}.calendar-grid{grid-auto-rows:clamp(64px,11vw,86px)}.calendar-cell{gap:3px;padding:5px}}@media (width<=640px){.calendar-toolbar,.calendar-navigation{grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}.calendar-toolbar{margin-bottom:4px}.calendar-add-button,.calendar-connect-button,.calendar-navigation .btn{min-height:25px!important;padding:0 4px!important}.calendar-add-button{font-size:10px!important}.calendar-add-label{display:none}.calendar-provider-logo{width:14px;height:14px}.calendar-connected{width:9px;height:9px;top:2px;right:3px}.calendar-navigation{margin-bottom:10px}.calendar-month-btn{min-height:25px;font-size:10px}.calendar-nav-arrow span{width:13px;height:13px}.calendar-grid-head,.calendar-grid{gap:1px}.calendar-grid{grid-auto-rows:auto}.calendar-cell{aspect-ratio:1;border-radius:1px;gap:1px;padding:2px}.calendar-day-num{font-size:10.5px}.calendar-cell-events{gap:2px}.calendar-event{border-radius:3px;width:100%;min-height:14px;padding:1px 2px;font-size:clamp(7px,2.2vw,9px)}.calendar-event-topbar{margin-bottom:16px}.calendar-event-page-title{font-size:18px}.calendar-event-card{border-radius:14px;padding:16px}.calendar-event-form{gap:14px}.calendar-event-fields,.calendar-participant-list{grid-template-columns:1fr;gap:10px}.calendar-color-palette{gap:8px}.calendar-color-option{width:28px;height:28px}.calendar-form-section{padding:13px}.calendar-event-actions{padding-top:12px}.calendar-next-up{padding:8px 10px}.calendar-next-up-title{font-size:9.5px}.calendar-next-up-body{gap:6px;font-size:11px}.calendar-upcoming-day{flex-direction:column;gap:4px;padding:10px 12px}.calendar-upcoming-date{flex-basis:auto;font-size:11px}.calendar-upcoming-item{font-size:11.5px}}.rule-form{border-bottom:1px solid var(--border);flex-direction:column;gap:10px;padding:14px 0;display:flex}.rule-form-row{flex-wrap:wrap;gap:10px;display:flex}.rule-form-row .input{flex:180px}.rule-form-row .btn{flex-shrink:0}.rule-row-actions{flex-shrink:0;align-items:center;gap:10px;display:flex}.settings-hint{color:var(--text-tertiary);margin:0;padding:10px 0 4px;font-size:12.5px}.twofa-setup{border-top:1px solid var(--border);padding:18px 22px 20px}.twofa-qr-row{flex-wrap:wrap;align-items:center;gap:18px;margin:8px 0 12px;display:flex}.twofa-qr{border:1px solid var(--border);background:#fff;border-radius:10px;flex-shrink:0;padding:8px}.twofa-secret{letter-spacing:1px;min-width:200px;color:var(--accent);background:var(--surface-2);border:1px dashed var(--accent-border);word-break:break-all;-webkit-user-select:all;user-select:all;border-radius:10px;flex:1;padding:12px 14px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:15px}.twofa-form{flex-wrap:wrap;align-items:center;gap:10px;margin-top:6px;display:flex}.twofa-code-input{font-variant-numeric:tabular-nums;letter-spacing:4px;text-align:center;max-width:180px;font-weight:700}.otp-input{gap:10px;display:flex}.otp-box{text-align:center;font-variant-numeric:tabular-nums;width:48px;height:56px;padding:0;font-size:22px;font-weight:700}@media (width<=420px){.otp-box{width:40px;height:48px;font-size:19px}.otp-input{gap:7px}}.twofa-disable{border-top:1px solid var(--border);padding:18px 22px 20px}.integrations-grid{grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:10px;padding:12px 0 4px;display:grid}.integration-card{background:var(--surface-2);border:1px solid var(--border);border-radius:10px;flex-direction:column;gap:3px;padding:12px 14px;display:flex}.integration-name{color:var(--text-h);font-size:13px;font-weight:700}.integration-cat{color:var(--text-tertiary);font-size:11px}.integration-status{text-transform:uppercase;letter-spacing:.4px;border-radius:5px;align-self:flex-start;margin-top:6px;padding:2px 7px;font-size:10px;font-weight:700}.integration-status.int-active{color:var(--green);background:var(--green-bg);border:1px solid var(--green-border)}.integration-status.int-prepared{color:var(--accent);background:var(--accent-bg);border:1px solid var(--accent-border)}.integration-status.int-planned{color:var(--text-tertiary);background:var(--hover);border:1px solid var(--border)}.audit-list{border-top:1px solid var(--border);max-height:320px;margin-top:8px;padding:8px 0 2px;overflow-y:auto}.audit-row{border-bottom:1px solid var(--border);align-items:baseline;gap:12px;padding:7px 0;font-size:12.5px;display:flex}.audit-row:last-child{border-bottom:none}.audit-action{color:var(--text-h);flex-shrink:0;font-weight:600}.audit-details{color:var(--text-secondary);text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.audit-time{color:var(--text-tertiary);font-variant-numeric:tabular-nums;flex-shrink:0}.cashflow-chart{flex:1;align-items:flex-end;gap:12px;min-height:120px;padding:12px 4px 4px;display:flex}.cashflow-col{flex-direction:column;flex:1;align-items:center;gap:6px;height:100%;display:flex}.cashflow-bars{flex:1;justify-content:center;align-items:flex-end;gap:4px;width:100%;display:flex}.cashflow-bar{border-radius:4px 4px 0 0;width:34%;max-width:26px;transition:height .3s}.cashflow-bar.out{background:var(--accent);opacity:.85}.cashflow-bar.inn{background:var(--green)}.cashflow-month{color:var(--text-tertiary);font-size:10.5px;font-weight:600}.cashflow-legend{color:var(--text-tertiary);gap:16px;padding:6px 4px 0;font-size:11px;display:flex}.cashflow-dot{border-radius:2px;width:8px;height:8px;margin-right:5px;display:inline-block}.cashflow-dot.out{background:var(--accent)}.cashflow-dot.inn{background:var(--green)}.reco-list{flex-direction:column;gap:6px;padding-top:8px;display:flex}.reco-item{background:var(--surface-2);border:1px solid var(--border);width:100%;color:var(--text-h);cursor:pointer;text-align:left;border-radius:10px;align-items:center;gap:10px;padding:9px 10px;font-size:12.8px;font-weight:500;transition:border-color .15s;display:flex}.reco-item:hover{border-color:var(--accent-border)}.reco-icon{flex-shrink:0}.reco-text{flex:1;min-width:0}.reco-chevron{width:14px;color:var(--text-tertiary);flex-shrink:0;display:inline-flex}.reco-chevron svg{width:14px;height:14px}.mobile-fab{right:18px;bottom:calc(84px + env(safe-area-inset-bottom,0px));background:var(--accent);width:36px;height:36px;color:var(--accent-contrast);cursor:pointer;z-index:80;border:none;border-radius:10px;justify-content:center;align-items:center;transition:transform .15s;display:none;position:fixed;box-shadow:0 10px 28px -6px #00000080}.mobile-fab:active{transform:scale(.92)}.mobile-fab svg{width:18px;height:18px}@media (width<=840px){.mobile-fab{display:flex}}.draft-purpose-list{flex-direction:column;gap:8px;display:flex}.draft-purpose{background:var(--surface-2);border:1px solid var(--border);cursor:pointer;text-align:left;border-radius:10px;flex-direction:column;gap:2px;width:100%;padding:12px 14px;transition:border-color .15s;display:flex}.draft-purpose:hover{border-color:var(--accent-border)}.draft-purpose-label{color:var(--text-h);font-size:13.5px;font-weight:700}.draft-purpose-desc{color:var(--text-tertiary);font-size:11.5px}.draft-result{flex-direction:column;gap:10px;display:flex}.draft-subject{color:var(--text-h);font-size:13px}.draft-body{resize:vertical;width:100%;min-height:140px;font-family:inherit;font-size:13px;line-height:1.55}.draft-actions{flex-wrap:wrap;justify-content:flex-end;gap:10px;display:flex}.draft-actions .btn{text-decoration:none}.detail-note{color:var(--accent);white-space:nowrap;text-overflow:ellipsis;max-width:320px;font-weight:500;overflow:hidden}.icon-btn.is-active-gold{color:var(--gold)}.rule-templates{padding:6px 0 10px}.rule-template-row{flex-wrap:wrap;gap:8px;margin-top:6px;display:flex}.team-member-list{border-top:1px solid var(--border)}.team-member-row{border-bottom:1px solid var(--border);align-items:center;gap:14px;padding:14px 22px;transition:background .15s;display:flex}.team-member-row:last-child{border-bottom:0}.team-member-row:hover{background:var(--surface-2)}.team-avatar{flex-shrink:0}.team-member-row .setting-info{flex:1}.role-badge{text-transform:uppercase;letter-spacing:.4px;border-radius:6px;flex-shrink:0;align-self:center;padding:3px 9px;font-size:10px;font-weight:700}.role-badge.role-owner{color:var(--green);background:var(--green-bg);border:1px solid var(--green-border)}.role-badge.role-member{color:var(--accent);background:var(--accent-bg);border:1px solid var(--accent-border)}.role-legend{grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:10px;padding:12px 0 4px;display:grid}.role-legend-item{flex-direction:column;gap:2px;display:flex}.role-legend-name{color:var(--text-h);font-size:12.5px;font-weight:700}.role-legend-desc{color:var(--text-tertiary);font-size:11.5px}.detail-modal{max-width:560px}.detail-modal-body{max-height:72vh;overflow-y:auto}.invoice-info-clickable{cursor:pointer}.detail-field-grid{grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:10px 18px;margin-bottom:4px;display:grid}.detail-field{flex-direction:column;gap:1px;min-width:0;display:flex}.detail-field-label{text-transform:uppercase;letter-spacing:.5px;color:var(--text-tertiary);font-size:10.5px;font-weight:700}.detail-field-value{color:var(--text-h);word-break:break-word;font-size:13px;font-weight:600}.detail-section-title{color:var(--text-h);margin:18px 0 8px;font-size:13.5px;font-weight:700}.category-editor-trigger{text-align:left;cursor:pointer;min-width:0;font:inherit;background:0 0;border:none;flex-direction:column;gap:1px;padding:0;display:flex}.category-editor-trigger .detail-field-value{color:var(--accent);text-underline-offset:2px;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}.category-editor-form{flex-wrap:wrap;grid-column:1/-1;align-items:center;gap:6px;display:flex}.category-editor-form .input-sm{flex:180px;min-width:140px}.line-items{border:1px solid var(--border);border-radius:10px;flex-direction:column;display:flex;overflow:hidden}.line-item{justify-content:space-between;gap:14px;padding:8px 12px;font-size:12.8px;display:flex}.line-item:nth-child(odd){background:var(--surface-2)}.line-item-desc{color:var(--text-h);text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.line-item-amount{color:var(--text-h);font-variant-numeric:tabular-nums;flex-shrink:0;font-weight:700}.comment-thread{flex-direction:column;gap:10px;margin-bottom:12px;display:flex}.comment-item{align-items:flex-start;gap:10px;display:flex}.comment-avatar{flex-shrink:0;width:28px;height:28px;font-size:12px}.comment-body{background:var(--surface-2);border:1px solid var(--border);border-radius:10px;flex-direction:column;flex:1;gap:3px;min-width:0;padding:8px 12px;display:flex}.comment-meta{color:var(--text-tertiary);font-size:11px}.comment-meta strong{color:var(--text-secondary)}.comment-text{color:var(--text-h);word-break:break-word;font-size:13px;line-height:1.5}.comment-delete{opacity:0;transition:opacity .15s}.comment-item:hover .comment-delete{opacity:.7}@media (hover:none){.comment-delete{opacity:.7}}.comment-form{gap:10px;display:flex}.comment-form .input{flex:1}.invite-controls,.member-controls{flex-shrink:0;align-items:center;gap:8px;display:flex}.invite-role-select{width:auto;min-width:130px;padding-top:8px;padding-bottom:8px}.invite-list{border-top:1px solid var(--border);flex-direction:column;gap:10px;padding:16px 22px;display:flex}.invite-row{flex-wrap:wrap;align-items:center;gap:12px;display:flex}.invite-code{letter-spacing:2px;color:var(--accent);background:var(--accent-bg);border:1px dashed var(--accent-border);cursor:pointer;-webkit-user-select:all;user-select:all;border-radius:8px;padding:5px 10px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:14px;font-weight:700}.invite-role{color:var(--text-secondary);flex-shrink:0;font-size:12px;font-weight:600}.invite-hint{color:var(--text-tertiary);text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;font-size:11.5px;overflow:hidden}.label-optional{color:var(--text-tertiary);font-size:11px;font-weight:400}.theme-setting-row{border-bottom:none!important;padding-bottom:4px!important}.theme-picker{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px;padding:4px 0 14px;display:grid}.theme-card{background:var(--surface);border:2px solid var(--border);cursor:pointer;text-align:left;border-radius:12px;flex-direction:column;gap:3px;padding:10px;font-family:inherit;transition:border-color .15s;display:flex}.theme-card:hover{border-color:var(--accent-border)}.theme-card.active{border-color:var(--accent)}.theme-swatch{border:1px solid #80808040;border-radius:8px;justify-content:center;align-items:center;height:56px;margin-bottom:6px;display:flex}.theme-swatch-surface{border:1px solid #80808033;border-radius:6px;justify-content:center;align-items:center;width:70%;height:60%;display:flex}.theme-swatch-accent{border-radius:5px;width:26px;height:10px}.theme-card-name{color:var(--text-h);font-size:12.5px;font-weight:700}.theme-card-desc{color:var(--text-tertiary);font-size:11px}.icon-btn{min-width:34px;min-height:34px}.invoice-actions{gap:6px}.page-header-actions .btn+.btn{margin-left:0}.invoice-sender{flex-wrap:wrap;row-gap:4px}.filter-tabs,.amount-summary{margin-bottom:16px}.widget-modal-header{padding-bottom:4px}.join-team-row{border-top:1px solid var(--border);gap:10px;padding:16px 22px;display:flex}.join-team-row .input{flex:1}.join-code-input{text-transform:uppercase;letter-spacing:1px}.feed-url-row{align-items:center;gap:10px;margin-bottom:14px;display:flex}.feed-url{color:var(--accent);background:var(--surface-2);border:1px solid var(--border);word-break:break-all;-webkit-user-select:all;user-select:all;border-radius:8px;flex:1;padding:9px 12px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11.5px}.feed-instructions{flex-direction:column;gap:10px;display:flex}.feed-instruction{flex-direction:column;gap:2px;font-size:12.5px;display:flex}.feed-instruction strong{color:var(--text-h)}.feed-instruction span{color:var(--text-secondary);line-height:1.5}.webhook-block{border-bottom:1px solid var(--border);padding:10px 0}.webhook-title{margin-bottom:2px;font-size:13px;display:block}.webhook-url{text-overflow:ellipsis;white-space:nowrap;min-width:0;color:var(--text-secondary);flex:1;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11.5px;overflow:hidden}.detail-transfer-btn{align-self:flex-start;margin-top:12px}.manual-form{flex-direction:column;gap:10px;display:flex}.receipt-photo-btn{border-style:dashed;justify-content:center;align-self:stretch}.page-header-row{text-align:center;flex-direction:column;align-items:center;gap:14px}.workspace-shell .page-header-row{align-items:center}.page-header-actions{flex-wrap:wrap;justify-content:center}.page-header-centered{text-align:center}.page-header-centered .page-subtitle{margin-bottom:24px}@media (width<=840px){.workspace-search-trigger{display:none}}.email-topbar{flex-direction:column;gap:6px;margin-bottom:12px;display:flex}.email-action-row{gap:6px;display:flex}.email-action-row>.btn{white-space:nowrap;flex:1;justify-content:center;font-weight:650}.email-search-row{align-items:center;gap:8px;width:100%;min-width:0;display:flex}.email-search-row .search-input-wrapper{flex:1;min-width:0}.spam-check-btn{flex-shrink:0;justify-content:center;width:44px;height:44px;padding:0}.spam-check-btn.active{background:var(--red-bg);border-color:var(--red-border);color:var(--red)}.email-filter-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;display:grid}.email-sort-select{cursor:pointer;width:100%;max-width:none}@media (width<=700px){.email-action-row .btn-label,.email-action-row .btn-caret{display:none}.email-action-row .btn .btn-icon{margin:0}}@media (width<=320px){.email-filter-row{grid-template-columns:1fr}}.category-filter-wrapper{width:100%;min-width:0;position:relative}.category-filter-trigger{cursor:pointer;text-align:left;width:100%;color:var(--text-secondary);justify-content:space-between;align-items:center;gap:8px;font-family:inherit;font-size:13.5px;display:flex}.category-filter-trigger.has-selection{border-color:var(--accent);color:var(--text-h)}.category-filter-caret{opacity:.6;display:inline-flex}.category-filter-caret svg{width:14px;height:14px}.category-filter-menu{background:var(--surface);border:1px solid var(--border);z-index:1000;max-height:320px;animation:menu-in .18s var(--ease-smooth);border-radius:10px;padding:6px;overflow-y:auto;box-shadow:0 8px 32px -8px #00000038}.category-filter-option{cursor:pointer;color:var(--text-secondary);border-radius:7px;align-items:center;gap:9px;padding:8px 10px;font-size:13px;display:flex}.category-filter-option:hover{background:var(--hover)}.category-filter-option input{accent-color:var(--accent);cursor:pointer}.category-filter-name{flex:1}.category-filter-count{color:var(--text-tertiary);background:var(--hover);border-radius:8px;padding:1px 7px;font-size:11px}.category-filter-reset{border:none;border-top:1px solid var(--border);width:100%;color:var(--accent);cursor:pointer;background:0 0;margin-top:4px;padding:9px;font-family:inherit;font-size:12.5px;font-weight:600}.email-kind-icon{color:var(--text-tertiary)}.email-item .detail-attach{align-items:center;gap:5px;display:inline-flex}.email-item .detail-attach:before{content:none}.detail-attach-clip{flex-shrink:0;display:inline-flex}.detail-attach-clip svg{width:12px;height:12px}.detail-attach-more{color:var(--text-tertiary);font-weight:600}.doc-chip{color:var(--gold);border-color:color-mix(in srgb, var(--gold) 45%, var(--border));background:var(--gold-glow)}.invoice-chip-line{flex-wrap:wrap;align-items:center;gap:6px;display:flex}.category-chip-guess{border-style:dashed;border-color:var(--border);color:var(--text-tertiary);background:0 0}.pay-confirm{flex-direction:column;align-items:flex-end;gap:3px;display:flex}.pay-confirm-q{color:var(--text-tertiary);text-transform:uppercase;letter-spacing:.04em;font-size:10.5px;font-weight:700}.pay-confirm-btns{gap:5px;display:flex}.pay-yes,.pay-no{cursor:pointer;border:1px solid #0000;border-radius:999px;align-items:center;gap:4px;padding:4px 10px;font-family:inherit;font-size:12px;font-weight:700;transition:transform .1s,filter .15s;display:inline-flex}.pay-yes{background:var(--green);color:#fff}.pay-no{background:var(--red);color:#fff}.pay-yes:hover,.pay-no:hover{filter:brightness(1.06)}.pay-yes:active,.pay-no:active{transform:scale(.96)}.pay-yes svg,.pay-no svg{width:13px;height:13px}.pay-pill{letter-spacing:.02em;border-radius:999px;align-items:center;gap:4px;padding:2px 9px;font-size:11px;font-weight:700;display:inline-flex}.pay-pill svg{width:12px;height:12px}.pay-pill.paid{color:var(--green);background:var(--green-bg);border:1px solid var(--green-border)}.pay-pill.open{color:var(--red);background:var(--red-bg);border:1px solid var(--red-border)}.pay-pill-editable{cursor:pointer;font-family:inherit;transition:filter .15s,transform .1s}.pay-pill-editable:hover{filter:brightness(1.08)}.pay-pill-editable:active{transform:scale(.96)}.pay-cancel{border:1px solid var(--border);background:var(--surface);width:24px;height:24px;color:var(--text-secondary);cursor:pointer;border-radius:999px;justify-content:center;align-items:center;display:inline-flex}.pay-cancel:hover{background:var(--surface-2)}.pay-cancel svg{width:12px;height:12px}.pay-edit .pay-confirm-btns{flex-wrap:wrap;justify-content:flex-end}.email-actions{grid-template-columns:repeat(4,1fr);grid-auto-flow:row;align-content:center;gap:2px 4px;display:grid}.workspace-shell .email-actions .icon-btn{width:30px;height:30px}.workspace-shell .email-actions .icon-btn svg{width:16px;height:16px}.email-topbar.is-select-mode{z-index:15;background:var(--bg);position:sticky;top:0}.email-bulk-row1{justify-content:space-between;align-items:center;min-height:40px;display:flex}.email-bulk-count{color:var(--text-secondary);font-size:12.5px;font-weight:600}.email-bulk-row2{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;display:grid}.email-bulk-row2 button{border:1px solid var(--border);background:var(--surface);min-height:40px;color:var(--text-h);cursor:pointer;border-radius:9px;justify-content:center;align-items:center;font-family:inherit;display:inline-flex}.email-bulk-row2 button:hover{border-color:var(--accent);color:var(--accent)}.email-bulk-row2 button.danger:hover{border-color:var(--red);color:var(--red);background:var(--red-bg)}.email-bulk-row2 button svg{width:17px;height:17px}.email-select-check{border:2px solid var(--border);background:var(--surface);width:24px;height:24px;color:var(--accent-contrast);cursor:pointer;border-radius:50%;flex-shrink:0;justify-content:center;align-self:center;align-items:center;display:flex}.email-select-check.checked{background:var(--accent);border-color:var(--accent)}.email-select-check svg{width:14px;height:14px}.email-star{cursor:pointer;width:30px;height:30px;color:var(--text-tertiary);background:0 0;border:none;border-radius:8px;flex-shrink:0;justify-content:center;align-self:center;align-items:center;display:flex}.email-star svg{fill:none;stroke:currentColor;width:17px;height:17px}.email-star:hover{background:var(--hover);color:var(--gold)}.email-star.starred{color:var(--gold)}.email-star.starred svg{fill:var(--gold);stroke:var(--gold)}.folder-filter-indicator{background:var(--accent-bg);border:1px solid var(--accent-border);color:var(--text-h);border-radius:10px;align-items:center;gap:8px;margin-bottom:8px;padding:7px 12px;font-size:13px;display:flex}.folder-filter-icon{color:var(--accent);display:inline-flex}.folder-filter-icon svg{width:15px;height:15px}.folder-filter-clear{color:var(--text-tertiary);cursor:pointer;background:0 0;border:none;align-items:center;gap:4px;margin-left:auto;font-family:inherit;font-size:12.5px;font-weight:600;display:inline-flex}.folder-filter-clear:hover{color:var(--accent)}.folder-filter-clear svg{width:13px;height:13px}.folder-manager{flex-direction:column;gap:4px;display:flex}.folder-row{border-radius:9px;align-items:center;gap:4px;display:flex}.folder-row-main{border:1px solid var(--border);background:var(--surface);min-width:0;color:var(--text-h);cursor:pointer;text-align:left;border-radius:9px;flex:1;align-items:center;gap:10px;padding:10px 12px;font-family:inherit;font-size:14px;font-weight:600;display:flex}.folder-row-main:hover{border-color:var(--accent-border);background:var(--surface-2)}.folder-row-main.active,.folder-row.active .folder-row-main{border-color:var(--accent);color:var(--accent);background:var(--accent-bg)}.folder-row-icon{color:var(--text-tertiary);display:inline-flex}.folder-row-icon svg{width:16px;height:16px}.folder-row-name{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;overflow:hidden}.folder-row-count{color:var(--text-tertiary);background:var(--hover);border-radius:10px;padding:1px 8px;font-size:12px;font-weight:700}.folder-row-del{flex-shrink:0}.folder-create{gap:8px;margin-top:6px;display:flex}.folder-create .input{flex:1}.folder-create .btn{flex-shrink:0;padding:0 14px}.compose-modal{width:100%;max-width:620px}.compose-form{flex-direction:column;gap:10px;display:flex}.compose-field{align-items:center;gap:10px;display:flex}.compose-label{width:62px;color:var(--text-tertiary);flex-shrink:0;font-size:12.5px;font-weight:650}.compose-field .input{flex:1;min-width:0}.compose-ccbcc-toggle{color:var(--accent);cursor:pointer;background:0 0;border:none;align-self:flex-start;margin-left:72px;padding:0;font-family:inherit;font-size:12.5px;font-weight:600}.compose-body{resize:vertical;min-height:160px;font-family:inherit;line-height:1.5}.compose-attachments{flex-wrap:wrap;gap:8px;display:flex}.compose-attachment-chip{border:1px solid var(--border);background:var(--surface-2);color:var(--text-h);border-radius:999px;align-items:center;gap:6px;max-width:220px;padding:5px 8px 5px 10px;font-size:12px;display:inline-flex}.compose-attachment-chip svg{width:13px;height:13px;color:var(--text-tertiary);flex-shrink:0}.compose-attachment-name{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.compose-attachment-chip button{color:var(--text-tertiary);cursor:pointer;background:0 0;border:none;flex-shrink:0;padding:0;display:inline-flex}.compose-attachment-chip button:hover{color:var(--red)}.compose-attachment-chip button svg{width:12px;height:12px}.compose-attach-btn{margin-right:auto}.pull-refresh{transition:height .25s var(--ease-smooth);justify-content:center;align-items:flex-end;display:flex;overflow:hidden}.pull-refresh.is-pulling{transition:none}.pull-refresh-inner{color:var(--text-tertiary);white-space:nowrap;align-items:center;gap:8px;padding-bottom:8px;font-size:12.5px;font-weight:600;display:inline-flex}.pull-refresh-inner svg{width:15px;height:15px}.pull-refresh-inner.spinning svg{animation:.8s linear infinite ophir-spin}@keyframes ophir-spin{to{transform:rotate(360deg)}}.btn:focus-visible,.icon-btn:focus-visible,.workspace-icon-btn:focus-visible,.filter-tab:focus-visible,.segmented-item:focus-visible,.workspace-nav-item:focus-visible,.email-star:focus-visible,.folder-row-main:focus-visible,.input:focus-visible,.chat-nav-btn:focus-visible{outline:2px solid var(--accent);outline-offset:2px}.workspace-header-actions .btn:active:not(:disabled),.workspace-icon-btn:active:not(:disabled),.email-action-row .btn:active:not(:disabled){transform:translateY(1px)}.workspace-shell .invoice-item.is-selected{background:var(--accent-bg);border-left-color:var(--accent)}.swipe-row-wrap{position:relative;overflow:hidden}.swipe-reveal{background:var(--red);color:#fff;justify-content:flex-end;align-items:center;padding-right:26px;display:flex;position:absolute;inset:0}.swipe-reveal-icon{opacity:.85;transition:transform .15s,opacity .15s;display:inline-flex;transform:scale(.85)}.swipe-reveal-icon svg{width:22px;height:22px}.swipe-reveal.is-armed .swipe-reveal-icon{opacity:1;transform:scale(1.05)}.invoice-item.email-item{will-change:transform;transition:transform .25s var(--ease-smooth), background .15s, border-color .15s;position:relative}.invoice-item.email-item.is-swiping{transition:none}.workspace-shell .email-actions .icon-btn{color:var(--text-tertiary);background:0 0;border:none}.workspace-shell .email-actions .icon-btn svg{stroke-width:2.3px}.workspace-shell .email-actions .icon-btn:hover,.workspace-shell .email-actions .icon-btn:active{background:var(--hover);color:var(--text-h)}.workspace-shell .email-actions .icon-btn.danger:hover{background:var(--red-bg);color:var(--red)}.workspace-shell .email-actions .icon-btn.is-active-gold{color:var(--gold)}.workspace-shell .email-actions .ai-btn{border:1px solid var(--gold);background:0 0}.mailbox-actions-menu{display:inline-flex;position:relative}.mailbox-actions-popover{z-index:20;background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow);min-width:168px;max-height:340px;animation:menu-in .18s var(--ease-smooth);border-radius:10px;flex-direction:column;gap:2px;padding:5px;display:flex;position:absolute;top:calc(100% + 6px);right:0;overflow-y:auto}.mailbox-actions-sep{letter-spacing:.03em;text-transform:uppercase;color:var(--text-tertiary);border-top:1px solid var(--border);margin-top:3px;padding:6px 10px 3px;font-size:10.5px;font-weight:700}.mailbox-actions-hint{color:var(--text-tertiary);padding:4px 10px 6px;font-size:12px}.mailbox-actions-popover button{color:var(--text-h);cursor:pointer;text-align:left;white-space:nowrap;background:0 0;border:none;border-radius:7px;align-items:center;gap:8px;padding:8px 10px;font-family:inherit;font-size:13px;font-weight:600;display:flex}.mailbox-actions-popover button svg{width:15px;height:15px;color:var(--text-tertiary);flex-shrink:0}.mailbox-actions-popover button:hover{background:var(--hover)}.mailbox-actions-popover button.danger,.mailbox-actions-popover button.danger svg{color:var(--red)}.mailbox-actions-popover button.danger:hover{background:var(--red-bg)}.email-row-menu-btn{width:26px;min-width:26px;height:26px;min-height:26px;color:var(--text-tertiary);border-radius:7px;flex-shrink:0}.email-row-menu-btn svg{width:15px;height:15px}.email-row-menu-btn.active{background:var(--accent-bg);color:var(--accent)}@media (width<=640px){.workspace-shell .email-item{flex-wrap:wrap}.workspace-shell .email-actions{border-top:1px solid var(--border);opacity:1;grid-template-columns:repeat(8,1fr);gap:2px;width:100%;max-width:300px;margin:6px auto 0;padding-top:6px}.workspace-shell .email-actions .icon-btn{border-radius:6px;width:26px;min-width:26px;height:26px;min-height:26px;margin:0 auto}.workspace-shell .email-actions .icon-btn svg{width:14px;height:14px}.workspace-shell .email-actions .ai-btn{letter-spacing:.2px;font-size:9px}.workspace-shell .invoice-list{gap:0}.workspace-shell .invoice-item{gap:4px 8px;min-height:0;padding:10px 14px}.workspace-shell .invoice-info{gap:1px}.workspace-shell .invoice-status-icon{border-radius:7px;width:26px;height:26px}.workspace-shell .invoice-status-icon svg{width:13px;height:13px}.workspace-shell .invoice-sender{font-size:12.5px;line-height:1.25}.workspace-shell .invoice-subject{font-size:10.6px;line-height:1.25}.workspace-shell .email-item .invoice-sender-email{display:none}.workspace-shell .invoice-date{white-space:nowrap;font-size:10.8px}.workspace-shell .invoice-amount{font-size:13px}.workspace-shell .invoice-amount-eur{font-size:10.2px}.workspace-shell .category-chip{padding:1px 6px;font-size:8.8px}.workspace-shell .invoice-detail-line{gap:8px;font-size:9.8px}.workspace-shell .invoice-meta{gap:1px}.page-header-centered .page-subtitle{margin-bottom:14px}.workspace-context strong{font-size:16px}.bottom-nav-label{font-size:9px}.email-topbar{gap:5px;margin-bottom:8px}.email-action-row,.email-filter-row{gap:5px}.workspace-shell .email-action-row .btn{height:36px;min-height:36px;padding:0 8px;font-size:12px}.workspace-shell .email-sort-select,.workspace-shell .category-filter-trigger{height:36px;min-height:36px;font-size:12.5px}.email-action-row .btn .btn-icon{width:16px;height:16px}.email-bulk-row1{min-height:36px}.email-bulk-row2{gap:5px}.email-bulk-row2 button{min-height:36px}.email-bulk-row2 button svg{width:16px;height:16px}.workspace-shell .email-page{padding-top:14px}.workspace-shell .email-page .page-subtitle{margin:0 0 10px}}@media (width<=360px){.workspace-shell .invoice-item{gap:6px;padding:7px 8px}.workspace-shell .invoice-sender{font-size:11.8px}.workspace-shell .invoice-subject,.workspace-shell .invoice-sender-email{font-size:10px}.workspace-shell .invoice-status-icon{width:24px;height:24px}.workspace-shell .invoice-status-icon svg{width:12px;height:12px}.workspace-shell .invoice-amount{font-size:12px}.workspace-shell .invoice-date{font-size:9.2px}.email-row-menu-btn,.workspace-shell .email-actions .icon-btn{width:24px;min-width:24px;height:24px;min-height:24px}.workspace-shell .email-actions .icon-btn svg{width:13px;height:13px}.mailbox-actions-popover{min-width:148px}}.attachment-viewer{width:calc(100vw - 32px);max-width:920px}.attachment-viewer-title{text-overflow:ellipsis;white-space:nowrap;align-items:center;gap:8px;min-width:0;display:flex;overflow:hidden}.attachment-viewer-icon{color:var(--text-tertiary);flex-shrink:0;display:inline-flex}.attachment-viewer-icon svg{width:16px;height:16px}.attachment-viewer-body{justify-content:center;align-items:center;min-height:220px;padding:0 20px;display:flex}.attachment-viewer-frame{border:1px solid var(--border);background:#fff;border-radius:10px;width:100%;height:min(70vh,760px)}.attachment-viewer-image{border-radius:10px;max-width:100%;max-height:70vh}.attachment-viewer-loading{flex-direction:column;align-items:center;gap:2px;padding:46px 0;display:flex}.attachment-viewer-privacy{text-align:center;margin:0;padding:10px 20px 16px}.attachment-picker{max-width:440px}.attachment-picker-list{flex-direction:column;gap:6px;max-height:60vh;padding:0 20px 20px;display:flex;overflow-y:auto}.attachment-picker-item{border:1px solid var(--border);background:var(--surface-2);cursor:pointer;color:var(--text-secondary);text-align:left;border-radius:9px;align-items:center;gap:10px;min-width:0;padding:10px 12px;font-family:inherit;font-size:13px;transition:border-color .15s,background .15s,color .15s;display:flex}.attachment-picker-item:hover{border-color:var(--accent-border);background:var(--hover);color:var(--text-h)}.attachment-picker-clip{color:var(--text-tertiary);flex-shrink:0;display:inline-flex}.attachment-picker-clip svg{width:15px;height:15px}.attachment-picker-name{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.category-picker{max-width:480px}.category-picker-list{grid-template-columns:1fr 1fr;gap:6px;max-height:55vh;padding:0 20px 20px;display:grid;overflow-y:auto}.category-picker-item{border:1px solid var(--border);background:var(--surface-2);color:var(--text-secondary);cursor:pointer;text-align:left;border-radius:8px;flex-direction:column;gap:1px;padding:9px 11px;font-family:inherit;font-size:12.5px;font-weight:600;transition:border-color .15s,color .15s;display:flex}.category-picker-item em{color:var(--text-tertiary);font-size:11px;font-style:normal;font-weight:500}.category-picker-item:hover{border-color:var(--accent-border);color:var(--text-h)}.category-picker-item.active{border-color:var(--accent);color:var(--accent)}.category-picker-add{color:var(--accent);border-style:dashed;border-color:var(--accent-border);background:0 0;flex-direction:row;justify-content:center;align-items:center;gap:6px}.category-picker-add:hover{border-color:var(--accent);background:var(--accent-bg)}.category-picker-add-icon{display:inline-flex}.category-picker-add-icon svg{width:13px;height:13px}.category-picker-add-form{flex-direction:row;align-items:center;gap:6px;padding:6px}.category-picker-add-form .input-sm{flex:1;min-width:0;height:30px;font-size:12.5px}.category-picker-add-form .icon-btn{flex-shrink:0;width:30px;height:30px}.category-picker-custom{flex-direction:row;align-items:center;gap:4px;padding:3px 3px 3px 11px}.category-picker-custom-label{text-overflow:ellipsis;white-space:nowrap;text-align:left;min-width:0;color:inherit;font:inherit;cursor:pointer;background:0 0;border:none;flex:1;padding:6px 0;overflow:hidden}.category-picker-custom-delete{width:24px;height:24px;color:var(--text-tertiary);cursor:pointer;background:0 0;border:none;border-radius:6px;flex-shrink:0;justify-content:center;align-items:center;display:flex}.category-picker-custom-delete svg{width:12px;height:12px}.category-picker-custom-delete:hover{background:var(--red-bg);color:var(--red)}@media (width<=480px){.category-picker-list{grid-template-columns:1fr}}.email-read-page{max-width:900px}.workspace-shell .email-read-page{max-width:980px}.email-read-topbar{justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px;display:flex}.email-read-topbar-actions{gap:6px;display:flex}.email-read-topbar-actions .icon-btn{width:32px;height:32px}.email-read-topbar-actions .icon-btn svg{width:16px;height:16px}.email-read-card{background:var(--surface);border:1px solid var(--border);border-radius:14px;margin-bottom:16px;padding:26px 28px}.email-read-subject{font-family:var(--font-display);color:var(--text-h);overflow-wrap:anywhere;margin:0 0 16px;font-size:25px;font-weight:600;line-height:1.3}.email-read-meta{border-bottom:1px solid var(--border);flex-wrap:wrap;align-items:center;gap:12px;margin-bottom:16px;padding-bottom:16px;display:flex}.email-read-avatar{flex-shrink:0;width:40px;height:40px;font-size:16px}.email-read-meta-text{flex-direction:column;flex:1;min-width:0;display:flex}.email-read-sender{color:var(--text-h);font-size:14.5px;font-weight:700}.email-read-address{color:var(--text-tertiary);overflow-wrap:anywhere;font-size:12.5px}.email-read-date{color:var(--text-tertiary);font-size:12.5px}.email-read-chips{flex-wrap:wrap;gap:6px;margin-bottom:14px;display:flex}.email-read-fields{margin-bottom:16px}.email-read-text{background:0 0;border:none;max-height:none;padding:0;font-size:14px;line-height:1.65}.email-translated{border-left:2px solid var(--gold);padding-left:14px}.email-html-frame{background:#fff;border:none;border-radius:12px;width:100%;display:block}.email-read-attachments{border-top:1px solid var(--border);flex-direction:column;gap:6px;margin-top:18px;padding-top:16px;display:flex}.email-read-comments .comment-form{margin-top:10px}@media (width<=640px){.workspace-shell .email-read-page{padding-left:0!important;padding-right:0!important}.email-read-topbar{padding:0 12px}.email-read-card{border:none;border-top:1px solid var(--border);background:0 0;border-radius:0;margin:0 0 12px;padding:14px 12px}.email-read-subject{margin-bottom:10px;font-size:15px;font-weight:700;line-height:1.35}.email-read-meta{gap:8px;margin-bottom:10px;padding-bottom:10px}.email-read-avatar{width:30px;height:30px;font-size:12px}.email-read-sender{font-size:12px}.email-read-address{font-size:10.5px}.email-read-date{white-space:nowrap;font-size:10.5px}.email-read-topbar-actions{gap:6px}}.ai-btn{box-shadow:0 0 12px -4px var(--gold)}.ai-btn:hover{box-shadow:0 0 16px -3px var(--gold)}.chat-welcome-icon{filter:drop-shadow(0 0 10px color-mix(in srgb, var(--gold) 45%, transparent))}.chat-send-btn{box-shadow:0 0 14px -5px var(--accent)}.chat-welcome{max-width:560px;margin:0 auto}.folder-browser{width:calc(100vw - 32px);max-width:880px;height:min(680px,85vh)}.folder-browser-error{padding:0 20px 16px}.folder-browser-body{border-top:1px solid var(--border);flex:1;min-height:0;display:flex}.folder-browser-sidebar{border-right:1px solid var(--border);flex-direction:column;flex-shrink:0;gap:2px;width:200px;padding:10px;display:flex;overflow-y:auto}.folder-browser-item{color:var(--text-secondary);text-align:left;cursor:pointer;background:0 0;border:none;border-radius:8px;align-items:center;gap:9px;min-width:0;padding:8px 10px;font-family:inherit;font-size:13px;display:flex}.folder-browser-item-icon{flex-shrink:0;width:16px;height:16px;display:inline-flex}.folder-browser-item-icon svg{width:100%;height:100%}.folder-browser-item-name{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.folder-browser-item:hover{background:var(--hover);color:var(--text-h)}.folder-browser-item.active{background:var(--accent-bg);color:var(--accent);font-weight:600}.folder-browser-read{border-top:1px solid var(--border);flex:1;min-height:0;padding:16px 20px 20px;overflow-y:auto}.folder-browser-read-back{margin-bottom:14px}.folder-browser-read-subject{color:var(--text-h);margin:0 0 4px;font-size:17px;font-weight:700}.folder-browser-read-meta{color:var(--text-tertiary);margin:0 0 16px;font-size:12.5px}.folder-browser-messages{flex:1;min-width:0;padding:6px 0;overflow-y:auto}.folder-browser-empty{text-align:center;padding:40px 20px}.folder-browser-message{border-bottom:1px solid var(--border);align-items:center;gap:10px;padding:10px 16px;display:flex}.folder-browser-message:last-child{border-bottom:none}.folder-browser-dot{border:1px solid var(--border);cursor:pointer;background:0 0;border-radius:50%;flex-shrink:0;width:7px;height:7px;padding:0}.folder-browser-dot.unread{background:var(--accent);border-color:var(--accent)}.folder-browser-dot:hover{border-color:var(--accent)}.folder-browser-message-info{flex-direction:column;flex:1;gap:1px;min-width:0;display:flex}.folder-browser-message-sender{color:var(--text-h);white-space:nowrap;text-overflow:ellipsis;font-size:13px;font-weight:600;overflow:hidden}.folder-browser-message-subject{color:var(--text-secondary);white-space:nowrap;text-overflow:ellipsis;font-size:12px;overflow:hidden}.folder-browser-message-date{color:var(--text-tertiary);flex-shrink:0;font-size:11px}.folder-browser-message-actions{flex-shrink:0;gap:2px;display:flex}.folder-browser-message-actions .icon-btn{width:30px;height:30px;color:var(--text-tertiary);background:0 0;border:none}.folder-browser-message-actions .icon-btn:hover{background:var(--hover);color:var(--text-h)}.folder-browser-message-actions .icon-btn.danger:hover{background:var(--red-bg);color:var(--red)}@media (width<=640px){.folder-browser{height:88vh}.folder-browser-body{flex-direction:column}.folder-browser-sidebar{border-right:none;border-bottom:1px solid var(--border);flex-direction:row;width:100%;overflow:auto visible}.folder-browser-item{flex-shrink:0}.folder-browser-item-name{max-width:110px}.folder-browser-message-sender,.folder-browser-message-subject{max-width:140px}}@media (width<=840px){.workspace-header{min-height:56px;padding-inline:14px}.workspace-shell .page{padding:22px 16px 88px}.workspace-context strong{font-size:18px}.workspace-shell .page-subtitle{margin-bottom:20px;font-size:12px}.workspace-shell .section-header{margin:22px 0 9px}.workspace-shell .section-header h2{font-size:20px}.workspace-shell .btn{min-height:34px;padding-inline:10px;font-size:11.5px}.workspace-shell .input{min-height:36px;padding:8px 10px;font-size:13px}.workspace-shell .icon-btn{width:30px;height:30px}.workspace-shell .setting-row,.workspace-shell .info-card{padding:14px 16px}.workspace-shell .setting-title{font-size:13px}.workspace-shell .setting-desc{font-size:11px}.bottom-nav{padding-top:4px;padding-bottom:calc(4px + env(safe-area-inset-bottom,0))}.bottom-nav-tab{padding-block:4px}}@media (width<=640px){:root{font-size:15px}.workspace-header{min-height:52px;padding-inline:12px}.workspace-shell .page{padding:16px 12px 82px}.workspace-context strong{font-size:15px}.workspace-shell .page-subtitle{margin:0 0 14px;font-size:11px}.workspace-shell .section-header h2{font-size:18px}.workspace-shell .btn{min-height:31px;padding-inline:9px;font-size:11px}.workspace-shell .input{min-height:34px;padding:7px 9px;font-size:12.5px}.workspace-shell .icon-btn{width:28px;height:28px}.widget-modal-overlay{padding:10px}.widget-modal-header{padding:16px 16px 12px}.widget-modal-header h2{font-size:18px}.widget-modal-body{padding:13px 16px 16px}.bottom-nav-label{font-size:8.5px}.bottom-nav{min-height:40px;padding:2px 0 max(2px, env(safe-area-inset-bottom,0))}.bottom-nav-tab{gap:0;min-height:36px;padding:1px 3px}.bottom-nav-label{display:none}.bottom-nav-icon{width:22px;height:22px}.workspace-header-actions{gap:4px}.workspace-icon-btn{border-radius:7px;width:30px;min-width:30px;height:30px}.workspace-icon-btn svg{width:15px;height:15px}.workspace-shell .workspace-tab-action{justify-content:center;gap:0;width:30px;min-width:30px;height:30px;min-height:30px;padding:0}.workspace-tab-action-label,.mobile-fab{display:none}.workspace-shell .page{padding-bottom:62px}.workspace-shell.chat-empty-lock .content{padding-bottom:calc(40px + env(safe-area-inset-bottom,0))}.chat-container{min-height:0}.chat-messages{padding:12px 18px calc(104px + env(safe-area-inset-bottom,0));gap:10px}.chat-welcome{gap:5px;max-width:none;padding:8px 0}.chat-welcome-icon{width:30px;height:30px}.chat-prompt-cards{grid-template-columns:1fr;gap:6px;margin-top:8px}.chat-prompt-card{white-space:normal;border-radius:10px;min-height:52px;padding:10px 14px;font-size:13px;line-height:1.3}.chat-input-area{bottom:calc(40px + env(safe-area-inset-bottom,0))}.chat-input-row{gap:6px;padding:8px 10px}.chat-input{min-height:40px;padding:8px 4px;font-size:14px}.chat-upload-btn,.chat-send-btn{width:36px;min-width:36px;height:36px}.chat-upload-btn svg,.chat-send-btn svg{width:17px;height:17px}.workspace-shell .widget-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-bottom:8px}.workspace-shell .widget-card{border-radius:7px;min-height:0;padding:10px}.workspace-shell .widget-card.widget-large{grid-column:1/-1}.workspace-shell .widget-stat{gap:3px}.workspace-shell .widget-value{font-size:18px;line-height:1.05}.workspace-shell .widget-value-sm{font-size:14px}.workspace-shell .widget-label{font-size:9.5px;line-height:1.2}.workspace-shell .widget-list-container{gap:6px}.workspace-shell .widget-sub-item{gap:7px;padding:5px 0}.workspace-shell .widget-sub-icon{width:22px;height:22px}.workspace-shell .widget-sub-name{font-size:11px}.workspace-shell .widget-sub-meta{font-size:9.5px}.workspace-shell .widget-quick-actions{gap:5px}.workspace-shell .widget-action-btn{border-radius:6px;min-height:30px;padding:5px 7px;font-size:10px}.workspace-shell .widget-action-icon{width:14px;height:14px}.workspace-shell .dashboard-widget-button-label{display:none}.widget-card-icon{border-radius:7px;width:22px;height:22px;top:10px;right:10px}.widget-card-icon svg{width:12px;height:12px}.widget-stat{padding-right:28px}}@media (width<=360px){.workspace-shell .widget-card{padding:8px}.workspace-shell .widget-value{font-size:15px}.workspace-shell .widget-label{font-size:8.5px}.widget-card-icon{width:18px;height:18px;top:8px;right:8px}.widget-card-icon svg{width:10px;height:10px}.widget-stat{padding-right:22px}}.mobile-dashboard{padding:0 0 calc(80px + env(safe-area-inset-bottom,0));flex-direction:column;gap:0;display:flex}.mobile-dash-greeting{flex-direction:row;justify-content:space-between;align-items:flex-start;padding:20px 20px 12px;display:flex}.mobile-dash-greeting>div{flex-direction:column;display:flex}.mobile-dash-hello{color:var(--text);letter-spacing:-.4px;font-size:22px;font-weight:700}.mobile-dash-date{color:var(--text-muted);margin-top:2px;font-size:13px}.mobile-dash-edit-btn{background:var(--accent);color:#fff;cursor:pointer;-webkit-tap-highlight-color:transparent;border:none;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:38px;height:38px;display:flex}.mobile-dash-edit-btn:active{transform:scale(.93)}.mobile-dash-edit-btn svg{width:18px;height:18px}.mobile-dash-edit-btn.is-done{background:var(--green)}.mobile-widget-stack{flex-direction:column;gap:10px;padding:0 16px;display:flex}.mobile-widget-card{background:var(--surface);border:1px solid var(--border);border-radius:16px;padding:16px;position:relative}.mobile-widget-stack.edit-mode .mobile-widget-card{touch-action:none;-webkit-user-select:none;user-select:none;border-color:var(--accent-border)}.mobile-widget-card.wiggle{animation:.72s cubic-bezier(.36,.07,.64,.93) infinite wiggle-sm;animation-delay:var(--wiggle-delay,0s);transform-origin:50%;will-change:transform}.mobile-widget-card.is-placeholder{opacity:0;pointer-events:none}.mobile-edit-toolbar{background:var(--surface);border:1px solid var(--accent-border);border-radius:12px;justify-content:space-between;align-items:center;gap:10px;margin:4px 16px 18px;padding:10px 14px;display:flex}.mobile-edit-toolbar span{color:var(--text-secondary);font-size:12.5px;font-weight:500}.mobile-edit-toolbar .btn-edit-done{flex-shrink:0;height:34px;min-height:34px;padding:0 14px;font-size:13px}.mobile-kpi-grid{grid-template-columns:1fr 1fr;gap:10px;padding:0 16px 16px;display:grid}.mobile-kpi-card{background:var(--surface);border:1px solid var(--border);cursor:pointer;-webkit-tap-highlight-color:transparent;border-radius:16px;flex-direction:column;gap:4px;padding:16px 14px;transition:background .15s,transform .1s;display:flex}.mobile-kpi-card:active{background:var(--surface-2);transform:scale(.97)}.mobile-kpi-card.accent{background:var(--accent);border-color:#0000}.mobile-kpi-card.accent .mobile-kpi-value,.mobile-kpi-card.accent .mobile-kpi-label,.mobile-kpi-card.accent .widget-value,.mobile-kpi-card.accent .widget-label{color:#fff}.mobile-kpi-value{color:var(--text);letter-spacing:-.5px;font-size:22px;font-weight:700;line-height:1.1}.mobile-kpi-label{color:var(--text-muted);font-size:12px;font-weight:500}.mobile-kpi-card .widget-stat{gap:4px;padding-right:0;overflow:hidden}.mobile-kpi-card .widget-value{letter-spacing:-.4px;white-space:nowrap;text-overflow:ellipsis;font-size:21px;overflow:hidden}.mobile-kpi-card .widget-value-sm{font-size:14px}.mobile-kpi-card .widget-label{white-space:nowrap;text-overflow:ellipsis;font-size:11.5px;font-weight:500;overflow:hidden}.mobile-kpi-card .widget-spark,.mobile-kpi-card .trend-badge{display:none}.mobile-kpi-grid.edit-mode .mobile-kpi-card{touch-action:none;-webkit-user-select:none;user-select:none;cursor:pointer}.mobile-kpi-card.wiggle{animation:.72s cubic-bezier(.36,.07,.64,.93) infinite wiggle-sm;animation-delay:var(--wiggle-delay,0s);transform-origin:50%;will-change:transform}.mobile-kpi-card.is-placeholder{opacity:0;pointer-events:none}.mobile-kpi-edit-badge{background:var(--accent);color:#fff;z-index:2;border-radius:50%;justify-content:center;align-items:center;width:20px;height:20px;display:flex;position:absolute;top:-6px;right:-6px;box-shadow:0 2px 6px #0003}.mobile-kpi-edit-badge svg{width:11px;height:11px}.mobile-kpi-card{position:relative}.mobile-dash-section{margin:0 0 8px}.mobile-dash-section-header{color:var(--text);justify-content:space-between;align-items:center;padding:8px 20px 10px;font-size:15px;font-weight:600;display:flex}.mobile-dash-see-all{color:var(--accent);cursor:pointer;background:0 0;border:none;padding:0;font-size:13px;font-weight:500}.mobile-quick-actions{grid-template-columns:repeat(4,1fr);gap:8px;padding:0 16px;display:grid}.mobile-action-btn{background:var(--surface);border:1px solid var(--border);cursor:pointer;color:var(--text);-webkit-tap-highlight-color:transparent;border-radius:14px;flex-direction:column;justify-content:center;align-items:center;gap:6px;padding:14px 6px 12px;font-size:11px;font-weight:500;transition:background .15s,transform .1s;display:flex}.mobile-action-btn:active{background:var(--surface-2);transform:scale(.95)}.mobile-action-icon{width:28px;height:28px;color:var(--accent);justify-content:center;align-items:center;display:flex}.mobile-action-icon svg{width:22px;height:22px}.mobile-invoice-list{background:var(--surface);border-top:1px solid var(--border);border-bottom:1px solid var(--border)}.mobile-invoice-row{border-bottom:1px solid var(--border);cursor:pointer;-webkit-tap-highlight-color:transparent;align-items:center;gap:12px;padding:13px 20px;transition:background .12s;display:flex}.mobile-invoice-row:last-child{border-bottom:none}.mobile-invoice-row:active{background:var(--surface-2)}.mobile-inv-dot{border-radius:50%;flex-shrink:0;width:8px;height:8px}.mobile-inv-dot.ok{background:#22c55e}.mobile-inv-dot.warn{background:#f59e0b}.mobile-inv-dot.danger{background:#ef4444}.mobile-inv-info{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.mobile-inv-sender{color:var(--text);white-space:nowrap;text-overflow:ellipsis;font-size:14px;font-weight:500;overflow:hidden}.mobile-inv-meta{color:var(--text-muted);font-size:12px}.mobile-inv-amount{color:var(--text);white-space:nowrap;font-size:14px;font-weight:600}.mobile-dash-empty{color:var(--text-muted);text-align:center;background:var(--surface);border-top:1px solid var(--border);border-bottom:1px solid var(--border);padding:20px;font-size:14px}@keyframes shimmer-slide{0%{background-position:-200%}to{background-position:200%}}@keyframes pulse-glow{0%,to{opacity:.5;transform:scale(1)}50%{opacity:1;transform:scale(1.08)}}@keyframes float-up{0%{transform:translateY(0)}50%{transform:translateY(-4px)}to{transform:translateY(0)}}@keyframes aurora{0%{background-position:0%}50%{background-position:100%}to{background-position:0%}}@keyframes sparkle-spin{0%{transform:rotate(0)scale(1)}50%{transform:rotate(180deg)scale(1.2)}to{transform:rotate(360deg)scale(1)}}.chat-welcome-icon{filter:drop-shadow(0 0 10px #9c7c3880);animation:3s ease-in-out infinite float-up}.chat-msg-assistant .chat-msg-body{position:relative}.chat-msg-assistant .chat-msg-body:before{content:"";pointer-events:none;background:linear-gradient(135deg,#9c7c380f 0%,#0000 50%,#3b82f60a 100%);border-radius:12px;position:absolute;inset:-1px}.chat-prompt-card{transition:transform .2s,box-shadow .2s,border-color .2s!important}.chat-prompt-card:hover{border-color:var(--gold)!important;transform:translateY(-2px)!important;box-shadow:0 8px 24px -8px #9c7c3833!important}.bottom-nav .nav-item.active .nav-icon{filter:drop-shadow(0 0 6px #9c7c3899)}.workspace-tab.active{position:relative}.workspace-tab.active:after{content:"";background:linear-gradient(90deg, transparent, var(--gold), transparent);background-size:200%;border-radius:2px;height:2px;animation:2s linear infinite shimmer-slide;position:absolute;bottom:-1px;left:20%;right:20%}.email-item:hover,.invoice-card:hover{box-shadow:0 4px 20px -6px #9c7c3826!important}.workspace-header-action[title*=KI] svg,.workspace-header-action[title*=Assistent] svg,.nav-icon.sparkle{animation:2.5s ease-in-out infinite pulse-glow}.btn-primary{position:relative;overflow:hidden}.btn-primary:after{content:"";pointer-events:none;background:linear-gradient(105deg,#0000 40%,#ffffff2e 50%,#0000 60%) 0 0/200%;animation:3s linear infinite shimmer-slide;position:absolute;inset:0}.empty-state{position:relative;overflow:hidden}.empty-state:before{content:"";pointer-events:none;background-color:#0000;background-image:radial-gradient(at 30% 40%,#9c7c3812 0%,#0000 60%),radial-gradient(at 70% 60%,#3b82f60d 0%,#0000 60%);background-position:0 0,0 0;background-repeat:repeat,repeat;background-size:200% 200%;background-attachment:scroll,scroll;background-origin:padding-box,padding-box;background-clip:border-box,border-box;animation:8s infinite aurora;position:absolute;inset:-50%}.empty-state .empty-icon{filter:drop-shadow(0 0 12px #9c7c3859);animation:3s ease-in-out infinite float-up}.mobile-kpi-card.accent{box-shadow:0 4px 20px -6px #9c7c3866}.workspace-header .icon-spin{animation:1s linear infinite spin}.widget-card{transition:transform .15s,box-shadow .15s!important}.widget-card:not(.is-placeholder):hover{transform:translateY(-1px);box-shadow:0 6px 24px -8px #0000001f,0 0 0 1px #9c7c381a!important}.btn-ghost{color:var(--text-muted);cursor:pointer;background:0 0;border:none;border-radius:8px;padding:6px 12px;font-size:13px;transition:color .15s,background .15s}.btn-ghost:hover{color:var(--text);background:var(--hover)}.sidebar-nav-item.active{position:relative}.sidebar-nav-item.active:before{content:"";background:linear-gradient(180deg, #9c7c384d, var(--gold), #9c7c384d);border-radius:0 3px 3px 0;width:3px;position:absolute;top:20%;bottom:20%;left:0}@keyframes header-scan-pulse{0%,to{box-shadow:0 0 #9c7c384d}50%{box-shadow:0 0 0 8px #9c7c3800}}@keyframes sparkle-twinkle{0%,to{opacity:0;transform:scale(.4)rotate(0)}50%{opacity:1;transform:scale(1)rotate(90deg)}}@keyframes sheen-sweep{0%{background-position:-150% 0}60%,to{background-position:250% 0}}.gold-sparkle{pointer-events:none;width:6px;height:6px;color:var(--gold,#c08a3e);animation:2.6s ease-in-out infinite sparkle-twinkle;position:absolute}.gold-sparkle:before,.gold-sparkle:after{content:"";background:currentColor;position:absolute;inset:0}.gold-sparkle:before{clip-path:polygon(50% 0%,60% 40%,100% 50%,60% 60%,50% 100%,40% 60%,0% 50%,40% 40%)}.ophir-wordmark{position:relative}.ophir-wordmark-flow{background-image:linear-gradient(100deg, var(--gold) 30%, #f2dca3 45%, var(--gold) 60%);background-size:250% 100%;-webkit-background-clip:text;background-clip:text;animation:3.5s ease-in-out .3s sheen-sweep}.btn-primary:hover:not(:disabled){box-shadow:0 4px 18px -4px var(--accent-shadow,#c08a3e59)}:is(.chat-welcome-icon,.mobile-action-icon:has(+span)){position:relative}.chat-welcome-icon:before,.chat-welcome-icon:after{content:"";background:var(--gold-light,#d2a85e);border-radius:50%;width:4px;height:4px;animation:2.2s ease-in-out infinite sparkle-twinkle;position:absolute}.chat-welcome-icon:before{animation-delay:.4s;top:-6px;right:-4px}.chat-welcome-icon:after{animation-delay:1.2s;bottom:-2px;left:-8px}.mobile-kpi-card:hover,.widget-card:hover{position:relative}.auth-logo{filter:drop-shadow(0 0 10px #c08a3e47)}@media (prefers-reduced-motion:reduce){.gold-sparkle,.ophir-wordmark-flow,.chat-welcome-icon:before,.chat-welcome-icon:after,.chat-welcome-icon,.empty-state .empty-icon,.empty-state:before{animation:none!important}}
