/* Learning surfaces follow the selected workspace; video content retains its recorded theme. */
.ht-training-button,.ht-mobile-entry,.ht-context{display:inline-flex;align-items:center;justify-content:center;gap:7px}
.ht-training-button svg,.ht-mobile-entry svg,.ht-context svg{width:24px;height:28px;flex:none}
.hq-header-utilities .ht-training-button{font-size:12px;min-height:30px;padding:5px 10px;white-space:nowrap}
.hq-header-utilities:has(.ht-training-button){flex-wrap:wrap}
.ht-context{float:right;font-size:12px;margin:0 0 8px 12px}
.ht-centre{--ht-surface:var(--hd-panel,#202634);--ht-field:var(--hd-input,#151c28);--ht-line:var(--hd-border,#657083);--ht-ink:var(--hd-text,#edf0f6);box-sizing:border-box;width:min(1120px,calc(100vw - 40px));max-width:none;height:min(860px,calc(100dvh - 40px));max-height:none;padding:0;border:1px solid var(--ht-line);border-radius:18px;background:var(--ht-surface);color:var(--ht-ink);box-shadow:0 24px 100px #0008;overflow:hidden}
.ht-centre::backdrop{background:#080b14bd;backdrop-filter:blur(5px)}
.ht-header{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:20px 24px;border-bottom:1px solid var(--ht-line)}
.ht-title{display:flex;align-items:center;gap:12px}.ht-title small{opacity:.8}.ht-title h2{font-size:24px;margin:3px 0 0}.ht-mark svg{width:36px;height:44px}
.ht-body{box-sizing:border-box;height:calc(100% - 95px);padding:0 24px 30px;overflow:auto;overscroll-behavior:contain}
.ht-body>p{line-height:1.6;opacity:.85}.ht-preferences{display:flex;gap:18px;flex-wrap:wrap;margin:16px 0 22px}.ht-preferences label{display:grid;gap:6px;min-width:180px;font-weight:600}.ht-centre select,.ht-centre input{box-sizing:border-box;width:100%;color:var(--ht-ink);background:var(--ht-field);border:1px solid var(--ht-line);border-radius:8px;min-height:42px;padding:9px 12px;font:inherit}
.ht-start{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 20px;margin-top:20px;border:1px solid var(--ht-line);border-radius:12px;background:var(--ht-field)}.ht-start>div{display:grid;gap:5px}.ht-start small{font-weight:700}.ht-start strong{font-size:20px}.ht-start span{font-size:13px;opacity:.8}.ht-count{font-size:13px;opacity:.85;margin:20px 0 12px}
.ht-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.ht-card{border:1px solid var(--ht-line);border-radius:12px;background:var(--ht-field);overflow:hidden}.ht-card>button{box-sizing:border-box;display:block;width:100%;height:100%;padding:0;border:0;border-radius:0;background:transparent;color:inherit;text-align:left;cursor:pointer;font:inherit}.ht-card>button:hover{background:#8881}.ht-card>button:focus-visible{outline:3px solid currentColor;outline-offset:-4px}.ht-poster{position:relative;aspect-ratio:16/8;overflow:hidden}.ht-poster img{width:100%;height:100%;object-fit:cover}.ht-poster span{position:absolute;right:8px;bottom:8px;padding:4px 7px;background:#13141be8;color:white;border-radius:5px;font-size:12px}.ht-card-copy{padding:16px}.ht-card-copy small{opacity:.75}.ht-card h3{font-size:18px;margin:8px 0}.ht-card p{font-size:14px;line-height:1.5;opacity:.85;min-height:63px}.ht-card strong{font-size:13px}
.ht-player-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.ht-player h3{font-size:22px}.ht-player video{display:block;width:100%;max-height:55dvh;background:#000;border-radius:9px}.ht-playback-status{font-size:14px}.ht-centre details{border:1px solid var(--ht-line);border-radius:9px;padding:14px;margin:16px 0}.ht-centre summary{cursor:pointer;font-weight:700}.ht-transcript{line-height:1.7;max-width:850px}.ht-setting{margin:20px 0;border:1px solid #8886;border-radius:10px;padding:14px}.ht-setting legend{font-weight:700}.ht-setting p{font-size:13px;line-height:1.5}.ht-setting button{white-space:normal}
[data-horizon-profile="hq-test"] .ht-centre,[data-horizon-profile="hq"] .ht-centre{--ht-surface:#fffdfa;--ht-field:#f1edf4;--ht-line:#b6a8bf;--ht-ink:#302738}
[data-horizon-profile="hq-classic"] .ht-centre,[data-horizon-profile="evergreen"] .ht-centre{--ht-surface:#263d32;--ht-field:#172e23;--ht-line:#81997c;--ht-ink:#fff8e5}
.ht-centre [hidden],[data-ht-entry][hidden]{display:none!important}
@media(max-width:900px){.ht-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px),(max-width:1100px) and (max-height:600px){.ht-centre{width:100vw;height:100dvh;border:0;border-radius:0}.ht-header{padding:14px 16px;padding-top:max(14px,env(safe-area-inset-top))}.ht-title h2{font-size:19px}.ht-mark svg{width:28px;height:34px}.ht-body{height:calc(100% - 80px);padding:0 16px max(24px,env(safe-area-inset-bottom))}.ht-preferences{display:grid;grid-template-columns:1fr 1fr;gap:12px}.ht-preferences label{min-width:0;font-size:13px}.ht-grid{grid-template-columns:1fr}.ht-start{align-items:flex-start;flex-direction:column}.ht-player-heading{align-items:flex-start}.ht-player h3{font-size:19px}.ht-player video{max-height:65dvh;border-radius:0}.ht-context{display:none}.ht-mobile-entry{justify-content:flex-start}[data-phone-appearance="light"] .ht-centre{--ht-surface:#fffdfa;--ht-field:#f1edf4;--ht-line:#b6a8bf;--ht-ink:#302738}[data-phone-appearance="dark"] .ht-centre,[data-phone-appearance="bubbles"] .ht-centre{--ht-surface:#202634;--ht-field:#151c28;--ht-line:#657083;--ht-ink:#edf0f6}}

/* Supplied wheel silhouette: transparent cut-outs and white artwork on theme surfaces. */
.ht-training-button svg,.ht-mobile-entry svg,.ht-context svg,.ht-mark svg{color:#fff;background:var(--ht-icon-backdrop,transparent);border-radius:5px;box-sizing:content-box;padding:2px}
:is([data-horizon-theme=hq-test],[data-horizon-theme=hq]){--ht-icon-backdrop:#60486e}
[data-horizon-theme=evergreen]{--ht-icon-backdrop:#365440}[data-horizon-theme=midnight]{--ht-icon-backdrop:#304b69}[data-horizon-theme=hq-classic]{--ht-icon-backdrop:#304c3c}

@media(max-width:760px),(max-width:1100px) and (max-height:600px){[data-phone-appearance="light"]{--ht-icon-backdrop:#60486e}}

/* The phone header and More menu share the existing Training Wheels setting. */
.ht-phone-tools{display:flex;align-items:stretch;gap:7px}.ht-phone-tools .hm-settings-toggle{flex:1;min-width:0}.ht-phone-entry{display:inline-flex;align-items:center;justify-content:center;flex:none;min-width:44px;min-height:44px;padding:7px;border:1px solid var(--hd-line,#767080);border-radius:10px;background:var(--hm-card,#242430);color:var(--hd-fg,#fff)}.ht-phone-entry svg{width:20px;height:27px}
.ht-phone-training .ht-poster{aspect-ratio:9/16;max-height:240px;background:var(--ht-field)}.ht-phone-training .ht-poster img{object-fit:contain}.ht-phone-training video[data-portrait=true]{width:auto;max-width:100%;height:min(65dvh,740px);aspect-ratio:9/16;margin-inline:auto;object-fit:contain}
