:root{--bg:#f6f8fb;--panel:#fff;--text:#172033;--muted:#647084;--line:#dfe6ef;--brand:#1677ff;--brand-dark:#0f5fd0;--accent:#22c55e;--warn:#f59e0b;--danger:#ef4444;--soft:#eef5ff;--shadow:0 10px 28px rgba(17,32,54,.08)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--text);background:var(--bg);font-family:"Noto Sans SC","Microsoft YaHei",Arial,sans-serif;line-height:1.5}body:not(.admin-shell){background:linear-gradient(180deg,#eef5ff 0,#f8fafc 340px)}.topbar,.layout{width:min(1180px,calc(100% - 32px));margin:0 auto}.topbar{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;padding:38px 0 20px}.saas-hero h1{font-size:clamp(30px,5vw,48px)}.eyebrow{margin:0 0 8px;color:var(--brand);font-size:13px;font-weight:800;text-transform:uppercase}h1,h2,h3{letter-spacing:0}h1{margin:0;font-size:34px}h2{margin:0 0 14px;font-size:20px}h3{margin:14px 0 10px;font-size:15px}.notice{max-width:720px;margin:12px 0 0;color:var(--muted)}.hero-meta{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.hero-meta span,.badge{display:inline-flex;border-radius:999px;padding:4px 10px;background:#fff;border:1px solid var(--line);font-size:12px;font-weight:800;color:var(--muted)}.layout{padding-bottom:36px}.unlock-panel,.admin-panel,.tool-card,.front-dashboard article,.chart-card,.candidate-card,.metric-card{background:var(--panel);border:1px solid var(--line);border-radius:8px;box-shadow:var(--shadow)}.unlock-panel{padding:18px;margin-bottom:18px}.front-dashboard{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:18px}.front-dashboard article{padding:16px}.mini-list{display:grid;gap:8px}.mini-list a,.mini-list span{display:flex;justify-content:space-between;gap:12px;min-height:38px;padding:8px 10px;border-radius:6px;background:#f8fafc;color:var(--text);text-decoration:none}.mini-list small{color:var(--muted)}.mini-list .is-locked{color:#8a94a6;background:#f2f5f9;border:1px solid var(--line)}.user-pill{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:0 14px;border-radius:999px;background:#fff;border:1px solid var(--line);font-weight:800;color:var(--brand)}label{display:grid;gap:8px;color:var(--muted);font-size:14px;font-weight:750}.input-row,.admin-actions,.top-actions,.buy-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.input-row{margin-top:8px}input,select,textarea{width:100%;border:1px solid var(--line);border-radius:6px;color:var(--text);font:inherit;background:#fff}input,select{min-height:42px;padding:0 12px}textarea{min-height:110px;padding:12px;resize:vertical}button,.ghost-btn,.ghost-link{min-height:42px;border:0;border-radius:6px;padding:0 16px;font:inherit;font-weight:800;cursor:pointer;white-space:nowrap;text-decoration:none;display:inline-flex;align-items:center;justify-content:center}button,.ghost-btn{color:#fff;background:var(--brand)}button:hover,.ghost-btn:hover{background:var(--brand-dark)}.ghost-btn,button.secondary,.ghost-link{color:var(--brand);background:var(--soft)}button.danger{background:var(--danger);color:#fff}.tools-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.tool-card{padding:18px;scroll-margin-top:20px}.card-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.card-head-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.card-body{display:grid;gap:0}.tool-card.is-collapsed .card-body{display:none}.price{color:var(--warn);font-weight:900}.tool-card h3{color:var(--muted)}.tool-list{display:grid;gap:10px}.tool-link{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:50px;border:1px solid var(--line);border-radius:6px;padding:9px 13px;color:var(--text);background:#fbfdff;text-decoration:none}.tool-link:hover{border-color:var(--brand)}.tool-link small{color:var(--brand);font-weight:800}.tool-link.locked{color:#8994a6;background:#f2f5f9}.tool-link.locked small{color:#8994a6}.tool-link span{display:grid;gap:2px}.tool-link em{color:var(--muted);font-size:12px;font-style:normal;font-weight:400}.status{font-weight:800}.success{color:var(--accent)}.error{margin:10px 0 0;color:var(--danger);font-weight:800}.hint{margin:8px 0 0;color:var(--muted);font-size:14px}.active-code{margin-top:12px;border:1px solid #b8e7ca;border-radius:6px;padding:10px 12px;background:#f0fdf4;color:#15803d;font-weight:800}.vip-strip .cta-stack{display:grid;gap:10px}.tool-nav{display:grid;gap:12px;margin-bottom:18px}#toolSearch{min-height:48px;border-color:#cbd8e8;font-size:16px}.section-tabs{display:flex;gap:8px;overflow-x:auto;padding-bottom:4px;flex-wrap:wrap}.section-tabs a{flex:0 0 auto;border:1px solid var(--line);border-radius:999px;padding:8px 14px;color:var(--brand);background:#fff;font-weight:800;text-decoration:none}.buy-box{border:1px dashed var(--line);border-radius:6px;padding:12px;margin:10px 0 14px;background:#fbfdff}.buy-box p{margin:0 0 10px;color:var(--muted);font-size:14px}.degrade-banner{position:sticky;top:0;z-index:10;padding:10px 16px;background:#fef2f2;color:#b91c1c;font-weight:800;text-align:center}.support-toggle{position:fixed;right:18px;bottom:18px;z-index:20;border-radius:999px}.support-box{position:fixed;right:18px;bottom:74px;z-index:20;width:min(340px,calc(100% - 36px));padding:16px;background:#fff;border:1px solid var(--line);border-radius:8px;box-shadow:var(--shadow)}.support-history{display:grid;gap:8px;max-height:180px;overflow:auto;margin:12px 0}.support-row{display:flex}.support-row span{max-width:90%;padding:8px 10px;border-radius:8px;background:#f4f7fb}.support-row.user{justify-content:flex-end}.support-row.user span{background:#e8f1ff}.support-row.system{justify-content:flex-start}.trial-popup{position:fixed;inset:0;z-index:30;background:rgba(17,32,54,.38);display:flex;align-items:center;justify-content:center;padding:16px}.trial-card{width:min(420px,100%);padding:20px;background:#fff;border:1px solid var(--line);border-radius:8px;box-shadow:var(--shadow)}
.admin-shell{display:grid;grid-template-columns:220px minmax(0,1fr);min-height:100vh}.admin-shell.admin-locked{display:flex;align-items:center;justify-content:center;min-height:100vh;padding:24px}.admin-locked .admin-sidebar,.admin-locked .admin-topbar,.admin-locked .manager{display:none!important}.admin-locked .admin-main{width:min(860px,100%);padding:0}.admin-locked .unlock-panel{margin:0}.admin-sidebar{position:sticky;top:0;height:100vh;padding:20px 14px;background:#101828;color:#fff}.admin-sidebar h1{font-size:20px;margin:0 0 18px}.admin-sidebar a{display:flex;min-height:38px;align-items:center;padding:0 12px;margin-bottom:4px;border-radius:6px;color:#d8e1ef;text-decoration:none;font-weight:750}.admin-sidebar a:hover{background:#1d2939;color:#fff}.admin-main{padding:22px;width:min(1360px,100%)}.admin-topbar{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.manager{display:grid;gap:18px}.admin-panel{padding:16px 18px}.admin-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.full-row,.admin-actions,pre{grid-column:1/-1}.hidden{display:none!important}.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.metric-card{padding:14px}.metric-card span{color:var(--muted);font-size:13px;font-weight:800}.metric-card strong{display:block;margin-top:6px;font-size:28px}.charts-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:14px}.chart-card{padding:14px}canvas{width:100%;max-width:100%}.admin-sections{display:grid;gap:16px}.tool-editor-list,.resource-list{display:grid;gap:10px;margin:14px 0}.tool-editor-row,.new-tool-row,.resource-editor-row{display:grid;grid-template-columns:minmax(100px,.7fr) minmax(150px,1fr) minmax(130px,1fr) 110px auto auto auto auto;gap:10px;align-items:center}.check-label{display:inline-flex;align-items:center;gap:6px;color:var(--muted);font-size:14px;font-weight:800;white-space:nowrap}.check-label input{width:auto;min-height:auto}pre{overflow:auto;min-height:44px;max-height:220px;margin:12px 0 0;border:1px solid var(--line);border-radius:6px;padding:12px;background:#f8fafc;color:var(--muted);white-space:pre-wrap}.table-wrap{overflow:auto}.code-table{width:100%;border-collapse:collapse;font-size:14px}.code-table th,.code-table td{border-bottom:1px solid var(--line);padding:10px;text-align:left;white-space:nowrap}.code-table code{font-weight:900;color:var(--brand)}.badge.ok{color:#15803d;background:#dcfce7}.badge.bad{color:#b91c1c;background:#fee2e2}.bulk-box{border:1px dashed var(--line);border-radius:6px;padding:12px;margin:14px 0;background:#fbfdff}.section-editor{scroll-margin-top:18px}.section-tabs a.is-hidden{color:#8b9692;background:#f6f8f7;border-style:dashed}.code-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:10px 0 12px}.code-actions{margin:0 0 10px}.code-table .code-check{width:auto;min-height:auto}.candidate-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px}.candidate-card{padding:14px}.candidate-card p{color:var(--muted);margin:0 0 8px}.candidate-card small{display:block;color:var(--muted);margin-bottom:10px}
@media(max-width:980px){.admin-shell{grid-template-columns:1fr}.admin-sidebar{position:static;height:auto}.front-dashboard,.tools-grid,.charts-grid,.candidate-grid,.metric-grid{grid-template-columns:1fr}.admin-grid,.tool-editor-row,.new-tool-row,.resource-editor-row,.code-filters{grid-template-columns:1fr}.topbar,.admin-topbar{flex-direction:column}.input-row,.admin-actions{align-items:stretch}button,.ghost-btn,.ghost-link{width:100%}}
canvas{min-height:280px;display:block}
.chart-card{padding-bottom:20px}

.support-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.support-head h2{margin:0}.icon-btn{min-height:34px;padding:0 10px}.support-admin-card textarea{margin:10px 0}.support-admin-card small{line-height:1.6}
.support-table-wrap{margin-top:12px;overflow:auto;border:1px solid var(--line);border-radius:8px;background:#fff}.support-table{min-width:1120px}.support-table th{background:#f8fafc;color:var(--muted);font-size:13px}.support-table td{vertical-align:top}.support-message-cell{min-width:220px;max-width:360px;white-space:normal!important;word-break:break-word}.support-reply-cell{min-width:260px}.support-reply-cell textarea{min-height:62px;margin:0}.support-action-cell{display:flex;gap:8px;align-items:flex-start}.support-action-cell button{min-height:36px;padding:0 12px}.support-table code{display:inline-block;max-width:180px;overflow:hidden;text-overflow:ellipsis;vertical-align:bottom}
.tools-grid{display:block;column-count:2;column-gap:16px}.tool-card{break-inside:avoid;margin:0 0 16px}
.support-pager{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:12px 0 0;flex-wrap:wrap}.support-pager select{width:auto;min-width:90px}.support-pager button{min-height:36px;padding:0 12px}.section-editor-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.section-editor-body{margin-top:12px}.section-editor.is-collapsed .section-editor-body{display:none}
@media(max-width:980px){.tools-grid{column-count:1}.support-pager{align-items:stretch}.support-pager select,.support-pager button{width:100%}}
.conversion-panel{border-color:#b8d7ff;background:linear-gradient(180deg,#fff,#f7fbff)}.search-summary{min-height:22px}.tool-state{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:3px 8px;font-size:12px;line-height:1;font-style:normal}.tool-state.free{color:#15803d;background:#dcfce7}.tool-state.open{color:#0f5fd0;background:#e8f1ff}.tool-state.locked{color:#9a3412;background:#ffedd5}.tool-link.locked .tool-state.locked{color:#9a3412}.admin-sidebar a.is-active{background:#1677ff;color:#fff}.admin-toast{position:fixed;right:22px;top:18px;z-index:100;max-width:min(420px,calc(100% - 44px));padding:12px 14px;border:1px solid #b8d7ff;border-radius:8px;background:#fff;color:#172033;box-shadow:0 12px 30px rgba(17,32,54,.16);opacity:0;transform:translateY(-8px);pointer-events:none;transition:opacity .18s ease,transform .18s ease}.admin-toast.is-show{opacity:1;transform:translateY(0)}
.ops-summary{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 12px}.ops-summary span{display:inline-flex;align-items:center;min-height:34px;padding:0 12px;border-radius:999px;background:#f8fafc;border:1px solid var(--line);color:#475569;font-weight:800;font-size:13px}
.code-check-result{display:grid;gap:6px;margin-top:10px;padding:12px;border:1px solid #b8d7ff;border-radius:8px;background:#f7fbff;color:#172033}.code-check-result strong{color:#0f5fd0}.code-check-result span{color:#647084;font-size:14px}.code-rule{display:block;margin-top:4px;color:#647084;white-space:normal;max-width:280px;line-height:1.35}
.site-footer{width:min(1180px,calc(100% - 32px));margin:4px auto 34px}.footer-inner{border:1px solid var(--line);border-radius:8px;background:#fff;padding:18px;box-shadow:var(--shadow)}.footer-inner h2{font-size:16px;margin:0 0 10px;color:#172033}.footer-lines{display:grid;gap:6px}.footer-lines p{margin:0;color:#647084;font-size:13px;line-height:1.7}
.tool-editor-row,.new-tool-row,.resource-editor-row{grid-template-columns:minmax(92px,.65fr) minmax(140px,1fr) minmax(120px,.9fr) 120px 100px 110px 140px minmax(110px,.8fr) auto auto auto auto}
.wizard-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:12px 0 16px}.wizard-steps span{display:flex;align-items:center;gap:8px;min-height:42px;padding:0 12px;border:1px solid var(--line);border-radius:8px;background:#f8fafc;color:#475569;font-weight:800}.wizard-steps b{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:999px;background:var(--brand);color:#fff;font-size:13px}.support-message-cell small{display:block;margin-top:4px;color:var(--muted);max-width:360px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.support-drawer{position:fixed;right:22px;top:22px;bottom:22px;z-index:90;width:min(520px,calc(100% - 44px));overflow:auto;border:1px solid var(--line);border-radius:10px;background:#fff;box-shadow:0 22px 60px rgba(17,32,54,.22);padding:16px}.support-drawer-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.support-drawer-head h3{margin:0}.support-detail{display:grid;gap:12px}.support-detail p{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:#f8fafc}.support-detail p b{color:var(--muted)}.support-detail textarea[readonly]{background:#f8fafc}
@media(max-width:980px){.wizard-steps{grid-template-columns:1fr 1fr}.support-drawer{inset:12px;width:auto}}
.support-thread{display:grid;gap:12px;max-height:360px;overflow:auto;padding:10px;border:1px solid var(--line);border-radius:8px;background:#f8fafc}.support-thread-item{display:grid;gap:8px}.support-bubble{display:grid;gap:4px;max-width:88%;padding:9px 11px;border-radius:8px;border:1px solid var(--line);background:#fff}.support-bubble b{font-size:12px;color:var(--muted)}.support-bubble span{white-space:pre-wrap;word-break:break-word}.support-bubble small{color:var(--muted)}.support-bubble.user{justify-self:start}.support-bubble.system{justify-self:start;background:#eef5ff;border-color:#cfe1ff}.support-bubble.admin{justify-self:end;background:#ecfdf3;border-color:#bbf7d0}
.text-button{border:0;background:transparent;color:var(--brand);font:inherit;font-weight:900;padding:0;min-height:auto;cursor:pointer}.text-button:hover{background:transparent;color:var(--brand-dark)}.account-entry{display:grid;gap:2px;min-height:42px;padding:6px 14px;border:1px solid #b8d7ff;border-radius:999px;background:#fff;color:var(--brand);box-shadow:0 6px 16px rgba(22,119,255,.12);text-align:left}.account-entry strong{line-height:1.1}.account-entry small{color:#647084;font-size:12px;font-weight:700}.account-entry:hover{background:#f7fbff;color:var(--brand-dark)}.account-logout{background:#fff1f2;color:#e11d48}.account-logout:hover{background:#ffe4e6;color:#be123c}.account-center-card{width:min(820px,100%);max-height:calc(100vh - 40px);overflow-y:auto;overscroll-behavior:contain}.account-center-card h2{position:sticky;top:-20px;z-index:1;margin:-20px -20px 14px;padding:18px 20px;background:#fff;border-bottom:1px solid var(--line)}.account-summary,.purchase-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:10px 0}.account-summary span,.purchase-summary span{display:grid;gap:4px;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:#f8fafc;font-weight:900}.account-summary small,.purchase-summary small{color:var(--muted);font-weight:600}.chart-tooltip{position:fixed;z-index:120;display:none;min-width:150px;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:#fff;box-shadow:0 12px 30px rgba(17,32,54,.18);pointer-events:none}.chart-tooltip.is-show{display:grid;gap:6px}.chart-tooltip span{display:flex;justify-content:space-between;gap:20px;color:var(--muted)}.chart-tooltip b{color:var(--brand)}.recovery-card h3{margin-top:0}

.account-tabs{position:sticky;top:57px;z-index:2;display:flex;gap:8px;overflow:auto;margin:-6px -4px 14px;padding:4px 4px 10px;background:#fff}.account-tab{flex:0 0 auto;min-height:36px;padding:0 12px;border:1px solid var(--line);border-radius:999px;background:#fff;color:#475569}.account-tab.is-active{border-color:#1677ff;background:#eef5ff;color:#1677ff}.account-tab-panel{border:1px solid var(--line);border-radius:8px;background:#fbfdff;padding:14px;margin-bottom:12px}

.manager{align-items:start}.manager>#workbench{order:5}.manager>#dashboard{order:10}.manager>#codes{order:20}.manager>#orders{order:25}.manager>#ai{order:30}.manager>#tools{order:40}.manager>#sections{order:45}.manager>#channels{order:50}.manager>#copyright{order:60}.manager>#users{order:70}.manager>#accounts{order:80}.manager>#security{order:90}.manager>#adminlogs{order:95}.manager>#support{order:100}.manager>#notices{order:105}.manager>#settings{order:110}
.manager>#pricing{order:27}.admin-shell:not(.admin-locked){display:grid;grid-template-columns:220px minmax(0,1fr);overflow-x:hidden}.admin-shell:not(.admin-locked) .admin-sidebar{position:sticky;left:auto;top:0;width:auto;min-width:220px;z-index:50;overflow-y:auto}.admin-shell:not(.admin-locked) .admin-main{margin-left:0;width:100%;max-width:none;min-width:0;overflow-x:hidden}.pricing-price-input{min-width:110px}
.admin-panel{border-left:5px solid #cbd5e1}.admin-panel#workbench{border-left-color:#0f766e;background:linear-gradient(180deg,#fff,#f3fffb)}.admin-panel#dashboard{border-left-color:#1677ff;background:linear-gradient(180deg,#fff,#f8fbff)}.admin-panel#codes{border-left-color:#22c55e;background:linear-gradient(180deg,#fff,#f8fffb)}.admin-panel#orders{border-left-color:#2563eb;background:linear-gradient(180deg,#fff,#f7fbff)}.admin-panel#ai{border-left-color:#8b5cf6;background:linear-gradient(180deg,#fff,#fbf9ff)}.admin-panel#tools,.admin-sections .section-editor{border-left-color:#f59e0b;background:linear-gradient(180deg,#fff,#fffaf2)}.admin-panel#channels{border-left-color:#06b6d4;background:linear-gradient(180deg,#fff,#f2fcff)}.admin-panel#copyright{border-left-color:#14b8a6;background:linear-gradient(180deg,#fff,#f4fffc)}.admin-panel#users{border-left-color:#6366f1;background:linear-gradient(180deg,#fff,#f8f8ff)}.admin-panel#accounts{border-left-color:#ec4899;background:linear-gradient(180deg,#fff,#fff7fb)}.admin-panel#security{border-left-color:#ef4444;background:linear-gradient(180deg,#fff,#fff7f7)}.admin-panel#adminlogs{border-left-color:#475569;background:linear-gradient(180deg,#fff,#f8fafc)}.admin-panel#support{border-left-color:#0ea5e9;background:linear-gradient(180deg,#fff,#f5fbff)}.admin-panel#notices{border-left-color:#f97316;background:linear-gradient(180deg,#fff,#fff8f1)}.admin-panel#settings{border-left-color:#64748b;background:linear-gradient(180deg,#fff,#f8fafc)}
.section-editor-head{position:sticky;top:0;z-index:3;margin:-16px -18px 12px;padding:14px 18px;background:rgba(255,255,255,.96);border-bottom:1px solid var(--line);backdrop-filter:blur(8px)}
.section-editor-body{display:grid;gap:14px}.section-editor-body>h3{display:flex;align-items:center;gap:8px;margin:0;padding:10px 12px;border-radius:8px;border:1px solid var(--line);background:#fff;font-size:15px}.section-editor-body>h3::before{content:"";width:10px;height:10px;border-radius:999px;background:#94a3b8}.section-editor-body>h3:nth-of-type(1)::before{background:#1677ff}.section-editor-body>h3:nth-of-type(2)::before{background:#22c55e}.section-editor-body>h3:nth-of-type(3)::before{background:#f59e0b}.section-editor-body>h3:nth-of-type(4)::before{background:#ec4899}
.section-editor-body>.admin-grid:first-child{padding:14px;border:1px solid #d9e8ff;border-radius:8px;background:#f7fbff}.tool-editor-list,.section-editor-body>.new-tool-row{padding:12px;border:1px solid #cfe1ff;border-radius:8px;background:#f7fbff}.section-editor-body>h3:nth-of-type(2)+.admin-grid{padding:14px;border:1px solid #bbf7d0;border-radius:8px;background:#f4fff8}.resource-editor-list,.section-editor-body>.new-tool-row:last-child{padding:12px;border:1px solid #fed7aa;border-radius:8px;background:#fffaf2}.upload-resource-box{padding:14px;border:1px solid #fbcfe8;border-radius:8px;background:#fff7fb}
.section-editor .new-tool-row,.section-editor .tool-editor-row,.section-editor .resource-editor-row{background:#fff}.section-editor .new-tool-row{border-radius:8px}.section-editor.is-collapsed .section-editor-head{margin-bottom:-16px}
.resource-editor-row{grid-template-columns:minmax(100px,.7fr) minmax(150px,1fr) minmax(130px,1fr) 110px 140px minmax(120px,.8fr) 96px auto auto auto auto}.download-count-badge{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:0 10px;border-radius:999px;background:#fff7ed;color:#c2410c;font-size:12px;font-weight:900;white-space:nowrap}
.section-workspace{order:45;display:grid;grid-template-columns:280px minmax(0,1fr);gap:16px;align-items:start}.section-workspace-list{position:sticky;top:16px;max-height:calc(100vh - 32px);overflow:auto;border:1px solid var(--line);border-left:5px solid #f59e0b;border-radius:8px;background:#fffaf2;padding:14px;box-shadow:var(--shadow)}.section-workspace-list #sectionAdminSearch{margin-bottom:12px}.section-workspace-list .section-tabs{display:grid;gap:8px;overflow:visible}.section-workspace-list .section-tabs a{display:flex;width:100%;justify-content:space-between;border-radius:8px;background:#fff;color:#475569}.section-workspace-list .section-tabs a.is-active{border-color:#1677ff;background:#eef5ff;color:#1677ff}.section-workspace-detail{min-width:0}.section-workspace-detail .admin-sections{display:block}.section-editor{display:none}.section-editor.is-active-detail{display:block}.editor-accordion{border:1px solid var(--line);border-radius:8px;background:#fff;overflow:hidden}.editor-accordion-title{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:46px;padding:0 14px;border-radius:0;background:#fff;color:#172033}.editor-accordion-title:hover{background:#f8fafc;color:#172033}.editor-accordion-title span{font-weight:900}.editor-accordion-title small{color:#647084;font-weight:800}.editor-accordion-body{display:grid;gap:12px;padding:14px;background:#fbfdff}.editor-accordion.is-collapsed .editor-accordion-body{display:none}.editor-accordion.is-collapsed .editor-accordion-title{background:#f8fafc}.settings-subnav{position:sticky;top:8px;z-index:4;display:flex;gap:10px;flex-wrap:wrap;margin:0 0 14px;padding:10px;border:1px solid var(--line);border-radius:8px;background:rgba(255,255,255,.96);box-shadow:0 8px 20px rgba(17,32,54,.06);backdrop-filter:blur(8px)}.settings-subnav button{position:relative;min-height:38px;padding:0 14px 0 18px;border:1px solid transparent;background:#f8fafc;color:#334155}.settings-subnav button::before{content:"";position:absolute;left:8px;top:9px;bottom:9px;width:4px;border-radius:99px;background:#94a3b8}.settings-subnav button:nth-child(1){background:#eef5ff;color:#0f5fd0}.settings-subnav button:nth-child(1)::before{background:#1677ff}.settings-subnav button:nth-child(2){background:#f0fdf4;color:#15803d}.settings-subnav button:nth-child(2)::before{background:#22c55e}.settings-subnav button:nth-child(3){background:#faf5ff;color:#7e22ce}.settings-subnav button:nth-child(3)::before{background:#8b5cf6}.settings-subnav button:nth-child(4){background:#fff7ed;color:#c2410c}.settings-subnav button:nth-child(4)::before{background:#f59e0b}.settings-subnav button:nth-child(5){background:#fdf2f8;color:#be185d}.settings-subnav button:nth-child(5)::before{background:#ec4899}.settings-subnav button:hover{filter:brightness(.98)}.setting-focus{outline:2px solid #1677ff;outline-offset:4px;border-radius:8px}
.global-bulk-box{margin:0 0 16px;padding:16px;border:1px solid #b8d7ff;border-left:5px solid #1677ff;border-radius:8px;background:linear-gradient(180deg,#fff,#f7fbff);box-shadow:var(--shadow)}.global-bulk-box h3{margin-top:0}.global-bulk-box textarea{margin-top:10px}
@media(max-width:980px){.section-workspace{grid-template-columns:1fr}.section-workspace-list{position:static;max-height:none}.settings-subnav{position:static}.settings-group{grid-template-columns:1fr}.section-editor{display:block}.section-editor:not(.is-active-detail){display:none}}

.parent-section-tabs{align-items:center}.parent-tab-label{flex:0 0 auto;border:1px solid #d9e3df;border-radius:999px;padding:8px 12px;background:#f0fdf4;color:#15803d;font-weight:900}.parent-tool-group{break-inside:avoid;margin:0 0 18px}.parent-group-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 10px;padding:12px 14px;border:1px solid #bbf7d0;border-left:5px solid #22c55e;border-radius:8px;background:#f0fdf4}.parent-group-head h2{margin:0}.parent-group-head small{color:#15803d;font-weight:900}.mini-list button.is-locked{width:100%;min-height:38px;padding:8px 10px;border:1px solid var(--line);border-radius:6px;background:#f2f5f9;color:#8a94a6;display:flex;justify-content:space-between;gap:12px;text-align:left}.mini-list button.is-locked:hover{border-color:#f59e0b;background:#fff7ed;color:#9a3412}.support-row{display:grid;gap:3px}.support-row time{font-size:11px;color:#94a3b8}.support-row.user time{text-align:right}
.dashboard-debug{margin:10px 0 12px;padding:10px 12px;border:1px solid #86efac;border-left:5px solid #22c55e;border-radius:8px;background:#f0fdf4;color:#166534;font-size:13px;font-weight:900}

.last-update-badge{border-color:#bfdbfe!important;background:#eff6ff!important;color:#1d4ed8!important}

.setting-focus-group{background:#fffbea!important;box-shadow:0 0 0 2px #facc15 inset;border-radius:8px;padding:8px;transition:background .18s ease,box-shadow .18s ease}.settings-subnav button:focus{outline:2px solid #1677ff;outline-offset:2px}.settings-subnav button.is-active{box-shadow:0 0 0 2px rgba(22,119,255,.18) inset}.admin-panel#settings{border-left-width:7px;box-shadow:0 14px 34px rgba(15,23,42,.08)}#settings>.admin-grid{display:grid;grid-template-columns:1fr;gap:14px}.settings-group{position:relative;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:16px 16px 16px 18px;border:1px solid var(--line);border-left-width:6px;border-radius:8px;background:#fff;transition:box-shadow .18s ease,transform .18s ease,background .18s ease}.settings-group::before{content:"";position:absolute;left:0;top:0;bottom:0;width:6px;border-radius:8px 0 0 8px;background:#94a3b8}.settings-group-title{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:12px;margin:-2px 0 2px}.settings-group-title span{font-size:16px;font-weight:900;color:#172033}.settings-group-title small{font-size:12px;color:#647084;font-weight:900}.settings-group label.full-row,.settings-group .full-row{grid-column:1/-1}.settings-group-basic{border-left-color:#1677ff;background:linear-gradient(180deg,#fff,#f7fbff)}.settings-group-basic::before{background:#1677ff}.settings-group-support{border-left-color:#22c55e;background:linear-gradient(180deg,#fff,#f6fff8)}.settings-group-support::before{background:#22c55e}.settings-group-email{border-left-color:#8b5cf6;background:linear-gradient(180deg,#fff,#fbf7ff)}.settings-group-email::before{background:#8b5cf6}.settings-group-payment{border-left-color:#f59e0b;background:linear-gradient(180deg,#fff,#fff9f0)}.settings-group-payment::before{background:#f59e0b}.settings-group-display{border-left-color:#ec4899;background:linear-gradient(180deg,#fff,#fff7fb)}.settings-group-display::before{background:#ec4899}.settings-group-active{box-shadow:0 0 0 3px rgba(250,204,21,.78),0 16px 34px rgba(15,23,42,.12);transform:translateY(-1px)}.settings-actions-row{justify-content:flex-start;margin-top:2px;padding:14px;border:1px solid #dbeafe;border-left:6px solid #64748b;border-radius:8px;background:#f8fafc}
.admin-top-tools{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}.version-pill,.mini-link{display:inline-flex;align-items:center;min-height:34px;padding:0 10px;border-radius:999px;border:1px solid var(--line);background:#fff;color:#475569;font-size:13px;font-weight:900;text-decoration:none}.module-search{position:relative;min-width:min(360px,45vw)}.module-search input{min-height:38px}.module-search-results{position:absolute;right:0;top:44px;z-index:90;width:100%;max-height:260px;overflow:auto;border:1px solid var(--line);border-radius:8px;background:#fff;box-shadow:var(--shadow);padding:6px}.module-search-results button{width:100%;justify-content:flex-start;min-height:36px;margin:2px 0;background:#fff;color:#172033;border:1px solid transparent}.module-search-results button:hover{border-color:#b8d7ff;background:#eef5ff;color:#0f5fd0}.admin-preview-modal{position:fixed;inset:0;z-index:120;display:flex;align-items:center;justify-content:center;padding:18px;background:rgba(15,23,42,.42)}.admin-preview-card{width:min(520px,100%);max-height:86vh;overflow:auto;border:1px solid var(--line);border-radius:10px;background:#fff;box-shadow:0 18px 48px rgba(15,23,42,.22);padding:18px}.admin-preview-card img{width:100%;max-height:260px;object-fit:cover;border-radius:8px;margin:10px 0}.bot-badge{display:inline-flex;margin-left:6px;padding:2px 7px;border-radius:999px;background:#fff7ed;color:#c2410c;font-size:12px;font-weight:900}.stock-warning{border-color:#fed7aa!important;background:#fff7ed!important;color:#9a3412!important}
.view-mode-toggle{width:auto;min-width:154px;display:inline-grid;grid-template-columns:auto 1fr;align-items:center;gap:8px;color:#475569;font-size:13px;font-weight:900}.view-mode-toggle select{min-height:34px;padding:0 8px}.manager.view-single>.admin-panel,.manager.view-single>.admin-sections,.manager.view-single>.section-workspace{display:none}.manager.view-single>.admin-panel.is-current,.manager.view-single>.admin-sections.is-current,.manager.view-single>.section-workspace.is-current{display:block;animation:adminFadeIn .18s ease}.manager.view-single>.section-workspace.is-current{display:grid}.admin-panel.nav-jump-flash{animation:adminJumpFlash .42s ease}@keyframes adminFadeIn{from{opacity:.35;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}@keyframes adminJumpFlash{0%{box-shadow:0 0 0 0 rgba(22,119,255,.32)}50%{box-shadow:0 0 0 5px rgba(22,119,255,.18)}100%{box-shadow:var(--shadow)}}
.duration-option-list{display:grid;gap:8px;margin:10px 0}.duration-option-row{display:grid;grid-template-columns:minmax(140px,1fr) 110px 120px 90px auto;gap:8px;align-items:center;padding:10px;border:1px solid #dbeafe;border-radius:8px;background:#fff}.duration-option-row .check-label{justify-content:center}.duration-option-row input{min-height:38px}@media(max-width:980px){.duration-option-row{grid-template-columns:1fr}.view-mode-toggle{width:100%;grid-template-columns:1fr}}
.advanced-json-box{margin:10px 0 12px;padding:12px;border:1px dashed #cbd5e1;border-radius:8px;background:#f8fafc}.advanced-json-box summary{cursor:pointer;color:#475569;font-weight:900}.advanced-json-box textarea{font-family:Consolas,monospace;font-size:13px}
.admin-panel#pricing{overflow:hidden}.admin-panel#pricing .code-filters{grid-template-columns:repeat(auto-fit,minmax(180px,1fr));align-items:end}.admin-panel#pricing .code-filters button{width:100%}.admin-panel#pricing .table-wrap{max-width:100%;overflow-x:auto;overflow-y:visible;border:1px solid var(--line);border-radius:8px;background:#fff}.admin-panel#pricing .code-table{min-width:1480px}.admin-panel#pricing .code-table th,.admin-panel#pricing .code-table td{vertical-align:middle}.admin-panel#pricing .pricing-price-input{min-width:220px}.admin-panel#pricing .code-table td:nth-child(9){white-space:normal;min-width:220px;max-width:320px}
.section-editor .editor-accordion-body{overflow-x:hidden}.section-editor .new-tool-row{min-width:0!important;grid-template-columns:repeat(auto-fit,minmax(150px,1fr))!important;overflow:visible}.section-editor .new-tool-row button{width:100%}.section-workspace{position:relative}.section-nav-fixed{position:fixed!important;top:8px!important;z-index:30}.section-nav-bottom{position:absolute!important;top:auto!important;bottom:auto!important;z-index:20}

.stats-controls,.archive-controls{margin:12px 0;padding:12px;border:1px solid var(--line);border-left:5px solid #1677ff;border-radius:8px;background:#f8fbff}.inline-control{display:inline-grid;grid-template-columns:auto minmax(110px,160px);align-items:center;gap:8px;width:auto}.archived-row td{background:#fff7ed!important;color:#9a3412;font-weight:800}.tool-rank-panel{margin-top:16px;padding:14px;border:1px solid var(--line);border-radius:8px;background:#fff;box-shadow:var(--shadow)}.rank-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin-bottom:10px}.rank-head h3{margin:0}.rank-head small{color:var(--muted);font-weight:800}.daily-pager{margin-top:12px}.archive-controls .mini-list{margin-top:12px}
.top-alerts{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 14px;padding:12px;border:1px solid #fed7aa;border-left:6px solid #f97316;border-radius:8px;background:#fff7ed}.top-alerts a{display:inline-flex;min-height:32px;align-items:center;padding:0 10px;border-radius:999px;background:#fff;color:#9a3412;font-weight:900;text-decoration:none}.ops-workbench{display:grid;gap:12px;margin-top:14px}.ops-todo-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.ops-todo-list span{display:block;padding:12px;border:1px solid var(--line);border-radius:8px;background:#fff;color:#334155;font-weight:800}.ops-advice-list span{border-left:5px solid #14b8a6;background:#f4fffc}.section-tabs a small{display:block;color:#94a3b8;font-size:11px;font-weight:800}.log-detail{max-width:420px;white-space:normal!important;word-break:break-word;color:#647084;font-size:12px}.code-table td strong{display:block;color:#172033}.code-table td small{display:block;margin-top:3px;color:#94a3b8;font-size:11px}.admin-log-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 12px;padding:10px 12px;border:1px solid #dbeafe;border-left:5px solid #1677ff;border-radius:8px;background:#f8fbff}.admin-log-toolbar label{width:auto;min-width:180px}.admin-log-toolbar .hint{margin:0}.admin-log-pager{align-items:center;justify-content:flex-end;margin-top:10px}@media(max-width:980px){.ops-todo-list{grid-template-columns:1fr}.admin-top-tools,.admin-topbar{align-items:stretch}.module-search{min-width:100%}.support-box{right:10px;left:10px;width:auto;max-height:72vh;overflow:auto}.trial-card{max-height:90vh;overflow:auto}.purchase-summary,.account-summary{grid-template-columns:1fr}.notice-toggle{bottom:138px}}
.lazy-section-placeholder{padding:14px;border:1px dashed #b8d7ff;border-radius:8px;background:#f7fbff;color:#0f5fd0;font-weight:900}.rights-entry{background:#f0fdf4!important;color:#15803d!important}.rights-entry:hover{background:#dcfce7!important;color:#166534!important}

/* 20260627: front parent groups keep their header, child sections flow as masonry columns. */
body:not(.admin-shell) .tools-grid{display:grid;grid-template-columns:1fr;gap:18px}
body:not(.admin-shell) .parent-tool-group{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:0 0 18px}
body:not(.admin-shell) .parent-group-head{grid-column:1/-1}
body:not(.admin-shell) .parent-tool-group .tool-card{width:100%;margin:0}
body:not(.admin-shell) .tool-card.is-collapsed{min-height:110px}
body:not(.admin-shell) .tool-card:not(.is-collapsed){grid-column:1/-1}
@media(max-width:980px){body:not(.admin-shell) .parent-tool-group{grid-template-columns:1fr}}

/* 20260627: make the admin section workspace jump target visually obvious. */
.section-workspace-detail{scroll-margin-top:18px}
.section-editor.is-active-detail{display:block!important}
.section-editor.is-active-detail.section-jump-focus{box-shadow:0 0 0 3px rgba(22,119,255,.22),var(--shadow)}

/* 20260627: admin parent group / child section / edit detail three-column workspace. */
.admin-shell .section-workspace{grid-template-columns:220px 280px minmax(0,1fr)!important}
.section-parent-column{position:sticky;top:16px;max-height:calc(100vh - 32px);overflow:auto;border:1px solid var(--line);border-left:5px solid #22c55e;border-radius:8px;background:#f0fdf4;padding:14px;box-shadow:var(--shadow)}
.section-parent-column .global-bulk-box{margin:0;box-shadow:none;background:transparent;border:0;padding:0}
.section-parent-column #parentGroupList{display:grid;gap:8px;margin-top:12px}
.parent-group-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px;align-items:center}
.parent-group-select{width:100%;min-height:48px;display:grid;justify-items:start;gap:2px;padding:8px 10px;border:1px solid var(--line);border-radius:8px;background:#fff;color:#334155;text-align:left;white-space:normal}
.parent-group-select:hover{border-color:#22c55e;background:#f7fff9;color:#15803d}
.parent-group-row.is-active .parent-group-select{border-color:#22c55e;background:#dcfce7;color:#15803d;box-shadow:0 0 0 2px rgba(34,197,94,.12)}
.parent-group-select small,.parent-group-default{color:#647084;font-size:12px;font-weight:800}
.mini-danger{min-height:34px;padding:0 10px;border-radius:6px;background:#fee2e2;color:#b91c1c;font-size:12px}
.mini-danger:hover{background:#fecaca;color:#991b1b}
@media(max-width:980px){.admin-shell .section-workspace{grid-template-columns:1fr!important}.section-parent-column{position:static;max-height:none}}

/* 20260627: keep long tool/resource editor rows readable instead of clipping checkboxes on the right. */
.section-editor .tool-editor-list,.section-editor .resource-editor-list{overflow-x:auto;overflow-y:visible;padding-bottom:14px}
.section-editor .tool-editor-row,.section-editor .new-tool-row,.section-editor .resource-editor-row{min-width:1180px;grid-template-columns:150px 220px 220px 120px 170px 180px 86px 86px 86px 86px!important}
.section-editor .resource-editor-row{min-width:1280px;grid-template-columns:150px 220px 220px 120px 170px 180px 110px 86px 86px 86px 86px!important}
.section-editor .tool-editor-row input,.section-editor .tool-editor-row select,.section-editor .new-tool-row input,.section-editor .new-tool-row select,.section-editor .resource-editor-row input,.section-editor .resource-editor-row select{min-width:0}
.section-editor .check-label{justify-content:flex-start;min-width:76px;white-space:nowrap}
.section-editor .check-label input{flex:0 0 auto}
.section-index-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:6px;align-items:center}
.section-index-row>a{min-width:0}
.tiny-btn{min-height:30px;padding:0 9px;font-size:12px}
.tiny-btn:disabled,.move-up:disabled,.move-down:disabled{opacity:.45;cursor:not-allowed}
.row-check{display:inline-flex;align-items:center;gap:5px;color:#647084;font-size:13px;font-weight:800;white-space:nowrap}
.row-check input{width:auto;min-height:auto}
.batch-move-box{display:grid;grid-template-columns:1fr minmax(180px,260px) auto;gap:10px;align-items:center;border:1px dashed var(--line);border-radius:8px;padding:10px;margin:10px 0 14px;background:#fbfdff}
.section-editor .tool-editor-row{min-width:1840px;grid-template-columns:64px 160px 240px 240px 130px 130px 150px 180px 180px 86px 86px 280px!important}
.section-editor .resource-editor-row{min-width:1940px;grid-template-columns:64px 160px 240px 240px 130px 130px 150px 180px 180px 110px 86px 86px 280px!important}
.row-action-group{display:flex;align-items:center;gap:8px;white-space:nowrap}.row-action-group button{min-height:38px;padding:0 12px}
.editor-list-pager{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:10px 0 14px;padding:10px;border:1px solid var(--line);border-radius:8px;background:#f8fafc}.editor-list-pager .admin-actions{margin:0}.editor-list-pager select{width:auto;min-width:92px}
.admin-shell .section-parent-column,.admin-shell .section-workspace-list{top:8px!important;align-self:start;max-height:calc(100vh - 16px)!important;overflow:auto}
.finder-summary{padding:10px 12px;border:1px solid #bfdbfe;border-radius:8px;background:#eff6ff;color:#1d4ed8;font-weight:900}
.finder-result{width:100%;min-height:54px;display:grid;justify-items:start;gap:3px;padding:9px 12px;border:1px solid var(--line);border-left:5px solid #94a3b8;border-radius:8px;background:#fff;color:#172033;text-align:left}
.finder-result:hover{background:#f8fafc;color:#172033;border-color:#cbd5e1}
.finder-result strong{font-size:14px}
.finder-result small{color:#647084;font-size:12px;font-weight:800}
.finder-section{border-left-color:#1677ff}
.finder-tool{border-left-color:#22c55e}
.finder-resource{border-left-color:#f59e0b}
.finder-focus{outline:3px solid rgba(22,119,255,.45);outline-offset:3px;animation:finderPulse 1.8s ease}
@keyframes finderPulse{0%,100%{background:#fff}30%{background:#eef5ff}60%{background:#f0fdf4}}
.module-search-results button{display:grid;justify-items:start;gap:2px;text-align:left}
.module-search-results button small{color:#647084;font-size:12px}
.config-backup-panel{border-left:5px solid #22c55e}
.backup-pages{margin-top:10px}
.backup-pages button:disabled{opacity:.45;cursor:not-allowed}
.editor-accordion-body{overflow-x:auto}

/* 20260627: compact management rows for channel and copyright source lists. */
#channelList,#copyrightSourceList{display:grid!important;grid-template-columns:1fr!important;gap:10px!important}
.compact-manage-row{display:grid;grid-template-columns:minmax(180px,1fr) 160px minmax(220px,1.2fr) auto;gap:12px;align-items:center;padding:12px;border:1px solid var(--line);border-radius:8px;background:#fff;box-shadow:0 6px 18px rgba(17,32,54,.05)}
.compact-main{display:grid;gap:4px;min-width:0}.compact-main strong{font-size:15px;color:#172033}.compact-main span{color:#647084;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.compact-manage-row code{font-weight:900;color:#1677ff;background:#eef5ff;border-radius:6px;padding:7px 9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.compact-manage-row input{min-height:38px}.compact-manage-row img{width:54px;height:54px;border:1px solid #dfe6ef;border-radius:6px;background:#fff;padding:3px}
.compact-actions{display:flex;gap:8px;justify-content:flex-end}.compact-actions button{min-height:36px;padding:0 12px}
.copyright-row{grid-template-columns:minmax(220px,1fr) 180px auto}.channel-row{grid-template-columns:minmax(180px,1fr) 130px 64px minmax(260px,1.2fr) auto}
@media(max-width:980px){.compact-manage-row,.copyright-row,.channel-row{grid-template-columns:1fr}.compact-actions{justify-content:flex-start;flex-wrap:wrap}.compact-manage-row img{width:96px;height:96px}}

/* 20260627: smoother admin section switching feedback. */
.section-editor{transition:opacity .18s ease,transform .18s ease,box-shadow .18s ease}
.section-editor.section-transition-pop{animation:sectionPop .46s ease both}

/* 20260701: optional code scope limits and mobile admin fallback. */
.allowed-scope-box{display:grid;gap:10px;padding:12px;border:1px dashed #b8d7ff;border-radius:8px;background:#f7fbff}
.allowed-scope-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.allowed-scope-toolbar button{width:auto;min-height:34px;padding:0 12px}
.allowed-scope-toolbar span{color:#475569;font-size:13px;font-weight:900}
.allowed-scope-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:8px;max-height:260px;overflow:auto;padding:4px}
.allowed-scope-item{display:flex;align-items:flex-start;gap:8px;padding:9px;border:1px solid var(--line);border-radius:8px;background:#fff;color:#172033}
.allowed-scope-item input{width:auto;min-height:auto;margin-top:4px;flex:0 0 auto}
.allowed-scope-item span{display:grid;gap:2px;min-width:0}.allowed-scope-item small{color:#647084;font-size:12px;word-break:break-all}
@media(max-width:720px){
  body.admin-shell{display:block!important;min-width:0;overflow-x:hidden;background:#f6f8fb}
  .admin-shell.admin-locked{display:flex!important;padding:14px;align-items:flex-start;justify-content:center}
  .admin-locked .admin-main{width:100%;max-width:430px;padding:0;margin:0 auto}
  .admin-locked .unlock-panel{width:100%;padding:16px}
  .admin-locked .input-row,.admin-locked .admin-actions{display:grid;grid-template-columns:1fr;gap:10px}
  .admin-shell:not(.admin-locked){display:block!important;overflow-x:hidden}
  .admin-shell:not(.admin-locked) .admin-sidebar{position:sticky!important;top:0;height:auto;width:100%;min-width:0;z-index:80;padding:10px;background:#101828;overflow-x:auto;overflow-y:hidden;white-space:nowrap}
  .admin-shell:not(.admin-locked) .admin-sidebar h1{font-size:16px;margin:0 0 8px}
  .admin-shell:not(.admin-locked) .admin-sidebar nav{display:flex;gap:6px;overflow-x:auto;padding-bottom:4px}
  .admin-shell:not(.admin-locked) .admin-sidebar a{flex:0 0 auto;margin:0;min-height:34px;padding:0 10px;font-size:13px}
  .admin-shell:not(.admin-locked) .admin-main{width:100%;max-width:100%;padding:12px;overflow-x:hidden}
  .admin-topbar,.admin-top-tools{display:grid;grid-template-columns:1fr;gap:10px;align-items:stretch}
  .admin-panel{padding:14px 12px;max-width:100%;overflow:hidden}
  .admin-grid,.code-filters,.settings-group{grid-template-columns:1fr!important}
  .table-wrap,.support-table-wrap,.section-editor .tool-editor-list,.section-editor .resource-editor-list{max-width:100%;overflow-x:auto}
  .code-table{min-width:760px}
  .allowed-scope-list{grid-template-columns:1fr;max-height:220px}
  .allowed-scope-toolbar{align-items:stretch}.allowed-scope-toolbar button{width:100%}
}
@keyframes sectionPop{0%{opacity:.42;transform:translateY(10px);box-shadow:0 0 0 0 rgba(22,119,255,0)}60%{opacity:1;transform:translateY(0);box-shadow:0 0 0 4px rgba(22,119,255,.16)}100%{opacity:1;transform:translateY(0);box-shadow:var(--shadow)}}

/* 20260629: keep only the tool/resource list as the horizontal scroller.
   The "add new tool/resource" rows should wrap inside the card instead of creating a second bottom bar. */
.section-editor .editor-accordion-body>.new-tool-row,
.section-editor .section-editor-body>.new-tool-row{
  min-width:0!important;
  max-width:100%;
  grid-template-columns:repeat(auto-fit,minmax(160px,1fr))!important;
  overflow:visible!important;
}
.section-editor .editor-accordion-body>.new-tool-row input,
.section-editor .editor-accordion-body>.new-tool-row select,
.section-editor .section-editor-body>.new-tool-row input,
.section-editor .section-editor-body>.new-tool-row select{width:100%}

/* 20260629: bounded sticky helpers for the parent/child section columns. */
.section-workspace{isolation:isolate}
.section-nav-fixed,.section-nav-bottom{box-sizing:border-box}

/* 20260629: improve editor checkbox readability and keep admin section nav bounded by the tool workspace. */
.section-editor .new-tool-row .check-label,
.section-editor .tool-editor-row .check-label,
.section-editor .resource-editor-row .check-label{min-width:112px;justify-content:flex-start}
.section-editor .new-tool-row .check-label{padding:0 8px}
.admin-shell .section-parent-column,
.admin-shell .section-workspace-list{position:sticky!important;top:8px!important;z-index:2}

/* 20260629: final bounded tool workspace layout and readable add rows. */
.admin-shell .section-workspace{align-items:start!important;overflow:visible!important}
.admin-shell .section-parent-column,
.admin-shell .section-workspace-list{align-self:start!important;position:sticky!important;top:8px!important;max-height:calc(100vh - 16px)!important;overflow:auto!important}
.section-editor .editor-accordion-body>.new-tool-row,
.section-editor .section-editor-body>.new-tool-row{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(180px,1fr)) repeat(2,minmax(112px,auto)) minmax(130px,160px)!important;
  gap:10px!important;
  align-items:center!important;
  min-width:0!important;
  overflow:visible!important;
}
.section-editor .new-tool-row .check-label{display:flex!important;min-width:112px!important;gap:8px!important;color:#334155}
.section-editor .new-tool-row .check-label input{flex:0 0 auto!important}
.section-editor .new-tool-row button{width:100%!important}
.pricing-manage-list{display:grid;gap:10px;margin:10px 0 14px}
.pricing-discount-row{display:grid;grid-template-columns:160px 140px 160px minmax(180px,1fr) auto;gap:10px;align-items:center;padding:10px;border:1px solid var(--line);border-radius:8px;background:#fff}
.pricing-plan-row{display:grid;grid-template-columns:minmax(160px,1fr) 140px 120px 120px 120px minmax(150px,1fr) 110px 90px auto;gap:10px;align-items:center;padding:10px;border:1px solid var(--line);border-radius:8px;background:#fff}
.pricing-plan-row .check-label{min-width:80px}
@media(max-width:1180px){.section-editor .editor-accordion-body>.new-tool-row,.section-editor .section-editor-body>.new-tool-row,.pricing-discount-row,.pricing-plan-row{grid-template-columns:1fr!important}.section-editor .new-tool-row .check-label{min-height:38px}}

/* 20260628: site notice center with optional image. */
.notice-toggle{position:fixed;right:18px;bottom:128px;z-index:20;border-radius:999px;background:#0ea5e9;color:#fff;box-shadow:var(--shadow)}
.site-notice-card{width:min(560px,100%);max-height:calc(100vh - 42px);overflow:auto}
.site-notice-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px}
.site-notice-image{width:100%;max-height:260px;object-fit:contain;border:1px solid var(--line);border-radius:8px;background:#f8fafc;margin:8px 0 12px}
.site-notice-content{padding:12px;border:1px solid var(--line);border-radius:8px;background:#f8fafc;color:#334155;line-height:1.75;white-space:normal;word-break:break-word}
.site-notice-list{display:grid;gap:8px;margin:12px 0}.site-notice-list button{justify-content:space-between;gap:12px;background:#fff;color:#334155;border:1px solid var(--line)}.site-notice-list button small{color:#647084}
.notice-editor{border:1px solid var(--line);border-left:5px solid #0ea5e9;border-radius:8px;background:#f5fbff;padding:14px;margin:0 0 12px}
.notice-editor-head{display:flex;align-items:center;gap:12px;margin-bottom:12px;flex-wrap:wrap}.notice-editor-head strong{font-size:16px}.notice-editor-head small{color:#647084;font-weight:800}
@media(max-width:980px){.notice-toggle{right:18px;bottom:128px}.site-notice-card{width:min(94vw,560px)}.site-notice-image{max-height:220px}}

/* 20260628: user-facing entry, rights overview, and unified front search. */
.front-quick-nav{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px;margin:0 0 16px}
.front-quick-nav button{display:grid;justify-items:start;gap:4px;min-height:72px;padding:12px 14px;border:1px solid #dbeafe;border-left:5px solid #1677ff;border-radius:8px;background:#fff;color:#172033;text-align:left;box-shadow:var(--shadow)}
.front-quick-nav button:hover{background:#f7fbff;color:#0f5fd0}
.front-quick-nav strong{font-size:16px}
.front-quick-nav small{color:#647084;font-weight:700;white-space:normal}
.front-quick-nav button:nth-child(2){border-left-color:#22c55e}
.front-quick-nav button:nth-child(3){border-left-color:#f59e0b}
.front-quick-nav button:nth-child(4){border-left-color:#0ea5e9}
.front-quick-nav button:nth-child(5){border-left-color:#8b5cf6}
.rights-overview-panel{display:grid;grid-template-columns:1.2fr .8fr;gap:16px;margin:0 0 18px}
.rights-overview-panel article{padding:16px;border:1px solid var(--line);border-radius:8px;background:#fff;box-shadow:var(--shadow)}
.rights-overview-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:10px 0 12px}
.rights-overview-grid span{display:grid;gap:4px;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:#f8fafc;font-weight:900}
.rights-overview-grid small{color:#647084;font-weight:700}
.rights-steps{display:grid;gap:8px}
.rights-steps span{display:flex;gap:10px;align-items:center;min-height:42px;padding:9px 10px;border:1px solid var(--line);border-radius:8px;background:#f8fafc;color:#334155;font-weight:800}
.rights-steps b{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:999px;background:#1677ff;color:#fff;font-size:13px;flex:0 0 auto}
.front-search-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:12px;border:1px solid #bfdbfe;border-radius:8px;background:#eff6ff}
.front-search-results button{display:grid;justify-items:start;gap:4px;min-height:54px;padding:9px 12px;border:1px solid #dbeafe;border-left:5px solid #1677ff;border-radius:8px;background:#fff;color:#172033;text-align:left}
.front-search-results button:hover{background:#f8fbff;color:#0f5fd0}
.front-search-results button.is-locked{border-left-color:#f59e0b;background:#fffaf2}
.front-search-results small{color:#647084;font-weight:700;white-space:normal}
.front-focus{outline:3px solid rgba(22,119,255,.42);outline-offset:3px;animation:frontFocusPulse 1.6s ease}
.purchase-card{width:min(640px,100%)}
.purchase-card .purchase-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
.purchase-card #lockedToolActions{margin:12px 0}
.purchase-center-card{width:min(760px,100%);max-height:calc(100vh - 36px);overflow:auto}
.purchase-type-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:14px 0}
.purchase-type-grid button{display:grid;justify-items:start;gap:4px;min-height:82px;padding:12px;border:1px solid #dbeafe;border-left:5px solid #1677ff;border-radius:8px;background:#fff;color:#172033;text-align:left}
.purchase-type-grid button:hover,.purchase-type-grid button.is-active{background:#eff6ff;color:#0f5fd0;box-shadow:0 0 0 2px rgba(22,119,255,.12) inset}
.purchase-type-grid button:nth-child(2){border-left-color:#22c55e}
.purchase-type-grid button:nth-child(3){border-left-color:#f59e0b}
.purchase-type-grid button:nth-child(4){border-left-color:#8b5cf6}
.purchase-type-grid small{color:#647084;font-weight:700;white-space:normal}
.purchase-center-detail{display:grid;gap:10px;margin:10px 0 14px;padding:14px;border:1px solid #dbeafe;border-radius:8px;background:#f8fbff}
.purchase-center-detail h3{margin:0;color:#172033}
.purchase-center-detail p{margin:0;color:#647084;font-weight:700}
.purchase-section-list{display:grid;gap:8px}
.purchase-section-list span{display:grid;grid-template-columns:minmax(140px,.8fr) minmax(180px,1fr) auto;gap:10px;align-items:center;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:#fff}
.purchase-section-list small{color:#647084;font-weight:700}
.purchase-section-list em{display:flex;gap:8px;justify-content:flex-end;font-style:normal}
.purchase-section-list a{color:#1677ff;font-weight:900;text-decoration:none;white-space:nowrap}
.purchase-plan-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.purchase-plan-list button,.purchase-plan-list span{display:grid;justify-items:start;gap:4px;min-height:66px;padding:11px 12px;border:1px solid var(--line);border-left:5px solid #22c55e;border-radius:8px;background:#fff;color:#172033;text-align:left}
.purchase-plan-list button:hover{border-color:#22c55e;background:#f0fdf4;color:#15803d}
.purchase-plan-list small{color:#647084;font-weight:700;white-space:normal}
.purchase-plan-list em,.purchase-product-list em{justify-self:end;display:inline-flex;min-height:28px;align-items:center;padding:0 10px;border-radius:999px;background:#1677ff;color:#fff;font-style:normal;font-weight:900}
.purchase-product-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;max-height:280px;overflow:auto;padding-right:4px}
.purchase-product-list button,.purchase-product-list span{display:grid;justify-items:start;gap:5px;min-height:76px;padding:11px 12px;border:1px solid var(--line);border-left:5px solid #8b5cf6;border-radius:8px;background:#fff;color:#172033;text-align:left}
.purchase-product-list button:hover{border-color:#8b5cf6;background:#fbf7ff;color:#6d28d9}
.purchase-product-list small{color:#647084;font-weight:700;white-space:normal;line-height:1.45}
.purchase-center-card{width:min(900px,100%)}.purchase-duration{display:grid;grid-template-columns:auto minmax(160px,240px);align-items:center;gap:10px;margin:12px 0;color:#475569;font-weight:900}.purchase-duration small{grid-column:1/-1;color:#647084;font-size:12px;font-weight:700}.purchase-row-list,.purchase-section-list.purchase-row-list,.purchase-plan-list.purchase-row-list,.purchase-product-list.purchase-row-list{display:grid;grid-template-columns:1fr;gap:8px;max-height:none;overflow:visible;padding-right:0}.purchase-row-list .purchase-row{width:100%;display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:14px;min-height:54px;padding:9px 12px;border:1px solid var(--line);border-left:5px solid #1677ff;border-radius:8px;background:#fff;color:#172033;text-align:left}.purchase-row-list .purchase-row:hover{border-color:#1677ff;background:#f7fbff;color:#172033}.purchase-row span{display:grid;gap:2px;min-width:0}.purchase-row strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.purchase-row small{color:#647084;font-size:12px;font-weight:800;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.purchase-row b{color:#f59e0b;font-size:16px}.purchase-row em{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:0 12px;border-radius:6px;background:#1677ff;color:#fff;font-style:normal;font-weight:900}.bundle-row{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:10px;padding:9px 12px;border:1px solid var(--line);border-radius:8px;background:#fff}.bundle-row input{width:auto;min-height:auto}.bundle-row span{display:grid;gap:2px}.bundle-row small{color:#647084;font-weight:800}@media(max-width:680px){.purchase-row-list .purchase-row{grid-template-columns:1fr;align-items:stretch}.purchase-row em{width:100%}.purchase-duration{grid-template-columns:1fr}}
.purchase-pager{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:8px 0;padding:8px 10px;border:1px solid var(--line);border-radius:8px;background:#fff}.purchase-pager button{min-height:34px;padding:0 12px}.purchase-pager span{color:#647084;font-size:13px;font-weight:900}
.support-toggle,.notice-toggle{box-shadow:0 12px 28px rgba(17,32,54,.18)}
.front-tip{position:fixed;left:50%;top:18px;z-index:140;max-width:min(520px,calc(100% - 32px));padding:12px 16px;border:1px solid #fed7aa;border-left:5px solid #f97316;border-radius:8px;background:#fff7ed;color:#9a3412;font-weight:900;box-shadow:0 14px 34px rgba(17,32,54,.18);opacity:0;transform:translate(-50%,-10px);pointer-events:none;transition:opacity .18s ease,transform .18s ease}
.front-tip.is-show{opacity:1;transform:translate(-50%,0)}
.tool-nav.front-focus,.unlock-panel.front-focus,.support-box.front-focus,.tools-grid.front-focus{box-shadow:0 0 0 4px rgba(22,119,255,.22),var(--shadow);border-radius:8px}
.tool-card .card-body{overflow:hidden;transform-origin:top;transition:opacity .24s ease,transform .24s ease,max-height .28s ease}
.tool-card.is-collapsed .card-body{display:grid!important;max-height:0!important;opacity:0;transform:translateY(-6px);pointer-events:none}
.tool-card:not(.is-collapsed) .card-body{max-height:2400px;opacity:1;transform:translateY(0)}
.tool-card.is-section-animating{transition:box-shadow .22s ease,transform .22s ease}
.tool-card.is-section-animating:not(.is-collapsed){box-shadow:0 12px 32px rgba(22,119,255,.13),var(--shadow);transform:translateY(-1px)}
@keyframes frontFocusPulse{0%,100%{background:#fff}35%{background:#eef5ff}70%{background:#f0fdf4}}
@media(max-width:980px){.front-quick-nav,.rights-overview-panel,.rights-overview-grid,.front-search-results,.purchase-card .purchase-summary,.purchase-type-grid,.purchase-section-list span,.purchase-plan-list,.purchase-product-list{grid-template-columns:1fr}.front-quick-nav button{min-height:64px}.rights-overview-panel article{padding:14px}.tool-nav{scroll-margin-top:10px}.unlock-panel{scroll-margin-top:10px}.support-toggle{right:12px;bottom:14px}.notice-toggle{right:12px;bottom:86px}.purchase-section-list em{justify-content:flex-start;flex-wrap:wrap}}

@media(max-width:980px){
  .front-quick-nav button{justify-items:center;text-align:center;align-content:center;padding:16px 14px}
  .front-quick-nav strong,.front-quick-nav small{width:100%;text-align:center}
  .support-toggle,.notice-toggle{width:auto!important;min-width:86px;left:auto;right:14px;padding:0 18px;border-radius:999px}
  .notice-toggle{bottom:136px!important}
  .support-toggle{bottom:82px!important}
  .mobile-bottom-nav button{width:100%}
}

/* 20260628: front conversion helpers, labels, unread badge, and mobile navigation. */
.search-suggestions{display:flex;gap:8px;flex-wrap:wrap}
.search-suggestions button{min-height:32px;padding:0 12px;border:1px solid #dbeafe;border-radius:999px;background:#fff;color:#0f5fd0;font-size:13px}
.search-suggestions button:hover{background:#eef5ff;color:#0f5fd0}
.tool-link small{display:flex;align-items:center;justify-content:flex-end;gap:5px;flex-wrap:wrap}
.tool-state.preview{color:#7c3aed;background:#ede9fe}
.tool-state.hot{color:#be123c;background:#ffe4e6}
.tool-state.vip{color:#92400e;background:#fef3c7}
.tool-state.scope{color:#475569;background:#f1f5f9}
.tool-state.resource{color:#0369a1;background:#e0f2fe}
.support-toggle{position:fixed}
.support-unread-badge{position:absolute;right:-5px;top:-7px;display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 6px;border:2px solid #fff;border-radius:999px;background:#ef4444;color:#fff;font-size:11px;font-weight:900;line-height:1}
.mobile-bottom-nav{display:none}
@media(max-width:980px){
  body:not(.admin-shell){padding-bottom:74px}
  .mobile-bottom-nav{position:fixed;left:10px;right:10px;bottom:10px;z-index:22;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:8px;border:1px solid var(--line);border-radius:14px;background:rgba(255,255,255,.96);box-shadow:0 12px 32px rgba(17,32,54,.18);backdrop-filter:blur(10px)}
  .mobile-bottom-nav button{min-height:42px;padding:0 8px;border-radius:10px;background:#eef5ff;color:#0f5fd0;font-size:13px}
  .support-toggle{bottom:78px}
  .notice-toggle{bottom:134px}
}

/* 20260628: VIP activation and notice entitlement explanation. */
.vip-open-box{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0;padding:14px;border:1px solid #fde68a;border-left:5px solid #f59e0b;border-radius:8px;background:#fffbeb}
.vip-open-box div{display:grid;gap:4px}
.vip-open-box strong{font-size:16px;color:#92400e}
.vip-open-box small{color:#647084;font-weight:700}
.vip-open-box button{background:#f59e0b;color:#fff}
.vip-open-box button:hover{background:#d97706}
.notice-benefits{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:12px 0;padding:12px;border:1px solid #dbeafe;border-left:5px solid #1677ff;border-radius:8px;background:#f8fbff}
.notice-benefits h3{grid-column:1/-1;margin:0 0 2px;font-size:15px;color:#172033}
.notice-benefits span{display:grid;gap:3px;padding:9px 10px;border:1px solid var(--line);border-radius:8px;background:#fff}
.notice-benefits b{color:#0f5fd0}
.notice-benefits small{color:#647084;line-height:1.5}
@media(max-width:980px){.vip-open-box{align-items:stretch;flex-direction:column}.notice-benefits{grid-template-columns:1fr}}

/* 20260628: onboarding guide, redeem success, package cards, and split rights. */
.guide-card,.success-card,.resource-detail-card{width:min(620px,100%)}
.guide-steps{display:grid;gap:10px;margin:12px 0}
.guide-steps span{display:grid;grid-template-columns:34px 1fr;gap:4px 10px;align-items:start;padding:12px;border:1px solid var(--line);border-left:5px solid #1677ff;border-radius:8px;background:#f8fbff}
.guide-steps b{grid-row:1/3;display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:999px;background:#1677ff;color:#fff}
.guide-steps strong{color:#172033}
.guide-steps small{color:#647084;font-weight:700;line-height:1.55}
.rights-split-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.rights-split-grid section{padding:12px;border:1px solid var(--line);border-radius:8px;background:#f8fafc}
.rights-split-grid h4{margin:0 0 8px;color:#172033}
.rights-split-grid .full-row{grid-column:1/-1}
.package-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:14px 0}
.package-grid button{display:grid;gap:4px;justify-items:start;min-height:72px;padding:12px;border:1px solid #dbeafe;border-left:5px solid #f59e0b;border-radius:8px;background:#fff;color:#172033;text-align:left}
.package-grid button:hover{background:#fffaf0;color:#92400e}
.package-grid small{color:#647084;font-weight:700;white-space:normal}
.package-template-actions{justify-content:flex-start;margin:0 0 12px;padding:10px;border:1px solid #dbeafe;border-left:5px solid #1677ff;border-radius:8px;background:#f8fbff}
@media(max-width:980px){.rights-split-grid,.package-grid{grid-template-columns:1fr}.rights-split-grid .full-row{grid-column:auto}}

/* 20260628: entitlement help, redeem error cards, and admin user simulation. */
.entitlement-help-row{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}
.entitlement-help{min-height:30px;padding:0 10px;border:1px solid #dbeafe;border-radius:999px;background:#f8fbff;color:#0f5fd0;font-size:13px;font-weight:900}
.entitlement-help:hover{background:#eef5ff;color:#0f5fd0}
.redeem-error-card{display:grid;gap:6px;padding:12px;border:1px solid #fecaca;border-left:5px solid #ef4444;border-radius:8px;background:#fff5f5;color:#991b1b}
.redeem-error-card strong{font-size:16px;color:#991b1b}
.redeem-error-card span{font-weight:900}
.redeem-error-card small{color:#7f1d1d;font-weight:700;line-height:1.55}
.error-card{width:min(560px,100%)}
.account-center-card .account-summary{margin-bottom:12px}

/* 20260628: login/register card inspired by mobile SaaS auth screens. */
.auth-card{position:relative;width:min(560px,calc(100vw - 28px));padding:42px 46px;border-radius:18px;background:#fff}
.auth-card h2{margin:0 0 34px;text-align:center;font-size:34px;letter-spacing:0;color:#171a20}
.auth-close{position:absolute;right:16px;top:14px;width:34px;height:34px;border:1px solid #e5e7eb;border-radius:999px;background:#fff;color:#647084;font-size:22px;line-height:1}
.auth-form{display:grid;gap:12px}
.auth-form>label:not(.auth-agree):not(.auth-remember){font-size:17px;font-weight:900;color:#1f2937}
.auth-input-wrap{display:grid;grid-template-columns:56px 1fr auto;align-items:center;min-height:54px;border:1px solid #eef2f7;border-radius:14px;background:#f3f4f6;overflow:hidden}
.auth-input-wrap span{display:flex;align-items:center;justify-content:center;height:100%;color:#666;font-size:22px;background:#f1f1f2}
.auth-input-wrap input{height:100%;border:0;border-radius:0;background:#eef4ff;font-size:18px;color:#111827;outline:none}
.auth-input-wrap button{height:100%;min-width:54px;border:0;border-left:1px solid #eef2f7;border-radius:0;background:#f3f4f6;color:#666;font-size:20px}
.auth-agree,.auth-remember{display:flex;align-items:flex-start;gap:10px;margin-top:12px;color:#374151;font-weight:700;line-height:1.6}
.auth-agree input,.auth-remember input{width:22px;height:22px;flex:0 0 auto}
.auth-agree a{color:#1677ff;font-weight:900}
.auth-submit{width:100%;min-height:58px;margin-top:12px;border-radius:999px;background:#1677ff;color:#fff;font-size:20px;font-weight:900}
.auth-submit:disabled{background:#e5e7eb;color:#a3a8b3;cursor:not-allowed}
.auth-submit.is-ready{background:#1677ff;color:#fff;box-shadow:0 12px 24px rgba(22,119,255,.18)}
.auth-links{display:grid;gap:22px;justify-items:center;margin-top:24px}
.auth-links button{border:0;background:transparent;color:#374151;font-size:18px;font-weight:900}
.auth-links b{color:#1677ff}
@media(max-width:640px){.auth-card{padding:34px 22px;border-radius:14px}.auth-card h2{font-size:30px}.auth-input-wrap{grid-template-columns:48px 1fr auto}.auth-input-wrap input{font-size:16px}.auth-agree,.auth-remember{font-size:14px}.auth-links button{font-size:16px}}

/* 20260629: product pricing and purchase center polish. */
.purchase-row-list,.purchase-section-list.purchase-row-list,.purchase-plan-list.purchase-row-list,.purchase-product-list.purchase-row-list{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
.purchase-row-list .purchase-row{grid-template-columns:minmax(0,1fr) auto!important;min-height:84px!important}
.purchase-row-list .purchase-row em{grid-column:2;grid-row:1/3;align-self:center}
.bundle-list{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;max-height:380px!important;overflow:auto!important}
.bundle-row{min-height:78px}
.payment-qr-box{display:grid;justify-items:center;gap:8px;margin:8px 0;padding:14px;border:1px dashed #93c5fd;border-radius:10px;background:#f8fbff;color:#1d4ed8;font-weight:900}
.payment-qr-box img{width:220px;height:220px;object-fit:contain;border:8px solid #fff;border-radius:8px;box-shadow:0 8px 22px rgba(37,99,235,.12)}
.payment-warning{color:#b45309!important;background:#fffbeb;border:1px solid #fde68a;border-radius:8px;padding:8px 10px;font-weight:900}
@media(max-width:760px){.purchase-row-list,.purchase-section-list.purchase-row-list,.purchase-plan-list.purchase-row-list,.purchase-product-list.purchase-row-list,.bundle-list{grid-template-columns:1fr!important}.purchase-row-list .purchase-row{grid-template-columns:1fr!important}.purchase-row-list .purchase-row em{grid-column:auto;grid-row:auto;width:100%}}

.section-editor .section-editor-body>.new-tool-row{grid-template-columns:repeat(4,minmax(150px,1fr)) 120px 120px minmax(150px,180px)!important}
.section-editor .section-editor-body>.new-tool-row .check-label{justify-content:center!important;background:#f8fafc;border:1px solid var(--line);border-radius:6px;min-height:42px}
.section-editor .section-editor-body>.new-tool-row button{min-height:42px}
.admin-panel#pricing .code-table{min-width:1700px}
.admin-panel#pricing .pricing-duration-price-input{min-width:260px}

/* 20260629: final fixes for section workspace bounded sticky and readable add rows. */
.admin-shell .section-nav-fixed{
  position:fixed!important;
  top:8px!important;
  z-index:60!important;
}
.admin-shell .section-nav-bottom{
  position:absolute!important;
  z-index:20!important;
}
.admin-shell .section-nav-fixed.section-parent-column,
.admin-shell .section-nav-fixed.section-workspace-list,
.admin-shell .section-nav-bottom.section-parent-column,
.admin-shell .section-nav-bottom.section-workspace-list{
  max-height:calc(100vh - 16px)!important;
  overflow:auto!important;
}
.section-editor .editor-accordion-body>.new-tool-row,
.section-editor .section-editor-body>.new-tool-row{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(170px,1fr))!important;
  align-items:center!important;
  gap:10px!important;
  min-width:0!important;
  max-width:100%!important;
  overflow:visible!important;
}
.section-editor .new-tool-row .check-label{
  min-width:0!important;
  width:100%!important;
  justify-content:center!important;
  padding:0 10px!important;
}
.section-editor .new-tool-row button{
  min-width:150px!important;
}
.inline-reset-pricing{
  margin-left:10px;
  min-height:32px;
  padding:0 12px;
}

/* 20260629: stabilize wide admin pages and keep section navigation in its own grid columns. */
.admin-shell:not(.admin-locked){
  overflow-x:auto!important;
}
.admin-shell:not(.admin-locked) .admin-main{
  width:auto!important;
  max-width:none!important;
  min-width:0!important;
  overflow-x:visible!important;
}
.admin-panel{
  max-width:100%;
  min-width:0;
}
.admin-panel#accounts,
.admin-panel#pricing,
.admin-panel#orders,
.admin-panel#codes,
.admin-panel#tools{
  overflow-x:auto!important;
  overflow-y:visible!important;
}
.admin-shell .section-workspace{
  position:relative!important;
  grid-template-columns:220px 280px minmax(760px,1fr)!important;
  overflow:visible!important;
}
.admin-shell .section-parent-column,
.admin-shell .section-workspace-list{
  position:sticky!important;
  top:8px!important;
  left:auto!important;
  width:auto!important;
  height:auto!important;
  z-index:5!important;
  align-self:start!important;
  max-height:calc(100vh - 16px)!important;
  overflow:auto!important;
}
.admin-shell .section-workspace-detail{
  min-width:760px;
}
.admin-panel#pricing .code-filters{
  grid-template-columns:repeat(auto-fit,minmax(160px,1fr))!important;
  overflow:visible!important;
}
.admin-panel#pricing .code-filters label{
  min-width:160px;
}
.admin-panel#pricing .table-wrap{
  width:100%;
  overflow-x:auto!important;
}
.admin-panel#pricing .inline-reset-pricing{
  width:auto!important;
}

/* 20260629: source channel QR fallback, pricing fallback, and compact add-tool checks. */
.channel-row .channel-qr-box{
  width:72px;
  height:72px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--line);
  border-radius:8px;
  background:#fff;
  overflow:hidden;
}
.channel-row .channel-qr-box img{
  width:64px;
  height:64px;
  object-fit:contain;
}
.channel-qr-fallback{
  color:#1677ff;
  font-size:12px;
  line-height:1.25;
  text-align:center;
  font-weight:900;
}
.pricing-fallback-note{
  background:#fff7ed!important;
  color:#9a3412!important;
  font-weight:900;
  white-space:normal!important;
}
.section-editor .section-editor-body>.new-tool-row{
  grid-template-columns:repeat(5,minmax(130px,1fr)) minmax(78px,90px) minmax(78px,90px) minmax(130px,160px)!important;
}
.section-editor .section-editor-body>.new-tool-row .check-label{
  width:auto!important;
  min-width:78px!important;
  justify-content:flex-start!important;
  gap:6px!important;
  padding:0 8px!important;
}
.section-editor .section-editor-body>.new-tool-row .check-label input{
  margin:0!important;
}
@media(max-width:1180px){
  .section-editor .section-editor-body>.new-tool-row{
    grid-template-columns:repeat(auto-fit,minmax(150px,1fr))!important;
  }
}

/* 20260629: tighten add-tool checks and pull pricing detail columns back into view. */
.section-editor .section-editor-body>.new-tool-row{
  grid-template-columns:repeat(5,minmax(120px,220px))!important;
  justify-content:start!important;
}
.section-editor .section-editor-body>.new-tool-row .check-label{
  justify-self:start!important;
  max-width:92px!important;
  min-width:72px!important;
}
.section-editor .section-editor-body>.new-tool-row .add-tool,
.section-editor .section-editor-body>.new-tool-row .add-resource{
  grid-column:1 / 2!important;
  width:100%!important;
  min-width:120px!important;
}
.admin-panel#pricing .code-table{
  min-width:1180px!important;
}
.admin-panel#pricing .pricing-price-input{
  min-width:150px!important;
}
.admin-panel#pricing .pricing-duration-price-input{
  min-width:210px!important;
}
.admin-panel#pricing .code-table th,
.admin-panel#pricing .code-table td{
  padding:8px 9px!important;
}
.admin-panel#pricing .code-table th:nth-child(1),
.admin-panel#pricing .code-table td:nth-child(1){width:46px!important}
.admin-panel#pricing .code-table th:nth-child(2),
.admin-panel#pricing .code-table td:nth-child(2){width:64px!important}
.admin-panel#pricing .code-table th:nth-child(3),
.admin-panel#pricing .code-table td:nth-child(3){width:130px!important}
.admin-panel#pricing .code-table th:nth-child(4),
.admin-panel#pricing .code-table td:nth-child(4){width:130px!important}
.admin-panel#pricing .code-table th:nth-child(5),
.admin-panel#pricing .code-table td:nth-child(5){width:82px!important}
.admin-panel#pricing .code-table th:nth-child(6),
.admin-panel#pricing .code-table td:nth-child(6){width:180px!important}
.admin-panel#pricing .code-table th:nth-child(7),
.admin-panel#pricing .code-table td:nth-child(7){width:240px!important}
.admin-panel#pricing .code-table th:nth-child(8),
.admin-panel#pricing .code-table td:nth-child(8){width:82px!important}
.admin-panel#pricing .code-table th:nth-child(9),
.admin-panel#pricing .code-table td:nth-child(9){width:72px!important;min-width:72px!important;max-width:88px!important;white-space:nowrap!important}
.admin-panel#pricing .code-table th:nth-child(10),
.admin-panel#pricing .code-table td:nth-child(10){
  width:150px!important;
  min-width:150px!important;
  max-width:180px!important;
  white-space:normal!important;
}

/* 20260630-0060: front purchase search, visible paid prices, and true two-column parent sections. */
body:not(.admin-shell) .parent-tool-group{
  display:block!important;
  column-count:2!important;
  column-gap:16px!important;
  margin:0 0 18px!important;
}
body:not(.admin-shell) .parent-group-head{
  column-span:all;
  break-after:avoid;
}
body:not(.admin-shell) .parent-tool-group .tool-card{
  display:block!important;
  width:100%!important;
  margin:0 0 16px!important;
  break-inside:avoid!important;
  grid-column:auto!important;
}
body:not(.admin-shell) .parent-tool-group .tool-card:not(.is-collapsed){
  grid-column:auto!important;
}
.price-block{
  display:grid;
  justify-items:end;
  gap:2px;
  line-height:1.15;
}
.price-block small{
  color:#9a3412;
  font-size:11px;
  font-weight:800;
  white-space:nowrap;
}
.tool-state.price-tag{
  color:#b45309;
  background:#fef3c7;
}
.purchase-search{
  margin:10px 0 12px;
  padding:10px 12px;
  border:1px solid #dbeafe;
  border-left:5px solid #1677ff;
  border-radius:8px;
  background:#f8fbff;
}
.purchase-search input{
  margin-top:8px;
}
@media(max-width:980px){
  body:not(.admin-shell) .parent-tool-group{column-count:1!important}
  .price-block{justify-items:start}
}

/* 20260629 0205: make add-tool/resource rows use the same horizontal-scroll behavior as the tool list. */
.section-editor .section-editor-body>.new-tool-row{
  display:grid!important;
  grid-template-columns:160px 220px 220px 130px 130px 150px 180px 180px 86px 86px 150px!important;
  gap:10px!important;
  align-items:center!important;
  min-width:1730px!important;
  width:max-content!important;
  max-width:none!important;
  overflow:visible!important;
  padding:10px 12px 14px!important;
}
.section-editor .section-editor-body>.new-tool-row .check-label{
  width:auto!important;
  max-width:none!important;
  min-width:86px!important;
  min-height:40px!important;
  justify-self:auto!important;
  justify-content:center!important;
  gap:6px!important;
  padding:0 8px!important;
  border:1px solid var(--line)!important;
  border-radius:6px!important;
  background:#f8fafc!important;
  white-space:nowrap!important;
}
.section-editor .section-editor-body>.new-tool-row .check-label input{
  flex:0 0 auto!important;
  margin:0!important;
}
.section-editor .section-editor-body>.new-tool-row .add-tool,
.section-editor .section-editor-body>.new-tool-row .add-resource{
  grid-column:auto!important;
  width:150px!important;
  min-width:150px!important;
  min-height:42px!important;
}
.section-editor .section-editor-body{
  overflow-x:auto!important;
  overflow-y:visible!important;
  padding-bottom:10px;
}
@media(max-width:1180px){
  .section-editor .section-editor-body>.new-tool-row{
    grid-template-columns:150px 210px 210px 120px 120px 140px 170px 170px 82px 82px 140px!important;
    min-width:1600px!important;
  }
}

/* 20260629 0225: add rows are now inside the same scroller as existing tool/resource rows. */
.section-editor .section-editor-body{
  overflow-x:visible!important;
}
.section-editor .tool-editor-list>.new-tool-row,
.section-editor .resource-editor-list>.new-tool-row{
  display:grid!important;
  grid-template-columns:160px 240px 240px 130px 130px 150px 180px 180px 86px 86px 150px!important;
  gap:10px!important;
  align-items:center!important;
  min-width:1730px!important;
  width:max-content!important;
  max-width:none!important;
  overflow:visible!important;
  margin-top:10px!important;
  padding:10px 0 2px!important;
  background:#fff!important;
  border-top:1px dashed var(--line)!important;
}
.section-editor .tool-editor-list>.new-tool-row .check-label,
.section-editor .resource-editor-list>.new-tool-row .check-label{
  width:auto!important;
  max-width:none!important;
  min-width:86px!important;
  min-height:40px!important;
  justify-content:center!important;
  gap:6px!important;
  padding:0 8px!important;
  border:1px solid var(--line)!important;
  border-radius:6px!important;
  background:#f8fafc!important;
  white-space:nowrap!important;
}
.section-editor .tool-editor-list>.new-tool-row .add-tool,
.section-editor .resource-editor-list>.new-tool-row .add-resource{
  grid-column:auto!important;
  width:150px!important;
  min-width:150px!important;
  min-height:42px!important;
}

/* 20260629 0235: split product duration prices into separate compact columns. */
.admin-panel#pricing .code-table{
  min-width:1380px!important;
}
.admin-panel#pricing .pricing-duration-price-input{
  min-width:110px!important;
  width:120px!important;
}
.admin-panel#pricing .code-table th,
.admin-panel#pricing .code-table td{
  vertical-align:middle!important;
}

/* 20260630 0010: product pricing table has 12 columns after split duration prices. */
.admin-panel#pricing .code-table{
  min-width:1680px!important;
  table-layout:fixed!important;
}
.admin-panel#pricing .code-table th:nth-child(1),.admin-panel#pricing .code-table td:nth-child(1){width:58px!important}
.admin-panel#pricing .code-table th:nth-child(2),.admin-panel#pricing .code-table td:nth-child(2){width:72px!important}
.admin-panel#pricing .code-table th:nth-child(3),.admin-panel#pricing .code-table td:nth-child(3){width:160px!important}
.admin-panel#pricing .code-table th:nth-child(4),.admin-panel#pricing .code-table td:nth-child(4){width:150px!important}
.admin-panel#pricing .code-table th:nth-child(5),.admin-panel#pricing .code-table td:nth-child(5){width:90px!important}
.admin-panel#pricing .code-table th:nth-child(6),.admin-panel#pricing .code-table td:nth-child(6){width:170px!important}
.admin-panel#pricing .code-table th:nth-child(7),.admin-panel#pricing .code-table td:nth-child(7){width:130px!important}
.admin-panel#pricing .code-table th:nth-child(8),.admin-panel#pricing .code-table td:nth-child(8){width:130px!important}
.admin-panel#pricing .code-table th:nth-child(9),.admin-panel#pricing .code-table td:nth-child(9){width:130px!important}
.admin-panel#pricing .code-table th:nth-child(10),.admin-panel#pricing .code-table td:nth-child(10){width:118px!important;min-width:118px!important}
.admin-panel#pricing .code-table th:nth-child(11),.admin-panel#pricing .code-table td:nth-child(11){width:92px!important}
.admin-panel#pricing .code-table th:nth-child(12),.admin-panel#pricing .code-table td:nth-child(12){width:160px!important}
.admin-panel#pricing .pricing-duration-price-input{width:112px!important;min-width:112px!important}
.admin-panel#pricing .pricing-permission-input{width:96px!important;min-width:96px!important}

/* 20260630 0030: section-level batch save title bars. */
.section-subhead{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:#fff}
.section-subhead h3{display:flex;align-items:center;gap:8px;margin:0;font-size:15px}
.section-subhead h3::before{content:"";width:10px;height:10px;border-radius:999px;background:#1677ff}
.section-subhead .save-section-items{min-height:34px;padding:0 12px;white-space:nowrap}
@media(max-width:720px){.section-subhead{align-items:flex-start;flex-direction:column}.section-subhead .save-section-items{width:100%}}

/* 20260630 0040: keep purchase rows readable in two-column product lists. */
.purchase-row-list .purchase-row{grid-template-columns:minmax(0,1fr) 82px!important;grid-template-rows:auto auto!important;align-items:center!important;overflow:hidden!important}
.purchase-row-list .purchase-row span{grid-column:1;grid-row:1;min-width:0!important;max-width:100%!important}
.purchase-row-list .purchase-row strong{white-space:normal!important;overflow:hidden!important;text-overflow:ellipsis!important;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical}
.purchase-row-list .purchase-row small{white-space:normal!important;overflow:hidden!important;text-overflow:ellipsis!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-height:1.45}
.purchase-row-list .purchase-row b{grid-column:1;grid-row:2;justify-self:start;align-self:end}
.purchase-row-list .purchase-row em{grid-column:2!important;grid-row:1/3!important;align-self:center!important;justify-self:end!important;min-width:64px}
.tool-state{gap:0;cursor:help}
@media(max-width:760px){.purchase-row-list .purchase-row{grid-template-columns:1fr!important}.purchase-row-list .purchase-row em{grid-column:auto!important;grid-row:auto!important;width:100%;justify-self:stretch!important}.purchase-row-list .purchase-row b{grid-column:auto;grid-row:auto}}

/* 20260630 0050: settings subnav should land at the beginning of each group. */
.settings-group{scroll-margin-top:86px}

/* 20260630 0060: front purchase search, price labels, and one-column expanded cards inside two-column masonry. */
body:not(.admin-shell) .parent-tool-group{
  display:block!important;
  column-count:2!important;
  column-gap:16px!important;
  margin:0 0 18px!important;
}
body:not(.admin-shell) .parent-group-head{
  column-span:all!important;
  break-after:avoid!important;
}
body:not(.admin-shell) .parent-tool-group .tool-card,
body:not(.admin-shell) .parent-tool-group .tool-card:not(.is-collapsed){
  display:block!important;
  width:100%!important;
  margin:0 0 16px!important;
  break-inside:avoid!important;
  grid-column:auto!important;
}
.price-block{display:grid;justify-items:end;gap:2px;line-height:1.15}
.price.free-price{color:#16a34a}
.price-block small{color:#9a3412;font-size:11px;font-weight:800;white-space:nowrap}
.tool-state.price-tag{color:#b45309;background:#fef3c7}
.purchase-search{margin:10px 0 12px;padding:10px 12px;border:1px solid #dbeafe;border-left:5px solid #1677ff;border-radius:8px;background:#f8fbff}
.purchase-search input{margin-top:8px}
@media(max-width:980px){
  body:not(.admin-shell) .parent-tool-group{column-count:1!important}
  .price-block{justify-items:start}
}

/* 20260630 0070: balanced front masonry and compact purchase rows. */
body:not(.admin-shell) .parent-tool-group{
  display:block!important;
  column-count:initial!important;
}
body:not(.admin-shell) .parent-masonry{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:16px!important;
  align-items:start!important;
}
body:not(.admin-shell) .parent-masonry-column{
  display:grid!important;
  gap:16px!important;
}
body:not(.admin-shell) .parent-masonry-column .tool-card{
  margin:0!important;
}
.purchase-row-list .purchase-row{
  grid-template-columns:minmax(0,1fr) 104px!important;
  gap:10px 14px!important;
}
.purchase-row-list .purchase-row span{
  min-width:0!important;
  width:100%!important;
  overflow:hidden!important;
}
.purchase-row-list .purchase-row small{
  max-width:100%!important;
  word-break:break-word!important;
  -webkit-line-clamp:unset!important;
  display:block!important;
  overflow:visible!important;
}
.purchase-row-list .purchase-row b{
  white-space:nowrap!important;
}
.duplicate-tool-list{display:grid;gap:10px}
.duplicate-tool-card{display:grid;gap:8px;padding:12px;border:1px solid #fed7aa;border-left:5px solid #f97316;border-radius:8px;background:#fff7ed}
.duplicate-tool-card small{color:#9a3412;font-weight:800}
.duplicate-tool-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 10px;border:1px solid #ffedd5;border-radius:8px;background:#fff}
.duplicate-tool-row span{font-weight:900;color:#334155}
.order-query-box,.code-template-manager{margin:14px 0;padding:14px;border:1px solid #dbeafe;border-left:5px solid #1677ff;border-radius:8px;background:#f8fbff}
.order-query-box h3,.code-template-manager h3{margin-top:0}
.purchase-product-list .purchase-row span,.purchase-section-list .purchase-row span{padding-right:6px}
@media(max-width:980px){
  body:not(.admin-shell) .parent-masonry{grid-template-columns:1fr!important}
  .duplicate-tool-row{align-items:stretch;flex-direction:column}
}

/* 20260630 0110: show unlock state while sections are collapsed and add quick jump buttons. */
.section-unlock-summary{
  display:block;
  margin-top:8px;
  color:#16a34a;
  font-size:14px;
  font-weight:900;
}
.section-unlock-summary.partial{
  color:#b45309;
}
.active-code{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px 12px;
}
.active-code-list{
  display:grid;
  gap:10px;
  margin-top:12px;
}
.active-code-jump{
  min-height:30px;
  padding:0 12px;
  border:1px solid #bbf7d0;
  border-radius:999px;
  color:#047857;
  background:#dcfce7;
  font-size:13px;
  font-weight:900;
  cursor:pointer;
}
.active-code-jump:hover{
  background:#bbf7d0;
}

/* 20260630 0090: split code generation and code management into clear colored subpanels. */
.admin-panel#codes{
  border-left-color:#22c55e!important;
  background:linear-gradient(180deg,#ffffff 0%,#f6fff8 100%);
}
.code-subpanel{
  margin:16px 0;
  padding:16px;
  border:1px solid var(--line);
  border-left:7px solid #1677ff;
  border-radius:8px;
  background:#fff;
  box-shadow:0 8px 18px rgba(15,23,42,.04);
}
.code-subpanel-generate{
  border-left-color:#1677ff;
  background:linear-gradient(180deg,#ffffff 0%,#f7fbff 100%);
}
.code-subpanel-manage{
  border-left-color:#22c55e;
  background:linear-gradient(180deg,#ffffff 0%,#f7fff9 100%);
}
.subpanel-title{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  margin:0 0 12px;
  padding-bottom:10px;
  border-bottom:1px solid rgba(148,163,184,.28);
}
.subpanel-title h2{
  margin:0;
}
.subpanel-title span{
  color:var(--muted);
  font-size:13px;
  font-weight:800;
  white-space:nowrap;
}
.code-subpanel .code-template-manager{
  margin:12px 0 16px;
}
@media(max-width:760px){
  .subpanel-title{align-items:flex-start;flex-direction:column}
  .subpanel-title span{white-space:normal}
}
