
:root{
  --bg:#ebe8df;
  --app:#f8f7f3;
  --panel:#fffdfa;
  --panel-alt:#f2efe7;
  --text:#151515;
  --muted:#6e695f;
  --line:#ddd7cb;
  --line-strong:#c5bdb0;
  --accent:#171717;
  --accent-text:#fff;
  --danger:#b42336;
  --ok:#18754a;
  --blue:#2f6fa8;
  --red:#a92424;
  --radius-sm:12px;
  --radius-md:16px;
  --radius-lg:22px;
  --radius-xl:28px;
  --shadow:0 10px 28px rgba(20,20,20,.06);
  --safe-bottom:env(safe-area-inset-bottom,0px);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Noto Sans KR","Apple SD Gothic Neo","Malgun Gothic",Arial,sans-serif;
}
body[data-theme="light"]{
  --bg:#f3f3f1;--app:#fbfbfa;--panel:#fff;--panel-alt:#f2f2ef;
  --line:#e4e1da;--line-strong:#cbc5bc;--text:#141414;--muted:#68655f;
}
body[data-theme="dark"]{
  --bg:#090909;--app:#131313;--panel:#1d1d1d;--panel-alt:#272727;
  --line:#383838;--line-strong:#565656;--text:#f2f2f2;--muted:#aaa;
  --accent:#f2f2f2;--accent-text:#111;--shadow:0 12px 32px rgba(0,0,0,.3);
}
body[data-font="readable"]{font-family:"Noto Sans KR","Apple SD Gothic Neo","Malgun Gothic",Arial,sans-serif;letter-spacing:-.01em}
body[data-font="rounded"]{font-family:"Arial Rounded MT Bold","Noto Sans KR","Apple SD Gothic Neo",Arial,sans-serif}
body[data-font="serif"]{font-family:Georgia,"Noto Serif KR",serif}
body[data-font="mono"]{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,"Noto Sans KR",monospace}

*{box-sizing:border-box}
html{min-height:100%;background:var(--bg);-webkit-text-size-adjust:100%}
body{margin:0;min-height:100%;background:var(--bg);color:var(--text);overflow-x:hidden}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
button:disabled{cursor:default}
input,select,textarea{width:100%;color:var(--text);background:var(--panel);border:1px solid var(--line-strong);border-radius:14px;min-height:40px;padding:0 11px;outline:none}
textarea{height:auto;min-height:78px;padding:10px 11px;resize:vertical;line-height:1.45}
select{appearance:auto}
select option{background:#fff;color:#111}
body[data-theme="dark"] select option{background:#1d1d1d;color:#f2f2f2}
input:focus,select:focus,textarea:focus{border-color:var(--accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 12%,transparent)}

.app{width:100%;max-width:500px;min-height:100dvh;margin:0 auto;background:var(--app);position:relative;padding-bottom:calc(92px + var(--safe-bottom));box-shadow:0 18px 60px rgba(0,0,0,.1)}
.topbar{position:sticky;top:0;z-index:40;background:var(--app);padding:8px 10px 4px}
.brand{min-height:52px;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 11px;border:1px solid var(--line);border-radius:22px;background:var(--panel);box-shadow:0 6px 18px rgba(20,20,20,.04)}
.brand-left{display:flex;align-items:center;gap:8px;min-width:0;flex:1 1 auto;padding:0;border-radius:14px}
.brand-left:active{opacity:.72}
.brand-left>div:last-child{min-width:0}
.logo{width:32px;height:32px;flex:none;display:grid;place-items:center;border-radius:12px;background:var(--accent);color:var(--accent-text);font-size:11px;font-weight:950}
.brand h1{margin:0;font-size:16px;line-height:1.05;font-weight:950;letter-spacing:-.05em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sub{max-width:215px;margin-top:3px;color:var(--muted);font-size:10.5px;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.brand-actions{display:flex;align-items:center;gap:5px;flex:none}
.lang-toggle{height:30px;display:inline-flex;align-items:center;gap:1px;padding:2px;border:1px solid var(--line);border-radius:999px;background:var(--panel-alt);color:var(--muted)}
.lang-toggle span{min-width:26px;height:24px;display:grid;place-items:center;border-radius:999px;font-size:10px;font-weight:900}
.lang-toggle span.active{background:var(--accent);color:var(--accent-text)}
.profile-pill{height:30px;max-width:92px;display:inline-flex;align-items:center;justify-content:center;padding:0 9px;border:1px solid var(--line);border-radius:999px;background:var(--panel-alt);color:var(--text);font-size:10.5px;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.profile-short{display:none}

.top-thought-toggle{display:flex;align-items:center;gap:8px;min-width:0;flex:1 1 auto;padding:0;border:0;background:transparent;color:var(--text);text-align:left}
.top-thought-toggle:active{opacity:.72}
.top-thought-home{width:32px;height:32px;flex:none;display:grid;place-items:center;border-radius:12px;background:var(--accent);color:var(--accent-text);font-size:11px;font-weight:950}
.top-thought-copy{min-width:0}
.top-thought-kicker{display:block;color:var(--muted);font-size:9px;font-weight:950;letter-spacing:.08em;text-transform:uppercase}
.top-thought-title{display:block;margin-top:2px;font-size:15px;line-height:1.05;font-weight:950;letter-spacing:-.04em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.top-thought-arrow{flex:none;color:var(--muted);font-size:15px;transition:transform .18s ease}
.top-thought-toggle[aria-expanded="true"] .top-thought-arrow{transform:rotate(180deg)}
.top-thought-panel{display:none;margin-top:6px;padding:10px 11px;border:1px solid var(--line);border-radius:18px;background:var(--panel);box-shadow:0 6px 18px rgba(20,20,20,.04)}
.top-thought-panel.show{display:block;animation:section-in .14s ease-out}
.top-thought-panel .thought-head{margin-bottom:7px}
.top-thought-panel .card-title{margin-bottom:2px;font-size:14px}
.top-thought-panel .card-desc{font-size:10.5px}
.top-thought-panel .thought-result{min-height:48px;margin-top:0;padding:10px 10px 10px 36px;font-size:11.5px}

.top-thought-result{display:none;min-width:0;width:100%;min-height:30px;align-items:center;gap:7px;margin-top:3px;padding:5px 10px;border:1px solid var(--line);border-radius:15px;background:var(--panel-alt);color:var(--text);overflow:hidden}
.top-thought-result-icon{flex:none;font-size:11px;line-height:1}
.top-thought-result-text{min-width:0;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;white-space:normal;font-size:11px;line-height:1.3;font-weight:850;word-break:keep-all}
.brand.thought-result-mode .top-thought-title{display:none}
.brand.thought-result-mode .top-thought-result{display:flex}
.brand.thought-result-mode .top-thought-copy{flex:1}
.brand.thought-result-mode .top-thought-toggle{align-items:center}

main{padding:10px 10px 110px}
.section{display:none}
.section.active{display:block;animation:section-in .14s ease-out}
@keyframes section-in{from{opacity:.35;transform:translateY(3px)}to{opacity:1;transform:none}}
.hero,.card,.form-card,.store-card,.bb-bundle{margin-bottom:10px;border:1px solid var(--line);border-radius:var(--radius-xl);background:var(--panel);box-shadow:none}
.hero{padding:15px 16px}
.hero h2{margin:5px 0;font-size:22px;line-height:1.16;font-weight:950;letter-spacing:-.06em;word-break:keep-all}
.hero p,.card-desc{margin:0;color:var(--muted);font-size:12px;line-height:1.45;word-break:keep-all}
.eyebrow{color:var(--muted);font-size:9.5px;font-weight:950;letter-spacing:.08em;text-transform:uppercase}
.card{padding:14px}
.card.tight{padding:10px}
.card.soft{background:var(--panel-alt)}
.card-title{margin:0 0 8px;font-size:16px;line-height:1.18;font-weight:950;letter-spacing:-.04em}
.hint{padding:9px 10px;border:1px solid var(--line);border-radius:14px;background:var(--panel-alt);color:var(--muted);font-size:11.5px;line-height:1.42;word-break:keep-all}
.empty-state{padding:12px;border:1px dashed var(--line-strong);border-radius:16px;background:var(--panel-alt);color:var(--muted);font-size:12px;line-height:1.45;text-align:center}
.divider{height:1px;margin:10px 0;background:var(--line)}
.field{margin-bottom:9px}
.field-row{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.label{display:block;margin:0 0 6px;color:var(--muted);font-size:10.5px;line-height:1;font-weight:900}
.btn{width:100%;height:40px;min-height:40px;padding:0 12px;border:1px solid var(--accent);border-radius:14px;background:var(--accent);color:var(--accent-text);font-size:12.5px;font-weight:900;text-align:center}
.btn.secondary{border-color:var(--line-strong);background:var(--panel);color:var(--text)}
.btn.ghost{border-color:var(--line);background:var(--panel-alt);color:var(--text)}
.btn.danger{border-color:var(--danger);background:var(--danger);color:#fff}
.btn.small{height:32px;min-height:32px;padding:0 9px;border-radius:11px;font-size:10.5px}
.btn.inline{width:auto}
.badge{display:inline-flex;align-items:center;justify-content:center;padding:5px 8px;border:1px solid var(--line);border-radius:999px;background:var(--panel);font-size:10px;font-weight:900}
.muted{color:var(--muted);font-size:11px;line-height:1.35}
.pill-row{display:flex;gap:6px;flex-wrap:wrap}
.choice{padding:8px 10px;border:1px solid var(--line-strong);border-radius:999px;background:var(--panel);color:var(--text);font-size:11.5px;font-weight:900}
.choice.active{border-color:var(--accent);background:var(--accent);color:var(--accent-text)}

.quick-dock{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin-bottom:10px}
.quick-tile{min-height:58px;display:flex;flex-direction:column;justify-content:center;padding:10px 7px;border:1px solid var(--line);border-radius:18px;background:var(--panel);color:var(--text);text-align:left}
.quick-tile span{color:var(--muted);font-size:10px;font-weight:850;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.quick-tile b{margin-top:6px;font-size:12.5px;line-height:1.15;letter-spacing:-.04em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.store-card{padding:15px}
.store-hero{display:flex;align-items:center;gap:11px}
.store-avatar{width:46px;height:46px;flex:none;display:grid;place-items:center;border-radius:16px;background:var(--accent);color:var(--accent-text);font-size:20px;font-weight:950}
.store-kicker{color:var(--muted);font-size:10px;font-weight:950;letter-spacing:.04em;text-transform:uppercase}
.store-card h2{margin:3px 0 2px;font-size:21px;line-height:1.12;letter-spacing:-.07em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.store-card p{margin:0;color:var(--muted);font-size:12px;line-height:1.35;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.store-status-row{display:flex;align-items:center;gap:6px;margin:12px 0 8px}
.store-reco{height:28px;display:inline-flex;align-items:center;padding:0 10px;border:1px solid var(--line);border-radius:999px;background:var(--panel);font-size:11px;font-weight:950}
.store-reco.recommend,.store-choice.recommend.active{border-color:#b7d1ff;background:#edf4ff;color:#1f63d8}
.store-reco.avoid,.store-choice.avoid.active{border-color:#f3b6b6;background:#fff1f1;color:#d84a4a}
.store-review{padding:10px 11px!important;border:1px solid var(--line);border-radius:14px;background:var(--panel);color:var(--text)!important;font-size:12.5px!important;line-height:1.36!important;white-space:normal!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.form-card{padding:14px}
.section-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}
.section-head h3{margin:0;font-size:16px;line-height:1.18;white-space:nowrap}
.section-head p{margin:4px 0 0;color:var(--muted);font-size:11px;line-height:1.35}
.store-choice-row{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.store-choice{height:40px;border:1px solid var(--line);border-radius:14px;background:var(--panel);color:var(--text);font-weight:950}

.scout-result{padding:10px;border:1px solid var(--line);border-radius:16px;background:var(--panel-alt);font-size:12px;line-height:1.45}

.bb-bundle{overflow:hidden}
.bundle-block{padding:13px 14px}
.bundle-block+.bundle-block{border-top:1px solid var(--line)}
.bundle-label{display:block;margin:0 0 7px;color:var(--muted);font-size:10.5px;line-height:1;font-weight:900}
.preset-summary{width:100%;height:50px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 12px;border:1px solid var(--line);border-radius:16px;background:var(--panel-alt);color:var(--text);text-align:left}
.preset-summary b,.preset-summary span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.preset-summary b{font-size:13px}
.preset-summary span{margin-top:3px;color:var(--muted);font-size:11px}
.preset-summary .arrow{height:28px;display:flex;align-items:center;flex:none;padding:0 9px;border:1px solid var(--line);border-radius:999px;background:var(--panel);font-size:10.5px;font-weight:900}
.bundle-strip{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:12px 14px;background:#161616;color:#fff}
.bundle-stat span,.bundle-stat small{display:block;color:rgba(255,255,255,.7);font-size:10.5px}
.bundle-stat strong{display:block;margin-top:4px;font-size:28px;line-height:1;font-weight:950;letter-spacing:-.06em;white-space:nowrap}
.bundle-stat.right{text-align:right}
.bundle-stat.right strong{font-size:19px}
.bundle-stat small{margin-top:4px}
body[data-theme="dark"] .bundle-strip{background:#eee;color:#111}
body[data-theme="dark"] .bundle-strip span,body[data-theme="dark"] .bundle-strip small{color:rgba(0,0,0,.6)}
.bundle-note{margin-top:7px;color:var(--muted);font-size:10.8px;line-height:1.35}
.bundle-field-label{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:9px}
.bundle-field-label h3{margin:0;font-size:16px;line-height:1.15;white-space:nowrap}
.bundle-field-sub{margin-top:4px;color:var(--muted);font-size:10.5px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.round-plus{width:34px;height:34px;flex:none;border:1px solid var(--accent);border-radius:12px;background:var(--accent);color:var(--accent-text);font-size:20px;font-weight:950}
.chip-column-head,.chip-row.manual{display:grid;grid-template-columns:minmax(54px,1fr) 70px 102px 62px;gap:6px;align-items:center}
.chip-column-head{margin-bottom:6px;padding:0 8px;color:var(--muted);font-size:9.5px;font-weight:900;text-align:center}
.chip-column-head span:first-child{text-align:left;padding-left:21px}
.chip-list{display:grid;gap:6px}
.chip-row.manual{position:relative;min-height:50px;padding:7px 8px;border:1px solid var(--line);border-radius:16px;background:var(--panel-alt)}
.chip-token{display:flex;align-items:center;gap:7px;min-width:0}
.color-swatch{width:19px;height:19px;flex:none;padding:0;border:1px solid rgba(0,0,0,.2);border-radius:999px;background:#777}
.chip-name{font-size:12.5px;line-height:1;font-weight:950;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.value-input{width:70px!important;height:32px!important;min-height:32px!important;padding:0 7px!important;border-radius:11px!important;font-size:12px!important;text-align:right}
.count-box{display:grid;grid-template-columns:27px 38px 27px;gap:4px;align-items:center}
.count-box input{height:32px;min-height:32px;padding:0 2px;border-radius:11px;font-size:13px;font-weight:950;text-align:center}
.step-btn{width:27px;height:32px;padding:0;border:1px solid var(--line);border-radius:11px;background:var(--panel);color:var(--text);font-weight:950}
.row-total{width:62px;display:flex;align-items:center;justify-content:flex-end;padding:0 2px;font-size:10.8px;font-weight:950;white-space:nowrap}
.delete-chip{position:absolute;right:4px;top:4px;width:18px;height:18px;padding:0;border:0;background:transparent;color:var(--muted);font-weight:950}
.add-panel{display:none;margin-top:12px;padding-top:12px;border-top:1px solid var(--line)}
.add-panel.show{display:block}
.add-chip-grid{display:grid;grid-template-columns:1fr 76px 42px;gap:7px}
.color-input{padding:4px}
.bundle-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.preset-card{width:100%;display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:11px;border:1px solid var(--line);border-radius:16px;background:var(--panel);color:var(--text);text-align:left}
.preset-card.active{border-color:var(--accent);background:var(--accent);color:var(--accent-text)}
.preset-name{font-size:13px;font-weight:950}
.preset-card.active .muted{color:var(--accent-text)}
.select-btn{padding:7px 9px;border:1px solid var(--line);border-radius:999px;background:var(--panel);color:var(--text);font-size:10.5px;font-weight:900;white-space:nowrap}
.chip-tags{display:flex;gap:5px;flex-wrap:wrap;margin-top:6px}
.chip-mini{display:inline-flex;align-items:center;gap:4px;padding:3px 6px;border:1px solid var(--line);border-radius:999px;background:var(--panel);color:var(--text);font-size:9.5px;font-weight:850}
.swatch{display:inline-block;width:14px;height:14px;border:1px solid rgba(0,0,0,.2);border-radius:999px;flex:none}
.palette-preview{height:54px;margin:10px 0;border:1px solid var(--line);border-radius:18px;background:#777}
.palette-list{display:grid;gap:8px}
.palette-row{display:grid;grid-template-columns:42px 1fr 58px;gap:8px;align-items:center}
.palette-row input[type="color"]{width:42px;height:36px;padding:3px;border-radius:12px}
.palette-row code{height:36px;display:flex;align-items:center;padding:0 10px;border:1px solid var(--line);border-radius:12px;background:var(--panel-alt);font-size:12px;font-weight:850}
.palette-row button{height:36px;border:1px solid var(--line);border-radius:12px;background:var(--panel);color:var(--danger);font-size:11px;font-weight:950}
.palette-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}
.palette-help{margin-top:8px;color:var(--muted);font-size:11px;line-height:1.45}

.study-menu-grid{display:grid;gap:8px}
.study-tool{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 14px;border:1px solid var(--line);border-radius:20px;background:var(--panel);color:var(--text);text-align:left}
.study-tool b{display:block;font-size:14px;line-height:1.15;white-space:nowrap}
.study-tool span{display:block;margin-top:4px;color:var(--muted);font-size:11.2px;line-height:1.35}
.study-tool .go{width:32px;height:32px;flex:none;display:grid;place-items:center;border-radius:12px;background:var(--accent);color:var(--accent-text);font-style:normal;font-weight:950}
.thought-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}
.thought-kicker{color:var(--muted);font-size:10px;font-weight:950;letter-spacing:.06em;text-transform:uppercase}
.thought-result{position:relative;min-height:56px;display:flex;align-items:center;margin-top:8px;padding:12px 12px 12px 38px;border:1px solid var(--line);border-radius:18px;background:var(--panel-alt);font-size:12.5px;line-height:1.45;font-weight:850}
.thought-result:before{content:"?";position:absolute;left:11px;top:50%;width:19px;height:19px;display:grid;place-items:center;transform:translateY(-50%);border-radius:999px;background:var(--accent);color:var(--accent-text);font-size:11px}
.thought-result.picked:before{content:"✓"}
.thought-result .empty{color:var(--muted)}
.learning-grid{display:grid;gap:8px}
.learn-card{padding:10px;border:1px solid var(--line);border-radius:16px;background:var(--panel)}
.learn-card b{display:block;margin-bottom:5px;font-size:12.5px}
.learn-card span{color:var(--muted);font-size:11px;line-height:1.45}
.rank-table{width:100%;border-collapse:separate;border-spacing:0 5px}
.rank-table th{padding:0 7px;color:var(--muted);font-size:9.5px;text-align:left}
.rank-table td{padding:8px 7px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);background:var(--panel);font-size:11px;line-height:1.4}
.rank-table td:first-child{border-left:1px solid var(--line);border-radius:12px 0 0 12px;font-weight:950}
.rank-table td:last-child{border-right:1px solid var(--line);border-radius:0 12px 12px 0}


.record-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.record-form-grid .field{min-width:0}
.record-card{padding:13px;margin-bottom:9px;border:1px solid var(--line);border-radius:19px;background:var(--panel)}
.record-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:10px}
.record-title{font-size:16px;line-height:1.15;font-weight:950;letter-spacing:-.04em;word-break:break-word}
.record-time{margin-top:4px;color:var(--muted);font-size:10.5px;line-height:1.35}
.record-result{flex:none;padding:5px 8px;border:1px solid var(--line);border-radius:999px;background:var(--panel-alt);font-size:10px;font-weight:950}
.record-result.win{border-color:#b9d6b5;background:#eef8eb;color:#35713a}
.record-result.loss{border-color:#f3b6b6;background:#fff1f1;color:#c63f3f}
.record-result.fold{border-color:#b9cdea;background:#eef5ff;color:#315f9b}
.record-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.record-meta-item{min-width:0;padding:8px 9px;border:1px solid var(--line);border-radius:13px;background:var(--panel-alt)}
.record-meta-item small{display:block;color:var(--muted);font-size:9px;font-weight:850}
.record-meta-item b{display:block;margin-top:4px;font-size:11.5px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.record-board{margin-top:7px;padding:9px 10px;border:1px solid var(--line);border-radius:13px;background:var(--panel-alt);font-size:11.5px;line-height:1.4;word-break:break-word}
.record-board small{margin-right:6px;color:var(--muted);font-size:9.5px;font-weight:900}
.record-note{margin-top:7px;color:var(--text);font-size:12px;line-height:1.5;white-space:pre-wrap;word-break:break-word}
.record-actions{display:flex;justify-content:flex-end;gap:6px;margin-top:10px}
.record-action{height:31px;padding:0 10px;border:1px solid var(--line);border-radius:999px;background:var(--panel-alt);color:var(--text);font-size:10.5px;font-weight:900}
.record-action.favorite.active{border-color:#dfc98f;background:#fff5d9;color:#8a5b00}
.record-action.delete{color:var(--danger)}
.record-filter-row{display:grid;grid-template-columns:minmax(0,1fr) 112px;gap:7px}
.record-filter-row input,.record-filter-row select{height:38px;min-height:38px}
.record-filter-actions{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:8px}
.record-summary{color:var(--muted);font-size:10.5px;font-weight:850}
.record-card-picker-btn{width:100%;min-height:54px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:7px 9px;border:1px solid var(--line-strong);border-radius:14px;background:var(--panel);color:var(--text);text-align:left}
.record-card-picker-btn:hover{border-color:var(--accent)}
.record-picker-preview{min-width:0;display:flex;align-items:center;gap:4px;flex-wrap:wrap}
.record-picker-placeholder{color:var(--muted);font-size:11px;font-weight:850}
.record-picker-open-label{flex:none;color:var(--muted);font-size:10px;font-weight:900;white-space:nowrap}
.record-mini-card{width:29px;height:39px;flex:none;display:flex;flex-direction:column;align-items:center;justify-content:space-between;padding:3px 2px 2px;border:1px solid #cfd0d2;border-radius:6px;background:#fff;color:#141414;box-shadow:0 1px 3px rgba(0,0,0,.08);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;font-weight:950;line-height:1}
.record-mini-card.red{color:#d63737}
.record-mini-card .rank{font-size:10px;letter-spacing:-.04em}
.record-mini-card .suit{font-size:15px;line-height:.85}
.record-card-line{display:flex;align-items:center;gap:4px;flex-wrap:wrap}
.record-card-line .record-mini-card{width:25px;height:34px;border-radius:5px}
.record-card-line .record-mini-card .rank{font-size:9px}
.record-card-line .record-mini-card .suit{font-size:13px}
.record-board .record-card-line{display:inline-flex;vertical-align:middle}
.record-board-street{display:inline-flex;align-items:center;gap:4px}
.record-board-divider{margin:0 3px;color:var(--muted);font-weight:900}
.record-card-sheet{max-height:90dvh}
.record-picker-top{display:grid;gap:9px;margin-bottom:10px}
.record-picker-selected{min-height:48px;display:flex;align-items:center;gap:5px;flex-wrap:wrap;padding:8px;border:1px solid var(--line);border-radius:15px;background:var(--panel-alt)}
.record-picker-slot{width:31px;height:42px;display:grid;place-items:center;border:1px dashed var(--line-strong);border-radius:7px;color:var(--muted);font-size:10px;font-weight:900}
.record-picker-selected-btn{padding:0;border:0;background:transparent}
.record-picker-selected-btn .record-mini-card{width:31px;height:42px}
.record-card-grid{display:grid;grid-template-columns:repeat(13,minmax(0,1fr));gap:3px;padding:7px;border:1px solid var(--line);border-radius:16px;background:var(--panel-alt)}
.record-pick-card{min-width:0;height:35px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;padding:0;border:1px solid #cfd0d2;border-radius:5px;background:#fff;color:#141414;font-weight:950;line-height:1}
.record-pick-card.red{color:#d63737}
.record-pick-card span{font-size:8.5px}
.record-pick-card small{font-size:12px;line-height:.8}
.record-pick-card.selected{outline:2px solid var(--accent);outline-offset:-2px;background:var(--accent);color:var(--accent-text)}
.record-pick-card.used{opacity:.28;cursor:not-allowed}
.record-picker-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}
@media(max-width:390px){.record-card-grid{gap:2px;padding:5px}.record-pick-card{height:31px;border-radius:4px}.record-pick-card span{font-size:7.5px}.record-pick-card small{font-size:11px}.record-mini-card{width:27px;height:37px}}
#favoriteOnlyBtn{width:auto;min-width:105px}
#favoriteOnlyBtn.active{border-color:var(--accent);background:var(--accent);color:var(--accent-text)}
@media(max-width:390px){.record-form-grid{grid-template-columns:1fr}.record-meta{grid-template-columns:1fr 1fr}.record-meta-item:last-child{grid-column:1 / -1}.record-filter-row{grid-template-columns:1fr}}

.developer-contact{margin:4px 0 0;padding:8px 10px;color:var(--muted);font-size:10.5px;line-height:1.4;text-align:center;word-break:break-all}
.developer-contact a{color:inherit;text-decoration:none}
.developer-contact a:hover{text-decoration:underline}
.bottom-nav{position:fixed;left:50%;bottom:10px;z-index:50;width:calc(100% - 20px);max-width:480px;display:grid;grid-template-columns:repeat(6,1fr);gap:3px;padding:6px 6px calc(6px + var(--safe-bottom));transform:translateX(-50%);border:1px solid var(--line);border-radius:26px;background:var(--panel);box-shadow:0 14px 34px rgba(0,0,0,.14)}
.nav-btn{min-height:50px;display:flex;flex-direction:column;align-items:center;gap:3px;padding:6px 2px;border:0;border-radius:18px;background:transparent;color:var(--muted);font-size:9.8px;font-weight:900}
.nav-btn .ico{width:20px;height:20px;display:grid;place-items:center}
.nav-btn svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.nav-btn.active{background:var(--accent);color:var(--accent-text)}
.nav-btn span:last-child{white-space:nowrap}
.toast{position:fixed;left:50%;bottom:calc(84px + var(--safe-bottom));z-index:90;max-width:90%;padding:10px 13px;transform:translate(-50%,18px);border-radius:999px;background:#111;color:#fff;font-size:12px;font-weight:850;text-align:center;opacity:0;pointer-events:none;transition:.18s}
.toast.show{transform:translate(-50%,0);opacity:1}

.modal{position:fixed;inset:0;z-index:120;display:none}
.modal.show{display:block}
.modal-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.46)}
.modal-sheet{position:absolute;left:50%;bottom:0;width:100%;max-width:500px;max-height:84dvh;overflow:auto;transform:translateX(-50%);padding:13px 13px calc(16px + var(--safe-bottom));border:1px solid var(--line);border-radius:24px 24px 0 0;background:var(--app);box-shadow:0 -16px 38px rgba(0,0,0,.22)}
.modal-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.modal-title{font-size:16px;font-weight:950;letter-spacing:-.04em}
.modal-close{width:34px;height:34px;padding:0;border:1px solid var(--line);border-radius:999px;background:var(--panel);color:var(--text);font-size:18px;font-weight:950}
.modal-list{display:grid;gap:7px;margin-top:8px}

.pf-wrap{display:grid;gap:8px;margin-top:4px}
.pf-help{padding:8px 10px;border:1px solid var(--line);border-radius:14px;background:var(--panel-alt);color:var(--muted);font-size:10.5px;line-height:1.35}
.pf-dark{padding:9px;border:1px solid #2b2b2b;border-radius:20px;background:#121212;color:#f3f3f3;overflow:hidden}
.pf-label{display:block;margin:0 0 5px;color:#bdbdbd;font-size:9.5px;font-weight:900;letter-spacing:.03em;text-transform:uppercase}
.pf-pills{display:flex;gap:5px;flex-wrap:wrap}
.pf-pill{height:27px;padding:0 9px;border:1px solid #3a3a3a;border-radius:999px;background:#1d1d1d;color:#eaeaea;font-size:10px;font-weight:900}
.pf-pill.active{border-color:#16a34a;background:#16a34a;color:#fff}
.pf-summary{display:grid;grid-template-columns:1.05fr .95fr;gap:6px;margin-top:8px}
.pf-big{min-height:82px;display:flex;flex-direction:column;justify-content:space-between;padding:11px;border-radius:15px;background:linear-gradient(180deg,#7f1d1d,#991b1b);color:#fff}
.pf-big.fold-selected{background:linear-gradient(180deg,#1d4f82,#2f6fa8)}
.pf-big small{font-size:9.5px;color:rgba(255,255,255,.76)}
.pf-big b{display:block;margin-top:4px;font-size:21px;line-height:1;letter-spacing:-.05em}
.pf-big span{display:block;margin-top:5px;font-size:10.5px;line-height:1.25}
.pf-side{display:grid;gap:6px}
.pf-stat{min-height:38px;padding:8px 9px;border:1px solid #2e2e2e;border-radius:14px;background:#1b1b1b}
.pf-stat small{display:block;color:#aaa;font-size:9px}
.pf-stat b{display:block;margin-top:3px;color:#fff;font-size:16px;line-height:1}
.pf-legend{display:flex;gap:8px;flex-wrap:wrap;margin-top:7px}
.pf-key{display:inline-flex;align-items:center;gap:5px;color:#cfcfcf;font-size:9.5px;font-weight:850}
.pf-dot{width:10px;height:10px;border-radius:3px;border:1px solid rgba(255,255,255,.18)}
.pf-grid{width:100%;display:grid;grid-template-columns:repeat(13,minmax(0,1fr));gap:2px;margin-top:8px;padding:2px;border:1px solid #262626;border-radius:14px;background:#0f0f0f}
.pf-cell{width:100%;min-width:0;aspect-ratio:1;padding:2px;border:1px solid rgba(255,255,255,.07);border-radius:5px;color:#fff;font-size:8.2px;line-height:1;font-weight:900;text-align:left}
.pf-cell.push{background:var(--red)}
.pf-cell.fold{background:var(--blue)}
.pf-cell.active-hand{outline:2px solid #19e3b1;outline-offset:-2px;filter:brightness(1.12)}
.pf-raw{margin-top:8px;padding:8px 10px;border:1px solid #2a2a2a;border-radius:14px;background:#171717}
.pf-raw small{display:block;margin-bottom:4px;color:#9f9f9f;font-size:9.5px}
.pf-raw code{display:block;color:#f0f0f0;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:9.8px;line-height:1.35;white-space:normal;word-break:break-word}

.odds-sheet{max-height:92dvh;background:#111318;color:#f2f4f7}
.od-wrap,.od-shell{display:grid;gap:10px}
.od-help{padding:9px 11px;border:1px solid #2b3240;border-radius:15px;background:#181c23;color:#b9c1ce;font-size:11px;line-height:1.45}
.od-board{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}
.od-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.od-add{height:44px;border:1px solid #363d49;border-radius:999px;background:#171b21;color:#edf0f5;font-size:14px;font-weight:900}
.od-add b{margin-right:5px;font-size:19px}
.od-rows{display:grid;gap:8px}
.od-player-block{display:grid;gap:4px}
.od-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:8px;align-items:center;padding:8px;border:1px solid #2d333e;border-radius:18px;background:#171b21}
.od-row.selected{border-color:#64769d;box-shadow:0 0 0 2px rgba(117,147,214,.22)}
.od-hole{display:flex;gap:6px}
.od-card{height:57px;aspect-ratio:.72/1;display:flex;flex-direction:column;align-items:center;justify-content:space-between;padding:5px 0 3px;border:1.5px solid #c6cbd4;border-radius:9px;background:#eceef2;color:#101318;font-weight:900}
.od-card.blank{border-color:#cdd2dc99;background:#454a54;color:transparent}
.od-card.active{border-color:#e0bb46;box-shadow:0 0 0 2px rgba(224,187,70,.18)}
.od-card .rank{font-size:23px;line-height:1}
.od-card .suit{font-size:27px;line-height:1}
.od-card.red{color:#d94343}
.od-card.range{justify-content:center;gap:4px;border-color:#667080;background:#303642;color:#d7dce5;font-size:10px}
.od-metrics{display:grid;gap:3px;min-width:0}
.od-name{color:#c8d0dc;font-size:11px;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.od-equity{color:#a9c0ff;font-size:42px;line-height:.95;letter-spacing:-.06em;white-space:nowrap}
.od-equity small{font-size:.4em}
.od-sub{color:#95a0b4;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.od-remove{width:31px;height:31px;padding:0;border:1px solid #353d49;border-radius:10px;background:#171b22;color:#d9deea;font-size:23px;line-height:1}
.od-breakdown{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 12px;padding:2px 2px 0;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}
.od-breakdown div{display:flex;justify-content:space-between;gap:6px;color:#e9edf3;font-size:10.5px;white-space:nowrap}
.od-picker{display:grid;gap:3px}
.od-picker-row{display:grid;grid-template-columns:repeat(13,minmax(0,1fr));gap:2px}
.od-pick{height:36px;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:0;border:1px solid #858d9b;border-radius:6px;background:#edf0f4;color:#111318;font-size:12px;line-height:1;font-weight:900}
.od-pick small{font-size:17px;line-height:1}
.od-pick.red{color:#d94343}
.od-pick.used{opacity:.34}
.od-pick.active{outline:2px solid #e0bb46;outline-offset:-2px}
.od-footer{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;color:#96a0b4;font-size:9.5px;line-height:1.35}
.od-empty{padding:14px;border:1px dashed #3a4250;border-radius:16px;color:#aab4c5;font-size:11px;line-height:1.45;text-align:center}

@media(max-width:480px){
  .brand{gap:6px;padding:8px 9px}
  .top-thought-toggle{max-width:calc(100% - 68px);gap:6px}
  .brand-actions{width:62px;justify-content:flex-end;gap:4px}
  .lang-toggle{width:62px;justify-content:center}
  .profile-pill{width:44px;max-width:44px;padding:0 3px;font-size:9.5px}
  .profile-full{display:none}.profile-short{display:inline}
  .sub{max-width:100%}
}
@media(max-width:390px){
  main{padding:9px 9px 104px}
  .quick-dock{gap:6px}.quick-tile{min-height:54px;padding:9px 6px}.quick-tile b{font-size:12px}
  .field-row{gap:7px}
  .chip-column-head,.chip-row.manual{grid-template-columns:52px 64px 96px 54px;gap:5px}
  .value-input{width:64px!important;font-size:11.5px!important}
  .count-box{grid-template-columns:26px 36px 26px;gap:3px}.step-btn{width:26px}.row-total{width:54px;font-size:10px}
  .bottom-nav{width:calc(100% - 16px);bottom:8px}.nav-btn{min-height:48px;font-size:9.4px}
  .pf-big{min-height:76px;padding:10px}.pf-big b{font-size:19px}.pf-stat{padding:7px 8px}.pf-stat b{font-size:14px}.pf-cell{font-size:7.7px;border-radius:4px}
  .odds-sheet{padding:11px 9px calc(14px + var(--safe-bottom))}.od-board{gap:5px}.od-card{height:52px}.od-card .rank{font-size:21px}.od-card .suit{font-size:24px}.od-row{padding:7px;gap:7px}.od-equity{font-size:37px}.od-breakdown div{font-size:9.5px}.od-pick{height:33px;font-size:11px}.od-pick small{font-size:15px}.od-add{height:41px;font-size:13px}
}
@media(max-width:350px){
  .top-thought-kicker{display:none}.top-thought-toggle{max-width:calc(100% - 68px)}
  .quick-tile span{display:none}.quick-tile b{margin-top:0;text-align:center}.store-avatar{display:none}
  .chip-column-head,.chip-row.manual{grid-template-columns:46px 58px 88px 48px;gap:4px}.value-input{width:58px!important}.count-box{grid-template-columns:24px 34px 24px}.step-btn{width:24px}.row-total{width:48px;font-size:9.5px}
  .pf-dark{padding:7px}.pf-pill{height:25px;padding:0 7px;font-size:9.5px}.pf-cell{padding:1px;font-size:7px}.pf-grid{gap:1.5px}
}

  

/*
  HoldemScouter responsive layout
  - Mobile canvas: 360/375px, 16px horizontal content margin
  - Tablet content: max 720px
  - Desktop canvas: 1024px+, max 1320px centered container
*/

/* Mobile-first corrections: preserve the existing app UI, but use a true 16px content gutter. */
@media (max-width:767px){
  .app{max-width:500px}
  .topbar{padding:8px 12px 4px}
  main{padding:12px 16px calc(108px + var(--safe-bottom))}
  .bottom-nav{width:calc(100% - 32px);max-width:468px}
  .modal-sheet{max-width:500px}
}

/* Tablet: keep the mobile interaction model, widen only the usable content area. */
@media (min-width:768px) and (max-width:1023px){
  body{padding:24px}
  .app{
    max-width:720px;
    min-height:calc(100dvh - 48px);
    border:1px solid var(--line);
    border-radius:30px;
    overflow:clip;
  }
  .topbar{padding:14px 16px 6px}
  .brand{min-height:64px;padding:10px 14px}
  .logo{width:38px;height:38px}
  .brand h1{font-size:18px}
  .sub{max-width:360px;font-size:11px}
  main{padding:16px 20px calc(112px + var(--safe-bottom))}
  .section.active{max-width:680px;margin:0 auto}
  .bottom-nav{width:calc(100% - 80px);max-width:680px;bottom:22px}
  .modal-sheet{max-width:720px}
}

/* Desktop: the same HTML becomes a PC dashboard. */
@media (min-width:1024px){
  html{background:var(--bg)}
  body{
    min-height:100dvh;
    padding:24px;
    background:
      radial-gradient(circle at 12% 0%,color-mix(in srgb,var(--panel) 82%,transparent),transparent 34%),
      var(--bg);
  }

  .app{
    width:100%;
    max-width:1320px;
    min-height:calc(100dvh - 48px);
    margin:0 auto;
    padding-bottom:0;
    display:grid;
    grid-template-columns:232px minmax(0,1fr);
    grid-template-rows:auto minmax(0,1fr);
    border:1px solid var(--line);
    border-radius:32px;
    overflow:clip;
    box-shadow:0 24px 80px rgba(20,20,20,.12);
  }

  .topbar{
    position:relative;
    top:auto;
    grid-column:1 / -1;
    grid-row:1;
    z-index:40;
    padding:16px 20px 12px;
    border-bottom:1px solid var(--line);
    background:var(--app);
  }
  .brand{
    min-height:72px;
    padding:12px 16px;
    border-radius:22px;
  }
  .top-thought-toggle{gap:12px}
  .top-thought-home{width:44px;height:44px;border-radius:15px;font-size:12px}
  .top-thought-title{font-size:20px;letter-spacing:-.05em}
  .top-thought-kicker{font-size:10px}
  .top-thought-panel{margin-top:10px;padding:14px 16px}
  .brand.thought-result-mode .top-thought-result{min-height:34px}
  .brand.thought-result-mode .top-thought-result-text{font-size:12px}
  .brand-actions{gap:8px}
  .lang-toggle{height:36px;padding:3px}
  .lang-toggle span{min-width:32px;height:28px;font-size:11px}
  .profile-pill{height:36px;max-width:180px;padding:0 14px;font-size:11.5px}
  .profile-full{display:inline}
  .profile-short{display:none}

  main{
    min-width:0;
    grid-column:2;
    grid-row:2;
    padding:28px 32px 48px;
    overflow:visible;
  }
  .section.active{
    width:100%;
    max-width:1000px;
    margin:0 auto;
    animation:section-in .14s ease-out;
  }

  /* Navigation is a left sidebar on PC. */
  .bottom-nav{
    position:sticky;
    left:auto;
    bottom:auto;
    top:24px;
    z-index:30;
    width:auto;
    max-width:none;
    height:max-content;
    grid-column:1;
    grid-row:2;
    align-self:start;
    display:flex;
    flex-direction:column;
    gap:7px;
    margin:24px 0 24px 20px;
    padding:12px;
    transform:none;
    border-radius:22px;
    box-shadow:none;
  }
  .bottom-nav::before{
    content:"MENU";
    display:block;
    padding:4px 12px 8px;
    color:var(--muted);
    font-size:10px;
    font-weight:950;
    letter-spacing:.12em;
  }
  .nav-btn{
    width:100%;
    min-height:54px;
    flex-direction:row;
    justify-content:flex-start;
    gap:12px;
    padding:0 14px;
    border:1px solid transparent;
    border-radius:15px;
    font-size:13px;
    text-align:left;
  }
  .nav-btn .ico{width:24px;height:24px}
  .nav-btn svg{width:21px;height:21px}
  .nav-btn:not(.active):hover{border-color:var(--line);background:var(--panel-alt);color:var(--text)}
  .nav-btn.active{box-shadow:0 8px 18px color-mix(in srgb,var(--accent) 18%,transparent)}

  /* General PC sizing. */
  .hero,.card,.form-card,.store-card,.bb-bundle{margin-bottom:0}
  .hero{padding:24px 26px}
  .hero h2{font-size:31px}
  .hero p,.card-desc{max-width:680px;font-size:13px;line-height:1.6}
  .eyebrow{font-size:10px}
  .card{padding:22px}
  .card.tight{padding:14px}
  .card-title{font-size:19px}
  .form-card,.store-card{padding:22px}
  .section-head h3{font-size:19px}
  .section-head p{font-size:12px}
  .field{margin-bottom:12px}
  .field-row{gap:12px}
  input,select,textarea{min-height:44px;padding-left:13px;padding-right:13px}
  textarea{min-height:104px;padding-top:12px}
  .btn{height:44px;min-height:44px;font-size:13px}
  .btn.small{height:34px;min-height:34px}
  .hint{padding:12px 13px;font-size:12px}

  /* Home: store card and editor side-by-side. */
  #home.section.active{
    display:grid;
    grid-template-columns:minmax(0,1.04fr) minmax(360px,.96fr);
    gap:18px;
    align-items:start;
  }
  #home .quick-dock{grid-column:1 / -1;margin:0}
  #home .store-card{grid-column:1}
  #home .form-card{grid-column:2}
  .quick-dock{gap:10px}
  .quick-tile{min-height:84px;padding:15px 16px;border-radius:20px}
  .quick-tile span{font-size:11px}
  .quick-tile b{margin-top:10px;font-size:15px}
  .quick-tile:hover{transform:translateY(-1px);border-color:var(--line-strong)}
  .store-avatar{width:58px;height:58px;border-radius:18px;font-size:24px}
  .store-card h2{font-size:27px}
  .store-card p{font-size:13px}
  .store-review{font-size:13px!important}

  /* Scout and settings use balanced two-column cards. */
  #scout.section.active,
  #settings.section.active{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:18px;
    align-items:start;
  }
  #scout > .hero,
  #settings > .hero{grid-column:1 / -1}
  #settings > .developer-contact{grid-column:1 / -1}

  /* Chip calculator stays centered for readability. */
  #chip.section.active{max-width:900px}
  #chip .hero{margin-bottom:18px}
  .bundle-block{padding:20px 22px}
  .bundle-strip{padding:18px 22px}
  .bundle-stat strong{font-size:38px}
  .bundle-stat.right strong{font-size:25px}
  .preset-summary{height:60px;padding:0 16px}
  .chip-column-head,.chip-row.manual{grid-template-columns:minmax(110px,1fr) 120px 126px 120px;gap:12px}
  .chip-row.manual{min-height:62px;padding:10px 12px}
  .value-input{width:120px!important;height:38px!important;min-height:38px!important}
  .count-box{grid-template-columns:34px 48px 34px;gap:5px}
  .count-box input,.step-btn{height:38px;min-height:38px}
  .step-btn{width:34px}
  .row-total{width:120px;font-size:12px}

  /* Study dashboard. */
  #study.section.active{
    display:grid;
    grid-template-columns:minmax(0,1.15fr) minmax(300px,.85fr);
    gap:18px;
    align-items:start;
  }
  #study > .hero{grid-column:1 / -1}
  #study > .card:first-of-type{grid-column:1}
  #study > .card.soft{grid-column:2}
  .study-menu-grid{gap:10px}
  .study-tool{min-height:86px;padding:17px 18px}
  .study-tool b{font-size:16px}
  .study-tool span{font-size:12px}

  /* Records: compose and filters on the left, saved hands on the right. */
  #records.section.active{
    display:grid;
    grid-template-columns:minmax(350px,410px) minmax(0,1fr);
    gap:18px;
    align-items:start;
  }
  #records > .hero{grid-column:1 / -1}
  #records > .record-compose{grid-column:1;grid-row:2}
  #records > .record-tools{grid-column:1;grid-row:3}
  #records > #recordList{grid-column:2;grid-row:2 / span 3;min-width:0}
  .record-card{padding:17px;margin-bottom:12px}
  .record-title{font-size:18px}
  .record-note{font-size:13px}

  /* Desktop dialogs are centered windows, not bottom sheets. */
  .modal-sheet{
    top:50%;
    bottom:auto;
    width:calc(100% - 64px);
    max-width:760px;
    max-height:86dvh;
    transform:translate(-50%,-50%);
    padding:20px;
    border-radius:28px;
  }
  .learning-sheet{max-width:900px}
  .odds-sheet{max-width:1040px;max-height:92dvh;padding:22px}
  .modal-title{font-size:19px}
  .pf-dark{padding:16px}
  .pf-cell{font-size:10.5px;border-radius:7px}
  .pf-grid{gap:4px;padding:4px}
  .pf-summary{grid-template-columns:1.3fr .7fr;gap:10px}
  .pf-big{min-height:102px;padding:15px}
  .pf-big b{font-size:28px}
  .pf-stat{min-height:48px;padding:10px 12px}
  .pf-stat b{font-size:20px}
  .od-board{max-width:520px}
  .od-card{height:68px}
  .od-row{padding:11px}
  .od-equity{font-size:50px}
  .od-pick{height:42px}

  .toast{bottom:34px;max-width:560px}
}

/* Keep the PC layout usable on the minimum supported 1280px screen. */
@media (min-width:1024px) and (max-width:1279px){
  body{padding:16px}
  .app{min-height:calc(100dvh - 32px);grid-template-columns:208px minmax(0,1fr)}
  .bottom-nav{margin-left:14px;padding:10px}
  main{padding:24px 24px 40px}
  #home.section.active{grid-template-columns:minmax(0,1fr) minmax(330px,.9fr)}
  .chip-column-head,.chip-row.manual{grid-template-columns:minmax(90px,1fr) 104px 116px 104px;gap:9px}
  .value-input{width:104px!important}
  .row-total{width:104px}
}

/* Very large displays: do not stretch text and controls beyond a readable dashboard width. */
@media (min-width:1600px){
  body{padding:32px}
  .app{min-height:calc(100dvh - 64px)}
  main{padding-left:40px;padding-right:40px}
}


#icm.section.active{width:100%}
.icm-stage{overflow:hidden;border:1px solid var(--line);border-radius:28px;background:var(--app);color:var(--text);box-shadow:var(--shadow)}
.icm-intro{padding:25px 18px 21px;border-bottom:1px solid var(--line);background:var(--panel-alt);text-align:center}
.icm-kicker{margin-bottom:7px;color:var(--muted);font-size:9.5px;font-weight:950;letter-spacing:.14em;text-transform:uppercase}
.icm-intro h2{margin:0;color:var(--text);font-size:29px;line-height:1.15;font-weight:950;letter-spacing:-.06em}
.icm-intro p{max-width:720px;margin:13px auto 0;color:var(--muted);font-size:12px;line-height:1.65;word-break:keep-all}
.icm-shell{padding:12px;background:var(--app)}
.icm-count-panel,.icm-panel{border:1px solid var(--line);border-radius:18px;background:var(--panel)}
.icm-count-panel{padding:14px;margin-bottom:12px}
.icm-panel-label{margin-bottom:10px;color:var(--text);font-size:11px;font-weight:900}
.icm-player-buttons{display:flex;flex-wrap:wrap;gap:7px;overflow:visible;padding:2px 1px 5px}
.icm-count-btn{width:34px;height:34px;min-width:34px;padding:0;border:1px solid var(--line-strong);border-radius:9px;background:var(--panel-alt);color:var(--muted);font-size:11.5px;font-weight:950}
.icm-count-btn:hover{border-color:var(--accent);color:var(--text)}
.icm-count-btn.active{border-color:var(--accent);background:var(--accent);color:var(--accent-text);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 14%,transparent)}
.icm-layout{display:grid;gap:12px}
.icm-panel{padding:14px;min-width:0}
.icm-panel-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px;color:var(--text)}
.icm-panel-head>div{display:flex;align-items:center;gap:8px}
.icm-panel-head b{font-size:15px}
.icm-head-icon{width:20px;height:20px;display:grid;place-items:center;color:var(--accent)}
.icm-head-icon svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.icm-small-btn{width:auto;min-width:74px;height:34px;padding:0 13px;border:1px solid var(--line-strong);border-radius:10px;background:var(--panel-alt);color:var(--text);font-size:10.5px;font-weight:900}
.icm-small-btn:hover{border-color:var(--accent)}
.icm-column-head,.icm-input-row{display:grid;grid-template-columns:42px minmax(72px,1fr) 34px minmax(88px,1fr);gap:6px;align-items:center}
.icm-column-head{padding:0 5px 7px;color:var(--muted);font-size:10.5px;font-weight:900;text-align:center}.icm-column-head span{white-space:nowrap}
.icm-column-head span{text-align:center}
.icm-input-rows{display:grid;gap:6px}
.icm-input-row{padding:7px 5px;border:1px solid var(--line);border-radius:12px;background:var(--panel-alt)}
.icm-place{color:var(--muted);font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:10.5px;text-align:center}
.icm-player-index{width:31px;height:31px;display:grid;place-items:center;border:1px solid var(--line-strong);border-radius:999px;background:var(--panel);color:var(--text);font-size:10px;font-weight:900}
.icm-input{height:38px!important;min-height:38px!important;padding:0 9px!important;border:1px solid var(--line-strong)!important;border-radius:10px!important;background:var(--panel)!important;color:var(--text)!important;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:11.5px!important;text-align:right}
.icm-input:focus{border-color:var(--accent)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 12%,transparent)!important}
.icm-totals{display:flex;justify-content:space-between;gap:10px;margin-top:13px;padding-top:13px;border-top:1px solid var(--line);color:var(--muted);font-size:11.5px;font-weight:850}
.icm-totals b{color:var(--text);font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12.5px}
.icm-results{display:grid;gap:8px}
.icm-result-row{position:relative;overflow:hidden;padding:12px 12px 11px;border:1px solid var(--line);border-radius:12px;background:var(--panel-alt)}
.icm-result-main{display:flex;align-items:center;justify-content:space-between;gap:10px}
.icm-result-name{color:var(--text);font-size:12.5px;font-weight:900}
.icm-result-name small{margin-right:5px;color:var(--muted);font-weight:700}
.icm-result-value{color:var(--ok);font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:14px;font-weight:950;white-space:nowrap}
.icm-result-meta{margin-top:4px;color:var(--muted);font-size:9.5px;text-align:right}
.icm-result-bar{position:absolute;left:0;bottom:0;height:3px;background:var(--accent)}
.icm-empty-result{padding:22px 12px;border:1px dashed var(--line-strong);border-radius:13px;background:var(--panel-alt);color:var(--muted);font-size:11px;line-height:1.5;text-align:center}
.icm-footnote{margin-top:11px;padding:10px 12px;border:1px solid var(--line);border-radius:14px;background:var(--panel-alt);color:var(--muted);font-size:10px;line-height:1.5}
@media(max-width:767px){.icm-player-buttons{gap:6px}.icm-count-btn{width:32px;height:32px;min-width:32px;border-radius:8px}.icm-column-head{font-size:10px}}
@media(max-width:390px){
  .icm-stage{border-radius:22px}.icm-intro{padding:21px 13px 18px}.icm-intro h2{font-size:25px}.icm-shell{padding:9px}.icm-panel{padding:10px}.icm-count-panel{padding:11px}
  .icm-column-head,.icm-input-row{grid-template-columns:36px minmax(66px,1fr) 30px minmax(78px,1fr);gap:4px}.icm-player-index{width:28px;height:28px}.icm-input{padding:0 6px!important;font-size:10.5px!important}
  .icm-result-value{font-size:12.5px}.icm-small-btn{min-width:64px;padding:0 10px}.icm-totals{flex-direction:column;gap:5px}
}
@media(min-width:768px){.icm-shell{padding:17px}.icm-intro{padding:32px 24px 27px}.icm-intro h2{font-size:40px}.icm-intro p{font-size:13px}.icm-count-panel,.icm-panel{border-radius:20px}.icm-layout{grid-template-columns:minmax(0,1fr) minmax(0,.94fr);gap:14px}.icm-panel{padding:17px}.icm-column-head,.icm-input-row{grid-template-columns:55px minmax(110px,1fr) 38px minmax(120px,1fr);gap:10px}.icm-column-head{font-size:11.5px}.icm-input{font-size:12.5px!important}}
@media(min-width:1024px){#icm.section.active{max-width:1080px}.icm-stage{border-radius:30px}.icm-shell{padding:20px}.icm-intro h2{font-size:45px}.icm-count-btn{width:34px;min-width:34px;height:34px}.icm-layout{gap:16px}.icm-panel{padding:18px}.icm-result-row{padding:13px}}


.legal-footer{margin:12px 0 0;padding:16px 14px;border:1px solid var(--line);border-radius:22px;background:var(--panel);text-align:center}
.legal-footer-nav{display:flex;justify-content:center;gap:7px 12px;flex-wrap:wrap}
.legal-footer-nav a{color:var(--muted);font-size:10.5px;font-weight:850;text-decoration:none}
.legal-footer-nav a:hover{color:var(--text);text-decoration:underline}
.legal-footer p{max-width:680px;margin:11px auto 0;color:var(--muted);font-size:9.8px;line-height:1.5;word-break:keep-all}
@media(min-width:1024px){.legal-footer{margin-top:18px;padding:18px}.legal-footer-nav a{font-size:11px}}


#scout > .scout-tool-card{grid-column:1 / -1}
#scout .study-menu-grid{grid-template-columns:1fr}
#scoutCalcModal .scout-calc-sheet{width:min(calc(100% - 24px),430px);max-width:430px}
#scoutCalcModal .scout-calc-card{margin:0;padding:16px}
#scoutCalcModal .scout-calc-fields{display:grid;grid-template-columns:1fr;gap:12px}
#scoutCalcModal .field{margin:0}
#scoutCalcModal .label{
  margin:0 0 8px;
  color:var(--text);
  font-size:14px;
  line-height:1.2;
  font-weight:950;
  letter-spacing:-.025em
}
#scoutCalcModal input{
  height:44px;
  min-height:44px;
  padding:0 13px;
  border-radius:13px;
  font-size:16px;
  font-weight:750
}
#scoutCalcModal .scout-calc-submit{
  height:46px;
  min-height:46px;
  margin-top:14px;
  font-size:14px
}
#scoutCalcModal .scout-result-v2{
  margin-top:10px;
  padding:0;
  border:0;
  background:transparent
}
.scout-result-empty{
  padding:15px;
  border:1px dashed var(--line-strong);
  border-radius:17px;
  background:var(--panel-alt);
  color:var(--muted);
  font-size:12px;
  line-height:1.45;
  text-align:center
}
.scout-metric-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.scout-metric-card{
  min-width:0;
  padding:14px 13px;
  border:1px solid var(--line);
  border-radius:18px;
  background:var(--panel-alt)
}
.scout-metric-card>span{
  display:block;
  color:var(--muted);
  font-size:11px;
  font-weight:950
}
.scout-metric-card>strong{
  display:block;
  margin-top:7px;
  color:var(--text);
  font-size:32px;
  line-height:1;
  font-weight:950;
  letter-spacing:-.065em;
  white-space:nowrap
}
.scout-metric-card>strong em{
  margin-left:2px;
  font-size:.48em;
  font-style:normal;
  letter-spacing:-.02em
}
.scout-metric-card>small{
  display:block;
  margin-top:7px;
  color:var(--muted);
  font-size:9.5px;
  line-height:1.3;
  font-weight:800
}
.scout-advice{
  margin-top:8px;
  padding:13px 14px;
  border:1px solid var(--line);
  border-radius:17px;
  background:var(--panel)
}
.scout-advice>b{
  display:block;
  font-size:12px;
  line-height:1.2;
  font-weight:950
}
.scout-advice>p{
  margin:6px 0 0;
  color:var(--muted);
  font-size:12px;
  line-height:1.5;
  word-break:keep-all
}
@media(min-width:700px){
  #scout .study-menu-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:390px){
  #scoutCalcModal .scout-calc-sheet{width:calc(100% - 16px);padding:12px}
  #scoutCalcModal .scout-calc-card{padding:13px}
  #scoutCalcModal .label{font-size:13.5px}
  #scoutCalcModal input{height:42px;min-height:42px}
  .scout-metric-card>strong{font-size:29px}
}


/* 계산 메뉴: 모바일 한 열, 넓은 화면 세 열 */
#scout > .scout-tool-card{grid-column:1 / -1}
#scout .study-menu-grid{grid-template-columns:1fr}
.bottom-nav{grid-template-columns:repeat(5,minmax(0,1fr))}

/* 칩BB 계산 모달 */
#chipCalcModal .chip-calc-sheet{
  width:min(calc(100% - 16px),900px);
  max-width:900px;
  max-height:92dvh
}
#chipCalcModal .chip-modal-content>.hero{display:none}
#chipCalcModal .chip-modal-content{display:block}
#chipCalcModal .bb-bundle{margin:0}
#chipCalcModal .chip-calc-intro{
  margin-bottom:10px;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:15px;
  background:var(--panel-alt);
  color:var(--muted);
  font-size:11px;
  line-height:1.45
}

/* 직접 입력은 저장된 칩 목록과 독립적인 일회성 계산입니다. */
#chipCalcModal .quick-bb-card{margin-bottom:12px;padding:16px;border:1px solid var(--line-strong);border-radius:var(--radius-lg);background:var(--panel)}
#chipCalcModal .quick-bb-card h3{margin:0 0 6px;font-size:17px}
#chipCalcModal .quick-bb-description,#chipCalcModal .quick-bb-note{margin:0;color:var(--muted);font-size:12px;line-height:1.5}
#chipCalcModal .quick-bb-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:end;gap:12px;margin-top:14px}
#chipCalcModal .quick-bb-grid .field{min-width:0;margin:0}
#chipCalcModal .quick-bb-grid .label{font-size:12px;line-height:1.4}
#chipCalcModal .quick-bb-grid input{min-width:0;min-height:44px;font-variant-numeric:tabular-nums}
#chipCalcModal .quick-bb-grid input[aria-invalid="true"]{border-color:var(--danger)}
#chipCalcModal .quick-bb-result{grid-column:1 / -1;min-width:0;padding:12px 14px;border-radius:var(--radius-sm);background:var(--panel-alt)}
#chipCalcModal .quick-bb-result output{display:block;color:var(--text);font-size:28px;line-height:1.2;font-weight:900;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
#chipCalcModal .quick-bb-hint{margin:10px 0 4px;font-size:12px;line-height:1.5;overflow-wrap:anywhere}
@media(min-width:700px){
  #chipCalcModal .quick-bb-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  #chipCalcModal .quick-bb-result{grid-column:auto}
}

/* 오즈 계산기 보드: 플랍 3장 / 턴 1장 / 리버 1장 */
.od-board.od-board-streets{
  width:100%;
  max-width:520px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:13px;
  margin:0 auto;
  padding:4px 0
}
.od-street{
  width:100%;
  display:grid;
  justify-items:center;
  gap:6px
}
.od-street-cards{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px
}
.od-street-label{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:52px;
  height:24px;
  padding:0 10px;
  border:1px solid #343b47;
  border-radius:999px;
  background:#171b21;
  color:#b9c1ce;
  font-size:10.5px;
  font-weight:900;
  letter-spacing:.02em
}

@media(min-width:700px){
  #scout .study-menu-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}

@media(max-width:390px){
  .od-board.od-board-streets{gap:10px}
  .od-street-cards{gap:5px}
  .od-street-label{height:22px;font-size:10px}
}

@media(min-width:1024px){
  #chipCalcModal .chip-calc-sheet{padding:22px}
  #chipCalcModal .bundle-block{padding:20px 22px}
  #chipCalcModal .bundle-strip{padding:18px 22px}
  #chipCalcModal .bundle-stat strong{font-size:38px}
  #chipCalcModal .bundle-stat.right strong{font-size:25px}
  #chipCalcModal .preset-summary{height:60px;padding:0 16px}
  #chipCalcModal .chip-column-head,
  #chipCalcModal .chip-row.manual{
    grid-template-columns:minmax(110px,1fr) 120px 126px 120px;
    gap:12px
  }
  #chipCalcModal .chip-row.manual{min-height:62px;padding:10px 12px}
  #chipCalcModal .value-input{
    width:120px!important;
    height:38px!important;
    min-height:38px!important
  }
  #chipCalcModal .count-box{grid-template-columns:34px 48px 34px;gap:5px}
  #chipCalcModal .count-box input,
  #chipCalcModal .step-btn{height:38px;min-height:38px}
  #chipCalcModal .step-btn{width:34px}
  #chipCalcModal .row-total{width:120px;font-size:12px}
}


/* Six primary navigation items after adding Advanced. */
.bottom-nav{grid-template-columns:repeat(6,minmax(0,1fr))}

/* Advanced dashboard. */
#advanced>.hero,#advanced>.advanced-guide-shell{grid-column:1/-1}
.advanced-guide-grid{display:grid;grid-template-columns:1fr;gap:9px}
.advanced-guide-card{position:relative;min-height:92px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:11px;text-decoration:none}
.advanced-guide-card .advanced-guide-number{width:34px;height:34px;display:grid;place-items:center;border:1px solid var(--line);border-radius:12px;background:var(--panel-alt);color:var(--muted);font-size:10px;font-weight:950}
.advanced-guide-card>div{min-width:0}
.advanced-guide-card b{display:block}
.advanced-guide-card span:not(.advanced-guide-number){display:block}

/* One-line community board: flop 3 | turn 1 | river 1. */
.od-board.od-board-inline{width:100%;max-width:560px;display:flex;align-items:flex-start;justify-content:center;gap:9px;margin:0 auto;padding:3px 0 1px}
.od-board-inline .od-street-group{min-width:0;display:grid;justify-items:center;gap:6px}
.od-board-inline .od-street-cards{display:flex;align-items:center;justify-content:center;gap:6px}
.od-board-inline .od-street-label{display:inline-flex;align-items:center;justify-content:center;min-width:50px;height:23px;padding:0 9px;border:1px solid #343b47;border-radius:999px;background:#171b21;color:#b9c1ce;font-size:10px;font-weight:900;letter-spacing:.02em}
.od-board-inline .od-street-divider{width:1px;height:55px;flex:none;margin-top:1px;background:#39414e}

/* Keep mobile and tablet calculator sheets above the fixed navigation. */
@media(max-width:1023px){
  #scoutCalcModal .modal-sheet,
  #oddsModal .modal-sheet,
  #chipCalcModal .modal-sheet{
    bottom:calc(84px + var(--safe-bottom));
    max-height:calc(100dvh - 112px - var(--safe-bottom));
  }
}
@media(min-width:700px){
  .advanced-guide-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(min-width:1200px){
  #advanced.section.active{display:grid;grid-template-columns:1fr;gap:0}
  .advanced-guide-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .od-board-inline .od-street-divider{height:66px}
}
@media(max-width:390px){
  .bottom-nav .nav-btn{font-size:8.8px}
  .od-board.od-board-inline{gap:5px}
  .od-board-inline .od-street-cards{gap:4px}
  .od-board-inline .od-street-divider{height:50px}
  .od-board-inline .od-street-label{min-width:43px;height:21px;padding:0 7px;font-size:9.5px}
}
@media(max-width:350px){
  .od-board.od-board-inline{gap:3px}
  .od-board-inline .od-street-cards{gap:3px}
  .od-board-inline .od-street-divider{margin-left:1px;margin-right:1px}
}

/* Shared HoldemScouter foundations. Default is the approved bright learning site. */
[hidden]{display:none!important}
:root,body[data-theme="default"]{--bg:#f2f3f7;--app:#f2f3f7;--panel:#ffffff;--panel-alt:#e9edff;--text:#1b1c23;--muted:#626674;--line:#dfe2eb;--line-strong:#9198aa;--accent:#2649d8;--accent-text:#ffffff;--danger:#b42332;--ok:#16734b;--warn:#855b12;--red:#b42332;--blue:#2649d8;--shadow:none;--radius:14px;--radius-sm:8px;--radius-md:10px;--radius-lg:14px;--radius-xl:16px;color-scheme:light}
body[data-theme="dark"]{--bg:#12161f;--app:#12161f;--panel:#1b2230;--panel-alt:#26334c;--text:#eef1f8;--muted:#b3bed1;--line:#354158;--line-strong:#7889a7;--accent:#a5b8ff;--accent-text:#12204b;--danger:#ffb1b9;--ok:#8de1b7;--warn:#f0cf90;--red:#ffb1b9;--blue:#a5b8ff;--shadow:none;color-scheme:dark}
body[data-theme="light"]{--bg:#f2f3f7;--app:#f2f3f7;--panel:#ffffff;--panel-alt:#e9edff;--text:#1b1c23;--muted:#626674;--line:#dfe2eb;--line-strong:#9198aa;--accent:#2649d8;--accent-text:#ffffff;--danger:#b42332;--ok:#16734b;--warn:#855b12;--red:#b42332;--blue:#2649d8;--shadow:none;--radius:14px;--radius-sm:8px;--radius-md:10px;--radius-lg:14px;--radius-xl:16px;color-scheme:light}
html{background:#f2f3f7;scroll-behavior:auto}body{font-family:"Noto Sans KR","Segoe UI","Malgun Gothic",Arial,sans-serif;line-height:1.6;background:var(--bg);color:var(--text)}
*{box-sizing:border-box}a{color:inherit;text-underline-offset:4px}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}input,select,textarea{max-width:100%;min-width:0;min-height:46px;width:100%;padding:10px 12px;border:1px solid var(--line-strong);border-radius:9px;background:var(--bg);color:var(--text);font-variant-numeric:tabular-nums}input::placeholder,textarea::placeholder{color:var(--muted);opacity:1}select option{color:var(--text)!important;background:var(--panel)!important}input[aria-invalid="true"]{border-color:var(--danger)}:focus-visible{outline:2px solid var(--accent);outline-offset:4px}button{color:var(--text)}button:disabled{opacity:.55;cursor:not-allowed}
.site-shell{width:min(1120px,calc(100% - 48px));margin:0 auto;padding:0 0 36px;border:0;border-radius:0;background:var(--bg);box-shadow:none}.site-header{padding:24px 0;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;gap:20px}.brand-mark{width:46px;height:46px;border-radius:10px;font-size:18px;background:var(--accent);color:var(--accent-text)}.brand-copy b{font-size:18px;letter-spacing:-.03em}.brand-copy span{font-size:11px;letter-spacing:.03em}.language-switch{border-radius:8px;background:var(--panel);padding:3px}.language-switch button{height:34px;min-width:42px;border-radius:5px}.page-main{padding:28px 0 0}.hero{padding:20px 0 26px;border:0;border-radius:0;background:transparent}.hero h1{font-size:clamp(27px,4vw,40px);line-height:1.3;letter-spacing:-.04em;margin:8px 0 14px}.hero p{font-size:15px;line-height:1.8;color:var(--muted)}.eyebrow{color:var(--accent);font-size:11px;letter-spacing:.06em}.content-grid{gap:18px;margin-top:20px}.content-card{padding:25px;border-radius:14px;background:var(--panel)}.content-card h2{font-size:21px;line-height:1.45;letter-spacing:-.025em}.content-card h3{font-size:17px}.content-card p,.content-card li{font-size:14px;line-height:1.85;overflow-wrap:anywhere}.content-card a:not(.related-link):not(.button):not(.btn){color:var(--accent)}.meta-chip{border-radius:6px;font-size:11px}.notice,.notice.warning,.notice.safe,body[data-theme="dark"] .notice.warning,body[data-theme="dark"] .notice.safe{border-color:var(--line-strong);background:var(--panel-alt);color:var(--text);border-radius:10px}.notice.warning{border-left:3px solid var(--warn)}.definition-list div,.feature,.contact-card,.check-item,.stack-band,.stat-card,.formula-box,.related-link{border-radius:10px}.related-link{background:var(--panel);min-height:100px}.related-link b{font-size:15px}.related-link span{font-size:13px}.formula-box b,.stat-card b{color:var(--accent);font-variant-numeric:tabular-nums}.strategy-head{background:var(--panel-alt)}.strategy-head>*{color:var(--text)}.site-footer{padding-top:25px;margin-top:36px;border-top:1px solid var(--line);color:var(--muted)}.site-footer p{font-size:12px;line-height:1.8}.site-footer a{font-size:12px}.article-toolbar{padding:0;margin:0 0 12px}.back-to-advanced{border-radius:7px;min-height:40px;font-size:12px}.article-series{font-size:10px}
.tool-layout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(250px,1fr);gap:20px;align-items:start}.tool-form,.tool-result{min-width:0;padding:25px;border:1px solid var(--line);border-radius:14px;background:var(--panel)}.tool-layout h2{margin:0 0 20px;font-size:19px}.field{display:block;margin:0 0 18px;min-width:0}.field>label,.field .label{display:block;margin:0 0 7px;color:var(--muted);font-size:13px}.tool-form label{font-size:13px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:46px;height:auto;padding:10px 17px;border:1px solid var(--accent);border-radius:9px;background:var(--accent);color:var(--accent-text);font-weight:700;text-decoration:none;cursor:pointer}.btn.secondary,.btn.ghost{background:var(--panel);color:var(--text);border-color:var(--line-strong)}.tool-result output,.tool-result #result{display:block;font-size:clamp(28px,4vw,43px);color:var(--accent);font-weight:750;line-height:1.4;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}.tool-hint{color:var(--muted);font-size:13px;line-height:1.75}.tool-error{color:var(--danger);font-size:13px;min-height:1.6em}.tool-player-list{display:grid;gap:14px}.tool-player{min-width:0;border:1px solid var(--line);border-radius:10px;padding:15px;margin:0 0 12px}.tool-player legend{padding:0 6px;font-size:13px;color:var(--muted)}.tool-player .field:last-child{margin-bottom:0}.result-row{padding:13px 0;border-bottom:1px solid var(--line);font-size:15px;display:flex;justify-content:space-between;gap:16px}.result-row strong{color:var(--accent)}.tool-result .result-row{font-size:15px;line-height:1.6}.tool-result table{width:100%;border-collapse:collapse;font-size:14px}.tool-result th,.tool-result td{padding:12px 6px;text-align:left;border-bottom:1px solid var(--line)}.tool-form input[type="checkbox"]{width:auto;min-height:auto}.tool-nav{display:flex;flex-wrap:wrap;gap:12px;margin:18px 0}.tool-nav a{color:var(--muted);font-size:13px}
[data-lang="en"]{display:none}html[data-active-lang="en"] [data-lang="ko"]{display:none}html[data-active-lang="en"] [data-lang="en"]{display:revert}
@media(max-width:700px){.site-shell{width:calc(100% - 32px)}.site-header{padding:18px 0}.brand-copy span{max-width:150px}.page-main{padding-top:18px}.hero{padding:14px 0 20px}.tool-layout{grid-template-columns:1fr;gap:14px}.tool-form,.tool-result,.content-card{padding:20px}.content-grid{gap:14px}.hero p{font-size:14px}.tool-result output,.tool-result #result{font-size:36px}.feature-grid,.contact-grid{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Shared education masthead for articles, calculators and service pages. */
.site-shell{width:100%;padding-bottom:36px}
.site-shell>.site-header{padding:20px max(24px,calc((100% - 1200px)/2));background:#161719;color:#fff;border:0;margin:0;min-height:88px}
.site-shell .brand-mark{background:transparent;color:#fff;font-size:29px;letter-spacing:-2px;width:auto;height:auto;margin-right:4px}
.site-shell .brand-copy b{font-size:21px}.site-shell .brand-copy span{color:#c1c6d2;font-size:10px}
.site-shell .language-switch{background:#292c34}.site-shell .language-switch button{color:#c3c9d6}.site-shell .language-switch button.active,.site-shell .language-switch button[aria-pressed="true"]{background:#405bd3;color:#fff}
.page-navigation{display:flex;align-items:center;gap:32px;overflow-x:auto;white-space:nowrap;padding:0 max(24px,calc((100% - 1200px)/2));background:#161719;color:#fff;border-top:1px solid #303138;scrollbar-width:thin;min-height:55px}
.page-navigation a{display:inline-flex;align-items:center;min-height:55px;text-decoration:none;font-size:13px;font-weight:650}.page-navigation a:first-child{padding:0 25px;background:#2649d8;color:#fff}.page-navigation a:hover{color:#bccaff}
.site-shell>.page-main,.site-shell>.site-footer{width:min(1200px,calc(100% - 80px));margin-inline:auto}
.site-shell>.page-main{padding-top:32px}.site-shell>.site-footer{margin-top:36px}.content-card{border:1px solid var(--line);box-shadow:0 3px 12px #15214803}
@media(max-width:700px){.site-shell>.site-header{padding:18px;min-height:75px;gap:12px}.site-shell .brand-copy b{font-size:17px}.site-shell .brand-copy span{font-size:9px}.page-navigation{padding-inline:18px;gap:24px;min-height:48px}.page-navigation a{font-size:11px;min-height:48px}.page-navigation a:first-child{padding-inline:18px}.site-shell>.page-main,.site-shell>.site-footer{width:calc(100% - 36px)}.site-shell>.page-main{padding-top:20px}}

/* Workspace-only layout. Existing event hooks and local state stay in index. */
body{padding:0;background:var(--bg)}
.app{display:block!important;border:0!important;border-radius:0!important;overflow:visible!important}
.app .topbar{width:auto;border:0}
.app .legal-footer{border:0;border-top:1px solid var(--line);border-radius:0;background:transparent;box-shadow:none}
.home-intro h1{word-break:keep-all}
.bottom-nav::before{display:none!important}
.bottom-nav .nav-btn.active{box-shadow:none}
@media(min-width:1024px){.bottom-nav{position:fixed!important}.app main{width:100%;grid-column:auto;grid-row:auto}.app .topbar{width:auto}}
.skip-link{position:fixed;top:10px;left:10px;z-index:500;padding:10px 16px;background:var(--accent);color:var(--accent-text);transform:translateY(-160%)}.skip-link:focus{transform:none}
.workspace-logo{display:flex;align-items:center;gap:12px;padding:18px 20px;text-decoration:none}.workspace-logo .hs-mark{font-size:30px;font-weight:800;line-height:1;color:var(--accent);letter-spacing:-.06em}.workspace-logo strong{font-size:16px}.workspace-logo small{display:block;color:var(--muted);font-size:10px;letter-spacing:.06em}.workspace-caption{display:none}.app{width:100%;max-width:none;margin:0;min-height:100dvh;background:var(--bg);box-shadow:none;padding:0 0 90px}.topbar{position:relative;top:auto;padding:0 20px;background:transparent}.brand{padding:9px 0 16px;background:transparent;border:0;border-bottom:1px solid var(--line);border-radius:0;box-shadow:none}.top-thought-kicker{font-size:10px}.top-thought-title{font-size:13px}.top-thought-home{border-radius:6px;background:var(--panel-alt);color:var(--accent)}.lang-toggle{border-radius:7px;height:36px}.lang-toggle span{border-radius:4px;height:28px}.top-thought-result{border-radius:8px}.top-thought-result-text{font-size:12px}main{padding:26px 20px 20px;max-width:1320px;margin:0 auto}.section{min-width:0}.hero{padding:4px 0 22px;margin:0 0 8px}.hero h2{font-size:28px;font-weight:750;line-height:1.3;letter-spacing:-.04em}.hero p{font-size:14px;line-height:1.7}.card,.form-card,.store-card,.bb-bundle{border-radius:14px;margin-bottom:20px}.card,.form-card{padding:22px}.card-title{font-size:18px;font-weight:750;line-height:1.4}.hint{font-size:13px;line-height:1.7;border-radius:9px}.label{font-size:12px;line-height:1.4}.field-row{gap:14px}.btn{font-size:13px;font-weight:700;border-radius:9px}.btn.danger{background:transparent;border-color:var(--danger);color:var(--danger)}.choice{border-radius:8px;min-height:44px}.study-tool{min-height:96px;border-radius:10px;background:var(--panel-alt);padding:18px}.study-tool b{font-size:16px}.study-tool span{font-size:13px;line-height:1.6}.study-tool .go{color:var(--accent)}.bottom-nav{grid-template-columns:repeat(8,minmax(0,1fr));width:100%;max-width:none;left:0;bottom:0;margin:0;transform:none;border:0;border-top:1px solid var(--line);border-radius:0;padding:6px 4px calc(6px + var(--safe-bottom));background:var(--panel);box-shadow:none;gap:2px}.bottom-nav .nav-btn{min-height:52px;font-size:10px;border-radius:7px;color:var(--muted)}.bottom-nav .nav-btn.active{background:var(--panel-alt);color:var(--accent)}.bottom-nav .ico{width:19px;height:19px}.bottom-nav .nav-home-icon{font-size:20px;font-weight:700}.legal-footer{margin-top:36px;padding:22px 0;border-top:1px solid var(--line);font-size:12px;line-height:1.8;color:var(--muted)}.legal-footer-nav{gap:14px}.legal-footer a{font-size:12px;color:var(--muted)}
.home-intro{margin:0 0 25px}.home-intro h1{font-size:clamp(28px,3.5vw,39px);line-height:1.3;letter-spacing:-.045em;margin:6px 0 12px;font-weight:750}.home-intro p{font-size:14px;color:var(--muted);line-height:1.8;max-width:640px;margin:0}.home-kicker{font-size:11px;color:var(--accent);letter-spacing:.06em;margin:0 0 12px}.home-quick{padding:24px;border:1px solid var(--line);border-radius:14px;background:var(--panel);margin-bottom:30px}.home-quick-head{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:18px}.home-quick-head h2{font-size:18px;margin:0}.home-quick-head button{background:transparent;border:0;border-bottom:1px solid var(--line-strong);padding:5px 0;color:var(--accent);font-size:12px}.home-quick-grid{display:grid;grid-template-columns:1fr 1fr 1.05fr;gap:18px;align-items:center}.home-quick-grid .field{margin:0}.home-quick-grid label{display:block;margin-bottom:7px;color:var(--muted);font-size:12px}.home-bb-output{padding:16px 20px;background:var(--panel-alt);border-radius:10px;min-width:0}.home-bb-output span{display:block;font-size:11px;color:var(--muted)}.home-bb-output output{display:block;font-size:32px;font-weight:750;color:var(--accent);font-variant-numeric:tabular-nums;overflow-wrap:anywhere;line-height:1.4}.home-quick-note{margin:16px 0 0;color:var(--muted);font-size:12px}.home-error{min-height:20px;font-size:12px;color:var(--muted);margin:8px 0 0}.home-columns{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(240px,1fr);gap:28px}.home-section-title{font-size:18px;line-height:1.5;margin:0 0 15px}.home-tool-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.home-tool-link{display:block;position:relative;padding:22px;border:1px solid var(--line);border-radius:12px;background:var(--panel);text-decoration:none;transition:border-color .15s}.home-tool-link:hover{border-color:var(--accent)}.home-tool-link .tool-symbol{display:block;font-size:24px;color:var(--accent);margin-bottom:18px;font-weight:600}.home-tool-link strong{display:block;font-size:17px;margin-bottom:6px}.home-tool-link p{font-size:13px;color:var(--muted);line-height:1.7;margin:0 0 15px}.home-tool-link small{color:var(--accent);font-size:12px}.home-reading{padding:0 0 14px;border-bottom:1px solid var(--line);margin-bottom:16px}.home-reading a{display:block;font-size:15px;font-weight:650;text-decoration:none;margin:0 0 6px}.home-reading p{font-size:12px;line-height:1.75;color:var(--muted);margin:0}.home-method{margin-top:30px;padding:22px 0;border-top:1px solid var(--line)}.home-method h2{font-size:18px;margin:0 0 12px}.home-method p{max-width:780px;margin:0 0 12px;color:var(--muted);font-size:13px;line-height:1.85}.home-method a{color:var(--accent)}.home-example{font-variant-numeric:tabular-nums;color:var(--text)!important}.home-utility-links{display:flex;gap:18px;flex-wrap:wrap;font-size:12px}.home-utility-links a{color:var(--accent)}
.modal{z-index:120}.modal-sheet{border-radius:14px;background:var(--panel);border-color:var(--line);color:var(--text)}.modal-title{font-size:18px}.modal-close{border-radius:7px;color:var(--text);background:var(--panel-alt);min-height:40px;min-width:40px}.modal-sheet input{background:var(--bg)}.bundle-strip,body[data-theme="dark"] .bundle-strip{background:var(--panel-alt);color:var(--accent)}.bundle-strip span,.bundle-strip small,body[data-theme="dark"] .bundle-strip span,body[data-theme="dark"] .bundle-strip small{color:var(--muted)}#chipCalcModal .quick-bb-card{border-radius:12px}#chipCalcModal .quick-bb-result output{color:var(--accent)}.icm-shell,.icm-panel,.icm-count-panel{background:var(--panel);border-color:var(--line);color:var(--text);border-radius:14px}.icm-intro{padding:0 0 22px}.icm-intro h2{font-size:28px}.icm-intro p{font-size:14px;color:var(--muted)}.icm-input{background:var(--bg);color:var(--text)}.icm-count-btn,.icm-small-btn{background:var(--panel-alt);color:var(--text);border-color:var(--line-strong)}.icm-count-btn.active{background:var(--accent);color:var(--accent-text)}.icm-result-value,.icm-result-meta{color:var(--text)}.icm-totals,.icm-panel-label,.icm-column-head,.icm-place{color:var(--muted)}.icm-result-bar{background:var(--accent)}.icm-empty-result{color:var(--muted);background:var(--panel-alt)}
@media(min-width:1024px){.workspace-logo{position:fixed;top:30px;left:25px;z-index:60;display:block;width:190px;padding:0}.workspace-logo .hs-mark{display:block;font-size:40px;margin:0 0 15px}.workspace-logo strong{font-size:19px}.workspace-logo small{font-size:10px;margin-top:6px}.workspace-caption{display:block;position:fixed;bottom:24px;left:20px;width:200px;z-index:55;border-radius:12px;padding:18px;background:var(--panel);color:var(--muted);font-size:11px;line-height:1.8}.workspace-caption b{display:block;color:var(--accent);font-size:11px;margin-bottom:6px}.app{padding:0 0 30px 240px}.app::before{content:"";position:fixed;left:0;top:0;bottom:0;width:240px;background:var(--panel);border-right:1px solid var(--line);z-index:45}.topbar{padding:24px 38px 0;max-width:1320px;margin:0 auto}.brand{min-height:48px}.top-thought-copy{max-width:620px}main{padding:32px 38px}.bottom-nav{left:16px;top:195px;bottom:auto;width:208px;display:flex;flex-direction:column;gap:7px;padding:0;border:0;background:transparent;z-index:55}.bottom-nav .nav-btn{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:14px;min-height:46px;padding:11px 14px;font-size:13px;text-align:left}.bottom-nav .nav-btn.active{background:var(--panel-alt)}.modal-sheet{max-width:900px!important;left:calc(50% + 120px);transform:translate(-50%,-50%);top:50%;bottom:auto!important;width:calc(100vw - 310px);max-height:88dvh!important;overflow:auto}.section.active{display:block!important}.icm-layout{grid-template-columns:1.12fr 1fr}.advanced-guide-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.home-quick{padding:20px}.home-quick-grid{grid-template-columns:1fr 1fr;gap:14px}.home-bb-output{grid-column:1/-1;padding:15px 18px}.home-bb-output output{font-size:36px}.home-columns{grid-template-columns:1fr;gap:30px}.home-tool-link{padding:18px}.home-tool-link strong{font-size:15px}.home-tool-link .tool-symbol{margin-bottom:12px}.home-tool-link p{font-size:12px}.home-quick-head{align-items:baseline}.home-quick-head h2{font-size:17px}.workspace-logo{padding-bottom:14px}.top-thought-kicker{font-size:8px}.top-thought-title{font-size:12px}.card,.form-card{padding:18px}.study-menu-grid{grid-template-columns:1fr}.home-intro h1{font-size:29px}.topbar{padding:0 16px}main{padding:24px 16px 20px}.modal-sheet{width:calc(100% - 20px);max-width:none}.icm-intro h2{font-size:25px}}

/* Approved education layout replaces the desktop sidebar; functional hooks stay intact. */
body{margin:0}.app{padding:0 0 35px!important;min-height:0}.app::before{display:none!important}
main#main{max-width:none;width:100%;padding:0;margin:0}.app .section:not(#home){width:min(1200px,calc(100% - 80px));margin:30px auto 0}.app .section.active{display:block!important}
.app .topbar{max-width:1200px;width:calc(100% - 80px);padding:20px 0 0;margin:auto}.app:has(#home.active) .topbar{display:none}
.legal-footer{width:min(1200px,calc(100% - 80px));margin:40px auto 0!important;padding:28px 0!important}
body .bottom-nav{position:static!important;display:flex;flex-direction:row;align-items:center;justify-content:center;gap:15px;left:auto;top:auto;bottom:auto;transform:none;width:auto;max-width:none;margin:0;padding:0;border:0;background:transparent;z-index:20;flex:1}
body .bottom-nav .nav-btn{min-height:40px;min-width:0;padding:7px 0;gap:0;display:inline-flex;flex-direction:row;font-size:12px;white-space:nowrap;color:#bfc5d3;background:transparent;border:0;border-radius:0;font-weight:600}
body .bottom-nav .nav-btn.active{color:#fff;background:transparent;box-shadow:inset 0 -2px #8199ff}
body .bottom-nav .ico{display:none}
body .modal-sheet{left:50%!important;top:50%;bottom:auto!important;transform:translate(-50%,-50%);width:calc(100vw - 48px);max-width:900px!important;max-height:88dvh!important}
@media(max-width:900px){body .bottom-nav{gap:11px}body .bottom-nav .nav-btn{font-size:11px}}
@media(max-width:700px){.app{padding-bottom:90px!important}.app .section:not(#home){width:calc(100% - 36px);margin-top:24px}.app .topbar,.legal-footer{width:calc(100% - 36px)}body .bottom-nav{position:fixed!important;top:auto;bottom:0;left:0;display:grid;grid-template-columns:repeat(8,minmax(0,1fr));width:100%;padding:6px 4px calc(6px + env(safe-area-inset-bottom));background:var(--panel);border-top:1px solid var(--line);gap:2px;z-index:80}body .bottom-nav .nav-btn{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:10px;min-height:52px;padding:5px 0;color:var(--muted)}body .bottom-nav .nav-btn.active{color:var(--accent);background:var(--panel-alt);box-shadow:none;border-radius:8px}body .bottom-nav .ico{display:block;width:19px;height:19px}body .modal-sheet{width:calc(100% - 20px);max-height:90dvh!important}.legal-footer{margin-top:28px!important}}

/* Approved duotone navigation icons (Phosphor Icons, MIT). */
body .bottom-nav .ico { color:#606b7e; --icon-fill:#e4e9f2; }
body .bottom-nav .nav-btn.active .ico { color:#2649d8; --icon-fill:#c1d0ff; }
body .bottom-nav .ico svg { display:block; width:100%; height:100%; fill:currentColor; stroke:none; stroke-width:0; }
body[data-theme="dark"] .bottom-nav .ico { color:#bac5d8; --icon-fill:#37445e; }
body[data-theme="dark"] .bottom-nav .nav-btn.active .ico { color:#c0d0ff; --icon-fill:#506fac; }
@media(max-width:700px) { body .bottom-nav .ico { width:24px; height:24px; } }

/* Approved education-v2 design, scoped to home and shared header. */
.education-ui{--blue:#2649d8;--blue-hover:#1938b4;--ink:#1b1c23;--muted:#626674;--line:#e1e3eb;--background:#f2f3f7;--light-blue:#e9edff;--white:#fff;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Apple SD Gothic Neo","Malgun Gothic",Arial,sans-serif;color:var(--ink);background:var(--background);font-synthesis:none}
.education-ui *{box-sizing:border-box}
.education-ui button,.education-ui input{font:inherit}
.education-ui button,.education-ui input,.education-ui a{-webkit-tap-highlight-color:transparent}
.education-ui button,.education-ui a{touch-action:manipulation}
.education-ui button{cursor:pointer;color:inherit}
.education-ui a{color:inherit;text-decoration:none}
.education-ui h1,.education-ui h2,.education-ui h3,.education-ui p{margin:0}
.education-ui h1,.education-ui h2,.education-ui h3{word-break:keep-all}
.education-ui img{display:block;max-width:100%;height:auto}
.education-ui button,.education-ui input{min-width:0}
.education-ui [hidden]{display:none!important}
.education-ui button:focus-visible,.education-ui a:focus-visible,.education-ui input:focus-visible{outline:3px solid #5371ff;outline-offset:4px}
.education-ui a,.education-ui button{transition:background-color .18s,border-color .18s,box-shadow .18s,color .18s}
.education-ui .container{width:min(1200px,calc(100% - 80px));margin-inline:auto}
.education-ui .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.education-ui .skip-link{position:fixed;top:8px;left:8px;transform:translateY(-160%);padding:10px 18px;background:var(--blue);color:white;z-index:100}
.education-ui .skip-link:focus{transform:none}
.education-ui .site-header{background:#161719;color:#fff;position:relative;z-index:10}
.education-ui .header-main{height:70px;display:flex;align-items:center;justify-content:space-between;gap:30px}
.education-ui .brand{display:flex;align-items:center;gap:10px;white-space:nowrap}
.education-ui .brand-mark{font-size:29px;font-weight:900;letter-spacing:-2px;line-height:1}
.education-ui .brand strong{font-size:21px;font-weight:750;letter-spacing:-.9px}
.education-ui .header-tools{display:flex;align-items:center;gap:24px;font-size:12px}
.education-ui .header-tools button{display:flex;align-items:center;gap:10px;background:none;border:0;color:#eee;font-size:12px;min-height:40px;padding:6px}
.education-ui .search-icon{display:inline-block;position:relative;width:15px;height:15px;border:1.7px solid currentColor;border-radius:50%;flex:none}
.education-ui .search-icon::after{content:"";position:absolute;width:7px;height:1.7px;background:currentColor;transform:rotate(47deg);right:-5px;bottom:-3px;border-radius:1px}
.education-ui .roadmap-link{border:1px solid #4b4d57;border-radius:6px;padding:7px 12px;font-weight:600}
.education-ui .roadmap-link span{margin-left:10px;color:#98aaff}
.education-ui .desktop-utility{color:#bfc0c8}
.education-ui .nav-wrap{border-top:1px solid #28292d}
.education-ui .nav-inner{display:flex;align-items:stretch;height:55px}
.education-ui .category-toggle{display:flex;align-items:center;justify-content:center;gap:12px;width:154px;flex:none;border:0;background:var(--blue);color:#fff;font-size:15px;font-weight:700}
.education-ui .category-toggle>span:first-child{font-size:17px;font-weight:400}
.education-ui .category-toggle:hover,.education-ui .category-toggle[aria-expanded="true"]{background:#3558ea}
.education-ui .nav-inner nav{display:flex;align-items:center;flex:1;justify-content:space-between;padding-left:32px;gap:22px;min-width:0}
.education-ui .nav-inner nav a{font-size:13px;font-weight:650;white-space:nowrap;position:relative;display:flex;align-items:center;min-height:44px}
.education-ui .nav-inner nav a+a::before{content:"";height:12px;width:1px;background:#47484e;position:absolute;left:-19px}
.education-ui .nav-inner nav a:hover{color:#a6b6ff}
.education-ui .category-panel{position:absolute;left:0;right:0;top:100%;background:#fff;color:var(--ink);border-bottom:1px solid var(--line);box-shadow:0 14px 25px #17224415}
.education-ui .category-content{display:grid;grid-template-columns:1fr 1.2fr 1fr;gap:30px;padding-block:25px}
.education-ui .category-content b{display:block;font-size:15px;margin-bottom:10px}
.education-ui .category-content a{font-size:12px;color:var(--muted);display:inline-flex;min-height:36px;align-items:center}
.education-ui .category-content a:hover{color:var(--blue)}
.education-ui .category-content>.category-practice{grid-column:1/-1;background:#f1f4ff;padding:12px 18px;color:var(--blue);font-size:13px;justify-content:space-between;border-radius:7px}
.education-ui .hero{background:linear-gradient(110deg,#eff2ff 0%,#e8edff 58%,#e3eaff 100%);overflow:hidden}
.education-ui .hero-inner{position:relative}
.education-ui .hero-slide{min-height:386px;display:grid;grid-template-columns:1.05fr 1fr;gap:20px;align-items:center;position:relative}
.education-ui .hero-copy{padding:35px 0 30px;position:relative;z-index:2}
.education-ui .hero-label{display:block;font-size:11px;font-weight:750;color:var(--blue);letter-spacing:1.1px;margin-bottom:18px}
.education-ui .hero h1,.education-ui .hero h2{font-size:45px;line-height:1.32;letter-spacing:-2.1px;font-weight:800}
.education-ui .hero-copy>p{margin-top:19px;color:#5e6581;font-size:15px;line-height:1.85;word-break:keep-all}
.education-ui .hero-cta{display:inline-flex;align-items:center;gap:25px;background:var(--blue);color:#fff;padding:12px 19px;font-size:12px;font-weight:650;min-height:44px;border-radius:6px;margin-top:25px}
.education-ui .hero-cta:hover{background:var(--blue-hover)}
.education-ui .hero-art{width:115%;height:360px;max-width:none;position:relative;right:5px;object-fit:contain;align-self:center}
.education-ui .hero-controls{display:flex;align-items:center;gap:22px;padding:0 0 23px;position:relative;z-index:2}
.education-ui .slide-counter{font-size:12px;font-variant-numeric:tabular-nums;color:#737b96;white-space:nowrap}
.education-ui .slide-counter b{color:var(--ink);margin-right:5px}
.education-ui .slide-lines{display:flex;align-items:center;flex:1;height:24px}
.education-ui .slide-lines button{flex:1;height:24px;border:0;background:transparent;padding:0;position:relative}
.education-ui .slide-lines button::after{content:"";height:1px;background:#b8bfd8;position:absolute;left:0;right:0;top:12px}
.education-ui .slide-lines button.active::after{background:var(--blue);height:3px;top:11px}
.education-ui .slide-arrows{display:flex;gap:8px}
.education-ui .slide-arrows button{display:grid;place-items:center;width:30px;height:30px;padding:0;border:1px solid #c7cde0;background:#ffffff7a;border-radius:50%;font-size:24px;font-family:Arial;line-height:1;color:#4d587e}
.education-ui .slide-arrows button:hover{background:var(--blue);border-color:var(--blue);color:#fff}
.education-ui .slide-arrows #toggle-slideshow{font-size:13px}
.education-ui .hero-math,.education-ui .hero-stack{background:#ffffffb5;border:1px solid #fff;border-radius:20px;padding:32px;box-shadow:0 15px 40px #344c9320;margin:20px 12px 20px 28px}
.education-ui .hero-math>span,.education-ui .hero-stack>span{font-size:15px;font-weight:650;color:#4b5984}
.education-ui .hero-math>div{display:flex;align-items:center;justify-content:center;gap:25px;margin:27px 0}
.education-ui .fraction{display:flex;flex-direction:column;align-items:stretch;text-align:center;font-size:26px;font-weight:600}
.education-ui .fraction span:last-child{border-top:2px solid #8b9aca;padding-top:8px;font-size:20px}
.education-ui .equals{color:#8995b9;font-size:25px}
.education-ui .hero-math strong{font-size:65px;color:var(--blue);letter-spacing:-3px;line-height:1.2}
.education-ui .hero-math strong small{font-size:30px;letter-spacing:0}
.education-ui .hero-math p,.education-ui .hero-stack p{font-size:12px;color:#687595}
.education-ui .hero-stack>div{display:flex;gap:20px;align-items:center;justify-content:space-between;margin:24px 0}
.education-ui .hero-stack article{display:flex;flex-direction:column;min-width:0}
.education-ui .hero-stack article small{font-size:11px;color:#64709b}
.education-ui .hero-stack article b{font-size:35px;color:var(--blue);font-variant-numeric:tabular-nums;line-height:1.5;letter-spacing:-1px}
.education-ui .hero-stack article em{font-size:17px;font-style:normal}
.education-ui .hero-stack article>span{font-size:12px;color:#7c83a0}
.education-ui .hero-stack>div>span{color:#8f9bb9;font-size:22px}
.education-ui .catalog{padding-top:27px}
.education-ui .catalog-search{display:flex;justify-content:space-between;gap:20px;align-items:center;padding-bottom:22px;border-bottom:1px solid #dfe2eb}
.education-ui .filters{display:flex;align-items:center;gap:8px}
.education-ui .filters button{font-size:12px;padding:9px 18px;background:#fff;border:1px solid #dfe2eb;border-radius:22px;color:#747987;min-height:38px;white-space:nowrap}
.education-ui .filters button.selected{background:#24262e;border-color:#24262e;color:#fff;font-weight:650}
.education-ui .filters button:hover:not(.selected){border-color:#a2afd9;color:var(--blue)}
.education-ui .search-field{position:relative;width:300px}
.education-ui .search-field input{width:100%;height:40px;border:1px solid #dce0ea;background:#fff;border-radius:7px;padding:10px 37px 10px 15px;font-size:12px;color:var(--ink)}
.education-ui .search-field input::placeholder{color:#7c8191}
.education-ui .search-field .search-icon{position:absolute;right:17px;top:12px;color:#626a80;width:13px;height:13px;pointer-events:none}
.education-ui .course-shelf{padding-top:33px;margin-bottom:52px}
.education-ui .shelf-heading{display:flex;align-items:center;justify-content:space-between;gap:25px;margin-bottom:22px}
.education-ui .shelf-heading h2{font-size:23px;font-weight:750;line-height:1.45;letter-spacing:-1px}
.education-ui .shelf-heading p{font-size:12px;color:var(--muted);margin-top:5px}
.education-ui .shelf-heading>a{font-size:12px;color:#656b7b;white-space:nowrap;display:flex;align-items:center;gap:15px;min-height:40px;text-underline-offset:4px}
.education-ui .shelf-heading>a:hover{text-decoration:underline;color:var(--blue)}
.education-ui .title-marker{color:var(--blue);margin-left:6px}
.education-ui .course-grid{display:grid;gap:20px}
.education-ui .featured-grid,.education-ui .tournament-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.education-ui .math-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.education-ui .course{display:flex;flex-direction:column;min-width:0;overflow:hidden;background:white;border:1px solid transparent;box-shadow:0 4px 15px #17234205;border-radius:17px;padding:0;text-align:left}
.education-ui .course:hover{box-shadow:0 8px 28px #17234215;border-color:#9eafe9}
.education-ui .course-cover{display:block;width:100%;height:204px;position:relative;overflow:hidden}
.education-ui .cover-format{display:inline-block;font-size:10px;line-height:1.4;padding:6px 9px;background:#ffffffeb;border-radius:16px;position:absolute;top:17px;left:18px;color:#555e78;z-index:2;font-weight:600}
.education-ui .cover-copy{display:flex;flex-direction:column;position:absolute;top:58px;left:21px;z-index:2;gap:9px}
.education-ui .cover-copy>small{font-size:8px;letter-spacing:.8px;font-weight:650}
.education-ui .cover-copy>strong{font-size:22px;line-height:1.35;letter-spacing:-1px;font-weight:800;word-break:keep-all}
.education-ui .cover-foundation{background:linear-gradient(120deg,#f2f4fa,#e6edfc);color:#273357}
.education-ui .cover-foundation .cover-copy{max-width:52%}
.education-ui .cover-foundation>picture>img{position:absolute;right:-24%;bottom:-16%;width:90%;max-width:none}
.education-ui .cover-position{background:#e3ebf1;color:#253e4f}
.education-ui .position-table{position:absolute;right:-16px;bottom:34px;width:169px;height:91px;border:7px solid #c9d9e6;background:#edf3f8;border-radius:50%;transform:rotate(-24deg);box-shadow:5px 12px 0 #b7cbda42}
.education-ui .position-table>span{position:absolute;inset:0;display:grid;place-items:center;font-size:8px;color:#6a8498;letter-spacing:1.5px}
.education-ui .position-table i{position:absolute;display:grid;place-items:center;width:32px;height:32px;background:#fff;border:1px solid #d8e1ec;border-radius:50%;font-size:7px;font-style:normal;font-weight:700;z-index:1}
.education-ui .position-table i:first-child{left:-16px;top:12px}
.education-ui .position-table i:nth-child(2){left:51px;top:-21px}
.education-ui .position-table i:nth-child(3){right:-14px;top:20px}
.education-ui .position-table i:nth-child(4){left:50px;bottom:-20px}
.education-ui .position-table i.active-seat{color:white;background:#325bcc;border-color:#325bcc;box-shadow:0 4px 10px #23469236}
.education-ui .cover-starting{background:linear-gradient(125deg,#f5ede4,#f0dfc9);color:#574232}
.education-ui .hand-pair{display:flex;gap:3px;position:absolute;right:11px;bottom:8px;transform:rotate(-9deg)}
.education-ui .hand-pair i{display:flex;flex-direction:column;width:66px;height:106px;background:white;border:1px solid #d7d4d2;border-radius:8px;padding:10px 12px;font-style:normal;color:#253859;line-height:1;font-size:30px;font-weight:600;box-shadow:0 8px 12px #6b4b2719}
.education-ui .hand-pair i:last-child{transform:rotate(19deg) translate(-10px,-5px)}
.education-ui .hand-pair i small{font-size:29px;margin-top:17px}
.education-ui .course-body{display:flex;flex-direction:column;flex:1;padding:21px 20px 18px;width:100%}
.education-ui .course-meta{display:flex;align-items:center;gap:7px;font-size:10px;font-weight:600;color:var(--blue);margin-bottom:9px}
.education-ui .course-meta i{display:inline-block;height:9px;width:1px;background:#b8c3e9}
.education-ui .course-body>strong{font-size:16px;line-height:1.5;font-weight:750;letter-spacing:-.65px;word-break:keep-all}
.education-ui .course-description{font-size:12px;color:var(--muted);margin-top:7px;line-height:1.8;word-break:keep-all}
.education-ui .course-footer{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:auto;padding-top:23px;font-size:10px;color:#787e8d}
.education-ui .course-footer b{font-weight:600;color:#444c64}
.education-ui .small-cover{height:165px}
.education-ui .small-cover .cover-copy{top:19px;left:18px;gap:7px}
.education-ui .small-cover .cover-copy strong{font-size:19px;letter-spacing:-.7px}
.education-ui .small-cover .cover-copy small{font-size:7px}
.education-ui .math-grid .course-body{padding:18px 17px 16px}
.education-ui .math-grid .course-body>strong{font-size:14px}
.education-ui .math-grid .course-description{font-size:11px}
.education-ui .cover-equity{color:#fff;background:#2c44a7}
.education-ui .equity-circle{position:absolute;right:17px;bottom:13px;width:72px;height:72px;display:grid;place-items:center;border:9px solid #778ce0;border-top-color:#d7e0ff;border-right-color:#d7e0ff;border-radius:50%;transform:rotate(40deg)}
.education-ui .equity-circle b{font-size:22px;transform:rotate(-40deg);font-weight:600;line-height:1}
.education-ui .equity-circle small{font-size:10px;margin-left:2px}
.education-ui .cover-pot{background:#e1e9e4;color:#345646}
.education-ui .pot-number{position:absolute;bottom:13px;right:20px;font-size:55px;line-height:1;font-weight:700;letter-spacing:-3px;color:#51816b;transform:rotate(-8deg)}
.education-ui .pot-number small{font-size:25px;letter-spacing:0}
.education-ui .tiny-formula{position:absolute;bottom:16px;left:18px;font-size:9px;color:#567764}
.education-ui .cover-outs{background:#eee4f2;color:#6a477a}
.education-ui .outs-cards{display:flex;position:absolute;right:10px;bottom:10px}
.education-ui .outs-cards i{font-style:normal;display:grid;place-items:center;border:1px solid #ddcfe4;background:#fff;width:42px;height:56px;border-radius:5px;font-size:21px;color:#69417c;box-shadow:0 4px 6px #53396b0d}
.education-ui .outs-cards i:first-child{transform:rotate(-9deg) translate(7px,2px)}
.education-ui .outs-cards i:nth-child(2){z-index:1;transform:translateY(-5px)}
.education-ui .outs-cards i:last-child{transform:rotate(11deg) translate(-7px,2px);background:#d5bce0;color:#fff}
.education-ui .cover-spr{background:#f5e9ce;color:#65532b}
.education-ui .spr-bars{position:absolute;bottom:17px;right:20px;display:flex;align-items:flex-end;gap:7px}
.education-ui .spr-bars i{width:27px;height:42px;background:#d8bb76;border-radius:5px 5px 0 0;box-shadow:5px -3px 0 #ead39e}
.education-ui .spr-bars i:nth-child(2){height:66px;background:#b79348}
.education-ui .spr-bars b{font-size:9px;position:absolute;bottom:72px;right:8px;letter-spacing:2px}
.education-ui .compact-cover{height:175px}
.education-ui .compact-cover .cover-copy{top:24px}
.education-ui .compact-cover .cover-copy strong{font-size:22px}
.education-ui .cover-short{background:#dce9f6;color:#2e557d}
.education-ui .bb-visual{position:absolute;right:20px;bottom:16px;font-size:66px;line-height:1;letter-spacing:-4px;font-weight:750;color:#749fcd;transform:rotate(-8deg)}
.education-ui .bb-visual small{font-size:23px;letter-spacing:0}
.education-ui .cover-push{background:#e4e7f9;color:#444e85}
.education-ui .range-grid{position:absolute;right:16px;bottom:20px;display:grid;grid-template-columns:repeat(3,25px);gap:3px;transform:rotate(-9deg)}
.education-ui .range-grid i{display:grid;place-items:center;height:25px;background:#6c7dc3;color:#fff;font-style:normal;font-size:7px;border-radius:3px}
.education-ui .range-grid i:nth-child(2n){background:#9aa7dc}
.education-ui .cover-icm{background:#e9e4df;color:#564b43}
.education-ui .icm-visual{position:absolute;right:16px;bottom:18px;font-size:46px;line-height:1;font-weight:800;color:#998778;letter-spacing:-2px}
.education-ui .icm-visual small{display:block;font-size:6px;letter-spacing:1px;margin-top:6px;text-align:center}
.education-ui .empty-state{padding:55px 24px;margin:32px 0;background:#fff;border:1px dashed #b6bfd7;border-radius:12px;text-align:center;color:var(--muted);font-size:14px}
.education-ui .roadmap-section{background:#e8ecfc;border-block:1px solid #dde3f6;margin-top:15px;padding:44px 0}
.education-ui .roadmap-inner{display:grid;grid-template-columns:1.1fr 1fr;gap:70px;align-items:center}
.education-ui .section-eyebrow{display:block;font-size:10px;color:var(--blue);letter-spacing:1px;font-weight:700;margin-bottom:13px}
.education-ui .roadmap-inner h2,.education-ui .practice h2{font-size:27px;line-height:1.5;font-weight:750;letter-spacing:-1.1px}
.education-ui .roadmap-inner p{font-size:12px;color:#707892;margin-top:14px}
.education-ui .roadmap-steps{list-style:none;padding:0;margin:0}
.education-ui .roadmap-steps li+li{border-top:1px solid #cdd6f3}
.education-ui .roadmap-steps a{display:flex;align-items:center;gap:18px;min-height:74px}
.education-ui .roadmap-steps a>b{display:grid;place-items:center;background:#fff;width:38px;height:38px;border-radius:9px;font-size:12px;color:var(--blue)}
.education-ui .roadmap-steps a>span{font-weight:650;font-size:14px}
.education-ui .roadmap-steps small{display:block;color:#757e9a;font-size:11px;font-weight:400;margin-top:3px}
.education-ui .roadmap-steps i{font-style:normal;margin-left:auto;color:var(--blue)}
.education-ui .roadmap-steps a:hover>span{color:var(--blue)}
.education-ui .practice{display:grid;grid-template-columns:.95fr 1.1fr;gap:85px;align-items:center;padding-block:60px}
.education-ui .practice-copy p{font-size:13px;color:var(--muted);margin-top:16px;line-height:1.9}
.education-ui .practice-copy>a{display:inline-flex;align-items:center;gap:24px;font-size:12px;font-weight:600;margin-top:24px;color:var(--blue)}
.education-ui .practice-form{background:#fff;padding:28px;border:1px solid var(--line);border-radius:15px}
.education-ui .practice-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:23px}
.education-ui .practice-heading h3{font-size:18px;letter-spacing:-.6px}
.education-ui .practice-heading button{font-size:10px;padding:9px 12px;background:#f5f6fa;border:1px solid var(--line);border-radius:6px;min-height:38px}
.education-ui .input-row{display:grid;grid-template-columns:1fr 16px 1fr;gap:12px;align-items:end}
.education-ui .input-row label{display:block;font-size:11px;color:var(--muted);margin-bottom:7px}
.education-ui .input-row input{width:100%;height:47px;background:#fff;border:1px solid #cfd4e0;border-radius:6px;padding:10px 12px;font-size:16px;color:var(--ink);font-variant-numeric:tabular-nums}
.education-ui .input-row input::placeholder{color:#7e8596}
.education-ui .input-row>span{line-height:47px;text-align:center;color:#a0a7b8}
.education-ui .practice-result{display:flex;align-items:center;justify-content:space-between;gap:15px;background:#edf1ff;border-radius:8px;margin-top:22px;padding:18px;min-height:80px}
.education-ui .practice-result>span{font-size:12px;font-weight:650}
.education-ui .practice-result small{display:block;font-size:10px;font-weight:400;color:#7a84a3;margin-top:2px}
.education-ui .practice-result output{font-size:23px;font-weight:750;color:var(--blue);overflow-wrap:anywhere;text-align:right;line-height:1.4;font-variant-numeric:tabular-nums}
.education-ui .practice-hint{font-size:10px;color:var(--muted);margin-top:12px;min-height:19px}
.education-ui .input-row [aria-invalid="true"]{border-color:#bc3d2e}
.education-ui .practice-hint.error{color:#b53626}
.education-ui .design-review{padding-block:36px 60px;border-top:1px solid var(--line)}
.education-ui .button{display:inline-flex;align-items:center;justify-content:center;gap:18px;padding:13px 20px;border:0;border-radius:6px;min-height:46px;font-size:13px;font-weight:600}
.education-ui .primary{background:var(--blue);color:#fff}
.education-ui .primary:hover{background:var(--blue-hover)}
@media(min-width:1450px){.education-ui .hero-slide{min-height:400px}
.education-ui .hero h1,.education-ui .hero h2{font-size:49px}
.education-ui .hero-art{width:112%}
}
@media(max-width:1150px){.education-ui .container{width:calc(100% - 64px)}
.education-ui .nav-inner nav{padding-left:25px;gap:17px}
.education-ui .nav-inner nav a{font-size:12px}
.education-ui .nav-inner nav a+a::before{display:none}
.education-ui .hero h1,.education-ui .hero h2{font-size:39px}
.education-ui .hero-copy>p{font-size:13px}
.education-ui .hero-art{width:113%}
.education-ui .course-grid{gap:16px}
.education-ui .cover-copy>strong{font-size:20px}
.education-ui .cover-copy{left:18px}
.education-ui .position-table{width:140px;height:78px;right:-22px;bottom:27px}
.education-ui .position-table i{height:28px;width:28px}
.education-ui .hand-pair{right:-2px;bottom:9px}
.education-ui .hand-pair i{width:57px;height:94px;font-size:27px}
.education-ui .course-body{padding:18px 16px 17px}
.education-ui .course-body>strong{font-size:15px}
.education-ui .course-description{font-size:11px}
.education-ui .small-cover .cover-copy strong{font-size:17px}
.education-ui .small-cover .cover-copy{left:15px}
.education-ui .equity-circle{width:62px;height:62px;border-width:8px;right:12px;bottom:10px}
.education-ui .equity-circle b{font-size:19px}
.education-ui .pot-number{font-size:47px;right:13px}
.education-ui .outs-cards i{width:34px;height:46px;font-size:18px}
.education-ui .spr-bars{right:15px;bottom:12px}
.education-ui .compact-cover .cover-copy strong{font-size:20px}
.education-ui .range-grid{right:10px;grid-template-columns:repeat(3,22px)}
.education-ui .range-grid i{height:22px}
.education-ui .bb-visual{font-size:57px;right:12px}
.education-ui .icm-visual{font-size:39px;right:12px}
.education-ui .practice{gap:45px}
.education-ui .roadmap-inner{gap:45px}
}
@media(max-width:900px){.education-ui .container{width:calc(100% - 40px)}
.education-ui .header-main{height:66px}
.education-ui .brand strong{font-size:19px}
.education-ui .brand-mark{font-size:28px}
.education-ui .header-tools{gap:18px}
.education-ui .desktop-utility{display:none}
.education-ui .category-toggle{width:125px;font-size:13px;gap:8px}
.education-ui .nav-inner nav{overflow-x:auto;justify-content:flex-start;gap:26px;padding-left:23px;scrollbar-width:none}
.education-ui .nav-inner nav::-webkit-scrollbar{display:none}
.education-ui .hero-slide{min-height:340px;grid-template-columns:1.1fr .9fr;gap:10px}
.education-ui .hero h1,.education-ui .hero h2{font-size:33px;letter-spacing:-1.5px}
.education-ui .hero-label{font-size:9px;margin-bottom:15px}
.education-ui .hero-copy>p{font-size:12px}
.education-ui .hero-art{width:130%;height:310px;right:20px}
.education-ui .hero-controls{padding-bottom:18px;gap:16px}
.education-ui .hero-cta{margin-top:22px;font-size:11px;padding:11px 15px}
.education-ui .hero-math,.education-ui .hero-stack{margin:20px 0 20px 10px;padding:23px}
.education-ui .hero-math>span,.education-ui .hero-stack>span{font-size:12px}
.education-ui .hero-math>div{gap:12px}
.education-ui .fraction{font-size:22px}
.education-ui .fraction span:last-child{font-size:14px}
.education-ui .hero-math strong{font-size:45px}
.education-ui .hero-math strong small{font-size:21px}
.education-ui .hero-stack>div{gap:10px}
.education-ui .hero-stack article b{font-size:26px}
.education-ui .hero-stack article small{font-size:8px}
.education-ui .hero-stack article em{font-size:11px}
.education-ui .shelf-heading h2{font-size:21px}
.education-ui .shelf-heading p{font-size:11px}
.education-ui .shelf-heading>a{font-size:11px;gap:9px}
.education-ui .course-grid{gap:15px}
.education-ui .featured-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.education-ui .course-cover{height:175px}
.education-ui .cover-copy>strong{font-size:17px}
.education-ui .cover-copy>small{font-size:6px}
.education-ui .cover-copy{top:52px;left:15px}
.education-ui .cover-format{top:13px;left:13px;font-size:8px;padding:5px 7px}
.education-ui .cover-foundation>picture>img{right:-31%;bottom:-14%;width:111%}
.education-ui .position-table{right:-18px;bottom:12px;width:105px;height:60px;border-width:5px}
.education-ui .position-table i{width:22px;height:22px;font-size:6px}
.education-ui .position-table i:first-child{left:-12px;top:10px}
.education-ui .position-table i:nth-child(2){left:32px;top:-15px}
.education-ui .position-table i:nth-child(3){right:-13px;top:16px}
.education-ui .position-table i:nth-child(4){left:35px;bottom:-15px}
.education-ui .position-table>span{font-size:6px;letter-spacing:.5px}
.education-ui .hand-pair{right:-2px;bottom:4px}
.education-ui .hand-pair i{width:40px;height:68px;font-size:20px;border-radius:6px;padding:7px}
.education-ui .hand-pair i small{font-size:20px;margin-top:13px}
.education-ui .course-body{padding:16px 14px}
.education-ui .course-body>strong{font-size:14px}
.education-ui .course-description{font-size:10px}
.education-ui .course-meta{font-size:9px}
.education-ui .course-footer{font-size:8px;gap:4px;padding-top:18px}
.education-ui .math-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.education-ui .small-cover{height:180px}
.education-ui .small-cover .cover-copy{left:20px;top:20px}
.education-ui .small-cover .cover-copy strong{font-size:22px}
.education-ui .small-cover .cover-copy small{font-size:8px}
.education-ui .equity-circle{width:80px;height:80px;right:25px;bottom:15px}
.education-ui .equity-circle b{font-size:25px}
.education-ui .pot-number{font-size:59px;right:27px;bottom:15px}
.education-ui .tiny-formula{left:20px;font-size:11px}
.education-ui .outs-cards{right:25px}
.education-ui .outs-cards i{width:44px;height:60px;font-size:26px}
.education-ui .spr-bars{right:30px}
.education-ui .spr-bars i{width:35px;height:50px}
.education-ui .spr-bars i:nth-child(2){height:80px}
.education-ui .spr-bars b{bottom:88px}
.education-ui .math-grid .course-body>strong{font-size:15px}
.education-ui .compact-cover{height:160px}
.education-ui .compact-cover .cover-copy{top:18px}
.education-ui .compact-cover .cover-copy strong{font-size:16px}
.education-ui .bb-visual{font-size:45px;bottom:10px}
.education-ui .bb-visual small{font-size:17px}
.education-ui .range-grid{grid-template-columns:repeat(3,18px);right:8px;bottom:9px}
.education-ui .range-grid i{height:18px;font-size:6px}
.education-ui .icm-visual{font-size:33px;bottom:12px}
.education-ui .icm-visual small{font-size:5px}
.education-ui .roadmap-inner{grid-template-columns:1fr 1fr;gap:35px}
.education-ui .roadmap-inner h2,.education-ui .practice h2{font-size:23px}
.education-ui .roadmap-inner p{font-size:11px}
.education-ui .practice{gap:30px;grid-template-columns:.8fr 1.1fr}
.education-ui .practice-form{padding:21px}
.education-ui .practice-heading h3{font-size:16px}
.education-ui .practice-heading button{font-size:9px;padding:8px}
.education-ui .category-content{gap:16px}
.education-ui .category-content a{font-size:10px}
}
@media(max-width:620px){.education-ui .container{width:calc(100% - 36px)}
.education-ui .header-main{height:62px;gap:12px}
.education-ui .brand{gap:8px}
.education-ui .brand-mark{font-size:27px}
.education-ui .brand strong{font-size:18px;letter-spacing:-.8px}
.education-ui .header-tools{gap:16px}
.education-ui .header-tools button{min-height:40px;width:36px;justify-content:center}
.education-ui .header-tools button>span:last-child{display:none}
.education-ui .roadmap-link{font-size:9px;padding:6px 8px}
.education-ui .roadmap-link span{display:none}
.education-ui .nav-inner{height:48px;width:100%;margin:0}
.education-ui .category-toggle{width:101px;gap:7px;font-size:12px}
.education-ui .category-toggle>span:first-child{font-size:14px}
.education-ui .nav-inner nav{gap:23px;padding-left:20px;padding-right:20px}
.education-ui .nav-inner nav a{font-size:11px;min-height:44px}
.education-ui .category-content{grid-template-columns:1fr;gap:14px;padding-block:20px}
.education-ui .category-content>div{padding-bottom:12px;border-bottom:1px solid var(--line)}
.education-ui .category-content b{font-size:13px;margin-bottom:3px}
.education-ui .category-content a{font-size:11px;min-height:32px}
.education-ui .category-content>.category-practice{font-size:11px;padding:10px 13px}
.education-ui .hero-slide{grid-template-columns:1fr;min-height:555px;gap:0;align-items:start}
.education-ui .hero-copy{padding:30px 4px 0}
.education-ui .hero-label{font-size:8px;letter-spacing:1px;margin-bottom:13px}
.education-ui .hero h1,.education-ui .hero h2{font-size:32px;line-height:1.35;letter-spacing:-1.7px}
.education-ui .hero-copy>p{margin-top:15px;font-size:12px;line-height:1.8}
.education-ui .hero-cta{font-size:10px;min-height:40px;padding:10px 14px;margin-top:18px;gap:18px}
.education-ui .hero-art{position:relative;right:auto;width:100%;max-width:360px;height:247px;object-fit:contain;justify-self:center;align-self:end;margin-top:-10px;margin-bottom:4px}
.education-ui .hero-controls{padding-bottom:19px;gap:13px}
.education-ui .slide-counter{font-size:10px}
.education-ui .slide-arrows button{width:30px;height:30px}
.education-ui .hero-math,.education-ui .hero-stack{width:calc(100% - 8px);margin:22px auto 22px;padding:22px;border-radius:14px}
.education-ui .hero-math>span,.education-ui .hero-stack>span{font-size:12px}
.education-ui .hero-math>div{gap:20px;margin:22px 0}
.education-ui .fraction{font-size:23px}
.education-ui .fraction span:last-child{font-size:16px}
.education-ui .hero-math strong{font-size:53px}
.education-ui .hero-math p,.education-ui .hero-stack p{font-size:10px}
.education-ui .hero-stack article b{font-size:31px}
.education-ui .hero-stack article small{font-size:10px}
.education-ui .hero-stack article em{font-size:13px}
.education-ui .catalog{padding-top:22px}
.education-ui .catalog-search{flex-direction:column;align-items:stretch;gap:14px;padding-bottom:22px}
.education-ui .filters{gap:7px;overflow-x:auto;scrollbar-width:none}
.education-ui .filters button{font-size:10px;min-height:36px;padding:8px 15px}
#catalog-search .filters{flex-wrap:wrap}
#catalog-search .filters button{padding-inline:12px}
.education-ui .search-field{width:100%}
.education-ui .search-field input{height:43px;font-size:11px}
.education-ui .search-field .search-icon{top:13px}
.education-ui .course-shelf{padding-top:28px;margin-bottom:27px}
.education-ui .shelf-heading{align-items:flex-start;gap:12px;margin-bottom:19px}
.education-ui .shelf-heading h2{font-size:20px;line-height:1.45;letter-spacing:-.8px}
.education-ui .shelf-heading p{font-size:10px;line-height:1.7;margin-top:6px}
.education-ui .shelf-heading>a{font-size:10px;min-height:29px;gap:5px}
.education-ui .title-marker{display:none}
.education-ui .featured-grid,.education-ui .tournament-grid{display:flex;overflow-x:auto;gap:15px;scroll-snap-type:x mandatory;scrollbar-width:thin;scrollbar-color:#c8cfe1 transparent;padding:0 1px 13px}
.education-ui .featured-grid>.course,.education-ui .tournament-grid>.course{flex:0 0 84%;scroll-snap-align:start}
.education-ui .course{border-radius:14px;box-shadow:0 3px 12px #17234206}
.education-ui .course-cover{height:185px}
.education-ui .cover-format{font-size:9px;padding:6px 9px;top:14px;left:16px}
.education-ui .cover-copy{top:56px;left:18px}
.education-ui .cover-copy>small{font-size:7px}
.education-ui .cover-copy>strong{font-size:23px;letter-spacing:-1px}
.education-ui .cover-foundation>picture>img{width:95%;right:-24%;bottom:-15%}
.education-ui .position-table{width:140px;height:77px;right:-13px;bottom:28px;border-width:6px}
.education-ui .position-table i{width:27px;height:27px;font-size:7px}
.education-ui .position-table i:nth-child(2){left:45px;top:-18px}
.education-ui .position-table i:nth-child(4){left:45px;bottom:-17px}
.education-ui .position-table>span{font-size:7px}
.education-ui .hand-pair{right:11px;bottom:11px}
.education-ui .hand-pair i{width:54px;height:89px;font-size:26px;padding:9px}
.education-ui .hand-pair i small{font-size:25px;margin-top:17px}
.education-ui .course-body{padding:20px 18px 17px}
.education-ui .course-body>strong{font-size:15px;line-height:1.6}
.education-ui .course-meta{font-size:10px;margin-bottom:8px}
.education-ui .course-description{font-size:11px}
.education-ui .course-footer{font-size:9px;padding-top:20px}
.education-ui .math-grid{gap:13px 12px}
.education-ui .small-cover{height:158px}
.education-ui .small-cover .cover-copy{left:13px;top:16px;gap:6px}
.education-ui .small-cover .cover-copy>small{font-size:5.5px;letter-spacing:.5px}
.education-ui .small-cover .cover-copy>strong{font-size:16px;line-height:1.35;letter-spacing:-.65px}
.education-ui .equity-circle{width:57px;height:57px;border-width:7px;right:13px;bottom:10px}
.education-ui .equity-circle b{font-size:18px}
.education-ui .equity-circle small{font-size:8px}
.education-ui .pot-number{font-size:39px;right:13px;bottom:12px;letter-spacing:-2px}
.education-ui .pot-number small{font-size:19px}
.education-ui .tiny-formula{font-size:8px;bottom:13px;left:13px}
.education-ui .outs-cards{right:9px;bottom:10px}
.education-ui .outs-cards i{width:29px;height:42px;font-size:17px;border-radius:4px}
.education-ui .spr-bars{right:15px;bottom:12px;gap:6px}
.education-ui .spr-bars i{width:22px;height:32px}
.education-ui .spr-bars i:nth-child(2){height:48px}
.education-ui .spr-bars b{bottom:53px;font-size:7px}
.education-ui .math-grid .course-body{padding:14px 12px}
.education-ui .math-grid .course-body>strong{font-size:12px;letter-spacing:-.55px}
.education-ui .math-grid .course-description{font-size:9px;line-height:1.8}
.education-ui .math-grid .course-meta{font-size:8px;gap:5px}
.education-ui .math-grid .course-footer{font-size:8px;gap:4px;padding-top:16px}
.education-ui .compact-cover{height:172px}
.education-ui .compact-cover .cover-copy{top:22px;left:18px}
.education-ui .compact-cover .cover-copy strong{font-size:22px}
.education-ui .bb-visual{font-size:57px;right:16px;bottom:14px}
.education-ui .bb-visual small{font-size:21px}
.education-ui .range-grid{grid-template-columns:repeat(3,23px);right:15px;bottom:15px}
.education-ui .range-grid i{height:23px;font-size:7px}
.education-ui .icm-visual{font-size:43px;right:15px;bottom:18px}
.education-ui .icm-visual small{font-size:5px}
.education-ui .roadmap-section{margin-top:18px;padding:33px 0}
.education-ui .roadmap-inner{grid-template-columns:1fr;gap:20px}
.education-ui .section-eyebrow{font-size:9px;margin-bottom:10px}
.education-ui .roadmap-inner h2{font-size:23px;letter-spacing:-1px}
.education-ui .roadmap-inner p{font-size:11px;line-height:1.9;margin-top:13px}
.education-ui .roadmap-steps a{min-height:76px}
.education-ui .roadmap-steps a>span{font-size:14px}
.education-ui .roadmap-steps small{font-size:10px}
.education-ui .practice{grid-template-columns:1fr;gap:25px;padding-block:38px}
.education-ui .practice h2{font-size:27px}
.education-ui .practice-copy p{font-size:12px;margin-top:13px}
.education-ui .practice-copy>a{font-size:11px;margin-top:18px}
.education-ui .practice-form{padding:22px 19px}
.education-ui .practice-heading{gap:10px;margin-bottom:20px}
.education-ui .practice-heading h3{font-size:16px}
.education-ui .practice-heading button{font-size:9px;min-height:38px;padding:8px}
.education-ui .input-row{gap:8px;grid-template-columns:1fr 14px 1fr}
.education-ui .input-row input{font-size:15px}
.education-ui .input-row label{font-size:10px}
.education-ui .practice-result{padding:15px;margin-top:18px;min-height:75px}
.education-ui .practice-result output{font-size:22px}
.education-ui .practice-result>span{font-size:11px}
.education-ui .practice-result small{font-size:9px}
.education-ui .practice-hint{font-size:9px}
.education-ui .design-review{padding-block:30px 36px}
}
@media(prefers-reduced-motion:reduce){.education-ui *,.education-ui *::before,.education-ui *::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}
}

/* Integration resets and inherited preferences. */
#home.section{width:100%;max-width:none;margin:0;padding:0}
.education-ui{font-family:inherit;font-size:15px;line-height:1.6;--muted:#626674}
.education-header{position:relative;z-index:90;background:#161719}.education-ui .site-header{padding:0;margin:0;border:0;border-radius:0;gap:0;display:block}
.education-ui .brand{padding:0;margin:0;min-height:0;border:0;background:none;box-shadow:none;flex:none;gap:10px;border-radius:0}
.education-ui .brand-mark{width:auto;height:auto;display:inline;background:none;color:#fff;border-radius:0}
.education-ui .brand strong{font-size:21px}.education-ui .brand strong>span{font-size:inherit;color:inherit;font-weight:inherit;letter-spacing:inherit}
.education-ui .header-main{gap:30px}.education-ui .header-tools{gap:18px}.education-ui #langToggle{border:1px solid #454a59;border-radius:6px;padding:3px;gap:3px;height:34px;min-height:34px;background:#242831;width:auto}.education-ui #langToggle span{display:flex;align-items:center;justify-content:center;min-width:25px;height:25px;padding:2px 4px;color:#c1c8db}.education-ui #langToggle span.active{background:#405bd3;color:#fff;border-radius:3px}
.education-ui .hero{padding:0;margin:0;border:0;border-radius:0}.education-ui .hero h1,.education-ui .hero h2{margin:0;color:inherit}.education-ui .hero h1>span,.education-ui .hero h2>span{font-size:inherit;font-weight:inherit;color:inherit}
.education-ui .course{height:auto;min-height:0;text-decoration:none;line-height:1.6;color:var(--ink);border:1px solid var(--line)}.education-ui .course-cover{color:#1b1c23}.education-ui .course-meta>span{display:inline}.education-ui .course-cover strong span{font:inherit;color:inherit}.education-ui .course-body>strong span{font:inherit;color:inherit}
.education-ui .course{background:var(--white)}
.education-ui .empty-state{background:var(--white)}
body[data-theme="dark"] .education-ui .hero-math>span,body[data-theme="dark"] .education-ui .hero-stack>span,body[data-theme="dark"] .education-ui .hero-math p,body[data-theme="dark"] .education-ui .hero-stack p,body[data-theme="dark"] .education-ui .hero-stack article>small,body[data-theme="dark"] .education-ui .hero-stack article>span{color:var(--muted)}
.education-ui .cover-equity{color:#fff}
.education-ui .course-footer,.education-ui .course-footer b,.education-ui .shelf-heading>a{color:var(--muted)}
body[data-theme="dark"] .education-ui .roadmap-steps a>b{background:var(--panel-alt)}
body[data-theme="dark"] .education-ui .category-toggle:hover,body[data-theme="dark"] .education-ui .category-toggle[aria-expanded="true"]{background:var(--blue-hover)}
body .education-header .bottom-nav{align-self:center}
body[data-theme="dark"] .education-ui #homeLoadExample{background:var(--panel-alt);color:var(--ink);border-color:var(--line-strong)}
.education-ui .search-field input,.education-ui .input-row input{background:var(--white);color:var(--ink);border-color:#929aaf}.education-ui input::placeholder{color:#697083}.education-ui .hero-label{color:var(--blue)}
.education-ui .practice-copy>a{color:var(--blue)}.education-ui .practice-result output{line-height:1.4;overflow-wrap:anywhere}.education-ui .practice-hint{min-height:1.6em}.education-ui .practice-form input[aria-invalid="true"]{border-color:var(--danger)}
.education-ui .education-tools{padding-bottom:25px}.education-ui .home-tool-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.education-ui .home-tool-link{background:var(--white);border:1px solid var(--line);min-width:0}.education-ui .home-tool-link strong{line-height:1.5}.education-ui .home-method{padding-bottom:10px}
.education-ui .course-cover img{pointer-events:none}.education-ui .hero-art{max-width:none}.education-ui .filters button{white-space:nowrap}
.education-ui .shelf-heading h2{line-height:1.45}.education-ui .roadmap-steps li{list-style:none}.education-ui .home-section-title{font-size:25px;letter-spacing:-1px;margin-bottom:22px}
body[data-theme="dark"] .education-ui{--ink:#eef1f8;--muted:#b3bed1;--line:#354158;--background:#12161f;--white:#1b2230;--light-blue:#26334c;--blue:#a5b8ff;--blue-hover:#c0cdff}
body[data-theme="dark"] .education-ui .hero{background:linear-gradient(110deg,#1d2944,#233455)}
body[data-theme="dark"] .education-ui .hero-copy>p{color:#c2ccea}
body[data-theme="dark"] .education-ui .hero-cta,body[data-theme="dark"] .education-ui .category-toggle{color:#12204b}
body[data-theme="dark"] .education-ui .hero-math,body[data-theme="dark"] .education-ui .hero-stack{background:#1b2230;border-color:#43536f}
body[data-theme="dark"] .education-ui .roadmap-section{background:#1b2230}
body[data-theme="dark"] .education-ui .roadmap-steps a,body[data-theme="dark"] .education-ui .practice-form,body[data-theme="dark"] .education-ui .filters button,body[data-theme="dark"] .education-ui .category-panel{background:var(--white);color:var(--ink)}
body[data-theme="dark"] .education-ui .filters button.selected{background:var(--blue);color:#12204b}
body[data-theme="dark"] .education-ui .practice-result,body[data-theme="dark"] .education-ui .category-practice{background:#26334c}
body[data-theme="dark"] .education-ui input::placeholder{color:#b3bed1}
html[lang="en"] .education-ui .hero h1,html[lang="en"] .education-ui .hero h2{font-size:40px;letter-spacing:-1.5px}
html[lang="en"] .education-ui .cover-copy>strong{font-size:24px;letter-spacing:-.8px}
html[lang="en"] .education-ui .small-cover .cover-copy>strong,html[lang="en"] .education-ui .compact-cover .cover-copy>strong{font-size:21px}
@media(max-width:900px){.education-ui .header-main{gap:16px}.education-ui .brand strong{font-size:17px}.education-ui .header-tools{gap:10px}.education-ui .header-tools #open-search>span:last-child{display:none}.education-ui .education-tools .home-tool-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.education-ui .hero-art{max-width:none}}
@media(max-width:700px){.education-ui .container{width:calc(100% - 36px)}.education-ui .header-main{height:62px}.education-ui .brand strong{font-size:18px}.education-ui .nav-inner{width:100%}.education-ui .nav-inner nav{overflow-x:auto;justify-content:flex-start;scrollbar-width:none}.education-ui .header-tools{margin-left:auto}.education-ui .header-tools #open-search{width:32px}.education-ui .header-tools #langToggle>span:last-child{display:flex}.education-ui .home-section-title{font-size:21px}.education-ui .home-tool-link{padding:18px}.education-ui .home-tool-link strong{font-size:15px}.education-ui .home-method{margin-top:10px}.education-ui .home-method p{font-size:12px}}
@media(max-width:620px){html[lang="en"] .education-ui .hero h1,html[lang="en"] .education-ui .hero h2{font-size:30px;letter-spacing:-1px}html[lang="en"] .education-ui .cover-copy>strong{font-size:21px}html[lang="en"] .education-ui .small-cover .cover-copy>strong{font-size:15px}html[lang="en"] .education-ui .compact-cover .cover-copy>strong{font-size:20px}.education-ui .hero-art{max-width:360px}.education-ui .category-toggle{width:105px}.education-ui .search-field input{font-size:16px}.education-ui .input-row input{font-size:16px}}
/* A2 workbook course cards. Instructional diagrams use scalable native SVG. */
.education-ui .math-grid:has(.workbook-card){grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.education-ui .course.workbook-card{--wb-ink:#173c8a;--wb-blue:#2d59b3;--wb-paper:#fffefa;--wb-fill:#e6effc;--wb-hatch:#7ca2d5;position:relative;padding:16px 16px 12px 22px;border:1px solid #dce2e9;border-radius:10px;background:var(--wb-paper);box-shadow:0 5px 16px #76603b0a;isolation:isolate}
.education-ui .workbook-card::before{content:"";position:absolute;inset:0 auto 0 0;width:6px;background:#d3e6fb;border-right:1px solid #edf5fd;z-index:-1}
.education-ui .workbook-card:hover{border-color:#7f9ed0;box-shadow:0 7px 22px #173c8a12}
.education-ui .workbook-number{position:absolute;top:0;left:6px;display:grid;place-items:center;width:28px;height:26px;border-radius:0 0 8px 0;background:var(--wb-blue);color:#fff;font-size:13px;font-weight:800;line-height:1;font-variant-numeric:tabular-nums}
.education-ui .workbook-meta{display:flex;flex-wrap:wrap;gap:4px;align-items:center;min-height:18px;padding-left:20px;color:var(--wb-blue);font-size:10px;font-weight:700;line-height:1.5}
.education-ui .workbook-title{position:relative;margin:12px 0 0;padding:0 0 8px;min-height:0;font-size:16px;line-height:1.4;font-weight:750;letter-spacing:-.4px;word-break:keep-all;overflow-wrap:anywhere;color:var(--ink)}
.education-ui .workbook-title::after{content:"";position:absolute;bottom:2px;left:0;width:45%;max-width:120px;height:5px;border-top:1px solid var(--wb-blue);border-radius:50%;transform:rotate(-1.5deg)}
.education-ui .workbook-figure{display:block;width:100%;max-width:170px;margin:6px auto 8px;color:var(--wb-ink);aspect-ratio:3/2}
.education-ui .workbook-figure svg{display:block;width:100%;height:100%;overflow:visible;fill:currentColor}
.education-ui .wb-line{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.education-ui .wb-light-line{stroke:#5f83bf;stroke-width:1.8}
.education-ui .wb-dashed{stroke-dasharray:8 7}
.education-ui .wb-paper{fill:var(--wb-paper)}
.education-ui .wb-tint{fill:var(--wb-fill)}
.education-ui .wb-hatch{stroke:var(--wb-hatch);stroke-width:1.4;fill:none}
.education-ui .wb-sage.wb-tint{fill:#e7eee2}
.education-ui .wb-gold.wb-tint{fill:#f7e8c8}
.education-ui .wb-label,.education-ui .wb-number,.education-ui .wb-formula,.education-ui .wb-card-rank,.education-ui .wb-question{font-family:"Segoe Print","Comic Sans MS","Malgun Gothic",sans-serif;font-style:italic;font-weight:500;fill:currentColor}
.education-ui .wb-label{font-size:18px;letter-spacing:-.5px}
.education-ui .wb-small{font-size:15px}
.education-ui .wb-number{font-size:28px;letter-spacing:-1px}
.education-ui .wb-formula{font-size:21px}
.education-ui .wb-card-rank{font-size:25px}
.education-ui .wb-suit{font-family:Georgia,"Times New Roman",serif;font-size:52px;fill:currentColor}
.education-ui .wb-question{font-size:47px}
.education-ui .workbook-description{display:block;margin-top:auto;padding-top:4px;min-height:0;font-size:12px;line-height:1.6;color:var(--muted);word-break:keep-all;overflow-wrap:anywhere}
.education-ui .workbook-footer{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-top:8px;padding-top:8px;border-top:1px dotted #c3d3e9;color:var(--wb-blue);font-size:12px;font-weight:700;line-height:1.5}
.education-ui .workbook-footer>span:last-child{font-size:18px;font-weight:400;line-height:1}
body[data-theme="dark"] .education-ui .workbook-card{--wb-ink:#b4ccff;--wb-blue:#adbefb;--wb-paper:#1c2636;--wb-fill:#30466a;--wb-hatch:#6b91cb;border-color:#3c4c62;box-shadow:none}
body[data-theme="dark"] .education-ui .workbook-card::before{background:#324b6e;border-color:#283a53}
body[data-theme="dark"] .education-ui .workbook-number{background:#365c9e;color:#fff}
body[data-theme="dark"] .education-ui .wb-sage.wb-tint{fill:#314c43}
body[data-theme="dark"] .education-ui .wb-gold.wb-tint{fill:#5e4b2f}
body[data-theme="dark"] .education-ui .wb-light-line{stroke:#a1b9e4}
body[data-theme="dark"] .education-ui .workbook-footer{border-color:#526c90}
@media(max-width:900px){.education-ui .math-grid:has(.workbook-card){gap:12px}.education-ui .course.workbook-card{padding:14px 12px 10px 18px}.education-ui .workbook-title{font-size:15px}.education-ui .workbook-meta{padding-left:22px}.education-ui .workbook-description{font-size:11px}}
@media(max-width:620px){.education-ui .math-grid:has(.workbook-card){grid-template-columns:repeat(2,minmax(0,1fr))}.education-ui .workbook-title{font-size:15px;letter-spacing:-.45px}.education-ui .workbook-meta{font-size:9px;gap:3px}.education-ui .workbook-figure{max-width:150px}}
/* B1 calculator launchers: coordinated duotone tiles and an ICM winners' podium. */
.education-ui .education-tools .home-tool-grid.tool-launchers{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
.education-ui .home-tool-link.tool-launcher{--tool-icon-color:#2450cb;--tool-icon-fill:#a8c1ff;--tool-icon-bg:#e9efff;--tool-icon-paper:#f7faff;display:flex;flex-direction:column;gap:0;padding:28px;border:1px solid var(--line);border-radius:17px;background:var(--white);box-shadow:none;min-width:0}
.education-ui .home-tool-link.tool-launcher:hover{border-color:#93a7de;background:var(--white);box-shadow:0 5px 18px #243d7a0a}
.education-ui .tool-launcher .tool-launcher-heading{display:grid;grid-template-columns:64px minmax(0,1fr);align-items:center;gap:18px;min-width:0}
.education-ui .tool-launcher .tool-launcher-heading>strong{margin:0;font-size:23px;line-height:1.45;font-weight:750;letter-spacing:-.65px;word-break:keep-all;overflow-wrap:anywhere;color:var(--ink)}
.education-ui .tool-launcher .tool-icon{position:relative;display:grid;place-items:center;width:64px;height:64px;flex:none;border-radius:16px;background:var(--tool-icon-bg);color:var(--tool-icon-color)}
.education-ui .tool-icon>svg{display:block;width:45px;height:45px;fill:currentColor;stroke:none}
.education-ui .tool-icon .tool-bb-label{position:absolute;right:-2px;bottom:-2px;display:grid;place-items:center;width:25px;height:25px;border:2px solid currentColor;border-radius:50%;background:var(--tool-icon-paper);color:var(--tool-icon-color);font:750 10px/1 Arial,sans-serif;letter-spacing:-.5px}
.education-ui .home-tool-link.tool-launcher--equity{--tool-icon-color:#13766e;--tool-icon-fill:#bce5dc;--tool-icon-bg:#e6f5f0;--tool-icon-paper:#f8fffc}
.education-ui .home-tool-link.tool-launcher--odds{--tool-icon-color:#6844af;--tool-icon-fill:#d2c3f0;--tool-icon-bg:#f0eafb;--tool-icon-paper:#fbf8ff}
.education-ui .home-tool-link.tool-launcher--icm{--tool-icon-color:#a66b13;--tool-icon-fill:#efcc84;--tool-icon-bg:#fff4df;--tool-icon-paper:#fffaf0}
.education-ui .home-tool-link.tool-launcher>p{margin:23px 0 24px;font-size:15px;line-height:1.85;color:var(--muted);word-break:keep-all;overflow-wrap:anywhere}
.education-ui .tool-launcher-action{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:auto;padding-top:19px;border-top:1px dashed #d3ddef;color:var(--blue);font-size:16px;font-weight:700;line-height:1.5}
.education-ui .tool-launcher-arrow{display:grid;place-items:center;flex:none;width:33px;height:33px;border:1.5px solid currentColor;border-radius:50%;color:var(--blue)}
.education-ui .tool-launcher-arrow>svg{width:21px;height:21px;display:block;fill:currentColor;stroke:none}
body[data-theme="dark"] .education-ui .home-tool-link.tool-launcher{--tool-icon-color:#a9c2ff;--tool-icon-fill:#4564a4;--tool-icon-bg:#27395c;--tool-icon-paper:#20304e}
body[data-theme="dark"] .education-ui .home-tool-link.tool-launcher--equity{--tool-icon-color:#8cd9cb;--tool-icon-fill:#386c62;--tool-icon-bg:#213e3c;--tool-icon-paper:#203936}
body[data-theme="dark"] .education-ui .home-tool-link.tool-launcher--odds{--tool-icon-color:#cfb5ff;--tool-icon-fill:#624785;--tool-icon-bg:#372b4d;--tool-icon-paper:#302640}
body[data-theme="dark"] .education-ui .home-tool-link.tool-launcher--icm{--tool-icon-color:#f1ca7e;--tool-icon-fill:#916d32;--tool-icon-bg:#423622;--tool-icon-paper:#382e20}
body[data-theme="dark"] .education-ui .tool-launcher-action{border-color:#425574}
@media(max-width:900px){.education-ui .education-tools .home-tool-grid.tool-launchers{gap:16px}.education-ui .home-tool-link.tool-launcher{padding:23px}.education-ui .tool-launcher .tool-launcher-heading{grid-template-columns:54px minmax(0,1fr);gap:13px}.education-ui .tool-launcher .tool-icon{width:54px;height:54px;border-radius:14px}.education-ui .tool-icon>svg{width:39px;height:39px}.education-ui .tool-launcher .tool-launcher-heading>strong{font-size:20px}.education-ui .home-tool-link.tool-launcher>p{font-size:13px;margin:21px 0}.education-ui .tool-launcher-action{font-size:14px}}
@media(min-width:521px) and (max-width:620px){.education-ui .home-tool-link.tool-launcher{padding:19px 16px}.education-ui .tool-launcher .tool-launcher-heading{grid-template-columns:44px minmax(0,1fr);gap:11px}.education-ui .tool-launcher .tool-icon{width:44px;height:44px;border-radius:12px}.education-ui .tool-icon>svg{width:33px;height:33px}.education-ui .tool-launcher .tool-launcher-heading>strong{font-size:17px}.education-ui .tool-icon .tool-bb-label{width:21px;height:21px;font-size:9px}.education-ui .home-tool-link.tool-launcher>p{font-size:12px;line-height:1.8}.education-ui .tool-launcher-action{font-size:13px;gap:8px}.education-ui .tool-launcher-arrow{width:28px;height:28px}.education-ui .tool-launcher-arrow>svg{width:18px;height:18px}}
@media(max-width:520px){.education-ui .education-tools .home-tool-grid.tool-launchers{grid-template-columns:minmax(0,1fr);gap:16px}.education-ui .home-tool-link.tool-launcher{padding:23px}.education-ui .tool-launcher .tool-launcher-heading>strong{font-size:21px}.education-ui .home-tool-link.tool-launcher>p{font-size:14px}.education-ui .tool-launcher-action{font-size:15px}}

/* Approved 3D hero scenes; the formula remains selectable and bilingual. */
.education-ui .hero-scene{position:relative;container-type:inline-size;width:100%;max-width:540px;aspect-ratio:3/2;margin:0;justify-self:center;align-self:center}
.education-ui .hero-scene>picture>img{display:block;width:100%;height:100%;object-fit:contain}
.education-ui .hero-equity-card{position:absolute;left:19.5%;top:59%;width:37.7%;height:24%;display:flex;flex-direction:column;justify-content:center;gap:1.1cqw;color:#405c8d;transform:rotate(-2.5deg) skewX(10deg);transform-origin:center;line-height:1.2;text-align:center}
.education-ui .hero-equity-title{display:block;font-size:2.45cqw;font-weight:750;white-space:nowrap;letter-spacing:-.05em}
.education-ui .hero-equity-equation{display:flex;align-items:center;justify-content:center;gap:1.6cqw;font-variant-numeric:tabular-nums;white-space:nowrap}
.education-ui .hero-equity-fraction{display:flex;flex-direction:column;text-align:center;line-height:1.15;font-size:3.7cqw;font-weight:750;color:#202736}
.education-ui .hero-equity-fraction>span:last-child{border-top:.2cqw solid #6d83b1;padding-top:.45cqw;margin-top:.4cqw;font-size:2.8cqw}
.education-ui .hero-equity-equals{font-size:3.4cqw;font-weight:500;color:#5e79a7}
.education-ui .hero-equity-equation>strong{font-size:7.2cqw;font-weight:750;line-height:1;letter-spacing:-.05em;color:#2649d8}
.education-ui .hero-equity-equation small{font-size:3.1cqw;letter-spacing:-.04em}
.education-ui .hero-equity-note{display:block;font-size:2.05cqw;white-space:nowrap;letter-spacing:-.035em;font-weight:500}
html[lang="en"] .education-ui .hero-equity-note{font-size:2cqw;letter-spacing:-.04em}
@media(min-width:621px) and (max-width:900px){.education-ui .hero-scene{width:115%;margin:18px 0}}
@media(min-width:621px) and (max-width:900px){html[lang="en"] .education-ui .hero h1,html[lang="en"] .education-ui .hero h2{font-size:28px;letter-spacing:-1px}}
@media(max-width:620px){.education-ui .hero-scene{width:100%;max-width:390px;margin:8px auto 12px;align-self:end}.education-ui .hero-scene--math{width:calc(100% + 16px);margin-inline:-8px}}

/* Compact introductory cards, retaining their artwork and full learning targets. */
.education-ui .featured-grid{width:75%;gap:14px}
.education-ui .featured-grid>.course{border-radius:11px}
.education-ui .featured-grid .course-cover{height:120px}
.education-ui .featured-grid .cover-format{top:9px;left:12px;padding:4px 7px;font-size:8px}
.education-ui .featured-grid .cover-copy{top:38px;left:12px;gap:5px;max-width:58%}
.education-ui .featured-grid .cover-copy>small{font-size:6px;letter-spacing:.5px}
.education-ui .featured-grid .cover-copy>strong{font-size:18px;line-height:1.3;letter-spacing:-.6px}
.education-ui .featured-grid .position-table{right:6px;bottom:48px;transform:rotate(-24deg) scale(.65);transform-origin:right bottom}
.education-ui .featured-grid .hand-pair{right:9px;bottom:26px;transform:rotate(-9deg) scale(.72);transform-origin:right bottom}
.education-ui .featured-grid .course-body{padding:12px 13px 10px}
.education-ui .featured-grid .course-meta{font-size:9px;gap:5px;margin-bottom:6px}
.education-ui .featured-grid .course-body>strong{font-size:14px;line-height:1.5;letter-spacing:-.5px}
.education-ui .featured-grid .course-description{font-size:11px;line-height:1.6;margin-top:5px}
.education-ui .featured-grid .course-footer{font-size:9px;gap:6px;padding-top:12px}
html[lang="en"] .education-ui .featured-grid .cover-copy{top:34px;gap:4px}
html[lang="en"] .education-ui .featured-grid .cover-copy>strong{font-size:15.5px;line-height:1.2;letter-spacing:-.3px}
@media(min-width:621px) and (max-width:900px){.education-ui .featured-grid .course-cover{height:100px}.education-ui .featured-grid .cover-copy{top:34px}.education-ui .featured-grid .cover-copy>strong{font-size:15px}.education-ui .featured-grid .course-body{padding:10px}.education-ui .featured-grid .course-body>strong{font-size:13px}.education-ui .featured-grid .course-description{font-size:10px}.education-ui .featured-grid .course-footer{font-size:8px;padding-top:9px}html[lang="en"] .education-ui .featured-grid .cover-copy>small{display:none}html[lang="en"] .education-ui .featured-grid .cover-copy>strong{font-size:13px}}
@media(max-width:620px){.education-ui .featured-grid{width:100%;gap:12px}.education-ui .featured-grid>.course{flex-basis:58%}.education-ui .featured-grid .cover-copy>strong{font-size:17px}html[lang="en"] .education-ui .featured-grid .cover-copy>small{display:none}html[lang="en"] .education-ui .featured-grid .cover-copy>strong{font-size:14px}.education-ui .featured-grid .course-body{padding:12px}.education-ui .featured-grid .course-body>strong{font-size:13px}.education-ui .featured-grid .course-footer{font-size:8px}}

/* Tournament cards reduced by roughly 30% in area. */
.education-ui .tournament-grid{width:88%;gap:16px}
.education-ui .tournament-grid>.course{border-radius:13px}
.education-ui .tournament-grid .compact-cover{height:140px}
.education-ui .tournament-grid .cover-copy{top:20px;left:16px;gap:6px;max-width:62%}
.education-ui .tournament-grid .cover-copy>small{font-size:7px;letter-spacing:.6px}
.education-ui .tournament-grid .cover-copy>strong{font-size:20px;line-height:1.25;letter-spacing:-.6px}
.education-ui .tournament-grid .bb-visual{font-size:52px;right:14px;bottom:12px}
.education-ui .tournament-grid .bb-visual small{font-size:18px}
.education-ui .tournament-grid .range-grid{grid-template-columns:repeat(3,21px);right:14px;bottom:14px}
.education-ui .tournament-grid .range-grid i{height:21px;font-size:6px}
.education-ui .tournament-grid .icm-visual{font-size:38px;right:14px;bottom:15px}
.education-ui .tournament-grid .icm-visual small{font-size:5px;letter-spacing:.8px}
.education-ui .tournament-grid .course-body{padding:14px 15px 12px}
.education-ui .tournament-grid .course-meta{font-size:9px;margin-bottom:7px}
.education-ui .tournament-grid .course-body>strong{font-size:14px;line-height:1.5;letter-spacing:-.5px}
.education-ui .tournament-grid .course-description{font-size:11px;line-height:1.6;margin-top:6px}
.education-ui .tournament-grid .course-footer{font-size:9px;padding-top:16px;gap:7px}
html[lang="en"] .education-ui .tournament-grid .cover-copy>strong{font-size:18px;line-height:1.2}
@media(min-width:621px) and (max-width:900px){.education-ui .tournament-grid .compact-cover{height:110px}.education-ui .tournament-grid .cover-copy{top:17px;left:13px;max-width:60%}.education-ui .tournament-grid .cover-copy>strong{font-size:15px}.education-ui .tournament-grid .bb-visual{font-size:41px;right:10px;bottom:9px}.education-ui .tournament-grid .range-grid{transform:rotate(-9deg) scale(.75);transform-origin:right bottom}.education-ui .tournament-grid .icm-visual{font-size:30px;right:10px;bottom:10px}.education-ui .tournament-grid .icm-visual small{font-size:4.5px}.education-ui .tournament-grid .course-body{padding:12px}.education-ui .tournament-grid .course-body>strong{font-size:13px}.education-ui .tournament-grid .course-footer{font-size:8px;padding-top:12px}html[lang="en"] .education-ui .tournament-grid .cover-copy>strong{font-size:14px}}
@media(max-width:620px){.education-ui .tournament-grid{width:100%;gap:13px}.education-ui .tournament-grid>.course{flex-basis:74%}.education-ui .tournament-grid .compact-cover{height:130px}.education-ui .tournament-grid .cover-copy>strong{font-size:18px}html[lang="en"] .education-ui .tournament-grid .cover-copy>strong{font-size:16px}}

/* YouTube library extends the approved education palette. */
.app:has(#youtube.active) .topbar{display:none}
.app #youtube{margin-top:0;padding-top:40px;padding-bottom:24px}
#youtube{--yt-surface:#fff;--yt-soft:#e9edff;--yt-red:#c83f41;--yt-note:#f8f8fc}
#youtube [hidden]{display:none!important}
#youtube .yt-intro{display:flex;align-items:center;justify-content:space-between;gap:32px;padding-bottom:30px}
#youtube .yt-kicker{display:block;color:var(--blue);font-size:11px;font-weight:750;letter-spacing:1.4px;margin-bottom:12px}
#youtube .yt-intro h2{font-size:34px;line-height:1.35;letter-spacing:-1.2px;font-weight:800}
#youtube .yt-intro p{font-size:14px;line-height:1.8;color:var(--muted);margin-top:12px;word-break:keep-all}
#youtube .yt-emblem{width:94px;height:94px;display:grid;place-items:center;background:var(--yt-soft);border-radius:26px;flex-shrink:0;color:var(--blue);transform:rotate(-6deg)}
#youtube .yt-emblem svg{width:52px;height:52px;transform:rotate(6deg)}
#youtube .yt-toolbar{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:18px}
#youtube .yt-filters{display:flex;flex-wrap:wrap;gap:7px}
#youtube .yt-filters button{padding:9px 15px;border:1px solid var(--line);border-radius:7px;background:var(--yt-surface);color:var(--muted);min-height:40px;font-size:12px}
#youtube .yt-filters button[aria-pressed="true"]{background:var(--blue);color:#fff;border-color:var(--blue)}
#youtube .yt-search{display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:7px;background:var(--yt-surface);padding:0 12px;min-width:250px}
#youtube .yt-search svg{width:17px;height:17px;flex-shrink:0;color:var(--muted)}
#youtube .yt-search input{width:100%;height:42px;min-width:0;padding:0;border:0;border-radius:0;box-shadow:none;background:none;color:var(--ink);font-size:12px}
#youtube .yt-search:focus-within{outline:2px solid var(--blue);outline-offset:2px}
#youtube .yt-search input:focus{outline:none;box-shadow:none}
#youtube .yt-summary{display:flex;gap:14px;align-items:center;justify-content:space-between;margin:0 0 18px;min-height:24px;font-size:12px;color:var(--muted)}
#youtube .yt-summary>span:first-child{color:var(--ink);font-weight:650;flex-shrink:0}
#youtube .yt-sync{font-size:11px;text-align:right;line-height:1.6}
#youtube .yt-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:25px 22px}
#youtube .yt-card{min-width:0;overflow:hidden;background:var(--yt-surface);border:1px solid var(--line);border-radius:12px;display:flex;flex-direction:column;transition:border-color .15s,box-shadow .15s}
#youtube .yt-card:hover{border-color:#9baeea;box-shadow:0 6px 22px #20386a0c}
:is(#youtube, #home-youtube) .yt-thumbnail{position:relative;display:block;aspect-ratio:16/9;overflow:hidden;background:var(--yt-soft,var(--light-blue))}
:is(#youtube, #home-youtube) .yt-thumbnail img{width:100%;height:100%;object-fit:cover;display:block}
:is(#youtube, #home-youtube) .yt-thumbnail .yt-play{position:absolute;left:14px;bottom:12px;display:grid;place-items:center;width:32px;height:24px;background:#c72227;border-radius:6px;color:white;font-size:13px}
:is(#youtube, #home-youtube) .yt-thumbnail-fallback{position:absolute;inset:0;display:grid;place-items:center;color:var(--blue);font-size:13px;font-weight:650;padding:30px;text-align:center}
#youtube .yt-card-body{padding:18px 19px 0;display:flex;flex-direction:column;flex:1}
#youtube .yt-card-kicker{display:flex;align-items:center;justify-content:space-between;font-size:10px;font-weight:700;color:var(--blue);margin-bottom:10px;letter-spacing:.2px}
#youtube .yt-card-kicker .yt-source{font-size:10px;color:var(--muted);font-weight:550}
#youtube .yt-card h3{font-size:15px;font-weight:750;line-height:1.55;letter-spacing:-.4px}
#youtube .yt-title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;min-height:46px}
#youtube .yt-channel-name{font-size:11px;color:var(--muted);margin-top:10px}
#youtube .yt-note{font-size:12px;color:var(--muted);line-height:1.75;padding:12px 0 16px;flex:1;word-break:keep-all}
#youtube .yt-card-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px dashed var(--line);padding:13px 0;font-size:11px;color:var(--muted)}
#youtube .yt-card-footer a{color:var(--blue);font-weight:600;min-height:28px;display:inline-flex;align-items:center}
#youtube .yt-empty{grid-column:1/-1;padding:48px 20px;text-align:center;border:1px dashed var(--line);border-radius:10px;background:var(--yt-surface)}
#youtube .yt-empty strong{display:block;font-size:17px;margin-bottom:10px}
#youtube .yt-empty p{font-size:13px;color:var(--muted);line-height:1.8;max-width:460px;margin:auto;word-break:keep-all}
#youtube .yt-footnote{margin-top:26px;padding-top:18px;border-top:1px solid var(--line);font-size:11px;color:var(--muted);line-height:1.8}
#youtube a:focus-visible,#youtube button:focus-visible{outline:2px solid var(--blue);outline-offset:4px}
body[data-theme="dark"] #youtube{--yt-surface:#202736;--yt-soft:#283859;--yt-note:#232d40;--ink:#edf1fa;--muted:#b1bdd0;--line:#3a465d;--blue:#a9c0ff;--background:var(--bg)}
body[data-theme="dark"] #youtube .yt-filters button[aria-pressed="true"]{color:#17213a}
@media(max-width:1000px){#youtube .yt-grid{grid-template-columns:repeat(2,minmax(0,1fr))}#youtube .yt-toolbar{align-items:flex-start;flex-wrap:wrap}#youtube .yt-search{flex:1;max-width:350px}}
@media(max-width:700px){.app #youtube{padding-top:25px}#youtube .yt-intro{padding-bottom:20px;gap:15px}#youtube .yt-intro h2{font-size:27px}#youtube .yt-intro p{font-size:12px;margin-top:9px}#youtube .yt-kicker{font-size:10px;margin-bottom:9px}#youtube .yt-emblem{width:62px;height:62px;border-radius:18px}#youtube .yt-emblem svg{width:37px;height:37px}#youtube .yt-toolbar{gap:12px}#youtube .yt-search{flex-basis:100%;max-width:none;min-width:0}#youtube .yt-filters button{padding:9px 13px}#youtube .yt-grid{gap:16px}#youtube .yt-card-body{padding:16px 16px 0}#youtube .yt-summary{align-items:flex-start}#youtube .yt-sync{max-width:70%}}
@media(max-width:520px){#youtube .yt-grid{grid-template-columns:1fr}#youtube .yt-card h3{font-size:16px}#youtube .yt-title{min-height:0}#youtube .yt-card-body{padding:18px 19px 0}#youtube .yt-note{padding-bottom:15px}#youtube .yt-card-footer{font-size:12px}#youtube .yt-intro h2{font-size:26px}#youtube .yt-filters button{padding:9px 10px}}
@media(prefers-reduced-motion:reduce){#youtube .yt-card{transition:none}}

#youtube .yt-retry{margin-top:20px;min-height:42px;padding:9px 18px;border:1px solid var(--line);border-radius:7px;background:var(--yt-soft);color:var(--blue);font-weight:650}

/* Home video shelf */
#home-youtube {
  margin-bottom: 46px;
}
#home-youtube .shelf-heading {
  align-items: flex-end;
  margin-bottom: 16px;
}
#home-youtube .shelf-heading > a {
  color: var(--blue);
}
#home-youtube .home-yt-track {
  position: relative;
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--muted) transparent;
  margin: 0;
  padding: 2px 0 9px;
  list-style: none;
}
#home-youtube .home-yt-item {
  flex: 0 0 clamp(210px, 23.5%, 290px);
  min-width: 0;
  scroll-snap-align: start;
}
#home-youtube .home-yt-card {
  display: block;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
}
#home-youtube .home-yt-card:hover {
  border-color: var(--blue);
}
#home-youtube .home-yt-card:focus-visible,
#home-youtube .home-yt-track:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: -2px;
}
#home-youtube .home-yt-details {
  display: grid;
  gap: 6px;
  padding: 12px 14px 14px;
}
#home-youtube .home-yt-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: 2.9em;
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
#home-youtube .home-yt-channel,
#home-youtube .home-yt-status {
  color: var(--muted);
  font-size: 12px;
}
#home-youtube .home-yt-channel {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
#home-youtube .home-yt-controls {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}
#home-youtube .home-yt-controls button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--blue);
}
#home-youtube .home-yt-controls button:disabled {
  opacity: .45;
  cursor: default;
}
#home-youtube [hidden] {
  display: none;
}
@media(max-width: 700px) {
  #home-youtube {
    margin-bottom: 30px;
  }
  #home-youtube .home-yt-item {
    flex-basis: clamp(180px, 68%, 245px);
  }
}

#home-youtube .home-yt-status:not([hidden]){min-height:275px}

/* Approved compact C homepage. Existing learning targets and carousel remain intact. */
#home .hero-slide{min-height:210px;grid-template-columns:1.2fr .8fr;gap:24px}
#home .hero-copy{padding:20px 0 12px}
#home .hero-label{font-size:9px;margin-bottom:9px}
#home .hero h1,#home .hero h2{font-size:30px;line-height:1.25;letter-spacing:-1.2px}
#home .hero-copy>p{font-size:12px;line-height:1.65;margin-top:10px}
#home .hero-cta{min-height:36px;margin-top:12px;padding:7px 13px;font-size:11px;gap:15px}
#home .hero-art{width:100%;height:205px;max-width:330px;right:auto;justify-self:center;margin:0}
#home .hero-scene{width:100%;max-width:315px;margin:0;aspect-ratio:3/2}
#home .hero-controls{padding-bottom:12px;gap:18px}
#home .slide-counter{font-size:10px}
html[lang="en"] #home .hero h1,html[lang="en"] #home .hero h2{font-size:28px;letter-spacing:-.7px}

#home .home-study-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:26px;align-items:start;padding-block:26px 8px}
#home .home-study-layout>.catalog{grid-column:1;grid-row:1;width:100%;min-width:0;margin:0;padding:0;container-type:inline-size}
#home .home-sidebar{grid-column:2;grid-row:1;min-width:0;align-self:start;display:grid;gap:12px}
#home .home-learning-jump,#home .home-calculator-shortcuts{display:none}
#home #courses,#home #home-equity{scroll-margin-top:16px}
#home .home-learning-jump:focus-visible,#home .home-calculator-jump:focus-visible,#home #courses:focus-visible,#home #home-equity:focus-visible{outline:3px solid var(--blue);outline-offset:4px}
#home .home-equity{padding:17px 15px;background:var(--white);border:1px solid var(--line);border-radius:12px;min-width:0}
#home #home-equity-title{font-size:19px;line-height:1.4;letter-spacing:-.6px;margin:0 0 12px}
#home .home-equity-intro{margin:0 0 12px;font-size:13px;line-height:1.65;color:var(--ink);overflow-wrap:anywhere}
#home .home-calculator-nav{display:grid;grid-template-columns:.9fr 1.5fr 1fr .7fr;border:1px solid var(--line);border-radius:6px;overflow:hidden;margin-bottom:12px;background:var(--light-blue)}
#home .home-calculator-nav>*{min-width:0;display:flex;align-items:center;justify-content:center;padding:7px 3px;min-height:38px;font-size:10px;font-weight:650;line-height:1.4;text-align:center}
#home .home-calculator-nav>*+*{border-left:1px solid var(--line)}
#home .home-calculator-nav .current{background:var(--blue);color:white}
#home .home-calculator-nav a:hover{background:var(--white);color:var(--blue)}
#home .home-calculator-links{display:flex;flex-wrap:wrap;justify-content:space-between;gap:5px 10px;border-top:1px solid var(--line);margin-top:12px;padding-top:7px}
#home .home-calculator-links a{display:flex;align-items:center;min-height:36px;font-size:11px;color:var(--blue)}
#home .home-sidebar-roadmap{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:15px 20px;border:1px solid var(--line);border-radius:9px;background:var(--white);font-size:14px;font-weight:700;color:var(--blue)}
#home .home-sidebar-roadmap:hover{border-color:var(--blue)}
#home .home-sidebar noscript{font-size:12px;line-height:1.7;color:var(--muted)}
#home .catalog-search{gap:12px;flex-wrap:wrap;padding-bottom:14px}
#home .filters{gap:5px;flex-wrap:wrap}
#home .filters button{padding:7px 11px;font-size:11px;min-height:36px;border-radius:6px}
#home .search-field{width:235px;flex:1;min-width:180px}
#home .search-field input{height:38px;font-size:12px}
#home .course-shelf{padding-top:20px;margin-bottom:18px}
#home .shelf-heading{gap:12px;margin-bottom:12px;align-items:center}
#home .shelf-heading h2{font-size:19px;line-height:1.4;letter-spacing:-.7px}
#home .shelf-heading p{font-size:11px;line-height:1.6;margin-top:4px}
#home .shelf-heading>a{font-size:10px;gap:6px;min-height:36px}
#home .featured-grid,#home .tournament-grid{width:100%;gap:12px}
#home .featured-grid .course-cover,#home .tournament-grid .compact-cover{height:94px}
#home .featured-grid .cover-format{top:7px;left:10px;padding:3px 6px;font-size:7px}
#home .featured-grid .cover-copy{top:33px;left:10px;gap:3px;max-width:61%}
#home .featured-grid .cover-copy>small{display:none}
#home .featured-grid .cover-copy>strong{font-size:15px;line-height:1.25;letter-spacing:-.5px}
#home .featured-grid .position-table{bottom:28px;right:5px;transform:rotate(-24deg) scale(.48)}
#home .featured-grid .hand-pair{bottom:15px;right:4px;transform:rotate(-9deg) scale(.52)}
#home .featured-grid .course-body,#home .tournament-grid .course-body{padding:10px 11px 9px}
#home .featured-grid .course-body>strong,#home .tournament-grid .course-body>strong{font-size:13px;line-height:1.5;letter-spacing:-.4px;overflow-wrap:anywhere}
#home .course-description{font-size:11px;line-height:1.6;margin-top:4px;overflow-wrap:anywhere}
#home .course-meta{font-size:9px;margin-bottom:5px;gap:4px;flex-wrap:wrap}
#home .course-footer{font-size:9px;padding-top:8px;gap:6px;flex-wrap:wrap}
#home .course-footer b{margin-left:auto}
#home .tournament-grid .cover-copy{top:12px;left:11px;gap:4px;max-width:70%}
#home .tournament-grid .cover-copy>small{font-size:6px}
#home .tournament-grid .cover-copy>strong{font-size:15px;line-height:1.25;letter-spacing:-.5px}
#home .tournament-grid .bb-visual{font-size:36px;right:9px;bottom:9px;letter-spacing:-2px}
#home .tournament-grid .bb-visual small{font-size:13px}
#home .tournament-grid .range-grid{right:8px;bottom:9px;transform:rotate(-9deg) scale(.67);transform-origin:right bottom}
#home .tournament-grid .icm-visual{font-size:29px;right:9px;bottom:12px}
#home .tournament-grid .icm-visual small{font-size:4px}
#home .math-grid:has(.workbook-card){gap:10px}
#home .course.workbook-card{padding:12px 10px 9px 15px;border-radius:9px}
#home .workbook-number{font-size:10px;min-width:22px;height:22px}
#home .workbook-meta{font-size:8px;padding-left:17px;gap:3px}
#home .workbook-title{font-size:13px;line-height:1.45;margin-top:9px;letter-spacing:-.4px}
#home .workbook-figure{max-width:130px;margin:4px auto 6px}
#home .workbook-description{font-size:10px;line-height:1.6}
#home .workbook-footer{font-size:10px;margin-top:6px;padding-top:6px}
html[lang="en"] #home .featured-grid .cover-copy>strong,html[lang="en"] #home .tournament-grid .cover-copy>strong{font-size:13px;line-height:1.25;letter-spacing:-.25px}

#home #home-youtube{margin-top:10px;margin-bottom:24px}
#home #home-youtube .section-eyebrow{display:none}
#home #home-youtube .home-yt-details{padding:9px 11px}
#home #home-youtube .home-yt-title{font-size:12px}
#home #home-youtube .home-yt-channel{font-size:10px}
#home .roadmap-section{padding-block:26px;margin-top:8px}
#home .roadmap-inner{gap:40px}
#home .roadmap-inner h2,#home .practice h2{font-size:23px}
#home .roadmap-steps a{min-height:58px}
#home .practice{gap:45px;padding-block:32px}
#home .education-tools .home-tool-grid.tool-launchers{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
#home .home-tool-link.tool-launcher{padding:17px}
#home .tool-launcher .tool-launcher-heading{grid-template-columns:38px minmax(0,1fr);gap:10px}
#home .tool-launcher .tool-icon{width:38px;height:38px;border-radius:10px}
#home .tool-icon>svg{width:28px;height:28px}
#home .tool-icon .tool-bb-label{width:18px;height:18px;font-size:8px}
#home .tool-launcher .tool-launcher-heading>strong{font-size:16px;letter-spacing:-.4px}
#home .home-tool-link.tool-launcher>p{font-size:12px;line-height:1.7;margin:13px 0}
#home .tool-launcher-action{padding-top:10px;font-size:12px;gap:8px}
#home .tool-launcher-arrow{width:26px;height:26px}
#home .tool-launcher-arrow>svg{width:17px;height:17px}
body[data-theme="dark"] #home .home-calculator-nav .current{color:#12204b}

/* Adapt to the catalog's actual width, not just the outer viewport. */
@container (max-width:690px){
  #home .math-grid:has(.workbook-card){grid-template-columns:repeat(2,minmax(0,1fr))}
  #home .featured-grid,#home .tournament-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(min-width:1001px){
  .education-header .header-main{height:58px;gap:20px}
  .education-header .nav-inner{height:44px}
  .education-header .brand strong{font-size:19px}
  .education-header .brand-mark{font-size:27px}
  .education-header .category-toggle{font-size:13px;width:145px}
  .education-header .nav-inner nav a{font-size:12px}
}
@media(max-width:1000px){
  #home .home-study-layout{grid-template-columns:minmax(0,1fr);gap:24px;padding-top:20px}
  #home .home-sidebar{grid-column:1;grid-row:2;width:min(100%,620px);justify-self:center}
  #home .home-learning-jump{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;padding:10px 15px;border:1px solid var(--line);border-radius:9px;background:var(--white);color:var(--blue);font-size:14px;font-weight:700;line-height:1.5}
  #home .home-learning-jump:hover{background:var(--light-blue);border-color:var(--blue)}
  #home .home-calculator-shortcuts{display:block;margin:3px 0 0;min-width:0}
  #home .home-calculator-shortcuts h2{margin:0 0 10px;font-size:17px;line-height:1.4;letter-spacing:-.4px;color:var(--ink)}
  #home .home-calculator-shortcut-links{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:8px 0;border:1px solid var(--blue);border-radius:9px;background:var(--white);overflow:hidden}
  #home .home-calculator-jump{display:grid;grid-template-rows:28px minmax(34px,auto);align-content:center;justify-items:center;align-items:center;gap:6px;min-width:0;min-height:80px;padding:4px 3px;color:var(--blue);font-size:13px;font-weight:750;line-height:1.3;text-align:center;text-decoration:none}
  #home .home-calculator-jump+.home-calculator-jump{border-left:1px solid var(--line)}
  #home .home-calculator-jump:hover{background:var(--light-blue)}
  #home .home-calculator-jump:focus-visible{outline-offset:-3px}
  #home .home-shortcut-name{display:block;max-width:100%;overflow-wrap:anywhere}
  #home .home-shortcut-name>span{display:block}
  #home .home-calculator-jump-icon{width:28px;height:28px;background:currentColor;mask:url("/assets/immutable/cards.00edecaaae757dd7.svg") center/contain no-repeat}
  #home [data-hc-open="pot"] .home-calculator-jump-icon{mask-image:url("/assets/immutable/percent.fd52fb7203e16246.svg")}
  #home [data-hc-open="bb"] .home-calculator-jump-icon{mask-image:url("/assets/immutable/calculator.b110d038082f3e83.svg")}
  #home [data-hc-open="icm"] .home-calculator-jump-icon{mask-image:url("/assets/immutable/ranking.584103ab6443c176.svg")}
  #home .home-study-layout>.catalog{grid-column:1;grid-row:1}
  #home .home-sidebar-roadmap{display:none}
  #home #home-equity{scroll-margin-top:84px}
  #home .home-equity{padding:18px}
  #home .home-calculator-nav>*{min-height:44px;font-size:12px;padding:7px 4px}
  #home .home-calculator-links a{min-height:44px;font-size:12px}
  #home .hero-slide{grid-template-columns:1.2fr .8fr;min-height:210px}
  #home .hero h1,#home .hero h2{font-size:27px}
  html[lang="en"] #home .hero h1,html[lang="en"] #home .hero h2{font-size:26px}
  #home .hero-art{height:185px}
  #home .hero-scene{width:100%;max-width:280px}
  #home .education-tools .home-tool-grid.tool-launchers{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:620px){
  #home .hero-slide{min-height:0;grid-template-columns:minmax(0,1fr) 105px;gap:5px;align-items:center}
  #home .hero-copy{padding:19px 0 13px}
  #home .hero-label{font-size:7px;letter-spacing:.7px;margin-bottom:8px}
  #home .hero h1,#home .hero h2{font-size:23px;letter-spacing:-.8px;line-height:1.3}
  html[lang="en"] #home .hero h1,html[lang="en"] #home .hero h2{font-size:21px;letter-spacing:-.6px}
  #home .hero-copy>p{font-size:12px;margin-top:9px}
  #home .hero-copy>p>br{display:none}
  #home .hero-copy>p>span:last-child{display:none}
  #home .hero-cta{min-height:44px;font-size:12px;padding:8px 10px;margin-top:10px;gap:10px}
  #home .hero-art{height:120px;width:130px;max-width:none;align-self:center;justify-self:center}
  #home .hero-scene{width:130px;max-width:none;margin:0;align-self:center}
  #home .hero-controls{gap:12px;padding-bottom:12px}
  #home .slide-arrows{gap:6px}
  #home .slide-arrows button{width:44px;height:44px;min-width:44px;min-height:44px}
  #home .home-study-layout{gap:19px;padding-top:16px}
  #home .home-equity{padding:15px 12px}
  #home #home-equity-title{font-size:19px}
  #home .home-calculator-nav>*{min-height:44px;font-size:12px}
  #home .catalog-search{gap:12px;padding-bottom:12px}
  #home .search-field{width:100%;flex:auto}
  #home .search-field input{font-size:16px;height:44px}
  #home .filters button{min-height:44px;font-size:12px;padding:7px 10px}
  #home .shelf-heading{gap:10px;align-items:flex-start}
  #home .shelf-heading h2{font-size:18px}
  #home .shelf-heading p{font-size:12px}
  #home .shelf-heading>a{min-height:44px;font-size:12px;white-space:nowrap}
  /* Option 03: small thumbnails and readable text in full-width lesson rows. */
  #home .course-grid,#home .math-grid:has(.workbook-card){display:grid;grid-template-columns:minmax(0,1fr);gap:0;padding:0 12px;background:var(--white);border:1px solid var(--line);border-radius:10px;overflow:visible;scroll-snap-type:none}
  #home .course-grid>.course:not([hidden]){position:relative;display:grid;grid-template-columns:72px minmax(0,1fr);align-items:center;gap:12px;min-height:100px;width:100%;padding:12px 18px 12px 0;border:0;border-radius:0;box-shadow:none;background:transparent;overflow:visible;scroll-snap-align:none}
  #home .course-grid>.course:not([hidden]):has(~ .course:not([hidden])){border-bottom:1px solid var(--line)}
  #home .course-grid>.course::after{content:'';position:absolute;right:3px;top:50%;width:7px;height:7px;border-top:1.5px solid var(--muted);border-right:1.5px solid var(--muted);transform:translateY(-50%) rotate(45deg)}
  #home .course-grid>.course:hover{background:var(--light-blue)}
  #home .course-grid>.course:focus-visible{outline:3px solid var(--blue);outline-offset:-3px}
  #home .featured-grid .course-cover,#home .tournament-grid .compact-cover{width:72px;height:72px;border-radius:8px}
  #home .course-cover .cover-copy,#home .course-cover .cover-format,#home .course-meta,#home .course-footer{display:none}
  #home .featured-grid .course-body,#home .tournament-grid .course-body{padding:0;min-width:0}
  #home .featured-grid .course-body>strong,#home .tournament-grid .course-body>strong{font-size:16px;line-height:1.5;letter-spacing:-.4px}
  #home .course-description{font-size:13px;line-height:1.65;color:var(--ink)}
  #home .cover-foundation>picture>img{inset:0;width:100%;height:100%;object-fit:contain}
  #home .featured-grid .position-table,#home .featured-grid .hand-pair,#home .tournament-grid .range-grid{top:50%;left:50%;right:auto;bottom:auto;transform:translate(-50%,-50%) scale(.55);transform-origin:center}
  #home .tournament-grid .range-grid{transform:translate(-50%,-50%) scale(.8)}
  #home .tournament-grid .bb-visual{right:5px;bottom:23px;font-size:32px;letter-spacing:-1px}
  #home .tournament-grid .bb-visual small{font-size:12px}
  #home .tournament-grid .icm-visual{right:7px;bottom:25px;font-size:28px;letter-spacing:-1px}
  #home .tournament-grid .icm-visual small{display:none}
  #home .course-grid>.workbook-card:not([hidden]){column-gap:12px;row-gap:4px}
  #home .workbook-number,#home .workbook-meta,#home .workbook-footer,#home .workbook-card::before,#home .workbook-title::after{display:none}
  #home .workbook-figure{grid-column:1;grid-row:1 / span 2;width:72px;height:72px;max-width:none;margin:0;align-self:center}
  #home .workbook-figure svg{overflow:hidden}
  #home .workbook-title{grid-column:2;grid-row:1;align-self:end;font-size:16px;line-height:1.5;margin:0;padding:0}
  #home .workbook-description{grid-column:2;grid-row:2;align-self:start;font-size:13px;line-height:1.65;color:var(--ink);margin:0;padding:0}
  #home #home-youtube .home-yt-title{font-size:13px;line-height:1.6}
  #home #home-youtube .home-yt-channel{font-size:12px}
  #home .roadmap-inner{grid-template-columns:1fr;gap:18px}
  #home .roadmap-inner h2,#home .practice h2{font-size:21px}
  #home .practice{grid-template-columns:1fr;gap:20px;padding-block:26px}
  #home .education-tools .home-tool-grid.tool-launchers{grid-template-columns:1fr}
}

/* Shared visual rules are intentionally limited to the homepage sidebar. */
.home-equity{--he-ink:#172034;--he-muted:#637087;--he-line:#d7deec;--he-surface:#fff;--he-soft:#eef2ff;--he-blue:#2948e8;--he-red:#c03042;min-width:0;color:var(--he-ink);font-size:13px;line-height:1.5}
.home-equity *{box-sizing:border-box}
.home-equity [hidden]{display:none!important}
.home-equity button,.home-equity input{font:inherit}
.home-equity button{cursor:pointer}
.home-equity button:disabled{cursor:not-allowed;opacity:.42}
.home-equity button:focus-visible,.home-equity a:focus-visible,.home-equity input:focus-visible{outline:3px solid #8193ff;outline-offset:3px}
.home-equity .he-toolbar{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:7px;margin:10px 0 12px}
.home-equity .he-toolbar button,.home-equity .he-share,.home-equity .he-clear,.home-equity .he-picker-head button{min-height:34px;border:1px solid var(--he-line);border-radius:6px;background:var(--he-surface);padding:5px 9px;color:var(--he-blue);font-size:11px;font-weight:700}
.home-equity .he-label-row{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-bottom:9px}
.home-equity .he-label-row strong,.home-equity .he-player>strong{font-size:12px;font-weight:750}
.home-equity .he-label-row>span{font-size:12px;font-weight:750;color:var(--he-blue);background:var(--he-soft);border:1px solid var(--he-line);border-radius:5px;padding:4px 7px;line-height:1.5}
.home-equity .he-board-cards{display:flex;gap:6px;justify-content:space-between}
.home-equity .he-card{flex:none;width:44px;min-width:0;height:57px;min-height:44px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;margin:0;padding:3px;border:1px solid var(--he-line);border-radius:6px;background:var(--he-surface);color:var(--he-ink);font-size:19px;font-weight:750;line-height:1.15;box-shadow:0 2px 3px #17203408}
.home-equity .he-card span:last-child{font-size:20px}
.home-equity .he-red{color:var(--he-red)!important}
.home-equity .he-empty{border-style:dashed;background:var(--he-soft);color:var(--he-muted)}
.home-equity .he-players{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:16px 0}
.home-equity .he-player{min-width:0;display:flex;flex-direction:column;gap:7px}
.home-equity .he-player+.he-player{padding-left:12px;border-left:1px solid var(--he-line)}
.home-equity .he-hand{display:flex;gap:6px}
.home-equity .he-calculate{display:block;width:100%;height:40px;padding:6px 10px;border:1px solid var(--he-blue);border-radius:6px;background:var(--he-blue);color:#fff;font-size:13px;font-weight:750}
.home-equity .he-status{margin:9px 0 0;color:var(--he-muted);font-size:11px;line-height:1.5;overflow-wrap:anywhere}
.home-equity .he-status:empty{margin:0}
.home-equity .he-status.he-error{color:var(--he-red)}
.home-equity .he-result{margin-top:15px;padding:14px 12px;border:1px solid var(--he-line);border-radius:8px;background:var(--he-soft)}
.home-equity .he-result h3{margin:0 0 11px;color:var(--he-blue);font-size:13px;line-height:1.4}
.home-equity .he-values{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.home-equity .he-values>div+div{border-left:1px solid var(--he-line);padding-left:10px}
.home-equity .he-values span{display:block;font-size:11px;font-weight:650}
.home-equity .he-values strong{display:block;color:var(--he-blue);font-size:26px;line-height:1.3;letter-spacing:-.04em;font-variant-numeric:tabular-nums}
.home-equity .he-bar{height:9px;margin:12px 0;border-radius:4px;background:#b8c7ff;overflow:hidden}
.home-equity .he-bar span{display:block;height:100%;background:var(--he-blue)}
.home-equity .he-explanation{margin:11px 0 5px;font-size:11px;line-height:1.6;word-break:keep-all;overflow-wrap:break-word}
.home-equity .he-method{margin:0;color:var(--he-muted);font-size:10px;line-height:1.5}
.home-equity .he-share{display:block;margin:10px 0 0 auto;min-width:54px;background:var(--he-surface)}
.home-equity .he-share-fallback{margin-top:10px}
.home-equity .he-share-fallback label{display:block;font-size:11px;margin-bottom:5px}
.home-equity .he-share-fallback input{width:100%;height:36px;min-height:36px;border:1px solid var(--he-line);border-radius:5px;padding:6px;background:var(--he-surface);color:var(--he-ink);font-size:11px}
.home-equity .he-limit{margin:10px 0 7px;color:var(--he-muted);font-size:10px;line-height:1.5}
.home-equity .he-picker{position:fixed;inset:0;width:min(500px,calc(100vw - 28px));max-height:calc(100dvh - 32px);overflow:auto;margin:auto;padding:18px;border:1px solid var(--he-line);border-radius:12px;background:var(--he-surface);color:var(--he-ink);box-shadow:0 18px 70px #14213b33}
.home-equity .he-picker::backdrop{background:rgba(10,16,32,.48)}
.home-equity .he-picker-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:15px}
.home-equity .he-picker-head h3{margin:0;font-size:16px;line-height:1.4}
.home-equity .he-picker-head button{flex:none;min-height:40px}
.home-equity .he-suits{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;margin-bottom:14px}
.home-equity .he-suits button{min-height:44px;padding:5px 2px;border:1px solid var(--he-line);border-radius:5px;background:var(--he-surface);color:var(--he-ink);font-size:11px;font-weight:700}
.home-equity .he-suits button[aria-pressed="true"]{border-color:var(--he-blue);box-shadow:0 0 0 1px var(--he-blue);background:var(--he-soft)}
.home-equity .he-deck{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:7px}
.home-equity .he-deck .he-card{width:100%;height:59px}
.home-equity .he-deck .he-card[aria-pressed="true"]{border-color:var(--he-blue);box-shadow:0 0 0 1px var(--he-blue)}
.home-equity .he-deck .he-card:disabled{background:var(--he-soft)}
.home-equity .he-clear{min-height:44px;width:100%;margin-top:16px;color:var(--he-muted)}
.home-equity .home-calculator-nav button{margin:0;border:0;border-radius:0;background:transparent;color:inherit;font:inherit;font-size:10px;font-weight:650;cursor:pointer}
.home-equity .home-calculator-nav button+button{border-left:1px solid var(--he-line)}
.home-equity .home-calculator-nav button:not(.current):hover{background:var(--he-surface);color:var(--he-blue)}
.home-equity .home-calculator-nav button:focus-visible{outline:3px solid var(--he-blue);outline-offset:-3px}
.home-equity .hc-fields{display:grid;gap:14px}
.home-equity .hc-field{display:flex;flex-direction:column;gap:5px;min-width:0}
.home-equity .hc-field label{font-size:12px;font-weight:700;line-height:1.5;overflow-wrap:anywhere}
.home-equity .hc-field input,.home-equity .hc-field select{width:100%;min-width:0;min-height:44px;padding:9px 10px;border:1px solid var(--he-line);border-radius:6px;background:var(--he-surface);color:var(--he-ink);font:inherit;font-size:16px;line-height:1.4}
.home-equity .hc-field input[aria-invalid="true"]{border-color:var(--he-red);box-shadow:0 0 0 1px var(--he-red)}
.home-equity .hc-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:end}
.home-equity .hc-pair>div,.home-equity .hc-step{min-width:0}
.home-equity .hc-step-title{display:flex;align-items:center;gap:8px;margin:0 0 10px;font-size:13px;font-weight:750;line-height:1.45;color:var(--he-ink)}
.home-equity .hc-step-number{display:inline-flex;align-items:center;justify-content:center;flex:none;width:24px;height:24px;border-radius:50%;background:var(--he-blue);color:var(--he-surface);font-size:12px;font-weight:750}
.home-equity .hc-step-help{margin:0 0 10px;color:var(--he-muted);font-size:11px;line-height:1.6;overflow-wrap:anywhere}
.home-equity #home-calc-pot .hc-step-title{background:var(--he-soft);padding:5px 8px 5px 5px;border-radius:6px}
.home-equity #home-calc-pot .hc-pair{padding:0 2px}
.home-equity #home-calc-pot .hc-step-help{padding:0 2px}
.home-equity #home-calc-icm .hc-step{padding:11px 10px;background:var(--he-soft);border:1px solid var(--he-line);border-radius:8px}
.home-equity #home-calc-icm .hc-pair{gap:8px}
.home-equity #home-calc-icm .hc-pair .hc-field{padding:7px;background:var(--he-surface);border:1px solid var(--he-line);border-radius:6px}
.home-equity #home-calc-icm .hc-pair input{padding:7px;min-height:44px}
.home-equity .hc-count-field{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);align-items:center;gap:12px}
.home-equity .hc-help{margin:12px 0;font-size:12px;color:var(--he-muted);line-height:1.65;overflow-wrap:anywhere}
.home-equity .hc-panel output{display:block;font-size:24px;font-weight:700;color:var(--he-blue);font-variant-numeric:tabular-nums}
.home-equity .hc-result-row{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:7px 0;font-size:12px;font-weight:500;overflow-wrap:anywhere}
.home-equity .hc-result-row strong{font-size:18px;text-align:right;min-width:0}
.home-equity .hc-result-row+.hc-result-row{border-top:1px solid var(--he-line)}
.home-equity .hc-panel .he-explanation:empty{display:none}
.home-equity #home-calc-pot output.hc-has-result{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) minmax(0,1fr);gap:9px}
.home-equity #home-calc-pot .hc-result-row{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:5px;padding:0;min-width:0;font-size:11px}
.home-equity #home-calc-pot .hc-result-row+.hc-result-row{border-top:0;border-left:1px solid var(--he-line);padding-left:9px}
.home-equity #home-calc-pot .hc-result-row strong{text-align:left;font-size:19px;line-height:1.3}
.home-equity #home-calc-pot .hc-result-row:first-child strong{font-size:30px;letter-spacing:-.04em}
.home-equity #home-calc-icm .he-result{padding:12px 10px}
.home-equity #home-calc-icm .he-result .hc-step-title{color:var(--he-ink)}
.home-equity #home-calc-icm .hc-result-row{color:var(--he-ink);padding:7px 2px}
.home-equity #home-calc-icm .hc-result-row strong{font-size:16px}
.home-equity #home-calc-icm .hc-result-row:last-child{color:var(--he-blue);font-weight:750}
.home-equity .hc-bb-hero{margin:0 0 18px;padding:14px 12px;text-align:center}
.home-equity .hc-bb-hero h3{text-align:left;margin-bottom:6px;color:var(--he-ink)}
.home-equity .hc-bb-hero output{font-size:44px;font-weight:800;line-height:1.3;letter-spacing:-.035em;overflow-wrap:anywhere}
.home-equity .hc-bb-unit{font-size:26px;letter-spacing:0}
.home-equity #home-calc-bb .hc-field{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.45fr);align-items:center;gap:12px}
.home-equity .hc-comparison{margin-top:16px;padding:12px 10px;border:1px solid var(--he-line);border-radius:8px;background:var(--he-soft)}
.home-equity .hc-comparison h3{margin:0 0 8px;font-size:13px;color:var(--he-ink)}
.home-equity .hc-comparison table{width:100%;table-layout:fixed;border-collapse:separate;border-spacing:0 5px;font-variant-numeric:tabular-nums}
.home-equity .hc-comparison thead th{padding:0 8px 2px;color:var(--he-muted);font-size:11px;text-align:left;font-weight:500;overflow-wrap:anywhere}
.home-equity .hc-comparison th:last-child{text-align:right}
.home-equity .hc-comparison tbody th,.home-equity .hc-comparison td{padding:9px 8px;background:var(--he-surface);border:1px solid var(--he-line);font-size:14px;font-weight:700;overflow-wrap:anywhere}
.home-equity .hc-comparison tbody th{border-right:0;border-radius:6px 0 0 6px;text-align:left}
.home-equity .hc-comparison td{border-left:0;border-radius:0 6px 6px 0;text-align:right}
.home-equity .hc-comparison [aria-current="true"]>*{border-color:var(--he-blue);color:var(--he-blue)}
.home-equity .hc-comparison small{display:inline-block;margin-left:5px;font-size:10px;font-weight:600}
.home-equity .hc-field select:focus-visible{outline:3px solid #8193ff;outline-offset:3px}
@media(max-width:1000px){.home-equity .home-calculator-nav button{font-size:12px}.home-equity .hc-field label,.home-equity .hc-help,.home-equity .hc-result-row{font-size:13px}}
body[data-theme="dark"] .home-equity{--he-ink:#edf0f8;--he-muted:#acb7cf;--he-line:#46516b;--he-surface:#202738;--he-soft:#29334c;--he-blue:#9badff;--he-red:#ff9eac}
body[data-theme="dark"] .home-equity .he-calculate{background:#3c57eb;border-color:#7084fb;color:#fff}
body[data-theme="dark"] .home-equity .he-bar{background:#4a5d90}
@media(max-width:440px){.home-equity .he-picker{padding:14px}.home-equity .he-deck{grid-template-columns:repeat(6,minmax(0,1fr));gap:6px}.home-equity .he-toolbar button,.home-equity .he-share{min-height:40px}.home-equity .he-calculate{height:44px}}
@media(max-width:1000px){
  .home-equity .he-toolbar button,.home-equity .he-share,.home-equity .he-clear,.home-equity .he-picker-head button{min-height:44px;font-size:13px;padding:7px 10px}
  .home-equity .he-calculate{height:44px;font-size:14px}
  .home-equity .he-label-row{flex-wrap:wrap}
  .home-equity .he-label-row strong,.home-equity .he-player>strong{font-size:13px}
  .home-equity .he-label-row>span,.home-equity .he-values span{font-size:12px}
  .home-equity .he-status,.home-equity .he-explanation{font-size:13px;line-height:1.65}
  .home-equity .he-method,.home-equity .he-limit{font-size:12px;line-height:1.6}
  .home-equity .he-result h3{font-size:14px}
  .home-equity .he-share-fallback label,.home-equity .he-suits button{font-size:12px}
  .home-equity .he-share-fallback input{height:44px;min-height:44px;font-size:16px}
  .home-equity .hc-step-title,.home-equity .hc-comparison h3{font-size:14px}
  .home-equity .hc-step-help{font-size:12px}
}

/* Reference B: decorative sprites use the original 1086 × 1448 board. */
.app #learning.hs-learning-intro{width:min(1086px,calc(100% - 32px));max-width:1086px;margin:0 auto 24px;padding:20px 8px 0;color:var(--text)}
#learning.hs-learning-intro .eyebrow{color:#2949db;font-size:12px;letter-spacing:.08em}
#learning.hs-learning-intro h2{margin:8px 0;font-size:34px;line-height:1.3;letter-spacing:-.04em}
#learning.hs-learning-intro p{margin:0;color:var(--muted);font-size:16px;line-height:1.6;word-break:keep-all}
body.all-learning-view .app #advanced{margin-top:24px}
@media(max-width:600px){#learning.hs-learning-intro h2{font-size:28px}#learning.hs-learning-intro p{font-size:14px}}
:is(#study,#advanced,#scout).hs-menu-page{
  --menu-blue:#073dff;--menu-ink:#101522;--menu-muted:#414b65;
  --menu-line:#d0d9ed;--menu-card:#fff;--menu-soft:#eaf0ff;--menu-surface:#f8faff;
  color:var(--menu-ink)
}
.app :is(#study,#advanced,#scout).hs-menu-page{width:min(1086px,calc(100% - 32px));max-width:1086px}
:is(#study,#advanced,#scout).hs-menu-page .hs-menu-surface{margin:0;padding:20px 16px 18px;border:1px solid var(--menu-line);border-radius:20px;background:var(--menu-surface)}
:is(#study,#advanced,#scout).hs-menu-page .hs-menu-header{padding:0;margin:0 8px 20px;background:none;border:0}
:is(#study,#advanced,#scout).hs-menu-page .hs-menu-header .eyebrow{margin:0 0 6px;color:var(--menu-blue);font-size:15px;font-weight:750;line-height:1.2;letter-spacing:.02em}
:is(#study,#advanced,#scout).hs-menu-page .hs-menu-header h2{margin:0;font-size:36px;font-weight:800;line-height:1.25;letter-spacing:-.045em;color:var(--menu-ink)}
:is(#study,#advanced,#scout).hs-menu-page .hs-menu-header p{margin:4px 0 0;max-width:65ch;font-size:17px;line-height:1.65;color:var(--menu-muted);word-break:keep-all;overflow-wrap:anywhere}
:is(#study,#advanced,#scout).hs-menu-page .hs-menu-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
:is(#study,#advanced,#scout).hs-menu-page .hs-menu-card{
  display:grid;grid-template-columns:137px minmax(0,1fr);align-items:center;gap:8px;
  width:100%;min-width:0;min-height:160px;margin:0;padding:14px 12px;
  border:1px solid var(--menu-line);border-radius:13px;background:var(--menu-card);
  color:var(--menu-ink);font:inherit;text-align:left;text-decoration:none;
  transition:border-color .15s,box-shadow .15s
}
:is(#study,#advanced,#scout).hs-menu-page .hs-menu-card:hover{border-color:var(--menu-blue);box-shadow:0 3px 12px #073dff12}
:is(#study,#advanced,#scout).hs-menu-page .hs-menu-card:focus-visible{outline:3px solid var(--menu-blue);outline-offset:3px}
:is(#study,#advanced,#scout).hs-menu-page .hs-menu-card span{margin:0}
:is(#study,#advanced,#scout).hs-menu-page .hs-menu-card .hs-menu-icon{display:grid;place-items:center;width:137px;height:110px;margin:0;color:var(--menu-blue)}
:is(#study,#advanced,#scout).hs-menu-page .hs-menu-copy{display:flex;flex-direction:column;align-items:flex-start;min-width:0}
:is(#study,#advanced,#scout).hs-menu-page .hs-menu-card b{display:block;max-width:100%;margin:0;color:var(--menu-ink);font-size:21px;font-weight:750;line-height:1.35;white-space:normal;word-break:keep-all;overflow-wrap:anywhere}
:is(#study,#advanced,#scout).hs-menu-page .hs-menu-card .hs-menu-description{display:block;margin-top:4px;color:var(--menu-muted);font-size:16px;font-weight:400;line-height:1.5;word-break:keep-all;overflow-wrap:anywhere}
:is(#study,#advanced,#scout).hs-menu-page .hs-menu-card .hs-menu-action{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:34px;margin-top:14px;padding:5px 17px;border-radius:999px;background:var(--menu-blue);color:#fff;line-height:1.3}
:is(#study,#advanced,#scout).hs-menu-page .hs-menu-action>span{font-size:16px;font-weight:700;line-height:1.4;color:inherit}
:is(#study,#advanced,#scout).hs-menu-page .hs-menu-action>svg,:is(#study,#advanced,#scout).hs-menu-page .hs-menu-read>svg{display:block;width:16px;height:16px;flex:none}
:is(#study,#advanced,#scout).hs-menu-page .hs-menu-note{display:flex;align-items:center;gap:13px;margin:20px 0 0;padding:11px 18px;border-radius:12px;background:var(--menu-soft);color:var(--menu-ink);font-size:16px;font-weight:650;line-height:1.6;word-break:keep-all;overflow-wrap:anywhere}
:is(#study,#advanced,#scout).hs-menu-page .hs-menu-group+.hs-menu-group{margin-top:18px}
:is(#study,#advanced,#scout).hs-menu-page .hs-menu-group-title{display:flex;align-items:center;gap:12px;margin:0 8px 10px;color:var(--menu-ink);font-size:22px;line-height:1.45;font-weight:750;word-break:keep-all}
:is(#study,#advanced,#scout).hs-menu-page .hs-menu-group-title::after{content:"";height:1px;min-width:20px;flex:1;background:#b8c4dd}
:is(#study,#advanced,#scout).hs-menu-page .advanced-guide-card{grid-template-columns:76px minmax(0,1fr) 48px;gap:9px;align-items:center;min-height:104px;padding:10px 12px}
:is(#study,#advanced,#scout).hs-menu-page .advanced-guide-card .hs-menu-symbol{position:relative;display:block;width:76px;height:80px;margin:0}
:is(#study,#advanced,#scout).hs-menu-page .advanced-guide-card .advanced-guide-number{position:absolute;top:0;left:0;display:grid;place-items:center;width:38px;height:25px;margin:0;padding:0;border:0;border-radius:999px;background:var(--menu-soft);color:var(--menu-ink);font-size:14px;font-weight:750;font-variant-numeric:tabular-nums;line-height:1}
:is(#study,#advanced,#scout).hs-menu-page .advanced-guide-card .hs-menu-icon{position:absolute;left:19px;bottom:0;width:56px;height:48px}
:is(#study,#advanced,#scout).hs-menu-page .advanced-guide-card .hs-menu-topic{display:inline-block;max-width:100%;margin:0 0 8px;padding:2px 11px;border-radius:999px;background:var(--menu-soft);color:var(--menu-blue);font-size:12px;font-weight:700;line-height:1.6;overflow-wrap:anywhere}
:is(#study,#advanced,#scout).hs-menu-page .advanced-guide-card b{font-size:18px;line-height:1.4}
:is(#study,#advanced,#scout).hs-menu-page .hs-menu-card .hs-menu-read{display:flex;align-items:center;justify-content:flex-end;gap:5px;align-self:stretch;min-height:44px;padding-top:25px;color:var(--menu-blue);white-space:nowrap}
:is(#study,#advanced,#scout).hs-menu-page .hs-menu-read>span{font-size:14px;line-height:1.4;font-weight:700;color:inherit}
#scout.hs-menu-page .hs-menu-card{grid-template-columns:80px minmax(0,1fr);gap:14px;min-height:140px}
#scout.hs-menu-page .hs-menu-card .hs-menu-icon{width:80px;height:80px}
#scout.hs-menu-page .hs-menu-card .hs-menu-action{min-height:36px}

:is(#study,#advanced,#scout).hs-menu-page .hs-menu-sprite{
  --sprite-scale:1;display:block;flex:none;
  width:calc(var(--sprite-w) * var(--sprite-scale));height:calc(var(--sprite-h) * var(--sprite-scale));
  background-image:url("/assets/immutable/menu-icons-compact-fallback.c61e8bbabafab6f7.png");background-image:image-set(url("/assets/immutable/menu-icons-compact.6319fb3517e0ae84.webp") type("image/webp"),url("/assets/immutable/menu-icons-compact-fallback.c61e8bbabafab6f7.png") type("image/png"));background-repeat:no-repeat;
  background-size:calc(640px * var(--sprite-scale)) calc(500px * var(--sprite-scale));
  background-position:calc(var(--sprite-x) * -1 * var(--sprite-scale)) calc(var(--sprite-y) * -1 * var(--sprite-scale));
  mix-blend-mode:multiply
}
:is(#study,#advanced,#scout).hs-menu-page .hs-sprite-study-cards{--sprite-x:0px;--sprite-y:0px;--sprite-w:137px;--sprite-h:91px}
:is(#study,#advanced,#scout).hs-menu-page .hs-sprite-study-grid{--sprite-x:160px;--sprite-y:0px;--sprite-w:95px;--sprite-h:94px}
:is(#study,#advanced,#scout).hs-menu-page .hs-sprite-study-stack{--sprite-x:320px;--sprite-y:0px;--sprite-w:112px;--sprite-h:82px}
:is(#study,#advanced,#scout).hs-menu-page .hs-sprite-group-calc{--sprite-x:480px;--sprite-y:0px;--sprite-w:34px;--sprite-h:35px}
:is(#study,#advanced,#scout).hs-menu-page .hs-sprite-group-target{--sprite-x:0px;--sprite-y:100px;--sprite-w:36px;--sprite-h:37px}
:is(#study,#advanced,#scout).hs-menu-page .hs-sprite-group-trophy{--sprite-x:160px;--sprite-y:100px;--sprite-w:36px;--sprite-h:38px}
:is(#study,#advanced,#scout).hs-menu-page .hs-sprite-info{--sprite-x:320px;--sprite-y:100px;--sprite-w:30px;--sprite-h:29px}
:is(#study,#advanced,#scout).hs-menu-page .hs-sprite-bars{--sprite-x:480px;--sprite-y:100px;--sprite-w:47px;--sprite-h:43px}
:is(#study,#advanced,#scout).hs-menu-page .hs-sprite-sigma{--sprite-x:0px;--sprite-y:200px;--sprite-w:32px;--sprite-h:39px}
:is(#study,#advanced,#scout).hs-menu-page .hs-sprite-card{--sprite-x:160px;--sprite-y:200px;--sprite-w:40px;--sprite-h:46px}
:is(#study,#advanced,#scout).hs-menu-page .hs-sprite-layers{--sprite-x:320px;--sprite-y:200px;--sprite-w:47px;--sprite-h:39px}
:is(#study,#advanced,#scout).hs-menu-page .hs-sprite-pin{--sprite-x:480px;--sprite-y:200px;--sprite-w:35px;--sprite-h:45px}
:is(#study,#advanced,#scout).hs-menu-page .hs-sprite-table{--sprite-x:0px;--sprite-y:300px;--sprite-w:45px;--sprite-h:39px}
:is(#study,#advanced,#scout).hs-menu-page .hs-sprite-small-coins{--sprite-x:160px;--sprite-y:300px;--sprite-w:47px;--sprite-h:45px}
:is(#study,#advanced,#scout).hs-menu-page .hs-sprite-trophy{--sprite-x:320px;--sprite-y:300px;--sprite-w:49px;--sprite-h:47px}
:is(#study,#advanced,#scout).hs-menu-page .hs-sprite-warning{--sprite-x:480px;--sprite-y:300px;--sprite-w:49px;--sprite-h:47px}
:is(#study,#advanced,#scout).hs-menu-page .hs-sprite-calculator{--sprite-x:0px;--sprite-y:400px;--sprite-w:56px;--sprite-h:63px}
:is(#study,#advanced,#scout).hs-menu-page .hs-sprite-balance{--sprite-x:160px;--sprite-y:400px;--sprite-w:65px;--sprite-h:61px}
:is(#study,#advanced,#scout).hs-menu-page .hs-sprite-coins{--sprite-x:320px;--sprite-y:400px;--sprite-w:69px;--sprite-h:67px}

body[data-theme="dark"] :is(#study,#advanced,#scout).hs-menu-page{--menu-blue:#9fb3ff;--menu-ink:#edf2ff;--menu-muted:#bdc8df;--menu-line:#46536f;--menu-card:#202a3e;--menu-soft:#2b3a59;--menu-surface:#192235}
body[data-theme="dark"] :is(#study,#advanced,#scout).hs-menu-page .hs-menu-card .hs-menu-action{background:#3658df;color:#fff}
body[data-theme="dark"] :is(#study,#advanced,#scout).hs-menu-page .hs-menu-sprite{filter:invert(1) hue-rotate(180deg);mix-blend-mode:screen}
@media(max-width:999px){
  :is(#study,#advanced,#scout).hs-menu-page .hs-menu-grid{grid-template-columns:minmax(0,1fr);gap:12px}
  :is(#study,#advanced,#scout).hs-menu-page .hs-menu-card{grid-template-columns:137px minmax(0,1fr);min-height:156px}
  :is(#study,#advanced,#scout).hs-menu-page .advanced-guide-card{grid-template-columns:76px minmax(0,1fr) 52px;min-height:104px}
  #scout.hs-menu-page .hs-menu-card{grid-template-columns:80px minmax(0,1fr);min-height:140px}
}
@media(max-width:440px){
  :is(#study,#advanced,#scout).hs-menu-page .hs-menu-surface{padding:18px 12px 14px;border-radius:16px}
  :is(#study,#advanced,#scout).hs-menu-page .hs-menu-header{margin:0 4px 18px}
  :is(#study,#advanced,#scout).hs-menu-page .hs-menu-header .eyebrow{font-size:12px}
  :is(#study,#advanced,#scout).hs-menu-page .hs-menu-header h2{font-size:28px}
  :is(#study,#advanced,#scout).hs-menu-page .hs-menu-header p{font-size:15px}
  :is(#study,#advanced,#scout).hs-menu-page .hs-menu-card{grid-template-columns:90px minmax(0,1fr);gap:10px;padding:14px 10px;border-radius:12px}
  :is(#study,#advanced,#scout).hs-menu-page .hs-menu-card .hs-menu-icon{width:90px;height:90px}
  #study.hs-menu-page .hs-menu-icon .hs-menu-sprite{--sprite-scale:.66}
  :is(#study,#advanced,#scout).hs-menu-page .hs-menu-card b{font-size:18px}
  :is(#study,#advanced,#scout).hs-menu-page .hs-menu-card .hs-menu-description{font-size:15px}
  :is(#study,#advanced,#scout).hs-menu-page .hs-menu-action>span{font-size:15px}
  :is(#study,#advanced,#scout).hs-menu-page .hs-menu-card .hs-menu-action{margin-top:10px;padding:7px 14px}
  :is(#study,#advanced,#scout).hs-menu-page .hs-menu-group-title{gap:9px;margin-left:2px;margin-right:2px;font-size:18px}
  :is(#study,#advanced,#scout).hs-menu-page .hs-menu-group-title .hs-menu-sprite{--sprite-scale:.8}
  :is(#study,#advanced,#scout).hs-menu-page .advanced-guide-card{grid-template-columns:45px minmax(0,1fr) 41px;gap:8px;min-height:104px;padding:10px 8px}
  :is(#study,#advanced,#scout).hs-menu-page .advanced-guide-card .hs-menu-symbol{width:45px;height:80px}
  :is(#study,#advanced,#scout).hs-menu-page .advanced-guide-card .hs-menu-icon{width:45px;height:45px;left:0}
  :is(#study,#advanced,#scout).hs-menu-page .advanced-guide-card .hs-menu-icon .hs-menu-sprite{--sprite-scale:.85}
  :is(#study,#advanced,#scout).hs-menu-page .advanced-guide-card .advanced-guide-number{width:32px;height:24px;font-size:13px}
  :is(#study,#advanced,#scout).hs-menu-page .advanced-guide-card .hs-menu-topic{padding:2px 8px}
  :is(#study,#advanced,#scout).hs-menu-page .advanced-guide-card b{font-size:16px;line-height:1.45}
  :is(#study,#advanced,#scout).hs-menu-page .hs-menu-read>span{font-size:13px}
  :is(#study,#advanced,#scout).hs-menu-page .hs-menu-read>svg{width:13px;height:13px}
  #scout.hs-menu-page .hs-menu-card{grid-template-columns:64px minmax(0,1fr);gap:12px}
  #scout.hs-menu-page .hs-menu-card .hs-menu-icon{width:64px;height:70px}
  #scout.hs-menu-page .hs-menu-icon .hs-menu-sprite{--sprite-scale:.85}
  :is(#study,#advanced,#scout).hs-menu-page .hs-menu-note{gap:9px;padding:11px 10px;font-size:13px;align-items:flex-start}
  :is(#study,#advanced,#scout).hs-menu-page .hs-menu-note .hs-menu-sprite{--sprite-scale:.75;margin-top:1px}
}
@media(prefers-reduced-motion:reduce){:is(#study,#advanced,#scout).hs-menu-page .hs-menu-card{transition:none}}

/* Each atlas column is one menu group; rows follow its heading and three guides. */
#advanced.hs-menu-page :is(.hs-menu-group-title,.hs-menu-icon) .hs-menu-sprite {
  width: var(--advanced-icon-size);
  height: var(--advanced-icon-size);
  background-image: url("/assets/immutable/advanced-menu-icons-d-fallback.f9ee094d141685e8.png");background-image: image-set(url("/assets/immutable/advanced-menu-icons-d.c5a55a988d369418.webp") type("image/webp"),url("/assets/immutable/advanced-menu-icons-d-fallback.f9ee094d141685e8.png") type("image/png"));
  background-size: 300% 400%;
  background-position: var(--advanced-icon-column) var(--advanced-icon-row);
}

#advanced.hs-menu-page .hs-menu-group-title .hs-menu-sprite { --advanced-icon-size: 43px; }
#advanced.hs-menu-page .hs-menu-icon .hs-menu-sprite { --advanced-icon-size: 56px; }
#advanced.hs-menu-page .advanced-guide-card .hs-menu-symbol .hs-menu-icon { height: 56px; }

#advanced :is(.hs-sprite-group-calc,.hs-sprite-bars,.hs-sprite-sigma,.hs-sprite-card) { --advanced-icon-column: 0%; }
#advanced :is(.hs-sprite-group-target,.hs-sprite-layers,.hs-sprite-pin,.hs-sprite-table) { --advanced-icon-column: 50%; }
#advanced :is(.hs-sprite-group-trophy,.hs-sprite-small-coins,.hs-sprite-trophy,.hs-sprite-warning) { --advanced-icon-column: 100%; }

#advanced :is(.hs-sprite-group-calc,.hs-sprite-group-target,.hs-sprite-group-trophy) { --advanced-icon-row: 0%; }
#advanced :is(.hs-sprite-bars,.hs-sprite-layers,.hs-sprite-small-coins) { --advanced-icon-row: calc(100% / 3); }
#advanced :is(.hs-sprite-sigma,.hs-sprite-pin,.hs-sprite-trophy) { --advanced-icon-row: calc(200% / 3); }
#advanced :is(.hs-sprite-card,.hs-sprite-table,.hs-sprite-warning) { --advanced-icon-row: 100%; }

@media (max-width: 440px) {
  #advanced.hs-menu-page .hs-menu-group-title .hs-menu-sprite { --advanced-icon-size: 34px; }
  #advanced.hs-menu-page .hs-menu-icon .hs-menu-sprite { --advanced-icon-size: 45px; }
  #advanced.hs-menu-page .advanced-guide-card .hs-menu-symbol .hs-menu-icon { height: 45px; }
}

/* Blue 3D study artwork. Existing info pixels are embedded separately during staging. */
#study.hs-menu-page .hs-menu-icon .hs-menu-sprite {
  width: 110px;
  height: 110px;
  background-image: url("/assets/immutable/study-menu-icons-3d-fallback.ded5e59a15d51950.png");background-image: image-set(url("/assets/immutable/study-menu-icons-3d.1d02b568f71c0671.webp") type("image/webp"),url("/assets/immutable/study-menu-icons-3d-fallback.ded5e59a15d51950.png") type("image/png"));
  background-size: 300% 100%;
  background-position: var(--study-icon-position) 0;
  background-repeat: no-repeat;
}
#study .hs-sprite-study-cards { --study-icon-position: 0%; }
#study .hs-sprite-study-grid { --study-icon-position: 50%; }
#study .hs-sprite-study-stack { --study-icon-position: 100%; }
#study.hs-menu-page .hs-menu-note .hs-sprite-info {
  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAdCAIAAAAyxktbAAAACXBIWXMAAAPoAAAD6AG1e1JrAAAHxElEQVRIiV2Wf4wVVxXHpy3bKgI20oUigd2sgW7ptjbIlh9lU4otoNQggin9kQJtKsSYSEhta6tAiFULYk0bjRYbU7dqSPsHUlqRKooCpdRSwo+y/Fh2d9578/POvXPvnR9v3txzrrkDNerkZua9vMznnZzzPd9zLJoglUAlUoFEQCiACIyqEzAVMBUnSpWo/+sChUJCLVB2UDoRuAwdii4Fj6LPIIgNgQi0Ki5QAZHAUEDAzQ8uBTdSzSZcZvGs/HA433c82XNMHhzIznlFrsyfFQXUfTXslQ5Fh4KhGzSG3ER2BX05zJCDz8EhJRMGWgth597k8S28bxWfvpBOmk8nzPWnznd7FvtLHuebdub/HCi1RsZhyG01KDgGjQFD8jHaPMxdIuHKjVp5E2SqX9jFF6ym4z5Pren+DXPprOVi4Zr0ntXijuXRjX2+Nd23OuKbFmZrnysuuJjlUAvLy+gwxkhoKtBi0nBZlfEwLlstaBD1wDNkTE9kdfq9K/n23zQPnSjP2WrIg2EXLtbVsYHWy2827/2GtLqE1VHMeUAePAN5AQ5RPgPCK6DUFkswTnWcIJNQKqx5atGGyOqK23r5Ey/mpy6VMtOgtCp12UJVoipN9kvUgy5s21VMWiSs9qx7aXJ0QGVNCJnJLUuQJ9qKExSp5hLKEnmGD22JrYlk8lfZr95u+TGKTBOOXoQkRqU1ap23kDKTQ5HrpND7Pih67ufWBDnz4cgOtUyRSeSpNmiRapFgnoPS+Pv9xVU3scmLxW8PNvNCBxSGA6wTDGOIOLzwKn9wo/fnI2WSox1hg2EgjE4OnW52LWPWBPbULwUimlgzlGmFjhNAQJfDF9bIMdP593dloLRHwA6wEWGDIk3x2OnW6G7X+qT9yKa4UNqO0BHocgxiQ+/fl4++RUy4Mzo1gq1SywzTHC2eYtYE1Ni/v2V1y7713BeQpGj76DCsERM1kXjkRGt87/CorvNPvsSzFo4QbAgMEtMaPMVWS3/pCdk2QWx5paW1TnIw6DhBBAxStezpdMx08eM9qdbaJeDHJuQaQTvAWgg+haOnsneOSttThGONoivRl0gTZFVa/ni4HNud9D4oZaqLEpMMrVii1njWVZOWsWl90dHBAhX6Jr/oELRDHA7N3Q7w9b9mO9+Upy+WVOJIhJ7AsOoGnmBLIU31tGVy/Gx5dsjUO8nA4okR04lhdc1CNmsFcWhZtkxH/Qd9KURX6Pc+Kj/d64zujNZvT/NSD4c6EDqqGkJkmOSIWi/fKMfNSN95r8pJhTZR/+s8WPPi2asiIlWaY0ANvV7Fe8lDj+HJi2rsTG6156s2Jy2l7VCHUlOJcWrQPEWNet1WMa472f23QmstM3UF/cF5uGpO3LuCBEKlGfoUPYqNEGshDrnoEn3Bhu4lYtQ0+a1tsih1LdREapYaqMjM0Vo/tpmNu1m8dbBZocGKE9Aajw+qq+eIni/Ss41Ws4kNgm6EdVNAHPLQo/piTc1YQq7pjDdsk6ZpQ5NlgzaNhzLDZolfXkfG3Rr//X3jWSIFixqTg4/qauLiZOLt8vUjqSpxxFeNShsjIQ576MV6sKFuX0qunRI/uSMFNMqJPjYfxiEv8IwNHQvc9vlsYARKwFiCFQlolUAStfKpvG1KuvZ5jloPeapWqcLIIzB9YbswbwUd2yM2/zwHRDuEUBpRM4khBQ34o9fS0Z1O32NxmmuRKibRqtRjWuaVvaU1RXQsTQ+cLLMmnrNVLTL6rROj3BEPZixNr52abtiWaW2UHnIjap+gSMClePMyv63T+WG/0UoYl5FEi0hjEarUJ+2y62v8uo7sno25z5EwON8AJ0YvRt5EO4C+R/LJd/JNv0gVosfMMGoQINQMjW/vYG0dXseixgXHBOpRFXK0CEefIeWQlrjjjcyaTD9xa/notpSnOslxOECHQJwhz/T7p9WB48VgXckcPQr1ACp16Z/tktfP8qwbg+f7k6KpG6FyKfgMrSBGPzaTTWToxbD8e9K6Qbbdlj26NT0zbCIqCkhTlBXFOHVpStRsma8she39tH1eYLXX79sQ+7F2QlUPzZB0KVh+jG6MDtN1AjwzrrTqGWl1UmsqW/xN8dr+1K287f+uKFNvvSvWbiWf6mlY19v3rg/O18uIw4iv6sTMKScCy2Nopn2s61SPBCAzU/dnXxbt8yPrs9H4uXzlBv7cr/kf3k72/CPdezh944D8aT9d+6zXdZdrjW9cPcN76LvRmVrJE7jkqhoxFTZoYtDgMGPKDaprRA95IFJsab37UP7w07JjAbM+51vd7mfu8Kbc5U7pG2mfOTiqa8CaePa67trda9hLu5OG0CKFIU/ZIdimgaFBwL2CNlxzapGuR0azpPJJIuAvx/Kf/C7/+nf47PuDW+5zuhcN3/aVobtX19b9gLz6J3G6XpZaMwlDAdgE7BDqobGHxuVceww88+kKvcHQ59qlprZltcdoreuh+nAgf/dkfvhUduxcdrZecONuZhB7FG0CdRMW1EMwiY7QrZYpg/YN/fJyhW6svdhYT5Ro0xRSZU3jX/9bRSgKCBg4xMRkVEDRicAcaszHiI+CFcRmS/OrncpjJtgg1qRaenimRYYsAWY2N0UFhEyFsfLNLmi6MayEW71o3jUnNoquIPBv4MCObtDsFIEAAAAASUVORK5CYII=");background-image: image-set(url("data:image/webp;base64,UklGRkoHAABXRUJQVlA4TD4HAAAvHQAHACYqEwCskhtdx0zhlJmZmZmZFTMzMzMzMzMzt2Hc67573/e+9/HCe7ev9Dta2dr+grpMXFbXMV5t/coD2fcD4jKr6+LXbsCdbqtqG3trO2vvZBrbVHYqT++PONuJ6sQW1NV2zhX02v6GwE8o2ORzBV/ZqetEZc4FZiQBAFhGUnb3bNu2bdu2bds2X7Zt27bVmTg1xqoE2bbbttn/CtN7ISlWAAQhEv/d1//kOkwX06E6VBVVRFWohmvK8T43w4rhuFZK2XGYLR2FDrtBZTIQBTEhjimEZaVS/ftTXW43IisVN1j4Q1JKWr3Rh3bbzfOmy6XWo0v7ddtBVCCsTByap3dHVHGTC8sQBbd/f9cliogQpJ0aUgDpnD3nFqPToo3T9GW2KfNvk+WZpiwyzFJpWqldOnhJq/WkOy7EkFd6EFGZyTFliIobdsNMg6hhsMcflHB84ta0TLNtnCxbDTBNlmubr1ZetkVdplWer846Vb7pu1HAMX3Za9vht/cPvoAA6mUxrEA1/80MwtygP1Z6MCJIYqP+y5iZ1kpgWrB2Onzj+46nvcmv0CR5PfL8jVqvn7N3v1duXaqAPAq4F6tX7n2kQFCQRq+CMDNcIUxzE2bIjqKhWKPNWgUcE6VOe81qDb506diO24o5GKXP0yoUtfefTtxwz5w/DwWuOcqdtV6GPyBTkVvBLZcK28ySFUVabDHwGAYs8xbcz9v1YIG0XWBwsIoTs5NwMIip4/psB3y+9ea9SKU0NChL1lgBtHBIC8vvteQ2vqCcGBcdv2sm7bMUzFcefgeCRrJ0DxCDFRFNR25Naw0Yr7vVfT4MiEmgMuqep+95SuxDg/2AuTmUoFTaCMctuamsBIRp2ZqlRqZ04uLrP8ilQwwCIgide14/o2YYBgG/Nxty2GH3oxTC+F1dcKSNkSFPkWdt/AUrYung8yMsWjkJLjryjArKqo0TFRI+MiEmBSKaMZU7nj8T5fxZJdXnveekYADohRK4TKo4GPE67cvQqfOhyx7l86lz6TdCjg261hqZ8lnrqoJMkf87tAFISOjul9cNd4oGowAhGIMJWlMDde2lPmrmc/Ha5R8rjPTBTBwX74+YJ/8+Vem1/svbTgAFWAFSAAR4KGlz6Znr7D2l3tceNrxQDlNIcAs7gtA9T+kySc7S8EekpU/csmr0MaZP2ReotSDam3fp9G4J+A9lvu9Vnyjr/0oZ1p3HVSto4DGVnaiQNr3z1+peRs9Sb7zzqE+j6TpvNTk4Fq27MjU6I5kuAFOi/cfk1Psc42dOQ4G2eb/TjvhrpjgsTNoUh1xvNTaPmuW8/OLtuJZORNN13mnSpGOB2guVQ/pBAsQBBIDwSkDmJn80a7lcPVXZaVKxwgbITLUwKG7TRm0+ch8tS77y2ltJRx+l67+PSZPzDJW2jB+PPwQkGAwdk6dJIO6mf2PWCkullGOnacWOkpd4MxqVDlaIVTosY2U5bn7Y08LWz44rz/eYJe85bt5y3ZnaJ9MbP+kQ4EXzgLkz/sUc1ZaR0hy7zqmhOBCRCHMDYigQpMk3TVt0mDL33vinsqIwU1STFRFXY/1ebaTUdcfhyUlYkyKvDfDQ5ncv1AINtjEz532XtrcA1LNUhRkgRVkux6ytlTL8X6Hx4fNb2JFOcEtOgnP29ZFAnqNovet+9wdo8isMxC/NPtO8mqNCHTlN3Wna5bgAJKLQuj23hRjzlJ8qpf5/9JoWSvi1BFPBiqyYm3zu85dIo6S91mrViMBUlfFbmII5fgsdaunGbYqCab8lNRQjJwWJkCq169R9lNTjzEX/PfCHNxCP8gJTQHRZfk7ZfI0AtrHS9Z1GVGG591OQSppIy/e8idvu355/4XNAXDpWVJ24rUyYbRwWvI5ef/rDBiTiA3+PlEkbzLVJ9zIkKGOnvrYaURt9kwqEJfxwB6XeZqaCIZQwdPTGbfLcr6HA3zU6HVgY0ABY8XgEM0xqiPXtixv1K5XANjLYV2+bLzpa/1CPklpcfy1vNXwZM+O/QcHvVVu/PL870ZTpjb4di2JfYmqErXv1OFU5aGGeMvc6PFgny5nW6JUOWZ3OO3Fedblee7VedrYcvWXbePg4TYlhCPBv9ORxw4Fr02+dW/L+jw4tOrbKeQIREDFE1iQJGyfiay62DQaVaYvuVcE0KhgmzjFOU3iYqvCv8XN/q5Lq4zDgw6hp/yzbfD9j50mJn/y+sKQFJPo3B1Gysw1kA1OYUh/edLcdu6mt2zstUvc1Z8X/M5f7OVeVH8s0/7PN2OX8Q9nztTtRM0O6JAhVCDCfICLElPNYMjvbJBDhZKST41oBHLU+tLtetLufXbVfX54fd9Cyao44XyCMgQSw+hqEZDyn1zPdk5i5K1PNNZczPd5JK6WU4yoQlikLUiX/6F5U1N1gxJHQjz92zYlFsOxUuGcbbuhzqgfVZSqBlTBFfFyOFSI5ObHYBwMjPwI=") type("image/webp"),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAdCAIAAAAyxktbAAAACXBIWXMAAAPoAAAD6AG1e1JrAAAHxElEQVRIiV2Wf4wVVxXHpy3bKgI20oUigd2sgW7ptjbIlh9lU4otoNQggin9kQJtKsSYSEhta6tAiFULYk0bjRYbU7dqSPsHUlqRKooCpdRSwo+y/Fh2d9578/POvXPvnR9v3txzrrkDNerkZua9vMznnZzzPd9zLJoglUAlUoFEQCiACIyqEzAVMBUnSpWo/+sChUJCLVB2UDoRuAwdii4Fj6LPIIgNgQi0Ki5QAZHAUEDAzQ8uBTdSzSZcZvGs/HA433c82XNMHhzIznlFrsyfFQXUfTXslQ5Fh4KhGzSG3ER2BX05zJCDz8EhJRMGWgth597k8S28bxWfvpBOmk8nzPWnznd7FvtLHuebdub/HCi1RsZhyG01KDgGjQFD8jHaPMxdIuHKjVp5E2SqX9jFF6ym4z5Pren+DXPprOVi4Zr0ntXijuXRjX2+Nd23OuKbFmZrnysuuJjlUAvLy+gwxkhoKtBi0nBZlfEwLlstaBD1wDNkTE9kdfq9K/n23zQPnSjP2WrIg2EXLtbVsYHWy2827/2GtLqE1VHMeUAePAN5AQ5RPgPCK6DUFkswTnWcIJNQKqx5atGGyOqK23r5Ey/mpy6VMtOgtCp12UJVoipN9kvUgy5s21VMWiSs9qx7aXJ0QGVNCJnJLUuQJ9qKExSp5hLKEnmGD22JrYlk8lfZr95u+TGKTBOOXoQkRqU1ap23kDKTQ5HrpND7Pih67ufWBDnz4cgOtUyRSeSpNmiRapFgnoPS+Pv9xVU3scmLxW8PNvNCBxSGA6wTDGOIOLzwKn9wo/fnI2WSox1hg2EgjE4OnW52LWPWBPbULwUimlgzlGmFjhNAQJfDF9bIMdP593dloLRHwA6wEWGDIk3x2OnW6G7X+qT9yKa4UNqO0BHocgxiQ+/fl4++RUy4Mzo1gq1SywzTHC2eYtYE1Ni/v2V1y7713BeQpGj76DCsERM1kXjkRGt87/CorvNPvsSzFo4QbAgMEtMaPMVWS3/pCdk2QWx5paW1TnIw6DhBBAxStezpdMx08eM9qdbaJeDHJuQaQTvAWgg+haOnsneOSttThGONoivRl0gTZFVa/ni4HNud9D4oZaqLEpMMrVii1njWVZOWsWl90dHBAhX6Jr/oELRDHA7N3Q7w9b9mO9+Upy+WVOJIhJ7AsOoGnmBLIU31tGVy/Gx5dsjUO8nA4okR04lhdc1CNmsFcWhZtkxH/Qd9KURX6Pc+Kj/d64zujNZvT/NSD4c6EDqqGkJkmOSIWi/fKMfNSN95r8pJhTZR/+s8WPPi2asiIlWaY0ANvV7Fe8lDj+HJi2rsTG6156s2Jy2l7VCHUlOJcWrQPEWNet1WMa472f23QmstM3UF/cF5uGpO3LuCBEKlGfoUPYqNEGshDrnoEn3Bhu4lYtQ0+a1tsih1LdREapYaqMjM0Vo/tpmNu1m8dbBZocGKE9Aajw+qq+eIni/Ss41Ws4kNgm6EdVNAHPLQo/piTc1YQq7pjDdsk6ZpQ5NlgzaNhzLDZolfXkfG3Rr//X3jWSIFixqTg4/qauLiZOLt8vUjqSpxxFeNShsjIQ576MV6sKFuX0qunRI/uSMFNMqJPjYfxiEv8IwNHQvc9vlsYARKwFiCFQlolUAStfKpvG1KuvZ5jloPeapWqcLIIzB9YbswbwUd2yM2/zwHRDuEUBpRM4khBQ34o9fS0Z1O32NxmmuRKibRqtRjWuaVvaU1RXQsTQ+cLLMmnrNVLTL6rROj3BEPZixNr52abtiWaW2UHnIjap+gSMClePMyv63T+WG/0UoYl5FEi0hjEarUJ+2y62v8uo7sno25z5EwON8AJ0YvRt5EO4C+R/LJd/JNv0gVosfMMGoQINQMjW/vYG0dXseixgXHBOpRFXK0CEefIeWQlrjjjcyaTD9xa/notpSnOslxOECHQJwhz/T7p9WB48VgXckcPQr1ACp16Z/tktfP8qwbg+f7k6KpG6FyKfgMrSBGPzaTTWToxbD8e9K6Qbbdlj26NT0zbCIqCkhTlBXFOHVpStRsma8she39tH1eYLXX79sQ+7F2QlUPzZB0KVh+jG6MDtN1AjwzrrTqGWl1UmsqW/xN8dr+1K287f+uKFNvvSvWbiWf6mlY19v3rg/O18uIw4iv6sTMKScCy2Nopn2s61SPBCAzU/dnXxbt8yPrs9H4uXzlBv7cr/kf3k72/CPdezh944D8aT9d+6zXdZdrjW9cPcN76LvRmVrJE7jkqhoxFTZoYtDgMGPKDaprRA95IFJsab37UP7w07JjAbM+51vd7mfu8Kbc5U7pG2mfOTiqa8CaePa67trda9hLu5OG0CKFIU/ZIdimgaFBwL2CNlxzapGuR0azpPJJIuAvx/Kf/C7/+nf47PuDW+5zuhcN3/aVobtX19b9gLz6J3G6XpZaMwlDAdgE7BDqobGHxuVceww88+kKvcHQ59qlprZltcdoreuh+nAgf/dkfvhUduxcdrZecONuZhB7FG0CdRMW1EMwiY7QrZYpg/YN/fJyhW6svdhYT5Ro0xRSZU3jX/9bRSgKCBg4xMRkVEDRicAcaszHiI+CFcRmS/OrncpjJtgg1qRaenimRYYsAWY2N0UFhEyFsfLNLmi6MayEW71o3jUnNoquIPBv4MCObtDsFIEAAAAASUVORK5CYII=") type("image/png"));
  background-size: calc(30px * var(--sprite-scale)) calc(29px * var(--sprite-scale));
  background-position: 0 0;
}
body[data-theme="dark"] #study.hs-menu-page .hs-menu-icon .hs-menu-sprite {
  filter: none;
  mix-blend-mode: normal;
}
@media (max-width: 440px) {
  #study.hs-menu-page .hs-menu-icon .hs-menu-sprite { width: 84px; height: 84px; }
}
