/* A calendar-first, two-path replacement experience. Avoid nested cards on mobile. */
.replacement-hub { --replace-text:#233529; --replace-muted:#71806d; --replace-line:#dce6d4; --replace-card:#fffefa; --replace-soft:#f0f5e9; --replace-lime:#dff392; --replace-night:#354954; }
.replacement-hub .calendar-swap-panel { border-top:3px solid #8b9ce2!important; }
.replacement-hub .calendar-cover-form.is-personal-give { border-top:3px solid #b6d86a!important; }
.replacement-flow-subtitle,.replacement-give-intro p { max-width:54ch;margin:8px 0 0;color:var(--replace-muted);font-size:12px;line-height:1.55; }
.replacement-hub .calendar-swap-step { display:block;padding:17px 0;border-top:1px solid var(--replace-line); }
.replacement-hub .calendar-swap-step-num { display:inline-grid;width:27px;height:27px;margin:0 7px 10px 0;vertical-align:middle;border:0;border-radius:9px;background:#e3e8fb;color:#43599b;font-size:11px; }
.replacement-hub .calendar-swap-step-body { gap:12px; }
.replacement-hub .calendar-swap-step-body>strong { font-size:15px; }
.replacement-hub .calendar-swap-step-body>p { color:var(--replace-muted);font-size:12px; }
.replacement-hub .calendar-swap-panel-top { padding-bottom:16px; }
.replacement-hub .calendar-swap-people { grid-template-columns:1fr;gap:8px; }
.replacement-hub .calendar-swap-people>button { min-height:60px;border:1px solid var(--replace-line);border-radius:13px;background:var(--replace-card);box-shadow:none; }
.replacement-hub .calendar-swap-people>button.chosen { border:1.5px solid #7b95d6;background:#eaf0ff;box-shadow:inset 3px 0 #8098dc; }
.replacement-hub .calendar-swap-people>button.needs-24 { border-color:#d7a18d; }
.replacement-hub .calendar-swap-people>button.is-blocked { opacity:.6;cursor:not-allowed;background:#f2ece8; }
.replacement-hub .calendar-swap-people .calendar-swap-risk-label { color:#aa503c;font-size:11px;font-weight:850;white-space:normal;line-height:1.4; }
.replacement-hub .calendar-swap-people>button.is-blocked .calendar-swap-risk-label { color:#ad3431; }
.calendar-swap-24-box { display:grid;gap:8px;margin:8px 0;padding:14px;border:1px solid #dca295;border-radius:14px;background:#fff0e9;color:#70352b; }
.calendar-swap-24-box>strong { font-size:14px;font-weight:950; }
.calendar-swap-24-box>p { margin:0!important;color:#7a493e!important;font-size:12px!important;line-height:1.55!important; }
.calendar-swap-24-consent { display:flex;align-items:flex-start;gap:11px;padding:12px 13px;border:1px solid #bb7e6f;border-radius:11px;background:#fffefa;color:#55362e;font-size:12px;font-weight:850;line-height:1.5;cursor:pointer; }
.calendar-swap-24-consent input { width:21px;height:21px;flex:none;margin:0;accent-color:#9c5a43; }
.calendar-swap-blocked-note { margin:9px 0;padding:10px 12px;border:1px solid #d79d95;border-radius:11px;background:#ffebe7;color:#9b3430;font-size:12px;line-height:1.5;font-weight:850; }
.replacement-hub .calendar-swap-preview>div { border:1px solid var(--replace-line);border-radius:12px; }
.replacement-give-intro { padding:1px 0 16px;border-bottom:1px solid var(--replace-line); }
.replacement-give-intro h2 { margin:7px 0 0;font-size:clamp(22px,5vw,28px);font-weight:950;letter-spacing:-.04em;line-height:1.15; }
.replacement-give-step { display:grid;gap:10px; }
.replacement-give-step-title { display:flex;align-items:center;gap:9px;color:var(--replace-text); }
.replacement-give-step-title>span { display:grid;place-items:center;width:28px;height:28px;flex:none;border-radius:9px;background:#dff392;color:#2a422a;font-size:12px;font-weight:950; }
.replacement-give-step-title>strong { font-size:15px;font-weight:950;line-height:1.3; }
.replacement-hub .calendar-cover-form.is-personal-give { gap:18px; }
.replacement-hub .calendar-cover-form.is-personal-give .calendar-cover-roles { padding:0;border:0;border-radius:0; }
.replacement-hub .calendar-cover-form.is-personal-give .calendar-cover-roles legend { margin-bottom:10px;padding:0;color:var(--replace-muted);font-size:12px; }
.replacement-hub .calendar-cover-form.is-personal-give .coverage-audience-toggle { gap:5px;padding:4px;border:1px solid var(--replace-line);border-radius:14px;background:var(--replace-soft); }
.replacement-hub .calendar-cover-form.is-personal-give .coverage-audience-toggle button { min-height:47px;padding:9px 5px;border:0;border-radius:10px;background:transparent;box-shadow:none;color:var(--replace-text);font-size:11px; }
.replacement-hub .calendar-cover-form.is-personal-give .coverage-audience-toggle button.selected { background:var(--replace-lime);color:#263924; }
.replacement-hub .calendar-cover-form.is-personal-give .coverage-people-list { grid-template-columns:1fr;max-height:340px;gap:0;padding:0; }
.replacement-hub .calendar-cover-form.is-personal-give .coverage-people-list label { min-height:62px;margin:0;padding:10px 8px;border:0;border-bottom:1px solid var(--replace-line);border-radius:0;background:transparent;box-shadow:none; }
.replacement-hub .calendar-cover-form.is-personal-give .coverage-people-list label.checked { background:#eff9d4; }
.replacement-hub .calendar-cover-form.is-personal-give .coverage-people-list label.is-double:not(.is-unavailable) { background:#fff1e9; }
.replacement-hub .calendar-cover-form.is-personal-give .coverage-people-list label.is-unavailable { opacity:.42; }
.replacement-hub .calendar-cover-form.is-personal-give .calendar-cover-submit { background:var(--replace-lime);color:#273823;border:0;box-shadow:none; }
.replacement-give-info { margin:0;color:var(--replace-muted);font-size:12px;line-height:1.5; }

.own-shift-picker { display:grid;gap:11px;min-width:0;color:var(--replace-text,#283526); }
.own-shift-heading strong { display:block;font-size:14px;font-weight:900; }
.own-shift-heading small { display:block;margin-top:2px;color:var(--replace-muted,#71806d);font-size:11px;line-height:1.5; }
.own-shift-month { display:flex;align-items:center;justify-content:space-between;gap:9px; }
.own-shift-month>strong { font-size:14px;font-weight:950;text-align:center;text-transform:capitalize; }
.own-shift-month>button { width:35px;height:35px;flex:none;border:1px solid var(--replace-line,#dce6d4);border-radius:11px;background:var(--replace-soft,#f0f5e9);color:var(--replace-text,#283526);font-size:27px;line-height:1; }
.own-shift-month>button:disabled { opacity:.3;cursor:default; }
.own-shift-grid { display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;min-width:0; }
.own-shift-weekday { padding:2px 0 5px;color:var(--replace-muted,#71806d);font-size:10px;font-weight:850;text-align:center; }
.own-shift-placeholder { min-width:0; }
.own-shift-date { display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-width:0;aspect-ratio:1/1.05;min-height:38px;padding:3px 0;border:1px solid transparent;border-radius:11px;color:var(--replace-text,#283526);background:var(--replace-soft,#f0f5e9);font:inherit;line-height:1.1; }
.own-shift-date>span { font-size:13px;font-weight:900; }
.own-shift-date>small { font-size:11px;line-height:1; }
.own-shift-date.is-day { border-color:#c3dd83;background:#e4f4bf;color:#29412d; }
.own-shift-date.is-night { border-color:#acbec5;background:#dce7eb;color:#324953; }
.own-shift-date.is-both { border-color:#b9cda9;background:#e8edd4;color:#324831; }
.own-shift-date.is-locked { border:1px dashed #bacab2;background:#eef1e9;color:#839178;opacity:.65; }
.own-shift-date.is-off { background:transparent;color:var(--replace-muted,#71806d);opacity:.36; }
.own-shift-date.is-chosen { outline:2px solid #4b6540;outline-offset:1px;box-shadow:inset 0 0 0 1px #fff;transform:translateY(-1px); }
.own-shift-date.is-today:not(.is-chosen) { text-decoration:underline;text-underline-offset:3px; }
.own-shift-date:disabled { cursor:default; }
.own-shift-date:not(:disabled) { cursor:pointer; }
.own-shift-date:not(:disabled):focus-visible { outline:3px solid #7686ca;outline-offset:2px; }
.own-shift-legend { display:flex;justify-content:center;flex-wrap:wrap;gap:8px 13px;color:var(--replace-muted,#71806d);font-size:10px;font-weight:750; }
.own-shift-legend span { display:inline-flex;align-items:center;gap:5px; }
.own-shift-legend i { width:9px;height:9px;border-radius:3px;border:1px solid #c0cbb4;background:#e7f3c5; }
.own-shift-legend i.is-night { background:#d7e5eb;border-color:#acbec5; }
.own-shift-legend i.is-off { background:#e5eae1; }
.own-shift-empty { margin:0;padding:10px 12px;border-radius:10px;background:var(--replace-soft,#f0f5e9);color:var(--replace-muted,#71806d);font-size:11px;line-height:1.5; }
.own-shift-selected { display:grid;gap:2px;padding:11px 13px;border:1px solid #b8db80;border-radius:12px;background:#eff8d9; }
.own-shift-selected>span { font-size:10px;font-weight:850;color:#587e3e; }
.own-shift-selected>strong { font-size:13px;font-weight:950;text-transform:capitalize; }
.own-shift-both { display:grid;gap:9px;padding:11px 12px;border:1px solid var(--replace-line,#dce6d4);border-radius:11px; }
.own-shift-both>span { font-size:12px;font-weight:850; }
.own-shift-both>div { display:grid;grid-template-columns:1fr 1fr;gap:7px; }
.own-shift-both button { min-height:42px;border:1px solid var(--replace-line,#dce6d4);border-radius:9px;background:var(--replace-soft,#f0f5e9);color:var(--replace-text,#283526);font-weight:850; }
.own-shift-both button.active { border-color:#789f52;background:#def291;color:#2c432c; }

html[data-app-theme="dark"] .replacement-hub { --replace-text:#e9f4e6;--replace-muted:#acc1ad;--replace-line:#354e3d;--replace-card:#1b2b22;--replace-soft:#243a2c;--replace-lime:#d9f28b; }
html[data-app-theme="dark"] .replacement-hub .calendar-swap-people>button { background:var(--replace-card);border-color:var(--replace-line);color:var(--replace-text); }
html[data-app-theme="dark"] .replacement-hub .calendar-swap-people>button.chosen { background:#2a3d51;border-color:#92a7e9;box-shadow:inset 3px 0 #9daef2; }
html[data-app-theme="dark"] .replacement-hub .calendar-swap-people>button.needs-24 { border-color:#ab7d68; }
html[data-app-theme="dark"] .replacement-hub .calendar-swap-people>button.is-blocked { background:#302b29;opacity:.55; }
html[data-app-theme="dark"] .replacement-hub .calendar-swap-people .calendar-swap-risk-label { color:#f0ae96; }
html[data-app-theme="dark"] .calendar-swap-24-box { background:#402e29;border-color:#8c6559;color:#ffd7c9; }
html[data-app-theme="dark"] .calendar-swap-24-box>p { color:#f3c4b5!important; }
html[data-app-theme="dark"] .calendar-swap-24-consent { background:#4a372e;border-color:#9f7565;color:#ffe8db; }
html[data-app-theme="dark"] .calendar-swap-blocked-note { background:#472b2b;border-color:#9e5d54;color:#ffc8bc; }
html[data-app-theme="dark"] .replacement-hub .calendar-swap-step-num { background:#293b51;color:#d5e0ff; }
html[data-app-theme="dark"] .replacement-hub .calendar-cover-form.is-personal-give .calendar-cover-roles legend { color:var(--replace-muted); }
html[data-app-theme="dark"] .replacement-hub .calendar-cover-form.is-personal-give .coverage-audience-toggle { background:var(--replace-soft);border-color:var(--replace-line); }
html[data-app-theme="dark"] .replacement-hub .calendar-cover-form.is-personal-give .coverage-audience-toggle button { background:transparent;color:var(--replace-text); }
html[data-app-theme="dark"] .replacement-hub .calendar-cover-form.is-personal-give .coverage-audience-toggle button.selected { background:var(--replace-lime);color:#263924; }
html[data-app-theme="dark"] .replacement-hub .calendar-cover-form.is-personal-give .coverage-people-list label { background:transparent;border-color:var(--replace-line);color:var(--replace-text); }
html[data-app-theme="dark"] .replacement-hub .calendar-cover-form.is-personal-give .coverage-people-list label.checked { background:#304d30;color:#edfae4; }
html[data-app-theme="dark"] .replacement-hub .calendar-cover-form.is-personal-give .coverage-people-list label.is-double:not(.is-unavailable) { background:#49352c; }
html[data-app-theme="dark"] .own-shift-date.is-day { background:#374f32;border-color:#708d54;color:#e5f7c1; }
html[data-app-theme="dark"] .own-shift-date.is-night { background:#2d424c;border-color:#567580;color:#daecf5; }
html[data-app-theme="dark"] .own-shift-date.is-both { background:#46503a;border-color:#788b57;color:#ecf6d3; }
html[data-app-theme="dark"] .own-shift-date.is-locked { background:#2b392f;border-color:#58705a;color:#9cae99; }
html[data-app-theme="dark"] .own-shift-date.is-chosen { outline-color:#c9e987;box-shadow:inset 0 0 0 1px #c9e987; }
html[data-app-theme="dark"] .own-shift-selected { background:#304731;border-color:#719956;color:#f2fbe9; }
html[data-app-theme="dark"] .own-shift-selected>span { color:#c4e79c; }
html[data-app-theme="dark"] .own-shift-legend i.is-day { background:#547c43;border-color:#779c5f; }
html[data-app-theme="dark"] .own-shift-legend i.is-night { background:#456471;border-color:#6d8a94; }
html[data-app-theme="dark"] .own-shift-legend i.is-off { background:#37473b;border-color:#526751; }
html[data-app-theme="dark"] .own-shift-both button.active { background:#d9f28b;color:#283d26;border-color:#c2e17b; }
@media (max-width:390px) { .replacement-hub .calendar-swap-panel,.replacement-hub .calendar-cover-form.is-personal-give { padding:14px!important; }.own-shift-grid { gap:3px; }.own-shift-date { min-height:35px;border-radius:9px; }.replacement-hub .calendar-swap-step { padding:14px 0; } }
