:root{--bg:#090c0a;--panel:#101512;--panel2:#141b16;--line:#253129;--text:#eef7f0;--muted:#91a098;--green:#67ff8a;--green2:#20d759;--danger:#ff6b7a;--radius:18px}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:radial-gradient(circle at 80% -20%,#15301e 0,transparent 30%),var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif}.topbar{position:sticky;top:0;z-index:20;display:flex;align-items:center;gap:30px;padding:14px max(24px,calc((100vw - 1180px)/2));border-bottom:1px solid rgba(255,255,255,.06);background:rgba(9,12,10,.86);backdrop-filter:blur(18px)}.brand{display:flex;gap:6px;align-items:center;color:var(--text);text-decoration:none;font-size:20px;font-weight:800;letter-spacing:.05em}.brand strong,.brand-mark,.hero h1 span,.eyebrow,.tool-card span{color:var(--green)}.nav{display:flex;gap:22px;flex:1}.nav a{color:var(--muted);text-decoration:none;font-size:13px;font-weight:700;letter-spacing:.08em}.nav a:hover{color:var(--text)}main{max-width:1180px;margin:auto}.panel-section{padding:72px 24px}.hero{min-height:72vh;display:grid;grid-template-columns:1.2fr .8fr;align-items:center;gap:48px}.hero h1{font-size:clamp(58px,10vw,122px);line-height:.9;margin:12px 0 24px;letter-spacing:-.07em}.hero p{max-width:700px;color:#bac5bd;font-size:19px;line-height:1.6}.eyebrow{font-size:12px;letter-spacing:.16em;font-weight:800}.hero-actions,.input-row,.copy-row{display:flex;gap:10px;align-items:end}.chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:26px}.chips span{border:1px solid var(--line);background:#0d120f;color:#9db2a2;border-radius:999px;padding:7px 11px;font-size:12px}.hero-card,.workspace,.tool-card,.callout{border:1px solid var(--line);background:linear-gradient(180deg,rgba(20,27,22,.96),rgba(13,17,14,.96));box-shadow:0 18px 70px rgba(0,0,0,.25)}.hero-card{border-radius:24px;overflow:hidden;transform:rotate(1deg)}.terminal-head{display:flex;gap:7px;padding:14px;border-bottom:1px solid var(--line)}.terminal-head i{width:10px;height:10px;border-radius:50%;background:#334039}.hero-card pre{padding:28px;margin:0;color:#baffc8;font-size:15px;line-height:1.7}.section-head{display:flex;justify-content:space-between;align-items:end;gap:30px;margin-bottom:24px}.section-head h2,.callout h2{font-size:36px;margin:8px 0}.section-head p,.muted{color:var(--muted)}.tool-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.tool-grid.three{grid-template-columns:repeat(3,1fr)}.tool-card{padding:24px;border-radius:var(--radius);text-decoration:none;color:var(--text);transition:.2s}.tool-card:hover{transform:translateY(-3px);border-color:#3c6245}.tool-card b{font-size:19px}.tool-card p{color:var(--muted);min-height:48px}.workspace{border-radius:var(--radius);padding:20px;margin-bottom:18px}.workspace.compact{margin:0}.workspace-head{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:14px}.workspace h3{margin:0 0 12px;font-size:21px}.workspace-head h3{margin:0}.btn,.ghost,.toolbar button{border:0;border-radius:11px;padding:11px 15px;font-weight:750;cursor:pointer}.btn{background:var(--green);color:#071109;text-decoration:none;display:inline-block}.btn:hover{filter:brightness(1.07)}.btn.secondary{background:#1a251d;color:var(--text);border:1px solid #304035}.ghost,.toolbar button{background:#151d18;color:#cbd5ce;border:1px solid #2a382e}.small{padding:8px 11px;font-size:12px}.toolbar{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:12px}.split{display:grid;grid-template-columns:1fr 1fr;gap:14px}.split.mini{gap:8px}.editor-pane,.preview-pane{display:flex;flex-direction:column;gap:8px}.editor-pane>span,.preview-pane>span,label{font-size:12px;color:#9cab9f;font-weight:700}input,textarea,select{width:100%;background:#090d0a;border:1px solid #26342b;color:var(--text);border-radius:11px;padding:12px;font:inherit;outline:none}textarea{resize:vertical;line-height:1.55}input:focus,textarea:focus,select:focus{border-color:#4b8e59;box-shadow:0 0 0 3px rgba(103,255,138,.08)}label{display:flex;flex-direction:column;gap:7px;margin-bottom:10px}.forum-preview{min-height:280px;background:#171b18;border:1px solid #29322c;border-radius:12px;padding:18px;color:#d8ded9;line-height:1.6}.forum-preview .center{text-align:center}.forum-preview blockquote{margin:12px 0;padding:12px 14px;border-left:3px solid var(--green2);background:#111512;border-radius:8px}.forum-preview .spoiler{padding:9px 12px;background:#222a24;border-radius:8px}.notice{margin-top:10px;color:#e6d8a7;font-size:13px}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:18px}.result{margin-top:12px;padding:14px;border:1px solid #2a3b30;border-radius:12px;background:#0b100c;line-height:1.7}.result strong{color:var(--green)}.big-result{display:grid;place-items:center;min-height:92px;margin-top:12px;border:1px dashed #36513d;border-radius:14px;font-size:28px;font-weight:850;color:var(--green);text-align:center;padding:16px}.copy-row{align-items:stretch}.copy-row input{flex:1}.hidden{display:none}.callout{border-radius:24px;padding:28px;display:flex;justify-content:space-between;align-items:center;gap:20px}footer{max-width:1180px;margin:auto;padding:40px 24px 60px;color:#829087;border-top:1px solid #1e2922;display:flex;justify-content:space-between;gap:25px;font-size:13px}footer div{display:flex;gap:10px}footer b{color:var(--text)}dialog{width:min(680px,calc(100% - 30px));border:1px solid #314338;border-radius:18px;background:#0e1410;color:var(--text);padding:0;box-shadow:0 30px 100px #000}dialog::backdrop{background:rgba(0,0,0,.72);backdrop-filter:blur(4px)}.search-box{padding:14px}.search-head{display:flex;gap:8px}.search-head input{font-size:18px}.search-item{display:block;padding:12px;margin-top:8px;border-radius:10px;color:var(--text);text-decoration:none;border:1px solid transparent}.search-item:hover{background:#151f18;border-color:#2a3c2f}.search-item small{display:block;color:var(--muted);margin-top:4px}@media(max-width:900px){.nav{display:none}.topbar{justify-content:space-between}.hero{grid-template-columns:1fr;min-height:auto}.tool-grid,.tool-grid.three{grid-template-columns:1fr 1fr}.split,.two-col{grid-template-columns:1fr}.hero-card{transform:none}.section-head{align-items:start;flex-direction:column}.panel-section{padding:50px 18px}}@media(max-width:560px){.tool-grid,.tool-grid.three{grid-template-columns:1fr}.workspace-head,.callout,footer{align-items:flex-start;flex-direction:column}.hero h1{font-size:64px}.topbar .ghost{font-size:0}.topbar .ghost:after{content:'⌘K';font-size:13px}.input-row{align-items:stretch;flex-direction:column}}
.command-box{display:flex;gap:10px}.command-box input{font-size:17px}.mini-panels{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:14px}.mini-panels>div{padding:16px;border:1px solid var(--line);border-radius:14px;background:#0d120f}.mini-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.mini-links a{color:var(--text);text-decoration:none;border:1px solid #2b3b30;border-radius:9px;padding:7px 10px;font-size:12px}.beta{font-size:9px;color:#071109;background:var(--green);padding:3px 6px;border-radius:999px;vertical-align:middle}.notebook{margin-top:10px}.note-row{display:grid;grid-template-columns:1.4fr repeat(3,.8fr) auto;gap:8px;padding:10px;border-bottom:1px solid var(--line);align-items:center;font-size:13px}.image-canvas{display:block;max-width:100%;margin-top:12px;border-radius:12px;border:1px solid var(--line)}.idea-card button{margin-top:10px}.privacy-on{outline:1px solid var(--green);color:var(--green)!important}@media(max-width:700px){.command-box,.mini-panels{display:flex;flex-direction:column}.note-row{grid-template-columns:1fr 1fr}.note-row b{grid-column:1/-1}}

.trust-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.trust-card{padding:20px;border:1px solid var(--line);border-radius:var(--radius);background:linear-gradient(180deg,rgba(20,27,22,.96),rgba(13,17,14,.96))}.trust-card b{color:var(--green);font-size:12px;letter-spacing:.12em}.trust-card p{color:var(--muted);line-height:1.55;margin:10px 0 0}.safety-banner{margin-top:16px;padding:16px 18px;border:1px solid #31543a;border-radius:14px;background:#0c1710;display:flex;gap:10px;justify-content:space-between}.safety-banner strong{color:var(--green)}footer a{color:#a9cbb2;text-decoration:none}footer a:hover{color:var(--green)}.legal{max-width:920px;margin:auto;padding:56px 24px 90px}.legal h1{font-size:46px;margin:8px 0 20px}.legal h2{margin-top:34px}.legal p,.legal li{color:#b7c4bb;line-height:1.7}.legal .back{display:inline-block;margin-bottom:24px;color:var(--green);text-decoration:none}.legal .box{padding:18px;border:1px solid var(--line);background:var(--panel);border-radius:14px}.legal ul{padding-left:22px}@media(max-width:900px){.trust-grid{grid-template-columns:1fr 1fr}.safety-banner{flex-direction:column}}@media(max-width:560px){.trust-grid{grid-template-columns:1fr}}

/* v0.4 — branding, patrons and owner integration */
.brand-logo{width:34px;height:34px;object-fit:cover;border-radius:10px;border:1px solid #2d5136;box-shadow:0 0 18px rgba(103,255,138,.12)}
.patrons-section{position:relative}.patrons-section:before{content:"";position:absolute;inset:40px 10px auto; height:260px;background:radial-gradient(circle at 50% 0,rgba(45,255,102,.08),transparent 65%);pointer-events:none}.patrons-head{position:relative}.patron-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.segmented{display:inline-flex;padding:4px;border:1px solid var(--line);border-radius:12px;background:#0b100c}.segmented button{border:0;background:transparent;color:var(--muted);padding:9px 12px;border-radius:9px;cursor:pointer;font-weight:750}.segmented button.active{background:#1b2a20;color:var(--green);box-shadow:inset 0 0 0 1px #2d4b35}.patron-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:18px}.patron-summary article{padding:18px;border:1px solid var(--line);border-radius:16px;background:linear-gradient(180deg,#121914,#0c110e)}.patron-summary span{display:block;color:var(--muted);font-size:12px;font-weight:700;margin-bottom:8px}.patron-summary strong{font-size:26px;color:var(--text)}.patrons-grid{display:grid;gap:9px}.patron-card{display:grid;grid-template-columns:52px 48px minmax(0,1fr) auto;align-items:center;gap:14px;padding:14px 16px;border:1px solid #26352b;border-radius:15px;background:linear-gradient(180deg,rgba(18,25,20,.96),rgba(11,16,13,.96));transition:.18s}.patron-card:hover{border-color:#3c5d45;transform:translateY(-1px)}.patron-card.rank-1{border-color:#4d774f;box-shadow:0 0 35px rgba(103,255,138,.07)}.patron-rank{font-size:18px;font-weight:850;text-align:center;color:#aab5ad}.patron-avatar{width:46px;height:46px;border-radius:14px;overflow:hidden;display:grid;place-items:center;background:#162119;border:1px solid #2e4435;color:var(--green);font-weight:850}.patron-avatar img{width:100%;height:100%;object-fit:cover}.patron-info{min-width:0}.patron-name{font-size:15px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.patron-name a,.recent-donation a{color:var(--text);text-decoration:none}.patron-name a:hover,.recent-donation a:hover{color:var(--green)}.patron-info small{display:block;color:var(--muted);margin-top:4px}.patron-ad{display:inline-block;margin-top:7px;color:#a9e8b5;font-size:12px;text-decoration:none;border:1px solid #294332;border-radius:8px;padding:4px 7px;background:#0e1711}.patron-amount{color:var(--green);font-size:17px;white-space:nowrap}.recent-support{margin-top:18px;padding:18px;border:1px solid var(--line);border-radius:18px;background:#0e1410}.recent-donations{display:grid;grid-template-columns:1fr 1fr;gap:8px}.recent-donation{display:grid;grid-template-columns:34px 1fr auto;align-items:center;gap:10px;padding:10px 12px;border-radius:12px;background:#0a0f0c;border:1px solid #202c24}.recent-donation b{font-size:13px}.recent-donation small{display:block;color:var(--muted);font-size:11px;margin-top:2px}.recent-donation strong{font-size:13px;color:var(--green)}.small-avatar{width:32px;height:32px;border-radius:9px;font-size:12px}.support-note{margin-top:18px}.support-hero{padding-top:120px;min-height:58vh}.support-hero h1{font-size:clamp(46px,8vw,82px);margin:12px 0 20px;letter-spacing:-.05em}.support-hero>p{max-width:760px;font-size:18px;line-height:1.7;color:#bac5bd}
.owner-page{background:radial-gradient(circle at 15% 0,#102619 0,transparent 35%),var(--bg)}.owner-badge{color:var(--green);border:1px solid #2e5637;border-radius:999px;padding:6px 9px;font-size:10px;font-weight:850;letter-spacing:.12em}.owner-main{max-width:1380px}.owner-main .panel-section{padding-top:34px;padding-bottom:34px}.owner-hero{display:flex;justify-content:space-between;align-items:end;gap:20px;padding-top:70px!important}.owner-hero h1{font-size:48px;margin:8px 0}.owner-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;padding:0 24px 20px}.owner-flash{margin:24px 24px 0;padding:13px 16px;border:1px solid #31543a;background:#0c1710;border-radius:12px;color:#c9ffd4}.owner-table-wrap{overflow:auto;border:1px solid var(--line);border-radius:16px}.owner-table{width:100%;border-collapse:collapse;min-width:900px;background:#0c110e}.owner-table th,.owner-table td{padding:12px 14px;border-bottom:1px solid #1f2b23;text-align:left;vertical-align:top;font-size:13px}.owner-table th{position:sticky;top:0;background:#111814;color:#93a098;font-size:11px;letter-spacing:.08em;text-transform:uppercase}.owner-table td>a{color:#dfffe5}.owner-table small{display:block;color:var(--muted);margin-top:3px}.inline-form{display:flex;gap:7px;align-items:center;flex-wrap:wrap}.inline-form input{width:auto;min-width:110px;padding:8px 9px}.ad-form input{max-width:180px}.switch-line{display:flex;flex-direction:row;align-items:center;gap:6px;margin:0}.switch-line input{width:auto}.ad-request{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:9px!important}.ad-request div{min-width:0}.ad-request a{display:block;color:#a9e8b5;word-break:break-all;margin-top:4px}.ad-request small{display:block;color:var(--muted);margin-top:5px}.ad-request form{display:flex;gap:8px}.owner-callback{max-width:620px;margin:15vh auto;padding:24px}.error-text{color:var(--danger)!important}
@media(max-width:900px){.patron-summary{grid-template-columns:1fr 1fr}.recent-donations{grid-template-columns:1fr}.owner-stats{grid-template-columns:1fr 1fr}.owner-hero{align-items:flex-start;flex-direction:column}}
@media(max-width:600px){.patron-summary{grid-template-columns:1fr}.patron-card{grid-template-columns:38px 42px 1fr}.patron-rank{font-size:14px}.patron-avatar{width:40px;height:40px}.patron-amount{grid-column:3;margin-top:2px}.patron-actions{align-items:stretch;flex-direction:column}.segmented{width:100%}.segmented button{flex:1}.owner-stats{grid-template-columns:1fr;padding:0 18px}.owner-main .panel-section{padding-left:18px;padding-right:18px}.ad-request{align-items:flex-start;flex-direction:column}}

/* v0.5 architecture + visual fixes */
.new-header{min-height:64px;padding-top:10px;padding-bottom:10px}.brand-mark{display:grid;place-items:center;min-width:42px;height:36px;padding:0 9px;border:1px solid #31543a;border-radius:10px;background:linear-gradient(145deg,#142019,#0b100d);color:var(--green);font-size:14px;font-weight:900;letter-spacing:.06em;box-shadow:0 0 24px rgba(103,255,138,.08)}.new-header .brand{gap:9px;white-space:nowrap}.new-header .nav{align-items:center}.new-header .nav a{padding:9px 0}.new-header .nav a.active{color:var(--green)}.header-search{white-space:nowrap;text-decoration:none}.home-hero{min-height:620px}.home-console{transform:none}.console-body{display:grid;gap:8px;padding:26px}.console-body>a{display:flex;justify-content:space-between;align-items:center;padding:15px 16px;border:1px solid var(--line);border-radius:12px;color:var(--text);text-decoration:none;background:#0c110e}.console-body>a:hover{border-color:#3d6448;background:#111a14}.console-body>a b{color:var(--green)}.home-section{padding-top:42px;padding-bottom:42px}.category-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.category-grid>a{display:flex;flex-direction:column;gap:8px;min-height:130px;justify-content:flex-end;padding:22px;border:1px solid var(--line);border-radius:18px;background:linear-gradient(180deg,#121914,#0c110e);text-decoration:none;color:var(--text);transition:.18s}.category-grid>a:hover{transform:translateY(-2px);border-color:#41664a}.category-grid b{color:var(--green);letter-spacing:.08em}.category-grid span{color:var(--muted);font-size:14px}.patrons-page{padding-top:92px}.patrons-hero{display:flex;justify-content:space-between;align-items:end;gap:30px;margin-bottom:30px}.patrons-hero h1{font-size:clamp(44px,7vw,76px);line-height:1;margin:10px 0 16px;letter-spacing:-.05em}.patrons-hero p{max-width:700px;color:var(--muted);line-height:1.6}.leaderboard-shell{padding:20px;border:1px solid var(--line);border-radius:20px;background:linear-gradient(180deg,#101713,#0b100d)}
@media(max-width:900px){.category-grid{grid-template-columns:1fr 1fr}.patrons-hero{align-items:flex-start;flex-direction:column}.home-hero{min-height:auto}.new-header .nav{display:none}}
@media(max-width:560px){.category-grid{grid-template-columns:1fr}.new-header{gap:10px}.header-search{display:none}.patrons-page{padding-top:54px}}

/* v0.6 visual/UX overhaul */
:root{--panel3:#0c110e;--soft:#172019;--line2:#314139;--green-soft:rgba(103,255,138,.10)}
body{background:radial-gradient(circle at 75% -10%,rgba(29,72,40,.25),transparent 26%),linear-gradient(180deg,#080b09 0%,#090d0a 100%)}
main{width:100%}.panel-section{scroll-margin-top:74px}.section-head{margin-bottom:28px}.section-head>div>p{margin:8px 0 0;color:var(--muted)}
.workspace{padding:24px;border-color:#26352d;box-shadow:0 12px 42px rgba(0,0,0,.20)}.workspace.compact{min-height:100%}.workspace h3{letter-spacing:-.02em}
.workspace-head>div{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.btn,.ghost,.toolbar button{min-height:40px;display:inline-flex;align-items:center;justify-content:center;transition:transform .15s ease,border-color .15s ease,background .15s ease,filter .15s ease}.btn:active,.ghost:active,.toolbar button:active{transform:translateY(1px)}
.ghost:hover,.toolbar button:hover{border-color:#45604e;background:#1a241d;color:#fff}
input,textarea,select{min-height:43px;background:#080d0a;border-color:#293a30}textarea{min-height:120px}input::placeholder,textarea::placeholder{color:#657168}
input[type=file]{padding:9px;color:#aab6ae}input[type=file]::file-selector-button{border:1px solid #355040;background:#17221b;color:#e8f2eb;border-radius:9px;padding:8px 11px;margin-right:10px;font-weight:750;cursor:pointer}
.toolbar{padding:10px;border:1px solid #26352d;background:#0b100d;border-radius:14px}.toolbar button{min-width:48px}
#post-studio{padding:24px}.editor-shell textarea,#bbInput{height:360px;min-height:360px;resize:vertical}.preview-shell .forum-preview{height:360px;min-height:360px;overflow:auto}.forum-preview{background:linear-gradient(180deg,#171c18,#111512)}
.two-col{align-items:stretch}.tool-grid.three{align-items:stretch}.calc-card{display:flex;flex-direction:column;gap:2px}.calc-card .result{margin-top:auto}
.input-row.balanced>*{flex:1}.action-row{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:12px 0}.action-row .btn,.action-row .ghost{margin:0}
.tool-title{display:flex;gap:12px;align-items:flex-start;margin-bottom:18px}.tool-title h3{margin:0 0 5px}.tool-title p{margin:0;color:var(--muted);font-size:13px;line-height:1.5}.tool-icon{width:40px;height:40px;display:grid;place-items:center;flex:0 0 auto;border-radius:12px;background:var(--green-soft);border:1px solid rgba(103,255,138,.2);color:var(--green);font-weight:900;font-size:18px}
.safe-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.safe-card{padding:22px}.safe-card.url-codec-card{grid-column:1/-1}.safe-card textarea{min-height:108px}.result-empty{color:#718078}.result:empty:before{content:'Результат появится здесь';color:#718078}.mono-output{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;letter-spacing:.02em}
.file-drop{position:relative;border:1px dashed #395344;background:#0a100c;border-radius:14px;padding:16px;margin-bottom:12px}.file-drop>span{font-size:13px;color:#aab7ae;margin-bottom:8px}.file-drop input{border:0;padding:0;background:transparent}
.mask-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:9px}.mask-grid label{margin:0}.preview-canvas{display:block;width:100%;max-height:280px;object-fit:contain;border-radius:14px;background:#0a0f0c;border:1px solid #26382d;margin-top:12px}.preview-canvas:not([width]){min-height:120px}
.mini-status{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:12px;color:#77867c;font-size:12px}.mini-status span:last-child{color:#9fcaaa}
.tool-pair{gap:18px}.compare-card,.timestamp-card{padding:22px}.compare-inputs label{margin:0}.compare-inputs textarea{height:230px;min-height:230px}.diff-result{max-height:330px;overflow:auto}.diff-summary{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:10px}.diff-chip{padding:5px 9px;border-radius:999px;border:1px solid #304238;font-size:12px}.diff-line{display:grid;grid-template-columns:32px 1fr;gap:8px;padding:7px 9px;border-radius:8px;margin:4px 0;font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px;white-space:pre-wrap;word-break:break-word}.diff-line.add{background:rgba(103,255,138,.08);color:#caffd5}.diff-line.remove{background:rgba(255,107,122,.08);color:#ffc2c9}.diff-line.change{background:rgba(255,211,105,.07);color:#f6e6b5}.diff-line.same{color:#7e8d83}.diff-mark{opacity:.7}
.mode-card{border:1px solid #293a30;background:#0a0f0c;border-radius:14px;padding:14px;margin-top:12px}.mode-card label{margin:8px 0}.mode-label{font-size:12px;font-weight:850;color:var(--green);letter-spacing:.08em;text-transform:uppercase}
.ideas-grid .idea-card{padding:20px;display:flex;flex-direction:column}.ideas-grid .idea-card .big-result{min-height:74px}.ideas-grid .idea-card button{align-self:flex-start}.idea-compose{display:grid;grid-template-columns:.8fr 1.6fr;gap:18px;align-items:center;margin-top:16px;padding:18px;border-radius:16px;border:1px solid #26382e;background:#0d130f}.idea-compose>div:first-child{display:flex;flex-direction:column;gap:4px}.idea-compose span{color:var(--muted);font-size:13px;line-height:1.45}.idea-compose .command-box{display:flex;gap:10px}.idea-compose .command-box input{flex:1}.status-pill{border:1px solid #304239;background:#111914;color:#9eb0a3;border-radius:999px;padding:7px 10px;font-size:12px}
#market .tool-grid.three{gap:18px}#market-notebook .input-row{align-items:flex-end}#market-notebook .input-row label{flex:1;margin:0}#market-notebook .result{margin-top:16px}.notebook{margin-top:10px}
#threadOutput{min-height:190px}#imageInfo{min-height:20px}.two-col>.workspace{height:100%}
@media(max-width:900px){.safe-grid{grid-template-columns:1fr}.safe-card.url-codec-card{grid-column:auto}.mask-grid{grid-template-columns:repeat(2,1fr)}.editor-shell textarea,#bbInput,.preview-shell .forum-preview{height:300px;min-height:300px}.idea-compose{grid-template-columns:1fr}}
@media(max-width:560px){.workspace{padding:18px}.action-row>*{flex:1}.mask-grid{grid-template-columns:1fr 1fr}.idea-compose .command-box{flex-direction:column}.workspace-head>div{justify-content:flex-start}.editor-shell textarea,#bbInput,.preview-shell .forum-preview{height:260px;min-height:260px}}

/* category route pages */
body.route-page main{max-width:1180px}body.route-page main>section{display:none}body.route-page main>section.route-target{display:block}body.route-page .route-target{padding-top:46px;min-height:calc(100vh - 160px)}body.route-page .hero,body.route-page .quickstart{display:none!important}.category-breadcrumbs{display:flex;gap:8px;align-items:center;color:var(--muted);font-size:12px;margin-bottom:24px}.category-breadcrumbs a{color:#b9c7bd;text-decoration:none}.category-breadcrumbs a:hover{color:var(--green)}
.two-col{align-items:start}.tool-pair{align-items:stretch}.tool-pair>.workspace{height:100%}.safe-grid{align-items:start}


/* v0.7 unified navigation + spacing */
.new-header{gap:18px}.new-header .nav{gap:7px;min-width:0;overflow-x:auto;scrollbar-width:none}.new-header .nav::-webkit-scrollbar{display:none}.new-header .nav a{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:8px 11px!important;border:1px solid transparent;border-radius:10px;white-space:nowrap;letter-spacing:.025em;font-size:12px}.new-header .nav a:hover{background:#121a15;border-color:#27382e}.new-header .nav a.active{background:rgba(103,255,138,.09);border-color:rgba(103,255,138,.24);color:var(--green)}
.hero-actions,.action-row,.toolbar,.command-box,.patron-actions,.segmented,.workspace-head>div,.input-row,.copy-row{gap:10px!important}.hero-actions,.action-row,.toolbar,.patron-actions,.workspace-head>div,.input-row{flex-wrap:wrap}.btn,.ghost,.toolbar button,.segmented button{margin:0!important}.segmented{display:inline-flex;padding:4px}.segmented button{border-radius:9px}
.feature-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.feature-grid article{position:relative;display:flex;flex-direction:column;gap:8px;min-height:145px;padding:20px;border:1px solid var(--line);border-radius:16px;background:linear-gradient(180deg,#111814,#0b100d)}.feature-grid article b{font-size:16px}.feature-grid article span{color:var(--muted);font-size:13px;line-height:1.5}.feature-grid article i{margin-top:auto;align-self:flex-start;padding:5px 8px;border:1px solid #31443a;border-radius:999px;color:#a6b5ab;font-size:11px;font-style:normal}.catalog-next{margin-top:52px}.catalog-grid b{text-transform:none;letter-spacing:0}.category-grid>a{gap:10px}
@media(max-width:1100px){.new-header{padding-left:16px;padding-right:16px}.header-search{display:none}.feature-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:900px){.new-header .nav{display:flex!important;order:3;flex-basis:100%;width:100%;padding-bottom:2px}.new-header{flex-wrap:wrap}.new-header .brand{margin-right:auto}.new-header #privacyBtn,.new-header #searchBtn{min-height:36px;padding:8px 10px}.panel-section{scroll-margin-top:118px}}
@media(max-width:560px){.feature-grid{grid-template-columns:1fr}.new-header{gap:8px}.new-header .nav a{min-height:36px;padding:7px 10px!important}.new-header #privacyBtn{font-size:0}.new-header #privacyBtn:after{content:'Приватность';font-size:12px}.action-row>*{flex:0 1 auto}.hero-actions>*{width:100%}}

/* v0.8 — spacing, unified controls, mobile navigation and new utilities */
:root{--card-gap:20px;--section-gap:32px;--control-gap:10px}
.new-header{column-gap:22px}
.new-header .nav{gap:8px;align-items:center}
.new-header .nav a{display:inline-flex;align-items:center;min-height:38px;padding:9px 11px;border:1px solid transparent;border-radius:10px;letter-spacing:0;font-size:12px;white-space:nowrap}
.new-header .nav a:hover{background:#121a15;border-color:#26372b;color:var(--text)}
.new-header .nav a.active{background:#122118;border-color:#2e5938;color:var(--green)}
.panel-section>.tool-grid,.panel-section>.two-col,.panel-section>.safe-grid,.panel-section>.patron-summary,.panel-section>.category-grid{gap:var(--card-gap)}
.workspace,.tool-card,.trust-card,.leaderboard-shell,.recent-support,.mode-card,.idea-compose,.patron-summary article{margin-top:0}
.workspace+.workspace,.leaderboard-shell+.recent-support,.recent-support+.safety-banner{margin-top:var(--card-gap)}
.tool-grid+.workspace,.tool-grid+.two-col,.two-col+.workspace,.workspace+.two-col,.safe-grid+.workspace{margin-top:var(--section-gap)}
.tool-grid.three{gap:var(--card-gap)}
.market-grid,.safe-grid,.tool-pair{gap:var(--card-gap)!important}
.action-row,.hero-actions,.input-row,.toolbar,.patron-actions,.segmented,.copy-row{gap:var(--control-gap)!important}
.action-row{display:flex;align-items:center;flex-wrap:wrap;margin-top:12px}
.action-row>.btn,.action-row>.ghost,.hero-actions>.btn,.hero-actions>.ghost{margin:0!important}
.btn,.ghost,.toolbar button,.segmented button{min-height:40px;display:inline-flex;align-items:center;justify-content:center;line-height:1.15}
.workspace.compact{height:auto;min-height:0}
.market-tools .workspace,.market-grid>.workspace{min-height:0}
.new-tool{position:relative}
.new-tool:after{content:'НОВОЕ';position:absolute;top:16px;right:16px;padding:4px 7px;border-radius:999px;background:#17321f;border:1px solid #315a3a;color:var(--green);font-size:9px;font-weight:800;letter-spacing:.08em}
.tool-subtitle{margin:-4px 0 14px;color:var(--muted);font-size:13px;line-height:1.5}
.inline-stats{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.inline-stats span{padding:7px 9px;border:1px solid var(--line);border-radius:9px;background:#0b100c;color:#aec0b2;font-size:12px}
.history-list{display:grid;gap:7px;margin-top:12px}.history-list div{display:flex;justify-content:space-between;gap:12px;padding:9px 11px;border:1px solid var(--line);border-radius:10px;background:#0b100c;font-size:12px}
.support-amounts{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0}.support-amounts button{min-width:92px}.support-form{max-width:650px;padding:22px;border:1px solid var(--line);border-radius:18px;background:linear-gradient(180deg,#121a14,#0d120f)}
.support-form .support-custom{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:end}.support-form .support-custom label{margin:0}.support-status{margin-top:14px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:#0b100c;color:var(--muted);font-size:13px}.support-status.error{border-color:#6a3038;color:#ffb7bf}.support-status.ok{border-color:#315a3a;color:#a9ffbb}
.breadcrumbs,.category-breadcrumbs{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:18px;color:var(--muted);font-size:13px}.breadcrumbs a,.category-breadcrumbs a{color:#b7d5be;text-decoration:none}
@media(max-width:1040px){.topbar.new-header{align-items:flex-start;flex-wrap:wrap}.new-header .nav{order:3;width:100%;overflow-x:auto;padding-bottom:2px;scrollbar-width:thin}.new-header .nav a{flex:0 0 auto}.new-header #privacyBtn,.new-header #searchBtn{margin-left:auto}}
@media(max-width:700px){:root{--card-gap:14px;--section-gap:22px}.panel-section{padding-left:16px;padding-right:16px}.support-form .support-custom{grid-template-columns:1fr}.new-header{padding-left:16px;padding-right:16px}.new-header .nav{display:flex}.topbar .ghost{font-size:12px}.topbar .ghost:after{content:none}.new-tool:after{position:static;display:inline-flex;margin-bottom:10px}}

/* v0.9 — unified tool layout / alignment */
:root{--tool-gap:24px;--tool-pad:22px;--tool-control-h:42px}
.route-page .panel-section>.two-col,
.route-page .panel-section>.safe-grid,
.route-page .panel-section>.tool-grid,
.route-page .market-grid{gap:var(--tool-gap)!important;align-items:stretch!important}
.route-page .workspace,
.route-page .safe-card,
.route-page .calc-card{height:100%;margin:0;display:flex;flex-direction:column;min-width:0}
.route-page .workspace-head,.route-page .tool-title{min-height:58px;align-items:flex-start}
.route-page .workspace>p.muted,.route-page .safe-card>p.muted{min-height:40px;margin-top:0}
.route-page .action-row,.route-page .hero-actions,.route-page .input-row{display:flex;flex-wrap:wrap;gap:12px!important;align-items:center}
.route-page .btn,.route-page .ghost,.route-page button{min-height:38px}
.route-page input:not([type=range]):not([type=checkbox]):not([type=radio]),.route-page select{min-height:var(--tool-control-h)}
.route-page .result,.route-page .big-result{margin-top:14px}
.route-page .calc-card .result{margin-top:auto}
.route-page textarea{min-height:120px}
.safe-grid{grid-auto-rows:auto}
.safe-grid>.safe-card{align-self:stretch}
.tool-pair>.workspace{align-self:stretch}
.compare-card,.timestamp-card{min-height:0}
.compare-inputs{align-items:stretch}
.compare-inputs label{display:flex;flex-direction:column}
.compare-inputs textarea{flex:1;height:210px;min-height:210px}
.timestamp-card .timestamp-mode{margin-bottom:14px}
#fun .tool-grid.three>.workspace{min-height:360px}
#fun .big-result{margin-top:16px;min-height:84px}
#market .tool-grid.three>.workspace{min-height:430px}
#market .tool-grid.three>.workspace .result{margin-top:auto}
#market .two-col>.workspace{min-height:0}
#create .two-col{align-items:start!important}
#create .two-col>.workspace{height:auto}
#create .workspace textarea{min-height:150px}
#create .image-canvas{max-height:320px;object-fit:contain}
@media(max-width:900px){:root{--tool-gap:18px}.route-page .workspace-head,.route-page .tool-title{min-height:0}.route-page .workspace>p.muted,.route-page .safe-card>p.muted{min-height:0}#market .tool-grid.three>.workspace,#fun .tool-grid.three>.workspace{min-height:0}}
@media(max-width:560px){:root{--tool-gap:16px;--tool-pad:18px}.route-page .action-row>*{flex:0 1 auto}.route-page .btn,.route-page .ghost{white-space:normal}}


/* v0.10 — visual grid normalization */
.route-page .tool-grid,.route-page .two-col,.route-page .safe-grid{grid-auto-flow:row;grid-auto-rows:1fr}
.route-page .workspace,.route-page .safe-card{padding:22px}
.route-page .workspace>h3:first-child,.route-page .safe-card h3:first-child{margin-top:0}
.route-page .workspace form,.route-page .safe-card form{display:flex;flex-direction:column;min-height:0}
.route-page label{margin-bottom:10px}
.route-page label>input,.route-page label>select,.route-page label>textarea{margin-top:7px}
.route-page .action-row{min-height:40px;margin-top:14px}
.route-page .result,.route-page .big-result,.route-page .output-box{width:100%;box-sizing:border-box}
#safe .safe-grid,#text .two-col,#market .tool-grid.three{align-items:stretch!important}
#safe .safe-grid>.workspace,#safe .safe-grid>.safe-card,#text .two-col>.workspace,#market .tool-grid.three>.workspace{height:100%}
#fun .tool-grid.three{align-items:stretch!important}
#fun .tool-grid.three>.workspace{height:100%;min-height:0}
#create .two-col{align-items:stretch!important}
#create .two-col>.workspace{height:100%}
#create .draft-manager .action-row{margin-top:0}
@media(max-width:900px){.route-page .tool-grid,.route-page .two-col,.route-page .safe-grid{grid-auto-rows:auto}.route-page .workspace,.route-page .safe-card{height:auto}#create .two-col>.workspace{height:auto}}
