:root{--blue:#2563eb;--blue-dark:#1d4ed8;--ink:#172338;--muted:#64748b;--line:#e2e8f0;--button-height:44px;--button-icon-size:18px;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}html{--text-scale:1;font-size:calc(100% * var(--text-scale))}html[data-text-size=small]{--text-scale:.9}html[data-text-size=large]{--text-scale:1.15}html[data-text-size=extra-large]{--text-scale:1.3}*,:before,:after{box-sizing:border-box}html,body{height:100%;overflow:hidden}body{color:var(--ink);-webkit-font-smoothing:antialiased;background:#fff;margin:0;font-family:Inter,ui-sans-serif,system-ui,sans-serif;font-size:.875rem;line-height:1.45}h1,h2,p{margin:0}button,input,select,textarea{font:inherit;color:inherit}img{display:block}:focus-visible{outline-offset:2px;outline:3px solid #2563eb47}.muted{color:var(--muted)}.nowrap{white-space:nowrap}.btn{height:var(--button-height);white-space:nowrap;cursor:pointer;border:1px solid #0000;border-radius:10px;justify-content:center;align-items:center;gap:8px;padding:0 14px;font-size:.8125rem;font-weight:650;transition:background-color .15s,border-color .15s;display:inline-flex}.btn svg,.link svg,.icon-btn svg,.tabs svg,.auth-tabs svg{width:var(--button-icon-size);height:var(--button-icon-size);flex:none}.btn:disabled{opacity:.65;cursor:wait}.btn.primary{background:var(--blue);color:#fff}.btn.primary:hover:not(:disabled){background:var(--blue-dark)}.btn.secondary{color:#334155;background:#fff;border-color:#d6deea}.btn.secondary:hover{background:#eff6ff}.btn.danger{color:#b91c1c;background:#fef2f2;border-color:#fecaca}.btn.danger:hover:not(:disabled){background:#fee2e2}.btn.light{color:var(--blue-dark);background:#fff}.btn.light:hover{background:#eff6ff}.btn.full{width:100%}.icon-btn{color:#334155;cursor:pointer;background:#fff;border:1px solid #d6deea;border-radius:10px;flex:none;place-items:center;width:40px;height:40px;display:inline-grid}.icon-btn:hover{background:#eff6ff}.link{color:var(--blue);cursor:pointer;background:0 0;border:0;align-items:center;gap:6px;padding:0;font-weight:650;display:inline-flex}.link:hover{color:var(--blue-dark);text-decoration:underline}.field{flex-direction:column;gap:6px;min-width:0;display:flex}.field-label{color:#334155;font-size:.75rem;font-weight:650}.input-wrap,.search{background:#fff;border:1px solid #d6deea;border-radius:10px;align-items:center;min-width:0;transition:border-color .15s,box-shadow .15s;display:flex;position:relative}.input-wrap:focus-within,.search:focus-within,.time-input:focus{border-color:#5793ff;box-shadow:0 0 0 3px #1769f517}.input-icon{color:#7c89ad;flex:none;width:17px;height:17px;margin-left:12px}.input-wrap input,.input-wrap textarea,.search input{background:0 0;border:0;border-radius:10px;outline:none;width:100%;min-width:0;height:42px;padding:0 12px 0 10px}.textarea-wrap{align-items:flex-start}.textarea-wrap .input-icon{margin-top:12px}.input-wrap textarea{resize:vertical;height:auto;min-height:44px;padding:10px}input:disabled{cursor:not-allowed;background:#f8fafc}select{cursor:pointer;background:#fff;border:1px solid #d6deea;border-radius:10px;height:40px;padding:0 10px}select:disabled{opacity:.6;cursor:wait}input[type=checkbox]{width:16px;height:16px;accent-color:var(--blue);cursor:pointer}.message{border-radius:10px;padding:10px 14px;font-weight:500}.message.error{color:#a32727;background:#fff0f0}.message.success{color:#087b50;background:#e8f8ef}.auth-shell{background:#f8fafc;place-items:center;height:100%;padding:24px;display:grid;overflow-y:auto}.auth-card{border:1px solid var(--line);background:#fff;border-radius:18px;width:100%;max-width:440px;padding:36px;box-shadow:0 14px 45px #0f172a12}.auth-logo{width:185px;height:auto;margin-bottom:26px}.auth-card h1{color:#0f172a;font-size:1.625rem;font-weight:750}.auth-card>.muted{margin-top:4px}.auth-tabs{border:1px solid var(--line);border-radius:12px;grid-template-columns:1fr 1fr;gap:4px;margin:24px 0 20px;padding:4px;display:grid}.auth-tabs button{height:40px;color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:9px;justify-content:center;align-items:center;gap:8px;font-weight:650;display:inline-flex}.auth-tabs button.active{color:#1d4ed8;background:#eff6ff}.auth-form{flex-direction:column;gap:16px;display:flex}.auth-foot{text-align:center;color:var(--muted);margin-top:20px}.page-shell{flex-direction:column;height:100dvh;display:flex}.app-header{background:var(--blue);color:#fff;flex:none;justify-content:space-between;align-items:center;gap:16px;height:68px;padding:0 28px;display:flex}.header-logo{background:#fff;border-radius:8px;padding:4px 8px;box-shadow:0 0 0 4px #fff}.header-logo img{width:148px;height:24px}.header-user{align-items:center;gap:16px;font-weight:600;display:flex}.list-panel{flex-direction:column;flex:1;gap:18px;min-height:0;padding:28px;display:flex}.section-heading{align-items:center;gap:14px;display:flex}.heading-icon{width:44px;height:44px;color:var(--blue);background:#eff6ff;border-radius:12px;flex:none;place-items:center;display:grid}.heading-icon svg{width:22px;height:22px}.section-heading h1{color:#0f172a;font-size:1.5rem;font-weight:750}.toolbar{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.toolbar .search{flex:320px;max-width:460px}.counter{color:var(--muted);margin-left:auto;font-weight:600}.app-footer{text-align:center;color:var(--muted);flex:none;font-size:.75rem}.table-wrap{border:1px solid var(--line);border-radius:12px;overflow:auto}.main-table{flex:1;min-height:0}table{border-collapse:collapse;width:100%}th{z-index:1;border-bottom:1px solid var(--line);color:#475569;letter-spacing:.045em;text-align:left;text-transform:uppercase;white-space:nowrap;background:#f8fafc;padding:12px 16px;font-size:.6875rem;font-weight:700;position:sticky;top:0}td{color:#334155;vertical-align:middle;border-bottom:1px solid #eef2f7;padding:14px 16px;font-size:.8125rem}tbody tr:last-child td{border-bottom:0}tbody tr:hover td{background:#f8fbff}tbody tr.selected td{background:#eff6ff}.check-col{width:44px}.name-cell{color:#0f172a;white-space:nowrap;font-weight:650}.note-cell{text-overflow:ellipsis;white-space:nowrap;max-width:260px;overflow:hidden}td.empty{text-align:center;color:var(--muted);padding:36px 16px}.cake{vertical-align:middle;color:#d97706;stroke-width:2.5px;width:19px;height:19px;margin:-3px 8px 0 0}.status-select{height:34px;font-size:.8125rem}.compact td,.compact th{padding:10px 14px}.calendar-panel{flex-direction:column;flex:1;gap:14px;min-height:0;padding:24px 28px;display:flex}.calendar-top{justify-content:space-between;align-items:flex-start;gap:16px;display:flex}.eyebrow{color:var(--blue);letter-spacing:.08em;font-size:.6875rem;font-weight:750}.calendar-top h1{color:#0f172a;margin-top:4px;font-size:1.5rem;font-weight:750}.month-header{justify-content:center;align-items:center;gap:18px;display:flex}.month-header h2{text-align:center;min-width:210px;font-size:1.125rem;font-weight:700}.calendar-grid{flex:1;grid-template-rows:auto repeat(6,minmax(0,1fr));grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;min-height:0;display:grid}.weekday{text-align:center;color:var(--muted);font-size:.75rem;font-weight:700}.day{border:1px solid var(--line);text-align:left;background:#fff;border-radius:10px;flex-direction:column;justify-content:space-between;align-items:flex-start;min-height:0;padding:8px 10px;display:flex;overflow:hidden}button.day{cursor:pointer;transition:background-color .15s,border-color .15s}.day.blank{background:0 0;border-color:#0000}.day.no-visits:hover{background:#f8fbff;border-color:#bfd3fb}.day.has-visits{background:#eff6ff;border-color:#dbe7ff}.day.has-visits:hover{border-color:#93b4f7}.day-number{font-weight:700}.day-count{color:var(--blue);font-size:.75rem;font-weight:650}.day[aria-current=date] .day-number{color:var(--blue)}.day.selected{border-color:var(--blue);background:var(--blue);color:#fff;outline:3px solid var(--blue);outline-offset:1px}.day.selected .day-number,.day.selected .day-count{color:#fff}.calendar-legend{color:var(--muted);justify-content:space-between;align-items:center;gap:12px;display:flex}.legend-swatch{vertical-align:-1px;background:#eff6ff;border:1px solid #dbe7ff;border-radius:3px;width:12px;height:12px;margin-right:6px;display:inline-block}.backdrop{z-index:20;background:#141e3747;animation:.2s fade-in;position:fixed;inset:0}.drawer{z-index:30;background:#fff;flex-direction:column;gap:18px;width:80vw;height:100dvh;padding:24px 28px;animation:.32s cubic-bezier(.2,.75,.25,1) slide-in;display:flex;position:fixed;top:0;right:0;overflow-y:auto;box-shadow:-18px 0 48px #142a5833}.drawer-head{align-items:flex-start;gap:14px;display:flex}.drawer-head h2{color:#0f172a;margin:4px 0 2px;font-size:1.375rem;font-weight:750}.drawer-head strong{color:var(--ink)}.visit-form{grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:14px;display:grid}.full-row{grid-column:1/-1}.time-row{align-items:center;gap:10px;display:flex}.time-input{text-align:center;border:1px solid #d6deea;border-radius:10px;outline:none;width:92px;height:42px;padding:0 12px}.note-row{align-items:flex-end;gap:10px;display:flex}.note-row .input-wrap{flex:1}.has-suggestions .input-wrap{position:relative}.suggestions{z-index:100;background:#fff;border:1px solid #d7dfea;border-radius:12px;width:max(100%,320px);max-height:min(230px,35vh);position:absolute;top:calc(100% + 6px);left:-1px;overflow-y:auto;box-shadow:0 16px 36px #0f172a24}.suggestions-title{color:var(--muted);padding:9px 12px;font-size:.6875rem;font-weight:650}.suggestion{text-align:left;cursor:pointer;background:#fff;border:0;border-top:1px solid #edf0f5;align-items:center;gap:10px;width:100%;padding:9px 12px;display:flex}.suggestion:hover,.suggestion:focus-visible{background:#eaf2ff}.suggestion svg{color:#7c89ad;flex:none;width:16px;height:16px}.suggestion span{flex-direction:column;min-width:0;display:flex}.suggestion strong{color:#0f172a;font-weight:650}.suggestion small{color:var(--muted);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.tabs{border-bottom:1px solid var(--line);gap:6px;display:flex}.tabs button{color:var(--muted);cursor:pointer;background:0 0;border:0;border-bottom:2px solid #0000;align-items:center;gap:8px;margin-bottom:-1px;padding:10px 14px;font-weight:650;display:inline-flex}.tabs button.active{border-bottom-color:var(--blue);color:var(--blue-dark)}.history{flex-direction:column;gap:12px;display:flex}.history .search{max-width:420px}.settings-overlay{z-index:50;background:#f8fafc;position:fixed;inset:0;overflow-y:auto}.settings-inner{flex-direction:column;gap:12px;max-width:860px;margin:0 auto;padding:32px 24px;display:flex}.settings-head{justify-content:space-between;align-items:center;gap:16px;margin-bottom:10px;display:flex}.settings-head h1{color:#0f172a;align-items:center;gap:10px;font-size:1.5rem;font-weight:750;display:flex}.settings-head h1 svg{width:24px;height:24px;color:var(--blue)}.option-card{border:1px solid var(--line);background:#fff;border-radius:12px;justify-content:space-between;align-items:center;gap:12px 24px;padding:22px;display:flex}.option-card h2{color:#0f172a;font-size:1rem;font-weight:700}.option-card p{max-width:560px;margin-top:4px}.option-card input:not([type=checkbox]){border:1px solid #d6deea;border-radius:10px;width:200px;height:40px;padding:0 12px}.option-card select{min-width:160px}.option-card input[type=checkbox]{flex:none;width:24px;height:24px}@keyframes slide-in{0%{transform:translate(100%)}to{transform:none}}@keyframes fade-in{0%{opacity:0}to{opacity:1}}@media (prefers-reduced-motion:reduce){*,:before,:after{transition:none!important;animation:none!important}}@media (max-width:1000px){.note-cell{max-width:160px}}@media (max-width:750px){.app-header{height:60px;padding:0 16px}.header-user>span{display:none}.list-panel,.calendar-panel{padding:18px 16px}.toolbar .search{flex-basis:100%;max-width:none}.counter{margin-left:0}.drawer{padding:18px 16px}}@media (max-width:650px){.drawer{width:100vw}}@media (max-width:600px){.visit-form{grid-template-columns:1fr}.calendar-grid{gap:4px}.day{padding:4px 6px}.day-count{font-size:.625rem}.option-card{flex-direction:column;align-items:flex-start}.note-row{flex-direction:column;align-items:stretch}}@media (max-width:480px){.header-logo img{width:118px;height:auto}.auth-card{padding:26px 20px}.auth-logo{width:150px}}
