/* BrounStack Playground — premium brand skin over functional playground.css */
:root{
  --pg-ink:#031637;
  --pg-ink-2:#17345f;
  --pg-blue:#0a7bff;
  --pg-blue-2:#1262ff;
  --pg-blue-3:#0752dc;
  --pg-soft:#f6faff;
  --pg-soft-2:#eef6ff;
  --pg-line:#dce8f7;
  --pg-muted:#5d7392;
  --pg-white:#fff;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body.playground-brand{margin:0;overflow-x:hidden;background:#f7faff;color:var(--pg-ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
body.playground-brand a{text-decoration:none;color:inherit}
body.playground-brand button,body.playground-brand textarea{font:inherit}
.playground-container{width:min(1220px,calc(100% - 40px));margin-inline:auto}
.skip-link{position:fixed;left:14px;top:14px;z-index:9999;transform:translateY(-180%);padding:10px 14px;border-radius:10px;background:#fff;color:var(--pg-ink);font-weight:850;box-shadow:0 12px 30px rgba(0,0,0,.18)}
.skip-link:focus{transform:none}

/* Header */
.playground-header{position:fixed;inset:0 0 auto 0;z-index:100;background:rgba(255,255,255,.94);border-bottom:1px solid rgba(8,43,99,.10);box-shadow:0 8px 30px rgba(3,22,55,.055);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
.playground-nav-wrap{height:76px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.playground-brand-logo{display:flex;align-items:center;flex:0 0 auto}.playground-brand-logo img{width:168px;height:auto}
.playground-nav{display:flex;align-items:center;gap:4px}.playground-nav>a{padding:10px 12px;border-radius:10px;color:#17345f;font-size:13px;font-weight:760;transition:.18s ease}.playground-nav>a:hover,.playground-nav>a.active{color:var(--pg-blue-3);background:#edf5ff;transform:translateY(-1px)}
.playground-signin{margin-left:8px!important;padding:10px 16px!important;color:#fff!important;background:linear-gradient(105deg,#082b63,var(--pg-blue))!important;box-shadow:0 10px 24px rgba(10,123,255,.22)}
.playground-menu{display:none;width:42px;height:42px;padding:0;border:1px solid #d8e4f4;border-radius:11px;background:#fff;place-items:center;align-content:center;gap:4px;cursor:pointer}.playground-menu span{display:block;width:19px;height:2px;border-radius:999px;background:#082b63}

/* Hero */
.playground-hero{position:relative;isolation:isolate;overflow:hidden;padding:142px 0 86px;background:radial-gradient(circle at 10% 8%,rgba(10,123,255,.15),transparent 31%),radial-gradient(circle at 90% 10%,rgba(18,98,255,.12),transparent 31%),linear-gradient(180deg,#fff 0%,#f9fbff 62%,#eef6ff 100%);border-bottom:1px solid #e3edf8}
.playground-hero::before{content:"";position:absolute;inset:0;z-index:-2;opacity:.5;background-image:linear-gradient(rgba(8,43,99,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(8,43,99,.035) 1px,transparent 1px);background-size:52px 52px;mask-image:linear-gradient(to bottom,#000,transparent 92%)}
.playground-hero-grid{display:grid;grid-template-columns:minmax(0,1.02fr) minmax(480px,.98fr);gap:72px;align-items:center}
.playground-kicker{display:inline-flex;align-items:center;gap:9px;padding:8px 12px;border:1px solid #dbe8f7;border-radius:999px;background:rgba(255,255,255,.92);color:#31557f;font-size:11px;font-weight:820;box-shadow:0 10px 28px rgba(3,22,55,.05)}.playground-kicker i{width:8px;height:8px;border-radius:50%;background:var(--pg-blue);box-shadow:0 0 0 5px rgba(10,123,255,.10)}
.playground-hero-copy h1{max-width:740px;margin:20px 0 17px;color:var(--pg-ink);font-size:clamp(54px,5.5vw,78px);line-height:.98;letter-spacing:-3.5px}.playground-hero-copy h1 span{display:block;color:var(--pg-blue-2)}
.playground-hero-copy>p{max-width:690px;margin:0;color:#486888;font-size:16px;line-height:1.78;font-weight:500}
.playground-hero-proof{display:flex;flex-wrap:wrap;gap:14px 20px;margin-top:25px;color:#4f698a;font-size:11px;font-weight:720}.playground-hero-proof span{display:inline-flex;align-items:center;gap:7px}.playground-hero-proof i{width:18px;height:18px;display:grid;place-items:center;border:1px solid #d4e8ff;border-radius:50%;background:#eaf4ff;color:var(--pg-blue-3);font-style:normal;font-size:10px}

.hero-code-card{position:relative;min-height:440px;display:flex;align-items:center;justify-content:center}
.hero-code-card::before{content:"";position:absolute;width:min(95%,520px);aspect-ratio:1;border-radius:50%;background:radial-gradient(circle,rgba(10,123,255,.18),rgba(18,98,255,.07) 40%,transparent 72%);filter:blur(14px)}
.hero-code-window{position:relative;width:min(100%,540px);overflow:hidden;border:1px solid rgba(255,255,255,.12);border-radius:28px;background:linear-gradient(145deg,#07192f,#0a2447);box-shadow:0 34px 80px rgba(3,22,55,.22);color:#dfeaff}
.hero-code-top{height:48px;display:flex;align-items:center;justify-content:space-between;padding:0 17px;border-bottom:1px solid rgba(255,255,255,.08);background:#0a1b33}.hero-code-dots{display:flex;gap:6px}.hero-code-dots i{width:8px;height:8px;border-radius:50%;background:#ff6b7c}.hero-code-dots i:nth-child(2){background:#ffc94a}.hero-code-dots i:nth-child(3){background:#43d690}.hero-code-top span{color:#8fa8c8;font:700 10px/1 ui-monospace,SFMono-Regular,Menlo,monospace;letter-spacing:.08em}
.hero-code-tabs{display:flex;gap:8px;padding:14px 16px 0}.hero-code-tabs span{padding:8px 11px;border:1px solid rgba(143,168,200,.15);border-radius:9px;color:#90a8c6;background:#0c203c;font-size:10px;font-weight:800}.hero-code-tabs span.active{color:#fff;background:linear-gradient(105deg,#0a68e8,#0a7bff);border-color:transparent;box-shadow:0 8px 20px rgba(10,123,255,.25)}
.hero-code-body{padding:20px 20px 24px;font:12px/1.85 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;color:#b8c9df}.hero-code-body b{color:#64b7ff}.hero-code-body em{color:#f2c66d;font-style:normal}.hero-code-body strong{color:#7ee0b1}.hero-code-output{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 16px 16px;padding:14px 15px;border:1px solid rgba(143,168,200,.14);border-radius:14px;background:#06162b}.hero-code-output div b{display:block;color:#fff;font-size:12px}.hero-code-output div span{display:block;margin-top:4px;color:#7790af;font-size:10px}.hero-code-output i{width:34px;height:34px;display:grid;place-items:center;border-radius:11px;background:linear-gradient(135deg,#0752dc,#0a7bff);color:#fff;font-style:normal}

/* Workspace */
.playground-workspace{padding:72px 0 80px;background:#f7faff}
.workspace-heading{max-width:820px;margin:0 auto 32px;text-align:center}.workspace-heading span{display:block;margin-bottom:8px;color:var(--pg-blue-3);font-size:10px;font-weight:900;letter-spacing:.15em}.workspace-heading h2{margin:0;color:var(--pg-ink);font-size:clamp(34px,4vw,50px);line-height:1.05;letter-spacing:-1.9px}.workspace-heading h2 strong{color:var(--pg-blue-2)}.workspace-heading p{max-width:650px;margin:12px auto 0;color:#5c7291;font-size:14px;line-height:1.72;font-weight:500}
.playground-shell{padding:0!important}
.playground-toolbar{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:14px!important;margin:0 0 14px!important;padding:14px!important;border:1px solid #dce8f7!important;border-radius:18px!important;background:#fff!important;box-shadow:0 16px 40px rgba(3,22,55,.07)!important;flex-wrap:wrap!important}
.mode-switch{display:grid!important;grid-template-columns:repeat(4,minmax(100px,1fr))!important;width:min(650px,100%)!important;gap:6px!important;padding:5px!important;border:1px solid #e3ebf6!important;border-radius:13px!important;background:#f6faff!important;overflow:visible!important}.mode-switch button{min-height:40px!important;padding:0 13px!important;border:0!important;border-radius:9px!important;background:transparent!important;color:#516986!important;font-size:12px!important;font-weight:850!important;cursor:pointer!important}.mode-switch button:hover{background:#edf5ff!important;color:var(--pg-blue-3)!important}.mode-switch button.active{background:linear-gradient(105deg,#0752dc,#0a7bff)!important;color:#fff!important;box-shadow:0 8px 20px rgba(10,123,255,.22)!important}.web-mode-proxy{display:none!important}
.toolbar-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:8px!important;flex:1!important;flex-wrap:wrap!important}.toolbar-actions button{min-height:40px!important;padding:0 13px!important;border-radius:10px!important;font-size:11px!important;font-weight:820!important}.run-action{border-color:transparent!important;background:linear-gradient(105deg,#0752dc,#0a7bff)!important;color:#fff!important;box-shadow:0 9px 22px rgba(10,123,255,.2)}.secondary-action{border-color:#d8e4f3!important;background:#fff!important;color:#25486f!important}.secondary-action:hover{border-color:#b8d5fa!important;background:#f7fbff!important}.project-current-name{color:#486888!important}
.auto-run-control{border-color:#d8e4f3!important;background:#fff!important;color:#3c5b7d!important}.autosave-status{color:#6f819a!important}

.playground-grid{gap:16px!important;min-height:620px!important}.editor-panel,.result-panel{border:1px solid #dce7f5!important;border-radius:20px!important;box-shadow:0 18px 45px rgba(3,22,55,.08)!important}.editor-tabs,.panel-title{min-height:56px!important;padding:10px 12px!important;border-bottom:1px solid #e4ecf6!important;background:#f8fbff!important}.editor-tabs{display:flex!important;gap:7px!important}.editor-tabs button{min-height:35px!important;padding:0 12px!important;border:1px solid transparent!important;border-radius:9px!important;background:transparent!important;color:#647b98!important;font-size:11px!important;font-weight:850!important}.editor-tabs button:hover{background:#edf5ff!important;color:var(--pg-blue-3)!important}.editor-tabs button.active{background:#e9f4ff!important;color:var(--pg-blue-3)!important;border-color:#d3e7ff!important}.panel-title strong{color:#15375f!important;font-size:13px}.panel-title span{color:#6b819e!important;font-size:11px}
.editor-panel>textarea,[data-python-editor]{min-height:530px!important;padding:22px!important;background:#07172d!important;color:#dceaff!important;font:14px/1.72 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace!important;caret-color:#6cb8ff}.result-panel iframe{height:586px!important;background:#fff!important}.stdin-box{color:#355472!important;background:#fff!important}.stdin-box textarea{border-color:#d4e1f0!important;background:#f9fbfe!important;color:#17345f!important}
.terminal-panel{background:#07172d!important}.terminal-panel .panel-title{background:#0b203b!important;border-bottom-color:#17385f!important}.terminal-panel .panel-title strong{color:#fff!important}.terminal-panel .panel-title span{color:#8fa8c8!important}.terminal-panel pre{min-height:480px!important;padding:22px!important;background:#07172d!important;color:#d8efe4!important}.runner-note{border-top-color:#17385f!important;background:#0b203b!important;color:#a9bdd7!important}
.playground-console{margin-top:16px!important;border-color:#17385f!important;border-radius:18px!important;box-shadow:0 18px 45px rgba(3,22,55,.08)!important}.playground-console-head{background:#0b203b!important;border-bottom-color:#17385f!important}.playground-console pre{background:#061222!important}

/* Feature strip */
.playground-features{display:grid;grid-template-columns:repeat(4,1fr);margin-top:18px;overflow:hidden;border:1px solid #dce7f5;border-radius:18px;background:#fff;box-shadow:0 16px 40px rgba(3,22,55,.06)}.playground-feature{min-height:92px;display:flex;align-items:center;gap:13px;padding:18px;border-right:1px solid #e7eef7}.playground-feature:last-child{border-right:0}.playground-feature-icon{width:42px;height:42px;display:grid;place-items:center;flex:0 0 auto;border:1px solid #d8e8fb;border-radius:13px;background:linear-gradient(145deg,#eef6ff,#e5f1ff);color:var(--pg-blue);font-weight:900}.playground-feature b{display:block;color:#163760;font-size:13px}.playground-feature span{display:block;margin-top:4px;color:#637995;font-size:10px;line-height:1.45}

/* Tips */
.playground-tips{padding:84px 0;background:#fff;border-top:1px solid #edf2f8}.tips-head{max-width:760px;margin:0 auto 34px;text-align:center}.tips-head span{color:var(--pg-blue-3);font-size:10px;font-weight:900;letter-spacing:.15em}.tips-head h2{margin:9px 0 0;color:var(--pg-ink);font-size:clamp(34px,4vw,50px);line-height:1.05;letter-spacing:-1.8px}.tips-head h2 strong{color:var(--pg-blue-2)}.tips-head p{max-width:650px;margin:12px auto 0;color:#5c7291;font-size:14px;line-height:1.72}.tips-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.tip-card{min-height:210px;padding:26px;border:1px solid #e0e8f3;border-radius:24px;background:#fff;box-shadow:0 12px 34px rgba(3,22,55,.05)}.tip-card i{width:48px;height:48px;display:grid;place-items:center;border-radius:15px;background:#eaf4ff;color:var(--pg-blue-3);font-style:normal;font-weight:900}.tip-card h3{margin:18px 0 7px;color:#102b52;font-size:20px}.tip-card p{margin:0;color:#5e7393;font-size:13px;line-height:1.72;font-weight:500}

/* Footer */
.playground-footer{background:#f5f9ff;color:var(--pg-ink);border-top:1px solid #dce8f7}.playground-footer-grid{display:grid;grid-template-columns:1.65fr repeat(3,1fr);gap:48px;padding:58px 0 46px}.playground-footer-brand>a{display:inline-flex}.playground-footer-brand img{width:170px}.playground-footer-brand p{max-width:350px;margin:17px 0 14px;color:#536d8e;font-size:12px;line-height:1.72;font-weight:500}.playground-footer-brand>span{color:#58779e;font-size:10px;font-weight:850;letter-spacing:.08em}.playground-footer h4{margin:0 0 15px;color:#163760;font-size:12px}.playground-footer-grid>div:not(.playground-footer-brand){display:flex;flex-direction:column;align-items:flex-start}.playground-footer-grid>div:not(.playground-footer-brand) a{margin:0 0 10px;color:#536d8e;font-size:11px;font-weight:600}.playground-footer-grid>div:not(.playground-footer-brand) a:hover{color:var(--pg-blue-3)}.playground-footer-bottom{display:flex;justify-content:space-between;gap:20px;padding:20px 0;border-top:1px solid #dce7f5;color:#617894;font-size:10px}

/* Focus/fullscreen compatibility */
.playground-focus-mode .playground-header,.playground-focus-mode .playground-hero,.playground-focus-mode .playground-tips,.playground-focus-mode .playground-footer,.playground-focus-mode .workspace-heading,.playground-focus-mode .playground-features{display:none!important}
.playground-focus-mode .playground-workspace{padding:0!important;background:#f6f8fc!important}
.playground-focus-mode .playground-container{width:100%!important;max-width:none!important}

@media(max-width:1100px){
  .playground-hero-grid{grid-template-columns:1fr 1fr;gap:42px}.hero-code-card{min-height:390px}.playground-footer-grid{gap:30px}
  .toolbar-actions{justify-content:flex-start!important}.playground-toolbar{align-items:flex-start!important;flex-direction:column!important}.mode-switch{width:100%!important}
}
@media(max-width:920px){
  .playground-hero{padding-top:124px}.playground-hero-grid{grid-template-columns:1fr;gap:30px}.playground-hero-copy{text-align:center}.playground-hero-copy>p{margin-inline:auto}.playground-hero-proof{justify-content:center}.hero-code-card{min-height:0}.hero-code-window{width:min(100%,650px)}
  .playground-features{grid-template-columns:1fr 1fr}.playground-feature:nth-child(2){border-right:0}.playground-feature:nth-child(-n+2){border-bottom:1px solid #e7eef7}
  .tips-grid{grid-template-columns:1fr}.playground-footer-grid{grid-template-columns:1.5fr 1fr 1fr}.playground-footer-grid>div:last-child{grid-column:2/4}
}
@media(max-width:760px){
  .playground-container{width:min(100% - 28px,1220px)}.playground-nav-wrap{height:70px}.playground-brand-logo img{width:150px}.playground-menu{display:grid}.playground-nav{position:absolute;left:14px;right:14px;top:78px;display:none;flex-direction:column;align-items:stretch;padding:12px;border:1px solid #dbe7f6;border-radius:16px;background:rgba(255,255,255,.99);box-shadow:0 22px 52px rgba(3,22,55,.14)}.playground-nav.open{display:flex}.playground-nav>a{width:100%}.playground-signin{margin:3px 0 0!important;text-align:center}
  .playground-hero{padding:110px 0 58px}.playground-hero-copy h1{font-size:clamp(46px,14vw,64px);letter-spacing:-2.6px}.hero-code-window{border-radius:22px}
  .playground-workspace{padding:58px 0 62px}.mode-switch{grid-template-columns:repeat(2,1fr)!important}.toolbar-actions{width:100%!important}.toolbar-actions button{flex:1 1 auto!important}.auto-run-control{flex:1 1 auto!important;justify-content:center}.project-current-name,.autosave-status{width:100%;max-width:none!important}
  .playground-feature{border-right:0!important}.playground-features{grid-template-columns:1fr}.playground-feature:not(:last-child){border-bottom:1px solid #e7eef7!important}
  .playground-footer-grid{grid-template-columns:1fr 1fr;gap:30px}.playground-footer-brand{grid-column:1/-1}.playground-footer-grid>div:last-child{grid-column:auto}.playground-footer-bottom{flex-direction:column}
}
@media(max-width:520px){
  .playground-container{width:min(100% - 22px,1220px)}.playground-hero-copy h1{font-size:44px;letter-spacing:-2px}.playground-hero-copy>p{font-size:14px}.hero-code-top{height:44px}.hero-code-body{font-size:10.5px;padding:16px}.hero-code-tabs{overflow:auto}.hero-code-tabs span{white-space:nowrap}
  .playground-toolbar{padding:10px!important}.mode-switch{grid-template-columns:1fr 1fr!important}.toolbar-actions{gap:6px!important}.toolbar-actions button{min-height:38px!important;padding:0 10px!important;font-size:10px!important}.editor-panel>textarea,[data-python-editor]{min-height:380px!important;padding:16px!important;font-size:12px!important}.result-panel iframe{height:430px!important}.terminal-panel pre{min-height:320px!important;padding:16px!important}.playground-footer-grid{grid-template-columns:1fr}.playground-footer-grid>div:last-child{grid-column:auto}
}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
