*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}:root{--ink: #1a1a2e;--ink-soft: #4a4a6a;--ink-faint: #9090b0;--cream: #f8f7f4;--cream-2: #eeebe4;--white: #ffffff;--teal: #2a7f7f;--teal-light: #e8f4f4;--teal-dark: #1d5f5f;--gold: #c8963c;--gold-light: #fdf5e8;--danger: #c0392b;--danger-bg: #fdf0ef;--success: #27ae60;--border: #dddad4;--radius: 10px;--radius-lg: 16px;--shadow-sm: 0 1px 4px rgba(26,26,46,.07);--shadow-md: 0 4px 16px rgba(26,26,46,.1);--shadow-lg: 0 12px 40px rgba(26,26,46,.15);--font-serif: "DM Serif Display", Georgia, serif;--font-sans: "DM Sans", system-ui, sans-serif;--safe-top: env(safe-area-inset-top, 0px);--safe-bot: env(safe-area-inset-bottom, 0px)}html{height:100%}body{height:100%;background:var(--cream);color:var(--ink);font-family:var(--font-sans);font-size:15px;line-height:1.6;-webkit-font-smoothing:antialiased;overscroll-behavior:none}#root,.app-shell{height:100%;display:flex;flex-direction:column}.app-header{background:var(--ink);color:var(--white);padding:calc(var(--safe-top) + .75rem) 1.25rem .75rem;display:flex;align-items:center;justify-content:space-between;flex-shrink:0;position:sticky;top:0;z-index:100}.header-brand h1{font-family:var(--font-serif);font-size:1.2rem;font-weight:400;line-height:1.2}.header-brand p{font-size:.7rem;color:#ffffff73;letter-spacing:.06em;text-transform:uppercase}.bottom-nav{background:var(--ink);display:flex;padding-bottom:var(--safe-bot);flex-shrink:0;border-top:1px solid rgba(255,255,255,.08)}.bottom-nav-btn{flex:1;background:none;border:none;color:#ffffff73;padding:.7rem .5rem;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:3px;font-family:var(--font-sans);font-size:.65rem;font-weight:500;letter-spacing:.04em;text-transform:uppercase;transition:color .15s;-webkit-tap-highlight-color:transparent}.bottom-nav-btn .nav-icon{font-size:1.2rem;line-height:1}.bottom-nav-btn.active{color:var(--teal)}.bottom-nav-btn:hover{color:#ffffffbf}.app-body{flex:1;overflow-y:auto;overflow-x:hidden;padding:1.25rem;-webkit-overflow-scrolling:touch}.card{background:var(--white);border:1px solid var(--border);border-radius:var(--radius-lg);padding:1.25rem;box-shadow:var(--shadow-sm);margin-bottom:1rem}.card:last-child{margin-bottom:0}.card-title{font-family:var(--font-serif);font-size:1.05rem;font-weight:400;color:var(--ink);margin-bottom:1.1rem;padding-bottom:.75rem;border-bottom:1px solid var(--cream-2);display:flex;align-items:center;gap:.5rem}.section-label{font-size:.65rem;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--teal);margin-bottom:.75rem}.field{margin-bottom:.9rem}.field:last-child{margin-bottom:0}label{display:block;font-size:.75rem;font-weight:500;color:var(--ink-soft);margin-bottom:.3rem;letter-spacing:.02em}input[type=text],input[type=email],input[type=password],input[type=number],input[type=date],textarea,select{width:100%;background:var(--cream);border:1px solid var(--border);border-radius:var(--radius);padding:.65rem .875rem;font-family:var(--font-sans);font-size:1rem;color:var(--ink);outline:none;transition:border-color .15s,box-shadow .15s,background .15s;-moz-appearance:none;appearance:none;-webkit-appearance:none}input:focus,textarea:focus,select:focus{border-color:var(--teal);box-shadow:0 0 0 3px #2a7f7f1f;background:var(--white)}input::placeholder{color:var(--ink-faint)}textarea{resize:vertical;min-height:70px}.field-row{display:grid;gap:.75rem}.cols-2{grid-template-columns:1fr 1fr}.invoice-number-input{display:flex;align-items:stretch;border:1px solid var(--border);border-radius:var(--radius);background:var(--cream);overflow:hidden}.invoice-number-input:focus-within{border-color:var(--teal);box-shadow:0 0 0 3px #2a7f7f1f;background:var(--white)}.invoice-prefix-chip{display:flex;align-items:center;padding:0 .6rem;background:var(--cream-2);color:var(--ink-soft);font-weight:600;font-size:.9rem;border-right:1px solid var(--border);flex-shrink:0}.invoice-number-input input[type=number]{border:none;background:none;box-shadow:none;border-radius:0}.invoice-number-input input[type=number]:focus{border:none;box-shadow:none;background:none}.cols-3{grid-template-columns:1fr 1fr 1fr}.btn{display:inline-flex;align-items:center;justify-content:center;gap:.4rem;padding:.65rem 1.25rem;border-radius:var(--radius);font-family:var(--font-sans);font-size:.9rem;font-weight:500;cursor:pointer;border:none;transition:all .15s;letter-spacing:.01em;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;user-select:none}.btn-primary{background:var(--teal);color:var(--white)}.btn-primary:hover,.btn-primary:active{background:var(--teal-dark)}.btn-secondary{background:var(--cream-2);color:var(--ink);border:1px solid var(--border)}.btn-secondary:hover{background:var(--cream)}.btn-ghost{background:none;color:var(--teal);padding:.4rem .65rem;font-size:.82rem}.btn-ghost:hover{background:var(--teal-light);border-radius:var(--radius)}.btn-danger{background:none;color:var(--danger);padding:.4rem .65rem;font-size:.82rem}.btn-danger:hover{background:var(--danger-bg);border-radius:var(--radius)}.btn-full{width:100%}.btn-lg{padding:.9rem 1.5rem;font-size:1rem;border-radius:var(--radius-lg)}.btn:disabled{opacity:.4;cursor:not-allowed}.overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#1a1a2e99;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);z-index:200;display:flex;align-items:flex-end}.sheet{background:var(--white);border-radius:var(--radius-lg) var(--radius-lg) 0 0;width:100%;max-height:92vh;overflow-y:auto;-webkit-overflow-scrolling:touch;padding-bottom:calc(var(--safe-bot) + 1.5rem);animation:slideUp .25s ease}@keyframes slideUp{0%{transform:translateY(40px);opacity:0}to{transform:translateY(0);opacity:1}}.sheet-handle{width:36px;height:4px;background:var(--cream-2);border-radius:2px;margin:.75rem auto 0}.sheet-body{padding:1.25rem}.client-dropdown{position:relative}.dropdown-list{position:absolute;top:calc(100% + 4px);left:0;right:0;background:var(--white);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-md);z-index:60;max-height:240px;overflow-y:auto;-webkit-overflow-scrolling:touch}.dropdown-item{padding:.75rem .875rem;cursor:pointer;transition:background .1s;border-bottom:1px solid var(--cream-2);-webkit-tap-highlight-color:transparent}.dropdown-item:last-child{border-bottom:none}.dropdown-item:hover,.dropdown-item:active{background:var(--cream)}.dropdown-item-name{font-weight:500;font-size:.9rem}.dropdown-item-addr{font-size:.75rem;color:var(--ink-faint);margin-top:1px}.dropdown-item-add{color:var(--teal);font-weight:500;font-size:.9rem;display:flex;align-items:center;gap:.4rem}.addr-results{margin-top:.5rem;border:1px solid var(--border);border-radius:var(--radius);overflow:hidden}.addr-result{padding:.7rem .875rem;cursor:pointer;font-size:.85rem;border-bottom:1px solid var(--cream-2);transition:background .1s;-webkit-tap-highlight-color:transparent}.addr-result:last-child{border-bottom:none}.addr-result:hover,.addr-result:active{background:var(--teal-light)}.session-row{background:var(--cream);border:1px solid var(--border);border-radius:var(--radius);padding:.875rem;margin-bottom:.6rem}.session-row-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:.65rem;font-size:.75rem;font-weight:600;color:var(--ink-soft);letter-spacing:.05em;text-transform:uppercase}.session-amount{font-size:1.05rem;font-weight:600;color:var(--ink);text-align:right;margin-top:.5rem;padding-top:.5rem;border-top:1px solid var(--border)}.totals-panel{background:var(--cream);border:1px solid var(--border);border-radius:var(--radius);padding:1rem;margin-top:.75rem}.totals-row{display:flex;justify-content:space-between;font-size:.875rem;color:var(--ink-soft);padding:.2rem 0}.totals-row.grand{font-size:1.1rem;font-weight:600;color:var(--ink);border-top:1px solid var(--border);margin-top:.5rem;padding-top:.6rem}.info-strip{background:var(--teal-light);border:1px solid rgba(42,127,127,.2);border-radius:var(--radius);padding:.65rem .875rem;font-size:.8rem;color:var(--teal-dark);display:flex;gap:.45rem;align-items:flex-start;margin-bottom:.875rem}.sheet-close{background:var(--cream-2);border:none;color:var(--ink-soft);width:30px;height:30px;border-radius:50%;cursor:pointer;font-size:1rem;display:flex;align-items:center;justify-content:center;flex-shrink:0}.cal-main-card{position:relative}.cal-toolbar{display:flex;align-items:center;margin-bottom:1rem}.cal-month-nav{flex:1;display:flex;justify-content:space-between;align-items:center}.cal-weekdays{display:grid;grid-template-columns:repeat(7,1fr);margin-bottom:.4rem}.cal-weekday{text-align:center;font-size:.65rem;font-weight:600;letter-spacing:.05em;text-transform:uppercase;color:var(--ink-faint)}.cal-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}.cal-cell{position:relative;min-width:0;min-height:80px;border-radius:var(--radius);background:var(--cream);border:1px solid var(--border);display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;transition:background .12s,border-color .12s;-webkit-tap-highlight-color:transparent;padding:4px 2px;overflow:hidden}.cal-cell-chase-btn,.cal-cell-toggle-btn{position:absolute;top:2px;width:18px;height:18px;border-radius:50%;border:none;background:#ffffffe6;box-shadow:0 1px 2px #1a1a2e2e;font-size:.62rem;line-height:1;display:flex;align-items:center;justify-content:center;padding:0;cursor:pointer;z-index:1;-webkit-tap-highlight-color:transparent}.cal-cell-chase-btn{left:3px}.cal-cell-toggle-btn{right:3px}.cal-cell-chase-btn:hover,.cal-cell-toggle-btn:hover{background:var(--white)}.cal-cell:hover{background:var(--teal-light)}.cal-cell-empty{background:none;border:none;cursor:default}.cal-cell-num{font-size:clamp(.62rem,3vw,.8rem);color:var(--ink-soft)}.cal-cell-today{border-color:var(--teal);border-width:2px}.cal-cell-today .cal-cell-num{color:var(--teal-dark);font-weight:700}.cal-cell-pending{background:var(--danger-bg);border-color:#c0392b4d}.cal-cell-received{background:#eaf7ef;border-color:#27ae604d}.cal-cell-mixed{background:var(--gold-light);border-color:#c8963c4d}.cal-cell-amount{font-size:clamp(.42rem,2.35vw,.58rem);font-weight:700;margin-top:1px;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:0 1px}.cal-cell-client{font-size:clamp(.36rem,2vw,.5rem);font-weight:500;max-width:100%;padding:0 1px;line-height:1.15;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;word-break:break-word;text-align:center}.status-pending{color:var(--danger)}.status-received{color:var(--success)}.status-mixed{color:#7a5a1a}.status-toggle-row{width:100%;display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin-top:.75rem;padding:.7rem .2rem .1rem;border-top:1px solid var(--cream-2);background:none;border-left:none;border-right:none;border-bottom:none;cursor:pointer;font-family:var(--font-sans);text-align:left;-webkit-tap-highlight-color:transparent}.status-toggle-label{font-size:.85rem;font-weight:600}.toggle-track{width:46px;height:26px;border-radius:999px;background:var(--border);position:relative;flex-shrink:0;transition:background .18s}.toggle-track.on{background:var(--success)}.toggle-knob{position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:var(--white);box-shadow:0 1px 3px #1a1a2e4d;transition:transform .18s}.toggle-track.on .toggle-knob{transform:translate(20px)}.cal-invoiced-pill{font-size:.65rem;color:var(--teal-dark);background:var(--teal-light);padding:.15rem .4rem;border-radius:20px;white-space:nowrap}.logged-list{border:1px solid rgba(42,127,127,.25);border-radius:var(--radius);overflow:hidden;margin-bottom:.75rem;background:var(--white)}.logged-item{display:flex;align-items:center;gap:.6rem;padding:.6rem .75rem;border-bottom:1px solid var(--cream-2);font-size:.85rem;cursor:pointer}.logged-item:last-child{border-bottom:none}.logged-item input[type=checkbox]{width:16px;height:16px;accent-color:var(--teal);flex-shrink:0}.logged-item-details{flex:1}.logged-item-amount{font-weight:600;color:var(--ink)}.client-card{background:var(--cream);border:1px solid var(--border);border-radius:var(--radius);padding:.875rem;margin-bottom:.6rem;display:flex;gap:.75rem;align-items:flex-start}.client-card-info{flex:1;min-width:0}.client-card-name{font-weight:600;font-size:.9rem;margin-bottom:.15rem}.client-card-addr{font-size:.78rem;color:var(--ink-soft);line-height:1.4}.client-card-actions{display:flex;flex-direction:column;gap:.25rem;flex-shrink:0}.spinner{width:16px;height:16px;border:2px solid rgba(255,255,255,.3);border-top-color:#fff;border-radius:50%;animation:spin .7s linear infinite;display:inline-block}.spinner-dark{border-color:#2a7f7f33;border-top-color:var(--teal)}@keyframes spin{to{transform:rotate(360deg)}}.toast-container{position:fixed;top:calc(var(--safe-top) + 70px);left:1rem;right:1rem;z-index:999;display:flex;flex-direction:column;gap:.5rem;pointer-events:none}.toast{background:var(--ink);color:var(--white);padding:.75rem 1rem;border-radius:var(--radius);font-size:.875rem;box-shadow:var(--shadow-lg);animation:toastIn .2s ease;display:flex;align-items:center;gap:.5rem}.toast.success{background:var(--success)}.toast.error{background:var(--danger)}@keyframes toastIn{0%{transform:translateY(-8px);opacity:0}to{transform:translateY(0);opacity:1}}.step-pills{display:flex;gap:.4rem;margin-bottom:1.25rem}.step-pill{flex:1;height:4px;border-radius:2px;background:var(--cream-2);transition:background .2s}.step-pill.done{background:var(--teal)}.step-pill.active{background:var(--gold)}.empty-state{text-align:center;padding:2.5rem 1rem;color:var(--ink-faint)}.empty-state-icon{font-size:2.5rem;margin-bottom:.75rem}.empty-state p{font-size:.875rem}hr{border:none;border-top:1px solid var(--cream-2);margin:1rem 0}.text-muted{color:var(--ink-faint);font-size:.8rem}.flex-between{display:flex;justify-content:space-between;align-items:center}.mt-1{margin-top:.5rem}.tst-card{padding-bottom:1rem}.tst-quote{font-family:var(--font-serif);font-size:1.05rem;line-height:1.5;color:var(--ink);margin-bottom:.6rem}.tst-meta{display:flex;justify-content:space-between;align-items:center;gap:.75rem;font-size:.8rem;color:var(--ink-soft);flex-wrap:wrap}.tst-link{color:var(--teal);font-weight:500;text-decoration:none;white-space:nowrap}.tst-link:hover{text-decoration:underline}.tst-draft{border-top:1px solid var(--cream-2);padding-top:1rem;margin-top:.25rem}.tst-draft:first-of-type{border-top:none;padding-top:0;margin-top:0}.auth-error{background:var(--danger-bg);color:var(--danger);border:1px solid rgba(192,57,43,.25);border-radius:var(--radius);padding:.65rem .875rem;font-size:.85rem;margin-bottom:.9rem}.auth-links{display:flex;flex-direction:column;align-items:center;gap:.25rem;margin-top:1rem}
