@font-face{font-family:Inter;src:url("../../assets/fonts/inter-cyrillic.woff2") format("woff2");font-weight:100 900;font-display:swap;unicode-range:U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:Inter;src:url("../../assets/fonts/inter-latin.woff2") format("woff2");font-weight:100 900;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20A0-20AB,U+20AD-20C0,U+2113,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
:root{
  color-scheme:dark;
  font: 16px/1.4 Inter,system-ui,sans-serif;
  --bg:#191b1e;--side:#141517;--ink:#f6f6f7;--muted:#b4b6bf;
  --line:#515358;--hover:#25272a;--accent:#ffb01b;--gold:#ffbf26;
  color:var(--ink);
  background:var(--bg)
}
*{box-sizing:border-box}
body{margin:0;min-width:280px}
button,input,select{font:inherit;color:inherit}
button{cursor:pointer}
a{color:inherit;text-decoration:none}
:focus-visible{outline:2px solid var(--gold);outline-offset:4px}
[hidden]{display:none!important}
.symbols,.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.icon{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex:none}
.shell{min-height:100vh;display:grid;grid-template-columns:clamp(215px,18.49vw,284px) minmax(0,1fr)}
.sidebar{position:sticky;top:0;min-height:560px;height:100dvh;display:flex;flex-direction:column;background:var(--side);border-right:1px solid #202226}
.brand{display:flex;align-items:center;gap:19px;padding:31px 29px 0;white-space:nowrap;font-size:clamp(21px,1.95vw,30px);font-weight:735;letter-spacing:-.055em}
.navigation{margin:146px 12px 0 15px;display:grid;gap:3px}
.navigation a,.sidebar-bottom button{position:relative;display:flex;align-items:center;gap:24px;min-height:56px;padding:10px 22px;font-size:clamp(16px,1.45vw,22px);letter-spacing:-.025em;text-align:left;border:0;background:none;border-radius:8px}
.navigation a:hover,.sidebar-bottom button:hover{background:#232529}
.navigation a[aria-current="page"]{background:#3a2f1a;overflow:hidden}
.navigation a[aria-current="page"]::before{content:"";position:absolute;inset:0 auto 0 0;width:5px;background:var(--accent)}
.sidebar-bottom{margin:auto 21px 39px;border-top:1px solid #45474a;padding-top:7px}
.sidebar-bottom button{width:100%;gap:23px;padding-inline:16px}
.main{min-width:0;background:radial-gradient(ellipse at 65% 32%,#1c1e21 0%,var(--bg) 67%)}
.topbar{display:flex;justify-content:flex-end;align-items:center;gap:10px;padding:31px 28px 0}
.topbar-tools{display:flex;align-items:center;gap:inherit;min-width:0}
.topbar-link{display:grid;place-items:center;width:44px;height:44px;flex:none;border:1px solid var(--line);border-radius:8px}
.topbar-link:hover,.topbar-link:focus-visible{background:var(--hover);color:var(--gold)}
.topbar-link .icon{width:20px;height:20px}
.language{position:relative;display:flex;align-items:center}
.language select{appearance:none;min-width:88px;height:44px;padding:0 36px 0 16px;border:1px solid var(--line);border-radius:8px;background:#191b1e;font-size:20px;cursor:pointer}
.language .icon{position:absolute;right:12px;width:18px;height:18px;pointer-events:none}
.content{padding:48px 21px 54px 30px;max-width:1600px;margin:auto}
h1,h2,p{margin:0}
h1{margin-bottom:60px;font-size:clamp(38px,3.13vw,48px);line-height:1.18;font-weight:735;letter-spacing:-.05em}
h2{font-size:clamp(25px,2.15vw,33px);line-height:1.15;letter-spacing:-.044em;font-weight:710}
.project-list{min-width:0}
.section-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:25px;min-height:48px}
.search{display:flex;align-items:center;gap:17px;border:1px solid var(--line);border-radius:10px;max-width:294px;width:42%;height:48px;padding:0 15px;color:var(--muted)}
.search:focus-within{border-color:var(--gold)}
.search input{width:100%;min-width:0;outline:none;background:none;border:0;padding:0;font-size:clamp(15px,1.3vw,20px)}
.search input::placeholder{color:var(--muted);opacity:1}
.table-frame{border:1px solid var(--line);border-radius:10px;min-width:0}
table{width:100%;border-collapse:collapse;table-layout:fixed}
th{height:54px;text-align:left;color:var(--muted);font-size:clamp(14px,1.25vw,19px);font-weight:500}
th:first-child{padding-left:32px;width:64%}
th:last-child{width:64px}
td{height:83px;border-top:1px solid #44464b}
tr:last-child td:first-child{border-bottom-left-radius:9px}
tr:last-child td:last-child{border-bottom-right-radius:9px}
tbody tr:hover,tbody tr:focus-within{background:var(--hover)}
.project-open{display:flex;align-items:center;gap:25px;width:100%;padding:12px 0 12px 28px;min-width:0;border:0;background:none;text-align:left;font-size:clamp(16px,1.45vw,22px);font-weight:510;letter-spacing:-.025em}
.project-open span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.file-icon{display:grid;place-items:center;width:56px;height:56px;flex:none;border-radius:8px;background:#2d2f32}
.file-icon .icon{width:27px;height:27px}
time{font-size:clamp(14px,1.38vw,21px);color:var(--muted);white-space:nowrap}
.row-actions{position:relative}
.more{display:grid;place-items:center;width:44px;height:44px;margin-inline:auto;border:0;border-radius:7px;background:transparent}
.more:hover{background:#383b40}
.more .icon{width:23px;fill:currentColor}
.row-menu{position:absolute;right:8px;top:66px;z-index:2;width:max-content;padding:5px;background:#282b30;border:1px solid var(--line);border-radius:8px;box-shadow:0 12px 25px #0005}
.row-menu button{display:block;width:100%;border:0;border-radius:4px;background:none;text-align:left;padding:8px 13px}
.row-menu button:hover{background:#363940}
.empty{border-top:1px solid #44464b;padding:34px 28px;color:var(--muted)}
.project-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,255px),1fr));align-items:stretch;gap:20px}
.project-card{display:flex;flex-direction:column;min-width:0;overflow:hidden;border:1px solid #3d4149;border-radius:13px;background:#202226;box-shadow:0 9px 18px #0006,0 24px 40px #0005;transition:border-color .18s,box-shadow .18s,transform .18s}
.project-card:hover,.project-card:focus-within{border-color:#82745d;box-shadow:0 14px 26px #0008,0 30px 50px #0006;transform:translateY(-2px)}
.project-card-image{display:grid;place-items:center;width:100%;aspect-ratio:8/5;overflow:hidden;background:radial-gradient(ellipse at 50% 35%,#3b424f,#23262f 77%);position:relative;isolation:isolate}
.project-card-image::after{content:"";position:absolute;z-index:0;left:13%;right:13%;height:24%;bottom:9%;border-radius:50%;background:radial-gradient(ellipse at center,#0009 0%,#0005 38%,transparent 76%);filter:blur(12px);pointer-events:none}
.project-card-image>img{position:relative;z-index:1;display:block;width:100%;height:100%;padding:8px 13px;object-fit:contain;filter:drop-shadow(0 12px 7px #0009) drop-shadow(0 24px 18px #0008)}
.project-card-placeholder{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;color:#8c96a6;text-align:center;font-size:12px}
.project-card-placeholder .icon{width:52px;height:52px;opacity:.55}
.project-card-body{display:flex;flex:1;flex-direction:column;min-height:178px;gap:8px;padding:16px}
.project-card-title{font-size:20px;line-height:1.25;letter-spacing:-.025em;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere}
.project-card-description{color:var(--muted);font-size:13px;line-height:1.5;min-height:39px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere}
.project-card-meta{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:auto;padding-top:6px;color:#a3a9b5;font-size:12px}
.project-card-meta time{color:inherit;font-size:12px}
.project-card-actions{display:flex;align-items:center;gap:7px;margin-top:7px}
.project-card-actions .workspace-action{min-height:38px;padding:7px 10px;font-size:13px}
.project-card-actions .project-card-open{flex:1;min-width:0}
.project-card-remove{display:grid;place-items:center;flex:none;width:38px;height:38px;border:1px solid #49454a;border-radius:8px;background:#2a2529;color:#ecb9b9}
.project-card-remove .icon{width:18px;height:18px}
.project-card-remove:hover{border-color:#c36c6c;background:#462c32;color:#fff}
.project-list .empty{margin-top:16px;padding:32px;border:1px dashed #515358;border-radius:12px;background:#202226}
@media(max-width:620px){.project-grid{gap:12px}.project-card-body{padding:13px}.project-card-title{font-size:18px}}

#home-title{margin:0 auto 0 0;font-size:clamp(26px,2.76vw,38px);white-space:normal}
.topbar:has(.home-actions:not([hidden])){flex-wrap:wrap;max-width:1600px;margin-inline:auto}
.topbar:has(#home-title:not([hidden])){justify-content:flex-end;padding:34px 28px 0 30px;gap:8px}
.topbar:has(.home-actions:not([hidden])) .topbar-link{width:34px;height:34px}
.topbar:has(.home-actions:not([hidden])) .language select{min-width:67px;height:38px;padding-inline:11px 29px;font-size:15px}
.topbar:has(.home-actions:not([hidden])) .language .icon{right:8px;width:15px;height:15px}
.home-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.home-actions .workspace-action{padding-inline:10px}
.workspace-action{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:9px 13px;border:1px solid #454751;border-radius:8px;background:#22242a;text-align:center;font-size:14px;font-weight:620}
.workspace-action:hover{background:#30323a}
.workspace-action .icon{width:18px;height:18px}
.workspace-action.primary{border-color:transparent;background:var(--accent);color:#1c170f;font-weight:720}
.workspace-action.primary:hover{background:#ffbf43}
.workspace-action-quiet{border-color:transparent;background:transparent;color:#d5d6dc}
.main:has(#home-title:not([hidden])) .content{padding-top:30px}
.home-overview{display:grid;gap:clamp(18px,2vw,28px);grid-template-columns:minmax(0,2.62fr) minmax(240px,1fr);align-items:start;margin-bottom:36px}
.home-overview:has(.home-recent[hidden]){grid-template-columns:1fr}
.home-feature{position:relative;isolation:isolate;display:grid;grid-template-columns:minmax(200px,1fr) minmax(0,1.65fr);align-items:center;min-height:clamp(300px,27vw,410px);border:1px solid #3c3f49;border-radius:15px;background:#1b1d23 radial-gradient(ellipse at 84% 48%,#384154 4%,#212734 43%,#1a1b20 81%);padding:clamp(18px,2.2vw,33px)}
.home-feature::before{content:"";position:absolute;z-index:-1;inset:56% 0 0;pointer-events:none;border-radius:0 0 14px 14px;mask-image:linear-gradient(transparent,#000 58%,#0008);background:repeating-linear-gradient(0deg,transparent 0 20px,#aebad313 20px 21px),repeating-linear-gradient(90deg,transparent 0 40px,#aebad311 40px 41px)}
.home-feature-details{min-width:0;position:relative;z-index:1}
.home-feature-label{margin-bottom:10px;color:var(--gold);font-size:12px;font-weight:730;letter-spacing:.075em;text-transform:uppercase}
.home-feature h2{font-size:clamp(27px,3.63vw,54px);line-height:1.04;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.home-feature-meta{margin-top:12px;color:#c3c6d0;font-size:14px}
.home-feature .workspace-action{margin-top:22px}
.home-feature-art{display:grid;place-items:center;min-width:0;aspect-ratio:12/7}
.home-feature-art img{display:block;width:100%;height:auto;filter:drop-shadow(0 14px 15px #080b12aa)}
.home-feature-cover{display:grid;justify-items:center;gap:7px;width:100%;margin:0;padding:0 clamp(0px,1vw,12px);color:#d3d7e0;font-size:12px}
.home-feature-art .home-feature-cover img{width:auto;max-width:100%;max-height:clamp(150px,22vw,298px);object-fit:contain;border-radius:9px}
.home-fallback{display:grid;place-items:center;gap:10px;text-align:center;color:#b4bccb;font-size:13px}
.home-fallback .icon{width:39px;height:39px;color:#aab4c8}
.home-instruction{display:flex;align-items:center;gap:10px;width:max-content;max-width:100%;margin-top:17px;padding:8px 11px 8px 8px;border:1px solid #484d5a;border-radius:8px;background:#252832;font-size:13px}
.home-instruction p{margin-top:3px;color:#c2c5ce;font-size:12px}
.home-instruction-art{display:grid;width:55px;aspect-ratio:1.42;flex:none;place-items:center;background:#3a4050;border-radius:4px;overflow:hidden}
.home-instruction-art .icon{width:19px;height:19px;color:#bfc5d2}
.home-instruction-art img{width:100%;height:100%;object-fit:contain;background:#dedfe2}
.home-section-head{display:flex;align-items:baseline;justify-content:space-between;gap:8px 14px;flex-wrap:wrap}
.home-section-head a{color:#ffd180;font-size:13px;font-weight:650}
.home-section-head a:hover{text-decoration:underline}
.home-recent{min-width:0;padding-top:5px}
.home-recent h2{font-size:clamp(18px,1.5vw,23px);letter-spacing:-.025em}
.home-recent-list{list-style:none;display:grid;gap:0;padding:0;margin:10px 0 0}
.home-recent-list li+li{border-top:1px solid #383a42}
.home-recent-open{width:100%;display:grid;grid-template-columns:clamp(58px,6vw,93px) minmax(0,1fr);align-items:center;gap:12px;padding:12px 0;border:0;border-radius:5px;background:none;text-align:left}
.home-recent-open:hover{background:#25272d}
.home-recent-art{display:grid;place-items:center;aspect-ratio:1.42;background:#2b2f39;border-radius:7px;overflow:hidden;color:#b4bdcc}
.home-recent-art .icon{width:19px;height:19px}
.home-recent-art img{width:100%;height:100%;object-fit:contain}
.home-recent-detail{display:grid;gap:4px;min-width:0}
.home-recent-detail strong{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:14px}
.home-recent-detail time{font-size:12px}
.home-example-heading{margin-bottom:17px}
.example-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,240px),1fr));gap:18px}
#example-panel.home-examples .example-grid{grid-template-columns:minmax(0,1.5fr) repeat(3,minmax(0,1fr));gap:clamp(12px,1.5vw,20px)}
.home-examples .example-card{position:relative}
.home-examples .example-card-featured{background:linear-gradient(145deg,#231f1c,#3b3024)}
.home-examples .example-image{height:clamp(124px,11vw,184px);aspect-ratio:auto}
.home-examples .example-card-featured .example-image{background:radial-gradient(ellipse at 56% 62%,#53422d,transparent 74%)}
.home-examples .example-body{gap:7px;padding:14px}
.home-examples .example-body h2{font-size:17px}
.home-examples .example-body p{font-size:13px}
.home-examples .example-body button{padding:0;min-height:32px;border:0;color:#ffd180;background:none;font-size:13px;text-align:left}
.home-examples .example-body button::after{content:"";position:absolute;inset:0;border-radius:11px}
.home-examples .example-body button:hover{text-decoration:underline}
.home-examples .example-body button:focus-visible::after{outline:2px solid var(--gold);outline-offset:3px}
.home-examples .example-body button:focus-visible{outline:0}
.content:has(#example-panel:not([hidden]))>h1{margin-bottom:28px}
.example-card{display:flex;flex-direction:column;min-width:0;border:1px solid #3d4149;border-radius:12px;background:#202226}
.example-card:hover,.example-card:focus-within{border-color:#79705d}
.example-image{display:block;width:100%;height:auto;aspect-ratio:8/5;object-fit:contain;border-radius:11px 11px 0 0;background:radial-gradient(ellipse at 50% 42%,#353c4a,#22262f 77%)}
.example-body{display:flex;flex:1;flex-direction:column;align-items:flex-start;gap:10px;padding:17px 16px 16px}
.example-body h2{font-size:21px;letter-spacing:-.025em;overflow-wrap:anywhere}
.example-body p{margin-bottom:6px;color:var(--muted);font-size:14px}
.example-body button{margin-top:auto;min-height:44px;font-size:14px}
.example-body button:disabled{cursor:wait;opacity:.7}
.content:has(#library-panel:not([hidden]))>h1{margin-bottom:24px}
.menu-library-controls{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-bottom:16px}
.menu-library-family{font-weight:650;white-space:nowrap}
.menu-library-controls .search{width:auto;max-width:none;height:42px;flex:1 1 225px;gap:10px}
.menu-library-controls .search .icon{width:19px;height:19px}
.menu-library-controls .search input{font-size:14px}
.menu-library-controls select{width:min(100%,245px);min-height:42px;padding:7px 10px;border:1px solid var(--line);border-radius:8px;background:var(--bg);font-size:14px}
.menu-library .editor-library-count{margin-inline-start:auto;color:var(--muted);font-size:13px}
.menu-library-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(155px,1fr));gap:12px}
.menu-library .editor-part-card{display:flex;flex-direction:column;min-width:0;overflow:hidden;border:1px solid #3a3d44;border-radius:9px;background:#202329}
.menu-library .editor-part-details{padding:10px 11px}
.menu-library .editor-part-name{display:block;font-size:14px}
.menu-library .editor-part-id{font-size:12px}
.menu-library .editor-library-more,.menu-library #library-retry{display:block;width:max-content;margin:16px auto 0;padding:8px 16px;border:1px solid var(--line);border-radius:8px;background:#24272c}
.menu-library .editor-library-more:hover,.menu-library #library-retry:hover{background:#303339}
dialog{border:1px solid var(--line);border-radius:12px;background:#202226;padding:26px}
.setting select{padding:9px 12px;border:1px solid var(--line);border-radius:7px;background:var(--side)}
.secondary{border:1px solid var(--line);border-radius:7px;padding:8px 14px;background:#2b2e33}
.secondary:hover{background:#373a40}
.status{color:var(--gold);margin-top:18px}
dialog{width:min(450px,calc(100% - 32px));color:var(--ink)}
dialog::backdrop{background:#0009}
dialog p,.setting{margin:18px 0}
.setting,.dialog-actions{display:flex;align-items:center;justify-content:space-between;gap:12px}
.dialog-actions{justify-content:flex-end}
.danger{color:#ffaaaa}

/* Settings dialog — interactive preferences rather than a one-field popup. */
.settings-modal{width:min(590px,calc(100% - 28px));max-height:min(90dvh,840px);padding:0;overflow:auto;border-color:#494d57;border-radius:16px;box-shadow:0 28px 90px #000a}
.settings-modal>form{display:flex;flex-direction:column}
.settings-heading{padding:23px 25px 16px;background:linear-gradient(125deg,#272932,#1e2027);border-bottom:1px solid #3d424b}
.settings-heading h2{font-size:25px;letter-spacing:-.03em}
.settings-modal .settings-heading p{margin:7px 0 0;color:#aeb5c3;font-size:13px;line-height:1.5}
.settings-section{padding:18px 25px 0}
.settings-section h3{margin:0 0 10px;font-size:12px;font-weight:750;letter-spacing:.09em;text-transform:uppercase;color:#f2bd54}
.settings-row{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:66px;padding:11px 0;border-bottom:1px solid #393d46;cursor:pointer}
.settings-section .settings-row:last-child{border-bottom:none}
.settings-copy{display:grid;gap:4px;min-width:0}
.settings-copy strong{font-size:14px;line-height:1.25;font-weight:650}
.settings-copy small{font-size:12px;line-height:1.38;color:#adb4c2}
.settings-modal select{flex:none;max-width:45%;min-width:115px;border:1px solid #555a66;border-radius:8px;background:#2a2e36;color:#fff;padding:9px 10px;font-size:13px;cursor:pointer}
.settings-modal input[type=checkbox]{appearance:none;position:relative;flex:none;width:43px;height:25px;margin:0;border:1px solid #626a77;border-radius:999px;background:#474b56;cursor:pointer;transition:background .2s,border-color .2s}
.settings-modal input[type=checkbox]::after{content:"";position:absolute;top:3px;left:3px;width:17px;height:17px;border-radius:50%;background:#e2e5eb;box-shadow:0 1px 3px #0007;transition:transform .2s}
.settings-modal input[type=checkbox]:checked{background:#ffb01b;border-color:#ffbd47}
.settings-modal input[type=checkbox]:checked::after{transform:translateX(18px);background:#1c1a16}
.settings-modal :is(input,select,button):focus-visible{outline:2px solid #ffbf45;outline-offset:3px}
.settings-modal .settings-action{flex:none;padding:8px 12px;border:1px solid #555a66;border-radius:8px;background:#2b2e36;font-size:13px}
.settings-modal .settings-action:hover{background:#373b45}
.settings-modal .settings-status{margin:10px 25px 0;padding:9px 12px;border-radius:7px;background:#303438;color:#ffcf7c;font-size:12px}
.settings-footer{position:sticky;bottom:0;display:flex;justify-content:space-between;align-items:center;gap:14px;margin-top:18px;padding:14px 25px;background:#22252b;border-top:1px solid #484c55}
.settings-footer button{font-size:13px}
.settings-footer .workspace-action{min-width:95px}
.settings-reset{padding:8px 0;border:0;background:none;color:#c4cad4;text-align:left}
.settings-reset:hover{color:#ffce7a}
@media(max-width:620px){.settings-heading{padding:19px 17px 14px}.settings-section{padding:16px 17px 0}.settings-row{gap:12px}.settings-copy strong{font-size:13px}.settings-copy small{font-size:11px}.settings-footer{padding:12px 17px}.settings-modal .settings-status{margin-inline:17px}}

@media(min-width:951px){
  .shell:has(#home-title:not([hidden])){grid-template-columns:clamp(195px,15.5vw,230px) minmax(0,1fr)}
  .shell:has(#home-title:not([hidden])) .brand{padding-inline:20px;gap:12px;font-size:clamp(18px,1.65vw,23px)}
  .shell:has(#home-title:not([hidden])) .brand img{width:36px;height:36px}
  .shell:has(#home-title:not([hidden])) .navigation{margin-top:50px}
  .shell:has(#home-title:not([hidden])) .navigation a,.shell:has(#home-title:not([hidden])) .sidebar-bottom button{min-height:45px;padding-inline:11px;gap:12px;font-size:14px}
  .shell:has(#home-title:not([hidden])) .navigation .icon,.shell:has(#home-title:not([hidden])) .sidebar-bottom .icon{width:18px;height:18px}
}
@media(max-width:1240px){
  .topbar:has(#home-title:not([hidden])) .home-actions{order:1;width:100%;margin-top:4px}
  .section-head{flex-wrap:wrap}
  .search{width:min(100%,280px)}
  .project-open{padding-left:18px;gap:14px}
  .file-icon{height:44px;width:44px}
  td{height:69px}
}
@media(max-width:950px){
  .home-overview{grid-template-columns:1fr}
  .home-recent-list{grid-template-columns:repeat(auto-fit,minmax(min(100%,165px),1fr));gap:9px;margin-top:12px}
  .home-recent-list li+li{border-top:0}
  .home-recent-open{height:100%;padding:8px;background:#202228;grid-template-columns:58px minmax(0,1fr);gap:9px}
  #example-panel.home-examples .example-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .shell{grid-template-columns:195px minmax(0,1fr)}
  .brand{padding-inline:16px;gap:12px;font-size:20px}
  .brand img{width:37px;height:37px}
  .navigation{margin-top:97px}
  .navigation a,.sidebar-bottom button{padding-inline:13px;gap:12px}
  .content{padding-inline:22px}
  h1{margin-bottom:34px}
}
@media(max-width:620px){
  .topbar:has(#home-title:not([hidden])){padding:17px 16px 0}
  .topbar:has(#home-title:not([hidden])) #home-title{font-size:26px;width:100%}
  .topbar:has(#home-title:not([hidden])) .home-actions{order:0}
  .main:has(#home-title:not([hidden])) .content{padding-top:18px}
  .home-feature{min-height:0;grid-template-columns:1fr}
  .home-feature-art{grid-row:1;margin-bottom:14px}
  .home-overview{margin-bottom:27px}
  .home-examples .example-body{padding:11px}
  .home-examples .example-image{height:108px}
  .home-examples .example-body h2{font-size:15px}
  .home-examples .example-body button{font-size:12px}
  .shell{display:block}
  .sidebar{position:relative;min-height:0;height:auto;border-right:0;border-bottom:1px solid var(--line);display:grid;grid-template-columns:1fr auto}
  .brand{padding:14px 16px}
  .navigation{margin:0;padding:0 9px 7px;grid-column:1/-1;display:flex;gap:3px;flex-wrap:wrap}
  .navigation a,.sidebar-bottom button{font-size:14px;min-height:42px;padding:8px 10px;gap:6px}
  .navigation .icon,.sidebar-bottom .icon{width:18px;height:18px}
  .sidebar-bottom{margin:10px 12px 0 0;padding:0;border:0;grid-column:2;grid-row:1}
  .sidebar-bottom button span{display:none}
  .topbar{gap:6px;padding:14px 16px 0}
  .topbar-link{width:36px;height:36px}
  .topbar-link .icon{width:18px;height:18px}
  .language select{height:36px;min-width:70px;font-size:15px}
  .content{padding:6px 15px 30px}
  h1{font-size:32px;margin-bottom:22px}
  h2{font-size:24px}
  .section-head{margin-bottom:13px}
  .search{width:100%;max-width:none}
  th:first-child{padding-left:12px;width:60%}
  th:last-child{width:42px}
  td{height:59px}
  .project-open{padding-left:8px;gap:7px;font-size:15px}
  .project-open .file-icon{width:31px;height:32px}
  .file-icon .icon{width:19px;height:19px}
  .more{width:36px}
  .row-menu{top:49px}
  .menu-library-grid{grid-template-columns:repeat(auto-fill,minmax(117px,1fr));gap:8px}
  .menu-library-controls .search{order:-1;flex-basis:100%}
  .menu-library-controls select{width:auto;max-width:100%}
  .menu-library .editor-part-details{padding:8px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important}}

/* BrickLab Academy: optional lessons, with non-blocking coaching during editing. */
.tutorial-offer{display:flex;align-items:center;gap:17px;margin-bottom:25px;padding:18px 20px;border:1px solid #725b35;border-radius:13px;background:linear-gradient(110deg,#332a21,#22252b 65%);box-shadow:0 9px 25px #0004}
.tutorial-offer-icon{display:grid;place-items:center;flex:none;width:48px;height:48px;border-radius:12px;color:#ffbe4b;background:#413323}
.tutorial-offer-copy{min-width:0;flex:1}
.tutorial-offer-copy h2{font-size:20px;letter-spacing:-.02em}
.tutorial-offer-copy p{margin:5px 0 0;color:#bec4ce;font-size:13px}
.tutorial-offer-actions{display:flex;align-items:center;gap:10px}
.tutorial-offer-later{padding:8px 0;border:0;background:none;font-size:13px;color:#bbc1cc}
.tutorial-offer-later:hover{color:#fff}
.tutorial-picker{width:min(720px,calc(100% - 24px));padding:0;max-height:88dvh;overflow-y:auto;border:1px solid #50545e;border-radius:17px;box-shadow:0 30px 90px #000c}
.tutorial-picker-head{padding:25px 27px 21px;background:linear-gradient(115deg,#342b22,#20232b);border-bottom:1px solid #454850}
.tutorial-picker-label{color:#fbc66c;letter-spacing:.14em;font-size:11px;font-weight:750}
.tutorial-picker-head h2{margin-top:6px;font-size:27px}
.tutorial-picker-head p{margin:7px 0 0;color:#c1c6d1;font-size:13px}
.tutorial-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:22px}
.tutorial-choice{display:flex;align-items:flex-start;flex-direction:column;min-width:0;min-height:210px;gap:10px;padding:18px;border:1px solid #484d56;border-radius:13px;background:#292d34;text-align:left}
.tutorial-choice:hover,.tutorial-choice:focus-visible{border-color:#ffbf4b;background:#343331;transform:translateY(-2px)}
.tutorial-choice-featured{border-color:#916b34;background:linear-gradient(150deg,#3b3023,#292c34)}
.tutorial-choice-symbol{font-size:28px;line-height:1}
.tutorial-choice strong{font-size:17px}
.tutorial-choice small{color:#ffcf7c;font-size:12px}
.tutorial-choice>span:last-child{color:#c1c6d0;font-size:12px;line-height:1.45}
.tutorial-picker-footer{display:flex;justify-content:flex-end;padding:0 22px 20px}
.tutorial-coach{position:fixed;top:80px;right:20px;z-index:55;width:min(340px,calc(100vw - 24px));padding:17px 18px;border:1px solid #8d6b35;border-radius:13px;background:#202229f5;color:#f6f6f7;box-shadow:0 14px 46px #0009;pointer-events:auto;backdrop-filter:blur(12px)}
.tutorial-eyebrow{margin:0 0 6px;color:#ffbf4d;font-size:10px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}
.tutorial-coach h2{margin:0;font-size:19px;letter-spacing:-.03em;line-height:1.3}
.tutorial-description{margin:9px 0 12px;font-size:13px;color:#d3d7df;line-height:1.55}
.tutorial-progress{display:flex;gap:5px;margin:0 0 9px}
.tutorial-progress span{height:5px;flex:1;border-radius:5px;background:#454953}
.tutorial-progress .tutorial-progress-done{background:#ffb01b}
.tutorial-help{padding:10px 12px;margin:11px 0;border-radius:8px;background:#343437;color:#f6db9c;font-size:12px;line-height:1.5}
.tutorial-footer{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:9px;margin-top:12px}
.tutorial-footer button{border:0;cursor:pointer;font-size:12px}
.tutorial-quiet{background:none;color:#c4c8d1;padding:6px 0}
.tutorial-quiet:hover{color:#fff}
.tutorial-link{background:none;color:#ffd284;padding:6px 0}
.tutorial-link:hover{text-decoration:underline}
.tutorial-next{padding:9px 11px!important;border-radius:7px;background:#ffb01b;color:#17130c;font-weight:750}
.tutorial-context-tip{position:fixed;z-index:54;left:20px;bottom:22px;width:min(320px,calc(100vw - 40px));padding:15px 38px 15px 16px;border:1px solid #645338;border-radius:11px;background:#25262beF;box-shadow:0 12px 38px #0008;color:#edf0f6;font-size:13px;pointer-events:auto}
.tutorial-context-tip strong{color:#ffcf77;font-size:14px}
.tutorial-context-tip p{margin:6px 0 0;color:#c8ced8;font-size:12px;line-height:1.5}
.tutorial-context-tip button{position:absolute;right:10px;top:8px;border:0;background:none;color:#c6ccd6;font-size:22px}
.tutorial-highlight{outline:2px solid #ffbd4e!important;outline-offset:3px;box-shadow:0 0 0 6px #ffc05233!important;animation:tutorial-spotlight 1.9s ease-in-out infinite}
@keyframes tutorial-spotlight{0%,100%{outline-color:#ffbd4e;box-shadow:0 0 0 5px #ffc05233}50%{outline-color:#fff0b1;box-shadow:0 0 0 9px #ffc05222}}
@media(prefers-reduced-motion:reduce){.tutorial-highlight{animation:none}}
@media(max-width:950px){.tutorial-offer{flex-wrap:wrap}.tutorial-offer-actions{width:100%}}
@media(max-width:620px){.tutorial-offer{margin-bottom:17px;padding:14px;gap:10px}.tutorial-offer-copy h2{font-size:17px}.tutorial-choices{grid-template-columns:1fr;padding:13px}.tutorial-choice{min-height:auto;gap:7px;padding:14px}.tutorial-picker-head{padding:18px}.tutorial-coach{top:auto;bottom:12px;right:12px;padding:13px 14px}.tutorial-coach h2{font-size:17px}}

/* External links are secondary actions, below editor settings. */
.sidebar-external{display:flex;gap:6px;align-items:center;padding:7px 10px 0;flex-wrap:wrap}
.sidebar-external-link{display:grid;place-items:center;width:38px;height:38px;border:1px solid transparent;border-radius:7px;color:var(--muted)}
.sidebar-external-link:hover,.sidebar-external-link:focus-visible{background:var(--hover);color:var(--gold);border-color:var(--line)}
.sidebar-external-link .icon{width:20px;height:20px}
.sidebar{overflow-y:auto}.sidebar-bottom{flex:none}
.topbar-tools{position:relative}
.notification-trigger{position:relative;background:transparent;color:inherit;padding:0}
.notification-trigger[aria-expanded=true]{color:var(--gold);border-color:var(--accent);background:var(--hover)}
.notification-count{position:absolute;right:-6px;top:-6px;min-width:18px;height:18px;padding:0 4px;border-radius:12px;background:#e58b22;color:#17130d;font-size:10px;font-weight:800;line-height:18px;border:1px solid #292014;text-align:center;font-variant-numeric:tabular-nums}
.notification-popover{position:absolute;z-index:45;top:calc(100% + 10px);right:0;width:min(380px,calc(100vw - 32px));max-height:min(490px,70dvh);display:flex;flex-direction:column;overflow:hidden;background:#24262c;border:1px solid #454952;border-radius:12px;box-shadow:0 16px 40px #0009}
.notification-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 15px;border-bottom:1px solid #3c3f46;flex-wrap:wrap}
.notification-heading h2{font-size:16px;letter-spacing:-.02em}
.notification-action{border:0;background:none;color:var(--gold);font-size:12px;padding:4px 2px;text-align:left}
.notification-action:disabled{color:var(--muted);opacity:.55;cursor:default}
.notification-action:not(:disabled):hover{text-decoration:underline}
.notification-list{min-height:0;overflow:auto;overscroll-behavior:contain}
.notification-empty{padding:22px 16px;text-align:center;color:var(--muted);font-size:13px}
.notification-item{display:flex;align-items:flex-start;gap:10px;padding:12px 14px;border-bottom:1px solid #3b3d43}
.notification-item.unread{background:#352e24}
.notification-symbol{display:grid;place-items:center;width:32px;height:32px;flex:none;background:#38332b;color:var(--gold);border-radius:8px}
.notification-symbol .icon{width:18px;height:18px}
.notification-body{min-width:0;display:grid;gap:4px;flex:1;overflow-wrap:anywhere;font-size:13px}
.notification-body time,.notification-body small{font-size:11px;color:var(--muted);white-space:normal}
.notification-dot{width:7px;height:7px;border-radius:50%;background:var(--gold);flex:none;margin-top:6px}
.notification-popover>.notification-action{padding:10px 14px}
.notification-footer{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;flex:none;border:0;border-top:1px solid #454952;background:#292c33;color:var(--gold);font-size:13px;font-weight:650}
.notification-footer:hover{background:#38332b}.notification-footer .icon{width:16px;height:16px;transform:rotate(-90deg)}
@media(max-height:820px) and (min-width:621px){.sidebar-bottom{margin-bottom:16px}.navigation{margin-top:clamp(24px,8vh,65px)}}
@media(max-width:620px){.sidebar{overflow:visible}.sidebar-external{padding:3px 0 0;gap:2px;justify-content:flex-end}.sidebar-external-link{width:30px;height:30px}.sidebar-external-link .icon{width:16px;height:16px}}

/* Community shares the workspace shell and palette. */
.community-panel{display:grid;gap:16px;max-width:1400px;margin:auto}.community-panel>h2{font-size:22px}
.community-heading,.community-actions,.community-meta{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.community-heading{justify-content:space-between}
.community-actions [aria-pressed=true]{background:#3a3020;border-color:#a57d3a;color:var(--gold)}
.community-filters{display:grid;grid-template-columns:minmax(130px,2fr) minmax(130px,1fr) minmax(130px,1fr) auto;gap:10px}
.community-filters input,.community-filters select{min-width:0;width:100%;padding:10px;border:1px solid #50545b;background:#22252b;border-radius:8px}
.community-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,260px),1fr));gap:16px}
.community-card{min-width:0;overflow:hidden;border:1px solid #444750;border-radius:12px;background:#222429;display:grid;align-content:start}
.community-art{display:grid;place-items:center;align-content:center;gap:8px;aspect-ratio:12/7;background:radial-gradient(#414854,#23272d 75%);min-width:0;overflow:hidden;padding:10px}
.community-art.large{max-height:480px;aspect-ratio:12/6}.community-art>.icon{width:40px;height:40px;color:#9199a7}.community-art img{width:100%;height:100%;object-fit:contain}.community-preview-button{font-size:12px;min-height:30px}
.community-card-body{padding:14px;display:grid;gap:10px;min-width:0}.community-title{font-size:18px;font-weight:700;overflow-wrap:anywhere}.community-title:hover,.community-author:hover{color:var(--gold)}
.community-meta{font-size:12px;color:var(--muted);gap:6px}.community-meta span{padding:3px 6px;border-radius:5px;background:#30333b}.community-author{color:var(--gold)}
.community-description{white-space:pre-wrap;overflow-wrap:anywhere;color:#c0c3cb;font-size:13px}.community-grid .community-description{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.community-card .workspace-action{font-size:12px;min-height:36px}.community-detail h2{font-size:26px}.community-detail .community-card-body{padding:20px}.community-builder{display:flex;align-items:flex-start;padding:14px;gap:10px}.community-builder .community-card-body{padding:0;flex:1}
@media(max-width:850px){.community-filters{grid-template-columns:1fr 1fr}.community-filters input{grid-column:1/-1}}
@media(max-height:920px) and (min-width:621px){.navigation{margin-top:clamp(20px,7vh,60px)}}

.community-viewer-dialog{box-sizing:border-box;width:min(1100px,calc(100vw - 28px));max-width:none;max-height:calc(100dvh - 28px);padding:14px;color:var(--ink);background:#22252b;border:1px solid #555963;border-radius:12px;overflow:auto}
.community-viewer-dialog[open]{display:grid;gap:10px;grid-template-rows:auto minmax(180px,1fr) auto auto}
.community-viewer-dialog::backdrop{background:#000b}
.community-viewer-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px}
.community-viewer-toolbar h2{font-size:18px;overflow-wrap:anywhere}.community-viewer-controls{display:flex;gap:6px;flex-wrap:wrap}
.community-viewer-controls .workspace-action{min-height:34px;font-size:12px;padding:6px 10px}
.community-viewer-stage{height:min(58dvh,620px);min-height:180px;position:relative;overflow:hidden;border-radius:8px;background:radial-gradient(ellipse,#414854,#1e2229 80%)}
.community-viewer-stage canvas{display:block;width:100%;height:100%;touch-action:none;cursor:grab}.community-viewer-stage canvas:active{cursor:grabbing}
.community-viewer-status,.community-viewer-help{font-size:12px;color:var(--muted)}
.community-viewer-dialog:fullscreen,.community-viewer-dialog.expanded{width:100vw;height:100dvh;max-width:none;max-height:none;border:0;border-radius:0;margin:0}
.community-viewer-dialog:fullscreen .community-viewer-stage,.community-viewer-dialog.expanded .community-viewer-stage{height:100%;min-height:0}
@media(max-width:620px){.community-viewer-dialog{padding:10px}.community-viewer-stage{height:48dvh}.community-viewer-toolbar h2{font-size:15px}}

.community-public-workshop{display:grid;gap:18px;padding:16px;border-radius:14px;min-width:0}
.community-public-workshop>h2{font-size:20px}
.community-builder-detail{display:block;padding:0;gap:0}
.community-profile-cover{position:relative;isolation:isolate;aspect-ratio:4/1;min-height:110px;max-height:280px;display:flex;align-items:flex-start;padding:18px;overflow:hidden;color:#e3eaf3;font-size:12px;letter-spacing:.16em;font-weight:700;background:#2c3540}
.community-profile-cover.cover-blueprint{background-color:#233a50;background-image:linear-gradient(#99b4c222 1px,transparent 1px),linear-gradient(90deg,#99b4c222 1px,transparent 1px);background-size:22px 22px}
.community-profile-cover.cover-graphite{background:linear-gradient(135deg,#4b5059,#21232a)}
.community-profile-cover.cover-amber{background:linear-gradient(135deg,#8c5b20,#302b27)}
.community-profile-cover img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.community-profile-identity{position:relative;display:flex;align-items:flex-start;gap:18px;padding:0 20px 18px}
.community-profile-avatar{overflow:hidden;flex:none}.community-profile-avatar img{display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit}
.community-builder-detail .community-profile-avatar{margin-top:-30px;width:90px;height:90px;font-size:27px;border:4px solid #222429;z-index:1}
.community-builder-detail .community-card-body{padding:15px 0 0;min-width:0}
.community-builder-detail .community-card-body h2{font-size:25px;overflow-wrap:anywhere}
.community-author{display:inline-flex;align-items:center;gap:5px;overflow-wrap:anywhere}
.community-author-avatar{width:23px;height:23px;border-radius:5px;object-fit:cover}
@media(max-width:620px){.community-public-workshop{padding:8px}.community-profile-identity{padding:0 12px 12px;gap:10px}.community-builder-detail .community-profile-avatar{width:68px;height:68px;margin-top:-20px}.community-builder-detail .community-card-body h2{font-size:20px}}
