/* THINKWAYAI Dark Learning Studio — presentation layer only.
   Simulator dimensions, transforms, aspect ratios, #screenWrap, #stage,
   main grid proportions, and replay scripts are deliberately untouched. */
:root{--twl-ink:#eef4ff;--twl-green:#33e887;--twl-green-d:#65e9a2;--twl-line:#29364a;--twl-mute:#9caec6;--twl-bg:#0b111d}
body{background:#0b111d!important}
.top{background:#0e1726!important;color:#e8eef9!important;border-bottom:1px solid #29384d!important;box-shadow:none!important}
.top h1,.top h1 small,.top h1 .home,.top .stepLbl{color:#f0f5ff!important}
.top h1 .sep{background:#304159!important}
.top .fsBtn,.top button:not(.twl-next),.top select{background:#182437!important;color:#dce8f8!important;border:1px solid #33445b!important;box-shadow:none!important}
.top .fsBtn:hover,.top button:hover{background:#22334b!important}
.top #appBtn{background:#1a2a3b!important;color:#a3f4c2!important}
.tw-settings-panel,.tw-settings-panel .fsBtn{background:#152133!important;color:#eaf0fc!important;border-color:#34455c!important}
.twl-bar{background:#101b2b!important;color:#dce7f6!important;border-bottom:1px solid #2a394f!important;box-shadow:none!important}
.twl-k,.twl-gstep,.twl-ck{color:#74e7a7!important}
.twl-goal{color:#d8e5f5!important}
.twl-meta{color:#a7b7ca!important}
.twl-meter{background:#29374a!important}
.twl-meter i{background:#39d987!important}
/* Preserve main grid and simulator geometry exactly. */
.pane{border:1px solid #2c3b50!important;border-radius:14px!important;box-shadow:0 12px 32px rgba(0,0,0,.18)!important}
/* The recorded environments keep their own light appearance and text color, whatever the theme does. */
#screen,#right,#stage{color:#1f2937!important}
#right{background:#fff!important}
/* Only the surrounding pane is themed; the simulated Mac/browser remains unchanged. */
/* Learning text: compact, readable, with a single highlighted takeaway. */
.twl-guide{background:#131e2e!important;color:#e6eefb!important;border-top:1px solid #304158!important;padding:13px 18px!important;font-size:.86rem!important;line-height:1.5!important;scrollbar-color:#40516b #131e2e!important}
.twl-guide h2{color:#f7faff!important;font-size:1.04rem!important;letter-spacing:-.025em!important}
.twl-guide .twl-ghead{margin-bottom:7px!important}
.twl-guide .twl-what{color:#d6e2f1!important;font-size:.83rem!important;line-height:1.48!important;margin-bottom:8px!important}
.twl-guide .twl-dim{color:#a6b7ce!important}
.twl-guide .twl-say{color:#dce7f6!important;margin:0 0 8px!important;line-height:1.55!important}
.twl-guide .twl-seg:hover{background:#24354a!important}
.twl-guide .twl-seg.now{background:#214935!important;box-shadow:0 0 0 2px #214935!important}
.twl-guide .twl-why,.twl-guide .twl-notice{border-left:2px solid #3bd58a!important;padding:6px 10px!important;margin-top:8px!important;background:#182b31!important;color:#dceee4!important;border-radius:0 8px 8px 0!important;font-size:.82rem!important}
.twl-guide .twl-why b,.twl-guide .twl-notice b{background:none!important;color:#82f0b4!important;padding:0!important;margin-right:8px!important}
.twl-guide .twl-whobox,.twl-guide .twl-practice,.twl-guide .twl-check{background:#18263a!important;color:#e6eefb!important;border:1px solid #33465d!important}
.twl-guide .twl-who li>span:last-child{color:#bfcde0!important}
.twl-guide .twl-who code,.twl-guide code{background:#25354a!important;color:#b8f3d0!important}
.twl-guide .twl-opts button{background:#1e3045!important;color:#eef4ff!important;border:1px solid #3b5169!important}
.twl-guide .twl-opts button:hover{background:#28425a!important}
.twl-guide .twl-practice textarea{background:#101b2b!important;color:#f0f6ff!important;border-color:#415570!important}
.twl-guide .twl-term{border-bottom-color:#59db95!important;color:inherit!important}
/* Caption remains below the simulator, never over its recording. */
body.tw-beginner .twl-caption{background:#182b38!important;color:#e6f4ff!important;border-top:1px solid #35506a!important;box-shadow:none!important}
/* Controls: muted secondaries and a single green Next CTA. */
.twl-narr,.twl-controls,.bottom,.footer,.playback{background:#0e1726!important;color:#dbe8f7!important;border-color:#2b3b50!important}
.twl-narr button,.bottom button,.footer button,.playback button{border-color:#35465e!important}
.twl-narr .twl-next,.bottom .twl-next,.twl-next{background:#36dc86!important;color:#062518!important;border-color:#36dc86!important}
.twl-vb.rec{background:#193d2d!important;color:#a1f3c4!important;border-color:#2b7650!important}
.twl-vb.tts{background:#49361d!important;color:#ffe0a0!important;border-color:#75532b!important}
.twl-tour{background:#18253a!important;color:#e8f1fd!important;border:1px solid #3b4d65!important}
.twl-tour p{color:#d2e0f1!important}
.twl-tour button{background:#23344b!important;color:#e6f0fd!important;border-color:#435671!important}
.twl-tour .twl-tnext{background:#34dc87!important;color:#082819!important}
.twl-pop{background:#20324b!important;color:#f2f6ff!important}
@media(max-width:700px){.twl-guide{padding:12px!important}.top{border-bottom-color:#2a3b52!important}}

/* ---- Added when applied (2026-10-15): the same dark palette for the v4 focused layout (assets/twai-focus-v4.css):
   step rail, replay header, "who did what" panel, playback bar, phone tabs. ---- */
.twl-rail{background:#0e1726!important;border-bottom:1px solid #29384d!important}
.twl-chap{background:#36dc86!important;color:#062518!important}
.twl-rarrow{background:#182437!important;color:#dce8f8!important;border-color:#33445b!important}
.twl-step{background:#131e2e!important;color:#dce7f6!important;border-color:#33445b!important}
.twl-step:hover{border-color:#65e9a2!important}
.twl-step[aria-current=step]{background:#1a3326!important;border-color:#36dc86!important;color:#f0fff6!important}
.twl-step i{background:#243448!important;color:#b7c6da!important}
.twl-step i.seen{background:#1c3b2c!important;color:#8ef0b9!important}
.twl-step i.q,.twl-step i.right{background:#36dc86!important;color:#062518!important}
main > #twGuide{background:#131e2e!important;border:1px solid #2c3b50!important;box-shadow:0 12px 32px rgba(0,0,0,.18)!important}
.twl-ghead{border-bottom-color:#2c3b50!important}
.twl-say::before{color:#74e7a7!important}
.twl-guide .twl-whobox summary,.twl-guide .twl-check p{color:#eef4ff!important}
.twl-guide .twl-opts button.right{background:#1c3b2c!important;border-color:#36dc86!important}
.twl-guide .twl-opts button.wrong{background:#3b2222!important;border-color:#b45454!important}
.twl-guide .twl-done{background:#18263a!important;border:1px solid #33465d!important}
.twl-phead{background:#111b2b!important;color:#dce7f6!important;border-bottom:1px solid #2c3b50!important}
.twl-phk b{background:#36dc86!important;color:#062518!important}
.twl-tag{background:#243448!important;color:#c9d8eb!important}
.twl-tag.recorded{background:#193d2d!important;color:#a1f3c4!important}
.twl-tag.edited{background:#1e2f4a!important;color:#b7d1ff!important}
.twl-tag.added{background:#49361d!important;color:#ffe0a0!important}
body.tw-beginner #explain{background:#111b2b!important;color:#dce7f6!important;border-top:1px solid #2c3b50!important}
body.tw-beginner #explain::before{color:#74e7a7!important}
body.tw-beginner #explain .lead{color:#f0f5ff!important}
body.tw-beginner #explain .lead small,body.tw-beginner #explain .recon{color:#b7c6da!important}
body.tw-beginner #explain code{background:#25354a!important;color:#b8f3d0!important;border-color:#33445b!important}
body.tw-beginner #explain .more{background:#182437!important;color:#dce8f8!important;border-color:#33445b!important}
#explain .chip.claude{background:#1e2f4a!important;color:#b7d1ff!important}
#explain .chip.you{background:#193d2d!important;color:#a1f3c4!important}
#explain .chip.result{background:#243448!important;color:#c9d8eb!important}
.controls{background:#0e1726!important;border-top:1px solid #2b3b50!important;color:#dbe8f7!important}
.cbtn{background:#36dc86!important;color:#062518!important;border-color:#36dc86!important}
.cbtn.sec,.twl-play,.twl-sm{background:#182437!important;color:#dce8f8!important;border-color:#35465e!important}
.twl-play[aria-pressed=true]{background:#36dc86!important;color:#062518!important}
.twl-status,.controls .stepTitle{color:#b7c6da!important}
.top .openApp{background:#36dc86!important;color:#062518!important;border-color:#36dc86!important}
.mobileViews{background:#0e1726!important;border-bottom-color:#29384d!important}
.mobileViews button{background:#182437!important;color:#dce8f8!important;border-color:#33445b!important}
.mobileViews button[aria-selected=true]{background:#36dc86!important;color:#062518!important}
.mobileZoom{background:#0e1726!important;border-top-color:#2b3b50!important}
.mobileZoom button{background:#182437!important;color:#dce8f8!important;border-color:#33445b!important}
.mobileZoom span{color:#b7c6da!important}
.twl-region{background:rgba(14,23,38,.94)!important}
.twl-caption::before{color:#74e7a7!important}

/* Claude pane empty state (step 0): a plain ThinkWayAI note, not a fake Claude message. */
#chat .tw-empty{margin:14px 12px;padding:12px 14px;font-size:.84rem;border:1px dashed #cfd6e4;border-radius:12px;background:#f8fafc;color:#4b5563;font-size:.9rem;line-height:1.5;text-align:center}
#chat .tw-empty b{display:block;color:#1f2937;margin-bottom:4px}
.twl-hide{background:#182437!important;color:#b7c6da!important;border-color:#33445b!important}
.twl-hide:hover{color:#eef4ff!important;border-color:#65e9a2!important}
.twl-gbtn[aria-pressed=false]{background:#36dc86!important;color:#062518!important;border-color:#36dc86!important}
