/* Greenhaven guild kit. Static engraved details, no texture downloads or filters. */
:root{--guild-ink:#203c43;--guild-muted:#53615d;--guild-sea:#215967;--guild-deep:#193f4b;--guild-brass:#ac8548;--guild-paper:#f6eedb;--guild-inset:#e9dfc6;--coast-surface:var(--guild-paper);--coast-inset:var(--guild-inset);--coast-ink:var(--guild-ink);--coast-secondary:var(--guild-muted);--coast-rule:#cfc2a3;--text:var(--guild-ink);--muted:var(--guild-muted)}
body{background:#dce7df;color:var(--guild-ink)}
/* The serif is reserved for place names and chapter headings; controls stay legible. */
body :is(.realm-panel-header h2,.modal-header h2,.training-heading h2,.statement h1,.account-brand strong,.realm-brand>span){font-family:Georgia,'Times New Roman',serif;font-weight:700;letter-spacing:-.035em}
body :is(.realm-panel,.modal,.account-card,.study-shell,.hud-panel){background:var(--guild-paper)!important;border:1px solid #ab9672!important;box-shadow:inset 0 0 0 3px #f9f3e4,inset 0 0 0 4px #d8c7a5,0 5px 0 #163c4333,0 10px 22px #163c4320!important;backdrop-filter:none!important}
body :is(.realm-panel,.modal,.account-card){border-radius:3px!important}
body :is(.realm-panel-header,.modal-header,.training-overlay .topbar){background:var(--guild-deep)!important;background-image:linear-gradient(90deg,#ffffff05,transparent 45%,#00000008)!important;border:0!important;border-bottom:3px solid #b5945b!important;box-shadow:inset 0 1px #e4d2a260,inset 0 -5px #112f3c!important;color:#fff1d2!important;gap:12px}
body :is(.realm-panel-header,.modal-header,.training-heading) :is(h2,span),body .training-overline{color:#fff1d2!important}
body .realm-panel-header h2,body .modal-header h2{font-size:clamp(23px,4.7vw,30px);line-height:1.12}
body .realm-panel-header>div>span,body .training-overline{font-size:9px;letter-spacing:.15em;color:#dfc796!important}
body .realm-panel-header .drawer-emblem,body .training-crest{background:#315865!important;color:#f2cf85!important;border:1px solid #a78b58;border-bottom-width:3px;clip-path:polygon(0 0,100% 0,100% 76%,50% 100%,0 76%);width:42px;height:48px;flex-shrink:0;padding-bottom:5px;box-shadow:inset 0 0 0 3px #234956}
body .realm-panel-header>div:nth-child(2){min-width:0}
body .realm-panel-body{padding:20px;scrollbar-color:#a18a61 transparent;background:linear-gradient(90deg,#baa78014 1px,transparent 1px) 0 0/100% 100%,var(--guild-paper)}
body .modal{padding:24px;overflow-x:hidden}body .modal-header{margin:-24px -24px 22px;padding:16px 20px}
/* Bevelled enamel actions: a narrow brass edge, a dark foot and inset highlight. */
body :is(#app,#modal-root,#account-root) :is(.btn,.back-world):not(.close-control){position:relative;min-height:44px;border:1px solid #a78e61!important;border-bottom:3px solid #81714f!important;border-radius:3px 9px 3px 9px!important;background:#eee1bc!important;color:#34483f!important;box-shadow:inset 0 1px #fff8e5,inset 0 0 0 3px #fff4d34d,0 2px 0 #173e4620!important;font-weight:900;letter-spacing:.015em;transition:transform .15s ease,background-color .15s ease}
body :is(#app,#modal-root,#account-root) .btn.primary{background:#256471!important;color:#fff4d8!important;border-color:#58888a!important;border-bottom-color:#163d47!important;box-shadow:inset 0 1px #98b8ac,inset 0 0 0 3px #ffffff0c,0 2px 0 #173e4633!important}
body :is(#app,#modal-root,#account-root) .btn.secondary{background:#e9cd8e!important;color:#4d4026!important;border-color:#b08a46!important;border-bottom-color:#8d6c35!important}
body :is(#app,#modal-root,#account-root) .btn:disabled{opacity:.55;transform:none!important;cursor:default}
@media(hover:hover){body :is(#app,#modal-root,#account-root) .btn:not(:disabled):hover{transform:translateY(-2px);background:#e2d1a6!important}body :is(#app,#modal-root,#account-root) .btn.primary:not(:disabled):hover{background:#327585!important}}
body :is(#app,#modal-root,#account-root) .btn:not(:disabled):active{transform:translateY(2px)}
/* Ivory quest slips sit inside the guild ledger, with a stitched reward column. */
body #app .quest-choice{background:#fff9eb!important;border:1px solid #d5c7a7!important;border-left:4px solid #49726e!important;box-shadow:0 3px 0 #d5c7a755!important;gap:12px;padding:15px 13px;overflow:visible}
body #app .quest-choice:before{content:'';position:absolute;left:-4px;top:8px;width:4px;height:12px;background:#d8b46f;pointer-events:none}
body #app .quest-choice h3{color:#25494b!important;font-size:18px;line-height:1.25;font-weight:800}
body #app .quest-choice p{color:#5a675e!important;line-height:1.55}
body #app .quest-choice .problem-icon{background:#e5dbc0!important;border:1px solid #c1ae7b;color:#507066!important;clip-path:polygon(0 0,100% 0,100% 76%,50% 100%,0 76%);height:44px;width:38px;padding-bottom:4px}
body #app .quest-choice .quest-reward{border-left:1px dashed #c7b58d;padding-left:10px}
body .quest-reward strong{color:#286373!important;font-size:13px;white-space:nowrap}
body .difficulty{font-size:10px;letter-spacing:.02em;border-radius:2px!important;padding:3px 6px;background:#e2ead7!important;color:#385440!important}
body .difficulty.medium{background:#f0dfb4!important;color:#735720!important}body .difficulty.hard{background:#ecd0bd!important;color:#803e32!important}
@media(hover:hover){body #app .quest-choice:hover{transform:translateY(-2px);background:#fffdf3!important;border-color:#a38b5d!important;box-shadow:0 4px 0 #d5c7a788!important}}
body :is(.quest-milestones,.notice,.design-locked,.realm-panel .panel,.realm-panel .bot-card,.realm-panel .item-card,.realm-panel .reward-stat,.plan-comparison>div,.cosmetic-card,.ad-offer,.premium-quest-link,.shop-release-banner,.profile-gear,.design-context,.lobby-connection,.premium-offer){background:#eee4cd!important;border:1px solid #d8c9a8!important;box-shadow:inset 3px 0 #b9a174!important;color:var(--guild-ink)!important}
body :is(.quest-milestones,.notice,.premium-offer,.cosmetic-card,.profile-gear,.lobby-connection) :is(p,small,span,strong,h3,h4){color:var(--guild-ink)}
body :is(.quest-tracks,.library-scope){gap:5px;padding:4px;background:#dfd3b7;border-bottom:1px solid #c4b28c}
body :is(.quest-tracks button,.library-scope button,.pill){border-radius:2px!important;background:#f5ecd6!important;color:#40584e!important;border:1px solid #c6b792!important;font-weight:800;min-height:38px}
body :is(.quest-tracks button[aria-pressed=true],.library-scope button[aria-pressed=true],.pill.active){background:#285c66!important;color:#fff3d5!important;border-color:#285c66!important;box-shadow:inset 0 -3px #173e48!important}
body :is(.design-filter select,.archive-filter select,.language-picker select,input:not([type=range]):not([type=checkbox]),textarea){background:#fffbef!important;color:#243e40!important;border:1px solid #b8a782!important;border-bottom:2px solid #938265!important;border-radius:3px!important;box-shadow:inset 0 2px 3px #503c1510;font-family:var(--font-body)}
body :is(input,textarea,select)::placeholder{color:#6d756a;opacity:1}
body :is(button,a,select,input,textarea):focus-visible{outline:3px solid #19778e!important;outline-offset:3px}
/* The kingdom HUD: a chart case and distinct enamel navigation seals. */
body #app .realm-mini{padding:9px;background:#e9ddbc!important;border:1px solid #a48e61!important;box-shadow:inset 0 0 0 3px #f9edcb,0 4px 0 #21495355!important}
body #app .realm-mini>.between{padding:0 2px 5px;border-bottom:1px solid #beaa7b;margin-bottom:5px}
body #app .realm-mini>.between>span{color:#40554b!important;font-size:9px;font-weight:900;letter-spacing:.09em}
body #app .realm-mini .icon-btn{background:transparent!important;color:#52674f!important;border:0!important;width:28px;height:28px}
body #app .realm-mini .icon-btn .icon{width:19px;height:19px}
body #app .atlas-map-button{display:block;border:0;background:none;width:100%;padding:0}
body #app .training-cartography{display:block;width:100%;height:auto}
body #app .mini-controls{padding-top:5px;border-top:1px solid #beaa7b;gap:5px}
body #app .mini-controls button{width:32px;height:28px;background:#d2c39d;border:1px solid #b7a171;color:#3a5349;font-weight:900}
body #app .mini-controls span{font-size:9px;color:#52634f!important;letter-spacing:.12em;text-transform:uppercase}
body #app .realm-dock{gap:7px!important}
body #app .realm-dock .dock-item{position:relative;border:1px solid #b6a271!important;border-bottom:4px solid #978158!important;border-radius:7px 7px 17px 17px!important;background:#f3e8ca!important;color:#425c52!important;box-shadow:inset 0 0 0 3px #fff5da,0 3px 5px #153d4333!important;height:67px;gap:3px}
body #app .realm-dock .dock-item>span{color:#496f68}
body #app .realm-dock .dock-item small{font-weight:900;letter-spacing:.015em;font-size:10px}
body #app .realm-dock .dock-item.active{background:#245662!important;color:#fff0cd!important;border-color:#bc9a5b!important;border-bottom-color:#173b43!important;box-shadow:inset 0 0 0 3px #3e7580,0 3px 5px #153d4333!important}
body #app .realm-dock .dock-item.active>span{color:#f0cd81}
body #app .realm-brand{color:#213f42!important;text-shadow:0 1px #fff2ce,0 2px 4px #fff2ce}
body #app .realm-brand>span{color:#213f42!important;font-size:34px;letter-spacing:-1.5px}
body #app .realm-resources{background:#f5e9c8!important;box-shadow:inset 0 0 0 1px #b3a073,inset 0 0 0 4px #fff3d3,0 3px 0 #21495330!important;border-radius:4px 32px 32px 4px!important}
body #app .realm-resources .resource-token{color:#374e45!important}
body #app .realm-resources .resource-token small{color:#5e6b59}
body #app .resource-symbol{background:#e4bb60;color:#735320;box-shadow:inset 0 0 0 2px #fbdf96,inset 0 -3px #bb9142}
body #app .green .resource-symbol{background:#95bec0;color:#244f59;box-shadow:inset 0 0 0 2px #c6ded8,inset 0 -3px #60979f}
body #app .realm-world-tools .world-tool{color:#214f59!important;filter:none}
body #app .realm-world-tools .world-tool .icon{stroke-width:1.7;filter:drop-shadow(0 1px #fff3cf)}
body #app .character-action{background:#245662!important;color:#fff0cd!important;border:1px solid #bc9a5b!important;border-bottom:3px solid #173b43!important;box-shadow:inset 0 0 0 3px #3e7580!important;border-radius:5px 12px 5px 12px!important}
body #app .realm-quest{padding:18px}
body #app .tidal-meter,body #app .reward-station .tidal-meter{background:#ede3c9!important}
body #app .realm-quest .tidal-meter{background:transparent!important}
body #app .tidal-rates span{background:#ded1ae;color:#40574e}body #app .tidal-rates b{color:#245c68}
body #app .tidal-rules{border-color:#c3b48d}
body #app .tidal-ready{background:#e4c781;color:#5f4824;border-radius:2px!important}
body #app .tidal-ready.is-empty{background:none;color:#5d695c}
body #app .hero-portrait{background:#ddd2b1;border:1px solid #b09c6e}
/* Training reads like a field manual: light code and quiet ruled parchment. */
body .study-shell{--text:#203c43;--muted:#53615d;--line:#c7b58f;background:#eee4ce!important}
body .study-shell :is(.panel.statement,.inline-why,.hint-box){background:#fff8e6!important;color:#203c43!important;border:1px solid #d1bd94!important;box-shadow:inset 4px 0 #e8d8ad!important}
body .study-shell .statement:before{background:#ac8548;width:38px;height:3px}
body .study-shell .statement h1{color:#25464a!important}
body .study-shell :is(.editor,.step-section,.summary-card,.design-debrief,.design-blueprint){background:#eee4cd!important;border:1px solid #c6b48e!important;box-shadow:0 3px 0 #c6b48e55!important}
body .study-shell .editor-bar{background:#d9cba9!important;color:#2d4e4d!important;border-bottom:1px solid #b9a67d!important}
body .study-shell .editor-content{background:#fffaf0!important;color:#243e40!important}
body .study-shell :is(.code-line,.code-placeholder,.line-number,.file-tab,.design-placeholder,.design-decisions){color:#355451!important}
body .study-shell .code-line.new,body .study-shell .code-line.new .line-number{background:#dfebda!important}
body .study-shell :is(.code-option,.why-option,.design-flow li,.reward-stat,.design-followup){background:#fff9eb!important;border:1px solid #c8b68e!important;border-bottom:3px solid #c8b68e!important;color:#243e40!important;box-shadow:none!important;border-radius:3px!important}
body .study-shell .code-option code{color:#243e40!important}
body .study-shell main :is(h1,h2,h3,h4),body .study-shell :is(.summary-card,.design-debrief,.reward-stat strong,.design-followup>span){color:#25464a!important}
body .study-shell .code-placeholder{background:#eee5ce!important;border-color:#b5a27b!important;color:#526557!important}
body .study-shell .study-top .progress{background:#d6c8a6!important;border:1px solid #bcaa81!important}
body .study-shell .feedback{background:#e2edd8!important;color:#31523b!important;border-color:#94ac7b!important}
body .study-shell .feedback.error{background:#f5dfd1!important;color:#7a3e2d!important;border-color:#bd8d72!important}
body .study-shell :is(.summary-card small,.design-followup small,.footer-note button){color:#526557!important}
body .study-shell .code-option .option-key{background:#e3d6b3!important;color:#4b583e!important;border:1px solid #beaa7a;box-shadow:inset 0 0 0 2px #f7ebc7}
body .study-shell :is(.code-option.correct,.why-option.correct){background:#e2edd8!important;border-color:#7d9b68!important}
body .study-shell :is(.code-option.wrong,.why-option.wrong){background:#f5dfd1!important;border-color:#b6765b!important}
body .study-shell .step-pebbles i{background:#e0d2b0;color:#5a5e43;border-color:#bba579}
body .study-shell .step-pebbles i.current{background:#285c66;color:#fff0cd;border-color:#285c66}
body .study-shell .step-pebbles i.done{background:#bdd3ad;color:#34523c;border-color:#7e9c6e}
body .study-shell #quest-xp{background:#e5ca83;color:#5b4824}
/* Gear is presented as a quartermaster's inventory; rarity remains visible. */
body .outfit-stage{background:linear-gradient(#b8d9df,#edf0d5 70%,#c7c3a4);border:1px solid #b6a276;box-shadow:inset 0 0 0 4px #fff2cf}
body .outfit-slot{background:#f3e6c6f5!important;border:1px solid #b09c6e!important;box-shadow:inset 0 0 0 3px #fff0cf}
body :is(#app,#modal-root) .loot-tile{background:#f7eed8!important;border:1px solid #c4b28b!important;border-top:3px solid var(--gear)!important;box-shadow:inset 0 0 0 3px #fff7e5!important}
body :is(#app,#modal-root) .loot-tile.wearing{outline:2px solid #31717c;outline-offset:-2px;background:#e2ece1!important}
body :is(.combat-stats>span,.compare-stats>div,.activity-pair>div,.online-player,.match-row,.duel-message){background:#ede2c7!important;border:1px solid #d0bc95!important;box-shadow:inset 0 1px #fff4d8!important}
body .chest-odds>div{background:#f7eed8;border:1px solid #c8b58b;border-left:3px solid #b18e4a}
body .game-settings>section{border-color:#cbb994}
body .modal label{color:#315053}
body :is(.settings-row,.settings-music,.settings-account){background:#e9dec1!important;color:#2b4b4b!important;border:1px solid #cdbc93!important}
body .settings-row{min-height:44px;box-shadow:inset 0 1px #fff5dc}
body .volume-control input{accent-color:#286572}
body .account-card{background:#f6eedb!important;border-top:4px solid #b69250!important}
body .account-brand{background:transparent!important;border:0!important}
body .account-brand strong{font-size:32px;color:#25464a}
body .account-card [data-account=guest]{background:transparent!important;border:0!important;color:#426056!important;text-decoration:underline;text-underline-offset:4px}
/* Red close glyphs are isolated from the themed actions and retain stable targets. */
body :is(#app,#modal-root,#account-root) .close-control,body .cl-modalCloseButton{background:#fff2df!important;border:1px solid #d8bf97!important;border-radius:3px!important;box-shadow:inset 0 1px #fffaf0!important;min-width:44px;min-height:44px}
body :is(#app,#modal-root,#account-root) .close-control svg{color:#c63342!important}
body .training-close>span{color:#516057!important}
/* Chapter tabs and a compact quest board keep actual practice above rewards. */
body #app .realm-panel .library-scope{margin-bottom:14px}
body #app .realm-panel .quest-tracks{margin:14px 0 10px}
body #app .realm-panel .language-picker{margin:10px 0 14px}
body #app .realm-panel .drawer-stats{font-size:11px;font-weight:800;letter-spacing:.02em;border-bottom:1px solid #cfbd96;padding-bottom:9px;margin-bottom:14px}
body #app .quest-choice>div:nth-child(2){min-width:0;flex:1}
body #app .quest-choice h3{overflow-wrap:anywhere}
body #app .quest-choice .quest-reward{flex:0 0 auto}
body #app .quest-choice .icon{stroke-width:1.65}
body #app .realm-panel .tidal-meter{margin-top:22px}
body :is(#app,#modal-root,#account-root) :is(.modal,.account-card,input:not([type=range]):not([type=checkbox]),textarea,select,.pill){border-radius:3px!important}
body :is(#app,#modal-root,#account-root) .btn:focus-visible{outline-offset:4px}
@media(max-width:760px){
 body .realm-panel-body{padding:14px}
 body .realm-panel-header{padding:10px 14px}
 body #app .realm-brand>span{font-size:25px;letter-spacing:-1px}
 body #app .realm-dock{gap:5px!important}
 body #app .realm-dock .dock-item{height:58px;border-radius:5px 5px 12px 12px!important;border-bottom-width:3px!important}
 body #app .realm-dock .dock-item small{font-size:9px}
 body #app .quest-choice{gap:9px;padding:12px 10px}
 body #app .quest-choice h3{font-size:17px}
 body #app .quest-choice .quest-reward{padding-left:7px}
 body #app .realm-mini{padding:6px}
 body #app .realm-mini>.between{margin-bottom:3px;padding-bottom:2px}
 body #app .realm-mini>.between>span{font-size:7px;letter-spacing:.04em}
 body #app .mini-controls{padding-top:3px;margin-top:2px}
 body #app .mini-controls button{height:25px}
 body .modal{padding:18px}body .modal-header{margin:-18px -18px 18px;padding:12px 14px}
}
/* A scribe's insertion line: part of the manuscript, never an imitation input. */
body #app .study-shell .code-placeholder{display:flex;align-items:center;gap:9px;min-height:42px;min-width:0;padding:5px 0;background:transparent!important;border:0!important;box-shadow:none!important;color:#61715c!important;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px;font-style:normal;line-height:1.5}
body #app .code-placeholder>span:nth-child(2){white-space:nowrap}
body #app .code-insertion-mark{font-size:19px;color:#ac8c4d;line-height:1}
body #app .code-insertion-rule{flex:1;min-width:12px;border-bottom:2px dotted #bcac83;position:relative}
body #app .code-insertion-rule:after{content:'';position:absolute;right:0;top:-2px;width:5px;height:5px;background:#b69a60;transform:rotate(45deg)}
body #app .code-quill{width:20px;height:20px;flex:0 0 20px;fill:#eee0b9;stroke:#92774c;stroke-width:1.2;stroke-linejoin:round;stroke-linecap:round}
/* Mossy green light ties the reward illustration to its kingdom shrine. */
body #app .tidal-art:before{inset:15% 0 -2%;background:radial-gradient(ellipse closest-side at 50% 65%,#98bd75a8,#c6d8a273 64%,transparent);}
@media(max-width:350px){body #app .realm-brand>span{font-size:21px}body #app .realm-dock{gap:3px!important}body #app .realm-dock .dock-item small{font-size:8px}body #app .quest-choice .problem-icon{width:30px;height:36px}body #app .quest-choice h3{font-size:15px}body .quest-reward strong{font-size:11px}}
@media(prefers-reduced-motion:reduce){body :is(#app,#modal-root,#account-root) :is(.btn,.back-world,.quest-choice){transition:none!important;transform:none!important}}
/* Sealed academy scrolls expose a catalog entry, never the paid exercise. */
body #app .quest-choice .quest-copy{min-width:0;flex:1}
body #app button.quest-locked{width:100%;text-align:left;font:inherit;cursor:pointer;background:#e8e3d5!important;color:#36596a!important;border-color:#d0c5aa!important}
body #app .quest-locked .problem-icon{background:#dfcc93!important;color:#65512a!important;box-shadow:inset 0 0 0 2px #aa9256}
body #app .quest-locked .quest-reward strong{color:#6a531e!important}
body #app .quest-locked:hover{background:#eee7d4!important;transform:translateY(-2px)}
body #app .locked-quest-heading{display:flex;align-items:center;gap:8px;margin:22px 0 10px;color:#6a531e;font-weight:800;font-size:14px}
body #app .free-quest-note{padding:12px;margin:12px 0;background:#e0edf0;color:#235167;font-size:13px;line-height:1.5}
body .quest-lock-notice{text-align:center;max-width:440px;margin:auto}
body .quest-lock-notice p{margin:12px 0 20px;line-height:1.6}
body .quest-lock-seal{display:grid;place-items:center;width:58px;height:66px;margin:0 auto 12px;background:#e7d69e;color:#705720;clip-path:polygon(10% 0,90% 0,100% 72%,50% 100%,0 72%)}
body .quest-lock-seal .icon{width:30px;height:30px}
@media(max-width:400px){body #app .quest-choice .quest-reward{flex:0 0 62px}body #app .quest-choice h3{overflow-wrap:anywhere}body #app .quest-locked .quest-reward strong{font-size:10px}body #app .free-quest-note{font-size:12px}}
/* Parchment sign-in: explicit contrast also covers SDK loading and error states. */
body .compact-auth .auth-brand{gap:10px}
body .compact-auth .auth-brand img{width:42px;height:46px;object-fit:contain;flex:0 0 42px}
body .compact-auth .auth-brand h1{color:#193f4b!important}
body .compact-auth :is(.cl-formFieldLabel,.cl-formFieldInputShowPasswordButton,.cl-socialButtonsBlockButtonText,.cl-socialButtonsIconButton,.cl-socialButtonsBlockButton){color:#193f4b!important}
body .compact-auth .cl-formFieldInput{background:#fffaf0!important;color:#193f4b!important;caret-color:#205e6e;border:1px solid #ad986c!important;box-shadow:inset 0 1px 2px #4e40100a}
body .compact-auth .cl-formFieldInput::placeholder{color:#596b6b!important;opacity:1}
body .compact-auth .cl-formFieldInput:autofill{-webkit-text-fill-color:#193f4b;caret-color:#193f4b}
body .compact-auth .cl-formFieldInput:focus{border-color:#28758a!important;box-shadow:0 0 0 3px #28758a2b}
body .compact-auth :is(.cl-formFieldErrorText,.cl-formFieldErrorText p,.cl-alertText,.cl-alertText p){color:#a32d3b!important}
body .compact-auth .cl-formFieldInput[aria-invalid=true]{border-color:#a32d3b!important}
body .compact-auth :is(.cl-socialButtonsBlockButton,.cl-socialButtonsIconButton){background:#fffaf0!important;border:1px solid #c2b18b!important;box-shadow:0 2px 0 #c2b18b55}
body .compact-auth :is(.cl-socialButtonsBlockButton,.cl-socialButtonsIconButton):hover{background:#eee5ce!important}
body .compact-auth :is(.cl-socialButtonsBlockButton,.cl-socialButtonsIconButton):focus-visible{box-shadow:0 2px 0 #c2b18b55!important}
body .compact-auth .cl-formButtonPrimary{background:#205e6e!important;color:#fffaf0!important;border:1px solid #194b58!important;box-shadow:0 3px 0 #153e49!important}
body .compact-auth .cl-formButtonPrimary:hover:not(:disabled){background:#174b5a!important;box-shadow:0 4px 0 #153e49!important}
body .compact-auth .cl-formButtonPrimary:active:not(:disabled){box-shadow:0 1px 0 #153e49!important}
body .compact-auth .cl-formButtonPrimary:disabled{background:#526e72!important;color:#fffaf0!important;opacity:1}
body .compact-auth :is(.cl-formButtonPrimary,.cl-socialButtonsIconButton,.cl-socialButtonsBlockButton,.auth-switch):focus-visible{outline:2px solid #28758a;outline-offset:3px}
body .compact-auth :is(.cl-formFieldHintText,.cl-dividerText,.cl-headerSubtitle,.auth-guest-note){color:#4d6467!important}
body .compact-auth :is(.cl-footer,.auth-options){border-color:#cfbf9a}
body .compact-auth .cl-lastAuthenticationStrategyBadge{background:#e4eadc;color:#294f48;border-color:#a6b89f}
body .compact-auth .account-notice{background:#ede3cb;border-color:#c7b48c;color:#193f4b}
/* The forge is a fitting room and a stitched equipment bag, not a catalog. */
body #app .gear-sheet{min-width:0}
body #app .gear-sheet .outfit-stage{height:clamp(188px,24vh,230px);margin-bottom:10px}
body #app .gear-sheet .outfit-slot{width:64px;min-height:72px;padding:4px;gap:1px}
body #app .gear-sheet .outfit-slot .gear-sprite{width:34px;height:34px}
body #app .gear-sheet .outfit-slot small{font-size:10px;line-height:1.2}
body #app .gear-sheet .outfit-slot span{font-size:10px;line-height:1.2}
body #app .gear-stats h3{font-size:14px;margin:0 0 5px;color:#25464a}
body #app .gear-stats .combat-stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;margin:0 0 12px}
body #app .gear-stats .combat-stats>span{padding:5px 2px;min-width:0;gap:1px}
body #app .gear-stats .combat-stats small{font-size:10px;line-height:1.25;color:#425a57!important}
body #app .gear-stats .combat-stats b{font-size:17px;line-height:1.2;color:#214e58!important;font-variant-numeric:tabular-nums}
body #app .equipment-bag{position:relative;background:#dfcda6;border:1px solid #b5a07b;padding:9px;box-shadow:inset 0 0 0 3px #eadbb9}
body #app .bag-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 0 7px;margin-bottom:7px;border-bottom:1px dashed #a88e5f}
body #app .bag-heading h3{display:flex;align-items:center;gap:6px;font-size:15px;line-height:1.2;margin:0;color:#3c5149}
body #app .bag-heading h3 svg{width:20px;height:20px;flex:0 0 20px;fill:#bd9b60;stroke:#655238;stroke-width:1.4;stroke-linejoin:round;stroke-linecap:round}
body #app .bag-heading>small{font-size:10px;white-space:nowrap;color:#5b5a41}
body #app .bag-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:0}
body #app .bag-grid .bag-slot{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;min-width:0;min-height:94px;padding:7px 3px 5px;text-align:center;overflow:visible;cursor:pointer;transition:transform .15s ease,background .15s ease;border-top-width:3px!important;box-shadow:inset 0 0 0 2px #fff7e5,0 2px 0 #bba578!important}
body #app .bag-item-art{display:grid;place-items:center;width:100%;height:42px;flex:0 0 42px;margin:0 0 4px}
body #app .bag-item-art svg,body #modal-root .loot-inspect>svg{width:42px;height:42px;max-width:100%;filter:none}
body #app .bag-item-art svg{animation:none!important}
body #modal-root .loot-inspect>svg{width:96px;height:96px}
body #app .bag-slot>strong{display:block;max-width:100%;font-size:10px;line-height:1.2;font-weight:800;overflow-wrap:anywhere;color:#25464a!important}
body #app .bag-slot>small{font-size:9px;line-height:1.3;margin-top:3px;color:#5b6251!important}
body #app .bag-slot .worn-pin{position:absolute;top:3px;right:3px;width:14px;height:14px;display:grid;place-items:center;background:#245c60;color:#fff6db;font-size:10px;line-height:1;border-radius:2px!important}
body #app .bag-upgrade,body #app .bag-solo-pin{position:absolute;top:3px;left:3px;padding:1px 3px;font-size:9px;line-height:1.2;background:#f4e7c7;color:#5d5035;font-weight:800}
body #app .bag-slot:hover{transform:translateY(-2px);background:#fff4d9!important}
body #app .bag-slot:active{transform:translateY(1px)}
body #app .bag-slot:focus-visible{outline:2px solid #28758a;outline-offset:2px}
body #modal-root .gear-upgrade-wallet{background:#e8ddc0;color:#25464a!important;padding:9px 12px;font-size:13px;margin:12px 0 6px}
@media(max-width:350px){body #app .bag-grid{gap:4px}body #app .bag-slot>strong{font-size:9px}body #app .gear-sheet .outfit-slot{width:56px;min-height:66px}body #app .gear-sheet .outfit-slot .gear-sprite{width:30px;height:30px}body #app .gear-stats .combat-stats small{font-size:9px}}
@media(prefers-reduced-motion:reduce){body #app .bag-slot{transition:none}body #app .bag-slot:hover,body #app .bag-slot:active{transform:none}}
/* Planning uses the same parchment, enamel controls and focus treatment as coding. */
.knowledge-brief{background:var(--paper,#fff9eb);border:1px solid #c9b47d;margin-bottom:16px}
.knowledge-route{list-style:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:0;padding:16px;color:#48616a;font-size:clamp(.78rem,2.7vw,.92rem)}
.knowledge-route li{display:flex;align-items:center;gap:9px;min-width:0;line-height:1.3}
.knowledge-route li>span{display:grid;place-items:center;flex:0 0 27px;width:27px;height:30px;background:#e9dcc0;color:#35545c;clip-path:polygon(0 0,100% 0,100% 75%,50% 100%,0 75%);font-weight:800}
.knowledge-route li.current{color:#174e61;font-weight:800}.knowledge-route li.current>span{background:#c5e3e7}.knowledge-route li.complete>span{background:#cadcba;color:#32552f}
.knowledge-options .code-option{font-family:inherit;white-space:normal;line-height:1.5}.knowledge-options .code-option>span:last-child{min-width:0;overflow-wrap:anywhere}
.knowledge-study .editor-bar{gap:10px;flex-wrap:wrap;height:auto;min-height:42px}.knowledge-study .editor-bar>span:last-child{font-size:.75rem}
.knowledge-study .step-section h3:focus{outline:2px solid #257e94;outline-offset:4px}
