/* FAST Source app shell. Loaded after screens.css (generated from the design export).
   Chrome uses its own x-classes, because the export reuses .sh, .lock and .top inside screens. */

:root{--red:#A30B12;--red-h:#8C0910;--red-b:#EF1C24;--ink:#141417;--text:#34373D;--muted:#596069;--black:#030507;--line:rgba(20,20,23,.11);--line2:rgba(20,20,23,.18);--alt:#F5F5F6}
*{-webkit-tap-highlight-color:transparent}
html{background:#fff}
body{margin:0;background:#fff;color:var(--text);font-family:'Inter',sans-serif;-webkit-text-size-adjust:100%}
a{color:var(--red)}a:hover{color:var(--red-h)}
button{font-family:inherit}
img{max-width:100%}
[hidden]{display:none!important}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* The app column: phone width on a phone, a centered column on a desktop */
.app,.app[class]{width:100%;max-width:560px;margin:0 auto;min-height:100vh;min-height:100dvh;box-shadow:0 0 0 1px var(--line)}
.app[class].s-Reader{width:100%;max-width:none;height:100vh;height:100dvh;box-shadow:none}
.main{padding-left:max(20px,env(safe-area-inset-left));padding-right:max(20px,env(safe-area-inset-right))}

/* Header */
.xhdr{position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:12px;height:56px;padding:env(safe-area-inset-top) 14px 0 16px;box-sizing:content-box;background:var(--black);border-bottom:1px solid rgba(255,255,255,.08);flex:none}
.xlock{display:flex;align-items:center;gap:10px;flex:1 1 auto;min-width:0;text-decoration:none}
.xlock img{display:block;width:32px;height:32px;flex:none;border-radius:50%}
.xsh{font:500 15px/1.2 'Inter',sans-serif;letter-spacing:.01em;color:#E7E4E0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.xword{display:flex;flex-direction:column;gap:3px;width:128px;flex:none;text-decoration:none}
.xword img{display:block;width:100%;height:auto;border-radius:0}
.xtag{display:flex;align-items:center;justify-content:space-between;font:500 6.5px/1 'Inter',sans-serif;letter-spacing:.1em;text-transform:uppercase;color:#A9ADB3}
.xtag .dot{width:3px;height:3px;border-radius:50%;background:var(--red-b)}
.xtop{display:flex;align-items:center;gap:4px}
.xti{position:relative;width:44px;height:44px;display:grid;place-content:center;color:#E7E4E0;text-decoration:none}
.xti:hover{color:#fff}
.xti svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.xti.av{width:32px;height:32px;margin-left:4px;border-radius:50%;background:#E7E4E0;color:var(--black);font:600 12px/1 'Inter',sans-serif;letter-spacing:.04em;overflow:hidden}
.xti.av img{width:100%;height:100%;object-fit:cover}
.xtb{position:absolute;top:9px;right:9px;width:8px;height:8px;border-radius:50%;background:var(--red-b);border:2px solid var(--black)}
.xcoach{font:600 9.5px/1.3 'Inter',sans-serif;letter-spacing:.16em;text-transform:uppercase;color:#E7E4E0;border:1px solid rgba(255,255,255,.35);padding:10px 12px;border-radius:2px;text-decoration:none}

/* Tab bar */
.xtabs{position:sticky;bottom:0;z-index:20;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));height:78px;padding-bottom:max(12px,env(safe-area-inset-bottom));box-sizing:border-box;background:#fff;border-top:1px solid var(--line);flex:none}
.xtab{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;font:600 10.5px/1 'Inter',sans-serif;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);text-decoration:none}
.xtab:hover{color:var(--ink)}
.xtab.on,.xtab.on:hover{color:var(--red)}
.xtab svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.xdot{position:absolute;top:12px;right:calc(50% - 16px);width:8px;height:8px;border-radius:50%;background:var(--red);border:2px solid #fff}

.xfoot{padding:18px 20px 22px;text-align:center;font:400 12px/1.6 'Inter',sans-serif;color:var(--muted)}
.xfoot a{color:var(--muted)}

/* Inline icons inherit the stroke style of the designs */
.i{width:20px;height:20px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.chev{width:18px;height:18px;flex:none;fill:none;stroke:var(--red);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* Shared states */
.state{display:flex;flex-direction:column;align-items:flex-start;gap:14px;margin-top:24px;padding:28px 22px;border:1px dashed rgba(20,20,23,.3);background:var(--alt)}
.state h2{font:400 22px/1.15 'Forum',Georgia,serif;letter-spacing:.04em;text-transform:uppercase;color:var(--ink);margin:0}
.state p{margin:0;font-size:15px;line-height:1.6}
.state.err{border:1px solid var(--red);border-top-width:3px;background:#fff}
.spin{width:20px;height:20px;border:2px solid rgba(20,20,23,.15);border-top-color:var(--red);border-radius:50%;animation:sp 1s linear infinite;flex:none;display:inline-block}
.spin.lg{width:36px;height:36px;border-width:3px}
@keyframes sp{to{transform:rotate(360deg)}}
.sk{background:var(--alt);border:1px solid var(--line)}
.skl{height:14px;background:rgba(20,20,23,.08)}
.loading{display:flex;align-items:center;gap:14px;margin-top:32px;font:600 12px/1.4 'Inter',sans-serif;letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}
.note-line{margin:14px 0 0;font-size:13px;line-height:1.6;color:var(--muted)}

/* Offline banner */
.offline{display:flex;gap:12px;align-items:center;padding:12px 20px;background:#0E0F12;color:#E7E4E0;font-size:14px;line-height:1.5}
.offline svg{width:20px;height:20px;flex:none;fill:none;stroke:var(--red-b);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.pend{font:600 11px/1 'Inter',sans-serif;letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}
.item.queued{background:var(--alt)}

/* Generic form pieces used by screens the export does not draw (edit contact, new message, coach tools) */
.fl-lab{display:block;font:600 11.5px/1.4 'Inter',sans-serif;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);margin:0 0 6px}
.fl-in,.fl-sel,.fl-ta{width:100%;box-sizing:border-box;min-height:48px;padding:0 12px;border:1px solid var(--line2);border-radius:2px;font:400 16px 'Inter',sans-serif;color:var(--ink);background:#fff}
.fl-ta{min-height:110px;padding:10px 12px;line-height:1.5;resize:vertical}
.fl-in:focus,.fl-sel:focus,.fl-ta:focus{outline:2px solid var(--red);outline-offset:2px}
.form{display:flex;flex-direction:column;gap:16px}
.btns{display:flex;gap:10px}
.btns>*{flex:1 1 0}
.btn[disabled],.btn[aria-disabled=true]{opacity:.55;pointer-events:none}
.linkrow{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px;margin-top:36px;padding:12px 0;border-top:1px solid var(--line);text-decoration:none;color:var(--muted)}
.linkrow .k{font:600 11px/1.4 'Inter',sans-serif;letter-spacing:.14em;text-transform:uppercase;color:var(--muted)}
.linkrow .v{font-size:14px;color:var(--ink)}
.cue{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:52px;margin-top:28px;padding:14px 0 4px;border-top:1px solid var(--line);text-decoration:none;color:var(--muted)}
.cue .x{background:none;border:0;color:var(--muted);font:600 10px/1 'Inter',sans-serif;letter-spacing:.14em;text-transform:uppercase;cursor:pointer;min-height:44px;padding:0 0 0 8px}

/* Bottom sheet for menus (file ⋮, folder, reminder) */
.sheet-bg{position:fixed;inset:0;background:rgba(3,5,7,.5);z-index:50;display:flex;align-items:flex-end;justify-content:center}
.sheet{width:100%;max-width:560px;background:#fff;padding:20px 20px max(20px,env(safe-area-inset-bottom));box-sizing:border-box;max-height:90dvh;overflow:auto;border-top:3px solid var(--red)}
.sheet h2{font:400 22px/1.15 'Forum',Georgia,serif;letter-spacing:.04em;text-transform:uppercase;color:var(--ink);margin:0 0 16px}
.sheet .opt{display:flex;align-items:center;gap:12px;width:100%;min-height:52px;padding:0 4px;border:0;border-bottom:1px solid var(--line);background:none;font:500 16px 'Inter',sans-serif;color:var(--ink);cursor:pointer;text-align:left;text-decoration:none}
.sheet .opt.danger{color:var(--red)}
.sheet .opt:last-of-type{border-bottom:0}

/* Toast */
.toast{position:fixed;left:50%;bottom:calc(92px + env(safe-area-inset-bottom));transform:translateX(-50%);z-index:60;background:var(--ink);color:#fff;padding:12px 16px;font-size:14px;max-width:calc(100% - 40px);box-shadow:0 8px 24px rgba(0,0,0,.25)}

/* Coach list */
.clist{display:flex;flex-direction:column;border:1px solid var(--line);background:#fff}
.crow{display:flex;align-items:center;gap:14px;min-height:64px;padding:12px 16px;border-bottom:1px solid var(--line);text-decoration:none;color:inherit}
.crow:last-child{border-bottom:0}
.crow:hover{background:var(--alt);color:inherit}

/* Reader: PDF canvas */
.s-Reader .page.pdf{padding:0;width:auto;max-width:100%;aspect-ratio:auto;background:#fff;gap:0}
.s-Reader .page.pdf canvas{display:block;max-width:100%;height:auto}
.s-Reader .stage{overflow:auto;padding-bottom:96px}
.s-Reader .bar{position:static}

/* Video embed fills the player */
.s-VideoLesson .player iframe{position:absolute;inset:0;width:100%;height:100%;border:0}

/* Print: the checklist page only */
.app[class].s-ChecklistPrint{background:#E9EAEC;box-shadow:none;max-width:none;padding:20px 0;overflow:auto}
.s-ChecklistPrint .pg{margin:0 auto;height:auto;min-height:1056px;box-shadow:0 8px 32px rgba(0,0,0,.15)}
.s-ChecklistPrint .printbar{display:flex;gap:10px;justify-content:center;margin:0 auto 16px;max-width:816px;padding:0 16px}
.s-ChecklistPrint .printbar .btn{width:auto}
@media print{
  @page{size:letter;margin:0}
  body{background:#fff}
  .s-ChecklistPrint{padding:0;background:#fff}
  .s-ChecklistPrint .printbar{display:none}
  .s-ChecklistPrint .pg{box-shadow:none;width:8.5in;min-height:11in}
}
@media (max-width:840px){
  .s-ChecklistPrint .pg{transform-origin:top left}
}

/* The export uses .sec for both the secondary button and the checklist section; keep buttons as buttons. */
.app .btn.sec{flex-direction:row;box-shadow:none;background:#fff;color:#141417;border-color:rgba(20,20,23,.18)}
.app .btn.sec:hover{border-color:#141417;color:#141417}
