:root{color-scheme:dark;--bg:#0d0b09;--surface:#15110e;--surface-2:#1a1511;--surface-3:#211a15;--text:#f3eee7;--muted:#a79b90;--subtle:#74695f;--line:rgba(231,205,184,.11);--line-strong:rgba(231,205,184,.2);--accent:#d58d68;--accent-2:#ac6848;--accent-soft:rgba(213,141,104,.13);--good:#9fbd8d;--warn:#d8aa68;--bad:#d78072;--radius:18px;--shadow:0 24px 80px rgba(0,0,0,.3)}
*{box-sizing:border-box;scrollbar-width:thin;scrollbar-color:#34303e transparent}
html{min-height:100%;background:var(--bg);scroll-behavior:smooth}
body{min-height:100%;margin:0;background:var(--bg);color:var(--text);font:400 14px/1.5 Inter,system-ui,sans-serif;-webkit-font-smoothing:antialiased;overflow-x:hidden}
button,input,textarea,select{font:inherit}button,a{color:inherit}button{cursor:pointer}a{text-decoration:none}
.ambient{position:fixed;inset:0;z-index:-2;overflow:hidden;pointer-events:none;background:linear-gradient(180deg,#0c0a11 0,#0b0910 55%,#09080c 100%)}
.ambient i{position:absolute;border-radius:50%;filter:blur(1px);opacity:.8}.ambient i:first-child{width:720px;height:420px;left:-230px;top:-260px;background:radial-gradient(circle,rgba(99,67,170,.14),transparent 68%)}.ambient i:nth-child(2){width:740px;height:440px;right:-300px;top:24%;background:radial-gradient(circle,rgba(92,57,147,.11),transparent 68%)}.ambient i:last-child{width:900px;height:300px;left:15%;bottom:-270px;background:radial-gradient(circle,rgba(149,116,208,.08),transparent 68%)}
.topbar{position:sticky;top:0;z-index:100;display:grid;grid-template-columns:auto minmax(240px,620px) auto;align-items:center;gap:28px;width:100%;height:76px;padding:0 max(24px,calc((100vw - 1440px)/2));border-bottom:1px solid var(--line);background:rgba(11,9,16,.78);backdrop-filter:blur(20px) saturate(130%);-webkit-backdrop-filter:blur(20px) saturate(130%)}
.brand{display:flex;align-items:center;gap:11px;min-width:max-content}.brand-mark{width:38px;height:38px;display:grid;place-items:center;border:1px solid var(--line-strong);border-radius:12px;background:var(--surface-2);color:#c4acee}.brand-mark svg{width:23px}.brand b{display:block;font-size:14px;line-height:1.1;font-weight:650}.brand small{display:block;margin-top:4px;color:var(--muted);font-size:10px;letter-spacing:.02em}
.global-search{height:42px;display:flex;align-items:center;gap:10px;padding:0 12px;border:1px solid var(--line);border-radius:13px;background:rgba(23,20,31,.74);transition:border .2s,background .2s}.global-search:focus-within{border-color:rgba(180,154,241,.42);background:var(--surface-2)}.global-search svg{width:18px;stroke:var(--subtle);stroke-width:1.8;stroke-linecap:round}.global-search input{width:100%;border:0;outline:0;background:transparent;color:var(--text);font-size:13px}.global-search input::placeholder{color:#756f81}.global-search kbd{padding:3px 7px;border:1px solid var(--line);border-radius:6px;color:var(--subtle);font:500 10px Inter}
.top-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px}.language{display:flex;padding:3px;border:1px solid var(--line);border-radius:10px;background:var(--surface)}.language button{border:0;border-radius:7px;padding:6px 7px;background:transparent;color:var(--subtle);font-size:10px;font-weight:650}.language button.active{background:var(--surface-3);color:var(--text)}
.ghost-button,.account-button,.solid-button,.soft-button,.danger-button{min-height:40px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 14px;border:1px solid var(--line);border-radius:12px;background:rgba(19,17,25,.75);font-weight:550;font-size:12px;transition:transform .18s,border .18s,background .18s}.ghost-button:hover,.account-button:hover,.soft-button:hover{border-color:var(--line-strong);background:var(--surface-2)}.ghost-button svg{width:16px;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.account-button{padding-left:8px}.avatar{width:26px;height:26px;display:grid;place-items:center;border-radius:8px;background:var(--accent-soft);color:#d8c8f6;font-size:11px;font-weight:700}.solid-button{border-color:transparent;background:var(--accent);color:#17101f}.solid-button:hover{background:#c0a7f5;transform:translateY(-1px)}.soft-button{background:var(--accent-soft);border-color:rgba(180,154,241,.22);color:#d6c6f4}.danger-button{background:rgba(233,143,155,.08);border-color:rgba(233,143,155,.18);color:#eba4ae}
#app{width:min(1440px,100%);min-height:calc(100vh - 76px);margin:0 auto;padding:34px 24px 80px;outline:0}
.discover-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:28px;align-items:end;padding:34px 0 30px}.eyebrow{margin:0 0 12px;color:#a58fcf;font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.14em}.discover-head h1,.page-title{max-width:760px;margin:0;font-size:clamp(40px,5.5vw,74px);font-weight:550;line-height:.98;letter-spacing:-.065em}.discover-head h1 span{color:#a98ddd}.lead{max-width:650px;margin:20px 0 0;color:var(--muted);font-size:15px;line-height:1.65}.headline-stats{display:grid;grid-template-columns:repeat(3,1fr);min-width:350px;border:1px solid var(--line);border-radius:16px;background:rgba(18,15,24,.6);overflow:hidden}.headline-stats div{padding:17px 20px;border-left:1px solid var(--line)}.headline-stats div:first-child{border-left:0}.headline-stats b{display:block;font-size:19px;font-weight:550}.headline-stats span{display:block;margin-top:2px;color:var(--subtle);font-size:10px;text-transform:uppercase;letter-spacing:.08em}
.market-layout{display:grid;grid-template-columns:230px minmax(0,1fr);gap:30px}.filters{align-self:start;position:sticky;top:102px}.filter-section{padding:17px 0;border-top:1px solid var(--line)}.filter-section:first-child{padding-top:0;border-top:0}.filter-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;color:#d7d0df;font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.08em}.filter-list{display:grid;gap:4px}.filter-option{width:100%;min-height:36px;display:flex;align-items:center;gap:10px;padding:0 10px;border:0;border-radius:10px;background:transparent;color:var(--muted);text-align:left;font-size:12px}.filter-option:hover{background:rgba(255,255,255,.025);color:var(--text)}.filter-option.active{background:var(--accent-soft);color:#d9caf4}.filter-option i{width:8px;height:8px;border:1px solid currentColor;border-radius:3px}.filter-option.active i{background:currentColor}.filter-option span:last-child{margin-left:auto;color:var(--subtle);font-size:10px}
.results-toolbar{min-height:45px;display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}.results-count{color:var(--muted);font-size:12px}.sort-select{height:38px;padding:0 34px 0 12px;border:1px solid var(--line);border-radius:10px;background:var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238c8498' stroke-width='2'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 11px center;color:var(--muted);font-size:11px;appearance:none;outline:0}
.project-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.project-card{position:relative;min-height:245px;display:flex;flex-direction:column;padding:18px;border:1px solid var(--line);border-radius:var(--radius);background:linear-gradient(155deg,rgba(27,23,36,.86),rgba(16,14,21,.88));transition:transform .2s,border .2s,background .2s;overflow:hidden}.project-card:before{content:"";position:absolute;inset:auto -20% -65% 15%;height:190px;border-radius:50%;background:radial-gradient(circle,rgba(137,101,207,.1),transparent 68%);pointer-events:none}.project-card:hover{transform:translateY(-3px);border-color:rgba(190,169,232,.24);background:linear-gradient(155deg,rgba(31,26,42,.92),rgba(17,15,23,.92))}.card-top{display:flex;align-items:flex-start;gap:13px}.project-icon{width:48px;height:48px;flex:0 0 auto;display:grid;place-items:center;border:1px solid var(--line);border-radius:14px;background:var(--surface-3);overflow:hidden;color:#b9a3df;font-weight:650}.project-icon img{width:100%;height:100%;object-fit:cover}.project-icon svg{width:24px;stroke:currentColor;stroke-width:1.5}.card-copy{min-width:0}.project-card h3{margin:1px 0 4px;font-size:15px;font-weight:600;letter-spacing:-.02em}.author{color:var(--subtle);font-size:10px}.project-card p{min-height:42px;margin:18px 0;color:var(--muted);font-size:12px;line-height:1.6}.tags{display:flex;flex-wrap:wrap;gap:6px}.tag{padding:5px 8px;border:1px solid var(--line);border-radius:7px;background:rgba(255,255,255,.018);color:#90889c;font-size:9px;font-weight:550}.tag.compat{border-color:rgba(180,154,241,.2);background:var(--accent-soft);color:#c3afe8}.card-stats{display:flex;gap:15px;margin-top:auto;padding-top:17px;color:var(--subtle);font-size:10px}.card-stats span{display:flex;align-items:center;gap:5px}.card-stats svg{width:13px;stroke:currentColor;stroke-width:1.8;fill:none}.card-arrow{position:absolute;right:17px;top:18px;width:29px;height:29px;display:grid;place-items:center;border:1px solid var(--line);border-radius:9px;color:var(--subtle);opacity:0;transform:translate(-4px,4px);transition:.2s}.project-card:hover .card-arrow{opacity:1;transform:none}.card-arrow svg{width:14px;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
.empty-state{grid-column:1/-1;display:grid;place-items:center;min-height:310px;border:1px dashed var(--line);border-radius:var(--radius);color:var(--muted);text-align:center}.pagination{display:flex;justify-content:center;gap:6px;margin-top:26px}.page-button{width:36px;height:36px;border:1px solid var(--line);border-radius:10px;background:var(--surface);color:var(--muted)}.page-button.active{background:var(--accent);border-color:transparent;color:#17101f}
.product-shell{display:grid;grid-template-columns:minmax(0,1fr) 292px;gap:34px;padding-top:30px}.product-main{min-width:0}.crumbs{display:flex;align-items:center;gap:7px;margin-bottom:24px;color:var(--subtle);font-size:11px}.crumbs a:hover{color:var(--text)}.project-hero{display:flex;align-items:flex-start;gap:18px;padding-bottom:28px;border-bottom:1px solid var(--line)}.project-hero .project-icon{width:76px;height:76px;border-radius:21px}.project-hero h1{margin:2px 0 8px;font-size:clamp(34px,5vw,58px);font-weight:550;line-height:1;letter-spacing:-.055em}.project-hero .lead{margin:0;font-size:14px}.project-tabs{position:sticky;top:76px;z-index:5;display:flex;gap:22px;margin-bottom:26px;border-bottom:1px solid var(--line);background:rgba(11,9,16,.92);backdrop-filter:blur(16px)}.project-tab{padding:18px 0 14px;border:0;border-bottom:1px solid transparent;background:transparent;color:var(--muted);font-size:11px}.project-tab.active{border-color:var(--accent);color:var(--text)}.markdown{color:#c6bfce;font-size:14px;line-height:1.72}.markdown h1,.markdown h2,.markdown h3,.markdown h4{color:var(--text);font-weight:580;letter-spacing:-.03em}.markdown h1{font-size:30px}.markdown h2{margin-top:34px;font-size:23px}.markdown h3{margin-top:28px;font-size:18px}.markdown code{padding:2px 5px;border:1px solid var(--line);border-radius:5px;background:var(--surface-2);font-size:.88em}.markdown pre{overflow:auto;padding:16px;border:1px solid var(--line);border-radius:12px;background:#08070b}.markdown pre code{padding:0;border:0;background:transparent}.markdown a{color:#bba4e8;text-decoration:underline;text-decoration-color:rgba(187,164,232,.35)}.markdown blockquote{margin:18px 0;padding:4px 0 4px 17px;border-left:2px solid #8066b4;color:var(--muted)}.md-image{display:block;max-width:100%;margin:20px 0;border-radius:14px}.md-video{position:relative;aspect-ratio:16/9;margin:22px 0;overflow:hidden;border-radius:14px}.md-video iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.product-side{align-self:start;position:sticky;top:104px;display:grid;gap:12px}.side-card{padding:16px;border:1px solid var(--line);border-radius:15px;background:rgba(18,16,24,.78)}.download-main{width:100%;min-height:48px;display:flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:12px;background:var(--accent);color:#17101f;font-weight:650}.download-main svg{width:17px;stroke:currentColor;stroke-width:2}.reaction-row{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin-top:8px}.reaction-button{height:38px;display:grid;place-items:center;border:1px solid var(--line);border-radius:10px;background:transparent;color:var(--muted)}.reaction-button.active{background:var(--accent-soft);border-color:rgba(180,154,241,.24);color:#cdb9f1}.reaction-button svg{width:16px;stroke:currentColor;fill:none;stroke-width:1.7}.side-meta{display:grid;gap:13px}.meta-row{display:flex;justify-content:space-between;gap:10px;color:var(--muted);font-size:11px}.meta-row b{color:#dad4e0;font-weight:500}.version-list,.comment-list{display:grid;gap:8px}.version-row,.comment{padding:14px;border:1px solid var(--line);border-radius:13px;background:rgba(18,16,24,.6)}.version-row{display:flex;align-items:center;justify-content:space-between;gap:14px}.version-row b{font-weight:550}.version-row small,.comment small{display:block;margin-top:4px;color:var(--subtle)}.comment-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:7px}.comment p{margin:0;color:#bbb4c4;font-size:12px;white-space:pre-wrap}.comment-form{display:grid;gap:9px;margin:16px 0}.comment-form textarea{min-height:92px}
.auth-shell{min-height:calc(100vh - 150px);display:grid;place-items:center}.auth-card{width:min(440px,100%);padding:28px;border:1px solid var(--line);border-radius:22px;background:rgba(19,16,25,.82);box-shadow:var(--shadow)}.auth-card h1{margin:0 0 8px;font-size:28px;font-weight:550;letter-spacing:-.04em}.auth-card>p{margin:0 0 24px;color:var(--muted);font-size:12px}.form-grid{display:grid;gap:14px}.field{display:grid;gap:7px}.field>span{color:#bdb5c7;font-size:11px}.field input,.field textarea,.field select,.editor-field{width:100%;border:1px solid var(--line);border-radius:11px;background:#0f0d14;color:var(--text);outline:0}.field input,.field select{height:43px;padding:0 12px}.field textarea{min-height:118px;padding:12px;resize:vertical}.field input:focus,.field textarea:focus,.field select:focus{border-color:rgba(180,154,241,.42)}.form-note{color:var(--subtle);font-size:10px}.form-error{min-height:18px;color:var(--bad);font-size:11px}.auth-switch{margin-top:18px;text-align:center;color:var(--muted);font-size:11px}.auth-switch a{color:#c7b2eb}
.dashboard-head{display:flex;align-items:end;justify-content:space-between;gap:20px;padding:34px 0 30px;border-bottom:1px solid var(--line)}.dashboard-head h1{margin:0;font-size:42px;font-weight:550;letter-spacing:-.05em}.dashboard-grid{display:grid;grid-template-columns:230px minmax(0,1fr);gap:30px;padding-top:28px}.dashboard-nav{display:grid;align-content:start;gap:5px}.dashboard-nav button{height:39px;padding:0 12px;border:0;border-radius:10px;background:transparent;color:var(--muted);text-align:left;font-size:12px}.dashboard-nav button.active{background:var(--accent-soft);color:#d4c2f1}.dashboard-content{min-width:0}.dashboard-cards{display:grid;gap:10px}.dashboard-project{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:15px;padding:14px;border:1px solid var(--line);border-radius:15px;background:rgba(18,16,24,.65)}.dashboard-project h3{margin:0 0 4px;font-size:14px}.dashboard-project p{margin:0;color:var(--muted);font-size:11px}.status{display:inline-flex;align-items:center;gap:6px;margin-top:7px;color:var(--subtle);font-size:10px}.status i{width:6px;height:6px;border-radius:50%;background:var(--subtle)}.status.pending i{background:var(--warn)}.status.published i{background:var(--good)}.status.rejected i{background:var(--bad)}
.modal-layer{position:fixed;inset:0;z-index:300;display:flex;align-items:center;justify-content:center;padding:20px}
.modal-layer[hidden]{display:none!important}
.modal-backdrop{position:absolute;inset:0;background:rgba(4,3,6,.72);backdrop-filter:blur(12px)}
.modal{position:relative;width:min(820px,calc(100% - 28px));max-height:calc(100vh - 40px);margin:0;padding:24px;border:1px solid var(--line-strong);border-radius:22px;background:#111017;box-shadow:var(--shadow);overflow:auto}
.modal.small{width:min(480px,calc(100% - 28px))}
.modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:16px}
.modal-head h2{margin:0;font-size:23px;font-weight:560;letter-spacing:-.04em}
.modal-close{width:34px;height:34px;flex:0 0 auto;border:1px solid var(--line);border-radius:10px;background:transparent;color:var(--muted);cursor:pointer}.editor-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.editor-grid .wide{grid-column:1/-1}.editor-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:20px}.dual-editor{display:grid;grid-template-columns:1fr 1fr;gap:10px}.markdown-preview{min-height:210px;padding:14px;border:1px solid var(--line);border-radius:12px;background:#0d0b11}.dropzone{display:grid;place-items:center;min-height:110px;padding:16px;border:1px dashed var(--line-strong);border-radius:13px;background:rgba(180,154,241,.025);text-align:center;color:var(--muted)}.dropzone input{max-width:100%}
.moderation-list{display:grid;gap:12px}.moderation-card{padding:18px;border:1px solid var(--line);border-radius:16px;background:rgba(18,16,24,.7)}.moderation-card header{display:flex;justify-content:space-between;gap:18px}.moderation-card h3{margin:0}.diff-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:15px}.diff-pane{min-width:0;padding:12px;border:1px solid var(--line);border-radius:11px;background:#0d0c11}.diff-pane b{display:block;margin-bottom:9px;color:var(--subtle);font-size:10px;text-transform:uppercase}.diff-pane pre{max-height:280px;margin:0;overflow:auto;white-space:pre-wrap;color:#aaa2b5;font:10px/1.5 ui-monospace,monospace}.scan-badge{display:inline-flex;padding:4px 7px;border-radius:6px;background:rgba(232,189,115,.1);color:var(--warn);font-size:9px}.scan-badge.clean{background:rgba(131,214,173,.1);color:var(--good)}
.toast-stack{position:fixed;left:50%;bottom:28px;z-index:500;display:grid;gap:10px;width:min(520px,calc(100vw - 28px));transform:translateX(-50%);pointer-events:none}
.toast{min-width:0;max-width:none;padding:16px 18px;border:1px solid var(--line-strong);border-radius:14px;background:rgba(24,21,32,.96);box-shadow:0 16px 48px rgba(0,0,0,.38);color:#ece7f2;font-size:14px;line-height:1.45;pointer-events:auto;animation:toast-in .25s ease}
.toast.error{border-color:rgba(233,143,155,.42);color:#f0c0c6;background:rgba(42,18,24,.96)}
@keyframes toast-in{from{opacity:0;transform:translateY(10px)}}
.loading-view{min-height:55vh;display:grid;place-items:center;align-content:center;gap:14px;color:var(--subtle);font-size:11px}.loader-mark{display:flex;gap:5px}.loader-mark i{width:6px;height:6px;border-radius:50%;background:var(--accent);animation:pulse 1s infinite}.loader-mark i:nth-child(2){animation-delay:.15s}.loader-mark i:nth-child(3){animation-delay:.3s}@keyframes pulse{0%,70%,100%{opacity:.25;transform:translateY(0)}35%{opacity:1;transform:translateY(-5px)}}
@media(max-width:1100px){.project-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.headline-stats{display:none}.topbar{grid-template-columns:auto minmax(180px,1fr) auto;gap:14px}.back-product span{display:none}}
@media(max-width:760px){.topbar{height:auto;min-height:68px;grid-template-columns:1fr auto;padding:12px 14px}.global-search{grid-column:1/-1;grid-row:2}.brand small,.back-product{display:none}.top-actions{gap:6px}.account-button>span:last-child{display:none}#app{padding:20px 14px 60px}.discover-head{display:block;padding:20px 0 25px}.discover-head h1{font-size:43px}.lead{font-size:13px}.market-layout{grid-template-columns:1fr}.filters{position:static;display:flex;gap:8px;overflow:auto;padding-bottom:4px}.filter-section{display:flex;gap:5px;padding:0;border:0}.filter-title{display:none}.filter-list{display:flex}.filter-option{min-width:max-content;border:1px solid var(--line)}.project-grid{grid-template-columns:1fr}.project-card{min-height:215px}.product-shell{grid-template-columns:1fr}.product-side{position:static;grid-row:1}.project-hero .project-icon{width:62px;height:62px}.project-hero h1{font-size:36px}.dashboard-grid{grid-template-columns:1fr}.dashboard-nav{display:flex;overflow:auto}.dashboard-nav button{min-width:max-content}.dashboard-project{grid-template-columns:auto 1fr}.dashboard-project>.soft-button{grid-column:1/-1}.editor-grid,.dual-editor,.diff-grid{grid-template-columns:1fr}.modal{padding:18px}.page-title{font-size:42px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation-duration:.01ms!important;transition-duration:.01ms!important}}
.profile-head{display:flex;align-items:center;gap:20px;padding:46px 0 34px}.profile-head h1{margin:0;font-size:clamp(38px,6vw,68px);font-weight:550;letter-spacing:-.06em}.profile-head .lead{margin-top:10px}.profile-avatar{width:82px;height:82px;display:grid;place-items:center;border:1px solid var(--line-strong);border-radius:24px;background:var(--accent-soft);color:#d9ccf2;font-size:28px;font-weight:600}
.install-main{width:100%;margin-top:8px}
.dependency-block{margin-top:30px;padding:18px;border:1px solid var(--line);border-radius:15px;background:rgba(18,16,24,.58)}.dependency-block h3{margin:0 0 12px;font-size:15px;font-weight:550}.dependency-block>div{display:flex;align-items:center;gap:10px;padding:9px 0;border-top:1px solid var(--line);color:var(--muted);font-size:12px}.dependency-block>div:first-of-type{border-top:0}.dependency-block code{margin-left:auto;color:var(--subtle)}
.recover-link{display:block;margin-top:12px;color:#a995d0;text-align:center;font-size:11px}.markdown-preview{margin-top:10px;max-height:320px;overflow:auto}

/* Warm goshkow palette */
.ambient{background:linear-gradient(180deg,#0f0c0a 0,var(--bg) 60%,#0b0907 100%)}.ambient i:first-child{background:radial-gradient(circle,rgba(159,91,55,.1),transparent 68%)}.ambient i:nth-child(2){background:radial-gradient(circle,rgba(126,73,46,.08),transparent 68%)}.ambient i:last-child{background:radial-gradient(circle,rgba(201,135,96,.06),transparent 68%)}
.topbar{background:rgba(13,11,9,.82)}.brand-mark{background:var(--surface-2);color:#d6a07f}.global-search{background:rgba(26,21,17,.78)}.global-search:focus-within{border-color:rgba(213,141,104,.42);background:var(--surface-2)}.global-search input::placeholder{color:#766a60}.ghost-button,.account-button,.soft-button,.danger-button{background:rgba(23,18,14,.78)}.avatar{color:#e2b699}.solid-button{color:#1b100b}.solid-button:hover{background:#dfa07d}.soft-button{border-color:rgba(213,141,104,.22);color:#e1b091}.eyebrow,.discover-head h1 span{color:#d79a79}.headline-stats{background:rgba(24,18,14,.62)}.filter-title{color:#ded4ca}.filter-option.active{color:#e4b799}.project-card{background:linear-gradient(155deg,rgba(29,23,18,.9),rgba(18,15,12,.92))}.project-card:before{background:radial-gradient(circle,rgba(190,111,70,.08),transparent 68%)}.project-card:hover{border-color:rgba(224,171,140,.25);background:linear-gradient(155deg,rgba(34,26,20,.94),rgba(20,16,13,.94))}.project-icon{color:#d39a78}.tag{color:#998c80}.tag.compat{border-color:rgba(213,141,104,.2);color:#dba383}.project-tabs{background:rgba(13,11,9,.93)}.markdown a,.recover-link{color:#dba07e}.markdown blockquote{border-color:#a96848}.markdown pre{background:#0a0807}.side-card,.version-row,.comment,.dashboard-project,.moderation-card,.dependency-block{background:rgba(24,19,15,.72)}.auth-card{background:rgba(24,19,15,.86)}.field input,.field textarea,.field select,.editor-field{background:#110e0c}.dashboard-nav button.active{color:#e2b393}.modal{background:#15110e}.modal-backdrop{background:rgba(7,5,4,.74)}.markdown-preview,.diff-pane{background:#100d0b}.dropzone{background:rgba(213,141,104,.025)}.toast{background:rgba(30,24,19,.95);color:#ddd2c8}.profile-avatar{color:#e2b699}
.header-link{padding:8px 3px;color:var(--muted);font-size:11px;transition:color .18s}.header-link:hover{color:var(--text)}
.catalog-head{display:flex;align-items:end;justify-content:space-between;padding:44px 0 34px}.catalog-head h1{margin:0;font-size:clamp(38px,5vw,62px);font-weight:540;line-height:1;letter-spacing:-.055em}.catalog-head .lead{margin-top:14px}.results{transition:opacity .18s ease,filter .18s ease}.results.updating{opacity:.48;filter:blur(2px);pointer-events:none}
.market-home-hero{min-height:620px;display:grid;grid-template-columns:minmax(0,1fr) minmax(420px,.85fr);align-items:center;gap:70px;padding:56px 0 70px}.market-home-copy h1{margin:0;max-width:760px;font-size:clamp(54px,7vw,94px);font-weight:520;line-height:.94;letter-spacing:-.072em}.market-home-copy h1 span{color:#d79a79}.market-home-copy>p:not(.eyebrow){max-width:580px;margin:28px 0 0;color:var(--muted);font-size:16px;line-height:1.65}.market-home-actions{display:flex;gap:10px;margin-top:30px}.market-home-actions .solid-button,.market-home-cta .solid-button{min-height:48px;padding:0 18px}.market-home-actions svg,.market-home-cta svg{width:16px;stroke:currentColor;stroke-width:1.8}
.market-home-visual{position:relative;min-height:490px;border:1px solid var(--line);border-radius:34px;background:rgba(24,19,15,.52);overflow:hidden}.market-home-visual:before,.market-home-visual:after,.visual-orbit{content:"";position:absolute;left:50%;top:50%;border:1px solid rgba(218,159,125,.13);border-radius:50%;transform:translate(-50%,-50%)}.market-home-visual:before{width:390px;height:390px}.market-home-visual:after{width:280px;height:280px}.visual-orbit{width:170px;height:170px}.visual-center{position:absolute;left:50%;top:50%;z-index:2;width:128px;height:128px;display:grid;place-items:center;align-content:center;border:1px solid rgba(232,194,170,.18);border-radius:38px;background:#1d1713;transform:translate(-50%,-50%);box-shadow:0 24px 70px rgba(0,0,0,.28)}.visual-center span{width:36px;height:36px;display:grid;place-items:center;color:#dc9c79}.visual-center svg{width:27px;stroke:currentColor}.visual-center b{font-size:13px;font-weight:600}.visual-center small{color:var(--subtle);font-size:9px}.visual-mod{position:absolute;z-index:3;min-width:180px;display:flex;align-items:center;gap:10px;padding:10px;border:1px solid var(--line);border-radius:15px;background:rgba(26,21,17,.9);box-shadow:0 12px 36px rgba(0,0,0,.22)}.visual-mod .project-icon{width:38px;height:38px;border-radius:11px}.visual-mod b,.visual-mod small{display:block}.visual-mod b{max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px}.visual-mod small{margin-top:3px;color:var(--subtle);font-size:9px}.visual-mod-1{left:8%;top:16%}.visual-mod-2{right:6%;top:30%}.visual-mod-3{left:15%;bottom:12%}
.market-home-stats{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.market-home-stats div{padding:28px 10px;border-left:1px solid var(--line);text-align:center}.market-home-stats div:first-child{border-left:0}.market-home-stats b{display:block;font-size:28px;font-weight:520}.market-home-stats span{display:block;margin-top:5px;color:var(--subtle);font-size:10px;text-transform:uppercase;letter-spacing:.11em}
.market-home-section{padding:110px 0}.section-intro{max-width:680px;margin-bottom:42px}.section-intro h2,.market-home-cta h2{margin:0;font-size:clamp(36px,5vw,62px);font-weight:520;line-height:1.03;letter-spacing:-.06em}.benefit-grid{display:grid;grid-template-columns:repeat(3,1fr);border:1px solid var(--line);border-radius:24px;overflow:hidden}.benefit-grid article{min-height:260px;padding:28px;border-left:1px solid var(--line);background:rgba(22,18,14,.38)}.benefit-grid article:first-child{border-left:0}.benefit-grid article>span{color:#b47757;font:500 10px ui-monospace,monospace}.benefit-grid h3{margin:86px 0 10px;font-size:18px;font-weight:560}.benefit-grid p{margin:0;color:var(--muted);font-size:12px;line-height:1.65}.market-home-cta{display:flex;align-items:end;justify-content:space-between;gap:30px;margin-bottom:40px;padding:48px;border:1px solid var(--line);border-radius:26px;background:#17120f}.market-home-cta h2{max-width:720px;font-size:clamp(34px,4.4vw,58px)}
@media(max-width:1000px){.market-home-hero{grid-template-columns:1fr;gap:35px}.market-home-visual{min-height:430px}.benefit-grid{grid-template-columns:1fr}.benefit-grid article{min-height:auto;border-left:0;border-top:1px solid var(--line)}.benefit-grid article:first-child{border-top:0}.benefit-grid h3{margin-top:42px}}
@media(max-width:760px){.header-link{display:none}.market-home-hero{min-height:auto;padding:44px 0 55px}.market-home-copy h1{font-size:52px}.market-home-copy>p:not(.eyebrow){font-size:14px}.market-home-actions{align-items:stretch;flex-direction:column}.market-home-visual{min-height:370px;border-radius:24px}.visual-mod{min-width:150px}.visual-mod-1{left:5%}.visual-mod-2{right:4%}.visual-mod-3{left:8%}.market-home-stats div{padding:22px 4px}.market-home-stats b{font-size:21px}.market-home-section{padding:76px 0}.market-home-cta{align-items:flex-start;flex-direction:column;padding:28px}.catalog-head{padding:26px 0}.catalog-head h1{font-size:42px}}

/* Minimal marketplace layout */
:root{--radius:12px;--shadow:none}
.ambient{display:none}
.topbar{height:72px;gap:20px;background:rgba(13,11,9,.96);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
.global-search{height:48px;border-radius:10px;background:#15120f}
.global-search input{font-size:14px}
.ghost-button,.account-button,.solid-button,.soft-button,.danger-button{min-height:46px;padding:0 16px;border-radius:10px;font-size:13px}
.language{min-height:46px;align-items:center;border-radius:10px}
.language button{min-width:34px;min-height:34px}
#app{width:min(1240px,100%);padding-top:32px}
.catalog-head{padding:20px 0 32px;border-bottom:1px solid var(--line)}
.catalog-head h1{font-size:42px;font-weight:600;line-height:1.1;letter-spacing:-.04em}
.catalog-head .lead{margin-top:10px;font-size:14px}
.market-layout{grid-template-columns:250px minmax(0,1fr);gap:32px;padding-top:28px}
.filters{top:94px}
.filter-section{padding:20px 0}
.filter-title{font-size:12px;letter-spacing:.04em;text-transform:none}
.filter-list{gap:6px}
.filter-option{min-height:44px;padding:0 12px;border-radius:9px;font-size:13px}
.filter-option.active{background:#221a15;color:#e5b395}
.results-toolbar{min-height:48px;margin-bottom:12px}
.results-count{font-size:13px}
.sort-select{height:46px;min-width:220px;border-radius:10px;font-size:13px}
.project-grid{grid-template-columns:1fr;gap:10px}
.project-card{min-height:0;display:grid;grid-template-columns:64px minmax(0,1fr) auto 36px;align-items:center;gap:18px;padding:18px;border-radius:12px;background:#15120f;overflow:visible;transition:border-color .15s,background .15s}
.project-card:before{display:none}
.project-card:hover{transform:none;border-color:var(--line-strong);background:#191511}
.project-card>.project-icon{width:64px;height:64px;border-radius:12px}
.card-main{min-width:0}
.card-title{display:flex;align-items:baseline;gap:10px}
.project-card h3{margin:0;font-size:16px;font-weight:600}
.author{font-size:11px}
.project-card p{min-height:0;margin:7px 0 10px;font-size:13px;line-height:1.5}
.tag{padding:4px 7px;border-radius:6px;font-size:10px}
.card-meta{min-width:185px;text-align:right}
.card-stats{justify-content:flex-end;gap:14px;margin:0;padding:0;font-size:11px}
.card-meta small{display:block;margin-top:10px;color:var(--subtle);font-size:10px}
.card-arrow{position:static;width:36px;height:36px;opacity:1;transform:none;border:0;color:var(--muted)}
.project-card:hover .card-arrow{color:var(--text)}
.results.updating{opacity:.58;filter:none}
.market-home-hero{min-height:0;display:block;max-width:760px;padding:72px 0 64px}
.market-home-hero h1{margin:0;font-size:48px;font-weight:600;line-height:1.08;letter-spacing:-.05em}
.market-home-hero>p:not(.eyebrow){max-width:690px;margin:18px 0 0;color:var(--muted);font-size:17px;line-height:1.65}
.market-home-actions{display:flex;gap:10px;margin-top:28px}
.market-home-actions .solid-button,.market-home-actions .ghost-button{min-height:50px;padding:0 20px}
.market-home-actions svg,.text-link svg{width:16px;stroke:currentColor;stroke-width:1.8}
.home-section{padding:42px 0;border-top:1px solid var(--line)}
.home-section-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:20px}
.home-section-head h2{margin:0;font-size:26px;font-weight:600;letter-spacing:-.035em}
.text-link{display:inline-flex;align-items:center;gap:7px;color:#d9a182;font-size:13px}
.home-projects{grid-template-columns:1fr 1fr}
.home-projects .project-card{grid-template-columns:56px minmax(0,1fr) 32px}
.home-projects .project-card>.project-icon{width:56px;height:56px}
.home-projects .card-meta{display:none}
.home-notes{display:grid;grid-template-columns:repeat(3,1fr);margin:18px 0 40px;border:1px solid var(--line);border-radius:12px;overflow:hidden}
.home-notes article{min-height:130px;padding:24px;border-left:1px solid var(--line);background:#12100d}
.home-notes article:first-child{border-left:0}
.home-notes b{font-size:14px;font-weight:600}
.home-notes p{margin:9px 0 0;color:var(--muted);font-size:12px;line-height:1.55}
.market-home-visual,.market-home-stats,.market-home-section,.market-home-cta{display:none}

@media(max-width:900px){
  .project-card{grid-template-columns:56px minmax(0,1fr) 32px}
  .project-card>.project-icon{width:56px;height:56px}
  .card-meta{display:none}
  .home-projects{grid-template-columns:1fr}
}
@media(max-width:760px){
  .topbar{min-height:74px;padding:12px 14px}
  .global-search{height:48px}
  #app{padding:18px 14px 56px}
  .market-home-hero{padding:44px 0 42px}
  .market-home-hero h1{font-size:36px}
  .market-home-hero>p:not(.eyebrow){font-size:15px}
  .market-home-actions{flex-direction:column}
  .market-home-actions a{width:100%}
  .home-section{padding:32px 0}
  .home-section-head{align-items:flex-start;flex-direction:column}
  .home-notes{grid-template-columns:1fr}
  .home-notes article{min-height:0;border-left:0;border-top:1px solid var(--line)}
  .home-notes article:first-child{border-top:0}
  .catalog-head{padding:14px 0 24px}
  .catalog-head h1{font-size:34px}
  .market-layout{grid-template-columns:1fr;gap:18px;padding-top:18px}
  .filters{gap:8px;margin:0 -14px;padding:0 14px 8px}
  .filter-option{min-height:44px;padding:0 14px}
  .results-toolbar{align-items:stretch;flex-direction:column}
  .sort-select{width:100%;min-width:0}
  .project-card{grid-template-columns:52px minmax(0,1fr) 28px;gap:12px;padding:15px}
  .project-card>.project-icon{width:52px;height:52px}
  .card-title{display:block}
  .project-card h3{font-size:15px}
  .author{display:block;margin-top:2px}
  .project-card p{margin:8px 0 10px;font-size:12px}
  .card-arrow{width:28px;height:32px}
}

/* Base44 Nexus Hub visual system — adapted for Zapret Hub */
:root{
  --bg:#0f1115;
  --surface:#1a1d23;
  --surface-2:#20242b;
  --surface-3:#252a32;
  --text:#f8fafc;
  --muted:#94a3b8;
  --subtle:#64748b;
  --line:#2a2d33;
  --line-strong:#3a414c;
  --accent:#5271ff;
  --accent-2:#405eea;
  --accent-soft:rgba(82,113,255,.12);
  --good:#50d890;
  --warn:#f5b85c;
  --bad:#f07c89;
  --radius:16px;
  --shadow:none
}
html,body{background:#0f1115}
body{font-size:15px}
.ambient{display:none}

.topbar{
  position:sticky;
  top:0;
  z-index:100;
  min-height:80px;
  height:80px;
  grid-template-columns:auto minmax(280px,620px) auto;
  gap:28px;
  padding:0 max(24px,calc((100vw - 1400px)/2));
  border-bottom:1px solid #1a1d23;
  background:rgba(15,17,21,.94);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px)
}
.topbar:before{content:"";position:absolute;inset:0 0 auto;height:2px;background:var(--accent)}
.brand{gap:13px}
.brand-mark{width:44px;height:44px;border:0;border-radius:13px;background:var(--accent);color:#071116}
.brand-mark svg{width:27px}
.brand b{font-size:17px;font-weight:700}
.brand small{margin-top:3px;color:var(--muted);font-size:11px}
.global-search{height:48px;padding:0 15px;border-color:var(--line);border-radius:12px;background:var(--surface)}
.global-search:focus-within{border-color:var(--accent);background:var(--surface)}
.global-search input{font-size:14px}
.global-search input::placeholder{color:var(--subtle)}
.global-search kbd{border-color:var(--line-strong);color:var(--muted)}
.header-link{position:relative;padding:12px 4px;color:var(--muted);font-size:14px;font-weight:500}
.header-link:hover{color:var(--text)}
.language{min-height:46px;padding:4px;border-color:var(--line);border-radius:12px;background:var(--surface)}
.language button{min-width:36px;min-height:36px;border-radius:9px;font-size:11px}
.language button.active{background:var(--surface-3);color:var(--text)}
.ghost-button,.account-button,.solid-button,.soft-button,.danger-button{min-height:48px;padding:0 18px;border-color:var(--line);border-radius:12px;background:var(--surface);font-size:14px;font-weight:600}
.ghost-button:hover,.account-button:hover,.soft-button:hover{border-color:var(--line-strong);background:var(--surface-2)}
.solid-button{border-color:var(--accent);background:var(--accent);color:#061218}
.solid-button:hover{background:#65cdf9;transform:none}
.soft-button{border-color:var(--line-strong);background:var(--surface-2);color:var(--text)}
.avatar{width:30px;height:30px;border-radius:9px;background:var(--surface-3);color:var(--text)}

#app{width:min(1400px,100%);min-height:calc(100vh - 80px);padding:0 24px 80px}
.eyebrow{margin-bottom:13px;color:var(--muted);font-size:12px;font-weight:700;letter-spacing:.11em}
.lead{color:var(--muted);font-size:18px;line-height:1.65}

.market-home-hero{max-width:none;padding:58px 0 62px;border-bottom:1px solid var(--line)}
.market-home-hero h1{max-width:980px;margin:0;font-size:clamp(48px,5vw,68px);font-weight:700;line-height:1.04;letter-spacing:-.05em}
.market-home-hero h1 span{color:var(--text)}
.market-home-hero>p:not(.eyebrow){max-width:760px;margin:22px 0 0;color:var(--muted);font-size:18px;line-height:1.65}
.market-home-actions{gap:12px;margin-top:30px}
.market-home-actions .solid-button,.market-home-actions .ghost-button{min-height:52px;padding:0 22px;font-size:15px}
.home-section{padding:36px 0 48px;border-top:0}
.home-section-head{margin-bottom:24px}
.home-section-head h2{max-width:750px;font-size:30px;font-weight:700;letter-spacing:-.035em}
.text-link{gap:8px;color:var(--text);font-size:14px;font-weight:600}
.home-projects{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.home-notes{grid-template-columns:repeat(3,1fr);gap:16px;margin:8px 0 48px;border:0;border-radius:0;overflow:visible}
.home-notes article{min-height:158px;padding:26px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface)}
.home-notes article:first-child{border-left:1px solid var(--line)}
.home-notes b{font-size:16px;font-weight:700}
.home-notes p{margin-top:11px;color:var(--muted);font-size:14px;line-height:1.6}

.catalog-head{padding:52px 0 36px;border-bottom:1px solid var(--line)}
.catalog-head h1{font-size:clamp(42px,5vw,60px);font-weight:700;letter-spacing:-.045em}
.catalog-head .lead{margin-top:13px;font-size:18px}
.market-layout{display:block;padding-top:24px}
.filters{position:static;display:grid;gap:13px;margin-bottom:22px}
.filter-section{display:flex;align-items:center;gap:18px;padding:0;border:0;overflow:hidden}
.filter-section:first-child{padding:0}
.filter-title{flex:0 0 112px;margin:0;color:var(--text);font-size:13px;font-weight:650;letter-spacing:0;text-transform:none}
.filter-list{min-width:0;display:flex;gap:8px;overflow-x:auto;padding:2px 0 4px;scrollbar-width:none}
.filter-list::-webkit-scrollbar{display:none}
.filter-option{width:auto;min-width:max-content;min-height:44px;gap:8px;padding:0 17px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--muted);font-size:14px;text-align:center}
.filter-option:hover{border-color:var(--line-strong);background:var(--surface-2);color:var(--text)}
.filter-option.active{border-color:var(--accent);background:var(--accent);color:#061218}
.filter-option i{display:none}
.filter-option span:last-child{margin-left:4px;color:inherit;font-size:11px;opacity:.72}
.results-toolbar{min-height:52px;margin-bottom:16px}
.results-count{font-size:14px}
.sort-select{height:48px;min-width:240px;padding-left:15px;border-color:var(--line);border-radius:12px;background-color:var(--surface);color:var(--text);font-size:14px}
.results.updating{opacity:.55;filter:none}

.project-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.project-card,.home-projects .project-card{min-height:290px;display:flex;flex-direction:column;gap:0;padding:0;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);overflow:hidden;transition:border-color .18s,background .18s}
.project-card:before{display:none}
.project-card:hover{transform:none;border-color:var(--line-strong);background:var(--surface)}
.card-head{display:flex;align-items:flex-start;gap:16px;padding:22px 22px 15px}
.project-card>.project-icon,.home-projects .project-card>.project-icon,.card-head>.project-icon{width:72px;height:72px;flex:0 0 72px;border-color:var(--line-strong);border-radius:15px;background:var(--surface-3);color:var(--text);font-size:20px}
.project-icon svg{width:33px}
.card-main{min-width:0}
.card-title{display:block}
.project-card h3{margin:1px 0 4px;font-size:19px;font-weight:700;line-height:1.25;letter-spacing:-.025em}
.author{display:block;color:var(--subtle);font-size:12px}
.project-card p{min-height:64px;margin:13px 0 0;color:var(--muted);font-size:14px;line-height:1.55}
.project-card>.tags{padding:0 22px 20px}
.tag{padding:6px 10px;border-color:var(--line);border-radius:9px;background:var(--surface-2);color:var(--muted);font-size:11px;font-weight:600}
.tag.compat{border-color:var(--line-strong);background:var(--surface-2);color:var(--muted)}
.card-footer{min-height:66px;display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:auto;padding:12px 16px 12px 22px;border-top:1px solid var(--line)}
.card-stats{justify-content:flex-start;gap:13px;margin:0;padding:0;color:var(--subtle);font-size:11px}
.card-stats svg{width:14px}
.card-stats span.active{color:var(--accent)}
.card-stats span.active svg{fill:currentColor}
.card-action{min-height:42px;display:inline-flex;align-items:center;justify-content:center;padding:0 16px;border-radius:10px;background:var(--text);color:var(--bg);font-size:13px;font-weight:700}
.card-meta,.card-arrow{display:none}
.empty-state{min-height:360px;border-color:var(--line-strong);font-size:15px}
.page-button{width:42px;height:42px;border-color:var(--line);border-radius:11px;background:var(--surface);font-size:14px}
.page-button.active{background:var(--accent);color:#061218}

.project-tabs{top:80px;background:rgba(15,17,21,.94)}
.project-tab{font-size:13px}
.side-card,.version-row,.comment,.dashboard-project,.moderation-card,.dependency-block,.auth-card{border-color:var(--line);background:var(--surface)}
.download-main{min-height:52px;border-radius:12px;background:var(--accent);color:#061218;font-size:14px}
.reaction-button.active,.dashboard-nav button.active{border-color:var(--line-strong);background:var(--surface-3);color:var(--text)}
.markdown{color:#cbd5e1}
.markdown a,.recover-link,.auth-switch a{color:#aebeff}
.markdown blockquote{border-color:var(--accent)}
.markdown pre,.markdown-preview,.diff-pane{background:#0b0d10}
.field input,.field textarea,.field select,.editor-field{border-color:var(--line);background:#12151a}
.field input,.field select{height:48px}
.field input:focus,.field textarea:focus,.field select:focus{border-color:var(--accent)}
.modal{border-color:var(--line-strong);background:var(--surface)}
.modal-backdrop{background:rgba(5,7,10,.78)}
.dropzone{background:rgba(56,189,248,.025)}
.toast{background:var(--surface-2);color:var(--text)}
.profile-avatar{color:var(--text)}

@media(max-width:1220px){
  .project-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .home-projects{grid-template-columns:repeat(2,minmax(0,1fr))}
  .topbar{grid-template-columns:auto minmax(220px,1fr) auto;gap:18px}
  .back-product span{display:none}
}
@media(max-width:940px){
  .project-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .topbar{grid-template-columns:auto minmax(180px,1fr) auto}
  .header-link{display:none}
  .brand small{display:none}
}
@media(max-width:760px){
  .topbar{height:auto;min-height:132px;grid-template-columns:1fr auto;grid-template-rows:52px 48px;gap:10px 12px;padding:13px 14px}
  .brand-mark{width:42px;height:42px}
  .brand b{font-size:16px}
  .global-search{grid-column:1/-1;grid-row:2;height:48px}
  .top-actions{gap:6px}
  .back-product{display:none}
  .account-button{min-height:44px;padding:0 9px}
  .account-button>span:last-child{display:none}
  .language{min-height:44px}
  #app{min-height:calc(100vh - 132px);padding:0 14px 56px}
  .market-home-hero{padding:42px 0 44px}
  .market-home-hero h1{font-size:40px;line-height:1.07}
  .market-home-hero>p:not(.eyebrow){font-size:16px}
  .market-home-actions{align-items:stretch;flex-direction:column}
  .market-home-actions a{width:100%}
  .home-section{padding:30px 0 38px}
  .home-section-head{align-items:flex-start;flex-direction:column;margin-bottom:18px}
  .home-section-head h2{font-size:25px}
  .home-projects,.project-grid{grid-template-columns:1fr}
  .home-notes{grid-template-columns:1fr}
  .home-notes article,.home-notes article:first-child{min-height:0;border:1px solid var(--line)}
  .catalog-head{padding:38px 0 28px}
  .catalog-head h1{font-size:38px}
  .catalog-head .lead{font-size:16px}
  .market-layout{padding-top:18px}
  .filters{gap:10px;margin:0 -14px 16px;padding:0 14px;overflow:hidden}
  .filter-section{display:block;overflow:visible}
  .filter-title{margin-bottom:8px}
  .filter-list{margin-right:-14px;padding-right:14px}
  .filter-option{min-height:44px;padding:0 15px}
  .results-toolbar{align-items:stretch;flex-direction:column}
  .sort-select{width:100%;min-width:0}
  .project-card,.home-projects .project-card{min-height:270px}
  .card-head{padding:20px 20px 14px}
  .project-card>.project-icon,.home-projects .project-card>.project-icon,.card-head>.project-icon{width:68px;height:68px;flex-basis:68px}
  .project-card h3{font-size:18px}
  .project-card p{font-size:14px}
  .project-card>.tags{padding:0 20px 18px}
  .card-footer{padding-left:20px}
}

/* Marketplace navigation, sticky filter rail and account layer */
::view-transition-old(root){animation:market-route-out .16s ease-out both}
::view-transition-new(root){animation:market-route-in .22s ease-out both}
@keyframes market-route-out{to{opacity:0}}
@keyframes market-route-in{from{opacity:0}}

.topbar{grid-template-columns:auto auto;justify-content:space-between}
.topbar:before{display:none}
.brand-mark{width:45px;height:45px;border:0;border-radius:0;background:transparent;color:var(--text)}
.brand-mark img{display:block;width:39px;height:30px;object-fit:contain;filter:invert(1);opacity:.92}
.brand-copy b{font-size:17px;white-space:nowrap}
.brand-copy b em{color:var(--accent);font-style:normal}
.brand-copy small{font-size:11px}
.top-actions{gap:10px}
.header-link{min-height:44px;display:inline-flex;align-items:center;padding:0 13px;border-radius:11px}
.header-link.active{background:var(--surface);color:var(--text)}
.account-button .avatar img,.avatar img,.profile-avatar img{width:100%;height:100%;display:block;object-fit:cover}

.market-layout{display:grid;grid-template-columns:260px minmax(0,1fr);align-items:start;gap:32px;padding-top:28px}
.filters{position:sticky;top:104px;display:grid;gap:22px;margin:0;padding:18px;border:1px solid var(--line);border-radius:var(--radius);background:var(--surface)}
.filter-search{height:48px;display:flex;align-items:center;gap:10px;padding:0 12px;border:1px solid var(--line);border-radius:11px;background:var(--bg)}
.filter-search:focus-within{border-color:var(--line-strong)}
.filter-search svg{width:18px;flex:0 0 auto;stroke:var(--muted);stroke-width:1.8;stroke-linecap:round}
.filter-search input{min-width:0;width:100%;border:0;outline:0;background:transparent;color:var(--text);font-size:13px}
.filter-search input::placeholder{color:var(--subtle)}
.filter-search kbd{padding:2px 6px;border:1px solid var(--line);border-radius:6px;color:var(--subtle);font:600 10px Inter}
.filter-section,.filter-section:first-child{display:block;padding:0;border:0;overflow:visible}
.filter-title{display:block;margin:0 0 9px;color:var(--muted);font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
.filter-list{display:grid;gap:4px;overflow:visible;padding:0}
.filter-option{position:relative;width:100%;min-width:0;min-height:42px;justify-content:flex-start;padding:0 12px;border:0;border-radius:9px;background:transparent;color:var(--muted);font-size:13px;text-align:left}
.filter-option:hover{border:0;background:var(--surface-2);color:var(--text)}
.filter-option.active{border:0;background:var(--surface-3);color:var(--text)}
.filter-option.active:before{content:"";position:absolute;left:0;top:11px;bottom:11px;width:3px;border-radius:3px;background:var(--accent)}
.market-layout .project-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.results{min-width:0}

.card-head{color:inherit}
.card-actions{display:flex;align-items:center;gap:8px}
.card-download{height:42px;display:inline-flex;align-items:center;gap:7px;padding:0 12px;border:1px solid var(--line-strong);border-radius:10px;background:var(--surface-2);color:var(--text);font-size:12px;font-weight:700}
.card-download:hover{background:var(--surface-3)}
.card-download svg{width:15px;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.card-action{background:var(--text)}
.install-main{width:100%;margin-top:8px;min-height:48px}

.profile-avatar{overflow:hidden;border-radius:22px;background:var(--surface-3)}
.account-profile-card{display:grid;gap:22px}
.account-profile-preview{display:flex;align-items:center;gap:18px}
.account-profile-preview .profile-avatar{width:82px;height:82px;flex:0 0 auto}
.account-profile-preview h3{margin:0;font-size:20px}
.account-profile-preview p{max-width:480px;margin:6px 0 0;color:var(--muted);font-size:13px}
.avatar-form{display:flex;align-items:center;gap:10px}
.avatar-form input{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}

.comment{display:grid;grid-template-columns:38px minmax(0,1fr);gap:12px}
.comment-avatar .avatar{width:38px;height:38px}
.comment-body{min-width:0}
.comment-head>div{display:flex;align-items:center;gap:9px}
.comment-head small{margin:0}
.comment-delete{width:30px;height:30px;border:1px solid var(--line);border-radius:9px;background:transparent;color:var(--muted);font-size:18px;line-height:1}
.comment-delete:hover{border-color:rgba(240,124,137,.42);color:var(--bad)}
.comments-section{display:grid;gap:20px}
.comments-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;padding-bottom:18px;border-bottom:1px solid var(--line)}
.comments-heading h2{margin:0;font-size:22px;letter-spacing:-.025em}.comments-heading p{margin:6px 0 0;color:var(--muted);font-size:12px}.comments-heading>span{min-width:38px;height:38px;display:grid;place-items:center;border:1px solid var(--line);border-radius:12px;background:var(--surface-2);color:var(--muted);font-size:12px;font-weight:650}
.comment-composer{margin:0;padding:16px;border:1px solid var(--line);border-radius:16px;background:var(--surface-2)}
.comment-composer-head{display:flex;align-items:center;gap:11px}.comment-composer-head .avatar{width:36px;height:36px}.comment-composer-head b,.comment-composer-head small{display:block}.comment-composer-head b{font-size:12px}.comment-composer-head small{margin-top:3px;color:var(--subtle);font-size:10px}
.comment-composer textarea{min-height:110px;resize:vertical}.comment-composer-actions{display:flex;align-items:center;justify-content:space-between;gap:14px}.comment-composer-actions>span{color:var(--subtle);font-size:10px}.comment-composer-actions .solid-button{min-width:120px}
.comment-signin{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px;border:1px solid var(--line);border-radius:16px;background:var(--surface-2)}.comment-signin b,.comment-signin span{display:block}.comment-signin b{font-size:13px}.comment-signin span{margin-top:4px;color:var(--muted);font-size:11px}
.comments-empty{display:grid;place-items:center;gap:5px;min-height:150px;border:1px dashed var(--line);border-radius:16px;color:var(--muted);text-align:center}.comments-empty b{color:var(--text);font-size:13px}.comments-empty span{font-size:11px}
.storage-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:18px}.storage-summary>div{display:grid;gap:5px;padding:16px;border:1px solid var(--line);border-radius:15px;background:var(--surface)}.storage-summary span,.storage-summary small,.storage-node-usage span{color:var(--muted);font-size:10px}.storage-summary b{font-size:20px;letter-spacing:-.03em}.storage-node-usage{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:14px 0}.storage-node-usage>div{display:grid;gap:5px;padding:11px;border:1px solid var(--line);border-radius:11px;background:var(--surface-2)}.storage-node-usage b{font-size:11px;font-weight:600}
@media(max-width:760px){.storage-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.storage-node-usage{grid-template-columns:1fr}.comment-signin{align-items:stretch;flex-direction:column}.comment-signin .soft-button{width:100%}.comments-heading p{max-width:240px}.comment-composer-actions .solid-button{min-width:108px}}

/* Project cards: release facts align with the actions, not the top edge. */
.card-head{align-items:center}.card-aside{align-self:stretch;align-content:center}.card-aside .card-stats{justify-content:flex-end}.card-aside time{text-align:right}

/* Project editor reads as a project page, with clear sections and real file controls. */
.project-editor-modal{width:min(1000px,calc(100% - 32px));padding:30px;background:var(--bg)}
.project-editor-modal .modal-head{padding-bottom:20px;border-bottom:1px solid var(--line)}
.project-editor-modal form{padding-top:8px}.project-editor-modal .editor-grid{gap:16px}.editor-section{display:grid;gap:5px;margin:12px 0 0;padding:20px 0 4px;border-top:1px solid var(--line)}.editor-section b{font-size:18px;letter-spacing:-.025em}.editor-section small{color:var(--muted);font-size:12px;line-height:1.5}
.project-editor-modal .field[hidden],.project-editor-modal textarea[hidden]{display:none!important}.project-editor-modal .field textarea{min-height:110px}.project-editor-modal .dual-editor{display:block}.project-editor-modal .editor-field{width:100%;min-height:330px;padding:16px;border-radius:14px;line-height:1.6}.project-editor-modal .dropzone{position:relative;min-height:78px;display:flex;align-items:center;padding:12px;border-style:solid;background:var(--surface-2)}.project-editor-modal input[type=file]{max-width:100%;color:var(--muted);font-size:12px}.project-editor-modal input[type=file]::file-selector-button{height:38px;margin-right:11px;padding:0 13px;border:0;border-radius:10px;background:var(--text);color:var(--bg);font:700 12px Inter,sans-serif;cursor:pointer}.project-editor-modal input[type=file]:hover::file-selector-button{background:#fff}.project-editor-modal .editor-actions{position:sticky;bottom:-30px;margin:22px -30px -30px;padding:16px 30px;border-top:1px solid var(--line);background:rgba(11,12,15,.94);backdrop-filter:blur(16px)}
@media(max-width:760px){.project-editor-modal{width:calc(100% - 20px);margin:10px auto;padding:20px}.project-editor-modal .editor-grid{grid-template-columns:1fr}.project-editor-modal .editor-actions{bottom:-20px;margin:18px -20px -20px;padding:14px 20px}.editor-section{padding-top:16px}.project-editor-modal .editor-field{min-height:260px}}
.editor-icon-preview{position:relative;width:54px;height:54px;flex:0 0 54px;display:grid;place-items:center;overflow:hidden;border:1px solid var(--line-strong);border-radius:50%;background:var(--surface);color:var(--muted)}.editor-icon-preview img{width:100%;height:100%;object-fit:cover}.editor-icon-preview svg{width:25px;stroke:currentColor;stroke-width:1.7}.editor-icon-preview.loading:after{content:"";position:absolute;inset:7px;border:2px solid rgba(255,255,255,.16);border-top-color:var(--accent);border-radius:50%;animation:editor-spin .7s linear infinite}@keyframes editor-spin{to{transform:rotate(360deg)}}

/* Account and dashboard: keep the same readable rhythm as the catalog. */
.auth-shell{width:min(100%,760px);margin:0 auto;padding:44px 0 72px;place-items:start center}
.auth-card{width:min(500px,100%);padding:34px;border-radius:20px;background:var(--surface);box-shadow:none}
.auth-card h1{font-size:32px}.auth-card>p{max-width:360px;font-size:13px;line-height:1.55}.form-grid{gap:16px}.field>span{font-size:12px}.field input,.field select{height:46px;border-radius:12px}.form-error{padding-top:2px;font-size:12px;line-height:1.45}.auth-switch{margin-top:22px;font-size:12px}
.dashboard-head,.dashboard-grid{width:min(1180px,100%);margin-left:auto;margin-right:auto}.dashboard-head{padding:42px 0 26px}.dashboard-head h1{font-size:clamp(34px,4vw,48px)}.dashboard-grid{grid-template-columns:245px minmax(0,1fr);gap:34px;padding-top:30px}.dashboard-nav{position:sticky;top:100px;gap:7px;padding:10px;border:1px solid var(--line);border-radius:16px;background:var(--surface)}.dashboard-nav button{height:44px;padding:0 13px;border-radius:10px;font-size:13px}.dashboard-nav button:hover{background:var(--surface-2);color:var(--text)}.dashboard-content{padding:2px 0}.dashboard-cards{gap:14px}.dashboard-project{gap:18px;padding:18px;border-radius:16px;background:var(--surface)}.dashboard-project h3{font-size:16px}.dashboard-project p{font-size:12px;line-height:1.5}.dashboard-project .editor-actions{margin:0}.dashboard-content .moderation-card{padding:22px;border-radius:17px;background:var(--surface)}
@media(min-width:1500px){#app{width:min(1560px,100%);padding-left:40px;padding-right:40px}.dashboard-head,.dashboard-grid{width:min(1260px,100%)}}
@media(max-width:820px){.auth-shell{padding:28px 0 50px}.auth-card{padding:24px}.dashboard-head{padding-top:28px}.dashboard-grid{gap:18px;padding-top:18px}.dashboard-nav{position:static}.dashboard-project{padding:15px}.dashboard-content .moderation-card{padding:17px}}

@media(max-width:1320px){
  .market-layout .project-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:820px){
  .topbar{grid-template-columns:auto auto;min-height:74px;height:74px;padding:0 14px}
  .brand-mark{width:38px;height:38px}
  .brand-mark img{width:34px;height:25px}
  .brand-copy b{font-size:14px}
  .brand-copy small{font-size:9px}
  .top-actions{gap:5px}
  .header-link{display:none}
  .language{min-height:42px}
  .account-button{min-height:42px}
  #app{min-height:calc(100vh - 74px)}
  .market-layout{grid-template-columns:1fr;gap:18px}
  .filters{position:static;top:auto;gap:14px;margin:0;padding:14px}
  .filter-section{overflow:hidden}
  .filter-list{display:flex;gap:6px;overflow-x:auto;margin-right:-14px;padding-right:14px;scrollbar-width:none}
  .filter-option{width:auto;min-width:max-content;padding:0 13px;border:1px solid var(--line)}
  .filter-option:hover,.filter-option.active{border:1px solid var(--line-strong)}
  .filter-option.active:before{display:none}
  .market-layout .project-grid{grid-template-columns:1fr}
  .account-profile-preview{align-items:flex-start}
  .avatar-form{align-items:stretch;flex-direction:column}
}
@media(max-width:480px){
  .brand{gap:8px}
  .brand-copy b{font-size:13px}
  .brand-copy small{display:block}
  .language button{min-width:32px}
  .account-button{padding:0 7px}
  .account-button>span:last-child{display:none}
  .card-footer{align-items:flex-start;flex-direction:column}
  .card-actions{width:100%}
  .card-actions a{flex:1}
}

/* Modrinth-inspired marketplace layout */
:root{
  --bg:#0b0c0f;
  --surface:#17191e;
  --surface-2:#202228;
  --surface-3:#292c33;
  --text:#f5f6f7;
  --muted:#a4a7ae;
  --subtle:#6c7079;
  --line:#292c33;
  --line-strong:#3b3f48;
  --accent:#ef6297;
  --accent-2:#dc4e87;
  --accent-soft:rgba(239,98,151,.14);
  --radius:17px
}
html,body{background:var(--bg)}
body{font-size:16px}
.ambient{display:none}

.topbar{
  position:relative;
  top:auto;
  z-index:100;
  width:min(1660px,calc(100% - 48px));
  height:84px;
  min-height:84px;
  margin:0 auto;
  padding:0;
  display:grid;
  grid-template-columns:280px minmax(0,1fr) auto;
  gap:28px;
  border:0;
  background:transparent;
  backdrop-filter:none;
  -webkit-backdrop-filter:none
}
.brand{gap:12px}
.brand-mark{width:42px;height:42px}
.brand-mark img{width:40px;height:29px;opacity:1}
.brand-copy b{font-size:21px;letter-spacing:-.03em}
.brand-copy b em{color:var(--accent)}
.brand-copy small{margin-top:3px;font-size:11px}
.primary-navigation{display:flex;align-items:center;justify-content:center;gap:10px}
.primary-navigation .header-link{
  min-height:48px;
  padding:0 17px;
  border:0;
  border-radius:14px;
  border:1px solid transparent;
  background:var(--surface);
  color:var(--muted);
  font-size:15px;
  font-weight:650
}
.primary-navigation .header-link:hover{border-color:var(--line-strong);background:var(--surface-2);color:var(--text)}
.primary-navigation .header-link.active{border-color:rgba(235,92,151,.32);background:var(--surface-3);color:var(--text)}
.header-download{
  min-height:48px;
  display:inline-flex;
  align-items:center;
  gap:9px;
  padding:0 17px;
  border-radius:14px;
  background:var(--accent);
  color:#fff;
  font-size:15px;
  font-weight:700
}
.header-download:hover{background:var(--accent-2)}
.header-download svg{width:19px;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.top-actions{gap:10px}
.language{min-height:46px;padding:4px;border:0;border-radius:14px;background:var(--surface)}
.language button{min-width:38px;min-height:38px;border-radius:11px}
.language button.active{background:var(--surface-3)}
.account-button{min-height:48px;padding:0 15px 0 7px;border:0;border-radius:14px;background:var(--surface);font-size:15px}
.account-button:hover{background:var(--surface-2)}
.account-button .avatar{width:34px;height:34px;border-radius:11px;background:var(--surface-3)}

#app{width:100%;max-width:none;min-height:calc(100svh - 84px);padding:0 0 80px}

.market-home-hero{
  position:relative;
  isolation:isolate;
  min-height:min(820px,calc(100svh - 84px));
  display:flex;
  align-items:center;
  justify-content:center;
  max-width:none;
  padding:72px 24px 82px;
  border:0;
  overflow:hidden;
  background:#0d0e12
}
.market-home-hero:before{
  content:"";
  position:absolute;
  z-index:-1;
  inset:0;
  opacity:.78;
  background-image:linear-gradient(rgba(255,255,255,.07) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.07) 1px,transparent 1px);
  background-size:72px 72px;
  mask-image:linear-gradient(90deg,#000,transparent 62%);
  -webkit-mask-image:linear-gradient(90deg,#000,transparent 62%)
}
.market-home-hero:after{display:none}
.home-waves{position:absolute;z-index:0;inset:-18% -8% -10%;overflow:hidden;pointer-events:none;mask-image:linear-gradient(90deg,transparent 10%,#000 48%,#000);-webkit-mask-image:linear-gradient(90deg,transparent 10%,#000 48%,#000)}
.home-waves i{position:absolute;left:70%;top:58%;width:min(82vw,1120px);aspect-ratio:2.15/1;border:1px solid rgba(239,98,151,.46);border-radius:50%;opacity:0;transform:translate(-50%,-50%) rotate(-11deg) scale(.28);animation:home-wave-spread 12s linear infinite;will-change:transform,opacity}
.home-waves i:nth-child(2){animation-delay:-1.5s;border-color:rgba(255,255,255,.28)}
.home-waves i:nth-child(3){animation-delay:-3s;border-color:rgba(239,98,151,.4)}
.home-waves i:nth-child(4){animation-delay:-4.5s;border-color:rgba(255,255,255,.24)}
.home-waves i:nth-child(5){animation-delay:-6s;border-color:rgba(239,98,151,.36)}
.home-waves i:nth-child(6){animation-delay:-7.5s;border-color:rgba(255,255,255,.22)}
.home-waves i:nth-child(7){animation-delay:-9s;border-color:rgba(239,98,151,.32)}
.home-waves i:nth-child(8){animation-delay:-10.5s;border-color:rgba(255,255,255,.2)}
@keyframes home-wave-spread{0%{opacity:0;transform:translate(-50%,-50%) rotate(-11deg) scale(.28)}12%{opacity:.95}72%{opacity:.42}100%{opacity:0;transform:translate(-50%,-50%) rotate(-11deg) scale(1.48)}}
.home-inner{width:calc(100% - 48px);max-width:1400px;flex:0 1 1400px;display:block;align-items:end;gap:0}
.home-inner{position:relative;z-index:1}
.home-index{display:none!important}
.home-copy{max-width:1120px}
.home-kicker{display:flex;align-items:center;gap:9px;margin:0 0 24px;color:var(--muted);font-size:13px;font-weight:650;text-transform:uppercase;letter-spacing:.1em}
.home-kicker i{width:7px;height:7px;border-radius:50%;background:var(--accent)}
.market-home-hero h1{max-width:1020px;margin:0;font-size:clamp(58px,6.2vw,104px);font-weight:560;line-height:.96;letter-spacing:-.06em}
.market-home-hero h1 span{color:var(--accent);font-weight:700}
.home-copy>p:not(.home-kicker){max-width:780px;margin:30px 0 0;color:var(--muted);font-size:clamp(17px,1.25vw,21px);line-height:1.55}
.market-home-actions{display:flex;gap:12px;margin-top:34px}
.market-home-actions .solid-button,.market-home-actions .ghost-button{min-height:54px;padding:0 21px;border-radius:14px;font-size:16px}
.market-home-actions .solid-button{background:var(--accent);color:#fff}
.market-home-actions .ghost-button{background:var(--surface)}
.market-home-actions svg{width:19px}
.home-manifest{align-self:stretch;display:flex;flex-direction:column;justify-content:flex-end;gap:0;padding:28px;border:1px solid var(--line);border-radius:20px;background:rgba(23,25,30,.72)}
.home-manifest img{width:82px;height:58px;margin:0 0 auto;object-fit:contain;filter:invert(1);opacity:.88}
.home-manifest div{display:grid;gap:4px;padding:17px 0;border-top:1px solid var(--line)}
.home-manifest span{color:var(--subtle);font-size:11px;text-transform:uppercase;letter-spacing:.08em}
.home-manifest b{font-size:15px;font-weight:650}
.home-section{width:min(1500px,calc(100% - 48px));margin:0 auto;padding:62px 0;border:0}
.home-section-head{margin-bottom:22px}
.home-section-head h2{font-size:34px}
.home-section-label{margin:0 0 7px;color:var(--accent);font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.12em}
.home-projects{display:grid;grid-template-columns:1fr;gap:12px}

.content-tabs{
  width:min(1660px,calc(100% - 48px));
  min-height:64px;
  display:flex;
  align-items:center;
  gap:7px;
  margin:0 auto 24px;
  padding:7px;
  border:1px solid var(--line);
  border-radius:22px;
  background:var(--surface);
  overflow-x:auto;
  scrollbar-width:none
}
.content-tabs::-webkit-scrollbar{display:none}
.content-tabs .filter-option{
  width:auto;
  min-width:max-content;
  min-height:48px;
  padding:0 20px;
  border:0;
  border-radius:15px;
  background:transparent;
  color:var(--text);
  font-size:15px;
  font-weight:700
}
.content-tabs .filter-option:hover{background:var(--surface-2)}
.content-tabs .filter-option.active{background:var(--accent);color:#fff}
.content-tabs .filter-option:before,.content-tabs .filter-option i,.content-tabs .filter-option span:last-child{display:none}

.market-layout{
  width:min(1660px,calc(100% - 48px));
  display:grid;
  grid-template-columns:340px minmax(0,1fr);
  align-items:start;
  gap:16px;
  margin:0 auto;
  padding:24px 0 0
}
.filters{position:sticky;top:18px;display:grid;gap:16px;margin:0;padding:0;border:0;background:transparent}
.filter-panel{padding:22px;border:1px solid var(--line);border-radius:20px;background:var(--surface)}
.filter-title{margin:0 0 16px;color:var(--text);font-size:17px;font-weight:750;letter-spacing:-.01em;text-transform:none}
.filter-list{display:grid;gap:3px}
.filters .filter-option{
  position:relative;
  width:100%;
  min-height:44px;
  justify-content:flex-start;
  padding:0 13px;
  border:0;
  border-radius:11px;
  background:transparent;
  color:var(--muted);
  font-size:14px;
  text-align:left
}
.filters .filter-option:hover{background:var(--surface-2);color:var(--text)}
.filters .filter-option.active{background:var(--surface-3);color:var(--text)}
.filters .filter-option.active:before{content:"";position:absolute;left:0;top:9px;bottom:9px;width:4px;border-radius:4px;background:var(--accent)}
.filters .filter-option i{display:none}
.catalog-content{min-width:0}
.catalog-main-search{
  height:64px;
  display:flex;
  align-items:center;
  gap:12px;
  padding:0 18px;
  border:1px solid var(--line);
  border-radius:18px;
  background:var(--surface-2)
}
.catalog-main-search:focus-within{border-color:var(--line-strong)}
.catalog-main-search svg{width:23px;flex:0 0 auto;stroke:var(--muted);stroke-width:1.8;stroke-linecap:round}
.catalog-main-search input{min-width:0;width:100%;border:0;outline:0;background:transparent;color:var(--text);font-size:18px}
.catalog-main-search input::placeholder{color:var(--subtle)}
.catalog-main-search kbd{padding:4px 8px;border:1px solid var(--line-strong);border-radius:8px;color:var(--subtle);font:650 11px Inter}
.results-toolbar{min-height:66px;display:flex;align-items:center;justify-content:flex-start;gap:10px;margin:0}
.toolbar-select{height:48px;display:flex;align-items:center;gap:7px;padding:0 8px 0 16px;border-radius:14px;background:var(--surface-2);color:var(--muted);font-size:14px;font-weight:650}
.sort-menu{position:relative}
.sort-trigger{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:40px;
  padding:0 12px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--surface);
  color:var(--text);
  font-size:14px;
  font-weight:650;
  cursor:pointer;
}
.sort-trigger svg{width:14px;height:14px;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.sort-options{
  position:absolute;
  top:calc(100% + 8px);
  right:0;
  z-index:40;
  display:grid;
  min-width:220px;
  padding:6px;
  border:1px solid var(--line);
  border-radius:14px;
  background:rgba(18,16,24,.98);
  box-shadow:0 16px 36px rgba(0,0,0,.35);
}
.sort-options[hidden]{display:none!important}
.sort-option{
  min-height:40px;
  padding:0 12px;
  border:0;
  border-radius:10px;
  background:transparent;
  color:var(--muted);
  text-align:left;
  font-size:13px;
  cursor:pointer;
}
.sort-option:hover{background:var(--surface-2);color:var(--text)}
.sort-option.active{background:var(--accent-soft);color:var(--text)}
.toolbar-select{display:flex;align-items:center;gap:10px}
.toolbar-count{margin-left:6px;color:var(--muted);font-size:14px}
.results-toolbar .pagination{margin:0 0 0 auto}
.page-button{width:42px;height:42px;border:0;border-radius:50%;background:transparent;color:var(--muted)}
.page-button:hover{background:var(--surface-2);color:var(--text)}
.page-button.active{background:var(--accent);color:#fff}
.results.updating{opacity:.58;filter:none}

.project-list{display:grid;gap:12px}
.project-card,.home-projects .project-card{
  min-height:0;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:0;
  padding:0;
  border:1px solid var(--line);
  border-radius:20px;
  background:var(--surface);
  overflow:hidden;
  transition:border-color .16s,background .16s
}
.project-card:before{display:none}
.project-card:hover{transform:none;border-color:var(--line-strong);background:var(--surface-2)}
.card-head{
  min-width:0;
  display:grid;
  grid-template-columns:96px minmax(0,1fr) auto;
  align-items:center;
  gap:18px;
  padding:20px;
  color:inherit
}
.card-head>.project-icon,.project-card>.project-icon,.home-projects .project-card>.project-icon{
  width:96px;
  height:96px;
  flex-basis:96px;
  border:1px solid var(--line-strong);
  border-radius:18px;
  background:var(--surface-2)
}
.project-icon svg{width:42px}
.card-main{min-width:0}
.card-title{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
.project-card h3{margin:0;font-size:21px;font-weight:750;line-height:1.2;letter-spacing:-.025em}
.author{display:inline;color:var(--muted);font-size:14px}
.project-card p{min-height:0;margin:7px 0 13px;color:var(--muted);font-size:15px;line-height:1.4}
.project-card .tags{padding:0}
.tag{padding:5px 9px;border:1px solid var(--line-strong);border-radius:10px;background:var(--surface-2);color:var(--muted);font-size:11px;font-weight:650}
.tag.compat{border-color:rgba(79,109,245,.35);background:var(--accent-soft);color:#b9c5ff}
.card-aside{min-width:180px;display:grid;justify-items:end;align-content:center;align-self:center;gap:10px;color:var(--muted)}
.card-aside .card-stats{margin:0;padding:0;gap:15px;font-size:12px}
.card-aside time{font-size:12px}
.card-actions{display:flex;align-items:center;align-self:center;gap:8px;padding:20px 18px 20px 0}
.card-download,.card-action{height:44px;min-height:44px;padding:0 14px;border:1px solid var(--line-strong);border-radius:12px;background:var(--surface-2);color:var(--text);font-size:13px;font-weight:750}
.card-action{display:inline-flex;align-items:center;justify-content:center;border-color:var(--accent);background:var(--accent);color:#fff}
.card-delete{
  width:44px;
  height:44px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(210,110,110,.35);
  border-radius:12px;
  background:rgba(120,40,40,.22);
  color:#efb0b0;
}
.card-delete svg{width:18px;height:18px;stroke:currentColor;stroke-width:1.8}
.card-delete:hover{background:rgba(150,50,50,.35);color:#ffd0d0}
.card-download:hover{background:var(--surface-3)}
.card-action:hover{background:var(--accent-2)}
.empty-state{min-height:360px;border-color:var(--line-strong);background:var(--surface)}

@media(max-width:1180px){
  .topbar{grid-template-columns:auto 1fr auto}
  .primary-navigation .header-link{display:none}
  .market-layout{grid-template-columns:280px minmax(0,1fr)}
  .card-head{grid-template-columns:82px minmax(0,1fr)}
  .card-head>.project-icon{width:82px;height:82px;flex-basis:82px}
  .card-aside{grid-column:2;min-width:0;justify-items:start;display:flex}
  .card-aside time{display:none}
  .project-card{grid-template-columns:minmax(0,1fr)}
  .card-actions{justify-content:flex-end;padding:0 18px 18px}
}
@media(max-width:820px){
  .topbar{width:calc(100% - 28px);height:72px;min-height:72px;grid-template-columns:auto 1fr auto;gap:8px}
  .brand-copy small{display:none}
  .brand-copy b{font-size:15px}
  .brand-mark{width:36px;height:36px}
  .brand-mark img{width:34px}
  .primary-navigation{justify-content:flex-end}
  .header-download{width:44px;min-height:44px;padding:0;justify-content:center}
  .header-download span{display:none}
  .language{display:flex}
  .account-button{min-height:44px;padding:0 6px}
  .account-button>span:last-child{display:none}
  #app{min-height:calc(100svh - 72px)}
  .market-home-hero{min-height:calc(100svh - 72px);padding:44px 18px 62px}
  .home-symbol{width:112px;height:112px;margin-bottom:30px;border-width:12px}
  .home-symbol img{width:62px;height:46px}
  .market-home-hero h1{font-size:clamp(48px,14vw,68px)}
  .market-home-hero>p{font-size:17px}
  .market-home-actions{width:min(390px,100%);flex-direction:column}
  .market-home-actions a{width:100%}
  .home-section{width:calc(100% - 28px);padding:42px 0}
  .content-tabs{width:calc(100% - 28px);min-height:58px;margin-bottom:14px;border-radius:18px}
  .content-tabs .filter-option{min-height:42px;padding:0 15px;font-size:13px}
  .market-layout{width:calc(100% - 28px);grid-template-columns:1fr;gap:14px;padding-top:14px}
  .filters{position:static;display:flex;gap:8px;overflow-x:auto;padding-bottom:2px;scrollbar-width:none}
  .filters::-webkit-scrollbar{display:none}
  .filter-panel{min-width:max-content;padding:10px;border-radius:15px}
  .filter-panel .filter-title{display:none}
  .filter-list{display:flex;gap:4px}
  .filters .filter-option{width:auto;min-width:max-content;min-height:40px;padding:0 12px;border:1px solid transparent}
  .filters .filter-option.active{border-color:var(--line-strong)}
  .filters .filter-option.active:before{display:none}
  .catalog-main-search{height:56px;border-radius:15px}
  .catalog-main-search input{font-size:16px}
  .results-toolbar{align-items:flex-start;flex-wrap:wrap;padding:9px 0}
  .toolbar-count{order:3;width:100%;margin:0}
  .results-toolbar .pagination{margin-left:auto}
  .card-head{grid-template-columns:68px minmax(0,1fr);gap:14px;padding:16px}
  .card-head>.project-icon{width:68px;height:68px;flex-basis:68px;border-radius:15px}
  .project-icon svg{width:31px}
  .project-card h3{font-size:18px}
  .author{font-size:12px}
  .project-card p{font-size:13px}
  .card-aside{grid-column:1/-1}
  .card-actions{justify-content:stretch;padding:0 16px 16px}
  .card-actions a{flex:1}
}
@media(max-width:520px){
  .brand-copy{display:none}
  .market-home-hero:before{background-size:110px 110px;background-position:0 0,55px 0}
  .market-home-hero h1{font-size:44px}
  .market-home-hero h1 span{margin-top:9px}
  .home-section-head{align-items:flex-start;gap:12px;flex-direction:column}
  .toolbar-select{width:100%}
  .sort-select{flex:1;min-width:0}
  .results-toolbar .pagination{margin-left:0}
  .card-title{display:block}
  .author{display:block;margin-top:3px}
  .card-head{grid-template-columns:58px minmax(0,1fr)}
  .card-head>.project-icon{width:58px;height:58px;flex-basis:58px}
  .project-card .tags{grid-column:1/-1}
  .card-aside .card-stats{flex-wrap:wrap}
}

/* Full-bleed marketplace hero: the animation reaches both viewport edges;
   only the copy receives gutters. */
#app:has(.market-home-hero){
  width:100%!important;
  max-width:none!important;
  margin:0!important;
  padding-left:0!important;
  padding-right:0!important;
}
.market-home-hero{
  width:100vw!important;
  max-width:none!important;
  margin-left:calc(50% - 50vw)!important;
  padding-left:0!important;
  padding-right:0!important;
}
.market-home-hero .home-inner{
  width:min(1660px,100%)!important;
  margin:0 auto!important;
  padding-left:24px!important;
  padding-right:24px!important;
  box-sizing:border-box!important;
}

.mobile-menu-toggle,.mobile-navigation{display:none}

@media(max-width:900px){
  .topbar{
    grid-template-columns:minmax(0,1fr) auto auto auto!important;
  }
  .mobile-menu-toggle{
    width:42px;
    height:42px;
    display:inline-grid;
    grid-column:2;
    grid-row:1;
    place-items:center;
    border:0;
    border-radius:12px;
    background:var(--surface);
    color:var(--text);
  }
  .mobile-menu-toggle svg{
    width:20px;
    stroke:currentColor;
    stroke-width:1.9;
    stroke-linecap:round;
  }
  .primary-navigation{grid-column:3!important;grid-row:1!important}
  .top-actions{grid-column:4!important;grid-row:1!important}
  .mobile-navigation{
    position:fixed;
    z-index:200;
    top:72px;
    left:12px;
    right:12px;
    padding:8px;
    border:1px solid var(--line-strong);
    border-radius:16px;
    background:rgba(17,16,23,.96);
    box-shadow:0 18px 40px rgba(0,0,0,.35);
  }
  .mobile-navigation:not([hidden]){display:grid;gap:5px}
  .mobile-navigation a{
    min-height:48px;
    display:flex;
    align-items:center;
    padding:0 14px;
    border-radius:11px;
    color:var(--text);
    font-size:15px;
    font-weight:650;
  }
  .mobile-navigation a:hover,.mobile-navigation a:active{background:var(--surface-2)}
  .market-home-hero .home-inner{padding-left:14px!important;padding-right:14px!important}
  .home-projects .project-card{grid-template-columns:minmax(0,1fr)!important}
  .home-projects .card-head{grid-template-columns:68px minmax(0,1fr)!important;gap:14px!important;padding:16px!important}
  .home-projects .card-aside{grid-column:1/-1!important;display:flex!important;justify-items:start!important}
  .home-projects .card-actions{justify-content:stretch!important;padding:0 16px 16px!important}
}
@media(max-width:560px){
  .market-home-hero .home-inner{padding-left:14px!important;padding-right:14px!important}
}
@media(max-height:800px) and (min-width:821px){
  .market-home-hero{padding-top:32px;padding-bottom:38px}
  .home-symbol{width:112px;height:112px;margin-bottom:24px;border-width:12px}
  .home-symbol img{width:63px;height:46px}
  .market-home-hero h1{font-size:58px}
  .market-home-hero h1 span{margin-top:8px}
  .market-home-hero>p{margin-top:16px;font-size:18px}
  .market-home-actions{margin-top:20px}
}

@media(max-width:980px){
  .home-inner{grid-template-columns:58px minmax(0,1fr);gap:28px}
  .home-manifest{display:none}
}
@media(max-width:820px){
  .market-home-hero{min-height:calc(100svh - 72px);padding:48px 18px 58px}
  .home-inner{width:100%;display:block}
  .home-index{width:100%;height:auto;display:flex;align-items:center;margin-bottom:54px;padding-top:12px;writing-mode:initial}
  .home-copy{max-width:none}
  .home-kicker{margin-bottom:18px}
  .market-home-hero h1{font-size:clamp(44px,12vw,70px);line-height:1}
  .home-copy>p:not(.home-kicker){margin-top:22px;font-size:16px}
  .market-home-actions{width:min(430px,100%);margin-top:28px;flex-direction:column}
  .market-home-actions a{width:100%}
  .home-waves{mask-image:linear-gradient(180deg,transparent 4%,#000 32%,#000);-webkit-mask-image:linear-gradient(180deg,transparent 4%,#000 32%,#000)}
  .home-waves i{left:68%;top:68%;width:920px}
}
@media(max-height:800px) and (min-width:821px){
  .home-inner{align-items:center}
  .home-kicker{margin-bottom:14px}
  .market-home-hero h1{font-size:clamp(50px,5.3vw,74px)}
  .home-copy>p:not(.home-kicker){margin-top:18px;font-size:16px}
  .market-home-actions{margin-top:20px}
}

/* Project detail */
.project-page{width:min(1660px,calc(100% - 48px));margin:0 auto;padding:30px 0 88px}
.project-breadcrumb{display:flex;align-items:center;gap:9px;margin:2px 0 32px;color:var(--subtle);font-size:13px}
.project-breadcrumb a:hover{color:var(--text)}
.project-header{display:flex;align-items:center;justify-content:space-between;gap:44px;padding:0 0 36px;border-bottom:1px solid var(--line)}
.project-identity{min-width:0;display:flex;align-items:flex-start;gap:22px}
.project-identity>.project-icon{width:112px;height:112px;flex:0 0 112px;border:1px solid var(--line-strong);border-radius:22px;background:var(--surface)}
.project-identity>.project-icon svg{width:49px}
.project-identity h1{margin:11px 0 8px;font-size:clamp(42px,4vw,66px);font-weight:700;line-height:1;letter-spacing:-.05em}
.project-identity p{max-width:860px;margin:0;color:var(--muted);font-size:17px;line-height:1.5}
.project-header-stats{display:flex;align-items:center;flex-wrap:wrap;gap:18px;margin-top:15px;color:var(--muted);font-size:13px}
.project-header-stats>span{display:inline-flex;align-items:center;gap:6px}
.project-header-stats svg{width:17px;stroke:currentColor;fill:none;stroke-width:1.8}
.project-header-stats a{color:var(--text)}
.project-header-actions{width:420px;flex:0 0 420px;display:grid;gap:10px}
.project-download{min-height:58px;display:flex;align-items:center;justify-content:center;gap:10px;border-radius:15px;background:var(--accent);color:#fff;font-size:16px;font-weight:700}
.project-download:hover{background:var(--accent-2)}
.project-download svg{width:20px;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.project-download-meta{display:flex;align-items:center;justify-content:center;gap:7px;margin-top:8px;color:var(--subtle);font-size:11px;line-height:1.3}
.project-download-meta i{font-style:normal;opacity:.65}
.project-action-row{display:flex;align-items:stretch;gap:8px;width:100%}
.project-action-row .reaction-button{width:52px;height:52px;flex:0 0 52px;border:1px solid var(--line);border-radius:14px;background:var(--surface);color:var(--muted)}
.project-action-row .reaction-button:hover,.project-action-row .reaction-button.active{border-color:var(--line-strong);background:var(--surface-2);color:var(--text)}
.project-action-row .reaction-button.active svg{fill:currentColor}
.project-action-row .install-project{flex:1 1 auto;min-width:0}
.install-project{min-height:52px;display:flex;align-items:center;justify-content:center;padding:0 17px;border:1px solid var(--line-strong);border-radius:14px;background:var(--surface);font-size:14px;font-weight:700}
.install-project:hover{background:var(--surface-2)}
.project-layout{display:grid;grid-template-columns:minmax(0,1fr) 350px;align-items:start;gap:28px;padding-top:24px}
.project-body{min-width:0}
.project-tabs{position:static;top:auto;width:max-content;display:flex;gap:4px;margin:0 0 18px;padding:5px;border:1px solid var(--line);border-radius:17px;background:var(--surface);backdrop-filter:none;-webkit-backdrop-filter:none}
.project-tab{min-height:44px;padding:0 17px;border:0;border-radius:12px;background:transparent;color:var(--muted);font-size:13px;font-weight:700}
.project-tab.active{border:0;background:var(--surface-3);color:var(--text)}
.project-content-card{min-height:440px;padding:28px 30px;border:1px solid var(--line);border-radius:20px;background:var(--surface)}
.project-content-card .markdown{max-width:1000px;font-size:15px;line-height:1.72}
.project-content-card .markdown h1{margin-top:0;padding-bottom:14px;border-bottom:1px solid var(--line);font-size:34px}
.project-content-card .markdown h2{padding-bottom:9px;border-bottom:1px solid var(--line);font-size:24px}
.project-sidebar{position:sticky;top:18px;display:grid;gap:14px}
.project-sidebar .side-card{padding:22px;border:1px solid var(--line);border-radius:20px;background:var(--surface)}
.project-sidebar .side-card h2{margin:0 0 18px;font-size:20px;letter-spacing:-.025em}
.project-compatibility p{margin:17px 0 8px;color:var(--muted);font-size:13px}
.project-compatibility p:first-of-type{margin-top:0}
.project-sidebar .side-meta{gap:0}
.project-sidebar .meta-row{padding:13px 0;border-top:1px solid var(--line);font-size:13px}
.project-sidebar .meta-row:first-of-type{border-top:0}
.report-project{min-height:50px;border:1px solid var(--line);border-radius:15px;background:transparent;color:var(--muted);font-size:14px;font-weight:650}
.report-project:hover{border-color:var(--line-strong);background:var(--surface);color:var(--text)}

/* Footer */
.site-footer{border-top:1px solid var(--line);background:#090a0d}
.footer-inner{width:min(1500px,calc(100% - 48px));display:grid;grid-template-columns:minmax(0,1fr) auto;gap:80px;margin:0 auto;padding:56px 0 46px}
.footer-about{max-width:520px}
.footer-brand{display:inline-flex;align-items:center;gap:13px}
.footer-brand img{width:48px;height:34px;object-fit:contain;filter:invert(1)}
.footer-brand b,.footer-brand small{display:block}.footer-brand b{font-size:18px}.footer-brand small{margin-top:3px;color:var(--subtle);font-size:11px}
.footer-about p{margin:20px 0 0;color:var(--muted);font-size:14px;line-height:1.65}
.footer-donation{max-width:620px;display:flex;align-items:center;justify-content:space-between;gap:22px;margin-top:26px;padding:18px 20px;border:1px solid var(--line);border-radius:16px;background:var(--surface)}
.footer-donation b,.footer-donation span{display:block}.footer-donation b{font-size:14px}.footer-donation span{max-width:430px;margin-top:5px;color:var(--muted);font-size:12px;line-height:1.5}
.donation-button{min-height:46px;flex:0 0 auto;padding:0 18px;border:1px solid var(--accent);border-radius:12px;background:var(--accent);color:#fff;font:650 13px/1 Inter,sans-serif}.donation-button:hover{background:var(--accent-2)}
.donation-methods{display:grid;grid-template-columns:1fr 1fr;gap:9px}.donation-method{min-height:48px;border:1px solid var(--line);border-radius:12px;background:var(--surface-2);color:var(--muted);font-weight:650}.donation-method.active{border-color:var(--accent);background:var(--accent-soft);color:var(--text)}
.donation-amounts{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:18px}.donation-amounts button{min-height:42px;border:1px solid var(--line);border-radius:11px;background:var(--surface-2);color:var(--text);font-weight:650}.donation-amounts button:hover{border-color:var(--line-strong)}.donation-amounts button.active{border-color:var(--accent);background:var(--accent-soft);color:var(--text)}
.footer-links{display:grid;grid-template-columns:repeat(2,minmax(150px,1fr));gap:58px}
.footer-links div{display:grid;align-content:start;gap:11px}
.footer-links b{margin-bottom:5px;color:var(--subtle);font-size:11px;text-transform:uppercase;letter-spacing:.1em}
.footer-links a{color:var(--muted);font-size:14px}.footer-links a:hover{color:var(--text)}
.footer-bottom{width:min(1500px,calc(100% - 48px));display:flex;align-items:center;justify-content:space-between;margin:0 auto;padding:18px 0 24px;border-top:1px solid var(--line);color:var(--subtle);font-size:11px;text-transform:uppercase;letter-spacing:.09em}

@media(max-width:1000px){
  .project-header{align-items:flex-start;flex-direction:column}
  .project-header-actions{width:100%;flex-basis:auto}
  .project-layout{grid-template-columns:minmax(0,1fr) 300px}
}
@media(max-width:760px){
  .project-page{width:calc(100% - 28px);padding-top:20px}
  .project-breadcrumb{margin-bottom:22px}
  .project-header{gap:26px;padding-bottom:26px}
  .project-identity{gap:14px}
  .project-identity>.project-icon{width:72px;height:72px;flex-basis:72px;border-radius:17px}
  .project-identity h1{margin-top:7px;font-size:36px}
  .project-identity p{font-size:14px}
  .project-header-stats{grid-column:1/-1}
  .project-header-actions{display:grid;grid-template-columns:1fr}
  .project-layout{grid-template-columns:1fr}
  .project-sidebar{position:static;grid-row:1}
  .project-tabs{max-width:100%;overflow-x:auto}
  .project-tab{min-width:max-content}
  .project-content-card{min-height:320px;padding:21px 19px}
  .footer-inner{width:calc(100% - 28px);grid-template-columns:1fr;gap:34px;padding:42px 0 34px}
  .footer-links{gap:28px}
  .footer-donation{align-items:stretch;flex-direction:column}.donation-button{width:100%}
  .footer-bottom{width:calc(100% - 28px);align-items:flex-start;flex-direction:column;gap:7px}
}
@media(prefers-reduced-motion:reduce){
  .home-waves i{animation:none!important;opacity:.16;transform:translate(-50%,-50%) rotate(-11deg) scale(1)}
  .home-waves i:nth-child(n+3){display:none}
}

.download-queue{position:fixed;right:20px;bottom:20px;z-index:10000;width:min(390px,calc(100vw - 32px));padding:10px;border:1px solid var(--line);border-radius:18px;background:rgba(12,11,15,.9);box-shadow:0 18px 60px rgba(0,0,0,.42);backdrop-filter:blur(18px)}
.download-queue-item{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:11px 12px;border-radius:12px;color:var(--subtle)}
.download-queue-item+.download-queue-item{border-top:1px solid var(--line)}
.download-queue-item.active{background:var(--surface-2);color:var(--text)}
.download-queue-item div{min-width:0}
.download-queue-item b,.download-queue-item small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.download-queue-item b{font-size:13px}
.download-queue-item small{margin-top:3px;color:var(--muted);font-size:11px}
.download-queue-item>span{font:600 12px/1 Inter,sans-serif}

/* Final production polish */
.avatar,.account-button .avatar,.profile-avatar,.comment-avatar .avatar{border-radius:50%}
.otp-inputs{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px;margin:8px 0}
.otp-inputs input{width:100%;aspect-ratio:1;border:1px solid var(--line);border-radius:12px;background:var(--surface-2);color:var(--text);font:600 22px/1 Inter,sans-serif;text-align:center;outline:0}
.otp-inputs input:focus{border-color:var(--accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 18%,transparent)}
.account-button.guest{padding-inline:14px}
.account-button.guest .account-login-icon{width:18px;height:18px;flex:0 0 auto;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.project-back{display:inline-flex;align-items:center;gap:8px;color:var(--text);font-weight:600}
.project-back svg{width:19px;height:19px;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;transition:transform .18s ease}
.project-back:hover svg{transform:translateX(-3px)}
.catalog-sentinel{height:2px;width:100%}
.recover-shell{align-items:flex-start}
.recover-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px;width:min(920px,100%)}
.recover-grid .auth-card{width:100%}
.recover-grid .secondary-recovery{grid-column:1/-1}
@media(max-width:720px){.recover-grid{grid-template-columns:1fr}.recover-grid .secondary-recovery{grid-column:auto}}
.home-inner{width:calc(100% - 64px);max-width:1600px}

/* Projects are always MIT. This also hides the field in an editor opened from
   an older cached markup response. */
.editor-grid label:has(select[name="license"]){display:none}

/* Final desktop geometry: keep product content broad, and give account pages a real gutter. */
#app:has(.dashboard-head),#app:has(.auth-shell){width:min(1440px,calc(100% - 64px));margin:0 auto;padding-left:0;padding-right:0}
#app:has(.dashboard-head) .dashboard-head,#app:has(.dashboard-head) .dashboard-grid{width:min(1320px,100%)}
@media(min-width:1800px){.home-inner{max-width:1680px}#app:has(.dashboard-head),#app:has(.auth-shell){width:min(1560px,calc(100% - 80px))}#app:has(.dashboard-head) .dashboard-head,#app:has(.dashboard-head) .dashboard-grid{width:min(1440px,100%)}}
@media(max-width:760px){.home-inner{width:100%;max-width:none}#app:has(.dashboard-head),#app:has(.auth-shell){width:100%;padding-left:14px;padding-right:14px}}
.home-section{width:min(1240px,calc(100% - 48px))}
@media(max-width:820px){.home-section{width:calc(100% - 28px)}}

/* UX polish batch */
.avatar,
.account-button .avatar,
.profile-avatar,
.comment-avatar .avatar{
  overflow:hidden;
  border-radius:50%!important;
}
.avatar img,
.account-button .avatar img,
.profile-avatar img,
.comment-avatar .avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  border-radius:50%;
}

.dashboard-grid{align-items:start}
.dashboard-nav{
  align-self:start;
  height:fit-content;
  max-height:none;
}

.page-shell,
.editor-page,
.review-page,
#app:has(.dashboard-head) .dashboard-head,
#app:has(.dashboard-head) .dashboard-grid,
#app:has(.auth-shell) .auth-shell,
.home-section,
.market-layout,
.project-page{
  width:min(1660px,calc(100% - 48px))!important;
  margin-left:auto;
  margin-right:auto;
}
#app:has(.dashboard-head),
#app:has(.auth-shell){
  width:100%!important;
  max-width:none!important;
  padding-left:0!important;
  padding-right:0!important;
}

.home-inner{
  width:min(1660px,calc(100% - 48px))!important;
  max-width:none!important;
  display:block!important;
  grid-template-columns:none;
  gap:0;
}
.market-home-hero{padding-left:0;padding-right:0}
.market-home-hero h1{
  max-width:none;
  white-space:normal;
}
.home-copy{max-width:none}

.editor-actions .ghost-button.modal-close,
.wizard-actions .ghost-button{
  min-width:120px;
}

.field textarea,
.editor-field,
textarea[data-autogrow]{
  resize:none!important;
  overflow:hidden;
}

.wizard-form{display:grid;gap:22px;padding:28px 0 80px}
.wizard-hero{
  display:grid;
  grid-template-columns:112px minmax(0,1fr);
  gap:20px;
  align-items:start;
  padding:22px;
  border:1px solid var(--line);
  border-radius:22px;
  background:var(--surface);
}
.wizard-icon{
  position:relative;
  width:112px;
  height:112px;
  display:grid;
  place-items:center;
  border:1px dashed var(--line-strong);
  border-radius:28px;
  background:var(--surface-2);
  color:var(--muted);
  font-size:42px;
  overflow:hidden;
  cursor:pointer;
}
.wizard-icon img{width:100%;height:100%;object-fit:cover}
.wizard-icon input{position:absolute;inset:0;opacity:0;cursor:pointer}
.ghost-field{display:grid;gap:8px}
.ghost-field>span{color:var(--subtle);font-size:11px;text-transform:uppercase;letter-spacing:.08em}
.ghost-input{
  width:100%;
  border:0;
  outline:0;
  background:transparent;
  color:var(--text);
  font:inherit;
}
.ghost-input.title-input{font-size:42px;font-weight:600;letter-spacing:-.04em}
.ghost-input::placeholder{color:#5f5868}
.char-count{color:var(--subtle);font-size:11px}
.wizard-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:8px}
.wizard-step.is-locked{opacity:.55;pointer-events:none}
.chip-row{display:flex;flex-wrap:wrap;gap:8px}
.chip{
  min-height:38px;
  padding:0 14px;
  border:1px solid var(--line);
  border-radius:999px;
  background:transparent;
  color:var(--muted);
}
.chip.active{background:var(--accent-soft);border-color:rgba(180,154,241,.35);color:#d7c6f5}
.md-editor{display:grid;gap:8px}
.md-toolbar{display:flex;flex-wrap:wrap;gap:6px}
.md-toolbar button{
  min-height:34px;
  padding:0 10px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--surface-2);
  color:var(--muted);
}
.md-preview{
  min-height:220px;
  padding:16px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#0f0d14;
}
.body-field{min-height:220px}
.dependency-picker{display:grid;gap:10px}
.dependency-results,.dependency-selected{display:grid;gap:8px}
.dependency-result,.dependency-card,.link-row{
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--surface-2);
  text-align:left;
}
.dependency-result .project-icon{width:40px;height:40px}
.dependency-card select,.link-row select,.link-row input{
  min-height:40px;
  border:1px solid var(--line);
  border-radius:10px;
  background:#0f0d14;
  color:var(--text);
}
.link-row input{flex:1}
.link-list{display:grid;gap:8px;margin-bottom:10px}

.review-page{padding:28px 0 80px;display:grid;gap:18px}
.review-head{display:flex;justify-content:space-between;gap:20px;align-items:end}
.review-switch{display:flex;gap:8px}
.review-switch button{
  min-height:40px;
  padding:0 14px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--surface);
  color:var(--muted);
}
.review-switch button.active{background:var(--accent-soft);color:var(--text)}
.review-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:18px}
.moderation-project-card{display:grid;gap:14px}
.moderation-card-meta{display:flex;justify-content:space-between;gap:12px;align-items:center}
.report-card .lead{margin-top:12px}

@media(max-width:900px){
  .wizard-hero,.review-layout{grid-template-columns:1fr}
  .ghost-input.title-input{font-size:32px}
  .page-shell,.editor-page,.review-page,.home-section,.market-layout,.project-page,
  #app:has(.dashboard-head) .dashboard-head,
  #app:has(.dashboard-head) .dashboard-grid{width:calc(100% - 28px)!important}
  .home-inner{width:calc(100% - 28px)!important;grid-template-columns:1fr}
}

/* --- UX polish: cropper, account, wizard, donations --- */
.market-home-hero h1{
  line-height:1.05;
}
.market-home-hero h1 span{
  display:block;
  margin-top:.18em;
}

.dashboard-projects-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}
.dashboard-projects-grid .dashboard-project{
  grid-template-columns:auto minmax(0,1fr);
  grid-template-rows:auto auto;
}
.dashboard-projects-grid .dashboard-project .editor-actions{
  grid-column:1 / -1;
  justify-content:flex-end;
}

.cropper-modal{display:grid;gap:16px;padding:8px 4px 4px}
.cropper-stage{display:grid;justify-items:center;gap:14px}
.cropper-stage canvas{
  width:min(420px,100%);
  height:auto;
  border:1px solid var(--line);
  border-radius:18px;
  background:#0b0c0f;
  touch-action:none;
  cursor:grab;
}
.cropper-stage.circle canvas{border-radius:18px}
.cropper-stage input[type=range]{width:min(280px,100%)}

.account-layout{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}
.account-card{
  display:grid;
  gap:14px;
  align-content:start;
  padding:22px;
  border:1px solid var(--line);
  border-radius:18px;
  background:var(--surface);
}
.account-card h3{margin:0;font-size:16px;font-weight:650}
.account-card .lead{margin:0;color:var(--muted);font-size:13px;line-height:1.5}
.account-wide{grid-column:1 / -1}
.account-profile{
  grid-column:1 / -1;
  grid-template-columns:160px minmax(0,1fr);
  align-items:center;
  gap:22px;
}
.account-avatar-block{display:grid;justify-items:center;gap:10px}
.account-avatar-block small{color:var(--subtle);font-size:11px;text-align:center}
.account-avatar-edit{
  position:relative;
  width:120px;
  height:120px;
  display:grid;
  place-items:center;
  border:1px dashed var(--line-strong);
  border-radius:50%;
  overflow:hidden;
  cursor:pointer;
  background:var(--surface-2);
}
.account-avatar-edit img,
.account-avatar-edit .profile-avatar,
.account-avatar-edit .avatar{
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:50%;
}
.account-avatar-edit input{position:absolute;inset:0;opacity:0;cursor:pointer}
.account-rename{gap:12px}
.account-rename h3{margin-bottom:2px}

.compact-editor .wizard-narrow{
  width:min(720px,100%);
  margin:0 auto;
  gap:28px;
  padding-top:18px;
}
.wizard-card{
  display:grid;
  gap:16px;
  padding:20px;
  border:1px solid var(--line);
  border-radius:18px;
  background:var(--surface);
}
.identity-card{
  grid-template-columns:108px minmax(0,1fr);
  align-items:start;
}
.identity-fields{display:grid;gap:14px}
.outlined-field{
  display:grid;
  gap:8px;
  padding:14px 14px 12px;
  border:1px solid var(--line);
  border-radius:14px;
  background:rgba(15,17,22,.72);
}
.outlined-field>span{
  color:var(--subtle);
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.outlined-field input,
.outlined-field textarea{
  width:100%;
  border:0;
  outline:0;
  background:transparent;
  color:var(--text);
  font:inherit;
  resize:none;
}
.outlined-field input{font-size:22px;font-weight:600;letter-spacing:-.03em}
.outlined-field textarea{min-height:64px;line-height:1.45;font-size:14px}
.meta-card{grid-template-columns:1fr 1fr;gap:14px}
.meta-card .wide{grid-column:1 / -1}
.version-mode{display:flex;flex-wrap:wrap;gap:8px}
.file-drop{
  position:relative;
  min-height:112px;
  display:grid;
  place-items:center;
  padding:18px;
  border:1px dashed var(--line-strong);
  border-radius:16px;
  background:var(--surface-2);
  text-align:center;
  cursor:pointer;
}
.file-drop.has-file{border-style:solid;border-color:rgba(180,154,241,.35);background:var(--accent-soft)}
.file-drop input{position:absolute;inset:0;opacity:0;cursor:pointer}
.file-drop b{display:block;font-size:14px}
.file-drop span{display:block;margin-top:6px;color:var(--muted);font-size:12px}
.version-card .editor-field,
.wizard-card .body-field{
  min-height:140px;
  padding:14px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#0f0d14;
}

.modal.donation-modal,
.modal.donation-modal.small{
  width:min(440px,calc(100% - 28px));
  padding:0;
  border:0;
  background:transparent;
  box-shadow:none;
}
.donation-wizard{
  position:relative;
  display:grid;
  gap:0;
  padding:28px 26px 24px;
  border:1px solid var(--line);
  border-radius:22px;
  background:var(--surface);
  box-shadow:var(--shadow);
}
.donation-close{
  position:absolute;
  top:14px;
  right:14px;
  z-index:2;
}
.donation-form-clean{display:grid;gap:16px}
.donation-form-clean [data-donation-step]{display:grid;gap:14px}
.donation-form-clean [data-donation-step][hidden]{display:none!important}
.donation-form-clean .form-error[hidden]{display:none!important}
.donation-form-clean h2{margin:0;font-size:26px;letter-spacing:-.03em}
.donation-form-clean .lead{margin:0;color:var(--muted);font-size:13px;line-height:1.55}
.donation-form-clean .field input[type=text],
.donation-form-clean .field input[type=email],
.donation-form-clean .field textarea{
  appearance:textfield;
  -moz-appearance:textfield;
}
.donation-form-clean input[type=number]::-webkit-outer-spin-button,
.donation-form-clean input[type=number]::-webkit-inner-spin-button{
  -webkit-appearance:none;
  margin:0;
}

@media(max-width:820px){
  .dashboard-projects-grid,
  .account-layout,
  .account-profile,
  .identity-card,
  .meta-card{grid-template-columns:1fr}
  .compact-editor .wizard-narrow{width:100%}
  .outlined-field input{font-size:20px}
}

/* --- Profile / cabinet Modrinth-inspired polish --- */
.profile-page{display:grid;gap:22px;padding:34px 0 80px}
.profile-hero{
  display:grid;
  grid-template-columns:112px minmax(0,1fr) auto;
  gap:22px;
  align-items:center;
  padding:24px;
  border:1px solid var(--line);
  border-radius:20px;
  background:var(--surface);
}
.profile-hero .profile-avatar,
.profile-hero .profile-avatar img{
  width:112px;
  height:112px;
  border-radius:50%;
  object-fit:cover;
}
.profile-copy h1{margin:0;font-size:clamp(28px,3vw,40px);letter-spacing:-.04em}
.profile-bio{margin:8px 0 0;color:var(--muted);font-size:15px;line-height:1.5}
.profile-stats{
  display:flex;
  flex-wrap:wrap;
  gap:14px 18px;
  margin-top:14px;
  color:var(--muted);
  font-size:13px;
}
.profile-stats span{display:inline-flex;align-items:center;gap:7px}
.profile-stats svg{width:15px;height:15px;stroke:currentColor;fill:none;stroke-width:1.8}
.profile-stats b{color:var(--text);font-weight:650}
.profile-actions{display:flex;gap:10px}
.profile-projects,.dashboard-project-list{display:grid;gap:12px}
.dashboard-owner-card .card-actions{justify-content:flex-end}
.dashboard-owner-card .status-pill{
  display:inline-flex;
  align-items:center;
  min-height:24px;
  padding:0 9px;
  border:1px solid var(--line);
  border-radius:999px;
  color:var(--muted);
  font-size:11px;
  font-weight:650;
}
.dashboard-owner-card .status-pill.published{color:#9ed4b0;border-color:rgba(120,190,140,.28)}
.dashboard-owner-card .status-pill.publishing{color:#9fc4f3;border-color:rgba(120,160,220,.28)}
.dashboard-owner-card .status-pill.pending{color:#e2c48a;border-color:rgba(210,170,90,.28)}
.dashboard-owner-card .status-pill.rejected{color:#e3a0a0;border-color:rgba(210,110,110,.28)}

.account-identity{display:grid;gap:18px;position:relative}
.identity-block{display:grid;gap:8px;position:relative}
.username-line,
.bio-display-row{
  display:inline-flex;
  align-items:center;
  gap:10px;
  max-width:100%;
}
.username-line b{font-size:22px;letter-spacing:-.03em}
.bio-display-row{align-items:flex-start;width:100%}
.bio-display{min-width:0;flex:1}
.bio-display p{margin:4px 0 0;color:var(--muted);font-size:14px;line-height:1.5}
.icon-button{
  width:34px;
  height:34px;
  flex:0 0 auto;
  display:grid;
  place-items:center;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--surface-2);
  color:var(--muted);
}
.icon-button svg{width:15px;height:15px;stroke:currentColor;stroke-width:1.8}
.icon-button:hover{color:var(--text);border-color:var(--line-strong)}
.inline-edit-popover,
.bio-editor{display:none;gap:10px}
.inline-edit-popover:not([hidden]),
.bio-editor:not([hidden]){display:grid}
.inline-edit-popover[hidden],
.bio-editor[hidden],
.bio-display-row[hidden],
.icon-button[hidden]{display:none!important}
.inline-edit-popover{
  position:relative;
  width:min(360px,100%);
  padding:14px;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--surface-2);
  box-shadow:var(--shadow);
}
.bio-editor textarea{
  width:100%;
  min-height:90px;
  padding:12px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#0f0d14;
  color:var(--text);
}
.dashboard-project-list{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
}
.wizard-step{display:grid;gap:18px}
.wizard-step[hidden]{display:none!important}
.wizard-icon.field-invalid,
.outlined-field.field-invalid,
.field.field-invalid,
.zip-drop.field-invalid,
#zipDrop.field-invalid{
  outline:2px solid rgba(220,110,110,.85);
  outline-offset:3px;
  border-radius:14px;
}
.wizard-form.wizard-narrow{gap:28px}
.wizard-card + .wizard-card{margin-top:0}
.preview-badge{
  display:inline-flex;
  align-items:center;
  min-height:24px;
  padding:0 9px;
  border:1px solid rgba(210,170,90,.35);
  border-radius:999px;
  background:rgba(180,140,50,.14);
  color:#e2c48a;
  font-size:11px;
  font-weight:700;
}
.delete-project-modal code{
  padding:2px 6px;
  border-radius:6px;
  background:var(--surface-2);
}
.moderation-toolbar{margin-bottom:14px}
.moderation-toolbar input{
  width:100%;
  height:44px;
  padding:0 14px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--surface);
  color:var(--text);
}
.moderation-queue-list .scan-badge{margin-left:2px}
.moderation-owner-card .card-actions{flex-wrap:wrap}
.moderation-owner-card .card-action.danger{
  color:#e3a0a0;
  border-color:rgba(210,110,110,.28);
}
.moderation-owner-card .card-action.solid{
  color:#1b100b;
  background:var(--text);
  border-color:transparent;
}
.review-project-page{padding-bottom:80px}
.review-project-page .review-switch{margin:0 0 18px}
.review-project-page .review-new-label{margin:0 0 12px}
.review-control-bar{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.review-control-bar .active{background:var(--accent-soft);color:var(--text)}
.review-highlight-toggle{
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-height:40px;
  padding:0 14px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--surface);
  color:var(--text);
  cursor:pointer;
}
.review-highlight-toggle input{margin:0}
.review-banner{
  margin:0 0 18px;
  padding:14px 16px;
  border:1px solid rgba(235,185,91,.32);
  border-radius:16px;
  background:rgba(235,185,91,.08);
  color:#f2d390;
  line-height:1.5;
}
.review-overview-body{display:grid;gap:18px}
.review-fields-card,
.review-files-card,
.review-icon-compare{display:grid;gap:16px}
.review-fields-card>header h2,
.review-files-card h2,
.review-icon-compare h2{margin:0}
.review-fields-grid{display:grid;gap:12px}
.review-field-card{
  display:grid;
  gap:10px;
  padding:16px;
  border:1px solid var(--line);
  border-radius:16px;
  background:var(--surface-2);
}
.review-field-card.changed{
  border-color:rgba(180,154,241,.38);
  box-shadow:0 0 0 1px rgba(180,154,241,.1) inset;
}
.review-field-card header{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
}
.review-field-card header span{
  color:var(--subtle);
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.review-field-card header small{color:var(--accent)}
.review-field-text{
  margin:0;
  color:var(--text);
  line-height:1.6;
  white-space:pre-wrap;
  word-break:break-word;
}
.review-empty{color:var(--muted)}
.review-field-tags{gap:8px}
.review-link-list{display:grid;gap:8px}
.review-link-list a{
  color:var(--accent);
  text-decoration:none;
  word-break:break-all;
}
.review-link-list a:hover{text-decoration:underline}
.review-field-diff .diff-token{
  padding:0 .1em;
  border-radius:6px;
}
.review-field-diff .diff-token.added{
  background:rgba(93,187,131,.18);
  color:#d9f5e3;
}
.review-field-diff .diff-token.removed{
  background:rgba(235,91,147,.18);
  color:#ffd5e4;
}
.review-icon-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}
.review-icon-card{
  display:grid;
  gap:10px;
  justify-items:center;
  padding:16px;
  border:1px solid var(--line);
  border-radius:16px;
  background:var(--surface-2);
}
.review-icon-card.changed{
  border-color:rgba(93,187,131,.35);
  box-shadow:0 0 0 1px rgba(93,187,131,.1) inset;
}
.review-icon-card>span{color:var(--subtle);font-size:12px}
.review-compare-icon{
  width:96px;
  height:96px;
  border-radius:24px;
}
.review-files-toolbar{
  display:flex;
  justify-content:space-between;
  gap:14px;
  align-items:center;
}
.review-files-toolbar select{
  min-width:min(100%,360px);
  min-height:42px;
  padding:0 14px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#0f0d14;
  color:var(--text);
}
.review-files-layout{
  display:grid;
  grid-template-columns:300px minmax(0,1fr);
  gap:16px;
  min-height:520px;
}
.review-files-tree,
.review-files-preview{
  min-width:0;
  border:1px solid var(--line);
  border-radius:16px;
  background:var(--surface-2);
}
.review-files-tree{
  overflow:auto;
  padding:10px;
}
.review-tree-node{display:grid}
.review-tree-button{
  display:flex;
  align-items:center;
  gap:10px;
  width:100%;
  min-height:36px;
  padding:0 10px;
  border:0;
  border-radius:10px;
  background:transparent;
  color:var(--text);
  text-align:left;
}
.review-tree-button:hover{background:rgba(255,255,255,.04)}
.review-tree-button b{font-weight:500}
.review-tree-button small{margin-left:auto;color:var(--muted)}
.review-tree-node .review-tree-node{margin-left:14px}
.review-file-preview{
  display:grid;
  height:100%;
  grid-template-rows:auto minmax(0,1fr);
}
.review-file-preview header{
  display:grid;
  gap:8px;
  padding:14px 16px;
  border-bottom:1px solid var(--line);
}
.review-file-preview pre{
  margin:0;
  padding:16px;
  overflow:auto;
  white-space:pre-wrap;
  word-break:break-word;
  font:12px/1.55 ui-monospace,SFMono-Regular,Menlo,monospace;
}
.review-file-meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  color:var(--muted);
  font-size:12px;
}
.review-moderation-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-bottom:10px;
}
.review-published-stats{
  display:grid;
  gap:14px;
}
.review-stats-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.review-stat-card{
  display:grid;
  gap:6px;
  padding:12px 13px;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--surface-2);
}
.review-stat-card span{
  color:var(--muted);
  font-size:12px;
}
.review-stat-card b{
  color:var(--text);
  font-size:20px;
  line-height:1.1;
}
.review-moderation-actions .danger-button,
.review-moderation-actions .solid-button{
  min-height:44px;
  padding:0 16px;
}
@media(max-width:900px){
  .review-files-layout{grid-template-columns:1fr}
}
@media(max-width:680px){
  .review-control-bar{align-items:stretch}
  .review-control-bar>button,
  .review-highlight-toggle{width:100%;justify-content:center}
  .review-icon-grid{grid-template-columns:1fr}
  .review-stats-grid{grid-template-columns:1fr}
}
.telegram-toggles{display:grid;gap:10px;margin:12px 0}
.toggle-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  min-height:48px;
  padding:0 14px;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--surface-2);
  color:var(--text);
  font-size:13px;
  cursor:pointer;
}
.toggle-row>span{flex:1;line-height:1.35}
.ios-switch{
  appearance:none;
  -webkit-appearance:none;
  position:relative;
  width:51px;
  height:31px;
  flex:0 0 auto;
  margin:0;
  border:0;
  border-radius:999px;
  background:#3a3a3c;
  cursor:pointer;
  transition:background .2s ease;
}
.ios-switch:before{
  content:"";
  position:absolute;
  top:2px;
  left:2px;
  width:27px;
  height:27px;
  border-radius:50%;
  background:#fff;
  box-shadow:0 1px 3px rgba(0,0,0,.35);
  transition:transform .2s ease;
}
.ios-switch:checked{background:#34c759}
.ios-switch:checked:before{transform:translateX(20px)}
.ios-switch:focus-visible{outline:2px solid color-mix(in srgb,var(--accent) 55%,transparent);outline-offset:2px}
.register-publish-note{margin:28px 0 0;padding-top:8px;color:var(--muted);line-height:1.45;font-size:12px}

.notif-wrap{position:relative}
.notif-bell{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:42px;
  height:42px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--surface);
  color:var(--text);
  cursor:pointer;
}
.notif-bell svg{width:18px;height:18px}
.notif-badge{
  position:absolute;
  top:-4px;
  right:-4px;
  min-width:18px;
  height:18px;
  padding:0 5px;
  border-radius:9px;
  background:var(--accent);
  color:#1b100b;
  font-size:10px;
  font-weight:700;
  line-height:18px;
  text-align:center;
}
.notif-dropdown{
  position:absolute;
  top:calc(100% + 8px);
  right:0;
  left:auto;
  z-index:120;
  display:flex;
  flex-direction:column;
  width:min(360px,calc(100vw - 24px));
  max-height:min(420px,calc(100dvh - 88px));
  overflow:hidden;
  padding:0;
  border:1px solid var(--line);
  border-radius:14px;
  background:rgba(18,16,24,.98);
  box-shadow:0 18px 40px rgba(0,0,0,.35);
}
.notif-dropdown[hidden]{display:none!important}
@media(max-width:820px){
  .notif-wrap{position:static}
  .notif-dropdown{
    position:fixed;
    top:72px;
    left:12px;
    right:12px;
    width:auto;
    max-width:none;
    margin:0 auto;
    max-height:min(70dvh,calc(100dvh - 88px));
  }
}
.notif-dropdown-head{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:14px 14px 12px;
  border-bottom:1px solid var(--line);
}
.notif-dropdown-head b{font-size:14px}
.notif-dropdown-scroll{
  flex:1 1 auto;
  min-height:0;
  overflow:auto;
  padding:10px 12px 12px;
}
.notification-list{display:grid;gap:8px}
.notification-item{
  padding:12px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--surface-2);
}
.notification-item.unread{border-color:rgba(213,141,104,.35);background:rgba(213,141,104,.08)}
.notification-item div{display:flex;justify-content:space-between;gap:12px}
.notification-item b{font-size:13px}
.notification-item small{color:var(--muted);font-size:11px;white-space:nowrap}
.notification-item p{margin:8px 0 0;color:var(--muted);font-size:13px}
.notif-page-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.notif-page-head h3{margin:0}
.empty-state.compact{padding:18px;text-align:center;color:var(--muted)}

.code-modal .modal-head{margin-bottom:10px}
.code-modal .lead{margin:0 0 8px;font-size:14px;line-height:1.5}
.code-modal .otp-label{margin:14px 0 8px;color:var(--muted);font-size:12px}
.code-modal .otp-inputs{margin:0 0 14px}
.code-modal .wizard-actions{margin-top:4px}
.telegram-bind-modal .modal-head,
.telegram-unbind-modal .modal-head{margin-bottom:10px}
.telegram-bind-modal .lead,
.telegram-unbind-modal .lead{margin:0 0 10px}
.telegram-bind-points{margin:0 0 14px;padding-left:18px;color:var(--muted);line-height:1.55}
.backup-codes-modal h2{margin:0 0 8px}
.backup-code-list{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  margin:16px 0;
  padding:0;
  list-style:none;
}
.backup-code{
  width:100%;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--surface-2);
  color:var(--text);
  font:600 13px/1.3 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  letter-spacing:.04em;
  cursor:pointer;
}
.backup-code:hover{border-color:rgba(213,141,104,.4)}
.backup-code-actions{margin-top:8px}
.progress-button{
  position:relative;
  overflow:hidden;
  min-width:180px;
}
.progress-button .progress-fill{
  position:absolute;
  inset:0 auto 0 0;
  width:0;
  background:rgba(213,141,104,.35);
  transition:width .1s linear;
}
.progress-button .progress-label{position:relative;z-index:1}
.progress-button:disabled{opacity:1;cursor:not-allowed}
.modal.backup-modal{max-width:480px}

@media(max-width:820px){
  .profile-hero{grid-template-columns:1fr;justify-items:start}
  .profile-actions{width:100%}
  .profile-actions .soft-button{width:100%;justify-content:center}
  .backup-code-list{grid-template-columns:1fr}
  #app:has(.dashboard-head) .dashboard-grid,
  .dashboard-grid{
    grid-template-columns:1fr!important;
    gap:16px!important;
  }
  .dashboard-nav{
    position:static!important;
    display:grid!important;
    grid-template-columns:1fr!important;
    width:100%!important;
    max-width:none!important;
    overflow:visible!important;
    align-self:stretch!important;
  }
  .dashboard-nav button{
    width:100%;
    text-align:left;
  }
  .dashboard-content{
    width:100%;
    min-width:0;
  }
}

.role-badge{margin-left:.45rem;font-size:.72em;font-weight:650;color:var(--muted);text-transform:lowercase}
.card-edit{height:44px;width:44px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line-strong);border-radius:12px;background:var(--surface-2);color:var(--text);flex:0 0 auto}
.card-edit svg{width:16px;height:16px;stroke:currentColor;stroke-width:1.8}
.card-edit:hover{background:var(--surface-3)}
.admin-project-actions{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:8px;width:100%;margin-top:0}
.admin-project-actions .soft-button,
.admin-project-actions .ghost-button,
.admin-project-actions .danger-button{
  height:44px;
  width:100%;
  min-width:0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 10px;
  white-space:nowrap;
}
.owner-edit-button svg{width:16px;height:16px;stroke:currentColor;stroke-width:1.8;fill:none}
.editor-edit-mode .wizard-step{display:grid;gap:14px;margin-bottom:18px}
.editor-edit-mode .wizard-step[hidden]{display:grid!important}
.version-editor-head{display:flex;justify-content:flex-start;margin:12px 0 0}
.version-editor-list{display:grid;gap:8px;margin-bottom:0}
.version-editor-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:var(--surface-2)}
.version-editor-row small{display:block;margin-top:4px;color:var(--muted)}
.new-version-panel{display:grid;gap:12px;margin-top:12px;padding-top:12px;border-top:1px solid var(--line)}
.new-version-panel[hidden]{display:none!important}
.role-field{min-width:140px;margin:0}
.role-field select{height:40px}

/* --- Global mobile layout: kill horizontal scroll, stack pages --- */
html,body{
  max-width:100%;
  overflow-x:hidden;
}
img,svg,video,canvas,iframe{
  max-width:100%;
}

@media(max-width:900px){
  .topbar{
    width:100%!important;
    max-width:100%!important;
    margin:0!important;
    padding:12px 14px!important;
    gap:8px!important;
    grid-template-columns:minmax(0,1fr) auto!important;
  }
  .brand{
    min-width:0!important;
    max-width:100%;
    overflow:hidden;
  }
  .brand-copy{
    min-width:0;
    overflow:hidden;
  }
  .brand-copy b,
  .brand-copy small{
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
  .primary-navigation{
    justify-self:end;
    min-width:0;
  }
  .primary-navigation .header-link{
    display:none!important;
  }
  .top-actions{
    min-width:0;
    gap:6px!important;
  }

  #app,
  .page-shell,
  .profile-page,
  .editor-page,
  .review-page,
  .home-section,
  .market-layout,
  .project-page,
  .catalog-shell,
  .home-inner,
  #app:has(.dashboard-head) .dashboard-head,
  #app:has(.dashboard-head) .dashboard-grid,
  #app:has(.auth-shell) .auth-shell,
  .footer-inner,
  .content-tabs{
    width:100%!important;
    max-width:100%!important;
    margin-left:0!important;
    margin-right:0!important;
    padding-left:14px!important;
    padding-right:14px!important;
    box-sizing:border-box!important;
  }
  #app{
    padding-top:18px!important;
    padding-bottom:56px!important;
  }
  .market-home-hero,
  .home-inner,
  .site-footer,
  .footer-inner{
    padding-left:14px!important;
    padding-right:14px!important;
  }
  .market-home-hero{
    width:100%!important;
    max-width:100%!important;
  }
  .home-inner{
    display:block!important;
  }

  .profile-page{
    padding:18px 0 56px!important;
    gap:16px!important;
  }
  .profile-hero{
    grid-template-columns:1fr!important;
    justify-items:start!important;
    gap:16px!important;
    padding:18px!important;
    width:100%!important;
    max-width:100%!important;
    overflow:hidden;
  }
  .profile-hero .profile-avatar,
  .profile-hero .profile-avatar img{
    width:84px!important;
    height:84px!important;
  }
  .profile-copy,
  .profile-copy h1,
  .profile-bio,
  .profile-stats{
    min-width:0!important;
    max-width:100%!important;
  }
  .profile-copy h1{
    font-size:clamp(26px,8vw,34px)!important;
    overflow-wrap:anywhere;
    word-break:break-word;
  }
  .profile-actions{
    width:100%!important;
    display:grid!important;
  }
  .profile-actions .soft-button,
  .profile-actions a{
    width:100%!important;
    justify-content:center;
  }
  .profile-projects,
  .dashboard-project-list,
  .project-list{
    width:100%!important;
    min-width:0!important;
  }

  .dashboard-head{
    flex-wrap:wrap;
    align-items:flex-start!important;
    gap:14px!important;
    padding:24px 0 18px!important;
  }
  .dashboard-head h1{
    font-size:clamp(28px,8vw,36px)!important;
  }
  .dashboard-grid,
  #app:has(.dashboard-head) .dashboard-grid{
    grid-template-columns:1fr!important;
    gap:14px!important;
    padding-top:14px!important;
  }
  .dashboard-nav{
    position:static!important;
    display:grid!important;
    grid-template-columns:1fr!important;
    width:100%!important;
    overflow:visible!important;
  }
  .dashboard-nav button{
    width:100%!important;
    text-align:left!important;
  }
  .dashboard-content,
  .account-layout,
  .account-profile,
  .dashboard-projects-grid,
  .identity-card,
  .meta-card,
  .review-layout,
  .wizard-hero,
  .diff-grid,
  .editor-grid,
  .dual-editor{
    grid-template-columns:1fr!important;
    width:100%!important;
    min-width:0!important;
  }
  .account-wide,
  .account-card,
  .moderation-card,
  .dashboard-project{
    max-width:100%!important;
    min-width:0!important;
  }

  .product-shell,
  .project-page,
  .market-layout{
    grid-template-columns:1fr!important;
    gap:16px!important;
    padding-top:14px!important;
  }
  .product-side,
  .project-sidebar{
    position:static!important;
    width:100%!important;
  }
  .project-hero{
    flex-wrap:wrap;
    gap:14px!important;
  }
  .project-hero h1,
  .discover-head h1,
  .page-title,
  .catalog-head h1{
    overflow-wrap:anywhere;
    word-break:break-word;
  }
  .project-action-row,
  .admin-project-actions,
  .reaction-row{
    display:grid!important;
    grid-template-columns:1fr!important;
    grid-auto-flow:row!important;
    width:100%!important;
  }
  .project-action-row .reaction-button,
  .admin-project-actions .soft-button,
  .admin-project-actions .ghost-button,
  .admin-project-actions .danger-button{
    width:100%!important;
    min-width:0!important;
  }
  .project-tabs{
    gap:12px;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
  }
  .project-tab{
    flex:0 0 auto;
    white-space:nowrap;
  }

  .project-grid,
  .dashboard-projects-grid{
    grid-template-columns:1fr!important;
  }
  .project-card,
  .card-head,
  .card-main,
  .card-aside,
  .card-actions{
    min-width:0!important;
    max-width:100%!important;
  }
  .card-actions{
    flex-wrap:wrap;
    width:100%!important;
  }

  .auth-shell,
  .auth-card,
  .recover-grid .auth-card{
    width:100%!important;
    max-width:100%!important;
  }
  .auth-card{
    padding:22px 16px!important;
  }

  .compact-editor,
  .wizard-form,
  .wizard-narrow,
  .identity-card,
  .meta-card,
  .version-card{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
  }
  .identity-card{
    grid-template-columns:1fr!important;
  }
  .wizard-icon{
    width:96px!important;
    height:96px!important;
  }

  .footer-inner{
    grid-template-columns:1fr!important;
    gap:28px!important;
    padding-top:36px!important;
    padding-bottom:28px!important;
  }
  .footer-donation{
    flex-direction:column!important;
    align-items:stretch!important;
  }
  .donation-button{
    width:100%!important;
  }
  .donation-amounts{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
  .modal,
  .modal.small,
  .modal.donation-modal,
  .modal.donation-modal.small{
    width:calc(100% - 20px)!important;
    max-width:calc(100% - 20px)!important;
  }
  .toast-stack{
    width:calc(100vw - 24px)!important;
    left:50%!important;
  }

  .filters{
    width:100%!important;
    max-width:100%!important;
  }
  .filter-panel{
    max-width:100%;
  }
  .sort-select,
  .toolbar-select,
  .catalog-main-search,
  .results-toolbar{
    width:100%!important;
    min-width:0!important;
  }
  .headline-stats{
    display:none!important;
  }
}

/* Keep the mobile header in one explicit row. Without the third grid column
   the account controls become an implicit second row and fall into the page. */
@media(max-width:900px){
  .topbar{
    height:72px!important;
    min-height:72px!important;
    grid-template-columns:minmax(0,1fr) auto auto!important;
    grid-template-rows:72px!important;
    align-items:center!important;
  }
  .primary-navigation{
    grid-column:2;
    grid-row:1;
    display:flex!important;
    align-items:center;
    justify-content:flex-end;
    white-space:nowrap;
  }
  .top-actions{
    grid-column:3;
    grid-row:1;
    display:flex;
    align-items:center;
    flex-wrap:nowrap;
    white-space:nowrap;
  }
}
@media(max-width:560px){
  .brand-copy{display:none}
  .topbar{gap:7px!important;padding:0 12px!important}
  .header-download{width:44px;min-height:44px;padding:0;justify-content:center}
  .header-download span{display:none}
}
@media(max-width:400px){
  .language{padding:3px}
  .language button{min-width:30px!important}
  .top-actions{gap:4px!important}
}

@media(max-width:520px){
  .brand-copy{display:none!important}
  .profile-stats{
    gap:10px 12px!important;
    font-size:12px!important;
  }
  .market-home-hero h1{
    font-size:clamp(36px,11vw,48px)!important;
  }
  .dashboard-head{
    flex-direction:column;
  }
  .dashboard-head .solid-button{
    width:100%;
  }
}

/* Final mobile cascade: this block intentionally comes last because legacy
   responsive rules above use conflicting grid definitions. */
#app:has(.market-home-hero){width:100%!important;max-width:none!important;margin:0!important;padding-left:0!important;padding-right:0!important}
.market-home-hero{width:100vw!important;max-width:none!important;margin-left:calc(50% - 50vw)!important;padding-left:0!important;padding-right:0!important}
.market-home-hero .home-inner{width:min(1660px,100%)!important;margin:0 auto!important;padding-left:24px!important;padding-right:24px!important;box-sizing:border-box!important}
@media(max-width:900px){
  .topbar{height:72px!important;min-height:72px!important;grid-template-columns:minmax(0,1fr) auto auto auto!important;grid-template-rows:72px!important;align-items:center!important}
  .mobile-menu-toggle{width:42px;height:42px;display:inline-grid!important;grid-column:2!important;grid-row:1!important;place-items:center;border:0;border-radius:12px;background:var(--surface);color:var(--text)}
  .mobile-menu-toggle svg{width:20px;stroke:currentColor;stroke-width:1.9;stroke-linecap:round}
  .primary-navigation{grid-column:3!important;grid-row:1!important;display:flex!important;align-items:center!important}
  .top-actions{grid-column:4!important;grid-row:1!important;display:flex!important;align-items:center!important;flex-wrap:nowrap!important}
  .mobile-navigation{position:fixed;z-index:200;top:72px;left:12px;right:12px;padding:8px;border:1px solid var(--line-strong);border-radius:16px;background:rgba(17,16,23,.96);box-shadow:0 18px 40px rgba(0,0,0,.35)}
  .mobile-navigation:not([hidden]){display:grid!important;gap:5px}
  .mobile-navigation a{min-height:48px;display:flex;align-items:center;padding:0 14px;border-radius:11px;color:var(--text);font-size:15px;font-weight:650}
  .mobile-navigation a:hover,.mobile-navigation a:active{background:var(--surface-2)}
  .market-home-hero .home-inner{padding-left:14px!important;padding-right:14px!important}
  .home-projects .project-card{grid-template-columns:minmax(0,1fr)!important}
  .home-projects .card-head{grid-template-columns:68px minmax(0,1fr)!important;gap:14px!important;padding:16px!important}
  .home-projects .card-aside{grid-column:1/-1!important;display:flex!important;justify-items:start!important}
  .home-projects .card-actions{justify-content:stretch!important;padding:0 16px 16px!important}
}
@media(max-width:560px){.brand-copy{display:none!important}.topbar{gap:7px!important;padding:0 12px!important}.header-download{width:44px;min-height:44px;padding:0;justify-content:center}.header-download span{display:none}}

.moderation-project-tab{color:var(--accent,#eb5b93)}
.moderation-thread{display:grid;gap:24px}
.moderation-thread>header h2{margin:0 0 6px;font-size:24px}
.moderation-thread>header p,.moderation-thread time{color:var(--muted,#9699a3)}
.moderation-thread-list{display:grid;gap:14px}
.moderation-thread-event,.moderation-thread-message{border:1px solid var(--border,#292b32);border-radius:18px;background:var(--surface,#17181d)}
.moderation-thread-event{display:grid;grid-template-columns:42px minmax(0,1fr);gap:12px;padding:16px}
.moderation-thread-event p{margin:1px 0 4px}
.moderation-thread-event.rejected{border-color:rgba(235,91,147,.42)}
.moderation-thread-event.approved{border-color:rgba(93,187,131,.42)}
.moderation-event-body{margin-top:14px;padding-top:14px;border-top:1px solid var(--border,#292b32)}
.moderation-thread-message{padding:18px}
.moderation-thread-message>header{display:flex;align-items:center;gap:12px;margin-bottom:14px}
.moderation-thread-message>header>div:last-child{display:grid;gap:2px}
.moderation-thread-avatar{width:42px;height:42px;flex:0 0 42px;overflow:hidden;display:grid;place-items:center;border-radius:50%;background:#25272e;color:#fff;font-weight:700}
.moderation-thread-avatar img{width:100%;height:100%;object-fit:cover}
.moderation-thread-form{display:grid;gap:14px;padding-top:8px}
.moderation-thread-form .solid-button{justify-self:start}
@media(max-width:680px){.moderation-thread-event,.moderation-thread-message{border-radius:15px}.moderation-thread-event{grid-template-columns:36px minmax(0,1fr);padding:14px}.moderation-thread-avatar{width:36px;height:36px;flex-basis:36px}}

.initial-loading-view{min-height:calc(100svh - 84px);background:#0b0b0e}
.initial-loader-logo{width:58px;height:58px;object-fit:contain;opacity:.28;animation:marketplace-logo-shimmer 1.45s ease-in-out infinite}
@keyframes marketplace-logo-shimmer{0%,100%{opacity:.18;filter:brightness(.75)}50%{opacity:.62;filter:brightness(1.35)}}
.route-skeleton{width:min(1480px,calc(100% - 48px));min-height:70vh;margin:54px auto;display:grid;align-content:start;gap:18px}
.skeleton-line,.skeleton-grid i{display:block;border-radius:14px;background:linear-gradient(100deg,#17171d 20%,#24242d 42%,#17171d 64%);background-size:260% 100%;animation:skeleton-shift 1.4s linear infinite}
.skeleton-line{height:44px}.skeleton-line.wide{width:min(620px,80%);height:70px}.skeleton-line.medium{width:min(420px,60%);height:22px}
.skeleton-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:28px}.skeleton-grid i{height:174px}
@keyframes skeleton-shift{to{background-position:-260% 0}}
.suspicious-preview{width:76px;height:76px;border-radius:50%;object-fit:cover;border:1px solid var(--line-strong)}
.suspicious-card{display:grid;gap:14px}.suspicious-card .evidence{white-space:pre-wrap;overflow-wrap:anywhere;color:var(--muted)}
.suspicious-filters{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}
@media(max-width:700px){.route-skeleton{width:calc(100% - 28px);margin-top:28px}.skeleton-grid{grid-template-columns:1fr}}

.api-doc-shell{
  width:min(1520px,calc(100% - 56px));
  margin:42px auto 96px;
  display:grid;
  grid-template-columns:300px minmax(0,1fr);
  gap:38px;
  align-items:start;
}
.api-doc-toc{position:sticky;top:100px;display:grid;gap:14px}
.api-doc-back{justify-content:flex-start}
.api-doc-toc-card{
  padding:20px;
  border:1px solid var(--line);
  border-radius:22px;
  background:rgba(255,255,255,.045);
  box-shadow:0 20px 70px rgba(0,0,0,.18);
}
.api-doc-toc-card h2{margin:4px 0 16px;font-size:22px;letter-spacing:-.025em}
.api-doc-toc-card nav{
  display:grid;
  gap:2px;
  max-height:calc(100svh - 230px);
  overflow:auto;
  padding-right:4px;
}
.api-doc-toc-card a{
  padding:8px 10px;
  border-radius:12px;
  color:var(--muted);
  text-decoration:none;
  font-size:14px;
  font-weight:650;
  line-height:1.25;
}
.api-doc-toc-card a:hover{color:var(--text);background:rgba(255,255,255,.06)}
.api-doc-toc-card a.level-3{padding-left:22px;font-size:13px;font-weight:600;opacity:.86}
.api-doc-page{min-width:0}
.api-doc-hero{
  margin-bottom:32px;
  padding:12px 0 34px;
  border-bottom:1px solid var(--line);
}
.api-doc-hero h1{margin:0;font-size:clamp(44px,6vw,82px);line-height:.95;letter-spacing:-.04em}
.api-doc-hero p{max-width:820px;margin:18px 0 0;color:var(--muted);font-size:20px;line-height:1.55}
.api-doc-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:22px}
.api-doc-content{max-width:920px;color:var(--muted);font-size:18px;line-height:1.75}
.api-doc-content h1,.api-doc-content h2,.api-doc-content h3{color:var(--text);line-height:1.08;scroll-margin-top:110px}
.api-doc-content h1{margin:0 0 22px;font-size:44px}
.api-doc-content h2{margin:54px 0 16px;padding-top:30px;border-top:1px solid var(--line);font-size:32px}
.api-doc-content h3{margin:34px 0 12px;font-size:24px}
.api-doc-content p{margin:0 0 18px}
.api-doc-content ul,.api-doc-content ol{margin:0 0 20px;padding-left:24px}
.api-doc-content li{margin:7px 0}
.api-doc-content code{
  padding:2px 6px;
  border:1px solid var(--line);
  border-radius:7px;
  background:rgba(255,255,255,.07);
  color:var(--text);
  font:600 .92em ui-monospace,SFMono-Regular,Menlo,monospace;
}
.api-doc-content pre{
  overflow:auto;
  margin:20px 0 26px;
  padding:18px 20px;
  border:1px solid var(--line);
  border-radius:18px;
  background:#0a0b0f;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
}
.api-doc-content pre code{
  display:block;
  padding:0;
  border:0;
  background:transparent;
  color:#e8e8ee;
  white-space:pre;
  font-size:14px;
  line-height:1.65;
}
.api-doc-content a{color:var(--accent);text-decoration:none}
.api-doc-content a:hover{text-decoration:underline}
.api-doc-content hr{margin:36px 0;border:0;border-top:1px solid var(--line)}
.marketplace-terms-shell{width:min(980px,calc(100% - 56px));margin:42px auto 96px}
.marketplace-terms-page{min-width:0}
.marketplace-terms-back{margin-bottom:34px;justify-content:flex-start}
.marketplace-terms-hero{margin-bottom:36px;padding-bottom:34px;border-bottom:1px solid var(--line)}
.marketplace-terms-hero h1{margin:0;font-size:clamp(42px,6vw,72px);line-height:.98;letter-spacing:-.04em}
.marketplace-terms-hero p{max-width:700px;margin:18px 0 0;color:var(--muted);font-size:19px;line-height:1.55}
.marketplace-terms-content{max-width:880px;color:var(--muted);font-size:17px;line-height:1.7}
.marketplace-terms-content h1,.marketplace-terms-content h2,.marketplace-terms-content h3{color:var(--text);line-height:1.12}
.marketplace-terms-content h1{margin:0 0 22px;font-size:38px}.marketplace-terms-content h2{margin:42px 0 14px;font-size:28px}.marketplace-terms-content h3{margin:28px 0 10px;font-size:21px}
.marketplace-terms-content p{margin:0 0 15px}.marketplace-terms-content ul,.marketplace-terms-content ol{margin:0 0 18px;padding-left:24px}.marketplace-terms-content li{margin:6px 0}
@media(max-width:980px){
  .api-doc-shell{width:calc(100% - 28px);grid-template-columns:1fr;margin-top:24px}
  .api-doc-toc{position:relative;top:auto}
  .api-doc-toc-card nav{max-height:none;grid-template-columns:repeat(2,minmax(0,1fr))}
  .api-doc-hero h1{font-size:40px}
  .api-doc-content{font-size:16px}
  .api-doc-content h1{font-size:34px}
  .api-doc-content h2{font-size:27px}
  .marketplace-terms-shell{width:calc(100% - 28px);margin-top:24px}
  .marketplace-terms-hero h1{font-size:40px}.marketplace-terms-content{font-size:16px}.marketplace-terms-content h2{font-size:26px}
}
@media(max-width:620px){
  .api-doc-toc-card nav{grid-template-columns:1fr}
  .api-doc-actions .solid-button,.api-doc-actions .soft-button{width:100%;justify-content:center}
  .api-doc-content pre{border-radius:14px;padding:14px}
}
