/* The Studio Chess 2.6 — shared visual system. Loaded after page styles so every section feels like one product. */
:root{
  color-scheme:light;
  --rook-paper:#f5f7fc;--rook-white:#fff;--rook-ink:#18243b;--rook-muted:#66748a;
  --rook-line:#dfe6f1;--rook-blue:#3658d7;--rook-blue-deep:#2948c5;--rook-blue-soft:#edf1ff;
  --rook-mint:#e8f7f2;--rook-coral:#fff0ed;--rook-lilac:#f2efff;
  --rook-shadow:0 10px 28px rgba(34,54,104,.065);--rook-shadow-hover:0 17px 38px rgba(34,54,104,.12);
  --rook-radius:17px;
  font-family:"DM Sans",Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
}
html.rookline-shell-enabled body{background:var(--rook-paper)!important;color:var(--rook-ink)!important;font-family:inherit!important}
html.rookline-shell-enabled :where(h1,h2,h3,h4,p,li,label,small,button,input,select,textarea){font-family:inherit}
html.rookline-shell-enabled :where(h1,h2,h3){color:var(--rook-ink);letter-spacing:-.045em}
html.rookline-shell-enabled :where(a){text-underline-offset:.18em}
html.rookline-shell-enabled :where(a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible){outline:3px solid #91a6f2;outline-offset:3px}
html.rookline-shell-enabled :where(.sheet,.panel,.card,.account-card,.community-card,.catalog-card,.academy-card,.studio-card,.lesson-card,.review-card,.progress-card,.position-card,.workspace-card,.tournament-card,.match-card,.board-card,.shop-preview,.callout,.notice-card,.report-card,.study-card){border-color:var(--rook-line);border-radius:var(--rook-radius);box-shadow:var(--rook-shadow)}
html.rookline-shell-enabled :where(.sheet,.panel,.account-card,.community-card,.catalog-card,.academy-card,.lesson-card,.review-card,.progress-card,.position-card,.workspace-card,.tournament-card,.match-card,.board-card,.report-card,.study-card){background:var(--rook-white)}
html.rookline-shell-enabled :where(.eyebrow,.smallcap,.folio,.tag,.crumb){letter-spacing:.105em;font-weight:800}
html.rookline-shell-enabled :where(.lede,.intro,.muted,.note,.hint){color:var(--rook-muted)}
html.rookline-shell-enabled :where(.action,.studio-button,.bots-button,.academy-primary,.primary-button,.dialog-button,.new-game,.catalog-bottom .read,.edition-buy button[type="submit"]){border-radius:11px;font-weight:780;transition:transform .16s ease,box-shadow .16s ease,background .16s ease}
html.rookline-shell-enabled :where(.action,.studio-button:not(.secondary),.bots-button.primary,.academy-primary,.primary-button,.new-game,.edition-buy button[type="submit"]){background:var(--rook-blue);border-color:var(--rook-blue);color:#fff}
html.rookline-shell-enabled :where(.action,.studio-button,.bots-button,.academy-primary,.primary-button,.dialog-button,.new-game,.catalog-bottom .read,.edition-buy button[type="submit"]):hover{transform:translateY(-1px);box-shadow:0 8px 18px rgba(54,88,215,.15)}
html.rookline-shell-enabled :where(.secondary,.secondary-button,.quiet-button,.sample-board-actions button){border-radius:10px;border-color:#d6deed;background:#fff;color:#40516f;font-weight:720}
html.rookline-shell-enabled :where(input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea){border:1px solid #d8e1ef;border-radius:10px;background:#fff;color:var(--rook-ink);box-shadow:inset 0 1px 2px rgba(30,48,80,.025)}
html.rookline-shell-enabled :where(input,select,textarea)::placeholder{color:#98a3b5}
html.rookline-shell-enabled :where(table){border-collapse:separate;border-spacing:0;border:1px solid var(--rook-line);border-radius:13px;overflow:hidden;background:#fff}
html.rookline-shell-enabled :where(th){background:#f2f5fc;color:#52617a;font-size:.75rem;letter-spacing:.035em;text-transform:uppercase}
html.rookline-shell-enabled :where(td,th){border-color:#e8edf5}
html.rookline-shell-enabled :where(.status,.notice,.flash,.alert){border-radius:10px}
html.rookline-shell-enabled :where(.tag,.pill,.badge,.chip){border-radius:999px}
/* Global shell: light cobalt, geometric and compact. */
html.rookline-shell-enabled .rookline-app-sidebar{background:rgba(255,255,255,.97);border-right-color:#e1e7f2;box-shadow:5px 0 24px rgba(31,52,101,.045)}
html.rookline-shell-enabled .rookline-sidebar-mark{background:linear-gradient(145deg,#edf1ff,#e6f7f2)}
html.rookline-shell-enabled .rookline-sidebar-brand-copy strong{color:#1b2944}
html.rookline-shell-enabled .rookline-sidebar-home[aria-current=page],html.rookline-shell-enabled .rookline-sidebar-tools[aria-current=page],html.rookline-shell-enabled .rookline-sidebar-link[aria-current=page]{background:#edf1ff;color:#2f4fc9}
html.rookline-shell-enabled .rookline-sidebar-link[aria-current=page]{box-shadow:inset 3px 0 #4664e4}
html.rookline-shell-enabled .rookline-sidebar-link:hover,html.rookline-shell-enabled .rookline-sidebar-home:hover,html.rookline-shell-enabled .rookline-sidebar-tools:hover{background:#f4f6fd;color:#2b45aa}
html.rookline-shell-enabled .rookline-app-topbar{background:rgba(255,255,255,.93);border-bottom-color:#e1e7f2;box-shadow:0 2px 12px rgba(30,48,80,.025)}
html.rookline-shell-enabled .rookline-topbar-link.primary{background:var(--rook-blue);border-color:var(--rook-blue)}
html.rookline-shell-enabled .rookline-sound-toggle[aria-pressed=true]{background:#edf7f3;border-color:#b9e2d5;color:#187c6b}
/* Home: vivid but calm hero, playful geometry, no characters or faces. */
html.rookline-shell-enabled .studio-hero{border-color:#dce4f6;background:linear-gradient(118deg,#edf1ff 0%,#fbfcff 54%,#e7f7f2 100%);box-shadow:0 14px 36px rgba(38,59,117,.075)}
html.rookline-shell-enabled .studio-hero>img{max-height:345px;min-height:250px;object-fit:contain;filter:drop-shadow(0 16px 18px rgba(41,63,131,.11));animation:rookline-float 6.5s ease-in-out infinite}
html.rookline-shell-enabled .hero-eyebrow:before{background:#e58a7d;box-shadow:0 0 0 5px rgba(229,138,125,.13)}
html.rookline-shell-enabled .studio-proof-board,html.rookline-shell-enabled .studio-proof-review{border-radius:19px;box-shadow:var(--rook-shadow)}
html.rookline-shell-enabled .studio-card{border-color:#e0e6f1;border-radius:16px;box-shadow:0 6px 20px rgba(35,52,95,.04)}
html.rookline-shell-enabled .studio-card:hover{border-color:#bdcafa;box-shadow:var(--rook-shadow-hover)}
html.rookline-shell-enabled .studio-symbol{background:linear-gradient(145deg,#edf1ff,#e9f8f3);color:#3658d7;border-radius:12px}
html.rookline-shell-enabled .studio-proof-review{background:linear-gradient(145deg,#304bb9,#4768df 65%,#5275dc);border-color:#304bb9}
/* Tool heroes and shared workspaces. */
html.rookline-shell-enabled :where(.bots-hero,.shop-hero,.page-hero,.academy-hero,.studio-hero-panel,.community-hero,.tournament-hero,.section-hero){border:1px solid #dce5f4;border-radius:20px;background:linear-gradient(120deg,#edf1ff,#f9fbff 60%,#e9f7f3);box-shadow:var(--rook-shadow)}
html.rookline-shell-enabled .bots-hero-art img{filter:drop-shadow(0 12px 16px rgba(46,69,137,.12))}
html.rookline-shell-enabled .bot-level-card{border-color:#e0e6f1;border-radius:15px;background:#fff;box-shadow:0 5px 17px rgba(35,52,95,.04)}
html.rookline-shell-enabled .bot-level-card:hover{border-color:#bdcafa;box-shadow:var(--rook-shadow-hover)}
html.rookline-shell-enabled .bot-avatar-art{border-radius:15px}
/* Shop and product pages: premium study editions, no misleading urgency. */
html.rookline-shell-enabled .shop-hero{padding:clamp(24px,4vw,48px);border:1px solid #dce5f4;border-radius:22px;background:linear-gradient(120deg,#edf1ff 0%,#fbfcff 58%,#e7f7f2 100%);box-shadow:var(--rook-shadow)}
html.rookline-shell-enabled .shop-hero h1{max-width:12ch;font-size:clamp(2.6rem,5vw,4.7rem);line-height:.98;letter-spacing:-.065em}
html.rookline-shell-enabled .shop-hero .edition-cover{border:1px solid rgba(89,111,190,.22);border-radius:16px;box-shadow:0 14px 24px rgba(44,61,119,.12)}
html.rookline-shell-enabled .catalog-nav{position:sticky;top:66px;z-index:20;gap:8px;padding:12px 0;border:0;background:rgba(245,247,252,.92);backdrop-filter:blur(12px)}
html.rookline-shell-enabled .catalog-nav a{display:inline-flex;align-items:center;min-height:35px;padding:7px 12px;border:1px solid #dfe6f1;border-radius:999px;background:#fff;color:#52617a;text-decoration:none}
html.rookline-shell-enabled .catalog-nav a:hover{border-color:#b7c6f4;background:#edf1ff;color:#304fc7}
html.rookline-shell-enabled .catalog-grid{gap:17px}
html.rookline-shell-enabled .catalog-card{border:1px solid #e0e6f1;border-radius:17px;background:#fff;box-shadow:0 7px 22px rgba(38,55,99,.055);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
html.rookline-shell-enabled .catalog-card:hover{transform:translateY(-3px);border-color:#c5d0f1;box-shadow:0 17px 34px rgba(38,55,99,.105)}
html.rookline-shell-enabled .edition-cover{min-height:164px;border:0;border-radius:0;background:linear-gradient(135deg,var(--field,#e9efff),#f7f9ff);}
html.rookline-shell-enabled .edition-cover::before{left:10%;top:12%;width:92%;height:100%;opacity:.8;background:repeating-conic-gradient(#ffffffa8 0 25%,transparent 0 50%) 0 0/34px 34px;transform:rotate(-8deg) skewY(-7deg)}
html.rookline-shell-enabled .edition-cover span,html.rookline-shell-enabled .edition-cover i,html.rookline-shell-enabled .edition-cover b{width:13%;height:57%;right:24%;bottom:17%;border-radius:5px;background:var(--piece);box-shadow:7px 7px 0 rgba(27,42,87,.09);transform:skewY(-10deg)}
html.rookline-shell-enabled .edition-cover span:after{content:"";position:absolute;left:-32%;right:-32%;height:13%;top:-10%;border-radius:3px;background:var(--accent)}
html.rookline-shell-enabled .edition-cover i{right:45%;height:37%;bottom:9%;background:var(--plane)}
html.rookline-shell-enabled .edition-cover b{right:8%;bottom:43%;height:25%;background:var(--accent);box-shadow:none}
html.rookline-shell-enabled .edition-calc{--field:#e5edff;--plane:#95a9ed;--piece:#3658d7;--accent:#fff}
html.rookline-shell-enabled .edition-open{--field:#e2f5ef;--plane:#85cbbb;--piece:#287f75;--accent:#fff}
html.rookline-shell-enabled .edition-end{--field:#f0eaff;--plane:#b8a7e8;--piece:#7653c8;--accent:#fff}
html.rookline-shell-enabled .edition-bundle{--field:#dfe7ff;--plane:#91a6ef;--piece:#304bb9;--accent:#f8faff}
html.rookline-shell-enabled .edition-class{--field:#fff0eb;--plane:#edb19f;--piece:#c96658;--accent:#fffaf7}
html.rookline-shell-enabled .catalog-content{padding:18px 19px 19px}
html.rookline-shell-enabled .catalog-content .smallcap{color:#5268bd;font-size:.64rem;letter-spacing:.11em}
html.rookline-shell-enabled .catalog-content h3{font-size:1.26rem;letter-spacing:-.04em}
html.rookline-shell-enabled .catalog-content>p:not(.smallcap){color:#647189;font-size:.87rem;line-height:1.6}
html.rookline-shell-enabled .edition-price{color:#738097;font-size:.79rem}
html.rookline-shell-enabled .edition-price strong{color:#1c2a43;font-size:1.7rem;letter-spacing:-.055em}
html.rookline-shell-enabled .catalog-bottom .read{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:8px 11px;border:1px solid #d8e1f4;border-radius:9px;background:#edf1ff;color:#304fc7;text-decoration:none;font-size:.78rem}
html.rookline-shell-enabled .catalog-bottom .read:hover{background:#e1e8ff;text-decoration:none}
html.rookline-shell-enabled .offer-grid .sheet{border:1px solid #e0e6f1;border-radius:15px;background:#fff;box-shadow:0 6px 18px rgba(38,55,99,.045)}
html.rookline-shell-enabled .delivery-strip{border:1px solid #dfe7f3;border-radius:16px;background:#fff;padding:22px 24px}
html.rookline-shell-enabled .book-wrap{border:1px solid #dce5f4;border-radius:18px;background:linear-gradient(135deg,#eaf0ff,#e9f8f3);box-shadow:var(--rook-shadow)}
html.rookline-shell-enabled .cover{--book:#3658d7;--book-dark:#263f9f;--book-light:#dbe4ff;background:linear-gradient(145deg,var(--book),var(--book-dark));border-left-color:var(--book-dark);border-radius:5px;box-shadow:10px 12px 0 rgba(40,57,112,.14),0 20px 34px rgba(40,57,112,.16);transform:rotate(-2deg)}
html.rookline-shell-enabled .cover:after{border-color:rgba(255,255,255,.38)}
html.rookline-shell-enabled .cover span{color:var(--book-light)}
html.rookline-shell-enabled .cover strong{font-family:inherit;font-weight:780;letter-spacing:-.06em}
html.rookline-shell-enabled .cover small{color:#d9e2ff}
html.rookline-shell-enabled .edition-buy{border:1px solid #dfe6f1;border-radius:16px;background:#fff;padding:clamp(18px,3vw,26px);box-shadow:var(--rook-shadow)}
html.rookline-shell-enabled .shop-preview{border:1px solid #dce5f4;border-radius:16px;background:linear-gradient(135deg,#f0f3ff,#f4fbf8)}
html.rookline-shell-enabled .promo{border-radius:18px;background:linear-gradient(125deg,#2c47b3,#4769de);box-shadow:0 14px 28px rgba(43,65,161,.17)}
html.rookline-shell-enabled .promo a{color:#fff}
html.rookline-shell-enabled .footer{border-color:#e0e6f1;background:#fff;color:#718096}
/* Fine polish across workspace widgets. */
html.rookline-shell-enabled :where(.bots-filters button,.filter-row button,.tabs button,[role=tab]){border-radius:999px}
html.rookline-shell-enabled :where(.bots-filters button[aria-pressed=true],[role=tab][aria-selected=true]){background:#edf1ff;border-color:#bdcaf4;color:#2f4fc6}
html.rookline-shell-enabled :where(.empty,.empty-state,.empty-history){border:1px dashed #cfd9ec;border-radius:13px;background:#f9faff;color:#718097;padding:16px}
html.rookline-shell-enabled .rookline-sound-toggle[aria-pressed=true]{background:#e9f7f1;border-color:#b9e1d4;color:#177969}
@keyframes rookline-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-7px)}}
@media(max-width:900px){html.rookline-shell-enabled .catalog-nav{top:52px}}
@media(max-width:760px){html.rookline-shell-enabled .studio-hero>img{min-height:160px;max-height:220px;animation:none}html.rookline-shell-enabled .shop-hero{padding:22px 18px}html.rookline-shell-enabled .delivery-strip{padding:16px}html.rookline-shell-enabled .rookline-app-topbar{box-shadow:0 2px 10px rgba(30,48,80,.035)}}
@media(prefers-reduced-motion:reduce){html.rookline-shell-enabled *,html.rookline-shell-enabled *::before,html.rookline-shell-enabled *::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
/* Home study cards and discoverable shop filters. */
html.rookline-shell-enabled .home-study-section{border:1px solid #dfe6f2;border-radius:20px;background:linear-gradient(120deg,#fff 0%,#f8faff 65%,#f0faf6 100%);box-shadow:var(--rook-shadow)}
html.rookline-shell-enabled .catalog-tools{display:grid;grid-template-columns:minmax(220px,1fr) minmax(170px,.36fr) auto;align-items:end;gap:12px;margin:17px 0 8px;padding:15px 16px;border:1px solid #dfe6f1;border-radius:15px;background:#fff;box-shadow:0 5px 18px rgba(38,55,99,.035)}
html.rookline-shell-enabled .catalog-tools label{display:grid;gap:6px;color:#63718a;font-size:.7rem;font-weight:800;letter-spacing:.035em}
html.rookline-shell-enabled .catalog-tools input,html.rookline-shell-enabled .catalog-tools select{width:100%;min-height:39px;padding:8px 11px;font-size:.82rem;letter-spacing:normal;font-weight:550}
html.rookline-shell-enabled #catalog-count{margin:0 2px 10px;color:#77849a;font-size:.75rem;font-weight:700;white-space:nowrap}
html.rookline-shell-enabled .catalog-card[hidden]{display:none!important}
html.rookline-shell-enabled .catalog-empty{margin:18px 0;padding:24px;border:1px dashed #cbd6eb;border-radius:14px;background:#fff;color:#6c7890;text-align:center}
html.rookline-shell-enabled .catalog-empty[hidden]{display:none!important}
html.rookline-shell-enabled .shop-promise{display:flex;flex-wrap:wrap;gap:7px;margin:13px 0 4px}
html.rookline-shell-enabled .shop-promise span{display:inline-flex;align-items:center;min-height:25px;padding:5px 9px;border:1px solid #dce5f6;border-radius:999px;background:rgba(255,255,255,.72);color:#4b62ba;font-size:.59rem;font-weight:850;letter-spacing:.075em}
html.rookline-shell-enabled .shop-hero .status{color:#64728c;font-size:.78rem}
html.rookline-shell-enabled .catalog-tools input:focus,html.rookline-shell-enabled .catalog-tools select:focus{border-color:#8ea2eb;box-shadow:0 0 0 3px rgba(75,101,209,.11);outline:none}
@media(max-width:650px){html.rookline-shell-enabled .catalog-tools{grid-template-columns:1fr 1fr;gap:9px;padding:12px}html.rookline-shell-enabled .catalog-search-label{grid-column:1/-1}html.rookline-shell-enabled #catalog-count{align-self:center;margin:0 0 5px;text-align:right}}

/* The Studio Chess 2.6 — one responsive system across every workspace and study page. */
:root{
  --paper:#f5f7fc;--card:#fff;--ink:#18243b;--muted:#66748a;--line:#dfe6f1;
  --primary:#3658d7;--tint:#edf1ff;--coral:#d97970;--pine:#3658d7;
  --rl-gap:clamp(14px,1.8vw,22px);
}
html.rookline-shell-enabled{background:var(--paper);scroll-behavior:smooth}
html.rookline-shell-enabled body{min-height:100vh;overflow-x:clip;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
html.rookline-shell-enabled :where(main,section,article,aside,header,footer,form,fieldset,nav,div){min-width:0}
html.rookline-shell-enabled :where(h1,h2,h3,h4){text-wrap:balance}
html.rookline-shell-enabled :where(p,li,td,dd){overflow-wrap:break-word}
html.rookline-shell-enabled :where(button,a,input,select,textarea){-webkit-tap-highlight-color:transparent}
html.rookline-shell-enabled :where(button:not(:disabled),a){transition:background-color .16s ease,border-color .16s ease,color .16s ease,box-shadow .16s ease,transform .16s ease}
html.rookline-shell-enabled body>main#main:not(.studio-wrap):not(.embed-shell){width:min(calc(100% - clamp(28px,4vw,72px)),1360px);max-width:1360px;margin-inline:auto;padding:clamp(25px,3.1vw,43px) 0 70px;box-sizing:border-box}
html.rookline-shell-enabled :where(.academy-main,.studio-main,.bots-main,.menu-main,.community-main,.progress-main,.position-main,.spectate-main,.sprint-main,.clock-main){width:min(100%,1360px);max-width:1360px;margin-inline:auto;padding:clamp(24px,3vw,40px) clamp(16px,2.4vw,32px) 68px;box-sizing:border-box}
html.rookline-shell-enabled .account-main{width:min(100%,900px);max-width:900px;margin-inline:auto;padding:clamp(25px,3vw,42px) clamp(16px,2.4vw,32px) 68px;box-sizing:border-box}
html.rookline-shell-enabled .progress-main{width:min(100%,1280px);max-width:1280px}
html.rookline-shell-enabled .position-main{width:min(100%,1320px);max-width:1320px}
html.rookline-shell-enabled .community-main{width:min(100%,1320px);max-width:1320px}
html.rookline-shell-enabled .academy-main{width:min(100%,1360px);max-width:1360px}
html.rookline-shell-enabled .studio-main{width:min(100%,1360px);max-width:1360px}
html.rookline-shell-enabled .academy-intro{max-width:790px;margin:0 0 clamp(22px,3vw,34px)}
html.rookline-shell-enabled .academy-intro h1{max-width:18ch;font-size:clamp(2.15rem,4.7vw,3.85rem);line-height:1.02;letter-spacing:-.065em;margin:.22em 0 .28em}
html.rookline-shell-enabled .academy-intro .lede{max-width:66ch;margin:.5rem 0 0;font-size:clamp(.98rem,1.35vw,1.13rem);line-height:1.65}
html.rookline-shell-enabled .academy-intro .eyebrow{display:flex;align-items:center;gap:9px;color:#5268bd;margin:0 0 9px}
html.rookline-shell-enabled .academy-intro .eyebrow::before{content:"";width:7px;height:7px;border-radius:2px;background:#e58a7d;box-shadow:0 0 0 4px #e58a7d20}
html.rookline-shell-enabled .crumb{gap:9px;margin:0 0 20px;color:#718098;font-size:.68rem}
html.rookline-shell-enabled .crumb a{color:#5368bd;font-weight:750;text-decoration:none}
html.rookline-shell-enabled .crumb a:hover{text-decoration:underline}
html.rookline-shell-enabled .academy-unit{margin-top:clamp(25px,3vw,38px);padding-top:clamp(17px,2vw,24px);border-top:1px solid #e2e8f2}
html.rookline-shell-enabled .academy-unit h2{margin:0 0 5px;font-size:clamp(1.35rem,2vw,1.8rem);letter-spacing:-.045em}
html.rookline-shell-enabled .academy-unit>p{margin:.2rem 0 14px;color:var(--rook-muted);font-size:.88rem}
html.rookline-shell-enabled :where(.academy-card,.studio-feature,.studio-card,.card,.next-card,.achievement,.position-example,.position-saved-card,.community-row,.player-result,.booking-card,.catalog-card,.advanced-topic,.advanced-study,.plan-panel,.transfer-panel,.notebook-panel,.library-panel,.progress-panel,.progress-stats article,.account-card,.mentor-card,.online-card,.event-info,.manager,.lab-card,.academy-drill,.spectate-board-card,.classroom-sidebar,.classroom-content,.start-card,.start-faq,.privacy-note,.community-policy,.edition-buy,.shop-preview,.delivery-strip,.offer-grid article){border-color:#e0e7f2;border-radius:16px;box-shadow:0 7px 22px rgba(34,54,104,.045)}
html.rookline-shell-enabled :where(.academy-card,.studio-feature,.studio-card,.card,.next-card,.achievement,.position-example,.position-saved-card,.community-row,.player-result,.booking-card,.catalog-card,.advanced-topic,.advanced-study,.plan-panel,.transfer-panel,.notebook-panel,.library-panel,.progress-panel,.progress-stats article,.account-card,.mentor-card,.online-card,.event-info,.manager,.lab-card,.academy-drill,.spectate-board-card,.classroom-sidebar,.classroom-content,.start-card,.start-faq,.privacy-note,.community-policy,.edition-buy,.shop-preview,.delivery-strip,.offer-grid article){background:#fff}
html.rookline-shell-enabled :where(.academy-card,.studio-feature,.studio-card,.card,.next-card,.position-example,.position-saved-card,.catalog-card){transition:transform .17s ease,border-color .17s ease,box-shadow .17s ease,background-color .17s ease}
html.rookline-shell-enabled :where(.academy-card,.studio-feature,.studio-card,.card,.position-example,.catalog-card):hover{transform:translateY(-2px);border-color:#bdcaf1;box-shadow:0 15px 32px rgba(39,59,112,.09);text-decoration:none}
html.rookline-shell-enabled .academy-grid{gap:14px}
html.rookline-shell-enabled .academy-card{padding:18px;border-radius:15px}
html.rookline-shell-enabled .academy-card h3{font-size:1.04rem;line-height:1.3}
html.rookline-shell-enabled .academy-card p{font-size:.84rem;line-height:1.55}
html.rookline-shell-enabled .academy-badge{border-radius:999px;padding:4px 9px;background:#edf1ff;color:#3856c5}
html.rookline-shell-enabled .academy-progress{max-width:820px;border-radius:16px;padding:clamp(17px,2.5vw,25px);box-shadow:var(--rook-shadow)}
html.rookline-shell-enabled :where(.academy-actions,.actions,.studio-actions,.position-actions,.report-actions,.notebook-actions,.community-actions,.mentor-actions){gap:8px;align-items:center}
html.rookline-shell-enabled :where(.academy-actions a,.academy-actions button,.academy-main button.academy-primary,.action,.secondary,.act,.room-actions button,.studio-actions a,.studio-button,.bots-button,.primary-button,.quiet-button,.dialog-button,.new-game,.position-panel button,.position-board-panel button,.notebook-panel button,.report-actions button,.report-actions a){min-height:38px;border-radius:10px;font-weight:720}
html.rookline-shell-enabled :where(.action,.academy-primary,.primary-button,.studio-button:not(.secondary),.bots-button.primary,.new-game,.act:not(.secondary),.edition-buy button[type="submit"]){background:#3658d7;border-color:#3658d7;color:#fff}
html.rookline-shell-enabled :where(.secondary,.quiet-button,.act.secondary,.studio-button.secondary){background:#fff;border:1px solid #d5deed;color:#40516f}
html.rookline-shell-enabled :where(input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea){min-height:40px;padding:9px 11px;border-color:#d6e0ef;border-radius:10px;background:#fff;color:#18243b}
html.rookline-shell-enabled textarea{min-height:105px;line-height:1.5}
html.rookline-shell-enabled :where(label){color:#43516b}
html.rookline-shell-enabled :where(.status,.notice,.flash,.alert,.academy-status,.community-status,.classroom-notice,.mentor-notice,.online-status,.event-feedback,.position-alert){border-radius:11px}
html.rookline-shell-enabled :where(.academy-example,.callout,.notice,.classroom-notice,.position-alert,.privacy-note,.community-policy){border-radius:13px}
html.rookline-shell-enabled :where(.footer,.studio-foot){margin-top:34px;border-top:1px solid #e1e8f2;background:#fff}
html.rookline-shell-enabled :where(.footer-inner,.studio-foot>div){width:min(100% - 40px,1360px);margin-inline:auto;padding:20px 0;gap:14px}
html.rookline-shell-enabled :where(.footer a,.studio-foot a){color:#63728b;text-decoration:none}
html.rookline-shell-enabled :where(.footer a:hover,.studio-foot a:hover){color:#3658d7;text-decoration:underline}
html.rookline-shell-enabled :where(.sheet,.lab-card,.notebook-panel,.library-panel,.account-card,.community-card,.position-panel,.position-board-panel,.progress-panel,.plan-panel,.transfer-panel,.booking-card,.classroom-sidebar,.classroom-content,.manager,.event-info,.mentor-card,.advanced-study,.advanced-topic,.academy-drill){padding:clamp(16px,2.3vw,26px)}
html.rookline-shell-enabled :where(.academy-main,.studio-main,.position-main,.community-main,.progress-main,.account-main,.spectate-main,.sprint-main) :where(.sheet,.panel,.card){scroll-margin-top:82px}
/* Responsive, square chessboards: the board grid always owns eight equal rows and columns. */
html.rookline-shell-enabled .academy-board{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));grid-template-rows:repeat(8,minmax(0,1fr));gap:0;width:min(100%,560px);max-width:560px;aspect-ratio:1;height:auto;margin-inline:auto;border:1px solid #9aa9c1;border-radius:12px;overflow:hidden;box-shadow:0 8px 24px rgba(29,47,85,.11);background:#e8edf6;flex:none}
html.rookline-shell-enabled .academy-board>.academy-square{width:auto;height:auto;min-width:0;min-height:0;aspect-ratio:auto;border-radius:0!important}
html.rookline-shell-enabled .academy-square{background:#edf1f7;color:#26344c}
html.rookline-shell-enabled .academy-square.dark{background:#a7b8d1;color:#182b4b}
html.rookline-shell-enabled .academy-square.chosen{box-shadow:inset 0 0 0 4px #4263e3}
html.rookline-shell-enabled .academy-square.last{box-shadow:inset 0 0 0 3px #d78a73}
html.rookline-shell-enabled .academy-square.legal::after{background:#3658d7;opacity:.72}
html.rookline-shell-enabled .academy-square img{width:88%;height:88%;max-width:88%;max-height:88%;object-fit:contain}
html.rookline-shell-enabled :where(.match-board,.spectate-board,.practice-board,.sample-board,.board){border-radius:11px;box-shadow:0 8px 24px rgba(29,47,85,.09);overflow:hidden}
html.rookline-shell-enabled :where(.match-square,.spectate-square,.practice-square,.sample-square,.sq){min-width:0;min-height:0;aspect-ratio:1}
html.rookline-shell-enabled :where(.match-square img,.spectate-square img,.practice-square img,.sample-square img){max-width:90%;max-height:90%;object-fit:contain}
/* Opening Explorer: give the board a dedicated wide stage and keep moves in a readable rail. */
html[data-rookline-page="studio-opening-explorer"].rookline-shell-enabled .studio-opening-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(285px,350px);gap:clamp(16px,2vw,24px);align-items:start}
html[data-rookline-page="studio-opening-explorer"].rookline-shell-enabled .studio-opening-layout>.studio-board-panel{min-width:0;padding:clamp(17px,2.7vw,32px);display:flex;flex-direction:column}
html[data-rookline-page="studio-opening-explorer"].rookline-shell-enabled #opening-board.academy-board{width:min(100%,640px);max-width:640px;aspect-ratio:1;grid-template-columns:repeat(8,minmax(0,1fr));grid-template-rows:repeat(8,minmax(0,1fr));margin:clamp(14px,2vw,22px) auto;border-radius:13px}
html[data-rookline-page="studio-opening-explorer"].rookline-shell-enabled .studio-opening-side{min-width:0;position:sticky;top:76px;max-height:calc(100vh - 98px);overflow:auto;padding:clamp(17px,2vw,24px)}
html[data-rookline-page="studio-opening-explorer"].rookline-shell-enabled .studio-opening-side .studio-move-list{max-height:min(50vh,520px);padding:9px 8px 9px 30px;border:1px solid #e5eaf3;border-radius:12px;background:#f9faff}
html[data-rookline-page="studio-opening-explorer"].rookline-shell-enabled .studio-opening-side .studio-move-list li{padding:3px 1px}
html[data-rookline-page="studio-opening-explorer"].rookline-shell-enabled .studio-opening-side .studio-move-list button{display:inline-flex;align-items:center;min-height:28px;padding:4px 7px;border-radius:7px}
html[data-rookline-page="studio-opening-explorer"].rookline-shell-enabled .studio-opening-controls{grid-template-columns:minmax(170px,.55fr) minmax(240px,1fr) minmax(150px,.42fr) minmax(240px,1fr);align-items:end;gap:12px 16px;padding:17px 19px}
html[data-rookline-page="studio-opening-explorer"].rookline-shell-enabled .studio-opening-controls .studio-opening-facts{grid-column:1/-1;padding-top:10px;border-top:1px solid #e7ebf3}
/* Studio boards and side panels stay proportionate on narrower desktop screens. */
html.rookline-shell-enabled .studio-play-layout{grid-template-columns:minmax(0,1.25fr) minmax(270px,.82fr);gap:clamp(14px,2vw,22px)}
html.rookline-shell-enabled .studio-board{width:min(100%,590px);max-width:590px;margin-inline:auto}
html.rookline-shell-enabled .studio-board-panel{min-width:0;padding:clamp(15px,2.4vw,27px)}
html.rookline-shell-enabled .studio-opening-controls{border:1px solid #e0e7f2;border-radius:16px;background:#fff;box-shadow:var(--rook-shadow)}
html.rookline-shell-enabled .studio-opening-controls input,html.rookline-shell-enabled .studio-opening-controls select{width:100%;min-width:0}
html.rookline-shell-enabled .studio-opening-facts{min-width:0}
html.rookline-shell-enabled .studio-memory-layout{grid-template-columns:minmax(0,1.1fr) minmax(280px,.8fr);gap:20px}
/* Tool-specific layouts use earlier collapse points because the permanent sidebar consumes desktop width. */
@media(max-width:1100px){
  html[data-rookline-page="studio-opening-explorer"].rookline-shell-enabled .studio-opening-layout{grid-template-columns:minmax(0,1fr)}
  html[data-rookline-page="studio-opening-explorer"].rookline-shell-enabled .studio-opening-side{position:static;max-height:none;overflow:visible}
  html.rookline-shell-enabled .studio-opening-layout .studio-opening-side .studio-move-list{max-height:360px}
  html.rookline-shell-enabled .lab-layout{grid-template-columns:minmax(0,1fr)}
  html.rookline-shell-enabled .lab-card{max-width:none}
  html.rookline-shell-enabled .lab-card .academy-board{width:min(100%,560px);max-width:560px}
  html.rookline-shell-enabled .position-layout{grid-template-columns:minmax(0,1fr)}
  html.rookline-shell-enabled .position-board-panel .academy-board{width:min(100%,620px);max-width:620px}
  html.rookline-shell-enabled .studio-play-layout{grid-template-columns:minmax(0,1fr)}
  html.rookline-shell-enabled .studio-side-stack{grid-template-columns:repeat(2,minmax(0,1fr))}
  html.rookline-shell-enabled .studio-board{width:min(100%,620px);max-width:620px}
  html.rookline-shell-enabled .studio-opening-controls{grid-template-columns:minmax(0,1fr) minmax(0,1.2fr)}
}
@media(max-width:900px){
  html.rookline-shell-enabled .mentor-pair,html.rookline-shell-enabled .mentor-review{grid-template-columns:minmax(0,1fr)}
  html.rookline-shell-enabled .classroom-layout{grid-template-columns:minmax(0,1fr)}
  html.rookline-shell-enabled .classroom-sidebar{grid-template-columns:repeat(2,minmax(0,1fr))}
  html.rookline-shell-enabled .catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  html.rookline-shell-enabled .offer-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  html.rookline-shell-enabled .edition-hero{grid-template-columns:minmax(0,1fr) minmax(220px,.72fr)}
  html.rookline-shell-enabled .edition-specs{grid-template-columns:repeat(2,minmax(0,1fr))}
  html.rookline-shell-enabled .studio-feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  html.rookline-shell-enabled .studio-existing-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:760px){
  html.rookline-shell-enabled body>main#main:not(.studio-wrap):not(.embed-shell){width:calc(100% - 28px);padding:25px 0 52px}
  html.rookline-shell-enabled :where(.academy-main,.studio-main,.bots-main,.menu-main,.community-main,.progress-main,.position-main,.spectate-main,.sprint-main,.clock-main,.account-main){width:calc(100% - 28px);padding:23px 0 52px}
  html.rookline-shell-enabled .studio-opening-layout{gap:13px}
  html.rookline-shell-enabled .studio-opening-layout>.studio-board-panel{padding:13px}
  html.rookline-shell-enabled #opening-board.academy-board{width:min(100%,620px);margin:12px auto}
  html.rookline-shell-enabled .studio-opening-controls{grid-template-columns:minmax(0,1fr);gap:9px;padding:14px}
  html.rookline-shell-enabled .studio-opening-controls .studio-opening-facts{grid-column:auto}
  html.rookline-shell-enabled .studio-side-stack{grid-template-columns:minmax(0,1fr)}
  html.rookline-shell-enabled .studio-memory-layout{grid-template-columns:minmax(0,1fr)}
  html.rookline-shell-enabled .catalog-grid,html.rookline-shell-enabled .offer-grid{grid-template-columns:minmax(0,1fr)}
  html.rookline-shell-enabled .edition-hero,html.rookline-shell-enabled .edition-specs,html.rookline-shell-enabled .sample-grid,html.rookline-shell-enabled .delivery-strip{grid-template-columns:minmax(0,1fr)}
  html.rookline-shell-enabled .edition-buy{position:static}
  html.rookline-shell-enabled .classroom-sidebar{grid-template-columns:minmax(0,1fr)}
  html.rookline-shell-enabled .academy-intro h1{font-size:clamp(2rem,9vw,3.05rem)}
  html.rookline-shell-enabled .academy-unit{margin-top:26px;padding-top:18px}
  html.rookline-shell-enabled .academy-card{padding:15px}
}
@media(max-width:520px){
  html.rookline-shell-enabled .studio-feature-grid,html.rookline-shell-enabled .studio-existing-grid{grid-template-columns:minmax(0,1fr)}
  html.rookline-shell-enabled .community-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
  html.rookline-shell-enabled .progress-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  html.rookline-shell-enabled .achievement-grid,html.rookline-shell-enabled .next-grid{grid-template-columns:minmax(0,1fr)}
  html.rookline-shell-enabled :where(.field-grid,.library-fields,.position-fields){grid-template-columns:minmax(0,1fr)}
  html.rookline-shell-enabled .edition-cover{min-height:145px}
  html.rookline-shell-enabled .sample-board{max-width:100%}
}
@media(prefers-reduced-motion:reduce){html.rookline-shell-enabled :where(button,a,.academy-card,.studio-card,.studio-feature,.catalog-card){transition:none!important;animation:none!important}}

/* The Studio Chess 2.7 — refined coaching, commerce and partner presentation. */
html.rookline-shell-enabled .partner-home-section{margin-top:clamp(42px,5vw,68px)}
html.rookline-shell-enabled .partner-home-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin-top:18px}
html.rookline-shell-enabled .partner-home-card{display:flex;flex-direction:column;align-items:flex-start;min-height:230px;padding:21px;border:1px solid #e0e7f2;border-radius:17px;background:#fff;color:#23334e;text-decoration:none;box-shadow:0 7px 22px rgba(38,55,99,.045);transition:transform .17s ease,border-color .17s ease,box-shadow .17s ease}
html.rookline-shell-enabled .partner-home-card:hover{transform:translateY(-3px);border-color:#c5d0f1;box-shadow:0 16px 34px rgba(38,55,99,.095);text-decoration:none}
html.rookline-shell-enabled .partner-home-mark{display:grid;grid-template-columns:repeat(2,11px);grid-template-rows:repeat(2,11px);gap:3px;place-content:center;width:42px;height:42px;margin-bottom:17px;border-radius:12px;background:linear-gradient(145deg,#edf1ff,#e8f7f2)}
html.rookline-shell-enabled .partner-home-mark i{display:block;border-radius:3px;background:#4563d8}.partner-home-mark i:nth-child(2){background:#e99a8c}.partner-home-mark i:nth-child(3){background:#74bba5}
html.rookline-shell-enabled .partner-home-card small{color:#6473bc;font-size:.61rem;font-weight:850;letter-spacing:.11em}
html.rookline-shell-enabled .partner-home-card strong{margin-top:7px;color:#21324f;font-size:1.04rem;letter-spacing:-.035em}
html.rookline-shell-enabled .partner-home-card>span:not(.partner-home-mark){margin-top:8px;color:#6b788e;font-size:.79rem;line-height:1.55}
html.rookline-shell-enabled .partner-home-card b{margin-top:auto;padding-top:16px;color:#3658d7;font-size:.76rem}
html.rookline-shell-enabled .group-home-card{background:linear-gradient(145deg,#fff,#f0faf6)}
html.rookline-shell-enabled .creator-home-card{background:linear-gradient(145deg,#fff,#fff5f2)}
html.rookline-shell-enabled .bookings-main{width:min(1160px,calc(100% - 44px));margin:0 auto;padding:clamp(26px,4vw,48px) 0 76px}
html.rookline-shell-enabled .booking-hero{position:relative;display:grid;grid-template-columns:minmax(0,1.15fr) minmax(260px,.85fr);gap:20px;align-items:center;min-height:340px;padding:clamp(24px,4.5vw,48px);overflow:hidden;border:1px solid #dce5f4;border-radius:23px;background:linear-gradient(116deg,#edf1ff 0%,#fbfcff 54%,#e8f7f2 100%);box-shadow:var(--rook-shadow)}
html.rookline-shell-enabled .booking-hero h1{max-width:13ch;margin:0;color:#1b2944;font-size:clamp(2.5rem,5vw,4.25rem);line-height:.98;letter-spacing:-.067em}
html.rookline-shell-enabled .booking-hero .eyebrow{margin:0 0 11px;color:#4960c7;font-size:.67rem;font-weight:850;letter-spacing:.13em;text-transform:uppercase}
html.rookline-shell-enabled .booking-hero .lede{max-width:56ch;margin:17px 0 20px;color:#5e6d84;font-size:1rem;line-height:1.62}
html.rookline-shell-enabled .booking-hero-actions{display:flex;flex-wrap:wrap;gap:9px}
html.rookline-shell-enabled .booking-hero-actions a{display:inline-flex;min-height:41px;align-items:center;justify-content:center;padding:9px 14px;border-radius:10px;font-size:.78rem;font-weight:800;text-decoration:none}
html.rookline-shell-enabled .booking-trust{margin:18px 0 0;color:#718096;font-size:.7rem;font-weight:680;letter-spacing:.015em}
html.rookline-shell-enabled .booking-hero-art{position:relative;display:grid;place-items:center;min-height:250px}
html.rookline-shell-enabled .booking-art-board{width:min(100%,255px);aspect-ratio:1;display:grid;grid-template-columns:repeat(4,1fr);grid-template-rows:repeat(4,1fr);overflow:hidden;border:9px solid rgba(255,255,255,.82);border-radius:16px;background:#dfe7fb;box-shadow:0 18px 34px rgba(39,58,115,.13);transform:rotate(5deg)}
html.rookline-shell-enabled .booking-art-board i:nth-child(4n+2),html.rookline-shell-enabled .booking-art-board i:nth-child(4n+3){background:#6e83d6}
html.rookline-shell-enabled .booking-art-board i:nth-child(8n+1),html.rookline-shell-enabled .booking-art-board i:nth-child(8n+4),html.rookline-shell-enabled .booking-art-board i:nth-child(8n+5),html.rookline-shell-enabled .booking-art-board i:nth-child(8n+8){background:#e8eefb}
html.rookline-shell-enabled .booking-art-note{position:absolute;right:0;bottom:2px;display:grid;gap:6px;width:180px;padding:15px 16px;border:1px solid #e3e9f3;border-radius:14px;background:#fff;box-shadow:0 12px 28px rgba(38,57,112,.1);transform:rotate(-3deg)}
html.rookline-shell-enabled .booking-art-note small{color:#7b879e;font-size:.57rem;font-weight:850;letter-spacing:.11em}
html.rookline-shell-enabled .booking-art-note strong{color:#253858;font-size:1.1rem;line-height:1.08;letter-spacing:-.04em}
html.rookline-shell-enabled .booking-auth{margin:18px 0;padding:13px 15px;border:1px solid #dfe6f1;border-radius:12px;background:#fff;color:#65748b;font-size:.82rem}
html.rookline-shell-enabled .booking-auth a{margin-left:7px;color:#3658d7;font-weight:800}
html.rookline-shell-enabled .booking-section-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:17px}
html.rookline-shell-enabled .booking-section-heading .eyebrow{margin:0 0 7px;color:#4960c7;font-size:.65rem;font-weight:850;letter-spacing:.12em;text-transform:uppercase}
html.rookline-shell-enabled .booking-section-heading h2{margin:0;color:#1b2944;font-size:clamp(1.7rem,3vw,2.4rem);line-height:1.05;letter-spacing:-.055em}
html.rookline-shell-enabled .booking-section-heading p:not(.eyebrow){margin:7px 0 0;color:#68768c;font-size:.84rem;line-height:1.55}
html.rookline-shell-enabled .booking-filter-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(200px,.8fr);gap:12px;margin:12px 0 17px;padding:14px;border:1px solid #e0e7f2;border-radius:14px;background:#fff}
html.rookline-shell-enabled .booking-filter-grid label{display:grid;gap:6px;color:#52617a;font-size:.74rem;font-weight:760}
html.rookline-shell-enabled .booking-filter-grid input,html.rookline-shell-enabled .booking-filter-grid select{min-height:41px;padding:8px 11px;border:1px solid #dce4f1;border-radius:9px;background:#fbfcff;font:inherit;font-size:.82rem}
html.rookline-shell-enabled .booking-card{min-width:0;padding:clamp(17px,2.4vw,23px);border:1px solid #e0e7f2;border-radius:16px;background:#fff;box-shadow:0 7px 22px rgba(38,55,99,.045)}
html.rookline-shell-enabled .booking-card h3{margin:0 0 9px;color:#21324f;font-size:1.08rem;letter-spacing:-.035em}
html.rookline-shell-enabled .booking-card p{color:#69778d;font-size:.82rem;line-height:1.55}
html.rookline-shell-enabled .booking-offer-meta{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:14px 0;padding-top:12px;border-top:1px solid #edf0f6}
html.rookline-shell-enabled .booking-offer-meta strong{color:#263fb5;font-size:1.28rem;letter-spacing:-.04em}
html.rookline-shell-enabled .booking-profile-link{color:#3658d7;font-size:.75rem;font-weight:800;text-decoration:none}
html.rookline-shell-enabled .booking-profile-link:hover{text-decoration:underline}
html.rookline-shell-enabled .booking-card button{min-height:36px;margin:5px 5px 0 0;padding:8px 11px;border:1px solid #dbe3f1;border-radius:9px;background:#f7f9ff;color:#3856c5;font:inherit;font-size:.73rem;font-weight:780;cursor:pointer}
html.rookline-shell-enabled .booking-card button.action{border-color:#3658d7;background:#3658d7;color:#fff}
html.rookline-shell-enabled .booking-card button:disabled{opacity:.5;cursor:not-allowed}
html.rookline-shell-enabled .booking-operator details{margin:11px 0;padding:17px;border:1px solid #e0e7f2;border-radius:14px;background:#fff}
html.rookline-shell-enabled .booking-operator summary{color:#293a59;font-weight:800;cursor:pointer}
html.rookline-shell-enabled .booking-form{gap:12px;padding:14px 0}
html.rookline-shell-enabled .booking-form label{color:#52617a;font-size:.75rem;font-weight:760}
html.rookline-shell-enabled .booking-form input,html.rookline-shell-enabled .booking-form select,html.rookline-shell-enabled .booking-form textarea{min-height:40px;padding:9px 10px;border:1px solid #dce4f1;border-radius:9px;background:#fbfcff;font:inherit;font-size:.8rem}
html.rookline-shell-enabled .booking-form textarea{resize:vertical;line-height:1.5}
html.rookline-shell-enabled .booking-form fieldset{min-width:0;margin:6px 0;padding:12px;border:1px solid #e4e9f2;border-radius:11px}
html.rookline-shell-enabled .booking-form legend{padding:0 5px;color:#4f5f78;font-size:.75rem;font-weight:800}
html.rookline-shell-enabled .booking-check-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 12px}
html.rookline-shell-enabled .booking-check-grid label{display:flex;align-items:flex-start;gap:7px;font-size:.72rem;font-weight:620;line-height:1.35}
html.rookline-shell-enabled .booking-check-grid input{min-height:0;accent-color:#3658d7}
html.rookline-shell-enabled .profile-fields{padding:14px;border:1px solid #e2e8f2;border-radius:13px;background:#f8faff}
html.rookline-shell-enabled .profile-fields h3{margin:0 0 5px;font-size:1rem}
html.rookline-shell-enabled .profile-fields>p{margin:0 0 12px;color:#758197;font-size:.76rem;line-height:1.5}
html.rookline-shell-enabled .booking-admin-actions{display:flex;flex-wrap:wrap;gap:7px;margin:9px 0 14px}
html.rookline-shell-enabled .booking-admin-actions button{margin:0}
html.rookline-shell-enabled .partner-shop-strip{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:clamp(20px,3vw,30px);border:1px solid #dce5f4;border-radius:17px;background:linear-gradient(115deg,#edf1ff,#fff 58%,#e8f7f2)}
html.rookline-shell-enabled .partner-shop-strip h2{margin:3px 0 7px;color:#243450;font-size:1.45rem;letter-spacing:-.04em}
html.rookline-shell-enabled .partner-shop-strip p:not(.smallcap){max-width:66ch;margin:0;color:#6a7890;font-size:.81rem;line-height:1.55}
html.rookline-shell-enabled .partner-shop-strip .action{flex:0 0 auto;padding:11px 15px;border-radius:10px;background:#3658d7;color:#fff;text-decoration:none;font-size:.77rem;font-weight:800}
@media(max-width:980px){html.rookline-shell-enabled .partner-home-grid{grid-template-columns:1fr 1fr}html.rookline-shell-enabled .partner-home-card:last-child{grid-column:1/-1}}
@media(max-width:760px){html.rookline-shell-enabled .bookings-main{width:calc(100% - 28px);padding:22px 0 60px}html.rookline-shell-enabled .booking-hero{grid-template-columns:1fr;padding:23px 20px 16px;border-radius:18px}html.rookline-shell-enabled .booking-hero h1{font-size:clamp(2.3rem,9.5vw,3.3rem)}html.rookline-shell-enabled .booking-hero-art{min-height:225px}html.rookline-shell-enabled .booking-art-board{width:min(62vw,225px)}html.rookline-shell-enabled .booking-art-note{right:1%;bottom:0}html.rookline-shell-enabled .booking-section-heading{align-items:flex-start;flex-direction:column;gap:10px}html.rookline-shell-enabled .booking-filter-grid{grid-template-columns:1fr}html.rookline-shell-enabled .partner-shop-strip{align-items:flex-start;flex-direction:column}html.rookline-shell-enabled .partner-shop-strip .action{width:100%;text-align:center}}
@media(prefers-reduced-motion:reduce){html.rookline-shell-enabled .partner-home-card{transition:none}}

/* 2.8 unified application polish: shared content rhythm, accessible controls and digital coaching. */
html.rookline-shell-enabled :where(.ai-coach-main,.partner-main,.shop-main,.studio-wrap,.academy-wrap,.progress-wrap,.community-wrap){max-width:1320px}
html.rookline-shell-enabled :where(.ai-specialty-card,.ai-coach-form,.ai-coach-answer-panel,.partner-model,.catalog-card,.product-card){box-shadow:0 8px 24px rgba(37,56,105,.055)}
html.rookline-shell-enabled :where(.ai-specialty-card:hover,.catalog-card:hover,.studio-card:hover){transform:translateY(-2px)}
html.rookline-shell-enabled :where(.ai-primary,.studio-button,.action,button[type=submit]){transition:transform .16s ease,box-shadow .16s ease,background .16s ease}
html.rookline-shell-enabled :where(.ai-primary:hover,.studio-button:hover,.action:hover,button[type=submit]:hover){transform:translateY(-1px)}
html.rookline-shell-enabled :where(.ai-credit-choice){display:flex;align-items:center;gap:9px;padding:11px 12px;border:1px solid #dfe6f1;border-radius:10px;background:#f8faff;color:#52617a;font-size:.76rem}
html.rookline-shell-enabled :where(.ai-credit-choice input){width:auto;min-height:auto;accent-color:#3658d7}
html.rookline-shell-enabled :where(.ai-specialty-card.is-selected){border-color:#9cafea;box-shadow:0 0 0 3px rgba(54,88,215,.08),0 10px 24px rgba(37,56,105,.075)}
html.rookline-shell-enabled :where(.ai-specialty-focus){margin-top:auto;color:#8792a5;font-size:.64rem;line-height:1.4}
html.rookline-shell-enabled :where(.ai-answer-text){white-space:pre-wrap;line-height:1.72;color:#3c4b65;font-size:.86rem}
html.rookline-shell-enabled :where(.ai-answer-wait){padding:20px;border-radius:13px;background:#f7f9ff;color:#61708c;font-size:.82rem}
html.rookline-shell-enabled :where(.ai-coach-main){padding-bottom:72px}

/* The Studio Chess 2.9 — consistent editorial polish across every page. */
html.rookline-shell-enabled :where(.academy-main,.position-main,.community-main,.bots-main,.studio-main,.account-main,.ai-coach-main,.bookings-main,.progress-main,.menu-main,.sprint-main,.clock-main,.spectate-main){color:var(--rook-ink)}
html.rookline-shell-enabled :where(.academy-intro,.position-intro,.community-hero,.bots-hero,.studio-intro,.account-intro,.ai-workspace-intro,.page-intro){margin-bottom:clamp(22px,3vw,34px)}
html.rookline-shell-enabled :where(.academy-intro h1,.position-intro h1,.community-hero h1,.bots-hero h1,.studio-intro h1,.account-intro h1,.page-intro h1){max-width:18ch;font-size:clamp(2rem,4.2vw,3.55rem);line-height:1.02;letter-spacing:-.065em}
html.rookline-shell-enabled :where(.academy-intro .lede,.position-intro .lede,.community-hero .lede,.bots-hero .lede,.studio-intro .lede,.account-intro .lede,.page-intro .lede){max-width:68ch;color:#68768c;font-size:clamp(.9rem,1.2vw,1.02rem);line-height:1.68}
html.rookline-shell-enabled :where(.sheet,.panel,.account-card,.community-card,.catalog-card,.academy-card,.lesson-card,.review-card,.progress-card,.position-card,.workspace-card,.tournament-card,.match-card,.board-card,.report-card,.study-card,.studio-feature,.studio-existing-card,.ai-coach-form,.ai-coach-answer-panel,.ai-review-learning-card){border-color:#e0e7f2;border-radius:16px;background:#fff;box-shadow:0 7px 22px rgba(37,56,105,.045)}
html.rookline-shell-enabled :where(.sheet,.panel,.account-card,.community-card,.catalog-card,.academy-card,.lesson-card,.review-card,.progress-card,.position-card,.workspace-card,.tournament-card,.match-card,.report-card,.study-card,.studio-feature,.studio-existing-card){padding:clamp(14px,2vw,20px)}
html.rookline-shell-enabled :where(.sheet,.panel,.account-card,.community-card,.catalog-card,.academy-card,.lesson-card,.review-card,.progress-card,.position-card,.workspace-card,.tournament-card,.match-card,.report-card,.study-card,.studio-feature,.studio-existing-card){transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease}
html.rookline-shell-enabled :where(.sheet,.panel,.account-card,.community-card,.catalog-card,.academy-card,.lesson-card,.review-card,.progress-card,.position-card,.workspace-card,.tournament-card,.match-card,.report-card,.study-card,.studio-feature,.studio-existing-card):hover{border-color:#c8d4f1;box-shadow:0 13px 30px rgba(37,56,105,.075)}
html.rookline-shell-enabled :where(.actions,.button-row,.toolbar,.form-actions){display:flex;align-items:center;flex-wrap:wrap;gap:8px}
html.rookline-shell-enabled :where(.actions a,.button-row button,.toolbar button,.form-actions button){min-height:39px;border-radius:10px;font-weight:760}
html.rookline-shell-enabled :where(.eyebrow,.smallcap,.folio,.tag,.crumb){color:#5369bd}
html.rookline-shell-enabled :where(.notice,.status,.alert,.flash,.callout){border-radius:11px}
html.rookline-shell-enabled :where(.empty-state,.catalog-empty,.ai-empty){padding:18px;border:1px dashed #d4deef;border-radius:13px;background:#fbfcff;color:#738097;line-height:1.6}
html.rookline-shell-enabled :where(.field-grid,.library-fields,.position-fields,.account-fields){gap:13px}
html.rookline-shell-enabled :where(form label){color:#43536e}
html.rookline-shell-enabled :where(form input:not([type=checkbox]):not([type=radio]):not([type=range]),form select,form textarea){min-height:40px;padding:9px 11px;border:1px solid #dce4f1;border-radius:10px;background:#fff;color:#233550;font:inherit;font-size:.84rem}
html.rookline-shell-enabled :where(form textarea){line-height:1.55;resize:vertical}
html.rookline-shell-enabled :where(form input[type=checkbox],form input[type=radio]){accent-color:#3658d7}
html.rookline-shell-enabled :where(button:not(.sq):not(.board-square):not(.ai-review-square),.action,.secondary,.read){transition:background .16s ease,border-color .16s ease,color .16s ease,box-shadow .16s ease,transform .16s ease}
html.rookline-shell-enabled :where(button:not(.sq):not(.board-square):not(.ai-review-square),.action,.secondary,.read):focus-visible{outline:3px solid #9aacf0;outline-offset:3px}
html.rookline-shell-enabled :where(.toolbar,.board-toolbar,.analysis-toolbar,.studio-toolbar){display:flex;align-items:center;flex-wrap:wrap;gap:8px;padding:10px 12px;border:1px solid #e1e8f2;border-radius:12px;background:#fff}
html.rookline-shell-enabled :where(.position-board-panel,.studio-board-panel,.opening-board-panel,.review-board-panel){min-width:0;padding:clamp(11px,1.6vw,18px);border:1px solid #e0e7f2;border-radius:17px;background:#fff;box-shadow:var(--rook-shadow)}
html.rookline-shell-enabled :where(.academy-board,.studio-board,.sample-board,.board){max-width:100%;margin-inline:auto}
html.rookline-shell-enabled :where(.board-wrap,.board-frame,.academy-board-wrap,.studio-board-wrap){min-width:0;max-width:100%;overflow:hidden}
html.rookline-shell-enabled :where(.status,.note,.hint,.help,.muted){line-height:1.55}
html.rookline-shell-enabled :where(.tag,.pill,.badge,.chip,.status-badge){font-weight:750}
html.rookline-shell-enabled .edition-hero{align-items:start;gap:clamp(22px,4vw,48px);padding-top:clamp(12px,2vw,22px)}
html.rookline-shell-enabled .edition-buy{position:sticky;top:82px;padding:18px;background:linear-gradient(155deg,#fff,#f8faff)}
html.rookline-shell-enabled .edition-buy .edition-cover{min-height:190px;border-radius:13px}
html.rookline-shell-enabled .edition-price strong{color:#2e4fc9;font-size:1.8rem}
html.rookline-shell-enabled .edition-specs{gap:16px}
html.rookline-shell-enabled .edition-specs>div{padding:18px;border:1px solid #e4eaf3;border-radius:14px;background:#fff}
html.rookline-shell-enabled .shop-preview{border:1px solid #dce5f4;border-radius:18px;background:linear-gradient(140deg,#f1f5ff,#f8fbff 60%,#eef9f5)}
html.rookline-shell-enabled .shop-preview h2{color:#263b68}
html.rookline-shell-enabled .footer{border-top:1px solid #e1e7f1;background:#fff}
html.rookline-shell-enabled .footer-inner{color:#728097}
html.rookline-shell-enabled .footer-links a{color:#5266b4}
/* Shop: help visitors choose by learning goal without false scarcity or inflated claims. */
html.rookline-shell-enabled .shop-chooser{margin:clamp(24px,4vw,42px) 0 15px}
html.rookline-shell-enabled .shop-chooser-heading{max-width:690px;margin-bottom:16px}
html.rookline-shell-enabled .shop-chooser-heading .smallcap{margin:0 0 7px}
html.rookline-shell-enabled .shop-chooser-heading h2{margin:0;color:#1d2c49;font-size:clamp(1.65rem,3vw,2.25rem);letter-spacing:-.055em}
html.rookline-shell-enabled .shop-chooser-heading p:last-child{margin:8px 0 0;color:#718096;font-size:.83rem;line-height:1.6}
html.rookline-shell-enabled .shop-chooser-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
html.rookline-shell-enabled .shop-chooser-card{display:flex;flex-direction:column;align-items:flex-start;min-width:0;min-height:218px;padding:16px;border:1px solid #e0e7f2;border-radius:16px;background:#fff;color:#263550;text-decoration:none;box-shadow:0 7px 20px rgba(37,56,105,.045);transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}
html.rookline-shell-enabled .shop-chooser-card:hover{transform:translateY(-3px);border-color:#bdcaf0;box-shadow:0 16px 30px rgba(37,56,105,.09);text-decoration:none}
html.rookline-shell-enabled .shop-chooser-mark{display:grid;place-items:center;width:37px;height:37px;margin-bottom:13px;border-radius:11px;background:#edf1ff;color:#3658d7}
html.rookline-shell-enabled .shop-chooser-mark svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
html.rookline-shell-enabled .shop-chooser-card>small{color:#7280a0;font-size:.57rem;font-weight:850;letter-spacing:.1em}
html.rookline-shell-enabled .shop-chooser-card>strong{margin-top:7px;color:#243452;font-size:.94rem;line-height:1.23;letter-spacing:-.025em}
html.rookline-shell-enabled .shop-chooser-card>span:not(.shop-chooser-mark){margin-top:7px;color:#758197;font-size:.72rem;line-height:1.5}
html.rookline-shell-enabled .shop-chooser-card>b{margin-top:auto;padding-top:13px;color:#3658d7;font-size:.68rem;line-height:1.4}
html.rookline-shell-enabled .chooser-safety .shop-chooser-mark{background:#edf8f3;color:#258a73}
html.rookline-shell-enabled .chooser-opening .shop-chooser-mark{background:#fff1ed;color:#c36d62}
html.rookline-shell-enabled .chooser-bundle .shop-chooser-mark{background:#f2efff;color:#7159bc}
html.rookline-shell-enabled .edition-cover{position:relative;isolation:isolate}
html.rookline-shell-enabled .edition-cover:after{position:absolute;content:"";left:9%;bottom:12%;width:30%;height:12%;border-radius:999px;background:var(--accent);opacity:.85;transform:rotate(-25deg);box-shadow:0 0 0 8px rgba(255,255,255,.22)}
html.rookline-shell-enabled .edition-bundle{--field:#e9edff;--plane:#9db0ee;--piece:#3658d7;--accent:#fff}
html.rookline-shell-enabled .edition-cover-large{min-height:200px}
@media(max-width:1020px){html.rookline-shell-enabled .shop-chooser-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){html.rookline-shell-enabled .edition-buy{position:static}html.rookline-shell-enabled .shop-chooser-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){html.rookline-shell-enabled .shop-chooser-grid{grid-template-columns:minmax(0,1fr)}html.rookline-shell-enabled .shop-chooser-card{min-height:175px}}
@media(prefers-reduced-motion:reduce){html.rookline-shell-enabled :where(.sheet,.panel,.account-card,.community-card,.catalog-card,.academy-card,.lesson-card,.review-card,.progress-card,.position-card,.workspace-card,.tournament-card,.match-card,.report-card,.study-card,.studio-feature,.studio-existing-card,.shop-chooser-card){transition:none!important}}

/* The Studio Chess 3.0 · shared refinement for the full product, not just the landing page. */
html.rookline-shell-enabled :where(.sheet,.panel,.card,.account-card,.community-card,.catalog-card,.academy-card,.studio-card,.lesson-card,.review-card,.progress-card,.position-card,.workspace-card,.tournament-card,.match-card,.board-card,.shop-preview,.callout,.notice-card,.report-card,.study-card){border-radius:16px;box-shadow:0 8px 24px rgba(34,54,104,.052)}
html.rookline-shell-enabled :where(.section-heading,.section-head,.page-heading,.workspace-heading,.panel-heading){display:flex;align-items:flex-end;justify-content:space-between;gap:14px;flex-wrap:wrap}
html.rookline-shell-enabled :where(.page-hero,.academy-hero,.community-hero,.tournament-hero,.bots-hero,.section-hero){padding:clamp(20px,3vw,34px);background:linear-gradient(120deg,#edf1ff 0%,#fbfcff 58%,#e9f8f3 100%);border:1px solid #dfe7f5;border-radius:20px;box-shadow:0 11px 28px rgba(35,55,105,.055)}
html.rookline-shell-enabled :where(.page-hero h1,.academy-hero h1,.community-hero h1,.tournament-hero h1,.bots-hero h1,.section-hero h1){max-width:18ch;line-height:1.04;letter-spacing:-.06em}
html.rookline-shell-enabled :where(.section-title,.section-heading h2,.section-head h2){letter-spacing:-.045em}
html.rookline-shell-enabled :where(.panel,.sheet,.card,.account-card,.community-card,.academy-card,.lesson-card,.review-card,.progress-card,.position-card,.workspace-card,.tournament-card,.match-card,.board-card,.report-card,.study-card){transition:border-color .17s ease,box-shadow .17s ease,transform .17s ease}
html.rookline-shell-enabled :where(.panel,.sheet,.card,.account-card,.community-card,.academy-card,.lesson-card,.review-card,.progress-card,.position-card,.workspace-card,.tournament-card,.match-card,.board-card,.report-card,.study-card):hover{border-color:#d0daf1;box-shadow:0 13px 30px rgba(35,55,105,.075)}
html.rookline-shell-enabled :where(.primary-button,.action,.academy-primary,.bots-button.primary,.studio-button:not(.secondary),.new-game,.primary){min-height:40px;padding-inline:15px;border-radius:11px}
html.rookline-shell-enabled :where(.secondary,.secondary-button,.quiet-button,.read){min-height:36px;border-radius:10px}
html.rookline-shell-enabled :where(.form-grid,.field-grid,.account-fields,.position-fields,.library-fields){gap:13px}
html.rookline-shell-enabled :where(label){line-height:1.45}
html.rookline-shell-enabled :where(input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea){min-height:42px;padding:10px 12px;border:1px solid #d9e2f0;border-radius:11px;background:#fff;color:#233550;font:inherit;font-size:.86rem;box-shadow:inset 0 1px 2px rgba(30,48,80,.025)}
html.rookline-shell-enabled :where(textarea){line-height:1.55}
html.rookline-shell-enabled :where(input,select,textarea):focus{border-color:#8297e9;box-shadow:0 0 0 3px rgba(76,103,218,.11);outline:none}
html.rookline-shell-enabled :where(.empty-state,.empty,.no-results,.empty-panel){padding:clamp(18px,3vw,28px);border:1px dashed #d7e0ef;border-radius:15px;background:linear-gradient(135deg,#fff,#f8faff);color:#718096}
html.rookline-shell-enabled :where(.status,.alert,.notice,.flash,.toast){line-height:1.5}
html.rookline-shell-enabled :where(.board-wrap,.board-frame,.academy-board-wrap,.studio-board-wrap,.opening-board-wrap,.review-board-wrap){padding:clamp(7px,1vw,12px);border:1px solid #e0e7f2;border-radius:16px;background:#fff;box-shadow:0 8px 24px rgba(34,54,104,.05)}
html.rookline-shell-enabled :where(.analysis-layout,.workspace-grid,.study-layout,.review-layout,.tool-layout){align-items:start;gap:clamp(12px,1.8vw,20px)}
html.rookline-shell-enabled :where(.toolbar,.board-toolbar,.analysis-toolbar,.studio-toolbar){border-radius:12px;background:#fff;border-color:#e1e8f2}
html.rookline-shell-enabled .shop-book-spotlight{display:grid;grid-template-columns:minmax(210px,.7fr) minmax(0,1.3fr);gap:clamp(20px,4vw,48px);align-items:center;margin:clamp(22px,3vw,34px) 0;padding:clamp(20px,3.8vw,42px);border:1px solid #dce5f4;border-radius:22px;background:linear-gradient(118deg,#edf1ff 0%,#fff 54%,#e9f8f3 100%);box-shadow:0 12px 30px rgba(35,55,105,.06)}
html.rookline-shell-enabled .shop-book-spotlight-art{display:grid;justify-items:center;gap:14px;min-width:0}
html.rookline-shell-enabled .shop-book-cover{width:min(100%,290px);min-height:250px;border-radius:14px;box-shadow:0 18px 34px rgba(38,59,117,.15)}
html.rookline-shell-enabled .shop-book-cover span{right:34%;width:30%;height:68%;border-radius:9px;transform:rotate(-7deg);box-shadow:12px 10px 0 rgba(35,52,105,.14)}
html.rookline-shell-enabled .shop-book-cover i{right:17%;width:20%;height:48%;background:#68bfae;transform:rotate(8deg)}
html.rookline-shell-enabled .shop-book-cover b{right:16%;bottom:63%;width:22%;height:17%;background:#fff;transform:rotate(8deg)}
html.rookline-shell-enabled .shop-book-art-caption{display:flex;flex-wrap:wrap;justify-content:center;gap:6px}
html.rookline-shell-enabled .shop-book-art-caption span{padding:5px 9px;border:1px solid #dfe6f1;border-radius:999px;background:#fff;color:#66748a;font-size:.65rem;font-weight:750}
html.rookline-shell-enabled .shop-book-spotlight-copy .smallcap{color:#4260cf;font-size:.64rem;font-weight:850;letter-spacing:.11em}
html.rookline-shell-enabled .shop-book-spotlight-copy h2{max-width:18ch;margin:7px 0 11px;color:#1c2b49;font-size:clamp(1.7rem,3vw,2.7rem);line-height:1.04;letter-spacing:-.055em}
html.rookline-shell-enabled .shop-book-spotlight-copy>p:not(.smallcap):not(.shop-book-transparency){max-width:62ch;color:#64738a;font-size:.9rem;line-height:1.65}
html.rookline-shell-enabled .shop-book-benefits{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 16px;margin:17px 0;color:#43536e;font-size:.78rem;font-weight:680}
html.rookline-shell-enabled .shop-book-benefits span{display:flex;align-items:center;gap:8px}
html.rookline-shell-enabled .shop-book-benefits span:before{content:"";width:7px;height:7px;flex:0 0 7px;border-radius:2px;background:#60b6a2;box-shadow:0 0 0 4px #e6f6f1}
html.rookline-shell-enabled .shop-book-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:18px}
html.rookline-shell-enabled .shop-book-transparency{margin:12px 0 0;color:#8994a6;font-size:.67rem}
html.rookline-shell-enabled .catalog-tools{display:grid;grid-template-columns:minmax(0,1fr) minmax(170px,.36fr) auto;gap:12px;align-items:end;padding:14px;border:1px solid #e0e7f2;border-radius:15px;background:#fff;box-shadow:0 7px 20px rgba(35,55,105,.04)}
html.rookline-shell-enabled .catalog-tools label{display:grid;gap:6px;color:#43536e;font-size:.72rem;font-weight:780}
html.rookline-shell-enabled .catalog-tools #catalog-count{margin:0;padding:11px 4px;color:#7a8799;font-size:.72rem;white-space:nowrap}
html.rookline-shell-enabled .catalog-card{overflow:hidden}
html.rookline-shell-enabled .catalog-content{gap:4px;padding:17px}
html.rookline-shell-enabled .catalog-content h3{font-size:1.2rem;line-height:1.15}
html.rookline-shell-enabled .catalog-content>p:not(.smallcap){color:#64738a;font-size:.82rem;line-height:1.6}
html.rookline-shell-enabled .catalog-bottom{gap:10px;padding-top:12px;border-top:1px solid #edf0f5}
html.rookline-shell-enabled .catalog-featured-book{grid-column:span 2}
html.rookline-shell-enabled .shop-chooser-card{min-height:204px}
@media(max-width:850px){html.rookline-shell-enabled .shop-book-spotlight{grid-template-columns:minmax(0,1fr)}html.rookline-shell-enabled .shop-book-cover{min-height:190px;width:min(80%,300px)}html.rookline-shell-enabled .catalog-tools{grid-template-columns:minmax(0,1fr) minmax(150px,.5fr)}html.rookline-shell-enabled .catalog-tools #catalog-count{grid-column:1/-1;padding:0}}
@media(max-width:590px){html.rookline-shell-enabled .shop-book-spotlight{padding:17px}html.rookline-shell-enabled .shop-book-benefits{grid-template-columns:minmax(0,1fr)}html.rookline-shell-enabled .catalog-tools{grid-template-columns:minmax(0,1fr)}html.rookline-shell-enabled .catalog-featured-book{grid-column:auto}}
@media(prefers-reduced-motion:reduce){html.rookline-shell-enabled :where(.panel,.sheet,.card,.account-card,.community-card,.catalog-card,.academy-card,.studio-card,.lesson-card,.review-card,.progress-card,.position-card,.workspace-card,.tournament-card,.match-card,.board-card,.report-card,.study-card){transition:none!important}}


/* The Studio Chess 3.1 · clearer hierarchy, calmer surfaces and stronger page consistency. */
html.rookline-shell-enabled{
  --rookline-paper:#f5f7fc;
  --rookline-card:#fff;
  --rookline-ink:#17243d;
  --rookline-muted:#64738a;
  --rookline-line:#dfe6f1;
  --rookline-blue:#3454d1;
  --rookline-blue-soft:#eaf0ff;
  color-scheme:light;
}
html.rookline-shell-enabled body{
  background:
    radial-gradient(ellipse at 92% 3%,rgba(220,237,255,.55),transparent 30rem),
    radial-gradient(ellipse at 4% 32%,rgba(226,247,240,.42),transparent 34rem),
    #f6f8fc;
  color:#1b2942;
  -webkit-font-smoothing:antialiased;
}
html.rookline-shell-enabled :where(h1,h2,h3,h4){color:#1b2b49;letter-spacing:-.04em;text-wrap:balance}
html.rookline-shell-enabled :where(h1){font-size:clamp(2rem,4vw,3.55rem);line-height:1.04;font-weight:850}
html.rookline-shell-enabled :where(h2){font-size:clamp(1.45rem,2.4vw,2.25rem);line-height:1.12;font-weight:820}
html.rookline-shell-enabled :where(p){line-height:1.68}
html.rookline-shell-enabled :where(a){text-underline-offset:3px}
html.rookline-shell-enabled :where(a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible){outline:3px solid rgba(61,91,216,.34);outline-offset:3px}
html.rookline-shell-enabled :where(.studio-wrap,.ai-coach-main,.academy-main,.shop-main,.community-main,.tournament-main,.progress-main,.position-main){min-width:0}
html.rookline-shell-enabled :where(.studio-section,.shop-section,.ai-coach-directory,.ai-game-review,.ai-coach-workspace,.ai-coach-how,.ai-coach-next-steps){margin-block:clamp(25px,3.4vw,44px)}
html.rookline-shell-enabled :where(.studio-section-heading,.shop-chooser-heading,.shop-recommendations-heading,.ai-section-head,.ai-game-review-heading,.ai-workspace-intro){margin-bottom:16px}
html.rookline-shell-enabled :where(.studio-grid,.home-study-grid,.partner-home-grid,.catalog-grid,.shop-chooser-grid,.ai-coach-grid,.ai-how-grid){gap:clamp(12px,1.5vw,19px)}
html.rookline-shell-enabled :where(.studio-card,.home-study-card,.partner-home-card,.catalog-card,.shop-chooser-card,.ai-coach-card,.ai-how-grid article,.sheet,.academy-card,.lesson-card,.community-card,.tournament-card,.progress-card,.report-card,.study-card){border:1px solid #e0e7f2;background:rgba(255,255,255,.96);box-shadow:0 8px 24px rgba(34,54,104,.045);transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}
html.rookline-shell-enabled :where(.studio-card,.home-study-card,.partner-home-card,.catalog-card,.shop-chooser-card,.ai-coach-card,.academy-card,.lesson-card,.community-card,.tournament-card,.progress-card,.report-card,.study-card):hover{transform:translateY(-2px);border-color:#cdd8f0;box-shadow:0 14px 32px rgba(34,54,104,.085)}
html.rookline-shell-enabled :where(.studio-section-heading,.shop-chooser-heading,.ai-section-head) p:not(.eyebrow):not(.smallcap):not(.studio-label){max-width:66ch;color:#6b7890;font-size:.88rem}
html.rookline-shell-enabled :where(.studio-title,.studio-section-heading h2){margin-block:5px 8px}
html.rookline-shell-enabled :where(.studio-hero,.ai-coach-hero,.shop-hero,.bots-hero,.academy-hero,.page-hero){border:1px solid #dfe7f5;border-radius:24px;background:linear-gradient(116deg,#edf2ff 0%,#fff 54%,#e9f8f2 100%);box-shadow:0 18px 42px rgba(39,61,120,.075)}
html.rookline-shell-enabled .studio-hero{overflow:hidden;min-height:320px;padding:clamp(23px,3vw,42px)}
html.rookline-shell-enabled .studio-hero .hero-copy-new h1{max-width:12ch;font-size:clamp(2.4rem,4.4vw,4.1rem)}
html.rookline-shell-enabled .studio-hero .hero-copy-new>p:not(.hero-eyebrow){max-width:54ch;color:#60718c;font-size:1rem}
html.rookline-shell-enabled .studio-hero>img{max-width:min(47%,650px);filter:drop-shadow(0 18px 23px rgba(39,62,127,.12))}
html.rookline-shell-enabled :where(.studio-proof-board,.studio-proof-review){border:1px solid #e0e7f2;border-radius:18px;background:#fff;box-shadow:0 9px 26px rgba(34,54,104,.045)}
html.rookline-shell-enabled .studio-proof{gap:16px}
html.rookline-shell-enabled :where(.studio-card,.home-study-card,.partner-home-card){border-radius:17px}
html.rookline-shell-enabled .studio-card{padding:18px}
html.rookline-shell-enabled .studio-card h3{margin-block:10px 6px;font-size:1.12rem}
html.rookline-shell-enabled .studio-card p{color:#697891;font-size:.83rem}
html.rookline-shell-enabled .studio-symbol{border-radius:13px;background:linear-gradient(135deg,#ebefff,#f0faf6);color:#3454d1}
html.rookline-shell-enabled :where(.studio-button,.ai-primary,.action,.primary-button){box-shadow:0 6px 15px rgba(48,75,214,.14);transition:transform .16s ease,box-shadow .16s ease}
html.rookline-shell-enabled :where(.studio-button:hover,.ai-primary:hover,.action:hover,.primary-button:hover){transform:translateY(-1px);box-shadow:0 9px 19px rgba(48,75,214,.19)}
html.rookline-shell-enabled :where(.secondary,.secondary-button,.ai-secondary,.studio-button.secondary){border:1px solid #dce4f1;background:#fff;color:#40516d}
html.rookline-shell-enabled :where(.secondary:hover,.secondary-button:hover,.ai-secondary:hover,.studio-button.secondary:hover){border-color:#becbed;background:#f7f9ff;color:#2d48bf}
.home-learning-loop{display:grid;grid-template-columns:minmax(210px,.68fr) minmax(0,1.32fr);align-items:center;gap:20px;margin:clamp(23px,3vw,38px) 0;padding:clamp(18px,2.6vw,28px);border:1px solid #dfe7f4;border-radius:20px;background:linear-gradient(118deg,#fff,#f0f4ff 65%,#eef9f5);box-shadow:0 10px 25px rgba(34,54,104,.045)}
.home-learning-loop-heading h2{max-width:17ch;margin:7px 0 8px;font-size:clamp(1.45rem,2.2vw,2.1rem)}
.home-learning-loop-heading p{max-width:48ch;margin:0;color:#6a7890;font-size:.82rem}
.home-learning-loop-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.home-learning-loop-steps a{display:grid;align-content:start;gap:7px;min-height:126px;padding:14px 12px;border:1px solid #e2e8f4;border-radius:14px;background:rgba(255,255,255,.85);text-decoration:none;transition:transform .16s,border-color .16s,box-shadow .16s}
.home-learning-loop-steps a:hover{transform:translateY(-2px);border-color:#c5d2f0;box-shadow:0 10px 22px rgba(42,65,123,.08)}
.home-learning-loop-steps a>span{display:grid;place-items:center;width:25px;height:25px;border-radius:8px;background:#eaf0ff;color:#3454d1;font-size:.65rem;font-weight:850}
.home-learning-loop-steps strong{color:#263654;font-size:.88rem}
.home-learning-loop-steps small{color:#758198;font-size:.7rem;line-height:1.45}
.shop-recommendations{margin:26px 0 30px;padding:clamp(18px,2.8vw,30px);border:1px solid #dfe7f4;border-radius:21px;background:linear-gradient(118deg,#f1f4ff,#fff 52%,#eff9f5);box-shadow:0 10px 25px rgba(34,54,104,.045)}
.shop-recommendations-heading h2{margin:6px 0 7px}
.shop-recommendations-heading p:not(.smallcap){max-width:66ch;color:#68778f;font-size:.85rem}
.shop-recommendations-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin-top:18px}
.shop-recommendation{display:grid;grid-template-rows:auto 100px auto 1fr auto;gap:10px;min-width:0;padding:15px;border:1px solid #e0e7f2;border-radius:16px;background:#fff;color:#243450;text-decoration:none;box-shadow:0 6px 18px rgba(34,54,104,.04);transition:transform .17s,border-color .17s,box-shadow .17s}
.shop-recommendation:hover{transform:translateY(-2px);border-color:#c9d5f1;box-shadow:0 13px 28px rgba(34,54,104,.09)}
.shop-rec-number{color:#5670cf;font-size:.62rem;font-weight:850;letter-spacing:.1em}
.shop-rec-cover{width:80px;height:100px;min-height:100px;margin:auto;border-radius:8px;box-shadow:0 9px 16px rgba(40,58,112,.16)}
.shop-rec-art{position:relative;display:grid;place-items:center;overflow:hidden;width:80px;height:100px;margin:auto;border:1px solid #e1e7f5;border-radius:8px;background:linear-gradient(145deg,#eff2ff,#dce5ff)}
.shop-rec-art:before{content:"";position:absolute;width:60px;height:60px;border:1px solid rgba(52,84,209,.3);transform:rotate(45deg)}
.shop-rec-art i,.shop-rec-art b,.shop-rec-art span{position:absolute;display:block;width:34px;height:34px;border:6px solid #4563d2;border-radius:8px;transform:rotate(45deg)}
.shop-rec-art i{left:10px;top:17px;background:#dce7ff}.shop-rec-art b{right:9px;bottom:15px;border-color:#65b9a7;background:#e5f7f1}.shop-rec-art span{width:16px;height:16px;border:0;border-radius:3px;background:#ee9d85;transform:rotate(45deg)}
.shop-rec-art-focus{background:linear-gradient(145deg,#fff0eb,#ffe2d8)}.shop-rec-art-focus:before{border-color:rgba(205,105,82,.35)}.shop-rec-art-focus i{border-color:#df876f;background:#ffe8df}.shop-rec-art-value{background:linear-gradient(145deg,#f1edff,#e2dbff)}.shop-rec-art-value:before{border-color:rgba(112,91,196,.35)}.shop-rec-art-value i,.shop-rec-art-value b{border-color:#7867c7}
.shop-recommendation>strong{font-size:.98rem;line-height:1.2;letter-spacing:-.02em}
.shop-recommendation>p{margin:0;color:#697891;font-size:.76rem;line-height:1.55}
.shop-rec-bottom{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:7px;padding-top:10px;border-top:1px solid #edf0f5}
.shop-rec-bottom b{color:#263650;font-size:.78rem}.shop-rec-bottom em{color:#405cc7;font-size:.72rem;font-style:normal;font-weight:800}
html.rookline-shell-enabled .ai-coach-main{width:min(100% - 34px,1450px);margin:0 auto;padding:clamp(14px,2vw,26px) 0 48px}
html.rookline-shell-enabled .ai-coach-hero{padding:clamp(22px,3.2vw,42px);overflow:hidden}
html.rookline-shell-enabled .ai-game-review{padding:clamp(16px,2.4vw,26px);border:1px solid #e1e7f2;border-radius:22px;background:rgba(255,255,255,.8);box-shadow:0 12px 30px rgba(34,54,104,.045)}
html.rookline-shell-enabled .ai-review-board-layout{grid-template-columns:minmax(300px,.95fr) minmax(280px,.75fr);gap:clamp(13px,1.7vw,22px)}
.ai-review-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:16px 0}
.ai-review-detail-grid article{min-width:0;padding:13px;border:1px solid #e5eaf3;border-radius:12px;background:linear-gradient(145deg,#fff,#f8faff)}
.ai-review-detail-grid article small{display:block;margin-bottom:7px;color:#5169c6;font-size:.61rem;font-weight:850;letter-spacing:.1em}
.ai-review-detail-grid article p{margin:0;color:#516079;font-size:.78rem;line-height:1.6;overflow-wrap:anywhere}
.ai-review-explanation-source{display:inline-flex;align-items:center;margin-top:5px;padding:4px 8px;border:1px solid #e2e8f4;border-radius:999px;background:#f7f9ff;color:#60708c;font-size:.63rem;font-weight:700}
.ai-review-narrative{color:#35455f;font-size:.9rem;line-height:1.72}
.ai-learning-next-step{display:grid;gap:7px;margin-top:14px;padding:14px;border:1px solid #dce6f4;border-radius:13px;background:linear-gradient(120deg,#f0f4ff,#f2faf7)}
.ai-learning-next-step strong{color:#263c76;font-size:.82rem}.ai-learning-next-step p{margin:0;color:#64738b;font-size:.75rem;line-height:1.6}.ai-learning-next-step a{justify-self:start}
.ai-review-move-copy>span{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.ai-review-exercise-actions{display:flex;flex-wrap:wrap;gap:7px;margin-top:8px}
@media(max-width:980px){.home-learning-loop{grid-template-columns:minmax(0,1fr)}.shop-recommendations-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.ai-review-board-layout{grid-template-columns:minmax(0,1fr)!important}}
@media(max-width:650px){.home-learning-loop-steps{grid-template-columns:repeat(2,minmax(0,1fr))}.shop-recommendations-grid{grid-template-columns:minmax(0,1fr)}.ai-review-detail-grid{grid-template-columns:minmax(0,1fr)}html.rookline-shell-enabled .ai-coach-main{width:min(100% - 22px,1450px)}.home-learning-loop{padding:15px}}
@media(prefers-reduced-motion:reduce){.home-learning-loop-steps a,.shop-recommendation{transition:none!important}}


/* The Studio Chess 3.2.0 · shared polish for the full chess workspace */
html.rookline-shell-enabled{scroll-behavior:smooth;scroll-padding-top:82px}
html.rookline-shell-enabled body{background:linear-gradient(180deg,#f7f9ff 0,#f5f7fc 260px,#f5f7fc 100%)!important}
html.rookline-shell-enabled :where(.page,.page-content,.main-content,.content,.shop-page,.library-page,.ai-coach-main){min-width:0}
html.rookline-shell-enabled :where(.panel,.sheet,.card,.studio-card,.catalog-card,.academy-card,.lesson-card,.community-card,.online-card,.position-card,.workspace-card){transition:border-color .16s ease,box-shadow .16s ease}
html.rookline-shell-enabled :where(.sheet,.panel,.card,.studio-card,.catalog-card,.academy-card,.lesson-card,.community-card,.online-card,.position-card,.workspace-card):focus-within{border-color:#b9c9f3;box-shadow:0 12px 30px rgba(37,62,132,.09)}
html.rookline-shell-enabled :where(.page-hero,.academy-hero,.community-hero,.tournament-hero,.bots-hero,.shop-hero,.ai-coach-hero,.library-hero){isolation:isolate}
html.rookline-shell-enabled :where(.section-heading,.section-head,.shop-section-heading,.studio-section-heading){gap:14px;min-width:0}
html.rookline-shell-enabled :where(.section-heading p,.section-head p,.shop-section-heading p,.studio-section-heading p){max-width:70ch;line-height:1.6}
html.rookline-shell-enabled :where(.empty-state,.notice-card,.callout,.status-panel){border:1px solid #dfe7f3;border-radius:14px;background:#fff;box-shadow:0 7px 20px rgba(36,56,103,.035)}
html.rookline-shell-enabled :where(.primary-button,.action,.studio-button,.ai-primary,.academy-primary,.bots-button.primary,.new-game){box-shadow:0 5px 13px rgba(47,82,205,.13)}
html.rookline-shell-enabled :where(.primary-button,.action,.studio-button,.ai-primary,.academy-primary,.bots-button.primary,.new-game):active{transform:translateY(0)}
html.rookline-shell-enabled :where(.secondary,.secondary-button,.ai-secondary,.quiet-button){border:1px solid #d9e2f0;background:#fff;color:#405675}
html.rookline-shell-enabled :where(.eyebrow,.smallcap,.studio-label){font-weight:850;letter-spacing:.11em}
html.rookline-shell-enabled :where(.academy-board,.ai-review-board,.position-board,.opening-board){max-width:100%;aspect-ratio:1/1;min-width:0}
html.rookline-shell-enabled :where(.academy-board,.ai-review-board){grid-template-columns:repeat(8,minmax(0,1fr));grid-template-rows:repeat(8,minmax(0,1fr))}
html.rookline-shell-enabled :where(.catalog-grid,.studio-grid,.academy-grid,.community-grid,.library-book-grid){align-items:stretch}
html.rookline-shell-enabled :where(.catalog-card,.studio-card,.academy-card,.community-card){min-width:0;overflow:hidden}
html.rookline-shell-enabled :where(.catalog-card h3,.studio-card h3,.academy-card h3,.community-card h3){overflow-wrap:anywhere}
html.rookline-shell-enabled :where(.catalog-card p,.studio-card p,.academy-card p,.community-card p){line-height:1.58}
html.rookline-shell-enabled .rookline-series-shelf{margin:28px 0 34px;padding:clamp(18px,3vw,30px);border:1px solid #dfe7f3;border-radius:22px;background:linear-gradient(125deg,#fff 0%,#f6f9ff 62%,#effaf6 100%);box-shadow:var(--rook-shadow)}
html.rookline-shell-enabled .rookline-series-covers{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:13px;margin:18px 0}
html.rookline-shell-enabled .rookline-series-book{display:grid;gap:7px;min-width:0;padding:9px;border:1px solid #e1e8f2;border-radius:13px;background:#fff;color:#233b61;text-decoration:none;box-shadow:0 6px 17px rgba(25,49,98,.04);transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}
html.rookline-shell-enabled .rookline-series-book:hover{transform:translateY(-3px);border-color:#b9c9f3;box-shadow:0 13px 25px rgba(25,49,98,.1)}
html.rookline-shell-enabled .rookline-series-book img{width:100%;aspect-ratio:5/7;object-fit:cover;border-radius:7px;box-shadow:0 9px 18px rgba(12,35,76,.15)}
html.rookline-shell-enabled .rookline-series-book span{color:#5974c8;font-size:.57rem;font-weight:850;letter-spacing:.1em}
html.rookline-shell-enabled .rookline-series-book strong{color:#21375b;font-size:.78rem;line-height:1.32}
html.rookline-shell-enabled .rookline-series-book small{color:#3e5ec2;font-size:.75rem;font-weight:850}
html.rookline-shell-enabled .rookline-series-bundle{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:17px 19px;border:1px solid #dbe5f3;border-radius:15px;background:linear-gradient(110deg,#edf2ff,#f8fbff 62%,#eff9f5)}
html.rookline-shell-enabled .rookline-series-bundle h3{margin:2px 0;color:#1c3155;font-size:1.05rem}
html.rookline-shell-enabled .rookline-series-bundle p{margin:4px 0;color:#637590;font-size:.78rem}
html.rookline-shell-enabled .rookline-series-bundle>div>strong{color:#254bb5;font-size:.94rem}
html.rookline-shell-enabled .rookline-series-bundle del{margin-left:5px;color:#8794a8;font-size:.78rem;font-weight:600}
html.rookline-shell-enabled .rookline-series-note{margin:12px 0 0;color:#78869b;font-size:.7rem}
html.rookline-shell-enabled .rookline-catalog-cover{display:block;width:100%;max-height:230px;aspect-ratio:5/7;object-fit:contain;object-position:center;background:linear-gradient(145deg,#eff4ff,#fff);padding:11px}
html.rookline-shell-enabled .rookline-series-catalog{grid-template-columns:repeat(3,minmax(0,1fr))}
html.rookline-shell-enabled .rookline-series-bundle-card{border-color:#cdd8f5;background:linear-gradient(140deg,#fff,#f3f6ff)}
@media(max-width:1050px){html.rookline-shell-enabled .rookline-series-covers{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){html.rookline-shell-enabled .rookline-series-covers{gap:9px}.rookline-series-bundle{align-items:flex-start!important;flex-direction:column}.rookline-series-catalog{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:480px){html.rookline-shell-enabled .rookline-series-catalog{grid-template-columns:1fr!important}.rookline-series-covers{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(prefers-reduced-motion:reduce){html.rookline-shell-enabled{scroll-behavior:auto}html.rookline-shell-enabled :where(.panel,.sheet,.card,.studio-card,.catalog-card,.academy-card,.lesson-card,.community-card,.online-card,.position-card,.workspace-card,.rookline-series-book){transition:none!important}}
