:root{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#292e29;background:#f7f8f4;font-synthesis:none;font-size:14px;--ink:#292e29;--muted:#717970;--line:#e3e6dd;--lime:#d7eea6;--paper:#fff;--radius:14px}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}a{color:inherit;text-decoration:none}button{cursor:pointer}button:disabled{opacity:.6;cursor:wait}button{color:inherit}button svg,a svg{flex-shrink:0}svg{width:20px;height:20px}h1,h2,h3,p{margin-top:0}h1{font-size:36px;letter-spacing:-1.3px;line-height:1.2;font-weight:650}h2{font-size:20px;letter-spacing:-.5px}h3{font-size:17px;letter-spacing:-.25px}p{line-height:1.65}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #7d993d;outline-offset:3px}.skip{position:fixed;top:-60px;left:20px;background:var(--ink);color:white;padding:12px;z-index:100}.skip:focus{top:12px}.loading{padding:100px;text-align:center}.brand{display:flex;align-items:center;gap:10px;font-size:27px;font-weight:750;letter-spacing:-1.2px}.brand img{width:35px;height:35px}.brand-light{font-weight:420}.brand-dot{color:#859c55}.eyebrow{font-size:10px;font-weight:750;letter-spacing:1.8px;line-height:1.5}.muted,.small{color:var(--muted)}.small{font-size:12px}.primary,.secondary,.danger{display:inline-flex;align-items:center;justify-content:center;gap:9px;border-radius:9px;padding:12px 17px;font-size:13px;font-weight:650;white-space:nowrap;border:1px solid var(--ink)}.primary{background:var(--ink);color:white}.primary:hover{background:#454d40}.secondary{background:white;border-color:#d9ddd3}.secondary:hover{background:#f2f5eb}.danger{background:#963e3e;color:white;border-color:#963e3e}.text-button,.icon-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:0;background:none;font-weight:600;font-size:12px}.text-button{padding:8px 0}.text-button:hover{text-decoration:underline}.icon-button{width:34px;height:34px;border-radius:7px;color:#687160}.icon-button:hover{background:#e9eddf}.wide{width:100%}.accent{color:#8caa50}.workspace{min-height:100vh;display:grid;grid-template-columns:250px minmax(0,1fr)}.sidebar{padding:30px 20px 14px;background:#f0f2e9;border-right:1px solid var(--line);display:flex;flex-direction:column;position:sticky;top:0;height:100dvh;overflow:auto}.workspace-label{border:1px solid #dfe3d5;border-radius:10px;padding:11px 9px;margin:34px 0 27px;display:flex;align-items:center;gap:10px;background:#f8f9f3}.workspace-avatar{width:31px;height:31px;display:grid;place-items:center;border-radius:7px;background:#e2e9d4;font-weight:600}.workspace-label strong{font-size:12px}.workspace-label small{display:block;font-size:10px;color:var(--muted);margin-top:4px}.nav-area{display:flex;align-items:center;gap:10px;border:0;background:none;width:100%;text-align:left;padding:11px 10px;border-radius:7px;font-size:12px;line-height:1.4;margin:2px 0}.nav-area>span:nth-child(2){overflow-wrap:anywhere;flex:1}.nav-area.active{background:#dfe8d0;font-weight:650}.nav-area:hover{background:#e5eadb}.home-link{font-size:13px}.nav-heading{display:flex;align-items:center;justify-content:space-between;margin:20px 0 4px;padding-left:10px;font-size:9px;letter-spacing:1.5px;font-weight:700;color:#77816f}.nav-count{font-size:10px;color:#7c866f}.nav-children{padding-left:12px;border-left:1px solid #dce2d2;margin-left:13px}.nav-children:empty{display:none}.dot{height:7px;width:7px;border-radius:50%;background:#b58153;flex-shrink:0}.dot.blue{background:#6591b5}.dot.violet{background:#9a7faf}.dot.green{background:#7a9b61}.dot.rose{background:#bb8595}.nav-add{border:0;display:flex;align-items:center;gap:7px;padding:12px 10px;font-size:12px;color:#748069;background:none}.nav-add svg{width:15px}.sidebar-bottom{margin-top:auto;padding-top:45px}.small-note{background:#e9eedc;border:1px solid #e0e6d2;border-radius:11px;position:relative;padding:16px 13px;font-size:12px;line-height:1.7;color:#68765a}.small-note strong{font-weight:600;color:#45503c}.small-note svg{position:absolute;right:15px;top:23px;width:28px;height:28px;color:#8c9a70}.export{margin:15px 0}.export svg{width:16px}.account{display:flex;align-items:center;gap:10px;width:100%;background:none;border:0;border-top:1px solid #dfe4d5;padding:17px 0 0;text-align:left}.account .avatar{border-radius:50%;background:#dadfce;width:31px;height:31px;display:grid;place-items:center;font-size:12px}.account>span:nth-child(2){flex:1;font-size:12px;font-weight:600}.account small{display:block;font-size:10px;color:var(--muted);font-weight:400;margin-top:4px}.account svg{width:15px;color:var(--muted)}.page{min-width:0;display:flex;flex-direction:column}.topbar{height:77px;display:flex;align-items:center;justify-content:space-between;padding:0 44px;border-bottom:1px solid var(--line);gap:20px}.breadcrumbs{display:flex;align-items:center;gap:11px;font-size:11px;color:#82897d;flex-wrap:wrap}.breadcrumbs strong,.breadcrumbs a:last-child{font-weight:500;color:#4d5848}.private-label{font-size:10px;color:#7d8873;display:flex;align-items:center;gap:6px;white-space:nowrap}.private-label span{width:5px;height:5px;background:#8d9f72;border-radius:50%}.main-content{padding:42px 44px;max-width:1550px;width:100%;margin:0 auto}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:30px}.page-heading .eyebrow{color:#83936b;margin-bottom:13px}.page-heading h1{margin-bottom:12px}.page-heading p{color:var(--muted);font-size:13px;margin:0;max-width:710px;overflow-wrap:anywhere}.heading-actions{display:flex;gap:8px;flex-shrink:0}.intro-banner{display:flex;align-items:center;padding:29px 30px;background:#eaf0df;border:1px solid #dfe7d2;border-radius:var(--radius);gap:22px;margin-bottom:38px;position:relative;overflow:hidden}.banner-symbol{display:grid;place-items:center;flex-shrink:0;width:62px;height:62px;border:1px solid #cdd9b7;border-radius:50%;background:#e1ebd1}.banner-symbol svg{width:34px;height:34px;color:#829369}.intro-banner .eyebrow{font-size:8px;color:#899575;letter-spacing:1.5px}.intro-banner h2{font-size:21px;margin:8px 0}.intro-banner p{font-size:12px;color:#788469;margin:0}.intro-banner>div:nth-child(2){flex:1}.banner-stats{padding-left:25px;border-left:1px solid #d3ddc4;display:flex;flex-direction:column;min-width:108px;gap:4px}.banner-stats strong{font-size:28px;font-weight:550;line-height:1.2;letter-spacing:-1px}.banner-stats span{font-size:9px;color:#788469;white-space:nowrap}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}.section-heading h2{font-size:19px;display:flex;align-items:center;gap:10px;margin-bottom:7px}.section-heading p{color:var(--muted);font-size:12px;margin:0}.count{font-size:10px;font-weight:500;letter-spacing:0;color:#7b8570;background:#e9ecdf;padding:3px 6px;border-radius:5px}.area-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.area-card,.add-area-card{min-height:212px;border:1px solid var(--line);border-radius:12px;display:flex;flex-direction:column;padding:20px;transition:transform .15s,border-color .15s;background:#fff}.area-card:hover{transform:translateY(-3px);border-color:#afbea2}.area-icon{width:35px;height:35px;border-radius:9px;background:#fbede0;color:#b88752;display:grid;place-items:center;margin-bottom:21px}.blue .area-icon{background:#e8eff5;color:#759bb9}.violet .area-icon{background:#f0eaf5;color:#a48bbb}.green .area-icon{background:#e9f0e0;color:#84a66a}.rose .area-icon{background:#f7e9ed;color:#b98998}.area-card h3{font-size:14px;margin-bottom:8px;overflow-wrap:anywhere}.area-card p{font-size:11px;line-height:1.7;color:var(--muted);margin-bottom:20px;overflow-wrap:anywhere}.card-bottom{display:flex;align-items:center;justify-content:space-between;margin-top:auto;font-size:10px;color:#87917e}.card-bottom svg{width:15px;height:15px}.add-area-card{border-style:dashed;border-color:#cbd3be;align-items:center;justify-content:center;background:#f4f6ee;color:#7d896d;text-align:center}.add-area-card:hover{background:#edf1e3}.add-area-card>span{border:1px solid #dbe2cf;border-radius:50%;width:32px;height:32px;display:grid;place-items:center;margin-bottom:15px}.add-area-card strong{font-size:12px;font-weight:500;margin-bottom:7px}.add-area-card small{font-size:10px;line-height:1.6;max-width:150px;color:#96a086}.areas-section{margin-bottom:38px}.view-switch{display:flex;gap:2px;padding:3px;background:#ecefe5;border-radius:8px}.view-switch .icon-button{width:29px;height:28px}.view-switch svg{width:15px;height:15px}.view-switch .selected{background:white;box-shadow:0 1px 3px #29371a12}.toolbar{display:flex;justify-content:space-between;gap:14px;padding:13px 0 20px}.search-box{display:flex;align-items:center;gap:8px;background:white;border:1px solid var(--line);border-radius:8px;width:315px;padding:0 12px;color:#98a08f}.search-box svg{width:16px;height:16px}.search-box input{width:100%;border:0;background:none;padding:10px 0;font-size:12px;color:var(--ink);min-width:0}.search-box:focus-within{outline:2px solid #9cb773}.search-box input:focus{outline:none}.filter-label{font-size:11px;color:#858e7a;display:flex;align-items:center;gap:10px}.filter-label select{background:#fff;border:1px solid var(--line);border-radius:7px;color:#5c6752;padding:9px 26px 9px 12px;font-size:11px}.idea-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.idea-card{text-align:left;display:flex;flex-direction:column;width:100%;padding:21px;background:white;border:1px solid var(--line);border-radius:12px;min-height:192px}.idea-card:hover{border-color:#aab797;box-shadow:0 5px 18px #32461408}.idea-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.idea-top>svg{height:14px;width:14px;color:#9ea696}.stage{font-size:9px;display:inline-flex;align-items:center;gap:5px;border-radius:5px;padding:4px 7px;background:#f1f0e5;color:#8b8c60;font-weight:550;white-space:nowrap}.stage>span{width:4px;height:4px;border-radius:50%;background:currentColor}.stage.exploring{background:#eaf0f7;color:#698bac}.stage.building{background:#f1eaf7;color:#9a7caf}.stage.live{background:#eaf1de;color:#7c9358}.stage.parked{background:#eee;color:#85867e}.idea-card h3{font-size:14px;margin-bottom:8px;overflow-wrap:anywhere}.idea-card p{font-size:11px;color:var(--muted);margin-bottom:22px;line-height:1.8;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.idea-meta{display:flex;gap:6px;align-items:center;font-size:9px;color:#99a18f;margin-top:auto;padding-top:14px;border-top:1px solid #eff0ea}.idea-meta>span:nth-child(2){flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.idea-meta .dot{height:5px;width:5px}.empty-ideas{border:1px solid var(--line);border-radius:12px;background:#fff;display:flex;flex-direction:column;align-items:center;text-align:center;padding:36px 20px}.empty-symbol{display:grid;place-items:center;width:42px;height:42px;border:1px solid #e3e9d9;border-radius:12px;background:#f0f5e7;color:#93a278;margin-bottom:15px}.empty-ideas h3{font-size:15px;margin-bottom:6px}.empty-ideas p{font-size:12px;color:var(--muted);margin-bottom:19px}.empty-ideas .secondary{font-size:11px;padding:9px 12px}.empty-ideas .secondary svg{width:14px;height:14px}.page-footer{display:flex;justify-content:space-between;font-size:9px;color:#9ba48f;margin-top:auto;padding:0 44px 25px}.hostname{display:inline-block;color:#77876b;font-size:11px;margin-top:13px;background:#edf1e6;border-radius:5px;padding:5px 7px}.stage-board{display:grid;grid-template-columns:repeat(5,minmax(185px,1fr));gap:12px;overflow-x:auto;padding-bottom:10px}.board-column{background:#eef1e7;border:1px solid #e1e6d8;border-radius:11px;padding:10px;min-height:250px}.board-column>h3{display:flex;justify-content:space-between;align-items:center;margin:3px 0 15px}.board-column .idea-card{margin-bottom:10px;min-height:170px;padding:15px}.board-empty{font-size:11px;color:#98a28b;padding:20px 10px;text-align:center}.mobile-toggle,.nav-backdrop{display:none}dialog{width:600px;max-width:calc(100% - 32px);max-height:calc(100dvh - 40px);padding:28px;border:1px solid #dce1d3;border-radius:17px;color:var(--ink);box-shadow:0 25px 90px #1c261e30}dialog::backdrop{background:#1f2a2055;backdrop-filter:blur(3px)}.dialog-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:23px}.dialog-heading h2{margin:5px 0 0;font-size:25px}.dialog-heading .eyebrow{color:#8b9a79;font-size:9px}.dialog-heading .icon-button{flex-shrink:0}.dialog-footer{display:flex;align-items:center;justify-content:space-between;gap:15px;border-top:1px solid var(--line);padding-top:20px;margin-top:23px}form label{display:block;font-weight:550;font-size:12px;margin:17px 0;color:#4d5846}form input,form select,form textarea{display:block;width:100%;margin-top:7px;border:1px solid #dbe0d2;background:#fff;border-radius:7px;color:var(--ink);padding:10px 12px;line-height:1.5;min-width:0}form textarea{resize:vertical}form input::placeholder,form textarea::placeholder{color:#a0a894;font-weight:400}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:15px}.form-row label{min-width:0;margin-top:0}.optional{font-weight:400;color:#9aa38e;font-size:10px}.field-help{font-size:11px;color:#8a947d;line-height:1.7}.form-error{font-size:12px;color:#a64940}.form-error:empty{display:none}.danger-text{border:0;background:none;color:#ad6258;font-size:12px;padding:10px 0}.idea-title{font-size:26px;line-height:1.3;overflow-wrap:anywhere}.idea-summary{color:#77826b;font-size:14px;white-space:pre-wrap;overflow-wrap:anywhere}.detail-meta{font-size:11px;border-bottom:1px solid var(--line);padding-bottom:20px;margin-bottom:20px;color:#8d9981}.idea-notes{white-space:pre-wrap;line-height:1.8;font-size:13px;overflow-wrap:anywhere}.login-page{display:grid;grid-template-columns:1.1fr 1fr;min-height:100dvh}.login-story{position:relative;background:#e6edda;padding:45px 60px;overflow:hidden;display:flex;flex-direction:column;justify-content:space-between;min-height:700px}.login-story>div:nth-child(2){position:relative;z-index:1}.login-story .eyebrow{color:#889b6d}.login-story h1{font-size:clamp(46px,4.7vw,76px);line-height:1.12;letter-spacing:-3px;margin:25px 0}.login-story em{font-family:Georgia,serif;font-weight:400;color:#82965e}.login-story p{font-size:15px;color:#79866a}.login-story>.small{color:#8e9d7c;font-size:10px}.orbit{position:absolute;width:500px;height:500px;border:1px solid #c9d5b7;border-radius:50%;bottom:-200px;right:-250px;transform:rotate(-25deg);display:flex;align-items:center;justify-content:space-around;font-size:60px;letter-spacing:-4px;color:#b1c197}.orbit:before{content:'';position:absolute;inset:45px;border:1px solid #c9d5b7;border-radius:50%}.login-panel{display:grid;place-items:center;padding:50px 35px}.login-panel form{width:340px;max-width:100%}.login-panel h2{font-size:32px;margin:16px 0 12px}.login-panel .eyebrow{color:#92a079}.login-panel .muted{font-size:13px;margin-bottom:30px}.login-foot{text-align:center;color:#a0aa92;font-size:10px;margin:24px 0}.login-panel .primary{margin-top:10px}#toast{position:fixed;bottom:25px;left:50%;transform:translate(-50%,15px);background:var(--ink);color:#fff;border:1px solid #536148;padding:13px 21px;box-shadow:0 5px 20px #22301d30;border-radius:10px;z-index:20;font-size:12px;max-width:90vw;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s}#toast.visible{opacity:1;transform:translate(-50%,0)}
@media(min-width:1600px){.main-content{padding-top:55px}.area-card,.add-area-card{min-height:235px}}
@media(max-width:1200px){.workspace{grid-template-columns:225px minmax(0,1fr)}.sidebar{padding-inline:15px}.topbar{padding-inline:28px}.main-content{padding:32px 28px}.page-heading h1{font-size:30px}.area-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.area-card,.add-area-card{min-height:195px}.intro-banner{padding:22px;gap:15px}.banner-symbol{display:none}.intro-banner h2{font-size:18px}.banner-stats{padding-left:15px;min-width:85px}.page-footer{padding-inline:28px}.heading-actions{flex-direction:column}.login-story{padding:35px}.idea-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.workspace{display:block}.sidebar{position:fixed;left:0;top:0;bottom:0;width:270px;z-index:12;transform:translateX(-100%);transition:transform .2s}.nav-open .sidebar{transform:translateX(0)}.nav-open .nav-backdrop{display:block;position:fixed;inset:0;background:#17221066;border:0;z-index:11}.mobile-toggle{display:flex;flex-shrink:0}.topbar{height:65px;padding:12px 20px;gap:10px}.breadcrumbs{flex:1;font-size:10px;gap:7px;max-height:40px;overflow:auto}.private-label{display:none}.main-content{padding:30px 20px}.page-heading{align-items:flex-start;flex-wrap:wrap;margin-bottom:25px}.page-heading h1{font-size:29px}.page-heading p{font-size:12px}.heading-actions{flex-direction:row}.page-heading .eyebrow{font-size:8px}.primary,.secondary{font-size:12px;padding:10px 13px}.intro-banner{flex-wrap:wrap;padding:20px;margin-bottom:30px}.intro-banner>div:nth-child(2){flex-basis:100%;margin-bottom:9px}.banner-stats{border-left:0;padding-left:0;margin-right:20px}.banner-stats strong{font-size:24px}.section-heading h2{font-size:18px}.section-heading p{font-size:11px}.text-button{font-size:11px;white-space:nowrap}.area-grid{gap:11px}.area-card,.add-area-card{padding:16px;min-height:210px}.area-card h3{font-size:13px}.area-card p{font-size:10px}.area-icon{margin-bottom:17px}.idea-grid{grid-template-columns:1fr}.toolbar{gap:10px}.search-box{width:auto;flex:1;min-width:0}.filter-label{font-size:0;gap:0}.filter-label select{max-width:115px}.page-footer{padding:0 20px 20px;font-size:8px}.page-footer>span:last-child{display:none}.stage-board{grid-template-columns:repeat(5,230px)}dialog{padding:22px}.form-row{grid-template-columns:1fr;gap:0}.login-page{grid-template-columns:1fr}.login-story{min-height:auto;padding:27px 25px 34px}.login-story h1{font-size:39px;letter-spacing:-1.5px;margin:18px 0 10px}.login-story h1 br{display:none}.login-story p,.login-story>.small{display:none}.login-story .eyebrow{display:block;margin-top:38px;font-size:8px}.login-panel{padding:37px 25px}.login-panel h2{font-size:28px}.login-panel .eyebrow{font-size:9px}.orbit{width:330px;height:330px;bottom:-260px;right:-130px}.login-story .brand{font-size:24px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

.version-badge{flex-shrink:0;border:1px solid #dbe0d2;background:#f6f8f1;color:#59664e;border-radius:6px;padding:6px 8px;font-size:11px;white-space:nowrap}.version-badge:hover{background:#eaf0df}.version-badge:focus-visible{outline:2px solid #718751;outline-offset:3px}.version-changes{padding-left:20px;line-height:1.7;font-size:13px}.version-changes li{margin:12px 0}.version-build{overflow-wrap:anywhere}

.login-content{width:340px;max-width:100%}.login-version{text-align:center;margin-top:16px}.version-badge{min-height:36px;color:#3d5430;border-color:#a8b593;font-size:12px}.version-source{overflow-wrap:anywhere;font-family:ui-monospace,monospace;font-size:10px}

/* Build notices never replace the active scene or force unsaved drafts closed. */
.release-notice{position:fixed;inset:auto 1rem 1rem;z-index:1000;display:flex;align-items:center;gap:.75rem;flex-wrap:wrap;background:#fff6df;color:#45391f;border:1px solid #bc9b56;border-radius:.6rem;padding:1rem;box-shadow:0 4px 24px #0002;max-width:calc(100vw - 2rem)}
.release-notice span{flex:1 1 18rem}.release-notice button{min-height:44px;padding:.5rem .75rem}.studio-shortcut{font-size:.92em}

/* DoUndo shell and workspace launchers */
body[data-theme] {
  color-scheme: dark;
  --ink: #f0e9f2;
  --muted: #b6aabd;
  --line: #403447;
  --paper: #211a26;
  --shell: #151219;
  --rail: #131016;
  --rail-line: #392c3e;
  --accent: #e894bd;
  --focus: #ed9dc7;
  background: var(--shell);
  color: var(--ink);
}

body[data-theme="notes"] {
  --ink: #edf1f7;
  --muted: #b2bdcc;
  --line: #3b4a5b;
  --paper: #17212c;
  --shell: #0d1117;
  --focus: #b9a4d1;
}

body[data-theme] :is(a, button, input, select, textarea):focus-visible {
  outline-color: var(--focus);
}

#workspace-sidebar {
  --rail-text: var(--ui-text, #e6dce9);
  --rail-muted: var(--ui-muted, #b3a4ba);
  --rail-accent: var(--ui-accent, #e894bd);
  --rail-surface: var(--ui-surface, #211925);
  --rail-base: color-mix(in srgb, var(--rail-surface) 30%, var(--ui-background, var(--rail)));
  --rail-edge: color-mix(in srgb, var(--ui-border, #56445b) 65%, var(--rail-base));
  --rail-raised: var(--ui-raised, #2b1d30);
  --focus: var(--rail-accent);
  padding: 0;
  overflow: hidden;
  background: radial-gradient(ellipse at 28% 0%, var(--rail-raised), transparent 255px), var(--rail-base);
  border-color: var(--rail-edge);
  color: var(--rail-text);
}

.sidebar .brand {
  flex: none;
  width: auto;
  padding: 21px 21px 20px;
  margin: 0;
  border-bottom: 1px solid var(--rail-edge);
  color: var(--rail-text);
}
.sidebar .brand img { width: 38px; height: 38px; }
.brand-dot { color: var(--accent); }
.login-story .brand { width: fit-content; }
.sidebar .brand-dot { color: var(--rail-accent); }

#workspace-sidebar > nav {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 13px 14px 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--rail-edge) transparent;
}
#workspace-sidebar .nav-area {
  position: relative;
  min-height: 45px;
  border: 1px solid transparent;
  border-radius: 0;
  margin: 3px 0;
  font-size: 14px;
  padding-inline: 10px;
  color: var(--rail-text);
}
#workspace-sidebar .nav-area svg { width: 22px; height: 22px; color: var(--rail-muted); }
#workspace-sidebar .nav-area:hover { background: var(--rail-surface); }
#workspace-sidebar .nav-area.active {
  background: var(--rail-raised);
  border-color: var(--rail-edge);
  border-left: 3px solid var(--rail-accent);
  padding-left: 8px;
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 0 100%);
}
#workspace-sidebar .nav-area:focus-visible { outline-offset: -4px; }
#workspace-sidebar .nav-area.active svg { color: var(--rail-accent); }
#workspace-sidebar nav > a[href="#/notes"] { margin-top: 15px; }
#workspace-sidebar .notes-tree {
  margin: 4px 0 0 21px;
  padding-left: 6px;
  border-left: 1px solid var(--rail-edge);
}
#workspace-sidebar .notes-tree .nav-area { min-height: 37px; font-size: 13px; }
#workspace-sidebar .nav-count { color: var(--rail-muted); font-variant-numeric: tabular-nums; }
#workspace-sidebar .nav-add {
  width: 100%;
  background: none;
  border: 0;
  border-radius: 0;
  color: var(--rail-muted);
  text-align: left;
  min-height: 40px;
}
#workspace-sidebar .nav-add:hover { color: var(--rail-text); background: var(--rail-surface); }
#workspace-sidebar .nav-children { border-color: var(--rail-edge); }
.sidebar .notes-tree .dot.blue { background: #a698b2; }
.sidebar .notes-tree .dot.green { background: #ae9f93; }

#workspace-sidebar .sidebar-bottom {
  flex: none;
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 11px 13px max(13px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--rail-edge);
  background: var(--rail-base);
}
#workspace-appearance:empty { display: none; }
#workspace-appearance .presentation-controls {
  position: static;
  max-width: 100%;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}
#workspace-sidebar #workspace-appearance .presentation-controls {
  border-color: var(--rail-edge);
  background: var(--rail-surface);
}
#workspace-appearance .presentation-panel {
  width: 100%;
  max-width: none;
  max-height: min(37dvh, 244px);
  scrollbar-width: thin;
  overflow-wrap: anywhere;
}
#workspace-appearance .presentation-panel input { min-width: 0; }
.login-content #workspace-appearance { margin-top: 14px; }

#workspace-sidebar .sidebar-action,
#workspace-sidebar #workspace-appearance summary {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  width: 100%;
  padding: 8px 10px;
  color: var(--rail-text);
  font-size: 13px;
  font-weight: 550;
  text-align: left;
}
#workspace-sidebar .sidebar-action {
  border: 1px solid var(--rail-edge);
  border-radius: 0;
  background: var(--rail-surface);
  margin: 0;
}
#workspace-sidebar #workspace-appearance summary { list-style: none; }
#workspace-sidebar #workspace-appearance summary::-webkit-details-marker { display: none; }
#workspace-sidebar #workspace-appearance summary::before {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  rotate: -45deg;
  margin: 0 6px 0 3px;
  color: var(--rail-accent);
}
#workspace-sidebar #workspace-appearance details[open] summary::before { rotate: 45deg; }
#workspace-sidebar .sidebar-action:hover,
#workspace-sidebar #workspace-appearance summary:hover { background: var(--rail-raised); }
#workspace-sidebar .sidebar-action svg { width: 18px; height: 18px; color: var(--rail-accent); }

#workspace-sidebar .account {
  min-width: 0;
  min-height: 54px;
  margin-top: 5px;
  border-top: 1px solid var(--rail-edge);
  padding: 9px 0 0;
  gap: 8px;
}
#workspace-sidebar .account .avatar {
  flex: none;
  width: 34px;
  height: 34px;
  background: var(--rail-raised);
  color: var(--rail-accent);
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 0 100%);
}
#workspace-sidebar .account-name { min-width: 0; color: var(--rail-text); overflow-wrap: anywhere; }
#workspace-sidebar .account-name small { color: var(--rail-muted); font-size: 11px; }
#workspace-sidebar .account-signout {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--rail-edge);
  border-radius: 0;
  background: var(--rail-surface);
}
#workspace-sidebar .account-signout:hover { background: var(--rail-raised); }
#workspace-sidebar .account-signout svg { width: 19px; height: 19px; color: var(--rail-accent); }

.workspace .page { background: var(--shell); }
.workspace .topbar {
  min-height: 65px;
  height: 65px;
  justify-content: flex-start;
  background: #18131c;
  border-color: var(--rail-line);
  gap: 16px;
}
.workspace .breadcrumbs { flex: 1; font-size: 13px; color: #b9a8c2; }
.workspace .breadcrumbs a { color: #b9a8c2; }
.workspace .breadcrumbs a:hover { text-decoration: underline; }
.workspace .breadcrumbs strong { color: #eee2f0; font-weight: 550; }
.workspace .topbar .private-label { font-size: 12px; color: #ae9fb6; }
.workspace .mobile-toggle { border-radius: 0; color: #e6d6ea; }
.workspace .mobile-toggle:hover { background: #2b1d30; }
.workspace:not(.pes-workspace-active):not([data-page="tool"]) .main-content { max-width: none; padding-top: clamp(24px, 3.1vw, 46px); }

body[data-theme] .version-badge {
  color: #d0bfd7;
  border: 1px solid #46394d;
  background: #211925;
  border-radius: 0;
}
body[data-theme] .version-badge:hover { background: #312438; }

.chamfer {
  --cut: 17px;
  --rim: 1px;
  --chamfer-shape: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
  --edge: #4b3a52;
  --surface: #241b2a;
  position: relative;
  isolation: isolate;
  background: transparent;
  border: 0;
  border-radius: 0;
  clip-path: var(--chamfer-shape);
}
.chamfer::before, .chamfer::after {
  position: absolute;
  content: "";
  pointer-events: none;
  clip-path: var(--chamfer-shape);
}
.chamfer::before { inset: 0; z-index: -2; background: var(--edge); }
.chamfer::after { inset: var(--rim); z-index: -1; background: var(--surface); }

.launcher-hero {
  --cut: 23px;
  min-height: clamp(212px, 19vw, 285px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  padding: clamp(24px, 4vw, 60px);
}

.launcher-copy { position: relative; z-index: 1; min-width: 0; }
.launcher-copy h1 {
  font-size: clamp(2.4rem, 4.65vw, 4.85rem);
  font-weight: 690;
  letter-spacing: -.048em;
  line-height: 1.04;
  margin: 0 0 .2em;
  text-wrap: balance;
}
.launcher-copy p { color: #c4b5ca; font-size: clamp(1.05rem, 1.2vw, 1.25rem); margin: 12px 0 0; }
.launcher-art { position: absolute; pointer-events: none; width: auto; height: auto; }

.overview-hero {
  --surface: radial-gradient(ellipse at 83% 50%, #38223f, transparent 66%), linear-gradient(108deg, #1c1620, #271a2e);
  --edge: #624766;
}
.reversal-art {
  color: #9770a2;
  width: min(54%, 680px);
  height: auto;
  top: 50%;
  right: 0;
  transform: translateY(-50%) rotate(-8deg);
  opacity: .58;
}
.reversal-mark { color: #e894bd; }
.art-highlight { color: #e9a2c7; }

.launcher-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.overview-grid { margin-top: 22px; }
.launcher-grid .launcher-card {
  --cut: 13px;
  --card-accent: #c5a8d5;
  --mark-width: clamp(86px, 8.8vw, 126px);
  --card-padding: 19px;
  min-width: 0;
  display: grid;
  grid-template-columns: var(--mark-width) minmax(0, 1fr) auto;
  grid-template-rows: auto 1fr;
  gap: 7px 12px;
  align-content: start;
  min-height: 140px;
  padding: var(--card-padding) 17px var(--card-padding) 0;
  color: var(--ink);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  text-align: left;
  transform: none;
}
.workspace[data-page] .launcher-grid .launcher-card { background: transparent; color: var(--ink); }
.workspace[data-page] .launcher-grid .launcher-card :is(h2, h3) { color: var(--ink); }
.workspace[data-page] .launcher-grid .launcher-card p { color: var(--muted); }
.launcher-grid a.launcher-card:hover,
.launcher-grid a.launcher-card:focus-visible {
  --edge: var(--card-accent);
  --surface: #302238;
  box-shadow: none;
}
.workspace .launcher-grid a.launcher-card:focus-visible {
  --rim: 3px;
  outline: 0;
}
.launcher-card .tool-mark {
  color: var(--card-accent);
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: stretch;
  width: 100%;
  height: auto;
  margin: calc(1px - var(--card-padding)) 0 calc(1px - var(--card-padding)) 1px;
  border-right: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  background: linear-gradient(145deg, color-mix(in srgb, currentColor 16%, transparent), color-mix(in srgb, currentColor 5%, transparent));
  clip-path: none;
}
.tool-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: #a278b22a;
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px));
}
.tool-mark svg { width: 25px; height: 25px; }
.launcher-card .tool-mark > svg {
  position: absolute;
  inset: 5px;
  width: calc(100% - 10px);
  height: calc(100% - 10px);
  stroke-width: 1.07;
}
.launcher-grid .launcher-card :is(h2, h3) {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  font-size: clamp(1.16rem, 1.27vw, 1.37rem);
  letter-spacing: -.021em;
  line-height: 1.24;
  margin: 3px 0 0;
  overflow-wrap: anywhere;
}
.launcher-grid .launcher-card p {
  grid-column: 2;
  grid-row: 2;
  line-height: 1.5;
  font-size: 1.04rem;
  margin: 0;
  display: block;
}
.card-chevron {
  grid-area: 1 / 3;
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--card-accent);
  display: grid;
  place-items: center;
}
.card-chevron svg { width: 25px; height: 25px; stroke-width: 1.95; }
.overview-grid .workspace-card { --card-padding: 22px; min-height: 151px; }
.overview-grid .workspace-card[data-workspace="pes"] { --card-accent: #d6bbac; --surface: #271f29; }
.overview-grid .workspace-card[data-workspace="lair"] { --card-accent: #e19ab7; --surface: #291e2a; }

.galactic-hero {
  --surface: radial-gradient(ellipse at 78% 50%, #2b1838, transparent 72%), #181321;
  --edge: #594166;
  min-height: clamp(226px, 20vw, 296px);
}
.galactic-art {
  position: absolute;
  inset: 1px;
  pointer-events: none;
  background: url("/galactic-atlas-56cab6fc9fc8.webp") right -44px top 56% / clamp(560px, 69%, 900px) auto no-repeat;
  mask-image: linear-gradient(90deg, transparent 19%, #0005 42%, #000 66%);
}
.galactic-hero .launcher-copy { max-width: 100%; }
.workspace .galactic-hero h1 { color: #f0e9f2; }
.launcher-hero + .galactic-catalogue { margin: 28px 0 0; }
.galactic-catalogue h2 { margin: 0 0 14px; font-size: 1.43rem; }
.tool-grid .tool-card:nth-child(3n+2) { --card-accent: #e1a0bb; }
.tool-grid .tool-card:nth-child(3n+3) { --card-accent: #bba4d2; }

.lair-hero {
  --surface: radial-gradient(ellipse at 83% 53%, #361c32, transparent 67%), #1a131e;
  --edge: #583a53;
  min-height: clamp(285px, 30vw, 425px);
}
.lair-art { color: #7e4a70; width: min(60%, 580px); right: -3%; top: 50%; transform: translateY(-50%); }
.lair-mark { color: #b57599; }

.workspace[data-page="notes"] .notes-heading h1 { font-size: clamp(1.95rem, 3.8vw, 2.9rem); }
:root[data-skin="doundo"] .workspace[data-page="notes"] .main-content {
  --ui-background: var(--shell);
  --ui-surface: var(--paper);
  --ui-text: var(--ink);
  --ui-muted: var(--muted);
  --ui-border: var(--line);
}
.workspace[data-page="notes"] :is(.area-card, .idea-card, .empty-ideas, .board-column, .search-box, .filter-label select) {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
}
.workspace[data-page="notes"] :is(.area-card, .idea-card):hover { border-color: #8195ac; }
.workspace[data-page="notes"] .area-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.workspace[data-page="notes"] .area-card { min-height: 156px; }
.workspace[data-page="notes"] .area-card h3,
.workspace[data-page="notes"] .idea-card h3 { font-size: 1.1rem; }
.workspace[data-page="notes"] .area-card p,
.workspace[data-page="notes"] .idea-card p { font-size: .97rem; }
.workspace[data-page="notes"] :is(.count, .hostname, .view-switch, .area-icon, .empty-symbol) {
  color: #c5d0df;
  background: #232f3d;
  border-color: var(--line);
}
.workspace[data-page="notes"] :is(.card-bottom, .idea-meta, .idea-top > svg, .filter-label, .board-empty) { color: #b6c2d1; }
.workspace[data-page="notes"] .idea-meta { border-color: var(--line); }
.workspace[data-page="notes"] .view-switch .icon-button { color: #c5d0df; }
.workspace[data-page="notes"] .view-switch .selected { background: #374961; }
.workspace[data-page="notes"] .idea-top .stage { border: 1px solid #576473; background: #2b3441; color: #e0d8c1; }
.workspace[data-page="notes"] .stage.exploring { background: #263b50; color: #c5def2; }
.workspace[data-page="notes"] .stage.building { background: #362c49; color: #e5cdf1; }
.workspace[data-page="notes"] .stage.live { background: #2f3c2d; color: #d3e6c7; }
.workspace[data-page="notes"] .search-box:focus-within { outline-color: var(--focus); }
.workspace[data-page="notes"] .search-box input:focus { outline: 0; }
.workspace[data-page="notes"] :is(.areas-section, .ideas-section) .section-heading h2 { margin: 0; }

body[data-theme] #editor {
  background: var(--paper);
  border-color: var(--line);
  border-radius: 8px;
}
body[data-theme] #editor :is(label, .eyebrow, .optional, .field-help, .idea-summary, .detail-meta, .icon-button),
.login-panel :is(label, p) { color: var(--muted); }
body[data-theme] #editor .icon-button:hover { background: var(--shell); }
body[data-theme] #editor .danger-text, body[data-theme] .login-panel .form-error { color: #f2a5ae; }
body[data-theme] :is(#editor, .login-panel) :is(input, select, textarea) {
  background: var(--shell);
  border-color: var(--line);
  color: var(--ink);
}
body[data-theme] :is(#editor, .login-panel, .notes-heading) .primary {
  background: #593755;
  color: #fff0f9;
  border-color: #9b688a;
  border-radius: 0;
}
body[data-theme] :is(#editor, .login-panel, .notes-heading) .primary:hover { background: #71436a; }
body[data-theme] :is(#editor, .notes-heading, .empty-ideas) .secondary {
  background: var(--paper);
  border-color: var(--line);
  color: var(--ink);
}
body[data-theme] #toast { background: var(--paper); border-color: var(--line); color: var(--ink); }

.login-story {
  display: block;
  position: relative;
  min-height: 0;
  background: radial-gradient(ellipse at 65% 48%, #422947, transparent 72%), #1d1623;
  border-right: 1px solid var(--line);
}
.login-story .reversal-art { width: 108%; max-width: 800px; right: -5%; transform: translateY(-50%) rotate(-13deg); }
.login-story .brand { position: relative; z-index: 1; }
.login-panel { background: var(--shell); }
.login-panel h1 { margin: 0 0 28px; }

@media (min-width: 1201px) {
  .workspace { grid-template-columns: 232px minmax(0, 1fr); }
}
@media (max-width: 1200px) {
  .overview-grid, .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (761px <= width <= 920px) {
  .overview-grid, .tool-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .workspace .sidebar { visibility: hidden; }
  .workspace.nav-open .sidebar { visibility: visible; }
  .workspace.nav-open .nav-backdrop { background: #100a17a8; }
  #workspace-sidebar { width: min(285px, calc(100vw - 40px)); }
  .workspace .topbar { gap: 9px; padding-inline: 16px; }
  .workspace .breadcrumbs { font-size: 12px; }
  .workspace:not(.pes-workspace-active):not([data-page="tool"]) .main-content { padding-inline: 16px; }
  .launcher-hero { padding: 25px 20px; min-height: 176px; }
  .launcher-copy h1 { font-size: clamp(2.15rem, 5.5vw, 3rem); }
  .launcher-copy p { font-size: 1.07rem; }
  .galactic-hero { min-height: 194px; }
  .galactic-art {
    background-image: url("/galactic-atlas-6edb41f11868.webp");
    background-position: right -72px center;
    background-size: max(430px, 100%) auto;
    opacity: .69;
    mask-image: linear-gradient(90deg, transparent 2%, #0005 38%, #000 79%);
  }
  .card-chevron svg { width: 22px; height: 22px; }
  .reversal-art, .lair-art { opacity: .38; width: 75%; right: -17%; }
  .overview-grid, .tool-grid { gap: 12px; }
  .launcher-grid .launcher-card {
    --card-padding: 15px;
    --mark-width: clamp(81px, 25vw, 112px);
    min-height: 122px;
    padding-right: 12px;
    column-gap: 10px;
  }
  .login-story { border-right: 0; border-bottom: 1px solid var(--line); padding: 20px 25px; overflow: hidden; }
  .login-page { grid-template-rows: auto 1fr; }
  .login-story .reversal-art { display: none; }
}
@media (max-width: 560px) {
  .overview-grid, .tool-grid { grid-template-columns: 1fr; }
}

.symbol-effect { opacity: 0; }
.tool-mark svg.symbol-film-window { width: 18px; height: 18px; }
.tool-mark svg.symbol-belt-window { width: 20px; height: 20px; }
.symbol-path-points { fill: var(--surface); }

@media (prefers-reduced-motion: no-preference) {
  .launcher-card .tool-mark > svg { transition: transform .2s ease-out; }
  .launcher-card:is(:hover, :focus-visible) .tool-mark > svg:not(:has(.symbol-belt-window)) {
    transform: scale(1.035);
  }
  .launcher-card .card-chevron > svg { transition: transform .2s ease-out; }
  .launcher-card:is(:hover, :focus-visible) .card-chevron > svg { transform: translateX(3px); }

  .launcher-card:is(:hover, :focus-visible) :is(.symbol-spiral, .symbol-formation) {
    transform-origin: 50% 50%;
    animation: symbol-orbit 2.7s linear infinite;
  }
  .launcher-card:is(:hover, :focus-visible) .symbol-formation > path {
    transform-box: fill-box;
    transform-origin: center;
    animation: symbol-orbit 2.7s linear infinite reverse;
  }
  .launcher-card:is(:hover, :focus-visible) .symbol-windows {
    animation: symbol-light 1.6s ease-in-out infinite alternate;
  }
  .launcher-card:is(:hover, :focus-visible) .symbol-exhaust {
    fill: var(--card-accent);
    transform-origin: 50% 74%;
    animation: symbol-exhaust .64s ease-in-out infinite alternate;
  }
  .launcher-card:is(:hover, :focus-visible) .symbol-tread {
    opacity: 1;
    stroke: #fff1f6;
    stroke-dasharray: .9 2.1;
    stroke-width: 1.35;
    animation: symbol-track .65s linear infinite;
  }
  .launcher-card:is(:hover, :focus-visible) .symbol-belt-link {
    animation: symbol-belt-links .86s ease-out both;
  }
  .launcher-card:is(:hover, :focus-visible) .symbol-ammo-belt {
    animation: symbol-belt-feed .86s linear both;
  }
  .launcher-card:is(:hover, :focus-visible) .symbol-path-glint {
    stroke: #fff0d4;
    stroke-width: 1.35;
    stroke-dasharray: 5 160;
    animation: symbol-path-glint 1.55s linear infinite;
  }
  .launcher-card:is(:hover, :focus-visible) .symbol-exchange-arrow {
    --arrow-travel: 9px;
    animation: symbol-exchange-slide 1.65s ease-in-out infinite;
  }
  .launcher-card:is(:hover, :focus-visible) .symbol-exchange-arrow + .symbol-exchange-arrow {
    --arrow-travel: -9px;
    animation-delay: .16s;
  }
  .launcher-card:is(:hover, :focus-visible) .symbol-film-strip {
    animation: symbol-film-scroll 2.1s linear infinite;
  }
  .launcher-card:is(:hover, :focus-visible) .symbol-leaf {
    transform-origin: 13% 88%;
    animation: symbol-flutter 1.1s ease-in-out infinite;
  }
  .launcher-card:is(:hover, :focus-visible) .symbol-wind {
    animation: symbol-wind 1.1s ease-out infinite;
  }
  .launcher-card:is(:hover, :focus-visible) .symbol-page {
    transform-origin: 50% 50%;
    fill: color-mix(in srgb, var(--card-accent) 64%, var(--surface));
    animation: symbol-page-turn 1.65s ease-in-out infinite;
  }
  .launcher-card:is(:hover, :focus-visible) .symbol-page + .symbol-page {
    animation-delay: .31s;
  }
}

@keyframes symbol-orbit { to { transform: rotate(1turn); } }
@keyframes symbol-light {
  from { stroke: var(--card-accent); }
  to { stroke: #ffe0a6; filter: drop-shadow(0 0 .65px #ffb775); }
}
@keyframes symbol-exhaust {
  from { opacity: .44; transform: scale(.7, .62); }
  to { opacity: .96; transform: scale(1, 1.09); }
}
@keyframes symbol-track { to { stroke-dashoffset: -6; } }
@keyframes symbol-belt-feed {
  0%, 12% { transform: translateX(0); animation-timing-function: cubic-bezier(.65, 0, .22, 1); }
  64%, 100% { transform: translateX(-28.2px); }
}
@keyframes symbol-belt-links {
  0% { opacity: 0; }
  22%, 100% { opacity: .7; }
}
@keyframes symbol-film-scroll { to { transform: translateY(-36px); } }
@keyframes symbol-path-glint {
  0% { opacity: 0; stroke-dashoffset: 5; }
  12%, 88% { opacity: 1; }
  100% { opacity: 0; stroke-dashoffset: -101; }
}
@keyframes symbol-exchange-slide {
  0%, 20%, 80%, 100% { opacity: 1; transform: translateX(0); }
  49% { opacity: 0; transform: translateX(var(--arrow-travel)); }
  50% { opacity: 0; transform: translateX(calc(0px - var(--arrow-travel))); }
}
@keyframes symbol-flutter {
  0%, 100% { transform: rotate(0); }
  33% { transform: rotate(-10deg) skewX(4deg); }
  66% { transform: rotate(6deg) skewY(-3deg); }
}
@keyframes symbol-wind {
  0%, 100% { opacity: 0; transform: translateX(-1px); }
  43% { opacity: .73; transform: translateX(1px); }
  75% { opacity: 0; transform: translateX(2px); }
}
@keyframes symbol-page-turn {
  0%, 20% { opacity: 0; transform: scaleX(1); }
  26% { opacity: 1; transform: scaleX(1); }
  61% { opacity: 1; transform: scaleX(-1); }
  72%, 100% { opacity: 0; transform: scaleX(-1); }
}

#workspace-appearance .workspace-sound-setting {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 32px;
  margin-bottom: 0;
  cursor: pointer;
}
#workspace-appearance .workspace-sound-setting input {
  width: 17px;
  min-height: 17px;
  margin: 0;
  accent-color: var(--ui-accent);
}

.lcars-number, .lcars-label { display: none; }

/* LCARS pairs solid controls with black gutters and curved group ends. */
:root[data-skin="lcars"] {
  --lcars-orange: #ff9718;
  --lcars-gold: #ffca49;
  --lcars-peach: #ff956e;
  --lcars-lavender: #d493cc;
  --lcars-periwinkle: #9696ff;
  --lcars-rail-gap: 12px;
  --lcars-font: "Arial Narrow", "Liberation Sans Narrow", "DejaVu Sans Condensed", var(--ui-font);
  --lcars-rail: linear-gradient(90deg, var(--lcars-orange) 0 37%, transparent 37% calc(37% + var(--lcars-rail-gap)),
    var(--lcars-gold) calc(37% + var(--lcars-rail-gap)) 58%, transparent 58% calc(58% + var(--lcars-rail-gap)),
    var(--lcars-peach) calc(58% + var(--lcars-rail-gap)) 76%, transparent 76% calc(76% + var(--lcars-rail-gap)),
    var(--lcars-periwinkle) calc(76% + var(--lcars-rail-gap)));
  --lcars-short-rail: linear-gradient(90deg, var(--lcars-periwinkle) 0 21%, transparent 21% 27%,
    var(--lcars-lavender) 27% 44%, transparent 44% 47%, var(--lcars-gold) 47% 74%,
    transparent 74% 79%, var(--lcars-peach) 79%);
}
:root[data-skin="lcars"] body[data-theme] {
  --ink: var(--ui-text);
  --muted: var(--ui-muted);
  --paper: var(--ui-surface);
  --shell: #000;
  --line: var(--ui-border);
  --focus: var(--lcars-gold);
}
:root[data-skin="lcars"] :is(.lcars-number, .lcars-label) { display: inline; }
:root[data-skin="lcars"] :is(.launcher-card .tool-mark svg, .launcher-card .card-chevron,
  #workspace-sidebar nav > .nav-area svg, .sidebar-action svg, .nav-add svg,
  .account-signout svg, .mobile-toggle svg, .brand img, .login-story .launcher-art) { display: none; }
:root[data-skin="lcars"] .lcars-number {
  font-family: var(--lcars-font);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
:root[data-skin="lcars"] #workspace-sidebar {
  --rail-base: #000;
  --rail-edge: #6c5440;
  background: #000;
  border: 0;
}
:root[data-skin="lcars"] :is(#workspace-sidebar, .login-story) .brand {
  justify-content: flex-end;
  min-height: 64px;
  margin: 0 4px 0 0;
  padding: 10px 17px;
  border: 0;
  border-radius: 34px 0 0 0;
  background: var(--lcars-orange);
  color: var(--ui-accent-text);
  font: 800 28px var(--lcars-font);
  letter-spacing: -.04em;
  text-transform: uppercase;
}
:root[data-skin="lcars"] :is(.sidebar, .login-story) .brand-dot { color: inherit; }
:root[data-skin="lcars"] .login-story { background: #000; }

:root[data-skin="lcars"] #workspace-sidebar > nav {
  counter-reset: lcars-route;
  padding-top: 13px;
}
:root[data-skin="lcars"] #workspace-sidebar nav > .nav-area {
  --segment: var(--lcars-gold);
  counter-increment: lcars-route;
  gap: 0;
  margin-block: 0 11px;
  min-height: 43px;
  padding: 0 10px 0 0;
  border: 0;
  border-radius: 0;
  background: var(--segment);
  color: var(--ui-accent-text);
  font-size: 13.5px;
  font-weight: 700;
  clip-path: none;
}
:root[data-skin="lcars"][data-presentation-context="workspace"] #workspace-sidebar nav > .nav-area:is(:hover, [aria-current]) {
  background: var(--segment);
  color: var(--ui-accent-text);
}
:root[data-skin="lcars"] #workspace-sidebar nav > .nav-area:hover { filter: brightness(1.08); }
:root[data-skin="lcars"] #workspace-sidebar nav > .nav-area:first-of-type { border-top-right-radius: 22px; }
:root[data-skin="lcars"] #workspace-sidebar nav > .nav-area:nth-of-type(4),
:root[data-skin="lcars"] #workspace-sidebar nav > .nav-area:last-of-type { border-bottom-right-radius: 22px; }
:root[data-skin="lcars"] #workspace-sidebar nav > a[href="#/playground"] { --segment: var(--lcars-peach); }
:root[data-skin="lcars"] #workspace-sidebar nav > a[href="#/pes"] { --segment: var(--lcars-lavender); }
:root[data-skin="lcars"] #workspace-sidebar nav > a[href="#/phantasms-lair"] { --segment: var(--lcars-periwinkle); }
:root[data-skin="lcars"] #workspace-sidebar nav > a[href="#/notes"] {
  --segment: var(--lcars-orange);
  margin-top: 24px;
  border-top-right-radius: 22px;
}
:root[data-skin="lcars"] #workspace-sidebar nav > .nav-area > .lcars-number {
  order: -1;
  display: grid;
  place-items: center;
  align-self: stretch;
  flex: 0 0 37px;
  margin-right: 9px;
  border-right: 9px solid #000;
  font-size: 16px;
}
:root[data-skin="lcars"] #workspace-sidebar nav > .nav-area > .lcars-number::before {
  content: counter(lcars-route, decimal-leading-zero);
}
:root[data-skin="lcars"] #workspace-sidebar nav > .nav-area[aria-current] > .lcars-number {
  background: #000;
  color: var(--segment);
}
:root[data-skin="lcars"][data-presentation-context="workspace"] #workspace-sidebar nav > .nav-area[aria-current] {
  font-weight: 850;
}
:root[data-skin="lcars"] #workspace-sidebar .notes-tree { border-color: var(--lcars-orange); }
:root[data-skin="lcars"] #workspace-sidebar .notes-tree .dot { display: none; }
:root[data-skin="lcars"] #workspace-sidebar .nav-count { color: var(--lcars-gold); }

:root[data-skin="lcars"] #workspace-sidebar .sidebar-bottom {
  position: relative;
  gap: 10px;
  padding-top: 19px;
  border-top: 0;
}
:root[data-skin="lcars"] #workspace-sidebar .sidebar-bottom::before {
  content: "";
  position: absolute;
  inset: 0 13px auto 0;
  height: 8px;
  background: var(--lcars-short-rail);
  border-radius: 0 8px 8px 0;
}
:root[data-skin="lcars"] #workspace-sidebar #workspace-appearance .presentation-controls {
  border: 0;
  background: #000;
}
:root[data-skin="lcars"] #workspace-sidebar :is(.sidebar-action, .account-signout),
:root[data-skin="lcars"] #workspace-sidebar #workspace-appearance summary {
  border: 0;
  border-radius: 0 22px 22px 0;
  background: var(--lcars-gold);
  color: var(--ui-accent-text);
  font-weight: 750;
}
:root[data-skin="lcars"] #workspace-sidebar #workspace-appearance summary { background: var(--lcars-lavender); }
:root[data-skin="lcars"] #workspace-sidebar #workspace-appearance summary::before { color: inherit; }
:root[data-skin="lcars"] #workspace-sidebar .account-signout {
  width: auto;
  min-width: 72px;
  padding-inline: 8px;
  background: var(--lcars-periwinkle);
}
:root[data-skin="lcars"] #workspace-sidebar .account .avatar { display: none; }

:root[data-skin="lcars"] .workspace :is(.topbar, .pes-masthead) {
  position: relative;
  min-height: 70px;
  padding-bottom: 18px;
  background: #000;
  border: 0;
}
:root[data-skin="lcars"] .workspace :is(.topbar, .pes-masthead)::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 16px;
  border-radius: 0 10px 10px 0;
  background: var(--lcars-rail) left top / 100% 8px no-repeat,
    var(--lcars-short-rail) right bottom / 69% 3px no-repeat;
  pointer-events: none;
}
:root[data-skin="lcars"] .workspace .breadcrumbs strong {
  color: var(--lcars-gold);
  font: 800 14px var(--lcars-font);
  letter-spacing: .06em;
  text-transform: uppercase;
}
:root[data-skin="lcars"] body[data-theme] :is(.workspace, .login-page) button.version-badge {
  border: 0;
  border-radius: 999px;
  background: var(--lcars-periwinkle);
  color: var(--ui-accent-text);
  font-weight: 750;
}
:root[data-skin="lcars"] .workspace :is(.topbar, .pes-masthead) button.mobile-toggle {
  width: auto;
  min-width: 48px;
  min-height: 36px;
  padding-inline: 10px;
  border: 0;
  border-radius: 999px;
  background: var(--lcars-orange);
  color: var(--ui-accent-text);
  font-weight: 750;
}
:root[data-skin="lcars"] .workspace .pes-workspace { --pes-background: #000; }
:root[data-skin="lcars"] .workspace .pes-area-nav { background: #000; border-color: var(--lcars-orange); }

:root[data-skin="lcars"] .workspace .launcher-hero {
  min-height: 0;
  padding: 35px clamp(26px, 5vw, 64px) 22px;
  background: #000;
  clip-path: none;
}
:root[data-skin="lcars"] .workspace .launcher-hero .launcher-copy { z-index: 1; }
:root[data-skin="lcars"] .workspace .launcher-hero :is(.launcher-art, .galactic-art) { display: none; }
:root[data-skin="lcars"] .workspace .launcher-hero::before {
  box-sizing: border-box;
  inset: 0 auto 0 0;
  width: min(29%, 170px);
  border: solid var(--lcars-orange);
  border-width: 14px 0 0 19px;
  border-top-left-radius: 32px;
  background: none;
  clip-path: none;
}
:root[data-skin="lcars"] .workspace .launcher-hero::after {
  inset: 0 0 auto min(29%, 170px);
  height: 14px;
  border-radius: 0 12px 12px 0;
  background: linear-gradient(90deg, var(--lcars-orange) 0 27%, transparent 27% 29%,
    var(--lcars-periwinkle) 29% 44%, transparent 44% 47%, var(--lcars-lavender) 47% 80%,
    transparent 80% 81.5%, var(--lcars-gold) 81.5%);
  clip-path: none;
}
:root[data-skin="lcars"] .workspace .launcher-copy h1 {
  color: var(--lcars-gold);
  font: 800 clamp(2.2rem, 4.7vw, 4.6rem)/1 var(--lcars-font);
  letter-spacing: -.045em;
  text-transform: uppercase;
  text-wrap: wrap;
}
:root[data-skin="lcars"] .workspace .launcher-copy p { color: var(--ui-muted); font-size: 1.07rem; }
:root[data-skin="lcars"] .workspace .galactic-catalogue { margin-top: 18px; }
:root[data-skin="lcars"] .workspace .galactic-catalogue h2 {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  color: var(--lcars-gold);
  font: 800 1.23rem var(--lcars-font);
  letter-spacing: .06em;
  text-transform: uppercase;
}
:root[data-skin="lcars"] .workspace .galactic-catalogue h2::after {
  content: "";
  flex: 1;
  height: 10px;
  background: var(--lcars-short-rail) right top / 70% 4px no-repeat,
    var(--lcars-rail) left bottom / 58% 3px no-repeat;
}

:root[data-skin="lcars"] .workspace .launcher-grid {
  --lcars-spine: 22px;
  --lcars-row-rail: 16px;
  position: relative;
  counter-reset: lcars-tool;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 16px;
  padding-top: calc(var(--lcars-row-rail) + 14px);
  padding-left: calc(var(--lcars-spine) + 12px);
  background: var(--lcars-rail) right top / calc(100% - var(--lcars-spine) - 12px) var(--lcars-row-rail) no-repeat;
}
:root[data-skin="lcars"] .workspace .launcher-grid::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--lcars-spine);
  border-radius: 21px 0 0 21px;
  background: linear-gradient(180deg, var(--lcars-orange) 0 20%, transparent 20% calc(20% + var(--lcars-rail-gap)),
    var(--lcars-peach) calc(20% + var(--lcars-rail-gap)) 43%, transparent 43% calc(43% + var(--lcars-rail-gap)),
    var(--lcars-lavender) calc(43% + var(--lcars-rail-gap)) 63%, transparent 63% calc(63% + var(--lcars-rail-gap)),
    var(--lcars-periwinkle) calc(63% + var(--lcars-rail-gap)) 88%, transparent 88% calc(88% + var(--lcars-rail-gap)),
    var(--lcars-orange) calc(88% + var(--lcars-rail-gap)));
  pointer-events: none;
}
:root[data-skin="lcars"] .workspace .launcher-grid::after {
  content: "";
  grid-column: 1 / -1;
  height: calc(var(--lcars-row-rail) + 9px);
  background: var(--lcars-short-rail) left top / 95% var(--lcars-row-rail) no-repeat,
    var(--lcars-rail) right bottom / 56% 4px no-repeat;
  border-radius: 0 15px 15px 0;
}
:root[data-skin="lcars"] .workspace .launcher-grid .launcher-card {
  --segment: var(--lcars-gold);
  counter-increment: lcars-tool;
  min-height: 75px;
  grid-template-columns: clamp(44px, 6vw, 68px) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  gap: 4px 0;
  padding: 0 clamp(14px, 2vw, 25px) 0 0;
  border-radius: 0 30px 30px 0;
  background: var(--segment);
  color: var(--ui-accent-text);
  clip-path: none;
}
:root[data-skin="lcars"] .workspace .launcher-grid .launcher-card::before,
:root[data-skin="lcars"] .workspace .launcher-grid .launcher-card::after { display: none; }
:root[data-skin="lcars"] .workspace .launcher-grid .launcher-card:nth-child(8n + 2) { --segment: var(--lcars-orange); }
:root[data-skin="lcars"] .workspace .launcher-grid :is(.launcher-card:nth-child(8n + 3), .launcher-card:nth-child(8n + 4)) { --segment: var(--lcars-periwinkle); }
:root[data-skin="lcars"] .workspace .launcher-grid :is(.launcher-card:nth-child(8n + 5), .launcher-card:nth-child(8n + 6)) { --segment: var(--lcars-peach); }
:root[data-skin="lcars"] .workspace .launcher-grid :is(.launcher-card:nth-child(8n + 7), .launcher-card:nth-child(8n + 8)) { --segment: var(--lcars-lavender); }
:root[data-skin="lcars"] .workspace .launcher-grid .launcher-card .tool-mark {
  margin: 0;
  border-right: 10px solid #000;
  background: transparent;
  color: inherit;
}
:root[data-skin="lcars"] .launcher-card .lcars-number { font-size: clamp(1.38rem, 3vw, 2rem); }
:root[data-skin="lcars"] .launcher-card .lcars-number::before { content: counter(lcars-tool, decimal-leading-zero); }
:root[data-skin="lcars"] .workspace .launcher-grid .launcher-card :is(h2, h3) {
  margin: 0;
  padding: 10px 0 0 12px;
  color: inherit;
  font: 800 clamp(1rem, 1.6vw, 1.33rem)/1.15 var(--lcars-font);
  letter-spacing: .015em;
  text-transform: uppercase;
}
:root[data-skin="lcars"] .workspace .launcher-grid .launcher-card p {
  padding: 0 0 10px 12px;
  color: var(--ui-accent-text);
  font-size: .97rem;
  line-height: 1.32;
}
:root[data-skin="lcars"] .workspace .launcher-grid .launcher-card:is(:hover, :focus-visible) {
  background: color-mix(in srgb, var(--segment) 75%, #fff);
}
:root[data-skin="lcars"] :is(.launcher-card, #workspace-sidebar nav > .nav-area):focus-visible {
  outline: 2px dashed #171008;
  outline-offset: -6px;
}

@media (min-width: 921px) {
  :root[data-skin="lcars"] .workspace .launcher-grid .launcher-card:nth-child(odd):not(:last-child) { border-radius: 0; }
  :root[data-skin="lcars"] .workspace .launcher-grid .launcher-card:last-child:nth-child(odd) { grid-column: span 2; }
}
@media (max-width: 920px) {
  :root[data-skin="lcars"] .workspace .launcher-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  :root[data-skin="lcars"] .workspace .topbar { gap: 7px; padding-inline: 12px; }
  :root[data-skin="lcars"] .workspace :is(.topbar, .pes-masthead)::after {
    height: 12px;
    background-size: 100% 6px, 65% 2px;
  }
  :root[data-skin="lcars"] .workspace .breadcrumbs strong { font-size: 12px; letter-spacing: .025em; }
  :root[data-skin="lcars"] .workspace .launcher-hero { padding-top: 30px; }
  :root[data-skin="lcars"] .workspace .launcher-hero::before { border-width: 10px 0 0 13px; border-top-left-radius: 22px; }
  :root[data-skin="lcars"] .workspace .launcher-hero::after { height: 10px; }
  :root[data-skin="lcars"] .workspace .launcher-grid {
    --lcars-spine: 12px;
    --lcars-row-rail: 12px;
    gap: 14px;
  }
  :root[data-skin="lcars"] .workspace .launcher-grid .launcher-card { border-radius: 0 24px 24px 0; }
}
