/* Damocles portal (internal side): Bootstrap 5 + club palette */
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('site/fonts/montserrat-latin.woff2') format('woff2'); }

:root {
    --dark: #0E1114; --orange: #F06125; --amber: #F79519; --yellow: #FEBC11; --gold: #FDD967; --grey: #87888A;
    --side-w: 240px;
    --bs-primary: #F06125; --bs-primary-rgb: 240, 97, 37;
    --bs-link-color: #c6461a; --bs-link-color-rgb: 198, 70, 26; --bs-link-hover-color: #9c3410;
    --bs-body-font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
    --bs-body-font-size: .92rem;
}
body { background: #f4f4f2; }
.btn-primary { --bs-btn-bg: var(--orange); --bs-btn-border-color: var(--orange); --bs-btn-hover-bg: #d4501a; --bs-btn-hover-border-color: #d4501a; --bs-btn-active-bg: #b94414; --bs-btn-disabled-bg: #f3a07d; --bs-btn-disabled-border-color: #f3a07d; }
.btn-outline-primary { --bs-btn-color: #c6461a; --bs-btn-border-color: var(--orange); --bs-btn-hover-bg: var(--orange); --bs-btn-hover-border-color: var(--orange); --bs-btn-active-bg: var(--orange); }
.btn-dark { --bs-btn-bg: var(--dark); }
.form-control:focus, .form-select:focus, .form-check-input:focus { border-color: var(--amber); box-shadow: 0 0 0 .2rem rgba(240,97,37,.2); }
.form-check-input:checked { background-color: var(--orange); border-color: var(--orange); }
.nav-tabs .nav-link.active { border-top: 3px solid var(--orange); font-weight: 600; }
.nav-tabs .nav-link { color: #444; cursor: pointer; }
h1:focus { outline: none; }

/* ---------- shell ---------- */
.portal { display: flex; min-height: 100vh; }
.side { width: var(--side-w); background: var(--dark); color: #cfd0d0; flex: none; position: sticky; top: 0; height: 100vh; overflow-y: auto; z-index: 40; }
.side-brand { display: flex; align-items: center; gap: 10px; padding: 14px 16px; color: #fff; text-decoration: none; border-bottom: 3px solid var(--orange); }
.side-brand img { height: 44px; }
.side-brand span { font-weight: 700; letter-spacing: .12em; text-transform: uppercase; line-height: 1.1; }
.side-brand small { display: block; font-weight: 400; font-size: .68rem; letter-spacing: .2em; color: var(--gold); }
.side-nav { display: flex; flex-direction: column; padding: 8px 0 24px; }
.side-nav a { color: #d6d7d7; text-decoration: none; padding: 7px 18px; display: flex; align-items: center; gap: 10px; border-left: 3px solid transparent; font-size: .9rem; }
.side-nav a i { font-style: normal; width: 20px; text-align: center; opacity: .8; }
.side-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.side-nav a.active { background: rgba(240,97,37,.16); color: #fff; border-left-color: var(--orange); }
.side-group { font-size: .68rem; text-transform: uppercase; letter-spacing: .18em; color: var(--grey); padding: 16px 18px 4px; }
.side-public { margin-top: 12px; }
.badge-count { margin-left: auto; background: var(--orange); color: #fff; border-radius: 999px; font-size: .7rem; padding: 1px 7px; font-weight: 700; }
.main-col { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 52px; background: #fff; border-bottom: 1px solid #e3e3e3; display: flex; align-items: center; gap: 12px; padding: 0 20px; position: sticky; top: 0; z-index: 30; }
.topbar-title { font-weight: 600; letter-spacing: .04em; margin-right: auto; }
.topbar .who { color: #666; font-size: .85rem; }
.topbar .btn-outline-light { color: #333; border-color: #ccc; }
.topbar .btn-outline-light:hover { background: var(--dark); color: #fff; }
.menu-btn { display: none; border: 0; background: none; font-size: 1.4rem; }
.content { padding: 22px 26px 60px; max-width: 1500px; width: 100%; }
.scrim { display: none; }
@media (max-width: 900px) {
    .side { position: fixed; left: 0; top: 0; transform: translateX(-100%); transition: transform .2s; }
    .portal.menu-open .side { transform: none; }
    .portal.menu-open .scrim { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 35; }
    .menu-btn { display: block; }
    .topbar .who { display: none; }
    .content { padding: 16px 12px 60px; }
}

/* ---------- page parts ---------- */
.page-title { font-size: 1.6rem; font-weight: 700; margin: 0 0 4px; }
.page-head { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-bottom: 18px; }
.page-head .page-title { margin: 0; }
.page-head .actions { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.subtle { color: #6c6d6f; }
.card { border: 0; box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 14px rgba(0,0,0,.04); border-top: 3px solid transparent; }
.card.accent { border-top-color: var(--orange); }
.card-header { background: #fff; font-weight: 600; }
.stat-tile { background: #fff; border-radius: 8px; padding: 14px 16px; box-shadow: 0 1px 3px rgba(0,0,0,.06); border-left: 4px solid var(--orange); height: 100%; }
.stat-tile .v { font-size: 1.7rem; font-weight: 700; line-height: 1.1; }
.stat-tile .l { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: #777; }
.stat-tile a { text-decoration: none; color: inherit; }
.table { --bs-table-bg: #fff; }
.table > :not(caption) > * > * { padding: .45rem .6rem; }
.table thead th { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: #666; white-space: nowrap; }
.table-hover tbody tr { cursor: pointer; }
.table-wrap { background: #fff; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,.06); overflow-x: auto; }
.table-wrap .table { margin: 0; }
.pill { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: .75rem; font-weight: 600; background: #eee; color: #333; white-space: nowrap; }
.pill.green { background: #d3f9d8; color: #1b5e20; }
.pill.orange { background: #ffe8d9; color: #a63c0c; }
.pill.red { background: #ffe3e3; color: #a51d1d; }
.pill.blue { background: #dbe9ff; color: #1c4f9c; }
.pill.grey { background: #eee; color: #555; }
.pill.yellow { background: #fff3bf; color: #775500; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; vertical-align: middle; }
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.toolbar .form-control, .toolbar .form-select { width: auto; }
.toolbar .grow { flex: 1; min-width: 180px; }
.empty { padding: 28px; text-align: center; color: #888; }
.msg { position: fixed; right: 18px; bottom: 18px; z-index: 2000; max-width: 420px; }
.form-label { font-weight: 600; font-size: .8rem; margin-bottom: .2rem; color: #444; }
.help { font-size: .78rem; color: #777; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; font-size: .9rem; }
.kv dt { color: #777; font-weight: 500; }
.kv dd { margin: 0; }
.working { position: fixed; bottom: 16px; right: 16px; background: var(--dark); color: #fff; padding: 8px 14px; border-radius: 999px; font-size: .85rem; z-index: 2000; }

/* ---------- modal (Blazor-driven) ---------- */
.dm-backdrop { position: fixed; inset: 0; background: rgba(14,17,20,.5); z-index: 1050; display: flex; align-items: flex-start; justify-content: center; padding: 5vh 12px; overflow-y: auto; }
.dm { background: #fff; border-radius: 10px; width: min(640px, 100%); box-shadow: 0 20px 60px rgba(0,0,0,.3); border-top: 4px solid var(--orange); }
.dm.wide { width: min(980px, 100%); }
.dm-head { display: flex; align-items: center; padding: 14px 18px; border-bottom: 1px solid #eee; }
.dm-head h5 { margin: 0; font-weight: 700; }
.dm-head .btn-close { margin-left: auto; }
.dm-body { padding: 16px 18px; }
.dm-foot { padding: 12px 18px; border-top: 1px solid #eee; display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }

/* ---------- calendar ---------- */
.pcal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; background: #ddd; border: 1px solid #ddd; border-radius: 6px; overflow: hidden; }
.pcal-h { background: var(--dark); color: #fff; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; text-align: center; padding: 6px 0; }
.pcal-d { background: #fff; min-height: 112px; padding: 4px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pcal-d.other { background: #fafafa; color: #aaa; }
.pcal-d.today { box-shadow: inset 0 0 0 2px var(--orange); }
.pcal-d.closed { background: repeating-linear-gradient(135deg, #fff 0 8px, #f5f5f5 8px 16px); }
.pcal-n { font-size: .75rem; font-weight: 700; }
.pchip { font-size: .72rem; line-height: 1.25; border-left: 4px solid var(--c); background: color-mix(in srgb, var(--c) 12%, #fff); padding: 2px 5px; border-radius: 3px; cursor: pointer; overflow: hidden; }
.pchip:hover { background: color-mix(in srgb, var(--c) 25%, #fff); }
.pchip b { font-weight: 700; }
.pchip .co { display: block; color: #666; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pchip.nocoach .co { color: #c92a2a; font-weight: 600; }
.pchip.cancelled { background: repeating-linear-gradient(45deg, #f2f2f2 0 4px, #fff 4px 8px); border-left-color: #c92a2a; text-decoration: line-through; color: #888; }
.week-list .day { background: #fff; border-radius: 8px; padding: 10px 14px; margin-bottom: 10px; }
@media (max-width: 800px) { .pcal { display: none; } }
@media (min-width: 801px) { .week-list.mobile-only { display: none; } }

/* ---------- availability grid ---------- */
.avail { display: grid; grid-template-columns: 90px repeat(7, 1fr); gap: 4px; font-size: .8rem; }

/* ---------- equipment ---------- */
.qr { width: 100%; max-width: 240px; }
.qr svg { width: 100%; height: auto; }
.scan-video { width: 100%; max-width: 520px; aspect-ratio: 4/3; background: #000; border-radius: 8px; object-fit: cover; }
.labels { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.label { border: 1px dashed #bbb; padding: 8px; text-align: center; background: #fff; break-inside: avoid; }
.label .qr { max-width: 120px; margin: 0 auto; }
.label .t { font-weight: 800; font-size: 1.1rem; letter-spacing: .06em; }
.label .d { font-size: .7rem; color: #444; }

/* ---------- kanban ---------- */
.kanban { display: grid; grid-template-columns: repeat(4, minmax(220px, 1fr)); gap: 12px; overflow-x: auto; }
.kcol { background: #ececea; border-radius: 8px; padding: 8px; min-height: 120px; }
.kcol h6 { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: #555; margin: 4px 4px 8px; }
.kcard { background: #fff; border-radius: 6px; padding: 8px 10px; margin-bottom: 8px; box-shadow: 0 1px 2px rgba(0,0,0,.08); cursor: pointer; border-left: 4px solid #ccc; }
.kcard.high { border-left-color: #c92a2a; }
.kcard.overdue .due { color: #c92a2a; font-weight: 700; }
.kcard .meta { font-size: .75rem; color: #777; display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 4px; }

/* ---------- sign-in pages ---------- */
.auth-page { min-height: 100vh; display: flex; align-items: flex-start; justify-content: center; padding: 6vh 14px; background: var(--dark) url('site/images/hero-cover.jpg') center/cover; }
.auth-card { background: #fff; width: min(520px, 100%); border-radius: 12px; padding: 26px 28px; box-shadow: 0 20px 60px rgba(0,0,0,.4); border-top: 5px solid var(--orange); }
.auth-brand { display: block; text-align: center; margin-bottom: 8px; }
.auth-brand img { height: 92px; }
.auth-card h1 { font-size: 1.5rem; font-weight: 700; text-align: center; }
.auth-card h2 { font-size: 1rem; }
.auth-card .col-lg-6, .auth-card .col-lg-4, .auth-card .col-md-4, .auth-card .col-md-6, .auth-card .col-xl-6 { width: 100%; flex: 0 0 100%; max-width: 100%; margin-left: 0; }
.auth-foot { text-align: center; font-size: .8rem; margin: 20px 0 0; color: #777; }
.social-logins { display: grid; gap: 8px; }
.social-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 9px 14px; border: 1px solid #ccc; border-radius: 6px; background: #fff; font-weight: 600; color: #222; }
.social-btn:hover { background: #f6f6f6; }
.social-btn svg { width: 20px; height: 20px; }
.or { display: flex; align-items: center; gap: 10px; color: #999; font-size: .8rem; margin: 16px 0; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid #ddd; }

@media print {
    .side, .topbar, .no-print, .scrim { display: none !important; }
    .content { padding: 0; }
    body { background: #fff; }
    .label { border-color: #ddd; }
}

#blazor-error-ui { background: #ffe8d9; bottom: 0; box-shadow: 0 -1px 2px rgba(0,0,0,.2); display: none; left: 0; padding: .6rem 1.25rem .7rem; position: fixed; width: 100%; z-index: 3000; }
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: .75rem; top: .5rem; }
.side-nav a i { font-variant-emoji: text; font-family: 'Segoe UI Symbol', 'Noto Sans Symbols 2', sans-serif; }

/* ================= Phone: app-style layout (bottom tab bar, menu as a bottom sheet) ================= */
.app-tabs { display: none; }
.side-signout { display: none; }
@media (max-width: 900px) {
    body { padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px)); background: #f4f4f2; }
    .topbar { height: calc(50px + env(safe-area-inset-top, 0px)); padding: env(safe-area-inset-top, 0px) 14px 0; background: var(--dark); border-bottom: 3px solid var(--orange); }
    .topbar-title { color: #fff; font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; }
    .topbar .menu-btn, .topbar form { display: none !important; }
    .content { padding: 14px 12px 24px; }
    .page-head { gap: 8px; }
    .page-head .page-title { font-size: 1.35rem; width: 100%; }
    .page-head .actions { margin-left: 0; width: 100%; }
    .page-head .nav-tabs { margin-left: 0 !important; width: 100%; overflow-x: auto; flex-wrap: nowrap; }
    .page-head .nav-tabs .nav-link { white-space: nowrap; }
    .btn, .form-control, .form-select { min-height: 40px; }
    .btn-sm { min-height: 34px; }
    .stat-tile .v { font-size: 1.35rem; }

    .app-tabs {
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
        display: grid; grid-template-columns: repeat(5, 1fr);
        background: rgba(14, 17, 20, .96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
        border-top: 1px solid rgba(255,255,255,.1);
        padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
    }
    .app-tabs a, .app-tabs .tab-more {
        position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
        min-height: 52px; color: rgba(255,255,255,.7); background: none; border: 0; border-radius: 10px;
        font: 500 10.5px/1 var(--bs-body-font-family); text-decoration: none; -webkit-tap-highlight-color: transparent;
    }
    .app-tabs svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
    .app-tabs a.active { color: var(--gold); }
    .app-tabs a:active, .app-tabs .tab-more:active { background: rgba(255,255,255,.08); }
    .tab-badge { position: absolute; top: 3px; left: calc(50% + 6px); background: var(--orange); color: #fff; border-radius: 999px; font-size: 10px; min-width: 17px; padding: 2px 5px; line-height: 1.1; }

    /* the full menu slides up from the bottom like an iOS sheet */
    .side {
        position: fixed; left: 0; right: 0; top: auto; bottom: 0; width: 100%; height: auto; max-height: 82vh;
        border-radius: 16px 16px 0 0; transform: translateY(105%); transition: transform .25s ease;
        padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); z-index: 55;
    }
    .side::before { content: ""; display: block; width: 40px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.3); margin: 8px auto 0; }
    .side-brand { display: none; }
    .portal.menu-open .side { transform: none; }
    .side-nav { display: grid; grid-template-columns: 1fr 1fr; padding: 6px 8px 12px; }
    .side-nav a { padding: 11px 12px; border-left: 0; border-radius: 8px; }
    .side-nav a.active { border-left: 0; }
    .side-group { grid-column: 1 / -1; padding: 12px 12px 2px; }
    .side-signout { display: block; grid-column: 1 / -1; padding: 10px 12px 0; }
    .side-signout button { width: 100%; }
    .portal.menu-open .scrim { z-index: 50; }
    .dm-backdrop { padding: 0; align-items: flex-end; }
    .dm { border-radius: 16px 16px 0 0; max-height: 92vh; overflow-y: auto; padding-bottom: env(safe-area-inset-bottom, 0px); }
    .msg, .working { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
}

/* Help */
.help-btn { width: 30px; height: 30px; border-radius: 50%; border: 1px solid #ccc; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: #333; text-decoration: none; flex: none; }
.help-btn:hover { background: var(--dark); color: #fff; border-color: var(--dark); }
.help-layout { display: grid; grid-template-columns: 230px 1fr; gap: 20px; align-items: start; }
.help-toc { position: sticky; top: 70px; }
.help-toc a { display: block; padding: 3px 0; font-size: .9rem; color: #333; text-decoration: none; }
.help-toc a:hover, .help-toc a.on { color: var(--orange, #F06125); font-weight: 600; }
.help-body { max-width: 860px; }
.help-sec { margin-bottom: 16px; scroll-margin-top: 70px; }
.help-sec h3 { font-size: 1rem; margin: 14px 0 4px; }
.help-sec .kv { margin-bottom: 8px; }
@media (max-width: 900px) { .help-layout { grid-template-columns: 1fr; } .help-toc { position: static; } }

/* Finances charts */
.chart-box { position: relative; height: 280px; }
@media print { .side, .topbar, .app-tabs, .page-head .actions, .page-head select { display: none !important; } .chart-box { height: 220px; } }


/* Tournaments */
.tourn-list { display: flex; flex-direction: column; gap: 8px; }
.tourn-row { display: flex; align-items: center; gap: 14px; padding: 10px 14px; color: inherit; text-decoration: none; border-left: 4px solid #ddd; }
.tourn-row:hover { background: #fafafa; color: inherit; }
.tourn-row.going { border-left-color: #2b8a3e; }
.tourn-date { width: 46px; text-align: center; line-height: 1.1; flex: none; }
.tourn-date b { display: block; font-size: 1.35rem; }
.tourn-date small { text-transform: uppercase; color: #888; font-size: .72rem; letter-spacing: .05em; }
.tourn-main { flex: 1; min-width: 0; }
.tourn-side { flex: none; }
@media (max-width: 600px) { .tourn-row { flex-wrap: wrap; } .tourn-side { width: 100%; padding-left: 60px; } }

.drill-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 16px; max-height: 55vh; overflow: auto; }
.drill-item { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 3px 0; border-bottom: 1px solid #f0f0f0; text-decoration: none; }


.pill.purple { background: #ece5ff; color: #5a32c7; }


/* Checkboxes: darker, slightly larger so they're easy to see (the Bootstrap default is very faint) */
.form-check-input[type=checkbox] { width: 1.15em; height: 1.15em; border: 2px solid #555; cursor: pointer; }
.form-check-input[type=checkbox]:hover { border-color: #222; }
.form-check-input[type=checkbox]:checked { background-color: var(--orange, #F06125); border-color: var(--orange, #F06125); }
.form-check-input[type=checkbox]:disabled { border-color: #bbb; cursor: not-allowed; }
.form-check-input[type=checkbox]:focus { box-shadow: 0 0 0 .2rem rgba(240, 97, 37, .25); }

/* Admin → Access levels */
.access-grid td:first-child { min-width: 240px; }
.access-grid .access-changed { color: var(--bs-warning, #e0a800); font-weight: 700; margin-left: 2px; }


/* Phones: no pinch or double-tap zoom (zooming made the fixed bottom menu float up the page) */
html { touch-action: pan-x pan-y; }


/* ---------- Welcome tips + "use it as an app" steps (drawn phone screens) ---------- */
.welcome-demo { display: flex; align-items: center; gap: 12px; background: var(--dark, #0E1114); color: #fff; border-radius: 8px; padding: 10px 14px; margin: 4px 0 14px; font-size: 14px; }
.welcome-demo .wd-title { font-weight: 600; margin-right: auto; }
.welcome-demo .wd-help, .welcome-list .wd-q { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--orange); color: #fff; background: var(--orange); font-weight: 700; }
.welcome-demo .wd-help { box-shadow: 0 0 0 4px rgba(240,97,37,.35); animation: dm-pulse 1.6s ease-in-out infinite; }
.welcome-list .wd-q { width: 22px; height: 22px; font-size: 13px; }
.welcome-demo .wd-name { opacity: .8; }
.welcome-demo .wd-out { border: 1px solid rgba(255,255,255,.6); border-radius: 4px; padding: 2px 8px; font-size: 12px; }
.welcome-list li + li { margin-top: 6px; }
.welcome-dont .form-check-input { margin-top: .2em; }
@media (max-width: 560px) { .welcome-demo .wd-name { display: none; } }
@keyframes dm-pulse { 50% { box-shadow: 0 0 0 7px rgba(240,97,37,.15); } }
@media (prefers-reduced-motion: reduce) { .welcome-demo .wd-help, .mock-phone .mp-hl { animation: none; } }

.install-tabs { display: inline-flex; border: 1px solid #ccd; border-radius: 8px; overflow: hidden; margin-bottom: 10px; }
.install-tabs button { border: 0; background: #fff; padding: 6px 16px; font-weight: 600; color: #444; }
.install-tabs button + button { border-left: 1px solid #ccd; }
.install-tabs button.on { background: var(--dark, #0E1114); color: #fff; }
.install-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.install-steps li { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.install-steps .cap { font-size: 14px; line-height: 1.45; align-self: stretch; }
.install-steps .cap .mp-share { width: 16px; height: 16px; vertical-align: -2px; fill: none; stroke: #0a7aff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.mock-phone { position: relative; width: 150px; height: 270px; border: 7px solid #1d1f23; border-radius: 24px; background: #fff; overflow: hidden; font: 10px/1.3 -apple-system, "Segoe UI", Roboto, sans-serif; color: #222; flex: none; box-shadow: 0 6px 16px rgba(0,0,0,.15); }
.mock-phone .mp-status { height: 18px; padding: 3px 12px 0; font-weight: 700; font-size: 9px; }
.mock-phone .mp-status.light { color: #fff; }
.mock-phone .mp-page { padding: 8px 10px; }
.mock-phone .mp-page i { display: block; height: 7px; border-radius: 4px; background: #e3e5ea; margin: 0 0 7px; }
.mock-phone .mp-page i.short { width: 60%; }
.mock-phone .mp-page i.mp-logo { width: 34px; height: 34px; border-radius: 8px; background: url(app-icon-192.png) center/cover, #0E1114; margin-bottom: 10px; }
.mock-phone .mp-page.dim { opacity: .35; }
.mock-phone .mp-url { flex: 1; background: #eef0f3; border-radius: 7px; padding: 3px 7px; font-size: 8.5px; color: #555; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-phone .mp-safari-bar { position: absolute; left: 0; right: 0; bottom: 0; background: #f7f7f8; border-top: 1px solid #ddd; padding: 5px 7px 8px; }
.mock-phone .mp-safari-bar .mp-url { display: block; text-align: center; margin-bottom: 5px; }
.mock-phone .mp-tools { display: flex; justify-content: space-between; align-items: center; color: #0a7aff; font-size: 13px; padding: 0 3px; }
.mock-phone .mp-share { width: 15px; height: 15px; fill: none; stroke: #0a7aff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; display: inline-block; }
.mock-phone .mp-tools .mp-hl { display: inline-flex; padding: 2px; }
.mock-phone .mp-sheet { position: absolute; left: 0; right: 0; bottom: 0; background: #f2f2f6; border-radius: 12px 12px 0 0; padding: 8px 6px 10px; box-shadow: 0 -4px 14px rgba(0,0,0,.15); }
.mock-phone .mp-sheet .mp-row, .mock-phone .mp-menu .mp-row { display: flex; justify-content: space-between; background: #fff; padding: 6px 8px; font-size: 9.5px; border-bottom: 1px solid #ececf0; }
.mock-phone .mp-sheet .mp-row:first-child { border-radius: 7px 7px 0 0; }
.mock-phone .mp-sheet .mp-row:last-child { border-radius: 0 0 7px 7px; border-bottom: 0; }
.mock-phone .mp-dialog-ios { margin: 4px 6px; background: #f2f2f6; border-radius: 10px; overflow: hidden; }
.mock-phone .mp-dhead { display: flex; justify-content: space-between; align-items: center; padding: 6px 7px; font-size: 8.5px; color: #0a7aff; background: #f7f7f8; border-bottom: 1px solid #ddd; }
.mock-phone .mp-dhead b { color: #222; font-size: 8.5px; }
.mock-phone .mp-dbody { display: flex; gap: 7px; align-items: center; padding: 9px 8px; background: #fff; }
.mock-phone .mp-dbody img { width: 34px; height: 34px; border-radius: 8px; }
.mock-phone .mp-dbody b { display: block; font-size: 10px; }
.mock-phone .mp-dbody small { color: #888; font-size: 8px; }
.mock-phone .mp-chrome-bar { display: flex; align-items: center; gap: 6px; padding: 4px 6px; background: #f1f3f4; border-bottom: 1px solid #ddd; font-size: 14px; color: #444; }
.mock-phone .mp-chrome-bar > span:last-child { padding: 0 4px; font-weight: 700; }
.mock-phone .mp-menu { position: absolute; right: 5px; top: 22px; width: 104px; background: #fff; border-radius: 6px; box-shadow: 0 4px 16px rgba(0,0,0,.25); overflow: hidden; }
.mock-phone .mp-menu .mp-row { border-bottom: 0; padding: 7px 9px; }
.mock-phone .mp-dialog-android { position: absolute; left: 9px; right: 9px; top: 70px; background: #fff; border-radius: 14px; padding: 10px; box-shadow: 0 6px 20px rgba(0,0,0,.3); font-size: 10.5px; }
.mock-phone .mp-dialog-android .mp-dbody { padding: 8px 0; }
.mock-phone .mp-dbtns { display: flex; justify-content: flex-end; gap: 6px; color: #1a73e8; font-weight: 600; }
.mock-phone .mp-dbtns span { padding: 2px 4px; }
.mock-phone.mp-home { background: linear-gradient(160deg, #3b4a6b, #c46a3c); }
.mock-phone .mp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px 5px; padding: 12px 8px; }
.mock-phone .mp-app { display: flex; flex-direction: column; align-items: center; gap: 2px; border-radius: 9px; }
.mock-phone .mp-app i, .mock-phone .mp-app img { width: 26px; height: 26px; border-radius: 7px; background: rgba(255,255,255,.35); display: block; }
.mock-phone .mp-app small { color: #fff; font-size: 7px; }
.mock-phone .mp-hl { outline: 2.5px solid var(--orange, #E0703A); outline-offset: 1px; border-radius: 6px; animation: dm-ring 1.6s ease-in-out infinite; position: relative; z-index: 1; }
.mock-phone .mp-row.mp-hl { background: #fff4ec; font-weight: 700; }
.mock-phone .mp-hl.strong { font-weight: 700; }
@keyframes dm-ring { 50% { outline-color: rgba(240,97,37,.35); } }

/* Class time dialog: create a program on the spot */
.new-program-box { background: #fff7f2; border: 1px dashed var(--orange); border-radius: 8px; padding: 10px 12px; }


/* Remove a price tier: confirmation strip in the dialog footer */
.tier-remove { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; background: #fff4f2; border: 1px solid #f1c4bc; border-radius: 8px; padding: 8px 10px; font-size: 13px; }
.tier-remove > span { flex: 1 1 100%; }


/* Settings → Email: unsubscribes */
.unsub-admin { background: #f7f7f5; border: 1px solid #e6e6e2; border-radius: 8px; padding: 10px 12px; }


/* Help: example pictures */
.help-shot-fig { margin: 12px 0 16px; max-width: 720px; width: 100%; min-width: 0; }
/* keep the Help column at screen width: a wide picture scrolls inside its own frame instead of widening the page */
.help-layout > * { min-width: 0; }
.help-shot { border: 1px solid #d9d9d6; border-radius: 10px; overflow: hidden; background: #f4f4f2; box-shadow: 0 2px 6px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.06); width: 100%; }
.help-shot-bar { display: flex; align-items: center; gap: 10px; padding: 6px 10px; background: #e9e9e6; border-bottom: 1px solid #d9d9d6; font-size: .75rem; }
.help-shot-bar .hs-dots { display: inline-flex; gap: 5px; flex: none; }
.help-shot-bar .hs-dots i { width: 10px; height: 10px; border-radius: 50%; background: #c9c9c5; display: block; }
.help-shot-bar .hs-dots i:first-child { background: #f0a39a; }
.help-shot-bar .hs-dots i:nth-child(2) { background: #f3d58a; }
.help-shot-bar .hs-dots i:last-child { background: #a9d8a0; }
.help-shot-bar .hs-url { flex: 1; min-width: 0; background: #fff; border-radius: 6px; padding: 2px 10px; color: #666; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.help-shot-bar .hs-badge { flex: none; background: var(--dark); color: var(--gold); border-radius: 999px; padding: 1px 9px; font-weight: 700; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; }
.help-shot-body { background: #f4f4f2; padding: 14px; font-size: .85rem; overflow: hidden; overflow-x: auto; }
.help-shot-inner { pointer-events: none; user-select: none; min-width: min-content; }
.help-shot-body .btn, .help-shot-body .form-control, .help-shot-body .form-select { font-size: inherit; min-height: 0; }
.help-shot-body .btn-sm, .help-shot-body .form-control-sm, .help-shot-body .form-select-sm { font-size: .92em; }
.help-shot-body .table-wrap, .help-shot-body .table-responsive { overflow: visible; }
.help-shot-body .table { font-size: inherit; }
.help-shot-body .page-head { margin-bottom: 10px; }
.help-shot-body .page-title { font-size: 1.25rem; }
.help-shot-body h5 { font-size: 1.05rem; }
.help-shot-cap { font-size: .8rem; color: #6c6d6f; margin-top: 6px; line-height: 1.45; }
.hs-callout { outline: 2px solid var(--orange); outline-offset: 2px; border-radius: 6px; position: relative; z-index: 1; }
/* a dialog drawn in place (not floating over the page), on a dimmed background */
.hs-overlay { background: rgba(14,17,20,.45); margin: -14px; padding: 18px 14px; }
.hs-overlay .dm { width: min(600px, 100%); margin: 0 auto; border-radius: 10px; max-height: none; overflow: visible; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
@media (max-width: 900px) {
    .help-shot-body { padding: 10px; font-size: .8rem; }
    .hs-overlay { margin: -10px; padding: 12px 8px; }
    .help-shot-body .page-head .page-title { width: auto; }
    .help-shot-body .page-head .actions { margin-left: auto; width: auto; }
}

/* Welcome tips: training videos */
.welcome-vid-head { font-size: 1rem; font-weight: 700; margin: 14px 0 8px; }
.welcome-videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-bottom: 8px; }
.welcome-videos figure { margin: 0; min-width: 0; }
.welcome-videos video { width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 8px; display: block; }
.welcome-videos figcaption { margin-top: 6px; font-size: 14px; line-height: 1.35; }
