.demo-link{text-decoration:none;text-align:center}.live-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px}.live-header img{width:68px;height:68px;object-fit:contain}.live-header .grow{min-width:0}.live-label{font-size:13px;color:var(--muted)}.live-error{border-left:3px solid var(--red,#c8102e);padding:12px;background:var(--surface-2,#eaf0f5);margin-bottom:18px;white-space:pre-wrap}.live-notice{padding:14px;border:1px solid var(--border,#cbd5e1);border-radius:8px;margin:16px 0}.live-actions{display:flex;gap:10px;flex-wrap:wrap}.live-actions>*{min-height:44px}.live-card{background:var(--surface,#fff);border:1px solid var(--border,#cbd5e1);border-radius:12px;padding:20px;margin:16px 0}.live-card h3{margin:0 0 12px}.live-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.live-card .field{min-width:0}.live-filters{display:grid;grid-template-columns:minmax(150px,2fr) 1fr 1fr auto;gap:12px;align-items:end}.live-filters .field{margin:0}.live-list-row{display:flex;justify-content:space-between;gap:14px;align-items:center;padding:16px 0;border-bottom:1px solid var(--border,#cbd5e1)}.live-list-row>div{min-width:0;overflow-wrap:anywhere}.live-plan-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:12px;margin:10px 0}.live-plan-row .field{margin:0}.live-plan-row .input{width:100%;min-width:0;text-overflow:ellipsis}.live-plan-section{border-bottom:1px solid var(--border,#cbd5e1);padding-bottom:20px;margin-bottom:22px}.live-plan-section h3{margin-bottom:12px}.live-note{white-space:pre-wrap;overflow-wrap:anywhere}.live-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;margin:16px 0}.live-calendar button{min-height:48px;background:var(--surface,#fff);color:var(--text,#15223b);border:1px solid var(--border,#cbd5e1);border-radius:6px}.live-calendar button[aria-pressed=true]{border:2px solid var(--red,#c8102e);color:var(--red,#c8102e)}.live-calendar small{display:block;font-size:11px}.live-calendar-head{text-align:center;font-size:12px}.live-status{font-size:13px;border:1px solid var(--border,#cbd5e1);border-radius:30px;padding:4px 9px;display:inline-block}.live-form-wide{max-width:740px;margin:0 auto}.dialog{max-height:85dvh;overflow:auto}.live-loading{opacity:.65;pointer-events:none}body.live-admin .phone{max-width:1240px}body.live-admin .screen{max-width:none}.live-plan-summaries{display:grid;grid-template-columns:1fr 1fr;gap:20px}.live-plan-summaries li{margin:8px 0}.screen h1{overflow-wrap:anywhere}.live-top-menu{display:flex;gap:6px;overflow-x:auto;border-bottom:1px solid var(--border,#cbd5e1);margin:12px 0 24px;padding-bottom:10px}.live-top-menu .chip-button{white-space:nowrap}.live-top-menu .selected{color:var(--red,#c8102e);border-color:var(--red,#c8102e)}[data-theme=dark] .live-card,[data-theme=dark] .live-calendar button{background:#081d31;color:#f5f7fb}[data-theme=dark] .live-error{background:#172b3c}.live-empty{padding:28px 0;color:var(--muted)}@media(max-width:760px){.live-grid,.live-plan-summaries{grid-template-columns:1fr}.live-filters{grid-template-columns:1fr 1fr}.live-filters .field:first-child{grid-column:1/-1}.live-header{gap:10px}.live-header img{width:54px;height:54px}.live-card{padding:16px}}@media(max-width:430px){.live-plan-row{grid-template-columns:1fr}.live-plan-row>button{justify-self:end}.live-list-row{align-items:flex-start}.prototype-brand span{font-size:11px}.demo-link{font-size:12px;padding:8px}.live-filters{grid-template-columns:1fr}.live-filters .field:first-child{grid-column:auto}}
.live-auth{width:100%;max-width:460px;margin:0 auto;padding:16px 0}

#nav{grid-template-columns:repeat(3,minmax(0,1fr))}.live-moon{display:none}[data-theme=dark] .live-sun{display:none}[data-theme=dark] .live-moon{display:inline}
#nav{grid-template-columns:repeat(5,minmax(0,1fr))}
.attendance-member{display:grid;gap:10px;margin-top:16px;padding-top:16px;border-top:1px solid var(--line)}.attendance-counts{display:flex;flex-wrap:wrap;gap:12px;margin:20px 0}.attendance-counts>span{background:var(--panel);border:1px solid var(--line);padding:12px 16px;border-radius:8px}.attendance-counts strong{display:block;font-size:24px}.attendance-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 0;border-bottom:1px solid var(--line)}.attendance-row:last-child{border:0}.attendance-person{display:flex;gap:14px;align-items:center;min-width:0}.attendance-person>span{overflow-wrap:anywhere}.attendance-person input{width:26px;height:26px;accent-color:var(--red);flex-shrink:0;cursor:pointer}.attendance-person input:disabled{cursor:default;opacity:1}.attendance-person strong{font-size:18px}.attendance-row .live-actions{justify-content:flex-end}.live-kiosk{max-width:620px;margin:0 auto}.kiosk-result{display:flex;flex-direction:column;align-items:flex-start;margin:10px 0;white-space:normal}.kiosk-result span{font-family:inherit;font-size:14px}.live-kiosk .checkline{font-size:16px}.live-kiosk .checkline input{width:24px;height:24px;flex-shrink:0}#qr-camera{display:block;width:100%;max-width:640px;max-height:60dvh;margin:auto;background:#071321;border-radius:12px}#qr-camera:not([src]):not(:has(source)){min-height:0}.qr-card svg{max-width:100%;height:auto}.attendance-person input:focus-visible{outline:3px solid var(--red);outline-offset:4px}@media(max-width:760px){.attendance-row{align-items:flex-start;flex-direction:column;gap:10px}.attendance-row .live-actions{justify-content:flex-start}.attendance-counts{display:grid;grid-template-columns:1fr 1fr;gap:8px}.attendance-counts>span{padding:10px}.live-actions>.btn{white-space:normal}}

.workspace-switch button[aria-pressed=true]{background:var(--red,#c8102e);border-color:var(--red,#c8102e);color:#fff}
.live-badges{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.live-no-class{border-left:4px solid var(--red,#c8102e)}.live-calendar-closed{color:var(--red,#c8102e)}.live-month-controls{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;align-items:end}.live-month-controls .field{margin:0}.live-month-controls button{min-height:44px}.live-warning{padding:16px;border:2px solid var(--red,#c8102e);border-radius:8px;margin:16px 0}.live-grid .input{min-width:0;width:100%}.live-grid{min-width:0}.live-calendar small{overflow-wrap:anywhere}.live-list-row h2{margin-top:0}.live-list-row>.btn{flex-shrink:0}#recurrence-count[hidden]{display:none}.live-actions .text-button{min-height:44px}

.dialog .live-grid{grid-template-columns:minmax(0,1fr);gap:0}

/* Desktop staff workspace uses the document viewport and normal page scrolling. */
@media(min-width:801px){
 body.live-admin:not(.kiosk-mode){display:block;height:auto;min-height:100dvh;overflow:visible}
 body.live-admin:not(.kiosk-mode) .prototype-bar{max-width:none;padding:16px clamp(24px,3vw,48px)}
 body.live-admin:not(.kiosk-mode) .shell{display:block;flex:none;width:100%;max-width:none;height:auto;min-height:0;margin:0;padding:0}
 body.live-admin:not(.kiosk-mode) .phone{display:block;width:100%;max-width:none;height:auto;min-height:calc(100dvh - 76px);max-height:none;border:0;border-radius:0;box-shadow:none;overflow:visible}
 body.live-admin:not(.kiosk-mode) .screen{flex:none;min-height:0;overflow:visible;overscroll-behavior:auto;padding:28px clamp(24px,3vw,48px) 48px}
}

@media(max-width:760px){.live-card>.live-list-row{flex-direction:column;align-items:stretch}.live-card>.live-list-row>.live-actions{margin-top:8px}.admin-title{flex-wrap:wrap;gap:12px}}
@media print{#dialog-content>:not(.qr-card){display:none!important}}

.member-email{overflow-wrap:anywhere}.live-actions[aria-label="Member actions"]{flex-wrap:wrap}

/* Collapse the empty mobile production toolbar; keep staff and demo controls. */
@media(max-width:800px){
 body .prototype-bar:has(#workspace-actions:empty):not(:has(.demo-link)){display:none}
}

/* Desktop authentication uses the page, not a scrolling device preview. */
@media(min-width:801px){
 body:has(#screen > .live-auth){display:flex;flex-direction:column;height:auto;min-height:100dvh;overflow:visible}
 body:has(#screen > .live-auth) .shell{display:flex;flex:1;width:100%;max-width:none;min-height:0;height:auto;margin:0;padding:0}
 body:has(#screen > .live-auth) .phone{display:block;width:100%;max-width:none;height:auto;min-height:calc(100dvh - 76px);max-height:none;border:0;border-radius:0;box-shadow:none;overflow:visible}
 body:has(#screen > .live-auth) #screen{display:block;flex:none;height:auto;min-height:0;max-height:none;overflow:visible;overscroll-behavior:auto}
}
