:root{--primary: #3b82f6;--primary-hover: #2563eb;--bg-app: #f0f7ff;--bg-card: #ffffff;--text-main: #1e293b;--text-muted: #64748b;--border: #e2e8f0;--radius-lg: 16px;--radius-md: 12px;--shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;color:var(--text-main);background-color:var(--bg-app)}*{box-sizing:border-box;margin:0;padding:0}body{height:100vh;overflow:hidden}#root{height:100%}body.public-body{height:auto;overflow:auto}#root.public-root{height:auto;min-height:100vh}.app-container{display:flex;flex-direction:column;height:100vh;padding:24px;gap:24px}header{display:flex;justify-content:space-between;align-items:center;background:var(--bg-card);padding:12px 24px;border-radius:var(--radius-lg);box-shadow:var(--shadow)}.header-left,.header-right{display:flex;align-items:center}.header-left{gap:24px;min-width:0}.header-right{gap:12px;flex-shrink:0}.logo-section{display:flex;align-items:center;gap:12px;font-weight:700;font-size:1.25rem;color:#1e3a8a}.nav-top{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.nav-top button{background:none;border:none;color:var(--text-muted);font-weight:500;cursor:pointer;padding:8px 16px;border-radius:999px;transition:all .2s}.nav-top button.active{background:#dbeafe;color:var(--primary)}.logout-button{background:none;border:1px solid var(--border);color:var(--text-muted);font-weight:600;cursor:pointer;padding:8px 14px;border-radius:999px;transition:all .2s}.logout-button:hover{border-color:#93c5fd;color:var(--primary);background:#eff6ff}.user-avatar{width:40px;height:40px;border-radius:50%;background:#e2e8f0;overflow:hidden}.user-avatar img{width:100%;height:100%;object-fit:cover}.avatar-menu{position:relative}.avatar-button{border:none;background:none;padding:0;cursor:pointer;border-radius:999px}.avatar-button:focus-visible{outline:2px solid #93c5fd;outline-offset:3px}.avatar-menu-dropdown{position:absolute;top:calc(100% + 10px);right:0;min-width:160px;padding:8px;border:1px solid var(--border);border-radius:14px;background:#fff;box-shadow:0 18px 36px -24px #0f172a66;z-index:20}.avatar-menu-dropdown button{width:100%;border:none;background:transparent;color:var(--text-main);text-align:left;padding:10px 12px;border-radius:10px;font:inherit;cursor:pointer}.avatar-menu-dropdown button:hover{background:#eff6ff;color:#1d4ed8}.main-layout{display:flex;flex:1;gap:24px;min-height:0}.sidebar{width:280px;display:flex;flex-direction:column;gap:24px;min-height:0;overflow-y:auto;padding-right:4px}.sidebar-card{background:var(--bg-card);padding:24px;border-radius:var(--radius-lg);box-shadow:var(--shadow)}.upcoming-meetings h3{font-size:.9rem;color:var(--text-muted);margin-bottom:16px;text-transform:uppercase;letter-spacing:.05em}.upcoming-meetings{display:flex;flex-direction:column}.upcoming-list{display:flex;flex-direction:column;gap:14px}.upcoming-item{display:grid;grid-template-columns:8px minmax(0,1fr);column-gap:12px;row-gap:8px;align-items:flex-start;font-size:.85rem;padding:10px 0;border-top:1px solid #e2e8f0}.upcoming-item-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}.upcoming-item-main span{display:block;font-weight:600;color:var(--text-main)}.upcoming-item-main small{color:var(--text-muted);font-size:.76rem;line-height:1.35}.upcoming-marker{width:8px;height:8px;border-radius:999px;background:var(--primary);flex:0 0 auto;margin-top:6px}.upcoming-item .badge{grid-column:2;justify-self:start}.upcoming-calendar-shell{display:flex;flex-direction:column;gap:10px;padding-bottom:10px;border-bottom:1px solid #e2e8f0}.upcoming-calendar-header{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:.82rem;color:var(--text-main)}.mini-calendar-nav{width:28px;height:28px;border:1px solid var(--border);border-radius:999px;background:#fff;color:var(--text-main);cursor:pointer}.mini-calendar-weekdays,.mini-calendar-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:4px}.mini-calendar-weekdays span{text-align:center;font-size:.68rem;font-weight:700;color:var(--text-muted);text-transform:uppercase}.mini-calendar-day{min-height:30px;border:1px solid transparent;border-radius:9px;background:#f8fafc;color:#94a3b8;font-size:.78rem;font-weight:600;cursor:default}.mini-calendar-day.has-meetings{background:#dbeafe;color:#1d4ed8;border-color:#93c5fd;cursor:pointer}.mini-calendar-day.selected{background:#1d4ed8;color:#fff;border-color:#1d4ed8}.mini-calendar-day.empty{background:transparent}.mini-calendar-day:disabled{opacity:1}.upcoming-filter-row{display:flex;gap:8px;flex-wrap:wrap}.upcoming-filter-chip{border:1px solid var(--border);border-radius:999px;padding:6px 10px;background:#fff;color:var(--text-muted);font-size:.74rem;font-weight:700;cursor:pointer}.upcoming-filter-chip.active{border-color:#93c5fd;background:#dbeafe;color:#1d4ed8}.upcoming-day-group{display:flex;flex-direction:column}.upcoming-day-heading{font-size:.74rem;font-weight:800;color:#475569;text-transform:uppercase;letter-spacing:.05em;margin-bottom:2px}.content-area{flex:1;background:var(--bg-card);border-radius:var(--radius-lg);box-shadow:var(--shadow);padding:32px;overflow-y:auto;display:flex;flex-direction:column;gap:24px}.content-area-compact{padding:24px;gap:18px}h2{font-size:1.5rem;font-weight:700;color:#1e3a8a}.subtitle{color:var(--text-muted);font-size:.95rem}.form-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(320px,1fr);gap:32px;flex:1;min-width:0}.form-grid-compact{gap:22px;align-items:start}.form-section{display:flex;flex-direction:column;gap:24px;padding:24px;border:1px solid var(--border);border-radius:var(--radius-lg);min-width:0;width:100%;overflow:hidden}.form-grid-compact .form-section,.form-grid-compact .preview-section{padding:20px}.form-grid-compact .form-section{gap:16px}.form-grid-compact>*{min-width:0}.form-group{display:flex;flex-direction:column;gap:8px;min-width:0}.form-row{display:grid;gap:14px;align-items:start;width:100%;min-width:0}.form-row-people-duration{grid-template-columns:minmax(0,3fr) minmax(0,2fr)}.form-group-people{min-width:0}.form-group-duration{align-self:start;min-width:0;width:100%;max-width:100%;justify-self:stretch}.form-group label{font-weight:600;font-size:.9rem}.people-autocomplete{position:relative;width:100%}.people-autocomplete>input[type=text]{display:block;width:100%;box-sizing:border-box}.people-picker-dropdown{position:absolute;top:calc(100% + 8px);left:0;right:0;z-index:20;display:flex;flex-direction:column;gap:8px;max-height:180px;overflow-y:auto;padding:10px;background:#fff;border:1px solid #dbeafe;border-radius:16px;box-shadow:0 20px 40px -28px #0f172a73}.people-picker-item{display:flex;align-items:center;gap:12px;padding:12px 14px;border:1px solid var(--border);border-radius:var(--radius-md);background:linear-gradient(180deg,#fff,#f8fbff);cursor:pointer;transition:border-color .2s,box-shadow .2s,transform .2s,background .2s}.people-picker-item:hover{border-color:#93c5fd;box-shadow:0 10px 24px -18px #2563eb73;transform:translateY(-1px)}.people-picker-item.selected{border-color:#60a5fa;background:linear-gradient(180deg,#eff6ff,#dbeafe);box-shadow:0 12px 28px -20px #2563eb8c}.people-picker-item input[type=checkbox]{width:18px;height:18px;accent-color:var(--primary);flex:0 0 auto}.people-picker-item span{font-size:.88rem;font-weight:500}.case-picker-item{width:100%;text-align:left;-webkit-appearance:none;-moz-appearance:none;appearance:none;font:inherit;color:inherit}.case-picker-title{display:block;font-size:.88rem;font-weight:700;color:var(--text)}.case-picker-meta{display:block;margin-top:4px;font-size:.8rem;font-weight:500;color:var(--text-muted)}.people-picker-empty{color:var(--text-muted);font-size:.88rem;padding:8px 6px}.selected-case-summary{margin-top:10px;padding:10px 12px;border:1px solid #dbeafe;border-radius:var(--radius-md);background:#eff6ff;color:#1e3a8a;font-size:.84rem}.selected-people{display:flex;flex-wrap:wrap;gap:8px;min-height:24px;max-height:78px;overflow-y:auto;overflow-x:hidden;padding-right:4px;align-content:flex-start}.selected-person-chip{display:inline-flex;align-items:center;gap:10px;border:1px solid #bfdbfe;background:linear-gradient(180deg,#eff6ff,#dbeafe);color:#1d4ed8;border-radius:999px;padding:7px 11px;font-size:.82rem;font-weight:600;cursor:pointer;transition:transform .2s,box-shadow .2s,border-color .2s}.selected-person-chip:hover{border-color:#60a5fa;box-shadow:0 10px 24px -18px #2563eb8c;transform:translateY(-1px)}.selected-person-chip strong{font-size:.95rem;line-height:1}.checkbox-group{display:flex;gap:24px;flex-wrap:wrap}.checkbox-item{display:flex;align-items:center;gap:8px;font-size:.9rem}.radio-group{display:flex;gap:24px}.radio-item{display:flex;align-items:center;gap:8px;font-size:.9rem}.duration-stepper{display:grid;grid-template-columns:40px minmax(0,1fr) 40px;gap:8px;align-items:center;width:100%;min-width:0}.stepper-btn{border:1px solid #bfdbfe;background:linear-gradient(180deg,#eff6ff,#dbeafe);color:#1d4ed8;border-radius:var(--radius-md);min-height:38px;font-size:1.1rem;font-weight:700;cursor:pointer;transition:transform .2s,box-shadow .2s,border-color .2s}.stepper-btn:hover{border-color:#60a5fa;box-shadow:0 10px 24px -18px #2563eb8c;transform:translateY(-1px)}.duration-display{min-height:38px;border:1px solid #bfdbfe;border-radius:var(--radius-md);background:linear-gradient(180deg,#fff,#eff6ff);box-shadow:inset 0 1px #ffffffbf;text-align:center;font-weight:700;color:#1e3a8a;letter-spacing:.01em;padding:8px 10px;width:100%;min-width:0;font-size:.84rem;text-overflow:ellipsis}.availability-selector-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,300px);gap:18px;align-items:start}.availability-range-card,.availability-actions-card{border:1px solid var(--border);border-radius:var(--radius-lg);background:#fff;padding:18px}.availability-range-card{display:flex;flex-direction:column;gap:16px}.availability-range-header{display:flex;align-items:start}.availability-range-summary{display:flex;justify-content:center;align-items:center;gap:8px;padding-top:4px;color:#1e3a8a;font-size:.88rem}.availability-range-summary strong{font-size:.94rem}.availability-range-summary span{color:var(--text-muted);font-size:.8rem}.availability-range-calendar{display:flex;flex-direction:column;gap:12px;padding:12px 0 0;border-top:1px solid #e2e8f0}.availability-range-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:.82rem;color:var(--text-main)}.availability-range-toolbar strong{font-size:.82rem;color:var(--text-main);text-transform:capitalize}.availability-range-weekdays,.availability-range-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:4px}.availability-range-weekdays span{text-align:center;font-size:.68rem;font-weight:700;color:var(--text-muted);text-transform:uppercase;letter-spacing:.03em}.calendar-nav-btn{width:28px;height:28px;border:1px solid var(--border);border-radius:999px;background:#fff;color:var(--text-main);cursor:pointer}.availability-range-day{min-height:30px;border:1px solid transparent;border-radius:9px;background:#f8fafc;color:#94a3b8;font-size:.78rem;font-weight:700;cursor:pointer;-webkit-user-select:none;user-select:none;box-shadow:none;transition:background .18s,border-color .18s,color .18s}.availability-range-day:hover{border-color:#bfdbfe;color:#1d4ed8}.availability-range-day.is-in-range{background:#dbeafe;border-color:#93c5fd;color:#1e3a8a}.availability-range-day.is-range-start,.availability-range-day.is-range-end,.availability-range-day.is-single-day{background:#1d4ed8;border-color:#1d4ed8;color:#fff}.availability-range-day-empty{display:block;min-height:42px}.availability-actions-card{border:none;border-radius:0;background:transparent;padding:0;display:flex;flex-direction:column;gap:0}.availability-actions-column{display:flex;flex-direction:column;gap:14px}input[type=text],input[type=number],input[type=date],input[type=datetime-local],input[type=email],input[type=password],input[type=time],select{padding:9px 14px;border:1px solid var(--border);border-radius:var(--radius-md);font-size:.88rem;background:linear-gradient(180deg,#fff,#f8fafc);color:var(--text-main);transition:border-color .2s,box-shadow .2s,background .2s}input[type=text]:focus,input[type=number]:focus,input[type=date]:focus,input[type=datetime-local]:focus,input[type=email]:focus,input[type=password]:focus,input[type=time]:focus,select:focus{outline:none;border-color:#93c5fd;box-shadow:0 0 0 4px #3b82f61f;background:#fff}input::placeholder{color:#94a3b8}.btn-primary{background:var(--primary);color:#fff;border:none;padding:10px 20px;border-radius:var(--radius-md);font-weight:600;cursor:pointer;align-self:center;transition:background .2s}.btn-primary:hover{background:var(--primary-hover)}.btn-primary:disabled{opacity:.9;cursor:wait}.btn-secondary,.btn-danger{border:none;padding:10px 14px;border-radius:var(--radius-md);font-weight:600;cursor:pointer;transition:filter .2s,transform .2s}.btn-secondary{background:#e2e8f0;color:#334155}.btn-danger{background:#ef4444;color:#fff}.btn-secondary:hover,.btn-danger:hover{filter:brightness(.98);transform:translateY(-1px)}.btn-primary-wide{width:100%;justify-content:center;display:inline-flex;align-items:center;gap:10px;align-self:stretch}.btn-spinner{width:16px;height:16px;border:2px solid rgb(255 255 255 / .35);border-top-color:#fff;border-radius:999px;animation:btn-spin .8s linear infinite}@keyframes btn-spin{to{transform:rotate(360deg)}}.preview-section{background:#fffcf8;border:1px solid #fee2e2;border-radius:var(--radius-lg);padding:20px;display:flex;flex-direction:column;gap:14px}.schedule-layout{display:grid;grid-template-columns:minmax(300px,360px) minmax(0,1fr);gap:20px;min-width:0;align-items:start}.schedule-editor{display:grid;grid-template-columns:1fr;gap:14px}.schedule-toggle{display:inline-flex;align-items:center;gap:10px;font-size:.9rem;font-weight:600}.schedule-actions{display:flex;gap:10px;flex-wrap:wrap}.schedule-person-header{display:flex;flex-direction:column;gap:4px}.schedule-item{align-items:center}.schedule-item-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.schedule-history-panel{grid-column:1 / -1}.schedule-history-table-wrap{border:1px solid var(--border);border-radius:var(--radius-md);overflow:hidden;background:#fff}.schedule-history-table{width:100%;border-collapse:collapse;table-layout:fixed}.schedule-history-table th,.schedule-history-table td{padding:8px 10px;border-bottom:1px solid #e2e8f0;text-align:left;vertical-align:top;font-size:.84rem;line-height:1.25}.schedule-history-table th{background:#f8fafc;color:#475569;font-size:.76rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em}.schedule-history-table tbody tr:last-child td{border-bottom:none}.schedule-history-table th:nth-child(1),.schedule-history-table td:nth-child(1){width:110px}.schedule-history-table th:nth-child(2),.schedule-history-table td:nth-child(2){width:170px}.schedule-history-table th:nth-child(3),.schedule-history-table td:nth-child(3){width:170px}.profile-summary-card{align-items:center}.profile-summary-main{display:flex;flex-direction:column;gap:4px}.profile-password-section{max-width:520px}.profile-password-form{display:flex;flex-direction:column;gap:16px}.settings-user-main{flex:1;min-width:0}.settings-user-password-row{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}.settings-user-password-row input{flex:1;min-width:220px}.settings-user-actions{display:flex;align-items:center}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#0f172a61;display:flex;align-items:center;justify-content:center;padding:24px;z-index:100}.modal-card{width:min(460px,100%);background:#fff;border-radius:20px;box-shadow:0 24px 60px -30px #0f172a80;border:1px solid #dbeafe;padding:24px;display:flex;flex-direction:column;gap:12px}.modal-actions{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap;margin-top:8px}.preview-section h3{font-size:1.1rem}.calendar-mock{border-top:1px solid #e2e8f0;padding-top:12px}.calendar-days{display:grid;grid-template-columns:repeat(auto-fit,minmax(72px,1fr));gap:8px}.calendar-day{border:1px solid var(--border);background:#f8fafc;border-radius:12px;padding:10px 8px;display:flex;flex-direction:column;gap:6px;align-items:center;color:var(--text-muted);cursor:default}.calendar-day.available{background:#ecfdf5;border-color:#86efac;color:#166534;cursor:pointer}.calendar-day.selected{background:#dbeafe;border-color:#60a5fa;color:#1d4ed8}.calendar-day strong{font-size:1.1rem}.preview-day-detail{margin-top:16px;display:flex;flex-direction:column;gap:12px}.preview-day-header{font-weight:700;color:#1e3a8a}.calendar-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px;font-weight:600}.calendar-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;text-align:center;font-size:.8rem}.day-name{color:var(--text-muted);font-weight:600;margin-bottom:8px}.day{padding:8px;border-radius:4px}.day.available{background:#dcfce7;color:#166534;cursor:pointer}.time-slots{display:flex;flex-direction:column;gap:8px;margin-top:16px}.time-slots.grouped{gap:16px}.time-slot{padding:10px;background:#f1f5f9;border:1px solid var(--border);border-radius:var(--radius-md);text-align:center;font-size:.9rem;cursor:pointer}.time-slot.compact{padding:8px 10px;font-size:.85rem;cursor:default}.person-slot-group{display:flex;flex-direction:column;gap:8px}.person-slot-title{font-weight:600}.person-slot-list{display:flex;flex-wrap:wrap;gap:8px}.auth-container{height:100vh;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#dbeafe,#eff6ff)}.auth-card{background:#fff;padding:40px;border-radius:24px;box-shadow:0 20px 25px -5px #0000001a;width:100%;max-width:400px;display:flex;flex-direction:column;gap:24px}.auth-card h1{text-align:center;color:#1e3a8a}.alert{background:#fee2e2;color:#991b1b;padding:12px;border-radius:var(--radius-md);font-size:.85rem}.alert-success{background:#dcfce7;color:#166534}.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:24px}.stat-card{background:#f8fafc;padding:20px;border-radius:var(--radius-md);border:1px solid var(--border)}.stat-card .label{color:var(--text-muted);font-size:.85rem;margin-bottom:8px}.stat-card .value{font-size:1.5rem;font-weight:700}.list-container{display:flex;flex-direction:column;gap:16px}.item-card{padding:16px;border:1px solid var(--border);border-radius:var(--radius-md);display:flex;justify-content:space-between;align-items:center;gap:16px}.badge{padding:4px 12px;border-radius:999px;font-size:.75rem;font-weight:600;text-transform:uppercase}.badge-sent{background:#fef9c3;color:#854d0e}.badge-selected{background:#dcfce7;color:#166534}.badge-approved{background:#bfdbfe;color:#1d4ed8}.badge-draft{background:#f1f5f9;color:#475569}.badge-expired{background:#fee2e2;color:#991b1b}.badge-cancelled{background:#e2e8f0;color:#334155}.public-card{max-width:920px;max-height:none;overflow:visible}.public-page-container{min-height:100vh;height:auto;align-items:flex-start;overflow:visible;padding:24px}.public-scheduler{display:flex;flex-direction:column;gap:18px;min-height:0}.public-scheduler-slots{min-height:0;display:flex;flex-direction:column;gap:12px}.public-scheduler-section-header{display:flex;flex-direction:column;gap:4px}.public-scheduler-section-header h3{font-size:1rem;color:#1e3a8a}.public-calendar-days{grid-template-columns:repeat(auto-fit,minmax(86px,1fr))}.public-calendar-sticky-wrap{position:sticky;top:0;z-index:3}.public-calendar-days-sticky{padding:12px 14px;border:1px solid #dbeafe;border-radius:14px;background:#fffcf8f5;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.public-preview-day-detail{gap:14px}.public-slot-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px}.slot-button{width:100%;text-align:left;cursor:pointer;background:#fff;transition:border-color .2s,box-shadow .2s,transform .2s}.public-slot-button{display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:12px 14px}.public-slot-button span{font-size:.78rem;color:var(--text-muted);font-weight:700;text-transform:uppercase;letter-spacing:.04em}.public-slot-button strong{font-size:1rem;color:#1e3a8a}.slot-button:hover{border-color:#93c5fd;box-shadow:0 8px 24px -16px #2563eb73;transform:translateY(-1px)}.slot-button:disabled{cursor:default;opacity:.7;transform:none}@media(max-width:960px){body{height:auto;overflow:auto}.app-container{height:auto;min-height:100vh;padding:16px}.main-layout{flex-direction:column}.sidebar{width:100%}.form-grid,.schedule-layout{grid-template-columns:1fr}.stats-grid{grid-template-columns:repeat(2,1fr)}.public-card{max-width:100%}}@media(max-width:640px){header{flex-direction:column;gap:16px;align-items:stretch}.nav-top{flex-wrap:wrap;justify-content:space-between;gap:12px}.availability-selector-layout{grid-template-columns:1fr}.availability-range-header{flex-direction:column}.availability-range-summary{justify-content:flex-start;min-width:0}.public-calendar-days{grid-template-columns:repeat(4,minmax(0,1fr))}.public-slot-list{grid-template-columns:1fr}.public-calendar-days-sticky{padding:10px 12px}.form-row-people-duration{grid-template-columns:1fr}.radio-group,.checkbox-group{gap:12px}.duration-stepper{grid-template-columns:44px 1fr 44px}.stats-grid{grid-template-columns:1fr}.content-area{padding:20px}.content-area-compact{padding:18px}.item-card{flex-direction:column;align-items:stretch}}.hidden{display:none}::-webkit-scrollbar{width:6px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background:#cbd5e1;border-radius:10px}::-webkit-scrollbar-thumb:hover{background:#94a3b8}
