/* Common events and shared shell corrections. Loaded after legacy styles. */
:root { --mass-blue:#235ce5; --mass-ink:#162b49; --mass-muted:#596d86; --mass-line:#dde5ef; }
#mass-editor { container: editor / inline-size; }
#mass-editor .mass-section { overflow:visible; }
.filter-band { padding:14px 16px 8px; background:#f5f8fc; border:1px solid #e1e8f2; border-radius:12px; }
.staff-filters { display:grid; grid-template-columns:minmax(12em,1.5fr) repeat(3,minmax(0,1fr)); gap:12px; align-items:start; }
.staff-filter-field,.staff-search-label { display:grid; grid-template-rows:auto 44px; align-content:start; min-width:0; gap:6px; font-size:13px; font-weight:600; }
.staff-search-label input { width:100%; min-width:0; height:44px; }
.staff-filter { position:relative; min-width:0; }
.staff-filter summary { width:100%; height:44px; display:flex; align-items:center; justify-content:space-between; gap:8px; padding:0 13px; border:1px solid #cbd7e6; border-radius:10px; background:white; color:#263951; cursor:pointer; list-style:none; font-size:14px; font-weight:500; }
.staff-filter summary span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.staff-filter summary::-webkit-details-marker,.registration-options summary::-webkit-details-marker { display:none; }
.staff-filter summary::after,.registration-options summary::after { content:''; width:7px; height:7px; flex:none; border:solid #526d91; border-width:0 1.5px 1.5px 0; transform:translateY(-2px) rotate(45deg); }
.staff-filter[open] summary::after,.registration-options[open] summary::after { transform:translateY(2px) rotate(225deg); }
.staff-filter summary:hover,.staff-filter[open] summary,.staff-filter.is-active summary { border-color:#6689ca; }
#mass-editor :is(button,summary,input,select):focus-visible { outline:2px solid #245ce3; outline-offset:2px; }
.filter-options { display:flex; flex-direction:column; position:absolute; z-index:55; top:calc(100% + 5px); inset-inline-end:0; width:max(100%,16rem); max-width:100%; min-width:min(16rem,100cqw); background:#fff; border:1px solid #cbd8e8; border-radius:12px; padding:5px; box-shadow:0 10px 24px #17345624; }
.staff-filter-field:not(:last-child) .filter-options { inset-inline:0 auto; }
.filter-values { overflow:auto; overscroll-behavior:contain; max-height:min(16rem,42dvh); }
.staff-filters .filter-option { display:grid; grid-template-columns:17px minmax(0,1fr); align-items:center; justify-content:start; gap:9px; padding:8px; margin:0; min-height:36px; text-align:left; font-size:13px; font-weight:500; line-height:1.4; cursor:pointer; border-radius:6px; }
.filter-option:hover { background:#f0f5fb; }
.filter-values .filter-option:has(input:checked) { color:#174da9; background:#edf3ff; }
.filter-option input[type=checkbox] { width:17px; height:17px; padding:0; margin:0; min-width:0; }
.filter-option span { min-width:0; overflow-wrap:anywhere; }
.filter-tools { display:flex; align-items:center; justify-content:space-between; gap:8px; border-bottom:1px solid #dfe6ef; padding-bottom:4px; margin-bottom:4px; }
.staff-filters .filter-master { font-weight:650; }
.filter-tools .link-button,.reset-facets,.picker-actions button,.picker-foot button { color:#2455a0; font-size:13px; font-weight:600; padding:6px 8px; }
.reset-facets { display:block; margin:4px 0 0 auto; }
.picker-toolbar,.picker-foot,.picker-actions { display:flex; align-items:center; flex-wrap:wrap; gap:4px 12px; }
.picker-toolbar,.picker-foot { justify-content:space-between; margin:12px 0 8px; }
#staff-count,.picker-foot p,.filter-empty,.staff-empty { color:#50647e; font-size:13px; line-height:1.5; }
.picker-foot p { margin:4px 0 0; }
.picker-foot { margin-bottom:0; }
.filter-empty,.staff-empty { padding:12px; margin:0; }
.staff-row.is-picked { background:#f7faff; }
.staff-row .staff-place { color:#586d88; font-size:13px; grid-column:2/-1; }
#staff-list .staff-row { grid-template-columns:minmax(0,1.35fr) minmax(0,1fr) 6.8rem; }
#staff-list .staff-identity { grid-column:auto; }
.registration-options { margin-top:16px; border:1px solid #dfe7f0; border-radius:10px; }
.registration-options>summary { padding:12px 14px; display:flex; align-items:center; justify-content:space-between; gap:12px; cursor:pointer; font-size:14px; font-weight:600; color:#2e496e; list-style:none; }
.registration-options>.mass-fields { padding:2px 14px 14px; align-items:start; }
.email-note { margin:14px 0 0; color:#596d86; font-size:13px; }
.editor-actionbar { display:flex; flex-wrap:wrap; align-items:center; gap:8px; border:1px solid var(--mass-line); border-radius:12px; padding:12px 16px; background:white; position:sticky; bottom:10px; z-index:10; box-shadow:0 4px 16px #18345b12; }
.editor-actionbar button { min-height:42px; }
.editor-actionbar button:first-child { margin-inline-end:auto; }
.draft-banner { padding:20px 24px; background:#f5f8fd; border:1px solid #dce6f6; border-radius:14px; margin:0 0 22px; }
.draft-banner p,.draft-banner li { font-size:14px; line-height:1.6; margin-bottom:0; }
.draft-issue-badge { display:inline-flex; font-size:12px; font-weight:600; color:#8a5814; background:#fff0d5; padding:5px 10px; border-radius:20px; margin-left:8px; }
@container editor (max-width:780px) {
  .staff-filters { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .staff-search-label { grid-column:1/-1; }
  .staff-filter-field:first-of-type .filter-options { inset-inline:0 auto; }
}
@container editor (max-width:620px) {
  /* In flow on small screens: an open panel stays next to its trigger. */
  .staff-filters { grid-template-columns:1fr; gap:10px; }
  .staff-filter-field { grid-template-rows:auto auto; }
  .filter-options { position:static; width:100%; min-width:0; max-width:none; box-shadow:none; margin-top:4px; }
  .staff-filters .filter-option { min-height:44px; }
  #staff-list .staff-row { grid-template-columns:minmax(0,1fr); gap:7px; }
  #mass-editor .staff-row .staff-place { grid-column:auto; }
  .picker-toolbar { align-items:start; flex-direction:column; }
  .editor-actionbar { position:static; display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,150px),1fr)); padding:10px; }
  .editor-actionbar button:first-child { margin:0; }
  #apply-event { grid-column:1/-1; }
}
@container editor (max-width:460px) {
  .editor-actionbar { grid-template-columns:minmax(0,1fr); }
}
.operation-dialog { border:1px solid var(--mass-line); border-radius:20px; width:min(600px,calc(100vw - 32px)); padding:28px; max-height:85dvh; overflow:auto; color:var(--mass-ink); }
.operation-dialog::backdrop { background:#102e5966; }
.operation-dialog label,.test-controls label { display:flex; flex-direction:column; gap:8px; margin:16px 0; }
.operation-dialog textarea { min-height:100px; width:100%; }
.operation-dialog small { color:var(--mass-muted); font-size:12px; }
.operation-dialog li { margin:14px 0; line-height:1.6; }
.operation-actions,.event-operation-bar { display:flex; align-items:center; flex-wrap:wrap; gap:12px; margin:18px 0; }
.event-operation-bar { justify-content:space-between; }
.test-banner { padding:18px 22px; border:1px solid #d6c68d; border-radius:14px; background:#fff9e8; color:#71570e; margin-bottom:22px; }
.test-banner p { margin:7px 0 0; line-height:1.6; }
.test-controls summary { cursor:pointer; font-weight:650; }
.test-enable { display:flex; gap:15px; align-items:end; flex-wrap:wrap; }
.test-enable label { flex:1; min-width:200px; }
.test-enable button { margin-bottom:16px; }
.test-controls input[readonly] { width:100%; font-size:12px; }
.status.cancelled { background:#edf0f5; color:#68788b; }
.admin-sidebar { align-self:start; overflow-y:auto; overflow-x:hidden; }
.admin-sidebar .sidebar-brand { flex:0 0 auto; justify-content:flex-start; min-height:76px; margin:0; }
.admin-sidebar .admin-nav { flex:0 0 auto; }
.admin-stage { width:100%; }
.admin-container .panel { min-width:0; }
.admin-container .admin-card { gap:20px; }
.admin-container .admin-list { margin-bottom:32px; }
.admin-topbar { min-height:76px; }
.mass-back { display:inline-block; margin:20px 0; color:var(--mass-muted); }
.mass-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px 22px; }
.mass-fields label { display:flex; flex-direction:column; gap:7px; font-weight:600; font-size:14px; min-width:0; }
.mass-fields .wide { grid-column:1/-1; }
.mass-fields small { color:var(--mass-muted); font-size:12px; font-weight:400; }
.mass-fields input,.mass-fields select,.mass-fields textarea { width:100%; min-width:0; }
.mass-section { position:relative; margin-bottom:24px; }
.mass-section h2 { margin:0 0 24px; padding-right:50px; }
.mass-step { position:absolute; top:25px; right:28px; color:#bccce0; font-size:22px; font-weight:700; }
.mass-check,.operation-dialog label.mass-check { display:flex!important; flex-direction:row; align-items:flex-start; gap:12px; margin:22px 0; font-size:14px; line-height:1.6; }
.mass-check input { flex:0 0 auto; width:18px; height:18px; margin-top:3px; }
.mode-picker { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin-bottom:26px; }
.mode-picker label { display:flex; flex-direction:row; gap:10px; align-items:flex-start; border:1px solid var(--mass-line); border-radius:14px; padding:18px; cursor:pointer; min-width:0; }
.mode-picker label:has(input:checked) { border-color:var(--mass-blue); background:#f0f5ff; box-shadow:0 0 0 1px var(--mass-blue); }
.mode-picker input { width:17px; height:17px; margin:3px 0 0; flex:none; }
.mode-picker strong { display:block; font-size:14px; line-height:1.4; }
.mode-picker small { display:block; color:var(--mass-muted); font-size:12px; line-height:1.6; margin-top:8px; }
.mass-toolbar { display:flex; gap:12px; margin:16px 0; align-items:center; flex-wrap:wrap; }
.mass-toolbar input[type=search] { flex:1; min-width:220px; }
.mass-toolbar select { flex:0 1 250px; }
.staff-picker { max-height:660px; overflow:auto; border:1px solid var(--mass-line); border-radius:12px; }
.staff-row { display:grid; grid-template-columns:minmax(200px,1.4fr) minmax(180px,1fr) auto; gap:16px; align-items:center; padding:16px; border-bottom:1px solid var(--mass-line); }
.staff-row:last-child { border:0; }
.staff-row select { width:100%; min-width:0; font-size:13px; }
.staff-row button { font-size:12px; }
.staff-identity { display:flex; flex-direction:row; gap:12px; align-items:center; min-width:0; cursor:pointer; }
.staff-identity input { width:18px; height:18px; flex:none; }
.staff-identity strong { display:block; font-size:14px; }
.staff-identity small { display:block; color:var(--mass-muted); font-size:12px; margin-top:5px; }
.has-override { color:#235ce5!important; background:#ecf2ff!important; }
.host-drawer { border:0; padding:0; border-radius:20px; width:min(580px,calc(100vw - 24px)); max-height:90dvh; overflow:auto; box-shadow:0 20px 90px #102e5950; }
.host-drawer::backdrop { background:#102e5970; }
.drawer-body { padding:30px; }
.common-home { margin-bottom:56px; }
.common-home-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(310px,100%),1fr)); gap:22px; }
.common-feature { background:linear-gradient(130deg,#e9f1ff,#ffffff 80%); border:1px solid #cdddf6; border-radius:24px; padding:28px; display:flex; flex-direction:column; align-items:flex-start; }
.common-feature h2 { margin:14px 0; font-size:27px; }
.common-feature p { color:var(--mass-muted); }
.common-feature .button { margin-top:auto; }
.mass-badge { display:inline-flex; border-radius:30px; padding:6px 12px; background:#dfeaff; color:#245ad4!important; font-size:13px; font-weight:700; }
.common-hero { padding:14px 0 30px; max-width:920px; }
.common-hero h1 { font-size:clamp(30px,4vw,48px); line-height:1.15; margin:12px 0 20px; }
.common-date { font-size:23px; font-weight:650; color:var(--mass-ink); }
.common-date span { display:inline-block; margin-left:15px; color:var(--mass-muted); }
.mass-description { white-space:pre-line; max-width:800px; color:var(--mass-muted); }
.booking-layout { display:grid; grid-template-columns:minmax(0,1fr) 310px; gap:28px; align-items:start; }
.host-explorer { min-width:0; }
.building-tabs { display:flex; gap:8px; overflow-x:auto; padding:5px 0 18px; margin:0 0 10px; }
.building-tabs button { flex:0 0 auto; border:1px solid var(--mass-line); border-radius:25px; padding:10px 15px; background:white; color:var(--mass-ink); font-size:13px; box-shadow:none; }
.building-tabs button.selected { background:#1e56d7; color:white; border-color:#1e56d7; }
.host-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.host-card { background:white; border:1px solid var(--mass-line); border-radius:19px; padding:22px; min-width:0; }
.host-card.is-selected { border-color:#3167df; box-shadow:0 0 0 1px #3167df; }
.host-heading { display:flex; gap:12px; align-items:flex-start; }
.host-heading h2 { font-size:17px; line-height:1.45; margin:0 0 8px; }
.host-photo { height:48px; width:48px; border-radius:50%; object-fit:cover; background:#e8eff8; flex:none; }
.host-role,.host-subject { color:var(--mass-muted); font-size:13px; line-height:1.5; margin:4px 0; }
.host-subject { color:#44638f; }
.host-location { font-size:13px; padding:13px 0; border-top:1px solid #edf1f7; margin:16px 0 4px; color:#61718a; }
.slot-picker summary { padding:10px 0; font-weight:650; color:#235ad4; cursor:pointer; font-size:14px; }
.slot-buttons { display:flex; flex-wrap:wrap; gap:8px; margin:12px 0; max-height:240px; overflow:auto; }
.slot-buttons label { position:relative; }
.slot-buttons input { position:absolute; opacity:0; width:1px; height:1px; }
.slot-buttons span { display:block; padding:11px 12px; border:1px solid #dae3f1; border-radius:9px; background:#f7f9fc; cursor:pointer; font-size:14px; }
.slot-buttons input:checked+span { background:#245be0; color:white; border-color:#245be0; }
.slot-buttons input:focus-visible+span { outline:3px solid #90b2ff; }
.host-add { display:flex; flex-direction:row; align-items:center; gap:10px; font-size:14px; padding:10px 0; color:#235ce5; cursor:pointer; }
.host-add input { width:18px; height:18px; }
.selection-cart { position:sticky; top:24px; padding:23px; }
.selection-cart h2 { font-size:21px; }
.selection-cart .button { width:100%; text-align:center; margin-top:18px; }
.cart-line { display:flex; gap:8px; justify-content:space-between; padding:15px 0; border-bottom:1px solid #e9eff7; }
.cart-line strong { font-size:13px; display:block; line-height:1.6; }
.cart-line small { display:block; font-size:12px; color:var(--mass-muted); margin-top:5px; }
.cart-line button { font-size:12px; }
.contact-panel { margin-top:28px; }
.contact-panel h2 { font-size:24px; margin-bottom:24px; }
.contact-panel h3 { margin:26px 0 18px; }
.consent-check .link-button { display:inline; white-space:normal; padding:0; text-align:left; line-height:inherit; font:inherit; }
.wide-submit { width:100%; margin-top:10px; }
.mobile-cart { display:none; }
.mobile-slot-sheet { border:0; border-radius:22px 22px 0 0; padding:24px; width:100%; max-width:100%; margin:auto 0 0; max-height:75dvh; box-shadow:0 -12px 50px #102e5930; }
.mobile-slot-sheet::backdrop { background:#102e5970; }
.mobile-slot-sheet h2 { font-size:20px; line-height:1.5; }
.mobile-slot-sheet .slot-buttons { max-height:52dvh; }
.mobile-slot-sheet .slot-buttons span { min-width:70px; padding:14px; }
.mass-result { max-width:820px; margin:35px auto; }
.management-link { padding:22px; margin:22px 0; border:1px solid #d2dff5; border-radius:14px; background:#f2f6ff; }
.break-rows { display:grid; gap:12px; margin:14px 0; }
.break-row { display:flex; align-items:end; gap:12px; }
.break-row label { flex:1; min-width:0; }
.break-row button { flex:0 0 auto; }
.mass-result h1 { font-size:clamp(28px,4vw,42px); }
.ticket-line { padding:20px 0; border-bottom:1px solid var(--mass-line); margin:10px 0 24px; }
.ticket-line h2 { font-size:23px; }
.ticket-line p { font-size:19px; color:var(--mass-ink); }
.mass-filter { display:flex; gap:10px; flex-wrap:wrap; margin:20px 0; }
.mass-filter input { min-width:130px; flex:1; width:130px; }
.mass-filter select { width:auto; }
.mass-host-summary { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:16px; margin-top:20px; }
.mass-host-summary article { padding:16px; background:#f4f7fc; border-radius:10px; }
[hidden] { display:none!important; }
input[type=checkbox],input[type=radio] { padding:0; accent-color:#245ce3; }
#mass-editor button[type=submit]:not(.secondary),#mass-registration button[type=submit],.drawer-body #apply-override,.mass-result button:not(.danger) { background:#245ce3; color:#fff; }
@media(min-width:901px) { .admin-sidebar { max-height:100dvh; } }
@media(max-width:1150px) { .mode-picker { grid-template-columns:1fr; } .host-grid { grid-template-columns:1fr; } .staff-row { grid-template-columns:1fr 1fr; } .staff-identity { grid-column:1/-1; } }
@media(max-width:900px) { .admin-sidebar { overflow:visible; height:auto; } .admin-sidebar .sidebar-brand { min-height:0; } .booking-layout { display:flex; flex-direction:column; } .booking-layout>div,.selection-cart { width:100%; } .selection-cart { position:static; order:-1; } .selection-cart:has(.cart-line) { order:0; } .mobile-cart { display:block; position:fixed; bottom:14px; left:16px; right:16px; z-index:30; border-radius:15px; padding:16px 22px; background:#173b72; color:white; box-shadow:0 8px 35px #102e5950; font-weight:650; } body:has(#mobile-cart) { padding-bottom:82px; } .host-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) { .mass-fields,.host-grid { grid-template-columns:1fr; } .mass-fields .wide { grid-column:auto; } .mass-section { padding:22px 18px; } .mass-section h2 { font-size:23px; } .staff-row { grid-template-columns:1fr; padding:14px; gap:10px; } .staff-identity { grid-column:auto; } .staff-picker { max-height:520px; } .common-feature { padding:23px; } .common-date { font-size:20px; } .common-date span { margin:6px 0 0; display:block; } .common-hero { padding-top:6px; } .host-card { padding:20px; } .host-heading h2 { font-size:18px; } .contact-panel { padding:24px 18px; } .mass-fields input,.mass-fields select,.mass-toolbar input { font-size:16px; } .mass-filter { flex-direction:column; } .mass-filter>* { width:100%!important; } .drawer-body { padding:22px; } .selection-cart { order:0; } .ticket-line p { font-size:17px; } }
