
/* ADSTA 0.11.1 — the rail layout is pinned here rather than inherited, so every card is
   a full screen tall and the rail actually scrolls. */
main#screens{position:relative}
.screen-feed{padding:0!important;height:100%;overflow:hidden}
.v11.feedwrap{position:absolute;inset:0;display:block}
.v11 .rail.feedrail{height:100%;width:100%;overflow-y:auto;overflow-x:hidden;
  scroll-snap-type:y mandatory;-webkit-overflow-scrolling:touch;scrollbar-width:none}
.v11 .rail.feedrail::-webkit-scrollbar{display:none}
.v11 .rail.feedrail>.card-v{height:100%;min-height:100%;flex:0 0 100%;scroll-snap-align:start;scroll-snap-stop:always}
/* photo AND video posts fill the card (only img.media was sized, so video posts rendered unpositioned) */
.v11 .card-v .media{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;background:#1a0b0c}
.v11 .card-v video.media{pointer-events:none}

/* ---- go to the most recent post ---- */
.feed-top{position:absolute;z-index:6;left:50%;top:calc(env(safe-area-inset-top,0px) + 78px);transform:translate(-50%,-14px);
  display:inline-flex;align-items:center;gap:6px;padding:8px 15px 8px 11px;border:0;border-radius:999px;
  background:rgba(0,0,0,.55);color:#fff;font:600 12.5px Poppins,system-ui,sans-serif;letter-spacing:.01em;
  -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);box-shadow:0 6px 18px rgba(0,0,0,.35);
  opacity:0;pointer-events:none;transition:opacity .22s,transform .22s}
.feed-top.show{opacity:1;pointer-events:auto;transform:translate(-50%,0)}
.feed-top:active{transform:translate(-50%,0) scale(.94)}

/* ---- delete: card slides away, then the confirm sheet ---- */
.v11 .rail.feedrail>.card-v.removing{opacity:0;transform:scale(.94);transition:opacity .25s,transform .25s}
.del-sheet{text-align:center;padding:8px 0 2px}
.del-sheet h3{margin:10px 0 4px;font-size:17px}
.del-sheet p{margin:0 0 14px}
.del-ic{width:54px;height:54px;border-radius:50%;margin:4px auto 0;display:grid;place-items:center;background:#FDE8E8;color:#AA0003}
.del-ic.ok{background:#E3F6E8;color:#1E8A3E;font-size:26px;font-weight:700}
.del-err{color:#AA0003;font-weight:600;font-size:13px;margin:0 0 10px}
.btn.del-yes:disabled{opacity:.7}
.btn.del-yes{background:#AA0003;border-color:#AA0003;color:#fff;font-weight:700}

/* ---- appointments: the next one pinned at the top of Home; tap → every upcoming one ---- */
/* the row is part of the header: it wraps onto its own line under the ADSTA logo */
.topbar.has-appt{flex-wrap:wrap!important;row-gap:0}
.appt-row-top{flex:0 0 100%;width:100%;order:9;margin-top:8px}
.appt-row-top[hidden]{display:none}
.appt-strip{position:relative;width:100%;
  display:flex;align-items:center;gap:10px;padding:8px 10px 8px 8px;border:1px solid rgba(255,255,255,.2);border-radius:16px;
  background:rgba(22,6,8,.66);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);color:#fff;text-align:left;
  box-shadow:0 8px 24px rgba(0,0,0,.35);font-family:Poppins,system-ui,sans-serif;animation:apptIn .35s cubic-bezier(.2,.9,.3,1) both}
@keyframes apptIn{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:none}}
.appt-strip:active{transform:scale(.985)}
.appt-strip img{width:44px;height:44px;border-radius:11px;object-fit:cover;flex:0 0 44px}
.appt-strip .txt{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.25}
.appt-strip small{display:flex;align-items:center;gap:6px;font-size:10.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#FFB4A8}
.appt-strip small i{width:7px;height:7px;border-radius:50%;background:#FF4D4D;box-shadow:0 0 0 3px rgba(255,77,77,.25);flex:0 0 7px}
.appt-strip strong{color:#fff;font-size:14.5px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.appt-strip em{font-style:normal;font-size:11.5px;color:rgba(255,255,255,.78);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.appt-strip .more{flex:0 0 auto;height:30px;padding:0 11px;border-radius:999px;background:#AA0003;color:#fff;display:inline-flex;align-items:center;gap:3px;font-size:12px;font-weight:700;white-space:nowrap}
.appt-strip .more b{font-size:15px;line-height:1;margin-left:1px}
.v11.has-appt .feed-top{top:calc(var(--tb-h,calc(env(safe-area-inset-top,0px) + 150px)) + 10px)}
/* the cards' own badges sit under the strip */
.v11.has-appt .card-v .kind{top:calc(var(--tb-h,calc(env(safe-area-inset-top,0px) + 150px)) + 10px)}

.appt-list{display:flex;flex-direction:column;gap:10px;margin-top:6px;max-height:62vh;overflow-y:auto}
.appt-row{border:1px solid #EDE6E2;border-radius:14px;padding:10px;background:#fff}
.appt-row.next{border-color:#E7C9C6;background:#FFF8F6;box-shadow:0 0 0 3px rgba(170,0,3,.06)}
.appt-top{display:flex;gap:10px;align-items:center}
.appt-top img{width:48px;height:48px;border-radius:11px;object-fit:cover;flex:0 0 48px}
.appt-top .txt{display:flex;flex-direction:column;min-width:0;line-height:1.3}
.appt-top small{font-size:11.5px;color:#8A8384}
.appt-top small b{color:#AA0003;text-transform:uppercase;letter-spacing:.05em;font-size:10.5px}
.appt-top strong{font-size:14.5px}
.appt-top span{font-size:12px;color:#6B6667;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.appt-top .incal{color:#1F8A5B;font-weight:600;font-size:11.5px}
.appt-acts{display:flex;gap:6px;margin-top:9px}
.appt-acts .btn{flex:1;white-space:nowrap;padding-left:6px;padding-right:6px}
.appt-acts .appt-x{color:#AA0003}

/* every card rail stays visible and compact: Cheer · Save · ADSTA · WhatsApp · (Delete) */
.v11 .side{gap:10px;bottom:calc(var(--tab-h) + 104px);z-index:4;max-height:calc(100% - var(--tab-h) - 130px);overflow:visible}
.v11 .side .act{min-width:52px;font-size:9.5px;line-height:1.15;pointer-events:auto}
.v11 .side .act .ic{width:40px;height:40px;background:rgba(0,0,0,.38);border:1px solid rgba(255,255,255,.14)}
.v11 .side .act.whatsapp .ic{color:#7DFFA1}
@media (max-height:700px){
  .v11 .side{gap:7px;bottom:calc(var(--tab-h) + 92px)}
  .v11 .side .act{min-width:46px}
  .v11 .side .act .ic{width:34px;height:34px}
  .v11 .side .act svg{width:18px;height:18px}
}

/* ---- notices and the facilitator's Facilitating row (same strip style, one line shorter) ---- */
.appt-strip.note,.appt-strip.teach{margin-top:6px}
.appt-strip .bell{width:44px;height:44px;flex:0 0 44px;border-radius:11px;display:grid;place-items:center;font-size:20px;background:rgba(255,255,255,.12)}
.appt-strip.note small{color:#FFD58A}
.appt-strip.note small i{background:#FFB020;box-shadow:0 0 0 3px rgba(255,176,32,.25)}
.appt-strip.teach small{color:#C9B8FF}
.appt-strip.teach small i{background:#9C7BFF;box-shadow:0 0 0 3px rgba(156,123,255,.25)}
.note-list{display:flex;flex-direction:column;gap:8px;margin-top:6px;max-height:62vh;overflow-y:auto}
.note-row{display:flex;gap:10px;border:1px solid #EDE6E2;border-radius:12px;padding:10px;background:#fff}
.note-row.new{border-color:#E7C9C6;background:#FFF8F6}
.note-row .k{width:10px;height:10px;border-radius:50%;margin-top:5px;flex:0 0 10px;background:#9C7BFF}
.note-row .k.seat_open{background:#1E8A3E}.note-row .k.cancelled{background:#AA0003}
.note-row strong{display:block;font-size:14px}
.note-row small{display:block;font-size:12px;color:#6B6667}
.note-row em{display:block;font-style:normal;font-size:11px;color:#8A8384;margin:2px 0 6px}
.t-wk{display:flex;align-items:center;justify-content:space-between;margin:8px 0 6px}
.t-wk span{font-size:12px;color:#6B6667}.t-wk b{color:#2B2728}
.t-wkb{width:32px;height:28px;border:1px solid #E2C9C6;border-radius:9px;background:#fff;color:#AA0003;font:700 18px/1 Poppins,system-ui,sans-serif;padding:0}
.t-wkb:disabled{opacity:.3}
.t-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;margin-bottom:10px}
.t-day{position:relative;display:flex;flex-direction:column;align-items:center;gap:2px;padding:6px 0;border-radius:12px;border:1px solid #E2C9C6;background:#fff;color:#2B2728}
.t-day small{font:600 10px/1.2 Poppins,system-ui,sans-serif;color:#6B6667;text-transform:uppercase}
.t-day b{font:700 16px/1.1 Poppins,system-ui,sans-serif}
.t-day i{position:absolute;top:-5px;right:-4px;min-width:16px;height:16px;border-radius:8px;background:#6B4FB3;color:#fff;font:700 10px/16px Poppins,system-ui,sans-serif;font-style:normal;padding:0 3px}
.t-day:not(.has):not(.on){opacity:.5}
.t-day.on{background:#AA0003;border-color:#AA0003;color:#fff}.t-day.on small{color:rgba(255,255,255,.85)}
.teach-list{display:flex;flex-direction:column;gap:8px;max-height:46vh;overflow-y:auto}
.teach-row{display:flex;gap:12px;border:1px solid #EDE6E2;border-radius:12px;padding:10px;background:#fff}
.teach-row.full{border-color:#E7C9C6}
.teach-row .tt{flex:0 0 64px;display:flex;flex-direction:column}
.teach-row .tt b{font-size:15px}.teach-row .tt small{font-size:11px;color:#8A8384}
.teach-row .tb{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}
.teach-row .tb strong{font-size:14px}
.teach-row .seats{font-size:12px;color:#AA0003;font-weight:600}
.teach-row .who{display:flex;flex-wrap:wrap;gap:4px}
.teach-row .who i{font-style:normal;font-size:11.5px;background:#F1EBFD;color:#4E3A8C;border-radius:999px;padding:2px 8px}
.teach-row .who.none{font-size:12px;color:#8A8384}
.teach-row .tb small{font-size:11px;color:#8A8384}

/* My calendar: what you facilitate and what you booked, side by side */
.teach-row .tag,.t-key .tag{display:inline-block;align-self:flex-start;font:700 9.5px/1 Poppins,system-ui,sans-serif;letter-spacing:.05em;text-transform:uppercase;border-radius:999px;padding:3px 7px}
.tag.fac{background:#EFE9FC;color:#4E3A8C}
.tag.mine{background:#FDE8E8;color:#AA0003}
.teach-row.mine{border-color:#F0D3D0;background:#FFFBFA}
.teach-row.mine .appt-acts{margin-top:6px}
.t-key{font-size:11.5px;color:#6B6667;margin:0 0 8px}
.t-day.booked::after{content:'';position:absolute;bottom:3px;width:5px;height:5px;border-radius:50%;background:#AA0003}
.t-day.on.booked::after{background:#fff}

/* My calendar's day strip scrolls sideways like Ask AD's: seven days to a width, snapping to whole weeks */
.t-week{display:flex;gap:5px;overflow-x:auto;overflow-y:visible;padding-top:6px;scroll-snap-type:x mandatory;scrollbar-width:none;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}
.t-week::-webkit-scrollbar{display:none}
.t-week .t-day{flex:0 0 calc((100% - 30px) / 7)}
.t-week .t-day.wk0{scroll-snap-align:start}

/* Private / Public switch at the top of a post's right-hand buttons (private by default) */
.v11 .act.vis .ic{background:rgba(0,0,0,.42)}
.v11 .act.vis.pub .ic{background:rgba(30,138,62,.85)}
.v11 span.act.vis{cursor:default}
/* the capture on its way up */
.v11 .card-v.pending .media{filter:saturate(.9) brightness(.92)}

/* video sound on / off */
.v11 .act.sound.on .ic{background:rgba(170,0,3,.85)}

/* The right-hand buttons sit low, just above the tab bar, and can never reach the header: a video post has seven
   (Private · Sound · Cheer · Save · ADSTA · WhatsApp · Delete) and the column used to climb under the appointment
   row, which covered the speaker. --tb-h is the header's height (set on the feed); if the column is still too tall
   on a very short screen it scrolls inside itself. */
.v11 .side{bottom:calc(var(--tab-h) + 14px);gap:6px;max-height:calc(100% - var(--tb-h, 150px) - var(--tab-h) - 26px);overflow-y:auto;overflow-x:visible;scrollbar-width:none;padding:2px 0}
.v11 .side::-webkit-scrollbar{display:none}
.v11 .side .act{gap:2px;font-size:9px}
.v11 .side .act .ic{width:38px;height:38px}
.v11 .side .act svg{width:20px;height:20px}
/* the caption keeps clear of the column */
.v11 .card-v .meta{right:70px}

/* 0.11.1 · Save on the Home rail: light blue once saved */
.v11 .act.saved .ic{background:rgba(110,190,255,.30);border-color:#8ED0FF;color:#BFE6FF}
.v11 .act.saved .ic svg{fill:#8ED0FF;stroke:#8ED0FF}
.v11 .act.saved{color:#BFE6FF}

/* 0.11.1 · a post opened from a class page flashes once */
.v11 .card-v.focus-flash{animation:feedFocus 1.6s ease-out}
@keyframes feedFocus{0%{box-shadow:inset 0 0 0 4px #F4B400}100%{box-shadow:inset 0 0 0 0 transparent}}
/* 0.11.1 · community hub on Home: review cards, audience labels, the filter */
.v11 .hub-f{position:absolute;top:96px;right:12px;z-index:6;border:1px solid rgba(255,255,255,.25);background:rgba(43,39,40,.72);color:#fff;
  font:700 11px Poppins,system-ui,sans-serif;letter-spacing:.04em;padding:6px 11px;border-radius:999px;cursor:pointer;backdrop-filter:blur(6px)}
.v11.has-appt .hub-f{top:calc(var(--tb-h,calc(env(safe-area-inset-top,0px) + 150px)) + 10px)}
.v11 .review-v .meta h2 .rv-st{font-size:.8em;white-space:nowrap}
.v11 .review-v .meta h2 .rv-st i{font-style:normal;color:#F4B400}
.v11 .rv-chips{display:flex;flex-wrap:wrap;gap:5px;margin:6px 0 2px}
.v11 .rv-chips span{font-size:11px;background:rgba(255,241,214,.92);color:#6E0002;border-radius:999px;padding:2px 9px;font-weight:600}
.v11 .rv-quote{margin:6px 0 4px;font-size:14px;line-height:1.45;color:#fff;max-width:78%;display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;text-shadow:0 1px 3px rgba(0,0,0,.5)}
.v11 .hub-empty{background:linear-gradient(160deg,#3A2E30,#1E1819)}
.v11 .act.aud .ic{font-size:16px}
/* 0.11.1 · phase 3 on Home: question cards and the weekly top-rated challenge */
.v11 .q-bg{position:absolute;inset:0;background:linear-gradient(160deg,#4A2C5E 0%,#2B1E36 55%,#1A1220 100%)}
.v11 .q-bg.gold{background:linear-gradient(160deg,#7A5A12 0%,#3E2C08 60%,#1E1504 100%)}
.v11 .question-v .meta h2{font-size:22px;line-height:1.3}
