.leave-workspace{max-width:1100px;margin:auto;color:var(--text)}
.leave-toolbar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:20px}.leave-toolbar label{display:flex;align-items:center;gap:10px;margin:0}.leave-toolbar select{min-height:44px;min-width:100px;font-size:16px}
.leave-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.leave-totals .panel{display:grid;gap:8px;margin:0}.leave-totals span,.leave-totals small,.leave-caption{color:var(--text-secondary)}.leave-totals strong{font-size:clamp(30px,5vw,52px);line-height:1;color:var(--accent)}
.leave-caption,.leave-notice{font-size:15px;line-height:1.6;margin:18px 0}.leave-notice{padding:14px;border:1px solid var(--border-soft);background:var(--surface-raised)}
.leave-period{display:flex;justify-content:space-between;gap:18px;align-items:start}.leave-period h2{font-size:22px;margin:8px 0}.leave-period p{margin:8px 0;overflow-wrap:anywhere}.leave-period small{display:block;line-height:1.7;color:var(--text-secondary)}.leave-period-actions{display:flex;gap:8px;flex-wrap:wrap}.leave-status{font-size:14px;font-weight:600;color:var(--text-secondary)}.leave-period.is-cancelled{border-style:dashed}.leave-period.is-cancelled h2{text-decoration:line-through}.leave-setup{margin:0 0 20px}
.leave-dialog{color:var(--text);background:var(--surface);border:1px solid var(--border-soft);border-top:3px solid var(--accent);width:min(560px,calc(100vw - 24px));padding:0;max-height:90dvh;box-sizing:border-box}.leave-dialog::backdrop{background:#0009}.leave-dialog form{display:flex;flex-direction:column;max-height:88dvh}.leave-dialog header,.leave-dialog footer{display:flex;gap:12px;align-items:center;justify-content:space-between;padding:16px;border-bottom:1px solid var(--border-soft);flex:none}.leave-dialog header h2{font-size:22px;margin:0}.leave-dialog header button{min-width:44px;min-height:44px;background:transparent;border:0;color:var(--text);font-size:28px}.leave-dialog footer{border-top:1px solid var(--border-soft);border-bottom:0}.leave-dialog footer .button{min-width:100px}.leave-dialog-body{padding:16px;overflow:auto;overscroll-behavior:contain}.leave-dialog label{display:grid;gap:6px;margin:0 0 16px;font-size:16px}.leave-dialog input:not([type=checkbox]),.leave-dialog textarea,.leave-dialog select{width:100%;min-width:0;box-sizing:border-box;font-size:16px;min-height:44px}.leave-dialog p{line-height:1.6;font-size:15px}.leave-date-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.leave-dialog fieldset{border:1px solid var(--border-soft);margin:0 0 16px}.leave-dialog .leave-weekday{display:inline-flex;gap:8px;align-items:center;margin:6px 12px 6px 0;min-height:36px}.leave-weekday input{width:20px;height:20px}
@media(max-width:760px){.leave-toolbar{gap:8px}.leave-toolbar .button{flex:1;font-size:14px}.leave-totals{gap:8px}.leave-totals .panel{padding:12px;min-width:0}.leave-totals span,.leave-totals small{font-size:13px;overflow-wrap:anywhere}.leave-period{display:block}.leave-period-actions{margin-top:16px}.leave-period-actions .button{flex:1;min-height:44px}.leave-dialog{width:calc(100vw - 16px);max-height:calc(var(--editor-viewport-height,100dvh) - 16px);margin:8px auto}.leave-dialog form{max-height:calc(var(--editor-viewport-height,100dvh) - 20px)}.leave-dialog footer{padding:12px}.leave-date-fields{gap:10px}}
@media(max-width:760px){
 body[data-mobile-view=leave] .page-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;padding:12px 0;border-bottom:0}
 body[data-mobile-view=leave] .page-head [data-leave=new]{font-size:14px;min-height:44px;white-space:normal}
}
.leave-calendar-loading{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.leave-period>div{min-width:0}.leave-period h2{overflow-wrap:anywhere}
