:root{--bg:#f8faf9;--surface:#fff;--surface-alt:#f2f7f5;--surface-soft:#e9f3ef;--ink:#172b29;--muted:#667a77;--faint:#90a09d;--line:#dfe8e5;--line-strong:#c8d8d2;--brand:#176e60;--brand-hover:#0e5c50;--brand-soft:#e4f3ec;--accent:#c3e19b;--shadow:0 12px 40px rgba(13,41,34,.07);--shadow-sm:0 4px 16px rgba(14,37,33,.04);--round:16px;--ad-height:105px;--header-height:74px;color-scheme:light;scroll-behavior:smooth}
html[data-theme=dark]{--bg:#0f1a19;--surface:#192624;--surface-alt:#20302d;--surface-soft:#253d36;--ink:#eaf3ef;--muted:#a4b7b1;--faint:#8a9d98;--line:#2d403b;--line-strong:#436057;--brand:#80d8b5;--brand-hover:#a7eccc;--brand-soft:#203d34;--accent:#a3d880;--shadow:0 12px 40px rgba(0,0,0,.17);--shadow-sm:0 4px 16px rgba(0,0,0,.1);color-scheme:dark}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;}body{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--bg);font-size:15px;line-height:1.55;padding-bottom:0}body[data-ad-closed=true]{--ad-height:0px}a{color:inherit;text-decoration:none}a:hover{color:var(--brand)}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.5;cursor:not-allowed}img{max-width:100%}::selection{background:#bce7ce;color:#153a2e}h1,h2,h3,h4,p{margin-top:0}h1,h2,h3{letter-spacing:-.035em;line-height:1.17}h1{font-size:clamp(34px,5vw,64px)}h2{font-size:clamp(24px,3vw,37px)}h3{font-size:21px}p{color:var(--muted)}.container{max-width:1240px;margin:0 auto;padding:0 30px}.icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.icon.small{width:16px;height:16px}.icon.large{width:24px;height:24px}.icon.xl{width:29px;height:29px}.muted{color:var(--muted)}.eyebrow{font-size:12px;font-weight:780;letter-spacing:.13em;text-transform:uppercase;color:var(--brand)}.kicker{display:inline-flex;align-items:center;gap:8px;font-size:12px;font-weight:750;color:var(--brand);background:var(--brand-soft);border:1px solid var(--line-strong);padding:5px 11px;border-radius:30px}.tiny-dot{width:7px;height:7px;background:var(--brand);border-radius:50%;display:inline-block}.section{padding:46px 0}.section-heading{display:flex;align-items:end;justify-content:space-between;gap:12px;margin-bottom:22px}.section-heading p{margin:9px 0 0}.muted-link{font-weight:650;color:var(--brand);display:inline-flex;align-items:center;gap:6px;white-space:nowrap}.muted-link .icon{width:16px;height:16px}.pill,.status-pill{font-size:11px;letter-spacing:.015em;font-weight:750;padding:4px 9px;border-radius:99px;border:1px solid var(--line);color:var(--muted);background:var(--surface-alt);white-space:nowrap}.status-pill.live{border-color:#b1decb;background:var(--brand-soft);color:var(--brand)}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;background:var(--brand);color:white;border:1px solid var(--brand);border-radius:11px;padding:11px 16px;font-size:14px;font-weight:700;min-height:42px;transition:.2s}.button:hover{background:var(--brand-hover);color:white;transform:translateY(-1px)}.button.secondary{background:var(--surface);border-color:var(--line-strong);color:var(--ink)}.button.secondary:hover{background:var(--surface-alt);color:var(--ink)}.button.ghost{background:transparent;color:var(--muted);border-color:transparent}.button.sm{min-height:34px;padding:7px 11px;font-size:12px}.button.icon-button{padding:9px;min-width:40px}.button[disabled]{transform:none}.site-header{position:sticky;top:0;z-index:45;background:color-mix(in srgb,var(--bg) 93%,transparent);backdrop-filter:blur(18px);border-bottom:1px solid var(--line)}.header-inner{height:var(--header-height);display:flex;align-items:center;gap:25px}.brand{display:flex;align-items:center;gap:10px;font-size:22px;font-weight:830;letter-spacing:-.055em;white-space:nowrap;color:var(--ink)}.brand-mark{width:32px;height:32px;border-radius:10px;background:var(--brand);display:flex;align-items:center;justify-content:center;position:relative;box-shadow:inset 0 0 0 1px rgba(255,255,255,.12)}.brand-mark::before,.brand-mark::after{content:"";position:absolute;border:2px solid white;border-radius:3px;width:11px;height:11px}.brand-mark::before{left:7px;top:7px}.brand-mark::after{right:7px;bottom:7px;background:var(--accent);border-color:var(--accent)}.brand span:last-child{color:var(--brand)}.primary-nav{display:flex;gap:6px;align-items:center;margin-left:18px}.nav-link{display:flex;align-items:center;gap:6px;font-size:14px;font-weight:650;padding:10px 11px;border-radius:10px;color:var(--muted);border:0;background:transparent}.nav-link:hover,.nav-link.active{background:var(--surface-alt);color:var(--ink)}.header-actions{margin-left:auto;display:flex;align-items:center;gap:9px}.nav-search-trigger{height:36px;display:flex;align-items:center;gap:10px;border:1px solid var(--line-strong);color:var(--muted);background:var(--surface);border-radius:10px;padding:7px 10px;min-width:185px;justify-content:space-between;font-size:13px}.nav-search-trigger .icon{width:16px;height:16px}.key{font-size:10px;border:1px solid var(--line);border-radius:5px;padding:1px 5px;color:var(--faint);background:var(--surface-alt)}.menu-toggle{display:none}.mega-menu{position:absolute;top:calc(var(--header-height) - 1px);left:0;right:0;border-top:1px solid var(--line);background:var(--surface);box-shadow:var(--shadow);padding:25px 0 30px;display:none;max-height:min(75vh,630px);overflow:auto}.mega-menu.open{display:block}.mega-inner{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px 36px}.mega-group-title{font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.09em;color:var(--brand);margin-bottom:10px}.mega-cat{display:flex;align-items:center;justify-content:space-between;padding:5px 0;font-size:13px;color:var(--muted)}.mega-cat:hover{color:var(--brand)}.mega-cat small{color:var(--faint)}.mega-bottom{display:flex;justify-content:space-between;align-items:center;margin-top:20px;padding-top:18px;border-top:1px solid var(--line)}.hero{padding:75px 0 38px;position:relative;overflow:hidden}.hero::before{content:"";position:absolute;width:560px;height:530px;right:-180px;top:-200px;border-radius:50%;background:radial-gradient(ellipse,var(--brand-soft),transparent 67%);pointer-events:none}.hero-grid{display:grid;grid-template-columns:1.12fr .88fr;gap:56px;align-items:center;position:relative}.hero h1{max-width:650px;font-weight:830;margin:19px 0 20px}.hero h1 .highlight{color:var(--brand);position:relative}.hero-lede{font-size:18px;line-height:1.7;max-width:520px;margin-bottom:26px}.hero-features{display:flex;gap:19px;flex-wrap:wrap;margin-top:22px;color:var(--muted);font-size:13px}.hero-features span{display:inline-flex;gap:7px;align-items:center}.hero-features .icon{color:var(--brand);width:15px;height:15px}.hero-visual{position:relative;border-radius:25px;padding:22px;background:linear-gradient(145deg,#e4f2e7,#edf8f1 60%,#d7ecdf);border:1px solid #d0e4d5;min-height:365px;box-shadow:0 35px 75px rgba(23,93,65,.09)}html[data-theme=dark] .hero-visual{background:linear-gradient(145deg,#183f34,#21493a 60%,#22372f);border-color:#426455}.mini-browser{background:#fcfefe;color:#142d26;border:1px solid #dbe9e3;border-radius:15px;overflow:hidden;box-shadow:0 18px 28px rgba(23,70,45,.12);transform:rotate(-2deg)}.mini-head{height:41px;border-bottom:1px solid #e8eeec;display:flex;align-items:center;gap:5px;padding:0 14px;font-size:11px;color:#778b83}.mini-head .window-dot{width:8px;height:8px;border-radius:50%;background:#cadcd3}.mini-head span:last-child{margin-left:10px;font-weight:650;color:#486a5a}.mini-content{padding:18px}.mini-title{font-size:14px;font-weight:790;margin-bottom:13px;color:#174a3c}.mini-tabs{display:flex;gap:7px;margin-bottom:12px}.mini-tab{background:#e9f5ec;border-radius:6px;padding:6px 11px;font-size:10px;font-weight:650;color:#477b63}.mini-tab.selected{background:#1e765b;color:#fff}.mini-editor{font-family:ui-monospace,Consolas,monospace;background:#f6fbf7;border:1px solid #e5efe9;border-radius:8px;padding:14px;color:#4f6c5f;font-size:11px;line-height:1.95;min-height:146px}.mini-editor .code-strong{color:#1e7c65}.mini-editor .code-accent{color:#a06f26}.mini-editor .code-secondary{color:#6b7dc3}.mini-foot{display:flex;justify-content:space-between;color:#92a19c;font-size:10px;margin-top:11px}.floating-tag{position:absolute;right:-17px;bottom:23px;border-radius:13px;box-shadow:var(--shadow);background:var(--surface);color:var(--ink);padding:13px 18px;display:flex;align-items:center;gap:10px;font-size:12px;font-weight:650;transform:rotate(4deg)}.floating-tag .icon{color:var(--brand)}.hero-search{display:flex;align-items:center;gap:11px;background:var(--surface);border:1px solid var(--line-strong);border-radius:15px;max-width:600px;padding:7px 9px 7px 17px;box-shadow:var(--shadow);cursor:text}.hero-search input{flex:1;min-width:0;height:44px;border:0;outline:0;background:transparent;color:var(--ink);font-size:15px}.hero-search input::placeholder{color:var(--faint)}.search-shortcut{font-size:11px;border:1px solid var(--line);padding:4px 8px;border-radius:6px;color:var(--faint)}.hero-search .button{white-space:nowrap}.trending{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:15px}.trending-label{font-size:12px;color:var(--faint);margin-right:3px}.tag-link{font-size:12px;border:1px solid var(--line);border-radius:7px;background:var(--surface);padding:5px 10px;color:var(--muted)}.tag-link:hover{background:var(--brand-soft);color:var(--brand)}.section-divider{border-top:1px solid var(--line)}.category-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}.group-card{background:var(--surface);border:1px solid var(--line);border-radius:17px;padding:22px;box-shadow:var(--shadow-sm);min-height:204px;transition:.2s}.group-card:hover{transform:translateY(-3px);border-color:var(--line-strong);box-shadow:var(--shadow)}.group-card .group-icon{width:44px;height:44px;background:var(--surface-soft);border-radius:13px;display:flex;align-items:center;justify-content:center;color:var(--brand);margin-bottom:16px}.group-card h3{font-size:17px;margin:0 0 8px}.group-card p{font-size:12px;line-height:1.6;min-height:36px;margin:0 0 15px}.group-meta{font-size:12px;color:var(--brand);font-weight:750;display:flex;justify-content:space-between;align-items:center}.tool-list-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}.tool-card{display:flex;gap:12px;align-items:center;padding:15px 16px;border-radius:12px;border:1px solid var(--line);background:var(--surface);min-width:0;transition:.15s}.tool-card:hover{border-color:var(--line-strong);box-shadow:var(--shadow-sm);transform:translateY(-1px)}.tool-card-icon{height:37px;width:37px;border-radius:11px;background:var(--surface-alt);color:var(--brand);display:flex;align-items:center;justify-content:center;flex-shrink:0}.tool-card-title{font-size:13px;font-weight:740;display:block;line-height:1.4}.tool-card-sub{font-size:11px;color:var(--muted);display:block;margin-top:2px}.tool-card .arr{margin-left:auto;color:var(--faint);width:15px;height:15px}.wide-promo{display:flex;align-items:center;justify-content:space-between;gap:30px;border:1px solid var(--line-strong);border-radius:22px;padding:28px 34px;background:linear-gradient(120deg,var(--surface-soft),var(--surface));margin-top:5px}.wide-promo h3{margin:0 0 8px;font-size:23px}.wide-promo p{margin:0;font-size:14px}.footer{border-top:1px solid var(--line);margin-top:55px;padding:32px 0 46px}.footer-inner{display:flex;align-items:start;justify-content:space-between;gap:30px}.footer p{max-width:420px;font-size:12px;margin-top:10px}.footer-links{display:flex;gap:15px;flex-wrap:wrap;font-size:12px;color:var(--muted)}.ad-dock{position:fixed;z-index:65;bottom:0;left:0;right:0;height:var(--ad-height);display:flex;align-items:center;justify-content:center;background:color-mix(in srgb,var(--surface) 97%,transparent);border-top:1px solid var(--line);box-shadow:0 -8px 20px rgba(21,44,35,.045);padding:10px 48px 10px 20px}.ad-dock.is-hidden{display:none}.ad-space{height:100%;width:min(970px,100%);border:1px dashed var(--line-strong);background:repeating-linear-gradient(135deg,var(--surface-alt),var(--surface-alt) 14px,var(--surface) 14px,var(--surface) 28px);border-radius:8px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px}.ad-space strong{font-size:12px;color:var(--muted);font-weight:720}.ad-space small{font-size:10px;color:var(--faint);text-transform:uppercase;letter-spacing:.09em}.ad-dismiss{position:absolute;right:14px;top:14px;background:var(--surface);border:1px solid var(--line-strong);width:26px;height:26px;display:grid;place-items:center;border-radius:50%;color:var(--muted)}.ad-dismiss .icon{width:14px;height:14px}.search-modal-backdrop{position:fixed;inset:0;background:rgba(11,27,22,.5);backdrop-filter:blur(5px);z-index:100;display:none;padding:10vh 20px 20px}.search-modal-backdrop.open{display:block}.search-modal{margin:0 auto;max-width:650px;max-height:75vh;display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line);border-radius:18px;box-shadow:0 30px 100px rgba(0,0,0,.26);overflow:hidden}.search-modal-head{display:flex;align-items:center;gap:12px;padding:17px 20px;border-bottom:1px solid var(--line)}.search-modal-head input{flex:1;border:0;background:transparent;outline:0;color:var(--ink);font-size:16px;min-width:0}.search-results{overflow:auto;padding:9px;min-height:95px}.search-result{width:100%;border:0;background:transparent;display:flex;align-items:center;gap:12px;text-align:left;border-radius:10px;padding:10px 11px;color:var(--ink)}.search-result:hover,.search-result:focus,.search-result.selected{background:var(--surface-alt)}.search-result .ic{width:33px;height:33px;border-radius:9px;display:grid;place-items:center;background:var(--surface-soft);color:var(--brand)}.search-result .main{flex:1;font-size:13px;font-weight:700}.search-result small{display:block;font-weight:400;color:var(--muted);font-size:11px}.search-modal-foot{border-top:1px solid var(--line);padding:10px 16px;display:flex;gap:15px;color:var(--faint);font-size:11px}.search-modal-foot kbd{font-size:10px;border:1px solid var(--line);border-radius:4px;padding:2px 5px}.page-lede{padding:44px 0 33px}.page-lede h1{font-size:clamp(30px,4vw,46px);margin:11px 0 9px}.page-lede p{font-size:15px;max-width:760px;margin:0}.breadcrumb{font-size:12px;color:var(--muted);display:flex;align-items:center;gap:8px;flex-wrap:wrap}.breadcrumb a:hover{color:var(--brand)}.breadcrumb .icon{width:13px;height:13px;color:var(--faint)}.catalog-layout{display:grid;grid-template-columns:250px minmax(0,1fr);gap:30px;align-items:start;padding-bottom:36px}.sidebar{position:sticky;top:calc(var(--header-height) + 22px);max-height:calc(100vh - var(--header-height) - var(--ad-height) - 40px);overflow:auto;background:var(--surface);border:1px solid var(--line);border-radius:15px;padding:20px}.sidebar-title{font-size:12px;font-weight:800;color:var(--ink);letter-spacing:.05em;text-transform:uppercase;margin:0 0 12px}.sidebar-link{display:flex;justify-content:space-between;align-items:center;padding:7px 10px;margin:2px -9px;border-radius:9px;font-size:12px;color:var(--muted);gap:9px}.sidebar-link:hover,.sidebar-link.active{background:var(--brand-soft);color:var(--brand)}.sidebar-link span:last-child{font-size:11px;color:var(--faint)}.catalog-card{border:1px solid var(--line);border-radius:18px;background:var(--surface);padding:25px;min-width:0}.catalog-toolbar{display:flex;gap:12px;align-items:center;flex-wrap:wrap;margin-bottom:18px}.search-input{border:1px solid var(--line-strong);border-radius:10px;background:var(--surface);color:var(--ink);min-height:43px;padding:10px 14px;outline:0;width:100%;font-size:13px}.search-input:focus,.editor-search-input:focus{border-color:var(--brand);box-shadow:0 0 0 3px var(--brand-soft)}.catalog-toolbar .search-input{flex:1;min-width:230px}.select{padding:10px 11px;min-height:43px;border:1px solid var(--line-strong);background:var(--surface);color:var(--ink);border-radius:10px;font-size:12px;max-width:235px}.count-note{font-size:12px;color:var(--muted);margin:10px 0 17px}.catalog-row{display:flex;align-items:center;gap:13px;padding:12px 4px;border-top:1px solid var(--line);font-size:13px}.catalog-row:hover .catalog-row-name{color:var(--brand)}.catalog-row a:first-child{flex:1;min-width:0}.catalog-row-name{font-weight:700}.catalog-row-path{color:var(--faint);font-size:11px;margin-top:2px}.catalog-row .icon{color:var(--faint);width:15px;height:15px}.catalog-row small{color:var(--muted);font-size:11px}.catalog-row .pill{font-size:10px}.pager{display:flex;justify-content:space-between;align-items:center;margin-top:20px;border-top:1px solid var(--line);padding-top:19px;gap:8px}.pager .button{min-width:88px}.empty-state{text-align:center;padding:50px 15px;color:var(--muted)}.category-intro{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:25px}.category-intro .info-count{color:var(--brand);font-size:13px;font-weight:750}.category-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.category-list a{padding:12px 14px;display:flex;align-items:center;justify-content:space-between;gap:8px;border:1px solid var(--line);border-radius:10px;background:var(--surface);font-size:13px;font-weight:600}.category-list a:hover{background:var(--surface-alt);border-color:var(--line-strong)}.category-list a .icon{width:14px;height:14px;color:var(--faint)}.category-list a .status-pill{flex-shrink:0}.category-list a span{margin-right:auto}.category-toolbar{display:flex;align-items:center;gap:13px;margin-bottom:19px}.category-toolbar input{max-width:450px}.details-layout{display:grid;grid-template-columns:minmax(0,1fr) 285px;gap:25px;align-items:start}.workspace{background:var(--surface);border:1px solid var(--line);border-radius:17px;box-shadow:var(--shadow-sm);overflow:hidden}.workspace-title{display:flex;gap:10px;align-items:center;justify-content:space-between;padding:18px 22px;border-bottom:1px solid var(--line)}.workspace-title h2{font-size:15px;margin:0}.workspace-title .icon{color:var(--brand)}.placeholder-work{min-height:340px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:40px 24px;background:radial-gradient(circle at center,var(--surface-alt),var(--surface))}.placeholder-icon{height:62px;width:62px;border:1px solid var(--line-strong);background:var(--surface);border-radius:18px;display:grid;place-items:center;color:var(--brand);margin-bottom:19px}.placeholder-icon .icon{width:29px;height:29px}.placeholder-work h3{font-size:22px;margin:0 0 9px}.placeholder-work p{max-width:470px;font-size:13px;margin:0 0 20px}.placeholder-control{width:min(460px,100%);height:48px;border-radius:10px;border:1px dashed var(--line-strong);display:flex;align-items:center;justify-content:space-between;padding:0 12px 0 15px;color:var(--faint);font-size:12px;background:var(--surface)}.placeholder-control span:last-child{background:var(--surface-alt);border:1px solid var(--line);padding:7px 10px;border-radius:7px;color:var(--muted)}.placeholder-control+.button{margin-top:14px}.status-banner{border:1px solid var(--line);background:var(--surface-alt);padding:13px 16px;border-radius:12px;display:flex;gap:11px;font-size:12px;line-height:1.55;color:var(--muted);margin-top:17px}.status-banner .icon{color:var(--brand);flex-shrink:0}.spec-panel{background:var(--surface);border:1px solid var(--line);border-radius:17px;padding:22px}.spec-panel h3{font-size:16px;margin:0 0 18px}.spec-item{padding:12px 0;border-bottom:1px solid var(--line)}.spec-item:last-child{border:0}.spec-item strong{display:block;font-size:12px;margin-bottom:4px}.spec-item p{font-size:12px;margin:0;line-height:1.6}.spec-check{display:flex;gap:9px;margin-bottom:11px;color:var(--muted);font-size:12px}.spec-check .icon{width:15px;height:15px;color:var(--brand)}.related{margin-top:22px}.related h3{font-size:15px}.related a{display:block;padding:8px 0;border-bottom:1px solid var(--line);color:var(--muted);font-size:12px}.related a:hover{color:var(--brand)}.spec-body{margin-top:24px}.spec-body h2{font-size:22px}.spec-body p{font-size:13px}.spec-body ul{margin:0;padding-left:19px;color:var(--muted);font-size:13px;line-height:1.9}.site-map-groups{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}.site-map-block{border:1px solid var(--line);background:var(--surface);border-radius:15px;padding:20px}.site-map-block h2{font-size:17px}.site-map-block ul{padding:0;list-style:none;margin:0;display:grid;grid-template-columns:1fr 1fr;gap:7px 15px}.site-map-block li a{font-size:12px;color:var(--muted)}.site-map-block li a:hover{color:var(--brand)}.site-map-block .count{font-size:11px;color:var(--faint)}
/* Notepad — dense, focused UI, with sufficient space above the fixed ad */
.notepad-shell{border:1px solid var(--line);border-radius:15px;background:var(--surface);overflow:hidden;box-shadow:var(--shadow);margin-top:18px}.np-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:10px 13px;border-bottom:1px solid var(--line);background:var(--surface-alt)}.np-divider{height:24px;border-left:1px solid var(--line-strong);margin:0 3px}.np-toolbar .button{min-height:33px}.np-toolbar .np-label{font-size:11px;color:var(--muted)}.np-toolbar select{padding:6px 8px;min-height:33px}.np-toolbar .button.active{background:var(--brand-soft);color:var(--brand);border-color:var(--line-strong)}.np-tabbar{display:flex;align-items:stretch;gap:3px;overflow-x:auto;border-bottom:1px solid var(--line);padding:6px 8px 0;background:var(--surface-alt);scrollbar-width:thin}.np-tab{border:1px solid transparent;border-radius:9px 9px 0 0;background:transparent;display:flex;align-items:center;gap:6px;min-width:126px;max-width:210px;padding:8px 9px;color:var(--muted);height:39px;font-size:12px;flex-shrink:0}.np-tab.active{background:var(--surface);color:var(--ink);border-color:var(--line);border-bottom-color:var(--surface);font-weight:720}.np-tab .np-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;text-align:left}.np-tab-close{padding:2px;border:0;color:var(--faint);background:transparent;display:grid;place-items:center;border-radius:5px}.np-tab-close:hover{background:var(--surface-alt);color:var(--ink)}.np-tab-close .icon{width:13px;height:13px}.np-add-tab{min-width:30px;height:34px;border:0;background:transparent;color:var(--muted);display:grid;place-items:center;border-radius:8px;margin:2px 0}.np-add-tab:hover{background:var(--surface)}.np-searchbar{display:none;align-items:center;gap:8px;padding:8px 12px;background:var(--surface-alt);border-bottom:1px solid var(--line)}.np-searchbar.open{display:flex}.np-searchbar input{max-width:350px;flex:1}.np-searchbar .button{min-height:34px}.np-editor-wrap{height:clamp(330px,55vh,650px);display:flex;overflow:hidden;position:relative}.np-gutter{width:50px;padding:15px 8px 15px 0;color:var(--faint);text-align:right;font:13px/1.65 ui-monospace,SFMono-Regular,Consolas,monospace;overflow:hidden;flex-shrink:0;border-right:1px solid var(--line);background:var(--surface-alt);white-space:pre;user-select:none}.np-textarea{border:0;outline:0;resize:none;flex:1;width:100%;height:100%;padding:15px 20px;font:14px/1.65 ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",monospace;background:var(--surface);color:var(--ink);tab-size:4;min-width:0;white-space:pre-wrap;overflow:auto}.np-textarea.nowrap{white-space:pre;overflow-wrap:normal}.np-textarea::placeholder{color:var(--faint)}.np-status{display:flex;justify-content:space-between;gap:12px;padding:8px 14px;border-top:1px solid var(--line);font-size:11px;color:var(--muted);flex-wrap:wrap}.np-status .indicator{display:flex;align-items:center;gap:7px}.np-status .tiny-dot{width:6px;height:6px}.np-helper{display:flex;gap:10px;align-items:start;margin:15px 0 22px;color:var(--muted);font-size:12px}.np-helper .icon{flex-shrink:0;color:var(--brand)}.np-notice{font-size:12px;border:1px solid var(--line);background:var(--surface-alt);border-radius:10px;padding:11px 14px;margin-top:17px;color:var(--muted)}.np-replace-name{border:1px solid var(--line-strong);border-radius:5px;width:110px;padding:2px 5px;background:var(--surface);color:var(--ink);font-size:11px}.privacy-callout{background:var(--surface-alt);padding:16px;border-radius:12px;border:1px solid var(--line);margin-top:20px}.privacy-callout strong{font-size:12px}.privacy-callout p{font-size:12px;margin:5px 0 0}.desktop-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.desktop-list a{display:block;padding:16px;border:1px solid var(--line);border-radius:12px;background:var(--surface);font-weight:700;font-size:13px}.desktop-list a small{display:block;font-weight:400;color:var(--muted);margin-top:3px}.mobile-nav{display:none}
@media(max-width:1100px){.primary-nav{gap:0;margin-left:0}.hero-grid{gap:28px}.nav-search-trigger{min-width:145px}.category-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.tool-list-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.site-map-groups{grid-template-columns:1fr 1fr}}
@media(max-width:860px){:root{--header-height:66px}.header-inner{gap:12px}.primary-nav,.nav-search-trigger{display:none}.menu-toggle{display:flex}.mega-inner{grid-template-columns:repeat(2,minmax(0,1fr))}.hero-grid{grid-template-columns:1fr}.hero-visual{display:none}.hero{padding:56px 0 27px}.hero h1{max-width:600px}.category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.catalog-layout{grid-template-columns:1fr}.sidebar{position:static;max-height:none;display:flex;align-items:center;gap:8px;overflow-x:auto;white-space:nowrap;padding:10px}.sidebar-title{display:none}.sidebar-link{margin:0}.sidebar-link span:last-child{display:none}.details-layout{grid-template-columns:1fr}.desktop-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){:root{--ad-height:96px}.container{padding:0 17px}.header-actions{gap:5px}.header-inner{height:var(--header-height)}.brand{font-size:20px}.brand-mark{width:29px;height:29px}.header-actions .button.icon-button{padding:7px;min-width:35px}.hero h1{font-size:42px}.hero-lede{font-size:15px}.hero-search{padding:5px 6px 5px 11px}.hero-search input{font-size:13px;height:40px}.hero-search .button{padding:8px 10px;min-height:35px;font-size:12px}.search-shortcut{display:none}.hero-features{gap:11px}.hero-features span{font-size:11px}.section{padding:32px 0}.section-heading{align-items:start}.section-heading h2{font-size:25px}.section-heading .muted-link{font-size:12px}.category-grid{grid-template-columns:1fr 1fr;gap:10px}.group-card{min-height:0;padding:15px}.group-card .group-icon{width:35px;height:35px;margin-bottom:12px}.group-card h3{font-size:14px}.group-card p{font-size:11px;min-height:48px}.tool-list-grid,.category-list,.site-map-groups,.desktop-list{grid-template-columns:1fr}.tool-card{padding:12px}.wide-promo{flex-direction:column;align-items:start;padding:22px}.footer-inner{flex-direction:column}.page-lede{padding:32px 0 24px}.page-lede h1{font-size:30px}.catalog-card{padding:16px}.catalog-toolbar{align-items:stretch}.catalog-toolbar .search-input{min-width:0}.catalog-toolbar .select{max-width:none;width:100%}.category-intro{align-items:start}.status-banner{font-size:11px}.workspace-title{padding:15px}.placeholder-work{min-height:315px;padding:27px 15px}.placeholder-work h3{font-size:20px}.ad-dock{padding:9px 42px 9px 9px}.ad-dismiss{right:8px;top:11px}.ad-space small{font-size:9px}.mega-menu{max-height:calc(100vh - var(--header-height) - var(--ad-height));overflow:auto}.mega-inner{grid-template-columns:1fr 1fr;gap:22px}.mega-cat{font-size:12px}.mega-bottom{flex-direction:column;align-items:start;gap:10px}.np-editor-wrap{height:clamp(300px,49vh,520px)}.np-toolbar{gap:5px;padding:8px}.np-toolbar .button{padding:7px 9px;font-size:11px}.np-toolbar .np-label,.np-divider{display:none}.np-gutter{width:37px;font-size:11px}.np-textarea{padding:12px;font-size:13px}.np-status{font-size:10px}.site-map-block ul{grid-template-columns:1fr 1fr}.search-modal-backdrop{padding:6vh 10px 10px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;scroll-behavior:auto!important;transition:none!important}}

[hidden]{display:none!important}.np-backup-menu{position:relative;flex-shrink:0}.np-backup-menu summary{list-style:none;cursor:pointer}.np-backup-menu summary::-webkit-details-marker{display:none}.np-backup-actions{position:absolute;right:0;top:calc(100% + 6px);background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow);padding:8px;z-index:20;min-width:190px;display:grid;gap:6px}.np-backup-actions button{justify-content:flex-start}.np-toolbar>.button{flex-shrink:0}

/* Phase 1 reusable workspace; existing design tokens and ad clearance retained. */
.tool-workspace{padding:22px;min-width:0}.tool-workspace h2{margin-top:0;font-size:20px}.tool-workspace p{font-size:13px;overflow-wrap:anywhere}.tool-inputs{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(280px,100%),1fr));gap:16px}.tool-field{display:grid;gap:7px;font-size:13px;min-width:0}.tool-field input,.tool-field select{width:100%;max-width:100%}.tool-text{min-height:180px;resize:vertical;line-height:1.6;font:14px/1.6 ui-monospace,SFMono-Regular,Consolas,monospace}.tool-options{display:flex;align-items:end;flex-wrap:wrap;gap:16px;margin:18px 0}.tool-options .tool-field{max-width:240px;flex:1 1 150px}.tool-check{display:flex;align-items:center;gap:8px;font-size:13px;min-height:44px}.tool-check input{width:20px;height:20px;accent-color:var(--brand)}.tool-actions{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}.tool-actions .button{min-height:44px}.tool-swatch{height:72px;border:1px solid var(--line);border-radius:10px;padding:20px;font-weight:700;margin-top:12px}.tool-workspace input[type=color]{height:44px;width:100%;max-width:200px;padding:3px}.tool-copy{max-width:900px;overflow-wrap:anywhere}.tool-copy h2{font-size:22px;margin-top:25px}.tool-copy p{font-size:14px}.tool-candidate{border:1px solid var(--line-strong);border-radius:10px;padding:12px 16px;background:var(--surface-alt);font-size:13px;margin-bottom:18px}.tool-workspace :focus-visible{outline:3px solid var(--brand);outline-offset:3px}
@media(max-width:600px){.tool-workspace{padding:16px}.tool-options .tool-field{max-width:100%}.tool-text{font-size:16px}.tool-actions .button{flex:1 1 auto}}
.tool-visual{max-width:100%;overflow:auto;margin-top:16px}.tool-visual img{display:block;max-width:100%;height:auto;background:#fff}
/* Desktop catalog extends the approved theme. */
.desktop-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.desktop-card{display:block;background:var(--surface);border:1px solid var(--line);border-radius:15px;padding:20px;overflow-wrap:anywhere}.desktop-card strong{font-size:17px}.desktop-card p{font-size:13px}.desktop-card small{display:block;color:var(--muted);margin-bottom:12px}.desktop-filters{display:flex;gap:10px;flex-wrap:wrap;margin:20px 0}.desktop-filters a{padding:10px;border:1px solid var(--line);border-radius:10px}.desktop-filters [aria-current]{background:var(--brand-soft);color:var(--brand)}.desktop-detail{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:28px;align-items:start}.desktop-copy{min-width:0}.desktop-copy section{padding:20px 0;border-bottom:1px solid var(--line)}.desktop-copy h2{font-size:23px}.desktop-copy li{margin:10px 0;color:var(--muted)}.desktop-copy p{overflow-wrap:anywhere}.desktop-copy details{padding:13px 0}.desktop-copy summary{cursor:pointer;font-weight:650}.desktop-release{overflow-wrap:anywhere}.desktop-release button:disabled{opacity:.6;cursor:not-allowed;white-space:normal}.desktop-preview{margin-top:24px;padding:20px;border:1px dashed var(--line-strong);border-radius:10px;background:var(--surface-alt)}[data-desktop-group]{scroll-margin-top:100px;margin-bottom:32px}.desktop-copy a{color:var(--brand);text-decoration:underline}.desktop-filters a:focus-visible,.desktop-card:focus-visible,.desktop-copy summary:focus-visible{outline:3px solid var(--brand);outline-offset:3px}@media(max-width:900px){.desktop-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.desktop-detail{grid-template-columns:1fr}.desktop-release{grid-row:1}}@media(max-width:600px){.desktop-grid{grid-template-columns:1fr}.desktop-filters a{font-size:12px}}

/* Give native scrolling/focus a viewport that excludes the fixed advertising dock.
   Footer padding alone cannot stop scrollIntoView from accepting covered controls. */
:root{--dock-space:calc(var(--ad-height) + env(safe-area-inset-bottom,0px));--visible-height:100dvh;--visible-top:0px}
html,body{height:100%;overflow:hidden}
#pageContent{position:fixed;top:var(--visible-top);left:0;right:0;height:calc(var(--visible-height) - var(--dock-space));overflow:auto;scroll-padding:calc(var(--header-height) + 12px) 12px 16px;padding-bottom:26px}
#pageContent :where(a,button,input,textarea,select,summary,[tabindex]){scroll-margin-block:8px}
.ad-dock{height:calc(var(--ad-height) + env(safe-area-inset-bottom,0px));padding-bottom:calc(10px + env(safe-area-inset-bottom,0px));bottom:max(0px,calc(100dvh - var(--visible-height) - var(--visible-top)))}
.ad-dismiss{width:32px;height:32px}
.mega-menu{max-height:min(630px,calc(var(--visible-height) - var(--dock-space) - var(--header-height) - 16px))}
.sidebar{max-height:calc(var(--visible-height) - var(--dock-space) - var(--header-height) - 40px)}
