*{box-sizing:border-box}html{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;color:#1a2d40;background:#f3f6fa}body{margin:0;padding-bottom:calc(72px + env(safe-area-inset-bottom))}a{color:inherit}.topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#17324d;color:white;padding:13px max(16px,calc((100vw - 1080px)/2));min-height:70px}.brand{color:#fff;text-decoration:none;font-weight:800;font-size:21px;display:flex;align-items:center;gap:10px}.brand small{display:block;font-size:10px;letter-spacing:.03em;font-weight:400;color:#cbd9e9}.mark{width:37px;height:37px;background:#fff;color:#17324d;border-radius:12px;display:grid;place-items:center}.top-actions{display:flex;align-items:center;gap:12px}.signedin{font-size:12px;opacity:.85}.logout{background:transparent;border:1px solid #7990a8;border-radius:10px;color:white;padding:9px 12px;cursor:pointer}main{max-width:1080px;margin:0 auto;padding:20px 15px 30px}.intro h1{font-size:27px;margin:4px 0}.intro p,.muted,.hint{color:#6c7c8e}.intro p{margin:0 0 20px}.eyebrow{font-size:10px;letter-spacing:.15em;font-weight:800;color:#6487ac}.member-filters{display:flex;gap:8px;overflow-x:auto;padding:0 0 12px;scrollbar-width:none}.member-filters::-webkit-scrollbar{display:none}.filter-chip{white-space:nowrap;background:#fff;border:1px solid #dae3ef;border-radius:22px;padding:10px 14px;font-size:13px;cursor:pointer;color:#34495e}.filter-chip.active{background:#17324d;color:#fff;border-color:#17324d}.filter-chip i{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:7px}.quick-add,.presets{display:flex;gap:8px;overflow-x:auto;padding:8px 0 15px;scrollbar-width:none}.quick-add a,.presets a{white-space:nowrap;font-size:12px;text-decoration:none;padding:10px 12px;border:1px solid #c9d8e8;border-radius:11px;background:#eaf1fa;color:#17324d;font-weight:650}.calendar-shell,.panel{background:#fff;border:1px solid #e1e7ef;border-radius:17px;padding:12px;box-shadow:0 3px 16px #1d39520a}.view-switch{display:flex;background:#eef2f6;padding:4px;border-radius:12px;margin-bottom:15px;gap:3px}.view-switch button{flex:1;background:none;border:0;border-radius:9px;padding:11px 5px;font-weight:650;color:#52657a;cursor:pointer}.view-switch button.active{background:white;color:#17324d;box-shadow:0 2px 6px #1b2d4614}.fc .fc-toolbar-title{font-size:19px!important;text-transform:capitalize}.fc .fc-button{background:#17324d!important;border-color:#17324d!important;font-size:12px!important}.fc .fc-daygrid-day-number{font-size:13px;text-decoration:none}.fc .fc-col-header-cell-cushion{font-size:12px;text-decoration:none}.fc .fc-daygrid-event{font-size:10px;border-radius:5px;padding:2px}.fc .fc-day-today{background:#eef7fc!important}.hint{font-size:13px;line-height:1.6;margin:14px 4px}.bottom-nav{position:fixed;bottom:0;left:0;right:0;display:flex;align-items:stretch;justify-content:space-around;background:#fff;border-top:1px solid #d8e1eb;z-index:40;padding:7px 6px calc(7px + env(safe-area-inset-bottom));box-shadow:0 -4px 18px #1e334317}.bottom-nav a{flex:1;display:flex;flex-direction:column;align-items:center;gap:3px;text-decoration:none;color:#6b7f91;font-size:11px;font-weight:650;padding:3px}.bottom-nav a.selected{color:#17324d}.nav-symbol{font-size:24px;line-height:26px}.panel{max-width:650px}.field{display:flex;flex-direction:column;gap:6px;margin-bottom:15px}.field label{font-size:14px;font-weight:700}.field input,.field select,.field textarea,.panel input{min-height:44px;border:1px solid #bfcede;border-radius:10px;padding:10px;width:100%;font:inherit;background:white;color:#1a2d40}.actions{display:flex;align-items:center;gap:15px;flex-wrap:wrap}.button{display:inline-block;background:#17324d;color:white;border:0;border-radius:11px;padding:13px 17px;text-decoration:none;font:inherit;font-weight:700;cursor:pointer}.hours-preview{background:#eaf7f2;color:#216849;padding:10px 14px;border-radius:9px;margin:8px 0 15px;font-size:14px;font-weight:700}.notice{border-radius:10px;padding:13px;background:#e7f7ee;margin-bottom:12px}.notice.error,.error{color:#a52232;background:#ffe7ea}.danger{background:#ad2638;color:white;border:0;border-radius:10px;padding:13px;margin-top:16px}.login{max-width:480px;margin:50px auto}.login .panel p{display:flex;flex-direction:column;gap:8px}.login .panel input{width:100%}details{padding:13px 0;border-bottom:1px solid #e2e7ee}pre{white-space:pre-wrap;overflow-wrap:anywhere}@media(min-width:760px){body{padding-bottom:20px}.bottom-nav{position:static;max-width:680px;margin:20px auto;border:1px solid #d8e1eb;border-radius:20px;padding:9px}.quick-add{flex-wrap:wrap}.calendar-shell{padding:22px}.fc .fc-daygrid-event{font-size:12px}}@media(max-width:450px){main{padding:16px 10px 25px}.calendar-shell{padding:8px}.fc .fc-toolbar-title{font-size:16px!important}.fc .fc-button{padding:6px 7px!important}.fc .fc-daygrid-day-number{font-size:12px}.fc .fc-daygrid-event{font-size:9px}}
/* FerreShift v0.4: calendar, quick actions, readable history */
.fc .fc-daygrid-day-frame{min-height:64px;cursor:pointer}.fc .fc-daygrid-day-number{font-weight:750}.fc .fc-daygrid-event{border:0!important;border-radius:7px!important;box-shadow:0 1px 3px #18344f1a}.fc .fc-day-today{background:#e4f2fc!important}.fc .fc-daygrid-day:hover{background:#f5f9fe}.fc .fc-toolbar-title{font-weight:800!important}.fc .fc-col-header-cell{background:#f4f7fb}.fc .fc-scrollgrid{border-radius:13px;overflow:hidden}.sheet-overlay[hidden]{display:none!important}.sheet-overlay{position:fixed;inset:0;z-index:100;display:flex;align-items:flex-end;justify-content:center}.sheet-backdrop{position:absolute;inset:0;background:#091a2fb5}.sheet-panel{position:relative;background:#fff;border-radius:24px 24px 0 0;padding:14px 17px calc(25px + env(safe-area-inset-bottom));width:100%;max-width:550px;max-height:90dvh;overflow-y:auto;box-shadow:0 -8px 40px #0003}.sheet-handle{width:42px;height:5px;border-radius:50px;background:#d4deeb;margin:0 auto 12px}.sheet-heading{display:flex;align-items:center;justify-content:space-between}.sheet-heading h2{font-size:21px;margin:4px 0}.sheet-heading button{background:#f0f4f9;border:0;border-radius:50%;width:38px;height:38px;font-size:19px}.sheet-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:15px 0}.sheet-choice{border:1px solid #dbe5ef;background:#f5f8fc;border-radius:14px;min-height:79px;padding:12px 10px;text-align:left;color:#17324d}.sheet-choice strong,.sheet-choice small{display:block}.sheet-choice strong{font-size:13px;line-height:1.4}.sheet-choice small{font-size:11px;margin-top:4px;color:#637c90}.sheet-choice:active{background:#dae9ff}.sheet-choice:disabled{opacity:.5}.sheet-error{color:#b72d37;font-size:13px}.sheet-panel>a{display:block;text-align:center;padding:12px;text-decoration:none;color:#245e99;font-weight:700}.history-card{border:1px solid #e3e9f1;border-radius:14px;padding:12px;margin-bottom:12px;background:#fff}.history-card>summary{cursor:pointer;display:flex;flex-direction:column;gap:5px}.history-card>summary small{color:#62778b}.history-body{padding:12px 0 0;font-size:13px}.history-sides{display:grid;grid-template-columns:1fr 1fr;gap:9px}.history-sides>div{background:#f0f5fb;border-radius:11px;padding:10px;display:flex;flex-direction:column;gap:5px;min-width:0}.history-sides span{font-size:10px;font-weight:800;letter-spacing:.08em;color:#687f95}.history-sides strong{font-size:13px;overflow-wrap:anywhere}.history-sides small{font-size:11px;color:#526a7e;overflow-wrap:anywhere}.technical{font-size:11px;color:#687f95}.history-data{overflow-wrap:anywhere}@media(max-width:420px){.sheet-panel{padding-left:12px;padding-right:12px}.sheet-choice{padding:10px 8px}.fc .fc-daygrid-day-frame{min-height:55px}}

/* v0.5: chip secundario de oficina y guardias destacadas. */
.fc .fc-daygrid-event.fs-office {background:#e7edf4!important;color:#415a70!important;border:1px solid #cbd8e6!important;box-shadow:none!important;font-size:10px!important;font-weight:650;padding:1px 3px!important;border-radius:5px!important}
.fc .fc-daygrid-event.fs-office .fc-event-time {display:none!important}
.fc .fc-daygrid-event.fs-guard {border-radius:8px!important;font-weight:800;box-shadow:0 2px 5px #235f9b33!important}
.fc .fc-daygrid-event.fs-guard .fc-event-time {display:none!important}
.fc .fc-daygrid-event.fs-office .fc-event-title {overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:450px){.fc .fc-daygrid-event.fs-office{font-size:9px!important;line-height:1.25}.fc .fc-daygrid-event.fs-guard{font-size:10px!important}}

/* v0.6 */
.fs-datetime-pair{display:grid;grid-template-columns:1.35fr 1fr;gap:10px}.fs-native-hidden{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important}.fs-agenda-item{display:flex;flex-direction:column;gap:3px;white-space:normal;line-height:1.4;min-width:0}.fs-agenda-item strong{font-size:14px}.fs-agenda-item div{font-size:12px;color:#52677b;overflow-wrap:anywhere}.fs-agenda-badge{font-size:10px;background:#fff0d9;color:#83500a;align-self:flex-start;padding:2px 7px;border-radius:6px;font-weight:700}.bottom-nav .nav-primary .nav-symbol{background:#17324d;color:#fff;border-radius:50%;width:39px;height:39px;display:grid;place-items:center}.bottom-nav .nav-primary{color:#17324d}.bottom-nav a{min-width:0}.history-card summary{list-style:none}.history-card summary::-webkit-details-marker{display:none}

/* FerreShift v0.7 - Panel de actividad diaria bajo el mes */
.fs-day-details{margin-top:14px;background:#fff;border:1px solid #e0e7ef;border-radius:18px;padding:16px;box-shadow:0 3px 16px #1d39520a}
.fs-day-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
.fs-day-heading h2{font-size:19px;text-transform:capitalize;margin:3px 0 0;color:#18344e}
.fs-day-kicker{font-size:10px;letter-spacing:.12em;color:#68829b;font-weight:800}
.fs-day-add{background:#17324d;color:#fff;border:0;border-radius:11px;padding:10px 12px;font-weight:700;white-space:nowrap;cursor:pointer}
.fs-day-events{display:grid;gap:9px}.fs-empty{font-size:13px;color:#6c7c8e;padding:12px 0;margin:0}
.fs-event-card{display:block;text-decoration:none;color:#19334a;border:1px solid #dce5ef;background:#f7faff;border-radius:14px;padding:12px}
.fs-event-header{display:flex;align-items:flex-start;gap:9px}.fs-event-dot{width:10px;height:10px;border-radius:50%;margin-top:6px;flex-shrink:0}
.fs-event-main{display:flex;flex-direction:column;gap:4px;min-width:0;flex:1}.fs-event-main strong{font-size:14px}.fs-event-meta{color:#5d7083;font-size:12px}
.fs-event-changed{font-size:10px;font-weight:800;padding:4px 6px;border-radius:7px;background:#fff0d7;color:#895509}
.fs-event-extra{font-size:12px;line-height:1.4;margin:8px 0 0 19px;color:#445f74;overflow-wrap:anywhere}
.fc .fc-daygrid-day.fs-selected-day{background:#e9f5ff!important;box-shadow:inset 0 0 0 2px #78b0e6}
.fc .fc-daygrid-day{touch-action:pan-y}
@media(max-width:450px){.fs-day-details{padding:12px}.fs-day-heading h2{font-size:16px}}
