@import "https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap";:root{--color-bg-primary:#0f1117;--color-bg-secondary:#161923;--color-bg-tertiary:#1e2130;--color-bg-elevated:#252838;--color-bg-hover:#2a2e42;--color-bg-active:#333750;--color-surface:#1a1d2e;--color-surface-hover:#222640;--color-border:#2a2e3f;--color-border-hover:#3a3f55;--color-border-focus:#6366f1;--color-text-primary:#f1f5f9;--color-text-secondary:#94a3b8;--color-text-muted:#64748b;--color-text-inverse:#0f1117;--color-accent:#6366f1;--color-accent-hover:#818cf8;--color-accent-light:#6366f11f;--color-accent-subtle:#6366f10f;--color-success:#22c55e;--color-success-light:#22c55e1f;--color-warning:#f59e0b;--color-warning-light:#f59e0b1f;--color-error:#ef4444;--color-error-light:#ef44441f;--color-info:#3b82f6;--color-info-light:#3b82f61f;--color-priority-low:#22c55e;--color-priority-medium:#f59e0b;--color-priority-high:#f97316;--color-priority-urgent:#ef4444;--space-xs:.25rem;--space-sm:.5rem;--space-md:1rem;--space-lg:1.5rem;--space-xl:2rem;--space-2xl:3rem;--radius-sm:.375rem;--radius-md:.5rem;--radius-lg:.75rem;--radius-xl:1rem;--radius-full:9999px;--shadow-sm:0 1px 2px #0000004d;--shadow-md:0 4px 6px -1px #0000004d, 0 2px 4px -2px #0003;--shadow-lg:0 10px 15px -3px #0000004d, 0 4px 6px -4px #0003;--shadow-glow:0 0 20px #6366f126;--transition-fast:.15s cubic-bezier(.4, 0, .2, 1);--transition-normal:.25s cubic-bezier(.4, 0, .2, 1);--transition-slow:.35s cubic-bezier(.4, 0, .2, 1);--font-sans:"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;--font-mono:"JetBrains Mono", "Fira Code", "Cascadia Code", monospace;--sidebar-width:260px;--sidebar-collapsed-width:72px;--header-height:64px}*,:before,:after{box-sizing:border-box;margin:0;padding:0}html{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-size:16px}body{font-family:var(--font-sans);background:var(--color-bg-primary);color:var(--color-text-primary);min-height:100vh;line-height:1.6}#root{min-height:100vh}::-webkit-scrollbar{width:6px;height:6px}::-webkit-scrollbar-track{background:0 0}::-webkit-scrollbar-thumb{background:var(--color-border);border-radius:var(--radius-full)}::-webkit-scrollbar-thumb:hover{background:var(--color-border-hover)}.app-layout{min-height:100vh;display:flex}.app-main{margin-left:var(--sidebar-width);min-height:100vh;transition:margin-left var(--transition-normal);flex:1}.app-main.sidebar-collapsed{margin-left:var(--sidebar-collapsed-width)}.page-content{padding:var(--space-xl);max-width:1400px}.sidebar{width:var(--sidebar-width);background:var(--color-bg-secondary);border-right:1px solid var(--color-border);height:100vh;transition:width var(--transition-normal);z-index:100;flex-direction:column;display:flex;position:fixed;top:0;left:0;overflow:hidden auto}.sidebar.collapsed{width:var(--sidebar-collapsed-width)}.sidebar-logo{align-items:center;gap:var(--space-sm);padding:var(--space-lg);border-bottom:1px solid var(--color-border);min-height:var(--header-height);display:flex}.sidebar-logo .logo-icon{background:linear-gradient(135deg, var(--color-accent), #a78bfa);border-radius:var(--radius-md);color:#fff;flex-shrink:0;justify-content:center;align-items:center;width:36px;height:36px;font-size:1rem;font-weight:800;display:flex}.sidebar-logo .logo-text{color:var(--color-text-primary);white-space:nowrap;transition:opacity var(--transition-normal);font-size:1.1rem;font-weight:700;overflow:hidden}.sidebar.collapsed .logo-text{opacity:0;width:0}.sidebar-nav{padding:var(--space-md);gap:var(--space-xs);flex-direction:column;flex:1;display:flex}.nav-section-title{text-transform:uppercase;letter-spacing:.08em;color:var(--color-text-muted);padding:var(--space-md) var(--space-sm) var(--space-xs);white-space:nowrap;font-size:.7rem;font-weight:600;overflow:hidden}.sidebar.collapsed .nav-section-title{opacity:0;height:0;margin:0;padding:0}.nav-link{align-items:center;gap:var(--space-sm);padding:.6rem var(--space-sm);border-radius:var(--radius-md);color:var(--color-text-secondary);transition:all var(--transition-fast);white-space:nowrap;cursor:pointer;text-align:left;background:0 0;border:none;width:100%;font-size:.875rem;font-weight:500;text-decoration:none;display:flex}.nav-link:hover{background:var(--color-bg-hover);color:var(--color-text-primary)}.nav-link.active{background:var(--color-accent-light);color:var(--color-accent-hover)}.nav-link .nav-icon{flex-shrink:0;width:20px;height:20px}.nav-link .nav-text{transition:opacity var(--transition-normal);overflow:hidden}.sidebar.collapsed .nav-text{opacity:0;width:0}.header{height:var(--header-height);background:var(--color-bg-secondary);border-bottom:1px solid var(--color-border);padding:0 var(--space-xl);z-index:50;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);justify-content:space-between;align-items:center;display:flex;position:sticky;top:0}.header-left,.header-right{align-items:center;gap:var(--space-md);display:flex}.page-title{color:var(--color-text-primary);font-size:1.25rem;font-weight:700}.breadcrumbs{align-items:center;gap:var(--space-xs);color:var(--color-text-muted);font-size:.8rem;display:flex}.breadcrumbs a{color:var(--color-text-secondary);transition:color var(--transition-fast);text-decoration:none}.breadcrumbs a:hover{color:var(--color-accent)}.btn{justify-content:center;align-items:center;gap:var(--space-sm);border-radius:var(--radius-md);font-family:var(--font-sans);cursor:pointer;transition:all var(--transition-fast);white-space:nowrap;border:1px solid #0000;padding:.55rem 1rem;font-size:.875rem;font-weight:500;line-height:1.4;text-decoration:none;display:inline-flex}.btn:disabled{opacity:.5;cursor:not-allowed}.btn-primary{background:var(--color-accent);color:#fff;border-color:var(--color-accent)}.btn-primary:hover:not(:disabled){background:var(--color-accent-hover);border-color:var(--color-accent-hover);box-shadow:var(--shadow-glow)}.btn-secondary{background:var(--color-bg-elevated);color:var(--color-text-primary);border-color:var(--color-border)}.btn-secondary:hover:not(:disabled){background:var(--color-bg-hover);border-color:var(--color-border-hover)}.btn-ghost{color:var(--color-text-secondary);background:0 0}.btn-ghost:hover:not(:disabled){background:var(--color-bg-hover);color:var(--color-text-primary)}.btn-danger{background:var(--color-error);color:#fff;border-color:var(--color-error)}.btn-danger:hover:not(:disabled){background:#dc2626}.btn-sm{padding:.35rem .75rem;font-size:.8rem}.btn-lg{padding:.75rem 1.5rem;font-size:1rem}.btn-icon{width:36px;height:36px;padding:.5rem}.card{background:var(--color-bg-secondary);border:1px solid var(--color-border);border-radius:var(--radius-lg);transition:border-color var(--transition-fast), box-shadow var(--transition-fast);overflow:hidden}.card:hover{border-color:var(--color-border-hover)}.card-header{padding:var(--space-lg);border-bottom:1px solid var(--color-border);justify-content:space-between;align-items:center;display:flex}.card-title{color:var(--color-text-primary);font-size:1rem;font-weight:600}.card-body{padding:var(--space-lg)}.card-footer{padding:var(--space-md) var(--space-lg);border-top:1px solid var(--color-border);background:var(--color-bg-tertiary)}.form-group{margin-bottom:var(--space-lg)}.form-label{color:var(--color-text-secondary);margin-bottom:var(--space-xs);font-size:.8rem;font-weight:500;display:block}.form-input,.form-select,.form-textarea{background:var(--color-bg-tertiary);border:1px solid var(--color-border);border-radius:var(--radius-md);width:100%;color:var(--color-text-primary);font-family:var(--font-sans);transition:all var(--transition-fast);outline:none;padding:.6rem .75rem;font-size:.875rem}.form-input:focus,.form-select:focus,.form-textarea:focus{border-color:var(--color-border-focus);box-shadow:0 0 0 3px #6366f126}.form-input::placeholder{color:var(--color-text-muted)}.form-textarea{resize:vertical;min-height:100px}.form-error{color:var(--color-error);margin-top:var(--space-xs);font-size:.75rem}.form-row{gap:var(--space-md);grid-template-columns:1fr 1fr;display:grid}.table-container{overflow-x:auto}.table{border-collapse:collapse;width:100%}.table th{text-align:left;padding:var(--space-sm) var(--space-md);text-transform:uppercase;letter-spacing:.05em;color:var(--color-text-muted);border-bottom:1px solid var(--color-border);white-space:nowrap;font-size:.75rem;font-weight:600}.table td{padding:var(--space-md);border-bottom:1px solid var(--color-border);color:var(--color-text-secondary);font-size:.875rem}@media (hover:hover){.table tr:hover td{background:var(--color-bg-hover)}}.table tr:last-child td{border-bottom:none}.badge{border-radius:var(--radius-full);text-transform:uppercase;letter-spacing:.03em;align-items:center;padding:.15rem .6rem;font-size:.7rem;font-weight:600;display:inline-flex}.badge-open{background:var(--color-info-light);color:var(--color-info)}.badge-active{background:var(--color-success-light);color:var(--color-success)}.badge-pending{background:var(--color-warning-light);color:var(--color-warning)}.badge-closed{background:var(--color-bg-elevated);color:var(--color-text-muted)}.badge-low{background:var(--color-success-light);color:var(--color-priority-low)}.badge-medium{background:var(--color-warning-light);color:var(--color-priority-medium)}.badge-high{color:var(--color-priority-high);background:#f973161f}.badge-urgent{background:var(--color-error-light);color:var(--color-priority-urgent)}.stats-grid{gap:var(--space-md);margin-bottom:var(--space-xl);grid-template-columns:repeat(auto-fit,minmax(220px,1fr));display:grid}.stat-card{background:var(--color-bg-secondary);border:1px solid var(--color-border);border-radius:var(--radius-lg);padding:var(--space-lg);align-items:flex-start;gap:var(--space-md);transition:all var(--transition-fast);display:flex}@media (hover:hover){.stat-card:hover{border-color:var(--color-border-hover);box-shadow:var(--shadow-md);transform:translateY(-1px)}}.stat-icon{border-radius:var(--radius-lg);flex-shrink:0;justify-content:center;align-items:center;width:48px;height:48px;display:flex}.stat-icon.purple{background:var(--color-accent-light);color:var(--color-accent)}.stat-icon.green{background:var(--color-success-light);color:var(--color-success)}.stat-icon.amber{background:var(--color-warning-light);color:var(--color-warning)}.stat-icon.blue{background:var(--color-info-light);color:var(--color-info)}.stat-value{color:var(--color-text-primary);font-size:1.75rem;font-weight:700;line-height:1.2}.stat-label{color:var(--color-text-muted);margin-top:2px;font-size:.8rem}.empty-state{text-align:center;padding:var(--space-2xl);color:var(--color-text-muted)}.empty-state-icon{width:64px;height:64px;margin:0 auto var(--space-md);opacity:.4}.empty-state-title{color:var(--color-text-secondary);margin-bottom:var(--space-xs);font-size:1.1rem;font-weight:600}.empty-state-text{margin-bottom:var(--space-lg);font-size:.875rem}.pagination{padding:var(--space-md) 0;color:var(--color-text-muted);justify-content:space-between;align-items:center;font-size:.8rem;display:flex}.pagination-buttons{gap:var(--space-xs);display:flex}.auth-page{background:var(--color-bg-primary);min-height:100vh;padding:var(--space-xl);justify-content:center;align-items:center;display:flex}.auth-card{background:var(--color-bg-secondary);border:1px solid var(--color-border);border-radius:var(--radius-xl);width:100%;max-width:420px;padding:var(--space-2xl);box-shadow:var(--shadow-lg)}.auth-logo{justify-content:center;align-items:center;gap:var(--space-sm);margin-bottom:var(--space-2xl);display:flex}.auth-logo .logo-icon{background:linear-gradient(135deg, var(--color-accent), #a78bfa);border-radius:var(--radius-lg);color:#fff;justify-content:center;align-items:center;width:48px;height:48px;font-size:1.25rem;font-weight:800;display:flex}.auth-logo .logo-text{background:linear-gradient(135deg, var(--color-accent), #a78bfa);-webkit-text-fill-color:transparent;-webkit-background-clip:text;background-clip:text;font-size:1.5rem;font-weight:800}.auth-title{text-align:center;margin-bottom:var(--space-xs);font-size:1.25rem;font-weight:700}.auth-subtitle{color:var(--color-text-muted);text-align:center;margin-bottom:var(--space-xl);font-size:.875rem}.auth-link{color:var(--color-accent);font-weight:500;text-decoration:none}.auth-link:hover{color:var(--color-accent-hover);text-decoration:underline}.auth-footer{text-align:center;margin-top:var(--space-xl);color:var(--color-text-muted);font-size:.85rem}.search-bar{max-width:400px;position:relative}.search-bar .search-icon{color:var(--color-text-muted);width:16px;height:16px;position:absolute;top:50%;left:.75rem;transform:translateY(-50%)}.search-bar input{padding-left:2.25rem}.filters-bar{align-items:center;gap:var(--space-md);margin-bottom:var(--space-lg);flex-wrap:wrap;display:flex}.modal-overlay{-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);z-index:200;animation:fadeIn var(--transition-fast);background:#0009;justify-content:center;align-items:center;display:flex;position:fixed;inset:0}.modal,.modal-content{background:var(--color-bg-secondary);border:1px solid var(--color-border);border-radius:var(--radius-xl);width:calc(100% - 2rem);max-width:560px;max-height:calc(100vh - 4rem);box-shadow:var(--shadow-lg);animation:slideUp var(--transition-normal);overflow-y:auto}.modal-header{padding:var(--space-lg);border-bottom:1px solid var(--color-border);justify-content:space-between;align-items:center;display:flex}.modal-title{font-size:1.1rem;font-weight:600}.modal-body{padding:var(--space-lg)}.modal-footer{padding:var(--space-md) var(--space-lg);border-top:1px solid var(--color-border);justify-content:flex-end;gap:var(--space-sm);display:flex}.toast-container{top:var(--space-lg);right:var(--space-lg);z-index:300;gap:var(--space-sm);flex-direction:column;display:flex;position:fixed}.toast{padding:var(--space-md) var(--space-lg);border-radius:var(--radius-md);animation:slideInRight var(--transition-normal);align-items:center;gap:var(--space-sm);min-width:300px;max-width:450px;box-shadow:var(--shadow-lg);font-size:.875rem;font-weight:500;display:flex}.toast-success{background:var(--color-success);color:#fff}.toast-error{background:var(--color-error);color:#fff}.toast-info{background:var(--color-info);color:#fff}.skeleton{background:linear-gradient(90deg, var(--color-bg-tertiary) 25%, var(--color-bg-hover) 50%, var(--color-bg-tertiary) 75%);border-radius:var(--radius-sm);background-size:200% 100%;animation:1.5s infinite skeleton-pulse}.skeleton-text{height:1rem;margin-bottom:var(--space-sm)}.skeleton-title{width:60%;height:1.5rem;margin-bottom:var(--space-md)}.skeleton-card{border-radius:var(--radius-lg);height:120px}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes slideUp{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}@keyframes slideInRight{0%{opacity:0;transform:translate(100px)}to{opacity:1;transform:translate(0)}}@keyframes skeleton-pulse{0%{background-position:200% 0}to{background-position:-200% 0}}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.flex{display:flex}.flex-col{flex-direction:column}.items-center{align-items:center}.justify-between{justify-content:space-between}.gap-sm{gap:var(--space-sm)}.gap-md{gap:var(--space-md)}.gap-lg{gap:var(--space-lg)}.text-sm{font-size:.875rem}.text-muted{color:var(--color-text-muted)}.font-medium{font-weight:500}.font-semibold{font-weight:600}.mt-md{margin-top:var(--space-md)}.mb-md{margin-bottom:var(--space-md)}.mb-lg{margin-bottom:var(--space-lg)}.w-full{width:100%}.text-right{text-align:right}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}:root{--color-danger:var(--color-error);--color-danger-light:var(--color-error-light);--color-primary:var(--color-accent)}.spin,.animate-spin{animation:1s linear infinite spin}.badge-danger{background:var(--color-error-light);color:var(--color-error)}.badge-success{background:var(--color-success-light);color:var(--color-success)}.badge-accent{background:var(--color-accent-light);color:var(--color-accent-hover)}.badge-scheduled{background:var(--color-info-light);color:var(--color-info)}.badge-completed{background:var(--color-success-light);color:var(--color-success)}.badge-cancelled{background:var(--color-bg-elevated);color:var(--color-text-muted)}.badge-in_progress{background:var(--color-accent-light);color:var(--color-accent-hover)}.badge-overdue{background:var(--color-error-light);color:var(--color-error)}.btn-outline{border:1px solid var(--color-border);color:var(--color-text-primary);background:0 0}.btn-outline:hover:not(:disabled){border-color:var(--color-border-hover);background:var(--color-bg-hover)}.text-error{color:var(--color-error)}.text-secondary{color:var(--color-text-secondary)}.justify-end{justify-content:flex-end}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.gap-xs{gap:var(--space-xs)}.mt-xs{margin-top:var(--space-xs)}.mt-sm{margin-top:var(--space-sm)}.mb-0{margin-bottom:0}.p-6{padding:var(--space-lg)}.cursor-pointer{cursor:pointer}.toast{align-items:center;gap:var(--space-sm);box-shadow:var(--shadow-lg);display:flex}.toast .btn{color:inherit}.alert-error{background:var(--color-error-light);color:var(--color-error);border-radius:var(--radius-md);margin-bottom:var(--space-md);padding:.75rem 1rem;font-size:.85rem}th.sortable{cursor:pointer;-webkit-user-select:none;user-select:none;white-space:nowrap}@media (hover:hover){th.sortable:hover{color:var(--color-text-primary)}}.perm-grid{border-collapse:collapse;width:100%}.perm-grid th,.perm-grid td{border-bottom:1px solid var(--color-border);text-align:center;padding:.4rem .6rem}.perm-grid th:first-child,.perm-grid td:first-child{text-align:left;text-transform:capitalize}.toggle-row{justify-content:space-between;align-items:center;gap:var(--space-md);padding:var(--space-md) 0;border-bottom:1px solid var(--color-border);display:flex}.page-header{justify-content:space-between;align-items:center;gap:var(--space-md);margin-bottom:var(--space-lg);flex-wrap:wrap;display:flex}.page-header>:first-child{min-width:0}.page-actions{gap:var(--space-sm);flex-wrap:wrap;display:flex}.grid-2{gap:var(--space-md);grid-template-columns:repeat(2,minmax(0,1fr));display:grid}.grid-3{gap:var(--space-md);grid-template-columns:repeat(3,minmax(0,1fr));display:grid}.detail-layout{gap:var(--space-lg);grid-template-columns:minmax(0,2fr) minmax(0,1fr);align-items:start;display:grid}.detail-layout.detail-layout-fixed-aside{grid-template-columns:minmax(0,1fr) 350px}.tab-scroll{gap:var(--space-sm);scrollbar-width:none;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch;display:flex;overflow-x:auto}.tab-scroll::-webkit-scrollbar{display:none}.tab-scroll>*{scroll-snap-align:start;flex-shrink:0}.sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.show-mobile{display:none}.filter-select{width:180px}.filter-select-sm{width:150px}.text-break{overflow-wrap:anywhere}.min-w-0{min-width:0}.hover-row{background:0 0}@media (hover:hover){.hover-row:hover{background:var(--color-bg-hover)}}.hover-row.is-selected{background:var(--color-bg-hover)}.form-hint{margin-top:var(--space-xs);color:var(--color-text-muted);font-size:.75rem}.segmented{background:var(--color-bg-secondary);border:1px solid var(--color-border);border-radius:var(--radius-md);gap:.25rem;padding:.25rem;display:inline-flex}.segmented button{border-radius:var(--radius-sm);color:var(--color-text-secondary);cursor:pointer;white-space:nowrap;transition:background var(--transition-fast), color var(--transition-fast);background:0 0;border:none;align-items:center;gap:.35rem;padding:.4rem .85rem;font-family:inherit;font-size:.85rem;font-weight:500;display:inline-flex}.segmented button[aria-pressed=true]{background:var(--color-accent-light);color:var(--color-accent-hover)}@media (hover:hover){.segmented button[aria-pressed=false]:hover{color:var(--color-text-primary)}}.event-heading{font-size:.95rem;font-weight:700;line-height:1.35}.event-subtitle{color:var(--color-text-secondary);margin-top:.2rem;font-size:.9rem;font-weight:500}.event-notes{color:var(--color-text-secondary);white-space:pre-wrap;margin-top:.4rem;font-size:.85rem}.event-links{gap:var(--space-sm);flex-wrap:wrap;margin-top:.75rem;display:flex}.notes-toolbar{justify-content:space-between;align-items:center;gap:var(--space-sm);margin-bottom:var(--space-md);flex-wrap:wrap;display:flex}.notes-composer{margin-bottom:var(--space-lg)}.notes-composer.is-bottom{margin-top:var(--space-sm);margin-bottom:0}.timeline{--tl-gutter:1.75rem;--tl-line:.6rem;padding:0 0 0 var(--tl-gutter);margin:0;list-style:none;position:relative}.timeline:before{content:"";left:calc(var(--tl-line) - 1px);background:var(--color-border);border-radius:1px;width:2px;position:absolute;top:.75rem;bottom:.75rem}.timeline-group+.timeline-group{margin-top:var(--space-lg)}.timeline-day{margin-bottom:var(--space-sm);font-size:inherit;font-weight:inherit;position:relative}.timeline-day:before{content:"";left:calc(var(--tl-line) - var(--tl-gutter) - 7px);background:var(--color-bg-primary);border:2px solid var(--color-text-muted);border-radius:50%;width:14px;height:14px;margin-top:-7px;position:absolute;top:50%}.timeline-day span{border-radius:var(--radius-full);background:var(--color-bg-tertiary);color:var(--color-text-secondary);letter-spacing:.03em;padding:.2rem .65rem;font-size:.75rem;font-weight:600;display:inline-block}.timeline-items{gap:var(--space-sm);flex-direction:column;list-style:none;display:flex}.timeline-item{--note-pad:var(--space-lg);--note-header:2.25rem;position:relative}.timeline-dot{left:calc(var(--tl-line) - var(--tl-gutter) - 5px);top:calc(var(--note-pad) + var(--note-header) / 2 - 5px);background:var(--color-accent);width:10px;height:10px;box-shadow:0 0 0 3px var(--color-bg-primary);border-radius:50%;position:absolute}.timeline-note-header{justify-content:space-between;align-items:center;gap:var(--space-sm);min-height:var(--note-header);margin-bottom:.35rem;display:flex}.timeline-note-header>:first-child{flex:1}.timeline-note-header>:last-child:not(:first-child){flex-shrink:0}@media (pointer:coarse){.timeline-item{--note-header:2.5rem}}.cal-weekdays,.cal-grid{grid-template-columns:repeat(7,minmax(0,1fr));display:grid}.cal-weekdays{border-bottom:1px solid var(--color-border);background:var(--color-bg-tertiary)}.cal-weekday{text-align:center;min-width:0;color:var(--color-text-muted);text-transform:uppercase;letter-spacing:.05em;padding:.75rem .25rem;font-size:.75rem;font-weight:600}.cal-cell{border-bottom:1px solid var(--color-border);border-right:1px solid var(--color-border);cursor:pointer;min-width:0;min-height:100px;transition:background var(--transition-fast);background:0 0;outline:none;padding:.5rem;overflow:hidden}.cal-cell.is-last-col{border-right:none}.cal-cell.is-outside{background:var(--color-bg-tertiary);opacity:.5}.cal-cell.is-selected{background:var(--color-bg-hover);box-shadow:inset 0 0 0 2px var(--color-accent)}.cal-cell:focus-visible{box-shadow:inset 0 0 0 2px var(--color-accent-hover)}@media (hover:hover){.cal-cell:hover{background:var(--color-bg-hover)}}.cal-daynum-row{justify-content:flex-end;margin-bottom:.5rem;display:flex}.cal-chips{flex-direction:column;gap:.25rem;display:flex}.cal-dots{display:none}.cal-dot{border-radius:50%;width:6px;height:6px}.mobile-topbar,.bottom-nav{display:none}.mobile-topbar{z-index:50;align-items:center;gap:var(--space-sm);padding:calc(env(safe-area-inset-top,0px) + .6rem) var(--space-md) .6rem;background:var(--color-bg-secondary);border-bottom:1px solid var(--color-border);position:sticky;top:0}.mobile-topbar-logo{border-radius:var(--radius-sm);object-fit:contain;background:#fff;width:28px;height:28px}.mobile-topbar-title{color:var(--color-text-primary);font-size:1rem;font-weight:700}.mobile-topbar-firm{color:var(--color-text-muted);white-space:nowrap;text-overflow:ellipsis;min-width:0;margin-left:auto;font-size:.8rem;overflow:hidden}.bottom-nav{z-index:150;height:calc(56px + env(safe-area-inset-bottom,0px));padding-bottom:env(safe-area-inset-bottom,0px);background:var(--color-bg-secondary);border-top:1px solid var(--color-border);position:fixed;bottom:0;left:0;right:0}.bottom-nav-item{min-width:0;color:var(--color-text-muted);cursor:pointer;-webkit-tap-highlight-color:transparent;background:0 0;border:none;flex-direction:column;flex:1;justify-content:center;align-items:center;gap:2px;font-family:inherit;font-size:.68rem;font-weight:500;text-decoration:none;display:flex}.bottom-nav-item span{text-overflow:ellipsis;white-space:nowrap;max-width:100%;overflow:hidden}.bottom-nav-item.active{color:var(--color-accent-hover)}.sheet-backdrop{z-index:250;animation:fadeIn var(--transition-fast);background:#0009;align-items:flex-end;display:flex;position:fixed;inset:0}.sheet{background:var(--color-bg-secondary);border-top:1px solid var(--color-border);border-radius:var(--radius-xl) var(--radius-xl) 0 0;width:100%;max-height:85dvh;padding:var(--space-md) var(--space-md) calc(var(--space-md) + env(safe-area-inset-bottom,0px));animation:slideUp var(--transition-normal);overflow-y:auto}.sheet-header{justify-content:space-between;align-items:center;gap:var(--space-md);padding:0 var(--space-sm) var(--space-md);border-bottom:1px solid var(--color-border);margin-bottom:var(--space-sm);display:flex}.sheet-user-name{color:var(--color-text-primary);font-weight:600}.sheet-user-email{color:var(--color-text-muted);overflow-wrap:anywhere;font-size:.8rem}.sheet-nav{flex-direction:column;gap:2px;display:flex}.sheet-nav .nav-link{width:100%}@media (pointer:coarse){.btn-sm{min-height:40px}.btn-icon{min-width:40px;min-height:40px}.nav-link{min-height:44px}}@media (width<=768px){.sidebar{display:none}.app-main,.app-main.sidebar-collapsed{min-width:0;padding-bottom:calc(56px + env(safe-area-inset-bottom,0px));margin-left:0}.mobile-topbar,.bottom-nav{display:flex}.page-content{padding:var(--space-md)}.page-title{font-size:1.15rem}.stats-grid{gap:var(--space-sm);grid-template-columns:repeat(2,minmax(0,1fr))}.stat-card{padding:var(--space-md);gap:var(--space-sm);flex-direction:column}.stat-icon{width:36px;height:36px}.stat-value{font-size:1.35rem}.form-input,.form-select,.form-textarea{font-size:16px}.form-row,.grid-2,.grid-3,.detail-layout,.detail-layout.detail-layout-fixed-aside{grid-template-columns:minmax(0,1fr)}.detail-layout.aside-first-mobile>:last-child{order:-1}.grid-2.keep-mobile{grid-template-columns:repeat(2,minmax(0,1fr))}.filter-select,.filter-select-sm{flex:140px;width:100%}.filters-bar{gap:var(--space-sm)}.search-bar{max-width:none}.filters-bar .search-bar{flex:100%!important}.card-header{gap:var(--space-sm);padding:var(--space-md);flex-wrap:wrap}.card-body{padding:var(--space-md)}.pagination{gap:var(--space-sm);flex-wrap:wrap}.modal-overlay{align-items:flex-end}.modal,.modal-content{border-radius:var(--radius-xl) var(--radius-xl) 0 0;width:100%;max-height:92dvh;padding-bottom:env(safe-area-inset-bottom,0px);border-bottom:none;max-width:none!important}.modal-header,.modal-body{padding:var(--space-md)}.modal-footer{background:var(--color-bg-secondary);padding:var(--space-sm) var(--space-md);flex-wrap:wrap;position:sticky;bottom:0}.toast-container{top:calc(env(safe-area-inset-top,0px) + var(--space-sm));left:var(--space-md);right:var(--space-md)}.toast{min-width:0;max-width:none}.auth-page{padding:var(--space-md)}.auth-card{padding:var(--space-lg)}.hide-mobile{display:none!important}.show-mobile{display:block}.table-container:has(>.table-stack){overflow-x:visible}.table-stack thead{display:none}.table-stack,.table-stack tbody,.table-stack tr,.table-stack td{width:100%;display:block}.table-stack tr{padding:var(--space-sm) var(--space-md);border-bottom:1px solid var(--color-border);flex-direction:column;display:flex}.table-stack tr:last-child{border-bottom:none}.table-stack td{justify-content:space-between;align-items:baseline;gap:var(--space-md);text-align:right;overflow-wrap:anywhere;border:none;padding:.2rem 0;display:flex}.table-stack td[data-label]:before{content:attr(data-label);text-transform:uppercase;letter-spacing:.04em;color:var(--color-text-muted);text-align:left;flex-shrink:0;font-size:.72rem;font-weight:600}.table-stack td.cell-primary{text-align:left;padding-bottom:.35rem;font-size:.95rem;display:block}.type-picker{grid-template-columns:repeat(2,minmax(0,1fr))!important}.table-stack td.cell-first{order:-1}.event-links .btn{flex:auto;justify-content:center;padding-inline:.6rem}.notes-toolbar .segmented{flex:auto}.notes-toolbar .segmented button{flex:1;justify-content:center}.timeline{--tl-gutter:1.35rem;--tl-line:.45rem}.timeline-item{--note-pad:var(--space-md)}.cal-weekday{letter-spacing:0;padding:.5rem 0}.cal-cell{min-height:48px;padding:.25rem 0}.cal-daynum-row{justify-content:center;margin-bottom:.15rem}.cal-chips{display:none}.cal-dots{justify-content:center;gap:3px;min-height:6px;display:flex}.table-stack td.cell-actions{flex-wrap:wrap;justify-content:flex-end}}
