/* Safisha family: charcoal, warm orange, gold and cream. Scoped to the platform panel. */
:root { --bn-bg: #f8f5f0; --bn-ink: #211b17; --bn-muted: #766b62; --bn-line: #e7dfd6; --bn-orange: #c45c15; --bn-gold: #efbd58; --bn-black: #171411; }
body.fi-body { background: var(--bn-bg); color: var(--bn-ink); }

.bn-brand { display: inline-flex; align-items: center; gap: 11px; text-align: left; font-size: 19px; line-height: 1.15; color: inherit; white-space: nowrap; }
.bn-brand strong { font-weight: 800; }
.bn-brand small { display: block; font-size: 8px; letter-spacing: .17em; font-weight: 600; margin-top: 5px; opacity: .65; }
.bn-brand-mark { display: grid; place-items: center; position: relative; width: 35px; height: 39px; border: 1px solid #b66a38; border-radius: 9px; background: linear-gradient(140deg, #c45c15, #e29145); font-size: 25px; font-weight: 900; color: white; box-shadow: 0 3px 12px #0002; }
.bn-brand-mark > span { position: absolute; right: 3px; top: 0; font-size: 12px; color: #ffe1a2; }

.fi-topbar { background: var(--bn-black) !important; color: #fff; border-bottom: 3px solid var(--bn-gold) !important; box-shadow: none !important; }
.fi-topbar .fi-logo, .fi-topbar .bn-brand { color: #fff; }
.fi-topbar button { color: #e9ddd1; }
.fi-sidebar, .fi-sidebar-header { background: var(--bn-black) !important; color: #fff; border-right: 0 !important; }
.fi-sidebar-header { border-bottom: 0; }
.fi-sidebar-nav { padding-top: 12px !important; }
.fi-sidebar-item-btn { border-radius: 0 !important; min-height: 48px; color: #fff !important; }
.fi-sidebar-item-label, .fi-sidebar-item-icon { color: #fff !important; font-weight: 700; }
.fi-sidebar-item:not(.fi-active) .fi-sidebar-item-btn:hover { background: rgba(255, 255, 255, .08) !important; }
.fi-sidebar-item.fi-active .fi-sidebar-item-btn { background: var(--bn-orange) !important; box-shadow: none !important; }
.fi-sidebar-item.fi-active .fi-sidebar-item-label,
.fi-sidebar-item.fi-active .fi-sidebar-item-icon { color: var(--bn-ink) !important; }
.fi-main { max-width: none !important; background: var(--bn-bg); }
.fi-header { display: none !important; }
.fi-page { padding-bottom: 1rem; }
.fi-main-ctn { min-width: 0; padding-bottom: 4.5rem; }

.biznest-console { display: grid; gap: 0; min-width: 0; }
.biznest-console [role=status] { padding: 12px 16px; margin-bottom: 12px; background: #eaf5ee; color: #216444; border: 1px solid #c7e2d1; border-radius: 4px; }
.biznest-console [role=alert] { padding: 12px 16px; margin-bottom: 12px; background: #fff0ec; color: #992f23; border: 1px solid #f0ccc4; border-radius: 4px; }

.ht-page-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem; margin-bottom: 1rem; }
.ht-page-title { font-size: 1.35rem; font-weight: 800; line-height: 1.2; margin: 0; letter-spacing: -.02em; }
.ht-page-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-left: auto; }
.ht-add, .ht-btn { background: var(--bn-orange); color: #fff; border: 0; border-radius: 4px; min-height: 44px; padding: 0 1rem; font-weight: 800; cursor: pointer; }
.ht-btn { min-height: 36px; font-size: .85rem; }
.ht-add:hover, .ht-btn:hover { background: #a44b14; }
.ht-add:focus-visible, .ht-btn:focus-visible, .ht-tabs a:focus-visible { outline: 3px solid #d0863f; outline-offset: 3px; }

.ht-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--bn-line); margin: 0 0 .75rem; }
.ht-tabs a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 1rem; font-weight: 700; color: var(--bn-muted); text-decoration: none; border-bottom: 3px solid transparent; }
.ht-tabs a.is-open { color: var(--bn-orange); border-bottom-color: var(--bn-orange); }

.ht-pill { display: inline-block; padding: .1rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 700; white-space: nowrap; border: 1px solid transparent; }
.ht-pill--ok { background: #eaf5ee; color: #216444; border-color: #b7dcc6; }
.ht-pill--wait { background: #fff0d4; color: #8c5e14; border-color: #efbd58; }
.ht-pill--bad { background: #fff0ec; color: #992f23; border-color: #f0ccc4; }

.ht-reg { background: #fff; border: 1px solid var(--bn-black); border-radius: 4px; margin-bottom: 1rem; max-width: 100%; min-width: 0; }
.ht-reg-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; padding: .55rem .75rem; border-bottom: 1px solid var(--bn-line); }
.ht-reg-caption { font-size: 1rem; }
.ht-reg-count { font-size: .78rem; color: var(--bn-muted); }
.ht-reg-spacer { flex: 1 1 auto; }
.ht-reg-search { border: 1px solid var(--bn-muted); border-radius: 4px; padding: .4rem .6rem; min-height: 40px; min-width: 12rem; font: inherit; background: #fff; color: var(--bn-ink); }
.ht-reg-scroll { overflow: auto; max-height: min(62dvh, 36rem); }
.ht-reg-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .85rem; }
.ht-reg-table th, .ht-reg-table td { border: 1px solid #b9b0a7; padding: .45rem .6rem; text-align: left; vertical-align: middle; }
.ht-reg-table thead th { position: sticky; top: 0; z-index: 2; background: var(--bn-black); color: #fff; font-weight: 700; white-space: nowrap; border-color: #3a3430; border-bottom: 3px solid var(--bn-orange); }
.ht-reg-table tbody tr:nth-child(even) td { background: #f8f5f0; }
.ht-reg-table tbody tr:hover td { background: rgba(196, 92, 21, .14); }
.ht-reg-table .ht-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ht-reg-table .ht-act { white-space: nowrap; width: 1%; }
.ht-reg-empty td { text-align: center; color: var(--bn-muted); padding: 1.25rem; }
.ht-reg-paging { display: flex; align-items: center; justify-content: flex-end; gap: .75rem; padding: .5rem .75rem; font-size: .85rem; border-top: 1px solid var(--bn-line); }
.ht-reg-paging button { min-height: 36px; padding: 0 .8rem; border-radius: 4px; border: 1px solid #d8cfc5; background: #fff; font-weight: 700; cursor: pointer; }
.ht-reg-paging button:disabled { opacity: .45; cursor: default; }

dialog.ht-dialog { border: 0; padding: 0; margin: auto; background: transparent; width: min(32rem, calc(100vw - 2rem)); }
dialog.ht-dialog::backdrop { background: rgba(23, 20, 17, .55); }
.ht-modal-card { background: #fff; border-radius: 4px; border-top: 4px solid var(--bn-orange); display: flex; flex-direction: column; max-height: min(80dvh, 40rem); width: 100%; }
.ht-modal-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .5rem .5rem .5rem 1rem; background: var(--bn-black); color: #fff; }
.ht-modal-title { font-size: 1.05rem; font-weight: 800; margin: 0; color: #fff; }
.ht-modal-head button { background: transparent; color: #fff; border: 0; min-height: 44px; font-weight: 700; cursor: pointer; }
.ht-modal-body { padding: 1rem; overflow-y: auto; display: grid; gap: .75rem; }
.ht-modal-body p { margin: 0; color: var(--bn-muted); font-size: .9rem; }
.ht-modal-body label { display: grid; gap: .35rem; font-size: .85rem; font-weight: 700; }
.ht-modal-body input, .ht-modal-body select { width: 100%; min-height: 44px; border: 1px solid #b9b0a7; border-radius: 4px; padding: .4rem .6rem; font: inherit; background: #fff; color: var(--bn-ink); }
.ht-modal-body input:focus, .ht-modal-body select:focus { outline: 2px solid #c45c1540; border-color: var(--bn-orange); }
.ht-check { display: flex !important; align-items: center; grid-template-columns: none; gap: .5rem; }
.ht-check input { width: 1.15rem; height: 1.15rem; min-height: 0; accent-color: var(--bn-orange); }
.ht-modal-foot { display: flex; justify-content: flex-end; gap: .75rem; padding: .75rem 1rem; border-top: 1px solid var(--bn-line); }

.pos-admin-footer { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; height: var(--ht-admin-footer-height); box-sizing: border-box; background: var(--bn-black); color: #fff; border-top: 3px solid var(--bn-gold); }
.pos-admin-footer__inner { display: flex; flex-wrap: wrap; gap: .35rem 1rem; align-items: center; justify-content: space-between; padding: .45rem 1rem; font-size: .78rem; }

:root { --ht-header-h: 3.5rem; --ht-admin-footer-height: 3rem; }
body.fi-body:has(.fi-simple-layout) { overflow: hidden; background: var(--bn-black); }
.bn-login-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 80; display: flex; align-items: center; height: var(--ht-header-h); padding: 0 1.25rem; background: var(--bn-black); color: #fff; box-shadow: inset 0 -3px 0 var(--bn-gold); }
.fi-no { top: calc(var(--ht-header-h) + 0.75rem) !important; z-index: 90; }
.bn-login-bar .bn-brand { color: #fff; }
.fi-simple-layout { position: fixed !important; top: var(--ht-header-h) !important; right: 0 !important; bottom: var(--ht-admin-footer-height) !important; left: 0 !important; height: auto !important; min-height: 0 !important; max-height: none !important; box-sizing: border-box; overflow: hidden !important; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, 420px); column-gap: 2.5rem; align-items: safe center; align-content: safe center; padding: 1.5rem 6%; background: radial-gradient(ellipse at 15% 35%, #8e582c55, transparent 60%), linear-gradient(120deg, #171411, #30251c) !important; }
.fi-simple-main-ctn { width: auto !important; max-width: none !important; min-height: 0 !important; height: auto !important; margin: 0 !important; padding: 0 !important; display: block !important; }
.fi-simple-main { background: #fff !important; border-radius: 16px !important; border: 1px solid #e6d5c2 !important; border-top: 4px solid #c45c15 !important; padding: 1.6rem 2rem 1.25rem !important; box-shadow: 0 18px 50px #00000059 !important; width: 100%; max-width: 420px !important; max-height: 100% !important; margin: 0 0 0 auto !important; overflow: auto !important; }
.bn-signin-divider { display: flex; align-items: center; gap: .75rem; color: #91877f; font-size: .65rem; font-weight: 800; letter-spacing: .1em; margin: 1.4rem 0 .9rem; }
.bn-signin-divider::before, .bn-signin-divider::after { content: ''; height: 1px; flex: 1; background: #ece6e0; }
.bn-create-account { display: flex; justify-content: center; align-items: center; gap: .6rem; min-height: 46px; border: 1px solid #ded4cb; border-radius: 8px; color: #493c32; font-size: .84rem; font-weight: 750; text-decoration: none; }
.bn-create-account:hover, .bn-create-account:focus-visible { border-color: #c45c15; color: #a64a0c; background: #fff9f4; }
.bn-auth-body { margin: 0; overflow: hidden; background: var(--bn-black); }
.bn-auth { position: fixed; top: var(--ht-header-h); right: 0; bottom: var(--ht-admin-footer-height); left: 0; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, 420px); gap: 2.5rem; align-items: center; padding: 1.5rem 6%; overflow: hidden; box-sizing: border-box; background: radial-gradient(ellipse at 15% 35%, #8e582c55, transparent 60%), linear-gradient(120deg, #171411, #30251c); }
.bn-auth-card { max-height: 100%; overflow: auto; background: #fff; border: 1px solid #e6d5c2; border-top: 4px solid #c45c15; border-radius: 16px; box-shadow: 0 18px 50px #00000059; padding: 1.6rem 2rem 1.25rem; }
.bn-auth-card h1 { margin: .45rem 0 0; color: #211b17; font-size: 1.55rem; line-height: 1.2; letter-spacing: -.03em; }
.bn-auth-lead { color: #70665e; font-size: .88rem; margin: .45rem 0 1rem; }
.bn-auth-card label { display: block; font-size: .78rem; font-weight: 700; margin: .65rem 0 .3rem; }
.bn-auth-card input { width: 100%; min-height: 44px; border: 1px solid #e7dfd6; border-radius: 8px; padding: 0 .75rem; background: #fff; box-sizing: border-box; }
.bn-auth-card .ht-add { width: 100%; margin-top: 1rem; }
.bn-auth-card [role=alert] { padding: 10px 12px; margin-bottom: 10px; background: #fff0ec; color: #992f23; border: 1px solid #f0ccc4; border-radius: 4px; }
.bn-auth-card [role=alert] p { margin: 0; }
.bn-auth-back { margin: .9rem 0 0; font-size: .84rem; }
.bn-auth-back a { color: #a64a0c; font-weight: 700; }
.fi-simple-main .fi-logo { color: #31251a; }
.fi-simple-header-heading { font-size: 25px !important; letter-spacing: -.035em; color: #2c2118; }
.bn-login-note { color: #8b7969; font-size: 12px; text-align: center; line-height: 1.5; margin: 0 0 18px; }
.bn-login-story { position: static; width: auto; max-width: 38rem; color: #fff; }
.bn-login-story .bn-eyebrow { color: #d8a05d; }
.bn-login-story h1 { font-size: clamp(36px, 4.5vw, 68px); letter-spacing: -.055em; font-weight: 750; line-height: 1.07; margin: 22px 0; }
.bn-login-story h1 em { font-style: normal; color: #e6b874; }
.bn-login-story > p { color: #c3b4a5; font-size: 15px; line-height: 1.8; max-width: 360px; }
.bn-login-products { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.bn-login-products span { font-size: 11px; letter-spacing: .02em; border: 1px solid #a889674d; border-radius: 25px; padding: 7px 13px; color: #d9c6af; }
.bn-login-attribution { margin-top: 70px; font-size: 9px; letter-spacing: .18em; color: #b59b7e; }
.bn-login-attribution span { color: #d99243; padding: 0 5px; }
.fi-simple-main .fi-btn { background: #b85212; color: #fff; min-height: 46px; border-radius: 8px; }
.fi-simple-main .fi-input-wrp { border-radius: 8px; min-height: 44px; }
.bn-eyebrow { display: block; font-size: 10px; font-weight: 800; letter-spacing: .16em; color: #a45a26; }

@media (min-width: 1024px) {
    .fi-sidebar { width: 16rem !important; }
    .fi-main { padding-left: 30px !important; padding-right: 30px !important; }
}
.ss-training { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 1rem; align-items: start; }
.ss-lessons { border: 1px solid var(--bn-line); background: #fff; }
.ss-lesson { display: block; width: 100%; text-align: left; background: #fff; border: 0; border-bottom: 1px solid var(--bn-line); border-left: 3px solid transparent; padding: .8rem .85rem; font-weight: 700; color: var(--bn-ink); cursor: pointer; }
.ss-lesson.is-open { background: #fff6ee; border-left-color: var(--bn-orange); }
.ss-lesson:focus-visible { outline: 3px solid #d0863f; outline-offset: -3px; }
.ss-player { border: 1px solid var(--bn-line); background: #fff; }
.ss-player-head { display: flex; justify-content: space-between; gap: .75rem; align-items: center; flex-wrap: wrap; padding: .85rem 1rem 0; }
.ss-player-head h2 { margin: 0; font-size: 1.05rem; font-weight: 800; }
.ss-player-actions, .ss-actions { display: flex; gap: .5rem; flex-wrap: wrap; padding: .85rem 1rem; }
.ss-player-note { margin: 0; padding: .75rem 1rem; color: var(--bn-muted); font-size: .9rem; }
.ss-training-main { min-width: 0; }
.ss-stage { position: relative; width: min(100%, calc(78vh * 16 / 10)); margin-inline: auto; background: var(--bn-black); }
.ss-training-video { display: block; width: 100%; height: auto; max-height: 78vh; background: var(--bn-black); aspect-ratio: 16 / 10; object-fit: contain; }
#play-all-status:empty { display: none; }
.biznest-console .ss-spinner { pointer-events: none; position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; gap: .75rem; margin: 0; padding: 0; border: 0; border-radius: 0; color: #fff; font-weight: 700; background: var(--bn-black); }
.ss-spinner[hidden] { display: none !important; }
.biznest-console .ss-spinner span { width: 2.25rem; height: 2.25rem; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .28); border-top-color: var(--bn-orange); animation: ss-spin .8s linear infinite; }
@keyframes ss-spin { to { transform: rotate(360deg); } }
.ss-actions a, .ht-reg a { color: var(--bn-orange); font-weight: 700; }

@media (max-width: 800px) {
    .ss-training { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
    .fi-simple-layout, .bn-auth { grid-template-columns: 1fr; row-gap: 1.25rem; padding-left: 1.25rem; padding-right: 1.25rem; }
    .bn-login-story h1 { font-size: 2rem; }
    .bn-login-products, .bn-login-attribution { display: none; }
}
@media (max-width: 767px) {
    :root { --ht-admin-footer-height: 5.6rem; }
    .fi-simple-main { padding: 28px !important; }
    .ht-reg-search { min-width: 0; width: 100%; }
    .pos-admin-footer__inner { flex-direction: column; align-items: flex-start; }
    .fi-main-ctn { padding-bottom: 7rem; }
}
