:root{font-family:Arial,sans-serif;color:#203248;background:#f1f4f8}*{box-sizing:border-box}body{margin:0}main{max-width:1100px;margin:auto;padding:28px 20px}header,.toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px}h1{font-size:32px;margin:6px 0}h2{margin-bottom:8px}h3{margin:0;font-size:21px}.eyebrow{font-size:12px;letter-spacing:2px;font-weight:bold}a{color:#245c91}button{background:#203f61;color:white;border:0;border-radius:8px;padding:12px 18px;min-height:44px;cursor:pointer}button:disabled{opacity:.6}input,select{display:block;min-height:44px;margin:8px 0 16px;padding:10px;border:1px solid #bac6d2;border-radius:8px;font-size:16px;max-width:100%}label{font-weight:bold}form,.specialty{background:white;border:1px solid #dde4eb;border-radius:14px;padding:20px;margin:22px 0}form{max-width:430px}input{width:100%}.note,.muted,dt{color:#546579;font-size:14px;line-height:1.5}.calendar{display:grid;grid-template-columns:100px 1fr;gap:4px 12px;border-top:1px solid #e4e9ef;padding:18px 0}.calendar p{margin:3px 0}.attention{color:#885015}.healthy{color:#26714a}dl{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,1fr);gap:6px 16px;margin-bottom:0}dt{grid-row:1}dd{margin:0;font-size:14px;font-variant-numeric:tabular-nums}#message{font-size:14px}[hidden]{display:none!important}@media(max-width:600px){header,.toolbar{align-items:flex-start;flex-direction:column;gap:8px}main{padding:18px 14px}h1{font-size:28px}.specialty{padding:16px}dl{grid-template-columns:110px 1fr}dt{grid-row:auto}dd{overflow-wrap:anywhere}.calendar{grid-template-columns:70px 1fr}}

.specialty-heading{cursor:pointer;min-height:44px;line-height:1.5}.specialty-name{font-size:21px;font-weight:bold;margin-right:16px}.specialty-heading .attention{display:block;margin-left:20px}.specialty-heading:focus-visible{outline:2px solid #245c91;outline-offset:5px;border-radius:4px}.specialty[open]>.specialty-heading{margin-bottom:16px}

.specialty-status{display:block;margin:4px 0 0 20px;font-size:14px;font-weight:bold}.specialty-status.healthy::before{content:"● ";}.specialty-status.attention::before{content:"⚠ ";}
.buttons{display:flex;flex-wrap:wrap;gap:8px}.secondary{background:#fff;color:#294b6d;border:1px solid #bac6d2}.secondary:hover{background:#eef4f8}.calendar-actions{grid-column:1/-1;display:flex;gap:8px;margin-top:10px}.calendar.paused h3{color:#65778a}#add-panel form{border:0;padding:0;max-width:100%;margin:18px 0 0}#add-panel{scroll-margin-top:16px}#feed-url{max-width:650px}.preview-shifts{padding-left:22px;line-height:1.8}dialog{width:min(640px,calc(100vw - 28px));max-height:80vh;max-height:80dvh;overflow:auto;border:1px solid #d3dde6;border-radius:16px;padding:20px;color:#203248}dialog::backdrop{background:#1c304b66}.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;position:sticky;top:-20px;background:white;padding:10px 0;z-index:1}.dialog-heading h2{margin:0;font-size:21px}.dialog-heading button{min-width:44px;font-size:22px}.history-section{padding:12px 0;border-top:1px solid #e0e7ee}.history-section h3{font-size:17px}.history-section ul{padding-left:20px;line-height:1.6;font-size:14px}.history-section li{margin:6px 0;overflow-wrap:anywhere}@media(max-width:600px){dialog{padding:16px}.dialog-heading{top:-16px}.toolbar .buttons{width:100%}.toolbar .buttons button{flex:1}.calendar-actions button{min-height:44px}}

.calendar>p{grid-column:2}
#add-panel form{margin-top:0}#cancel-add{margin-top:14px}
.calendar>.calendar-full-name{grid-column:1/-1;font-weight:600;color:#203248;overflow-wrap:anywhere}#name-form{border:0;padding:0;margin:0;max-width:none}#name-form h2{margin-top:0}
.calendar-actions{flex-wrap:wrap}
.calendar>.review-details{grid-column:1/-1;color:#405b70;line-height:1.5;font-size:14px}

#refresh[aria-busy="true"]{display:inline-flex;align-items:center;justify-content:center;gap:8px;cursor:wait;opacity:1}
#refresh[aria-busy="true"]::before{content:"";width:14px;height:14px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:inventory-spin .8s linear infinite}
@keyframes inventory-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){#refresh[aria-busy="true"]::before{animation:none}}
