:root{--nav-bg-base: #0a1320;--nav-bg-surface: #101e33;--nav-border: #1a2d4a;--nav-text: #f8fafc;--nav-text-muted: #94a3b8;--surface-ground: #f4f6f9;--surface-card: #ffffff;--surface-subtle: #f8fafc;--surface-border: #e2e8f0;--surface-border-strong: #cbd5e1;--surface-primary: #ffffff;--surface-secondary: #f8fafc;--surface-header: #ffffff;--surface-input: #ffffff;--surface-modal: #ffffff;--modal-backdrop-bg: rgba(10, 19, 32, .75);--text-main: #0f172a;--text-secondary: #475569;--text-muted: #64748b;--brand-red: #b91c1c;--brand-red-hover: #991b1b;--brand-red-subtle: #fee2e2;--brand-yellow: #d97706;--brand-yellow-subtle: #fef3c7;--status-success-text: #15803d;--status-success-bg: #dcfce7;--status-success-border: #bbf7d0;--status-warning-text: #b45309;--status-warning-bg: #fef3c7;--status-warning-border: #fde68a;--status-danger-text: #b91c1c;--status-danger-bg: #fee2e2;--status-danger-border: #fecaca;--status-info-text: #1d4ed8;--status-info-bg: #dbeafe;--status-info-border: #bfdbfe;--font-display: "Outfit", system-ui, -apple-system, sans-serif;--font-body: "Inter", system-ui, -apple-system, sans-serif;--radius-sm: 6px;--radius-md: 8px;--radius-lg: 12px;--radius-full: 9999px;--shadow-subtle: 0 1px 3px rgba(0, 0, 0, .05), 0 1px 2px rgba(0, 0, 0, .03);--shadow-card: 0 1px 3px rgba(0, 0, 0, .08), 0 4px 6px -1px rgba(0, 0, 0, .04);--touch-target-min: 44px;--header-height: 56px;--bottom-nav-height: 64px}*{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent}body{background-color:var(--surface-ground);color:var(--text-main);font-family:var(--font-body);font-size:14px;line-height:1.5;min-height:100vh;min-height:100dvh;overflow-x:hidden;-webkit-font-smoothing:antialiased}h1,h2,h3,h4,h5,h6{font-family:var(--font-display);font-weight:700;color:var(--text-main);letter-spacing:-.015em}button{font-family:inherit;cursor:pointer;border:none;background:none}a{color:inherit;text-decoration:none}input,select,textarea{font-family:inherit;font-size:.875rem;color:var(--text-main);background-color:var(--surface-card);border:1px solid var(--surface-border-strong);border-radius:var(--radius-md);padding:.5rem .75rem;transition:border-color .15s ease,box-shadow .15s ease}input:focus,select:focus,textarea:focus{outline:none;border-color:var(--nav-bg-surface);box-shadow:0 0 0 2px #101e3326}select option{background-color:#fff;color:var(--text-main);padding:.5rem}.tabular-numbers,.stat-value,.timer-text,table td.numeric{font-variant-numeric:tabular-nums}.demo-banner{background-color:#0a1320;border-bottom:1px solid var(--brand-yellow);color:#f8fafc;padding:.35rem 1rem;font-size:.75rem;font-weight:600;display:flex;align-items:center;justify-content:space-between;letter-spacing:.02em;z-index:100}.demo-banner-indicator{display:flex;align-items:center;gap:.45rem}.demo-banner-dot{width:7px;height:7px;border-radius:50%;background-color:var(--brand-yellow)}.app-layout{display:flex;min-height:100vh;min-height:100dvh;background-color:var(--surface-ground)}.app-sidebar{display:none;width:250px;background-color:var(--nav-bg-base);border-right:1px solid var(--nav-border);flex-direction:column;padding:1.25rem .85rem;flex-shrink:0;color:var(--nav-text)}@media(min-width:900px){.app-sidebar{display:flex}}.sidebar-brand{display:flex;align-items:center;gap:.75rem;padding:0 .5rem 1.25rem;border-bottom:1px solid var(--nav-border);margin-bottom:1.25rem}.brand-logo-img{height:36px;width:auto;object-fit:contain}.brand-text-container{display:flex;flex-direction:column}.brand-text-title{font-family:var(--font-display);font-size:1.05rem;font-weight:700;color:var(--nav-text);line-height:1.2}.brand-text-subtitle{font-size:.72rem;color:var(--nav-text-muted);letter-spacing:.04em;text-transform:uppercase;font-weight:500}.sidebar-nav{display:flex;flex-direction:column;gap:.25rem;flex:1}.nav-item{display:flex;align-items:center;gap:.75rem;padding:.65rem .85rem;min-height:var(--touch-target-min);border-radius:var(--radius-sm);color:var(--nav-text-muted);font-size:.9rem;font-weight:500;transition:background-color .12s ease,color .12s ease;border-left:3px solid transparent}.nav-item:hover{background-color:var(--nav-bg-surface);color:var(--nav-text)}.nav-item.active{background-color:var(--nav-bg-surface);color:#fff;border-left-color:var(--brand-red);font-weight:600}.app-main{flex:1;display:flex;flex-direction:column;min-width:0;padding-bottom:calc(var(--bottom-nav-height) + 1rem)}@media(min-width:900px){.app-main{padding-bottom:1.5rem}}.app-header{height:var(--header-height);background-color:var(--surface-card);border-bottom:1px solid var(--surface-border);display:flex;align-items:center;justify-content:space-between;padding:0 1.25rem;position:sticky;top:0;z-index:40}.header-brand-mobile{display:flex;align-items:center;gap:.6rem}@media(min-width:900px){.header-brand-mobile{display:none}}.header-team-badge{display:flex;align-items:center;gap:.5rem;font-size:.88rem;font-weight:600;color:var(--text-main)}.header-actions{display:flex;align-items:center;gap:.65rem}@media(max-width:640px){.header-team-separator,.header-team-subtitle{display:none}}.account-menu-wrapper{position:relative}.account-menu-btn{display:flex;align-items:center;gap:.45rem;padding:.35rem .6rem;min-height:var(--touch-target-min);background-color:var(--surface-subtle);border:1px solid var(--surface-border);border-radius:var(--radius-sm);color:var(--text-main);cursor:pointer;font-size:.82rem;font-weight:500;transition:background-color .12s ease,border-color .12s ease}.account-menu-btn:hover{background-color:var(--surface-hover);border-color:var(--surface-border-strong)}.account-avatar-circle{width:26px;height:26px;border-radius:50%;background-color:var(--nav-bg-base);color:#fff;display:flex;align-items:center;justify-content:center;flex-shrink:0}.account-btn-label{max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media(max-width:540px){.account-btn-label{display:none}}.account-chevron{color:var(--text-muted);transition:transform .15s ease}.account-chevron.open{transform:rotate(180deg)}.account-dropdown-card{position:absolute;top:calc(100% + 6px);right:0;width:260px;max-width:calc(100vw - 2rem);background-color:var(--surface-card);border:1px solid var(--surface-border);border-radius:var(--radius-md);box-shadow:var(--shadow-card);z-index:100;overflow:hidden;animation:fadeInMenu .12s ease-out}@keyframes fadeInMenu{0%{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}.account-dropdown-header{padding:.85rem 1rem;background-color:var(--surface-subtle);border-bottom:1px solid var(--surface-border)}.account-dropdown-name{font-weight:600;font-size:.88rem;color:var(--text-main)}.account-dropdown-email{font-size:.75rem;color:var(--text-secondary);word-break:break-all;margin-top:2px}.account-dropdown-roles{display:flex;flex-wrap:wrap;gap:.3rem;margin-top:.5rem}.account-dropdown-body{padding:.5rem}.account-logout-btn{display:flex;align-items:center;gap:.6rem;width:100%;padding:.65rem .85rem;min-height:var(--touch-target-min);background:transparent;border:none;border-radius:var(--radius-sm);color:var(--status-danger-text);font-size:.85rem;font-weight:500;cursor:pointer;text-align:left;transition:background-color .12s ease}.account-logout-btn:hover{background-color:var(--status-danger-bg)}.app-view-container{padding:1.25rem;max-width:1100px;margin:0 auto;width:100%}@media(min-width:640px){.app-view-container{padding:1.75rem 1.5rem}}.app-bottom-nav{position:fixed;bottom:0;left:0;right:0;height:var(--bottom-nav-height);background-color:var(--nav-bg-base);border-top:1px solid var(--nav-border);display:flex;justify-content:space-around;align-items:center;padding-bottom:env(safe-area-inset-bottom,0);z-index:50}@media(min-width:900px){.app-bottom-nav{display:none}}.bottom-nav-button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.2rem;min-height:var(--touch-target-min);min-width:var(--touch-target-min);flex:1;padding:.35rem .2rem;color:var(--nav-text-muted);font-size:.72rem;font-weight:500;transition:color .12s ease}.bottom-nav-button.active{color:#fff;font-weight:600}.bottom-nav-button.active svg{stroke:var(--brand-red)}.card{background-color:var(--surface-card);border:1px solid var(--surface-border);border-radius:var(--radius-md);padding:1.25rem;box-shadow:var(--shadow-subtle);margin-bottom:1rem}.card-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:.85rem}.card-title{font-size:1.05rem;font-weight:700;color:var(--text-main)}.table-container{background-color:var(--surface-card);border:1px solid var(--surface-border);border-radius:var(--radius-md);overflow-x:auto;box-shadow:var(--shadow-subtle);margin-bottom:1rem}.data-table{width:100%;border-collapse:collapse;text-align:left;font-size:.88rem}.data-table th{background-color:var(--surface-subtle);color:var(--text-secondary);font-weight:600;padding:.75rem 1rem;border-bottom:1px solid var(--surface-border);font-size:.78rem;text-transform:uppercase;letter-spacing:.03em}.data-table td{padding:.85rem 1rem;border-bottom:1px solid var(--surface-border);color:var(--text-main);min-height:var(--touch-target-min)}.data-table tr:last-child td{border-bottom:none}.data-table tr:hover td{background-color:var(--surface-subtle)}.btn{display:inline-flex;align-items:center;justify-content:center;gap:.45rem;min-height:var(--touch-target-min);min-width:var(--touch-target-min);padding:.55rem 1.15rem;border-radius:var(--radius-sm);font-size:.88rem;font-weight:600;transition:all .12s ease;line-height:1}.btn-primary{background-color:var(--brand-red);color:#fff}.btn-primary:hover{background-color:var(--brand-red-hover)}.btn-secondary{background-color:var(--surface-card);color:var(--text-main);border:1px solid var(--surface-border-strong)}.btn-secondary:hover{background-color:var(--surface-subtle);border-color:#94a3b8}.btn-danger{background-color:var(--status-danger-bg);color:var(--status-danger-text);border:1px solid var(--status-danger-border)}.btn-danger:hover{background-color:#fee2e2}.badge{display:inline-flex;align-items:center;gap:.35rem;padding:.2rem .55rem;border-radius:var(--radius-sm);font-size:.75rem;font-weight:600;letter-spacing:.01em}.badge-red{background-color:var(--brand-red-subtle);color:var(--brand-red)}.badge-yellow{background-color:var(--brand-yellow-subtle);color:var(--brand-yellow)}.badge-success{background-color:var(--status-success-bg);color:var(--status-success-text)}.badge-warning{background-color:var(--status-warning-bg);color:var(--status-warning-text)}.badge-muted{background-color:var(--surface-subtle);color:var(--text-secondary);border:1px solid var(--surface-border)}.badge-info{background-color:var(--status-info-bg);color:var(--status-info-text)}.empty-state{text-align:center;padding:3rem 1.5rem;background-color:var(--surface-card);border:1px dashed var(--surface-border-strong);border-radius:var(--radius-md);margin:1.5rem 0}.empty-state-icon{color:var(--text-muted);margin-bottom:.85rem}.empty-state-title{font-size:1.05rem;font-weight:600;color:var(--text-main);margin-bottom:.35rem}.empty-state-text{font-size:.85rem;color:var(--text-secondary);max-width:420px;margin:0 auto}.form-group{margin-bottom:1.15rem}.form-label{display:block;font-size:.82rem;font-weight:600;color:var(--text-main);margin-bottom:.35rem}.form-input{width:100%;min-height:var(--touch-target-min);padding:.6rem .85rem;font-family:inherit;font-size:.9rem;color:var(--text-main);background-color:var(--surface-card);border:1px solid var(--surface-border-strong);border-radius:var(--radius-sm);transition:border-color .12s ease}.form-input:focus{outline:none;border-color:var(--brand-red)}.form-error{color:var(--status-danger-text);font-size:.78rem;margin-top:.35rem}.auth-container{min-height:100vh;min-height:100dvh;display:flex;align-items:center;justify-content:center;background-color:var(--nav-bg-base);padding:1.5rem 1rem}.auth-card{width:100%;max-width:400px;background-color:var(--surface-card);border-radius:var(--radius-md);box-shadow:0 4px 20px #00000040;padding:2rem 1.75rem}.auth-header{text-align:center;margin-bottom:1.75rem}.auth-logo{height:48px;width:auto;margin-bottom:.85rem}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background-color:var(--modal-backdrop-bg, rgba(10, 19, 32, .75));backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px);display:flex;align-items:center;justify-content:center;z-index:1050;padding:1rem;overflow-y:auto}.modal-card,.modal-content{background-color:var(--surface-card)!important;color:var(--text-main);border:1px solid var(--surface-border);border-radius:var(--radius-lg);width:100%;max-width:640px;max-height:calc(100dvh - 2rem);box-shadow:0 20px 25px -5px #00000040,0 8px 10px -6px #00000040;display:flex;flex-direction:column;overflow:hidden;position:relative;margin:auto}.modal-sm{max-width:440px!important}.modal-md{max-width:580px!important}.modal-lg{max-width:780px!important}.modal-xl{max-width:1080px!important}.modal-full{max-width:calc(100vw - 2rem)!important;height:calc(100dvh - 2rem)!important}.modal-header{padding:1rem 1.25rem;border-bottom:1px solid var(--surface-border);display:flex;align-items:center;justify-content:space-between;background-color:var(--surface-card)!important;flex-shrink:0;z-index:10}.modal-body{padding:1.25rem;flex:1;overflow-y:auto;background-color:var(--surface-card)!important}.modal-footer{padding:.85rem 1.25rem;border-top:1px solid var(--surface-border);display:flex;align-items:center;justify-content:flex-end;gap:.75rem;background-color:var(--surface-subtle)!important;flex-shrink:0;z-index:10}@media(max-width:640px){.modal-backdrop{padding:.5rem;align-items:flex-end}.modal-card,.modal-content{max-height:calc(100dvh - 1rem);border-radius:var(--radius-lg) var(--radius-lg) 0 0}.modal-header{padding:.85rem 1rem}.modal-body{padding:1rem}.modal-footer{padding:.75rem 1rem}}.calendar-grid{display:grid;grid-template-columns:repeat(7,1fr);border-left:1px solid var(--surface-border);border-top:1px solid var(--surface-border);background-color:var(--surface-card)}.calendar-day-header{padding:.5rem .25rem;text-align:center;font-weight:600;font-size:.75rem;color:var(--text-secondary);background-color:var(--surface-subtle);border-right:1px solid var(--surface-border);border-bottom:1px solid var(--surface-border);text-transform:uppercase}.calendar-day-cell{min-height:84px;padding:.35rem .45rem;border-right:1px solid var(--surface-border);border-bottom:1px solid var(--surface-border);display:flex;flex-direction:column;transition:background-color .1s ease;cursor:pointer}.calendar-day-cell:hover{background-color:var(--surface-subtle)}.calendar-day-cell.other-month{background-color:#fafbfc;opacity:.55}.calendar-day-cell.is-today{background-color:#f0fdf4}.calendar-day-num{font-size:.8rem;font-weight:600;color:var(--text-main);margin-bottom:.25rem;display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:var(--radius-full)}.calendar-day-cell.is-today .calendar-day-num{background-color:var(--status-success-bg);color:var(--status-success-text)}.calendar-event-pill{font-size:.72rem;padding:.15rem .35rem;border-radius:3px;margin-bottom:.2rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:500}.subtabs-container{display:flex;border-bottom:1px solid var(--surface-border);gap:.5rem;margin-bottom:1.25rem;overflow-x:auto}.subtab-btn{padding:.6rem 1rem;font-size:.85rem;font-weight:600;color:var(--text-secondary);border-bottom:2px solid transparent;white-space:nowrap;display:flex;align-items:center;gap:.4rem;min-height:40px}.subtab-btn:hover{color:var(--text-main)}.subtab-btn.active{color:var(--brand-red);border-bottom-color:var(--brand-red)}.badge-unit-offense{background-color:#eff6ff;color:#1d4ed8;border:1px solid #bfdbfe}.badge-unit-defense{background-color:#fef2f2;color:#b91c1c;border:1px solid #fecaca}.badge-unit-staff{background-color:#f5f3ff;color:#6d28d9;border:1px solid #ddd6fe}
