:root{--color-bg: #0f172a;--color-surface: #1e293b;--color-surface-hover: #334155;--color-border: #334155;--color-text: #f1f5f9;--color-text-muted: #94a3b8;--color-primary: #3b82f6;--color-primary-hover: #2563eb;--color-success: #22c55e;--color-danger: #ef4444;--color-warning: #f59e0b;--color-vacation: #3b82f6;--color-sick: #ef4444;--color-remote: #8b5cf6;--color-other: #6b7280;--radius: 12px;--radius-sm: 8px;--shadow: 0 4px 6px -1px rgb(0 0 0 / .3);--font: "Segoe UI", system-ui, -apple-system, sans-serif;--teamup-name-col: 150px;--day-cell-width: 44px}*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}body{font-family:var(--font);background:var(--color-bg);color:var(--color-text);line-height:1.5;min-height:100dvh;-webkit-font-smoothing:antialiased}#root{min-height:100dvh}.app{display:flex;flex-direction:column;min-height:100dvh;max-width:100vw;overflow-x:hidden}.app-loading,.loading{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:50vh;gap:1rem;color:var(--color-text-muted)}.spinner{width:40px;height:40px;border:3px solid var(--color-border);border-top-color:var(--color-primary);border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.login-page{min-height:100dvh;display:flex;align-items:center;justify-content:center;padding:1rem;background:linear-gradient(135deg,#0f172a,#1e3a5f,#0f172a)}.login-card{width:100%;max-width:400px;background:var(--color-surface);border-radius:var(--radius);padding:2rem;box-shadow:var(--shadow);border:1px solid var(--color-border)}.login-header{text-align:center;margin-bottom:2rem}.login-header .logo{font-size:3rem;margin-bottom:.5rem}.login-header h1{font-size:1.75rem;font-weight:700}.login-header p{color:var(--color-text-muted);margin-top:.25rem}.login-form{display:flex;flex-direction:column;gap:1rem}.form-group{display:flex;flex-direction:column;gap:.35rem}.form-group label{font-size:.85rem;font-weight:500;color:var(--color-text-muted)}.form-group input,.form-group select,.form-group textarea{background:var(--color-bg);border:1px solid var(--color-border);border-radius:var(--radius-sm);padding:.65rem .85rem;color:var(--color-text);font-size:1rem;font-family:inherit;transition:border-color .15s}.form-group input:focus,.form-group select:focus,.form-group textarea:focus{outline:none;border-color:var(--color-primary)}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.btn{display:inline-flex;align-items:center;justify-content:center;gap:.4rem;padding:.65rem 1.25rem;border:none;border-radius:var(--radius-sm);font-size:.9rem;font-weight:600;font-family:inherit;cursor:pointer;transition:all .15s}.btn:disabled{opacity:.6;cursor:not-allowed}.btn-primary{background:var(--color-primary);color:#fff}.btn-primary:hover:not(:disabled){background:var(--color-primary-hover)}.btn-success{background:var(--color-success);color:#fff}.btn-danger{background:var(--color-danger);color:#fff}.btn-ghost{background:transparent;color:var(--color-text-muted);border:1px solid var(--color-border)}.btn-ghost:hover{background:var(--color-surface-hover);color:var(--color-text)}.btn-sm{padding:.4rem .75rem;font-size:.8rem}.btn-block{width:100%}.alert{padding:.75rem 1rem;border-radius:var(--radius-sm);font-size:.9rem}.alert-error{background:#7f1d1d33;border:1px solid var(--color-danger);color:#fca5a5}.alert-success{background:#14532d44;color:#86efac;border:1px solid #22c55e66}.alert-success{background:#14532d33;border:1px solid var(--color-success);color:#86efac}.header{background:var(--color-surface);border-bottom:1px solid var(--color-border);position:sticky;top:0;z-index:100}.header-top{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;padding:.75rem 1rem;gap:.5rem}.header-brand{display:flex;align-items:center;gap:.75rem}.header-logo{font-size:1.75rem}.header-brand h1{font-size:1.1rem;font-weight:700}.header-team{font-size:.75rem;color:var(--color-text-muted)}.header-user{display:flex;align-items:center;gap:.75rem}.user-info{text-align:right}.user-info-link{display:block;background:none;border:none;padding:0;cursor:pointer;text-align:right;font:inherit;color:inherit}.user-info-link:hover .user-pool-header{color:var(--color-primary)}.header-user .user-name{display:block;font-size:.85rem;font-weight:600}.user-pool-header{font-size:.7rem;color:var(--color-text-muted)}.header-tabs{display:flex;gap:.25rem;background:var(--color-bg);padding:3px;border-radius:var(--radius-sm)}.header-tab{padding:.35rem .85rem;border:none;background:transparent;color:var(--color-text-muted);font-size:.85rem;border-radius:6px;cursor:pointer;font-family:inherit}.header-tab.active{background:var(--color-primary);color:#fff}.main-content{padding:1rem 1rem 2rem;max-width:900px;margin:0 auto}.main-content--full{max-width:none;padding:.75rem;flex:1;min-height:0;display:flex;flex-direction:column}.text-muted{color:var(--color-text-muted);font-size:.9rem}.estimate{font-size:.85rem;color:var(--color-primary)}.estimate-box{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius);padding:.75rem 1rem;margin-bottom:1rem}.estimate-main{margin:0 0 .25rem}.estimate-sub{margin:0;font-size:.8rem;color:var(--color-text-muted)}.estimate-holidays{margin:.5rem 0 0;padding-left:1.25rem;font-size:.8rem;color:var(--color-text-muted)}.teamup{display:flex;flex-direction:column;flex:1;min-height:0}.teamup-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.75rem;padding:.5rem .75rem;background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius);margin-bottom:.5rem}.teamup-nav{display:flex;align-items:center;gap:.35rem;flex-wrap:wrap}.teamup-title{font-size:1rem;font-weight:600;margin-left:.5rem;text-transform:capitalize}.teamup-actions{display:flex;align-items:center;gap:.5rem}.view-toggle{display:flex;background:var(--color-bg);border-radius:var(--radius-sm);padding:2px}.view-btn{padding:.35rem .75rem;border:none;background:transparent;color:var(--color-text-muted);font-size:.8rem;border-radius:6px;cursor:pointer;font-family:inherit}.view-btn.active{background:var(--color-primary);color:#fff}.teamup-legend{display:flex;flex-wrap:wrap;gap:.75rem;padding:.35rem .75rem;font-size:.75rem;color:var(--color-text-muted)}.legend-item{display:flex;align-items:center;gap:.35rem}.legend-hint{margin-left:auto;font-style:italic;opacity:.7}.dot{width:10px;height:10px;border-radius:3px;display:inline-block}.legend-dot-holiday{background:#d97706}.legend-dot-company{background:#2563eb}.legend-section-label{font-size:.65rem;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:var(--color-text-muted);margin-right:.15rem}.legend-dot-absence{border:1px dashed rgba(255,255,255,.35)}.btn-absence{background:#7f1d1d;color:#fecaca;border:1px solid #ef4444}.btn-absence:hover{background:#991b1b}.estimate-box--absence{border-color:#ef444466;background:#7f1d1d22}.entry-mode-hint{font-size:.85rem;margin:0}.teamup-event.is-absence{background-image:repeating-linear-gradient(-45deg,transparent,transparent 4px,rgba(255,255,255,.12) 4px,rgba(255,255,255,.12) 8px)!important;opacity:.92}.teamup-scroll{flex:1;overflow:auto;border:1px solid var(--color-border);border-radius:var(--radius);background:var(--color-surface);cursor:grab;touch-action:none;-webkit-overflow-scrolling:touch}.teamup-scroll.is-dragging{cursor:grabbing;-webkit-user-select:none;user-select:none}.teamup-scroll.is-dragging *{pointer-events:none}.teamup-scroll.month{overflow:auto}.teamup-scroll.week .teamup-grid{min-width:max(100%,calc(var(--teamup-name-col) + 77 * var(--day-cell-width)))}.teamup-grid{display:grid;grid-template-columns:var(--teamup-name-col) repeat(var(--day-count),var(--day-cell-width));width:max-content;min-width:100%}.teamup-scroll.year{--day-cell-width: 5px}.teamup-scroll.year .teamup-grid{min-width:max(100%,calc(var(--teamup-name-col) + var(--day-count) * 5px))}.teamup-scroll.year .teamup-corner,.teamup-scroll.year .teamup-holiday-corner{min-height:28px}.teamup-scroll.year .teamup-day-header{min-width:5px;min-height:28px;padding:0;overflow:visible;position:relative}.teamup-scroll.year .teamup-day-header.today{box-shadow:inset 0 0 0 1px var(--color-primary)}.teamup-scroll.year .teamup-day-header.month-start{border-left:2px solid var(--color-primary)}.teamup-scroll.year .teamup-day-header .month-label{position:absolute;left:2px;top:1px;font-size:.55rem;line-height:1;white-space:nowrap;background:var(--color-surface);padding:1px 2px;border-radius:2px;z-index:4}.teamup-scroll.year .teamup-holiday-mark{min-height:18px;top:28px}.teamup-scroll.year .teamup-holiday-corner{top:28px;min-height:18px;font-size:.55rem}.teamup-scroll.year .teamup-user,.teamup-scroll.year .teamup-track,.teamup-scroll.year .teamup-track--year{height:36px}.teamup-scroll.year .teamup-track{grid-template-columns:repeat(var(--day-count),var(--day-cell-width, 5px));width:calc(var(--day-count) * var(--day-cell-width, 5px))}.teamup-scroll.year .teamup-event{top:3px;min-height:30px;height:calc(100% - 6px);border-radius:2px;padding:0}.teamup-scroll.year .teamup-event--year{min-height:28px;opacity:.95}.teamup-scroll.year .teamup-event--year:hover{opacity:1;z-index:3;transform:scaleY(1.08)}.teamup-corner{grid-column:1;grid-row:1;position:sticky;left:0;top:0;z-index:3;background:var(--color-surface);border-bottom:1px solid var(--color-border);border-right:1px solid var(--color-border);min-height:44px}.teamup-day-header{grid-row:1;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:.4rem .25rem;background:var(--color-surface);border-bottom:1px solid var(--color-border);border-right:1px solid var(--color-border);min-width:var(--day-cell-width, 44px);position:sticky;top:0;z-index:2}.teamup-day-header.today{background:#1e3a5f}.teamup-day-header.weekend{opacity:.55}.teamup-day-header.holiday{background:#78350f44;box-shadow:inset 0 -2px #d97706}.teamup-day-header.company-holiday{background:#1e3a8a44;box-shadow:inset 0 -2px #2563eb}.teamup-day-header.month-start{border-left:2px solid var(--color-primary)}.day-holiday-star{font-size:.55rem;line-height:1;color:#fbbf24}.teamup-holiday-corner{grid-column:1;display:flex;align-items:center;justify-content:center;padding:0 .35rem;min-height:32px;font-size:.65rem;font-weight:600;color:var(--color-text-muted);text-transform:uppercase;letter-spacing:.02em;background:var(--color-bg);border-bottom:1px solid var(--color-border);border-right:1px solid var(--color-border);position:sticky;left:0;top:44px;z-index:3}.teamup-holiday-mark{display:flex;align-items:center;justify-content:center;min-height:32px;padding:.15rem .1rem;border-bottom:1px solid var(--color-border);border-right:1px solid var(--color-border);background:var(--color-bg);position:sticky;top:44px;z-index:2}.teamup-holiday-mark.holiday{background:#78350f22}.teamup-holiday-mark.company-holiday{background:#1e3a8a22}.teamup-holiday-mark.weekend{opacity:.55}.holiday-mark-label{font-size:.55rem;line-height:1.15;text-align:center;font-weight:600;color:var(--color-text);overflow:hidden;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;word-break:break-word}.teamup-holiday-mark.holiday .holiday-mark-label{color:#fbbf24}.teamup-holiday-mark.company-holiday .holiday-mark-label{color:#93c5fd}.month-label{font-size:.6rem;color:var(--color-primary);font-weight:700;text-transform:uppercase}.day-name{font-size:.65rem;color:var(--color-text-muted);text-transform:uppercase}.day-num{font-size:.9rem;font-weight:600}.teamup-user{grid-column:1;display:flex;align-items:center;gap:.5rem;padding:0 .75rem;height:60px;background:var(--color-surface);border-bottom:1px solid var(--color-border);border-right:1px solid var(--color-border);position:sticky;left:0;z-index:1}.user-dot{width:10px;height:10px;border-radius:50%;flex-shrink:0}.teamup-user.is-me{background:#1e3a5f55;border-right-color:var(--color-primary)}.teamup-user .user-name{font-size:.85rem;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1;min-width:0}.user-pool{font-size:.7rem;color:var(--color-text-muted);flex-shrink:0}.teamup-track{grid-column:2 / -1;position:relative;display:grid;grid-template-columns:repeat(var(--day-count),var(--day-cell-width));width:calc(var(--day-count) * var(--day-cell-width));height:60px;border-bottom:1px solid var(--color-border)}.teamup-track.is-me{background:#1e3a5f22}.teamup-cell{border-right:1px solid var(--color-border);background:transparent;cursor:default;padding:0;border-top:none;border-bottom:none;border-left:none}.teamup-cell.clickable,.teamup-track.is-me.is-selecting{cursor:crosshair}.teamup-cell.selected{background:#2563eb66!important;box-shadow:inset 0 0 0 2px var(--color-primary);z-index:1}.teamup-cell.clickable:hover:not(.selected){background:var(--color-surface-hover)}.teamup-cell.weekend{background:#0f172a44}.teamup-cell.holiday{background:#78350f18}.teamup-cell.company-holiday{background:#1e3a8a18}.teamup-cell.holiday.weekend,.teamup-cell.company-holiday.weekend{background-image:linear-gradient(135deg,#0f172a44 25%,transparent 25%,transparent 50%,#0f172a44 50%,#0f172a44 75%,transparent 75%,transparent);background-size:8px 8px}.teamup-cell.holiday:not(.weekend){box-shadow:inset 0 0 0 1px #d9770644}.teamup-cell.company-holiday:not(.weekend){box-shadow:inset 0 0 0 1px #2563eb44}.teamup-event{position:absolute;top:4px;height:calc(100% - 8px);min-height:48px;border:none;border-radius:6px;color:#fff;font-size:.7rem;font-weight:600;padding:.3rem .45rem;cursor:pointer;display:flex;align-items:stretch;justify-content:space-between;gap:.25rem;overflow:hidden;z-index:1;font-family:inherit;opacity:.94;transition:opacity .1s,box-shadow .1s;box-shadow:0 1px 3px #00000040}.teamup-event:hover{opacity:1;z-index:2;box-shadow:0 2px 6px #00000059}.event-body{flex:1;min-width:0;display:flex;flex-direction:column;justify-content:center;gap:.12rem;text-align:left;line-height:1.15}.event-type{font-size:.72rem;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.event-type--compact{font-size:.78rem;text-align:center;width:100%}.event-meta{font-size:.62rem;font-weight:500;opacity:.92;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.event-note{font-size:.58rem;font-weight:400;font-style:italic;opacity:.85;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.event-meta--compact{font-size:.58rem;text-align:center}.teamup-event--narrow{padding:.2rem .3rem}.teamup-event--narrow .event-body{align-items:stretch}.event-delete{flex-shrink:0;align-self:flex-start;margin-left:.1rem;font-size:1rem;line-height:1;opacity:.75;padding:0 .1rem}.event-delete:hover{opacity:1}.modal-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background:#0009;display:flex;align-items:center;justify-content:center;z-index:200;padding:1rem}.modal{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius);width:100%;max-width:420px;max-height:90dvh;overflow-y:auto}.modal-header{display:flex;align-items:center;justify-content:space-between;padding:1rem 1.25rem;border-bottom:1px solid var(--color-border)}.modal-header h2{font-size:1.1rem}.modal-close{background:none;border:none;color:var(--color-text-muted);font-size:1.5rem;cursor:pointer;line-height:1}.modal-body{padding:1.25rem;display:flex;flex-direction:column;gap:.75rem}.modal-actions{display:flex;gap:.5rem;justify-content:flex-end;margin-top:.5rem}.entry-note{font-style:italic;color:var(--color-text-muted)}.users-panel{padding:.75rem;max-width:960px;margin:0 auto}.users-panel-header{display:flex;flex-wrap:wrap;align-items:center;gap:.75rem;margin-bottom:1rem}.users-panel-header h2{flex:1}.users-panel-header .text-muted{width:100%;margin-top:-.5rem}.users-table-wrap{overflow-x:auto;border:1px solid var(--color-border);border-radius:var(--radius);background:var(--color-surface)}.users-table{width:100%;border-collapse:collapse;font-size:.9rem}.users-table th,.users-table td{padding:.75rem 1rem;text-align:left;border-bottom:1px solid var(--color-border)}.users-table th{color:var(--color-text-muted);font-weight:600;font-size:.8rem}.users-table tr:last-child td{border-bottom:none}.users-actions{display:flex;gap:.35rem;white-space:nowrap}.btn-danger-text{color:var(--color-danger)!important}.stats-panel{padding:.75rem;max-width:960px;margin:0 auto}.stats-toolbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:1rem;gap:1rem}.stats-toolbar-actions{display:flex;align-items:center;gap:.5rem;flex-shrink:0}.card-header-row{display:flex;align-items:center;justify-content:space-between;gap:.75rem;margin-bottom:.75rem}.card-header-row h3{margin:0}.year-select{background:var(--color-surface);border:1px solid var(--color-border);color:var(--color-text);padding:.4rem .75rem;border-radius:var(--radius-sm);font-family:inherit}.stats-summary-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:.75rem;margin-bottom:1rem}.stat-card{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius);padding:1rem;display:flex;flex-direction:column;gap:.25rem}.stat-value{font-size:1.75rem;font-weight:700}.stat-label{font-size:.8rem;color:var(--color-text-muted)}.progress-bar{height:8px;background:var(--color-bg);border-radius:4px;overflow:hidden;margin:.75rem 0 .5rem}.progress-fill{height:100%;background:linear-gradient(90deg,var(--color-primary),var(--color-success));border-radius:4px}.progress-text{font-size:.85rem;color:var(--color-text-muted)}.type-breakdown{display:flex;flex-direction:column;gap:.5rem;margin-top:.75rem}.type-row{display:flex;align-items:center;gap:.5rem;font-size:.9rem}.type-row strong{margin-left:auto}.card{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius);padding:1.25rem;margin-bottom:1rem}.card h3{font-size:1rem;margin-bottom:1rem}.history-header{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1rem}.history-header h3{margin-bottom:0}.history-list{display:flex;flex-direction:column;gap:.5rem}.history-item{display:flex;gap:.75rem;padding:.75rem;background:var(--color-bg);border-radius:var(--radius-sm);border:1px solid var(--color-border)}.history-item.is-mine{border-color:var(--color-primary);background:#1e3a5f33}.history-color{width:4px;border-radius:2px;flex-shrink:0}.history-content{flex:1;min-width:0}.history-top{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;margin-bottom:.25rem}.history-badge{font-size:.7rem;padding:.1rem .45rem;border-radius:999px;background:var(--color-surface-hover)}.history-time{font-size:.7rem;color:var(--color-text-muted);margin-left:auto}.history-dates{font-size:.9rem}.history-note{font-size:.8rem;color:var(--color-text-muted);margin-top:.25rem;font-style:italic}.users-table tr.row-me{background:#1e3a5f44}.teamup--mobile{padding:0;gap:.35rem}.mobile-cal{display:flex;flex-direction:column;flex:1;min-height:0;gap:.45rem}.mobile-cal-header{display:flex;align-items:center;gap:.3rem;padding:.15rem .1rem}.mobile-cal-title{flex:1;text-align:center;font-weight:700;font-size:1.05rem;text-transform:capitalize;background:none;border:none;color:inherit;font-family:inherit;cursor:pointer;padding:.35rem}.mobile-cal-nav{width:2.25rem;height:2.25rem;border:none;border-radius:50%;background:var(--color-surface);color:var(--color-text);font-size:1.35rem;line-height:1;cursor:pointer;flex-shrink:0}.mobile-cal-today{font-size:.72rem;padding:.35rem .55rem;border:1px solid var(--color-border);border-radius:var(--radius-sm);background:var(--color-surface);color:var(--color-primary);font-family:inherit;font-weight:600;cursor:pointer;flex-shrink:0}.mobile-cal-actions{display:flex;flex-wrap:wrap;gap:.35rem;padding:0 .1rem}.mobile-cal-grid-wrap{flex-shrink:0;touch-action:pan-y;width:100%}.mobile-cal-weekdays{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));text-align:center;font-size:.68rem;font-weight:700;color:var(--color-text-muted);margin-bottom:.25rem;width:100%}.mobile-cal-weekday{padding:.15rem 0}.mobile-cal-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));grid-template-rows:repeat(6,1fr);gap:4px;width:100%}.mobile-cal-day{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;width:100%;min-width:0;aspect-ratio:1;padding:.12rem .05rem .08rem;border:none;border-radius:8px;background:var(--color-surface);color:var(--color-text);font-family:inherit;cursor:pointer}.mobile-cal-day.other-month{opacity:.35}.mobile-cal-day.weekend{background:#162032}.mobile-cal-day.today .mobile-cal-day-num{box-shadow:0 0 0 2px var(--color-primary);border-radius:50%}.mobile-cal-day.selected{background:#1e3a5f;outline:2px solid var(--color-primary);outline-offset:-1px}.mobile-cal-day.holiday{box-shadow:inset 0 -2px #d97706}.mobile-cal-day.company-holiday{box-shadow:inset 0 -2px #2563eb}.mobile-cal-day-num{font-size:.82rem;font-weight:600;width:1.55rem;height:1.55rem;display:flex;align-items:center;justify-content:center;line-height:1}.mobile-cal-avatars{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:2px;margin-top:auto;padding-bottom:.08rem;width:100%}.user-avatar{display:inline-flex;align-items:center;justify-content:center;border-radius:50%;font-weight:700;color:#fff;text-shadow:0 1px 1px rgb(0 0 0 / 35%);flex-shrink:0;line-height:1;letter-spacing:-.02em}.user-avatar--xs{width:13px;height:13px;font-size:.42rem}.user-avatar--sm{width:17px;height:17px;font-size:.52rem}.user-avatar--md{width:28px;height:28px;font-size:.62rem;flex-shrink:0}.mobile-cal-avatar-more{font-size:.45rem;font-weight:700;color:var(--color-text-muted);line-height:1}.mobile-cal-legend{display:flex;flex-wrap:wrap;gap:.3rem .55rem;padding:.15rem .1rem;font-size:.65rem;color:var(--color-text-muted)}.mobile-cal-legend-item{display:inline-flex;align-items:center;gap:.25rem}.mobile-cal-detail{flex:1;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch;background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius);padding:.65rem .75rem}.mobile-cal-detail-title{font-size:.92rem;font-weight:600;text-transform:capitalize;margin-bottom:.45rem}.mobile-cal-holiday{font-size:.78rem;margin-bottom:.45rem;padding:.35rem .5rem;border-radius:var(--radius-sm)}.mobile-cal-holiday.holiday{background:#78350f33;color:#fbbf24}.mobile-cal-holiday.company-holiday{background:#1e3a8a33;color:#93c5fd}.mobile-cal-empty{color:var(--color-text-muted);font-size:.84rem}.mobile-cal-list{list-style:none;display:flex;flex-direction:column;gap:.35rem}.mobile-cal-entry{display:flex;align-items:flex-start;gap:.5rem;width:100%;padding:.55rem .65rem;border:1px solid var(--color-border);border-radius:var(--radius-sm);background:var(--color-bg);color:inherit;font-family:inherit;text-align:left;cursor:pointer}.mobile-cal-entry.is-absence{border-style:dashed;opacity:.92}.mobile-cal-entry-body{display:flex;flex-direction:column;gap:.12rem;min-width:0}.mobile-cal-entry-name{font-weight:600;font-size:.86rem}.mobile-cal-entry-meta{font-size:.74rem;color:var(--color-text-muted);line-height:1.35}.mobile-cal-entry-type{font-weight:600}.mobile-cal-entry-note{font-size:.72rem;color:var(--color-text-muted);font-style:italic}@media(min-width:640px){.stats-summary-grid{grid-template-columns:repeat(3,1fr)}}@media(min-width:768px){.header-top{padding:.75rem 1.5rem}.teamup-title{font-size:1.15rem}.teamup-user,.teamup-track{height:68px}.teamup-event{min-height:56px}.legend-hint{display:inline}}@media(max-width:767px){:root{--teamup-name-col: 48px;--day-cell-width: 34px}.main-content--full{padding:.35rem}.header-top{padding:.5rem .65rem}.header-brand{min-width:0}.header-brand h1{font-size:.95rem}.header-logo{font-size:1.35rem}.header-team{font-size:.65rem}.header-user{gap:.35rem;max-width:42%}.header-user .user-name{font-size:.72rem;max-width:7.5rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.user-pool-header{display:none}.header-tabs{order:3;width:100%;justify-content:flex-start;overflow-x:auto;flex-wrap:nowrap;-webkit-overflow-scrolling:touch;scrollbar-width:none}.header-tabs::-webkit-scrollbar{display:none}.header-tab{padding:.28rem .55rem;font-size:.72rem;flex-shrink:0}.teamup-toolbar{padding:.4rem .45rem;gap:.4rem}.teamup-nav{width:100%;gap:.2rem}.teamup-title{font-size:.85rem;margin-left:.15rem;flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.teamup-actions{width:100%;flex-wrap:wrap;gap:.35rem}.view-toggle{flex:1 1 100%;overflow-x:auto;flex-wrap:nowrap;-webkit-overflow-scrolling:touch;scrollbar-width:none}.view-toggle::-webkit-scrollbar{display:none}.view-btn{padding:.28rem .45rem;font-size:.68rem;flex-shrink:0}.teamup-actions .btn-sm{padding:.28rem .5rem;font-size:.72rem}.teamup-legend{gap:.4rem .65rem;padding:.3rem .45rem;font-size:.68rem}.legend-section-label{display:none}.legend-hint{width:100%;margin-left:0;margin-top:.15rem;font-size:.65rem}.teamup-day-header{padding:.2rem .05rem;min-width:var(--day-cell-width)}.day-name{font-size:.52rem}.day-num{font-size:.72rem}.month-label{font-size:.52rem}.teamup-user{padding:0 .2rem;gap:.15rem;justify-content:center;height:48px}.teamup-user .user-name{display:none}.teamup-user .user-dot{width:8px;height:8px}.teamup-user .user-pool{font-size:.62rem;font-weight:600}.teamup-track{height:48px}.teamup-event{min-height:40px;top:3px}.teamup-holiday-corner{font-size:0;min-height:22px;padding:0;top:36px}.teamup-holiday-corner:before{content:"★";font-size:.55rem}.teamup-holiday-mark{min-height:22px;top:36px}.teamup-corner{min-height:36px}.pwa-install{flex-direction:column;align-items:stretch;gap:.5rem;padding:.6rem .75rem}.pwa-install-text{font-size:.78rem}}.pwa-install{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.75rem 1rem;background:linear-gradient(90deg,#1e3a5f,#1e40af);border-bottom:1px solid var(--color-border)}.pwa-install-text{display:flex;flex-direction:column;gap:.15rem;font-size:.85rem}.pwa-install-text strong{font-size:.95rem}.pwa-install-text span{color:var(--color-text-muted)}.pwa-install-actions{display:flex;align-items:center;gap:.35rem;flex-shrink:0}@media(display-mode:standalone){.header{padding-top:env(safe-area-inset-top,0)}.app{padding-bottom:env(safe-area-inset-bottom,0)}}.admin-panel{display:flex;flex-direction:column;gap:1rem}.admin-tabs{display:flex;gap:.35rem;flex-wrap:wrap;padding:0 .5rem}.admin-tab{padding:.45rem .85rem;border-radius:var(--radius);border:1px solid var(--color-border);background:var(--color-surface);color:var(--color-text-muted);cursor:pointer;font-size:.85rem}.admin-tab.active{background:var(--color-primary);border-color:var(--color-primary);color:#fff}.admin-section h2{margin:0 0 .35rem;font-size:1.15rem}.admin-section .text-muted{margin-bottom:1rem}.admin-inline-form{display:flex;flex-wrap:wrap;gap:.5rem;align-items:flex-end;margin-bottom:1rem}.admin-inline-form input[type=text],.admin-inline-form input[type=number],.admin-inline-form input:not([type=color]):not([type=checkbox]){padding:.45rem .65rem;border-radius:var(--radius);border:1px solid var(--color-border);background:var(--color-bg);color:var(--color-text);min-width:180px}.admin-type-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:.5rem;margin-bottom:1rem;align-items:center}.admin-type-form input:not([type=checkbox]){padding:.45rem .65rem;border-radius:var(--radius);border:1px solid var(--color-border);background:var(--color-bg);color:var(--color-text)}.admin-check{display:flex;align-items:center;gap:.35rem;font-size:.85rem}.admin-type-key{font-size:.8rem}.users-panel-actions{margin-bottom:1rem}.holiday-list{list-style:none;padding:0;margin:0 0 1.25rem;display:grid;gap:.35rem}.holiday-list-item{display:flex;flex-wrap:wrap;align-items:center;gap:.5rem;padding:.45rem .65rem;background:var(--color-bg);border-radius:var(--radius);border:1px solid var(--color-border);font-size:.9rem}.holiday-list-date{font-weight:600;min-width:6.5rem}.holiday-list-name{flex:1;min-width:10rem}.holiday-list-actions{display:flex;gap:.25rem;margin-left:auto}.holiday-badge{font-size:.7rem;text-transform:uppercase;letter-spacing:.03em;padding:.15rem .4rem;border-radius:999px;font-weight:600}.holiday-badge--national{background:#78350f22;color:#92400e}.holiday-badge--company{background:#1e3a8a22;color:#1d4ed8}.admin-subheading{font-size:.95rem;font-weight:600;margin:1.25rem 0 .5rem}.admin-holiday-form input[type=date]{min-width:10rem}.admin-holiday-form input[type=text],.admin-holiday-form input:not([type=date]){flex:1;min-width:12rem}.profile-panel{max-width:960px;margin:0 auto;padding:.5rem}.profile-grid{display:grid;gap:1rem}.profile-section h2{font-size:1.1rem;margin-bottom:.35rem}.profile-section--highlight{border-color:var(--color-primary);box-shadow:0 0 0 1px #3b82f633}.profile-form{display:flex;flex-direction:column;gap:.75rem;margin-top:1rem}.profile-pool-row{align-items:end}.profile-pool-summary{display:flex;gap:1rem;font-size:.9rem;padding-bottom:.5rem}.profile-hint{font-size:.85rem;margin:0}.profile-types-table-wrap{overflow-x:auto;border:1px solid var(--color-border);border-radius:var(--radius);background:var(--color-surface)}.profile-types-table td{vertical-align:middle}.profile-types-table th:nth-child(2),.profile-types-table th:nth-child(3),.profile-types-table th:nth-child(4),.profile-types-table td:nth-child(2),.profile-types-table td:nth-child(3),.profile-types-table td:nth-child(4){text-align:center;white-space:nowrap}.profile-type-label{display:flex;align-items:center;gap:.5rem;min-width:0}.profile-type-label-text{min-width:0}.profile-type-label-text strong{font-weight:600}.profile-type-note{font-size:.8rem}.profile-limit-input{width:5.5rem;padding:.35rem .5rem;border:1px solid var(--color-border);border-radius:var(--radius);background:var(--color-bg);color:var(--color-text)}.profile-types-section-row td{padding-top:.85rem;padding-bottom:.35rem;border-bottom:none;background:var(--color-bg)}.profile-types-section-label{font-size:.75rem;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:var(--color-text-muted)}.profile-add-types-btn{width:100%;margin-top:.5rem;justify-content:center}.profile-alert{margin-top:1rem}.onboarding-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:200;background:#0f172acc;display:flex;align-items:center;justify-content:center;padding:1rem;overflow-y:auto}.onboarding-card{width:min(640px,100%);max-height:95vh;overflow-y:auto;padding:1.5rem}.onboarding-header{text-align:center;margin-bottom:1.25rem}.onboarding-header h2{margin:.35rem 0;font-size:1.35rem}.onboarding-icon{font-size:2rem;display:block}.onboarding-later{margin-top:.75rem;font-size:.875rem}.field-hint{font-size:.75rem;color:var(--color-text-muted)}.btn-lg{width:100%;padding:.65rem 1rem;font-size:1rem}
