/* Browser workspaces inherit the application's dark palette; the official terminal is always LTR. */
.bw-workspaces{margin:4px 0 30px;padding:26px;border:1px solid #315f59;border-radius:16px;background:linear-gradient(125deg,#122a29,#101827 65%);color:var(--fg,#dce6ef)}
.bw-section-head{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;margin-bottom:22px}
.bw-section-head h3{font:600 22px/1.3 var(--font-h,sans-serif);margin:7px 0 9px;letter-spacing:-.025em}
.bw-section-head p,.bw-card p,.bw-help p{font:13px/1.7 var(--font-b,sans-serif);color:#a2b4c4;margin:0;overflow-wrap:anywhere}
.bw-section-head p{max-width:680px}
.bw-kicker{font:600 10px/1.5 var(--font-h,sans-serif);letter-spacing:.12em;color:#87d4c4}
.bw-mark{flex:none;border:1px solid #3e7066;border-radius:12px;width:52px;height:52px;display:grid;place-items:center;font:600 23px monospace;color:#8fe4d3;background:#163b34;direction:ltr}
.bw-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.bw-card{display:flex;flex-direction:column;align-items:stretch;gap:13px;padding:18px;border:1px solid #2d3c50;border-radius:12px;background:#101925;min-width:0}
.bw-card-primary{background:#10221f;border-color:#3b7969}
.bw-card-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px}
.bw-card h4{font:600 16px/1.4 var(--font-h,sans-serif);margin:0}
.bw-badge{font:500 10px/1.5 var(--font-b,sans-serif);padding:3px 7px;border:1px solid #45536a;border-radius:20px;color:#acb9cc}
.bw-badge.is-available{color:#9ae6cf;border-color:#347a62;background:#15382d}
.bw-card p{font-size:12px;flex:1}
.bw-card small{font:11px/1.6 var(--font-b,sans-serif);color:#9baebf}
.bw-button,.bw-guide{min-height:44px;min-width:44px;cursor:pointer;font:500 12px/1.45 var(--font-b,sans-serif);text-align:center;overflow-wrap:anywhere;white-space:normal}
.bw-button{display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:11px 14px;border:1px solid #40516a;border-radius:8px;background:#182538;color:#e0eaf3}
.bw-button:hover{background:#21334a;border-color:#6a988d}
.bw-primary{color:#092a21;background:#7cddc4;border-color:#7cddc4;font-weight:700}
.bw-primary:hover{background:#99eed7;border-color:#99eed7}
.bw-danger{background:#301f2b;border-color:#714451;color:#f5b4be}
.bw-danger:hover{background:#462333;border-color:#ad6572}
.bw-guide{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;background:transparent;color:#9fc7bf;padding:10px 4px}
.bw-guide:hover{color:#bcf3e4}
.bw-workspaces button:disabled,.bw-overlay button:disabled{opacity:.5;cursor:not-allowed}
.bw-workspaces :focus-visible,.bw-overlay :focus-visible{outline:2px solid #83e5cd;outline-offset:3px}
.bw-session-row{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-top:17px}
.bw-session-row>.bw-guide{margin-inline-start:auto}
.bw-status{display:inline-flex;align-items:center;gap:7px;font:500 12px/1.5 var(--font-b,sans-serif);color:#b6c1d0}
.bw-status i{width:6px;height:6px;border-radius:50%;background:currentColor}
.bw-status.is-signedIn{color:#8ce0bf}
.bw-status.is-running{color:#a3c8ea}
.bw-status.is-starting,.bw-status.is-stopping{color:#e2c789}
.bw-status.is-failed{color:#eda2b0}
.bw-lifetime{display:flex;flex-wrap:wrap;gap:6px 18px;color:#abc8bd;font:11px/1.6 var(--font-b,sans-serif)}
.bw-retention{font:11px/1.7 var(--font-b,sans-serif);color:#a0afbf;margin:8px 0 0}
.bw-muted{font-size:12px;color:#a0afbf}
.bw-error:empty{display:none}
.bw-error:not(:empty){font:12px/1.6 var(--font-b,sans-serif);color:#ffbdc7;padding:12px;border:1px solid #774050;border-radius:8px;background:#321e29;margin-top:12px;overflow-wrap:anywhere}
.bw-overlay{position:fixed;inset:0;z-index:110;display:flex;align-items:center;justify-content:center;padding:20px;background:#030811d9;backdrop-filter:blur(7px);color:var(--fg,#dce6ef);overscroll-behavior:contain}
.bw-dialog{display:flex;flex-direction:column;width:min(1440px,100%);height:min(920px,calc(100dvh - 40px));min-width:0;background:#0e1725;border:1px solid #405366;border-radius:16px;box-shadow:0 35px 100px #000a;overflow:hidden}
.bw-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 22px;border-bottom:1px solid #2a3a4d;flex:none}
.bw-dialog-head h2{font:600 21px/1.3 var(--font-h,sans-serif);margin:3px 0 5px}
.bw-dialog-body{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:0;flex:1;min-height:0;overflow:auto;overscroll-behavior:contain}
.bw-console{display:flex;flex-direction:column;min-width:0;min-height:0;overflow:auto;padding:16px}
.bw-terminal{direction:ltr;text-align:left;flex:1 0 150px;min-height:150px;background:#080e18;border:1px solid #293d50;border-radius:9px;padding:10px;overflow:hidden;unicode-bidi:isolate}
.bw-terminal .xterm{height:100%;direction:ltr;text-align:left}
.bw-terminal-tools{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:10px 0}
.bw-terminal-tools .bw-button{font-size:11px;padding:8px 12px}
.bw-terminal-tools>.bw-button:first-child{margin-inline-end:auto}
.bw-input-form{display:grid;gap:7px;flex:none}
.bw-input-form label{font:500 11px/1.5 var(--font-b,sans-serif);color:#b4c8d8}
.bw-input-form textarea{box-sizing:border-box;width:100%;min-height:54px;max-height:130px;resize:vertical;border:1px solid #3a5064;border-radius:7px;background:#080f1c;color:#d9e7f3;padding:10px 12px;font:12px/1.5 ui-monospace,monospace}
.bw-input-form textarea::placeholder{color:#94a5b8}
.bw-input-form textarea:disabled{opacity:.5}
.bw-input-form p{font:11px/1.5 var(--font-b,sans-serif);color:#9cafc2;margin:0}
.bw-input-actions{display:flex;gap:8px}
.bw-help{min-width:0;padding:20px;border-inline-start:1px solid #2a3a4d;overflow:auto;background:#101e2c}
.bw-help section+section{margin-top:24px;padding-top:20px;border-top:1px solid #2b3a4a}
.bw-help h3{font:600 14px/1.5 var(--font-h,sans-serif);margin:0 0 9px}
.bw-help p{font-size:12px;margin:0 0 12px}
.bw-task-actions{display:flex;flex-direction:column;gap:8px}
.bw-help details{margin-top:8px}
.bw-help summary{min-height:44px;box-sizing:border-box;padding:13px 0;cursor:pointer;color:#a6d8cc;font:12px/1.5 var(--font-b,sans-serif)}
.bw-help h4{font:600 12px/1.5 var(--font-b,sans-serif);margin:12px 0 6px}
.bw-help pre{font:11px/1.6 var(--font-b,sans-serif);white-space:pre-wrap;overflow-wrap:anywhere;border:1px solid #344858;background:#0a1522;border-radius:6px;padding:10px;max-height:220px;overflow:auto}
.bw-dialog-foot{display:flex;align-items:center;gap:20px;padding:13px 20px;border-top:1px solid #2a3a4d;flex:none;background:#111d2a}
.bw-dialog-foot>div{flex:1}
.bw-dialog-foot p{color:#a0b3c4;font:11px/1.6 var(--font-b,sans-serif);margin:4px 0 0}
.bw-dialog-foot>.bw-button{max-width:230px;flex:none}
@media(max-width:1000px){.bw-dialog-body{grid-template-columns:minmax(0,1fr) 250px}.bw-dialog-head{padding:14px 16px}.bw-dialog-head h2{font-size:18px}.bw-help{padding:16px}.bw-cards{gap:10px}.bw-card{padding:14px}}
@media(max-width:720px){.bw-workspaces{padding:18px}.bw-section-head{gap:12px}.bw-section-head h3{font-size:20px}.bw-mark{width:44px;height:44px;font-size:19px}.bw-cards{grid-template-columns:1fr}.bw-card{padding:17px}.bw-session-row>.bw-guide{margin-inline-start:0}.bw-session-row>.bw-danger{width:100%}.bw-overlay{padding:0}.bw-dialog{width:100%;height:100dvh;border-radius:0;border:0}.bw-dialog-head{gap:12px}.bw-dialog-head h2{font-size:17px}.bw-dialog-head>.bw-button{max-width:132px}.bw-dialog-body{display:block}.bw-console{height:max(520px,70dvh);min-height:520px;padding:10px}.bw-terminal{min-height:230px}.bw-help{overflow:visible;border-inline-start:0;border-top:1px solid #2a3a4d;padding:20px}.bw-dialog-foot{gap:10px;padding:10px;align-items:flex-start;flex-wrap:wrap}.bw-dialog-foot>div{min-width:180px}.bw-dialog-foot>.bw-button{max-width:none}.bw-dialog-foot p{font-size:10px}.bw-task-actions{flex-direction:row;flex-wrap:wrap}.bw-input-actions .bw-button{flex:1}}
@media(prefers-reduced-motion:reduce){.bw-dialog-body,.bw-help{scroll-behavior:auto}}
/* light-theme:begin — generated by tools/light-theme.mjs from the rules above; do not edit by hand (hand-tuned light rules go after the end marker) */
html[data-theme="light"] .bw-workspaces{border:1px solid #d8e5e3;background:linear-gradient(125deg,#eef5f4,#f0f2f6 65%);color:var(--fg,#253e55)}
html[data-theme="light"] .bw-section-head p,html[data-theme="light"] .bw-card p,html[data-theme="light"] .bw-help p{color:#475766}
html[data-theme="light"] .bw-kicker{color:#2e8976}
html[data-theme="light"] .bw-mark{border:1px solid #d1dfdc;color:#1d836e;background:#e8f2f0}
html[data-theme="light"] .bw-card{border:1px solid #dee2e8;background:#f0f3f6}
html[data-theme="light"] .bw-card-primary{background:#f1f6f5;border-color:#cedfdb}
html[data-theme="light"] .bw-badge{border:1px solid #d3d6dd;color:#3e4a5c}
html[data-theme="light"] .bw-badge.is-available{color:#1b785c;border-color:#cee1db;background:#e9f2ef}
html[data-theme="light"] .bw-card small{color:#4c5d6c}
html[data-theme="light"] .bw-button{border:1px solid #d3d8de;background:#e9ecf1;color:#213f5a}
html[data-theme="light"] .bw-button:hover{background:#e1e6ec;border-color:#6a988d}
html[data-theme="light"] .bw-primary{color:#092a21;background:#7cddc4;border-color:#7cddc4}
html[data-theme="light"] .bw-primary:hover{background:#99eed7;border-color:#99eed7}
html[data-theme="light"] .bw-danger{background:#f0ebee;border-color:#dcd0d4;color:#6e0c1b}
html[data-theme="light"] .bw-danger:hover{background:#ece3e7;border-color:#ad6572}
html[data-theme="light"] .bw-guide{color:#446861}
html[data-theme="light"] .bw-guide:hover{color:#106a52}
html[data-theme="light"] .bw-workspaces :focus-visible,html[data-theme="light"] .bw-overlay :focus-visible{outline:2px solid #83e5cd}
html[data-theme="light"] .bw-status{color:#3a4452}
html[data-theme="light"] .bw-status.is-signedIn{color:#1e7b56}
html[data-theme="light"] .bw-status.is-running{color:#17456f}
html[data-theme="light"] .bw-status.is-starting,html[data-theme="light"] .bw-status.is-stopping{color:#7d601c}
html[data-theme="light"] .bw-status.is-failed{color:#701324}
html[data-theme="light"] .bw-lifetime{color:#425d53}
html[data-theme="light"] .bw-retention{color:#4c5968}
html[data-theme="light"] .bw-muted{color:#4c5968}
html[data-theme="light"] .bw-error:not(:empty){color:#7a0013;border:1px solid #ddced3;background:#f0eaed}
html[data-theme="light"] .bw-overlay{background:rgba(15,23,42,.45);color:var(--fg,#253e55)}
html[data-theme="light"] .bw-dialog{background:#f0f3f7;border:1px solid #d5dadf;box-shadow:0 35px 100px rgba(15,23,42,.233)}
html[data-theme="light"] .bw-dialog-head{border-bottom:1px solid #e0e4e9}
html[data-theme="light"] .bw-terminal{background:#f6f7fa;border:1px solid #dfe4e9}
html[data-theme="light"] .bw-input-form label{color:#324554}
html[data-theme="light"] .bw-input-form textarea{border:1px solid #d6dce1;background:#f4f6fa;color:#1c405f}
html[data-theme="light"] .bw-input-form textarea::placeholder{color:#536273}
html[data-theme="light"] .bw-input-form p{color:#495a6b}
html[data-theme="light"] .bw-help{border-inline-start:1px solid #e0e4e9;background:#eef2f5}
html[data-theme="light"] .bw-help section+section{border-top:1px solid #e0e5e9}
html[data-theme="light"] .bw-help summary{color:#2c695a}
html[data-theme="light"] .bw-help pre{border:1px solid #dbe0e4;background:#f2f5f8}
html[data-theme="light"] .bw-dialog-foot{border-top:1px solid #e0e4e9;background:#eef2f5}
html[data-theme="light"] .bw-dialog-foot p{color:#475868}
@media(max-width:720px){
  html[data-theme="light"] .bw-help{border-top:1px solid #e0e4e9}
}
/* light-theme:end */
