/* Cloud account design preview. Uses the existing BrickLab palette. */
.account-topbar{display:flex;align-items:center;gap:8px;min-height:38px;padding:7px 11px;border:1px solid #555760;border-radius:8px;background:#25272c;font-size:13px;font-weight:650;white-space:nowrap}
.account-topbar:hover,.account-topbar[aria-current=page]{border-color:var(--accent);color:var(--gold)}
.account-topbar .icon{width:18px;height:18px}.project-card-cloud{flex:none;padding-inline:9px!important}.project-card-cloud .icon{width:18px;height:18px}
.account-panel{max-width:1100px;margin:0 auto}.main:has(.account-panel:not([hidden])) #page-title{margin-bottom:24px}
.account-panel h2{font-size:22px;letter-spacing:-.035em;overflow-wrap:anywhere}
.account-panel p{line-height:1.5}.account-muted{color:var(--muted);font-size:13px}
.account-notice{display:flex;align-items:center;gap:10px;margin:0 0 18px;padding:12px 16px;border:1px solid #635332;border-radius:10px;color:#e7cca0;background:#30291d;font-size:13px}
.account-notice .icon{width:22px;height:22px;color:#ffbd43}
.account-auth{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);overflow:hidden;border:1px solid #454750;border-radius:16px;background:#222429}
.account-auth-hero{position:relative;isolation:isolate;display:flex;flex-direction:column;gap:16px;min-height:440px;padding:32px;overflow:hidden;background:radial-gradient(ellipse at 65% 72%,#4c4235 0%,#292b35 46%,#1d2027 90%)}
.account-auth-hero::before{content:"";position:absolute;inset:45% 0 0;z-index:-1;background:repeating-linear-gradient(0deg,transparent 0 23px,#c6b99e15 23px 24px),repeating-linear-gradient(90deg,transparent 0 36px,#c6b99e15 36px 37px);mask-image:linear-gradient(transparent,#000)}
.account-brand{display:flex;align-items:center;gap:9px;color:var(--gold);font-size:11px;font-weight:800;letter-spacing:.13em}.account-brand .icon{width:22px;height:22px}
.account-auth-hero h2{font-size:clamp(28px,3.2vw,47px);max-width:12ch;line-height:1.08}.account-auth-hero p{max-width:34ch;color:#c0c5d0;font-size:14px}.account-hero-art{display:block;width:100%;min-height:0;object-fit:contain;margin:auto 0 0;filter:drop-shadow(0 18px 20px #080b13a0)}
.account-auth-form{display:flex;flex-direction:column;gap:15px;padding:clamp(20px,3vw,36px);align-self:center;min-width:0}
.account-tabs{display:flex;gap:5px;padding:4px;border-radius:9px;background:#181a1f;border:1px solid #3e4047}
.account-tabs button{flex:1;border-color:transparent;min-height:36px;background:none;color:#babec8;font-size:13px}
.account-tabs button[aria-pressed=true]{background:#3b3020;color:#ffd17c;border-color:#705631}
.account-field{display:grid;gap:6px;font-size:13px;font-weight:600;min-width:0}
.account-field input,.account-field select{display:block;min-height:42px;width:100%;min-width:0;border:1px solid #4a4e58;border-radius:8px;background:#1b1d23;padding:9px 11px;color:#e9ebf0;font:inherit}
.account-field input[readonly]{color:#a7acb6}.account-field input::placeholder{color:#8d929e}
.account-panel button:disabled,.account-panel select:disabled{opacity:.48;cursor:not-allowed}
.account-dashboard-head,.account-detail-head,.account-identity{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap}
.account-dashboard-head{margin:24px 0 18px}.account-identity{justify-content:flex-start}.account-avatar{display:grid;place-items:center;width:48px;height:48px;border:1px solid #806030;border-radius:12px;background:#47351f;color:#ffc76b;font-size:19px;font-weight:800;flex:none}
.account-dashboard-tabs{width:max-content;max-width:100%;margin-bottom:18px}
.account-workspace{display:grid;grid-template-columns:minmax(200px,.85fr) minmax(0,2fr);align-items:start;gap:14px}
.account-card{display:grid;gap:12px;padding:18px;border:1px solid #41444d;border-radius:12px;background:#22242a;min-width:0}.account-card h2{font-size:18px}
.account-build-list{max-height:68vh;overflow:auto}.account-build{display:flex;align-items:center;gap:10px;width:100%;min-width:0;padding:12px 10px;border:1px solid #41444d;border-radius:9px;background:#1b1d22;text-align:left}
.account-build:hover,.account-build[aria-pressed=true]{border-color:#a2783c;background:#342b1f}.account-build>.icon{color:#e6b45e;width:22px;height:22px}
.account-build-label{display:grid;min-width:0;gap:4px}.account-build-label strong{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:13px}.account-build-label small,.account-revision small,.account-stats small{display:block;color:#b0b5c0;font-size:11px}
.account-detail{display:grid;gap:14px;min-width:0}.account-eyebrow{font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:#ffca70;margin-bottom:5px}
.account-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.account-stats>div{padding:10px;border:1px solid #3d4149;border-radius:8px;background:#1b1d22;overflow-wrap:anywhere}.account-stats strong{display:block;margin-top:5px;font-size:14px}
.account-result{padding:9px 11px;border-left:3px solid var(--gold);background:#302a20;color:#f1dbb4;font-size:13px}
.account-revision{display:flex;align-items:center;gap:9px;padding:11px 0;border-top:1px solid #3b3d45;flex-wrap:wrap}.account-revision>.icon{width:20px;height:20px;color:#b8bec9}.account-revision strong{font-size:13px}.account-revision-actions{display:flex;gap:6px;margin-left:auto;flex-wrap:wrap}.account-revision-actions button{font-size:12px;min-height:34px;padding:6px 9px}
.account-empty,.account-blank{padding:26px 12px;text-align:center;color:#b7bbc5}.account-blank{justify-items:center}.account-blank .icon{width:36px;height:36px}
.account-profile{max-width:540px}.account-profile-row{border-top:1px solid #44464d;padding-top:13px;display:grid;gap:5px}
@media(max-width:800px){.account-auth{grid-template-columns:1fr}.account-auth-hero{min-height:200px;padding:24px;gap:10px}.account-hero-art{position:absolute;right:0;bottom:0;width:49%;opacity:.65;z-index:-1}.account-workspace{grid-template-columns:1fr}.account-build-list{max-height:260px}}
@media(max-width:620px){.account-topbar{padding:7px}.account-topbar span{display:none}.account-stats{grid-template-columns:1fr 1fr}.account-stats>div:last-child{grid-column:1/-1}.account-notice{font-size:12px}.account-card{padding:13px}.account-revision-actions{margin-left:0;width:100%}.project-card-actions{flex-wrap:wrap}.project-card-actions .project-card-open{min-width:90px}}

/* Four card actions must also fit narrow desktop grid columns. */
.project-card-actions:has(.project-card-cloud){flex-wrap:wrap}
.project-card-actions:has(.project-card-cloud) .project-card-open{min-width:82px}

/* BrickLab Workshop — engineering dashboard and portfolio */
.account-panel{max-width:1500px}
.workshop-layout{display:grid;grid-template-columns:minmax(190px,224px) minmax(0,1fr);gap:20px;align-items:start}
.workshop-nav{position:sticky;top:16px;display:grid;gap:4px;padding:8px;border:1px solid #3a3d44;background:#202228;border-radius:12px}
.workshop-nav .workspace-action{justify-content:flex-start;min-height:40px;gap:9px;border-color:transparent;background:transparent;color:#c3c7d0;font-size:13px;font-weight:550;text-align:left}
.workshop-nav .workspace-action:hover{background:#30323a;color:#fff}
.workshop-nav .workspace-action[aria-pressed=true]{border-color:#725530;background:#3a2d1e;color:#ffd28a}
.workshop-nav .icon{width:17px;height:17px}
.workshop-unread{margin-left:auto;background:var(--accent);color:#21180a;border-radius:10px;padding:0 5px}
.workshop-content{display:grid;gap:15px;min-width:0}
.workshop-section-title{font-size:26px!important;line-height:1.25;margin:0 0 3px}
.workshop-hero{overflow:hidden;border:1px solid #464a54;border-radius:15px;background:#22252c;min-width:0}
.workshop-cover{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;min-height:138px;padding:20px;background:radial-gradient(ellipse at 75% 15%,#40556e,#242c39 60%,#20242b);position:relative;isolation:isolate}
.workshop-cover::before{content:"";position:absolute;inset:0;z-index:-1;background:repeating-linear-gradient(0deg,transparent 0 23px,#c2ddff17 23px 24px),repeating-linear-gradient(90deg,transparent 0 23px,#c2ddff17 23px 24px);mask-image:linear-gradient(120deg,#000,transparent 90%)}
.workshop-cover::after{content:"";position:absolute;inset:8px 10% 10px auto;width:42%;z-index:-1;background:url("../../assets/examples/5-plus-r-gearbox.webp") center/contain no-repeat;opacity:.64}
.cover-graphite .workshop-cover{background:radial-gradient(ellipse at 80% 20%,#4b5058,#202328 70%)}
.cover-amber .workshop-cover{background:radial-gradient(ellipse at 80% 20%,#6b4826,#28241f 70%)}
.workshop-emblem{display:flex;align-items:center;gap:9px;color:#ffca74;font-size:11px;font-weight:800;letter-spacing:.16em}.workshop-emblem .icon{width:22px;height:22px}
.workshop-hero-inner{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:0 22px 12px}
.workshop-identity{display:flex;align-items:center;gap:14px;min-width:0}
.workshop-identity>div:last-child{min-width:0;padding-top:12px;display:grid;gap:5px}
.workshop-identity h2{font-size:clamp(22px,2.8vw,31px)}
.workshop-avatar{display:grid;place-items:center;width:79px;height:79px;border:4px solid #22252c;border-radius:17px;background:linear-gradient(145deg,#7b582a,#3d2b1d);color:#ffd493;font-size:25px;font-weight:800;flex:none;margin-top:-18px;z-index:1}
.workshop-hero-actions{display:flex;gap:8px;padding-top:12px}.workshop-bio{padding:0 22px 14px;color:#d0d3da;overflow-wrap:anywhere;font-size:14px}
.workshop-hero>.workshop-metric-grid{margin:0 18px 18px}.workshop-public-note{padding:0 22px 16px}
.workshop-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.workshop-metric-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,115px),1fr));gap:9px}
.workshop-metric{display:grid;gap:6px;border:1px solid #393e48;background:#1b1e24;border-radius:9px;padding:12px;overflow-wrap:anywhere}
.workshop-metric span,.workshop-metric small{font-size:11px;color:#aeb4c1}.workshop-metric strong{font-size:21px;letter-spacing:-.04em;font-variant-numeric:tabular-nums}
.workshop-card{align-content:start}.workshop-big{font-size:30px;letter-spacing:-.05em;font-variant-numeric:tabular-nums}
.workshop-between{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}.workshop-between>span:first-child{overflow-wrap:anywhere;min-width:0}
.workshop-bar{height:7px;background:#3a3e47;border-radius:8px;overflow:hidden;width:100%}.workshop-bar>span{display:block;height:100%;background:linear-gradient(90deg,#bd7d1c,#ffbf4c);border-radius:8px}
.workshop-tag{display:inline-flex;align-items:center;max-width:100%;width:max-content;overflow-wrap:anywhere;border:1px solid #484d57;padding:4px 7px;border-radius:6px;background:#292c33;color:#c5cad3;font-size:11px;font-weight:650;line-height:1.35}
.workshop-tag.gold{background:#392d1e;border-color:#795a32;color:#ffd28b}.workshop-tag.good{background:#243b32;border-color:#456752;color:#a1dab5}.workshop-tag.bad{background:#3d282b;border-color:#74474c;color:#f2aaa8}
.workshop-shortcuts{display:flex;gap:8px;flex-wrap:wrap}
.workshop-rank-row{padding:9px 0;border-top:1px solid #383b43;font-size:13px}
.workshop-radar{max-height:220px;width:100%;color:#bfc5cf;fill:currentColor;font-size:11px}.radar-grid{stroke:#515867;stroke-width:1;fill:none}.radar-value{fill:#ffb01b35;stroke:#ffbd4e;stroke-width:2}
.workshop-skill{display:grid;grid-template-columns:minmax(105px,1fr) minmax(50px,1fr) 18px;gap:8px;align-items:center;font-size:12px}
.workshop-badges{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,168px),1fr));gap:12px}
.workshop-badge{--rarity:#a5a9b3;display:grid;justify-items:center;align-content:start;text-align:center;gap:8px;padding:18px 11px;border:1px solid #3c4048;background:#22252b;border-radius:12px;min-width:0}
.workshop-badge.rarity-uncommon{--rarity:#76b892}.workshop-badge.rarity-rare{--rarity:#81a7ec}.workshop-badge.rarity-epic{--rarity:#b493db}.workshop-badge.rarity-legendary{--rarity:#f3be65}.workshop-badge.rarity-unique{--rarity:#eb887e}
.workshop-medal{display:grid;place-items:center;position:relative;isolation:isolate;width:62px;height:68px;color:var(--rarity)}
.workshop-medal::before,.workshop-medal::after{content:"";position:absolute;inset:0;z-index:-1;clip-path:polygon(50% 0,96% 25%,96% 75%,50% 100%,4% 75%,4% 25%);background:currentColor}
.workshop-medal::after{inset:2px;background:#252830}.workshop-medal .icon{width:31px;height:31px}
.workshop-badge:not(.earned) .workshop-medal{opacity:.58}.workshop-badge.earned{border-color:var(--rarity)}.workshop-badge .workshop-tag{color:var(--rarity)}.workshop-badge strong{font-size:14px}.workshop-badge p{font-size:12px}.workshop-badge small{font-size:11px;color:var(--muted)}
.workshop-empty{padding:32px 16px;border:1px dashed #444a53;border-radius:9px;color:#b3b9c4;text-align:center}
.workshop-form{display:grid;gap:12px;max-width:660px}.workshop-form>button{justify-self:start}
.workshop-form textarea,.workshop-shortcuts select,.workshop-rank-row select,.account-build-list>select{max-width:100%;min-width:0;border:1px solid #4a4e58;border-radius:8px;background:#1b1d23;padding:9px 11px;color:#e9ebf0;font:inherit;font-size:13px}
.workshop-form textarea{resize:vertical;width:100%;min-height:76px}.workshop-fieldset{border:1px solid #454a53;border-radius:8px;min-width:0;padding:12px}.workshop-fieldset legend{color:#c5c9d1;font-size:13px}.workshop-check{display:flex;align-items:center;gap:8px;padding:5px 0;font-size:13px;overflow-wrap:anywhere}.workshop-check input{accent-color:var(--accent);width:16px;height:16px;flex:none}
.workshop-event{display:flex;align-items:center;gap:12px;border-top:1px solid #3d4149;padding:12px 0;overflow-wrap:anywhere}.workshop-event>.icon{width:23px;height:23px;color:var(--gold)}.workshop-event>div{flex:1;min-width:0}.workshop-event strong{font-size:14px}
.workshop-showcase-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.workshop-build-tile{display:grid;gap:7px;min-width:0;text-align:left;padding:10px;border:1px solid #444853;border-radius:9px;background:#1b1e24}.workshop-build-tile:hover{border-color:var(--accent)}.workshop-build-tile strong{overflow-wrap:anywhere;font-size:13px}.workshop-build-graphic{display:grid;place-items:center;aspect-ratio:1.8;background:radial-gradient(#394354,#272c35);border-radius:6px;color:#b6c2d4}.workshop-build-graphic .icon{width:35px;height:35px}
.workshop-content .account-workspace{grid-template-columns:minmax(145px,.7fr) minmax(0,1.5fr)}
@media(max-width:1120px){.workshop-layout{grid-template-columns:minmax(165px,185px) minmax(0,1fr);gap:12px}.workshop-content .account-workspace{grid-template-columns:1fr}.workshop-content .account-build-list{max-height:260px}}
@media(max-width:850px){.workshop-layout{grid-template-columns:1fr}.workshop-nav{position:static;display:flex;overflow:auto;gap:4px;max-width:100%;scrollbar-width:thin}.workshop-nav .workspace-action{flex:none;white-space:nowrap}.workshop-grid{grid-template-columns:1fr}.workshop-cover{min-height:110px}}
@media(max-width:460px){.workshop-hero-inner{padding-inline:12px}.workshop-bio{padding-inline:12px}.workshop-hero>.workshop-metric-grid{margin:0 10px 10px}.workshop-metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.workshop-showcase-grid{grid-template-columns:1fr}.workshop-badges{grid-template-columns:repeat(2,minmax(0,1fr))}.workshop-avatar{width:58px;height:58px;font-size:20px}}

.profile-avatar-image{width:100%;height:100%;object-fit:cover;border-radius:inherit;display:block}.profile-cover-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-1}.workshop-cover:has(.profile-cover-image)::after,.workshop-cover:has(.profile-cover-image)::before{display:none}.profile-media-preview{display:block;max-width:100%;object-fit:cover;border-radius:8px}.profile-media-preview.avatar{width:100px;height:100px}.profile-media-preview.cover{width:100%;aspect-ratio:4/1}.cosmetic-preview{height:90px;border-radius:8px}.cosmetic-default.cosmetic-preview{background:#262930}.cosmetic-first-build{background:radial-gradient(ellipse at 80% 0%,#58421f88,transparent 70%),repeating-linear-gradient(45deg,#332c21 0 1px,#24262b 1px 24px)}.cosmetic-carbon{background:repeating-linear-gradient(135deg,#303238 0 3px,#202227 3px 7px)}.cosmetic-neon{background:radial-gradient(ellipse at 10% 0%,#1a567b 0,transparent 45%),radial-gradient(ellipse at 90% 90%,#67356d 0,transparent 45%),#20232b}.workshop-layout:not(.cosmetic-default){padding:14px;border-radius:14px}
