/* V13: restore V8's desktop resource layout without changing business data. */
.ui-icon{width:18px;height:18px;display:inline-block;vertical-align:middle;flex:none}.brand-mark{flex:none}.brand-mark .ui-icon{width:22px;height:22px}.brand{font-size:14px;gap:10px;padding:19px 16px}.sidebar nav a{display:flex;align-items:center;gap:10px;font-size:14px}.login-card>.brand-mark{margin-bottom:20px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}[hidden]{display:none!important}
.resource-workspace{display:flex;align-items:flex-start;gap:16px;font-size:14px;min-height:calc(100vh - 150px)}.resource-menu{width:170px;flex:none}.sub-card{padding:10px;background:#fff;border:1px solid var(--border);border-radius:12px;position:sticky;top:80px}.sub-card a{display:flex;align-items:center;justify-content:space-between;gap:6px;padding:11px 10px;border-radius:8px;margin-bottom:4px;white-space:nowrap}.sub-card a:hover{background:#f5f7fa}.sub-card a.on{background:#2563eb;color:#fff;font-weight:600}.count{background:#f1f5f9;color:#64748b;border-radius:12px;min-width:26px;padding:0 7px;font-size:12px;text-align:center}.on .count{background:#ffffff33;color:#fff}.resource-main{flex:1;min-width:0}.resource-filter{padding:14px;background:#fff;border:1px solid var(--border);border-radius:12px;margin-bottom:16px}.resource-ai{display:flex;align-items:center;gap:12px;background:linear-gradient(90deg,#f3eeff,#fff);border:1px solid #e9dfff;border-radius:8px;padding:10px 12px;margin-bottom:12px}.resource-ai>.ui-icon{width:30px;height:30px;padding:6px;background:#7c3aed;color:#fff;border-radius:8px}.resource-ai>div{flex:1;min-width:0}.resource-ai strong{font-size:13px;color:#7c3aed}.resource-ai p{font-size:12px;color:var(--sub);margin:1px 0 0}.resource-ai>span{font-size:11px;color:#7c3aed;background:#f3eeff;border-radius:5px;padding:3px 7px;white-space:nowrap}
.resource-filter-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.resource-filter-row label{margin:0;font-weight:400}.resource-keyword{display:flex;align-items:center;gap:8px;background:#f5f7fa;border:1px solid var(--border);border-radius:8px;padding-left:11px;flex:1;min-width:210px}.resource-keyword:focus-within{outline:2px solid #93c5fd}.resource-keyword .ui-icon{color:var(--sub);width:16px;height:16px}.resource-keyword input{background:none;border:0;min-width:0;font-size:14px;outline:none;padding-left:0}.resource-select select{font-size:13px;width:130px;max-width:180px;padding:9px 8px;min-height:42px}.resource-select:first-of-type select{width:150px}.reset-filter{font-size:13px;color:var(--sub);padding:8px 2px}.compact{font-size:12px;min-height:36px;padding:7px 12px}.resource-filter-row>.button{min-height:42px}
.resource-results-layout{display:flex;gap:16px;align-items:flex-start}.resource-forms{width:104px;flex:none;background:#fff;padding:12px 8px;border:1px solid var(--border);border-radius:10px}.resource-forms h2{font-size:12px;color:var(--sub);font-weight:500;margin:0 6px 10px}.resource-forms button{display:block;width:100%;padding:10px 12px;border:0;background:transparent;border-radius:7px;font-size:13px;text-align:left;margin-bottom:3px}.resource-forms button:hover{background:#f1f5f9}.resource-forms button.on{color:#2563eb;background:#eff6ff;font-weight:600}.resource-results{flex:1;min-width:0}.resource-results[aria-busy=true]{opacity:.65}.resource-section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}.resource-section-heading h1{font-size:16px;margin:0;font-weight:700}.resource-section-heading>span{font-size:13px;color:var(--sub)}.catalog-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.catalog-card{background:#fff;border:1px solid var(--border);border-radius:12px;padding:16px;display:flex;flex-direction:column;position:relative;min-height:245px;min-width:0;box-shadow:0 1px 3px #0f172a0f;transition:border-color .15s,box-shadow .15s}.catalog-card:hover{border-color:#60a5fa;box-shadow:0 5px 16px #2563eb12}.catalog-card h2{font-size:15px;font-weight:600;line-height:1.5;min-height:45px;margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}.resource-tags{display:flex;gap:6px;flex-wrap:wrap;margin:10px 0}.resource-tags>span{font-size:12px;padding:3px 8px;border-radius:6px;line-height:1.5;overflow-wrap:anywhere}.tag-platform{color:#2563eb;background:#eff6ff}.tag-category{color:#7c3aed;background:#f5f3ff}.tag-form{color:#15803d;background:#f0fdf4}.resource-summary,.resource-intro{color:var(--sub);font-size:12px;line-height:1.65;margin:0 0 8px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}.resource-intro{-webkit-line-clamp:3;margin-bottom:14px}.resource-actions{display:flex;align-items:stretch;gap:8px;margin-top:auto;padding-top:8px}.resource-actions>a,.resource-actions>form,.resource-actions>.readonly-resource{flex:1;min-width:0}.resource-cart-form{margin:0}.resource-cart-form>button{width:100%}.resource-actions .button{padding:7px 6px;white-space:normal;text-align:center}.readonly-resource{display:flex;align-items:center;justify-content:center;background:#f1f5f9;border:1px solid #e2e8f0;border-radius:8px;color:#64748b;font-size:12px;padding:7px 12px;min-height:36px}.fee-dot{position:absolute;top:15px;right:12px;width:10px;height:10px;border-radius:50%;box-shadow:0 0 0 2px #fff}.fee-low{background:#16a34a}.fee-medium{background:#eab308}.fee-high{background:#dc2626}.fee-unknown{background:#94a3b8}[data-category=hosts] .catalog-card h2{padding-right:12px}.resource-empty{grid-column:1/-1;text-align:center;padding:60px 20px;background:#fff;border:1px dashed var(--border);border-radius:12px;color:var(--sub)}.resource-empty>.ui-icon{width:42px;height:42px;color:#94a3b8;margin-bottom:15px}.resource-empty h2{font-size:16px;margin:0 0 7px;color:var(--text)}.resource-empty p{font-size:13px;margin:0 0 15px}.resource-pages{display:flex;justify-content:center;gap:7px;margin:20px 0 60px;flex-wrap:wrap}.resource-pages a,.resource-pages>span{padding:6px 11px;font-size:13px;border:1px solid var(--border);border-radius:6px;background:#fff}.resource-pages a.on{background:#2563eb;color:#fff;border-color:#2563eb}.cart-floating{position:fixed;bottom:24px;right:28px;z-index:20;display:flex;align-items:center;gap:9px;background:#2563eb;color:#fff;padding:12px 18px;border-radius:12px;box-shadow:0 5px 18px #2563eb33;font-size:14px}.cart-floating span{border-radius:10px;background:#ffffff33;min-width:23px;text-align:center;padding:0 6px;font-size:12px}.cart-checkout{background:#eff6ff;border:1px solid #bfdbfe;border-radius:8px;padding:12px 15px;margin-bottom:16px;display:flex;justify-content:space-between;align-items:center;gap:12px}
.resource-drawer{position:fixed;inset:0 0 0 auto;margin:0;width:520px;max-width:90vw;height:100dvh;max-height:100dvh;border:0;border-left:1px solid var(--border);padding:0;background:#fff;box-shadow:-6px 0 30px #0f172a20;color:var(--text)}.resource-drawer::backdrop{background:#0f172a66}.drawer-close{position:absolute;right:16px;top:16px;width:36px;height:36px;background:#f1f5f9;border:0;border-radius:8px;display:grid;place-items:center;z-index:1}.resource-detail{max-width:900px;font-size:14px}.resource-drawer .resource-detail{margin:0;border:0;border-radius:0;padding:28px;min-height:100%;display:flex;flex-direction:column}.resource-detail header{padding-right:24px;border-bottom:1px solid var(--border);padding-bottom:20px}.resource-detail h1{font-size:20px;line-height:1.5;overflow-wrap:anywhere;margin:0}.detail-eyebrow{font-size:12px;color:var(--sub);margin:0 0 8px}.resource-detail-body{flex:1}.resource-detail-body section{padding:20px 0;border-bottom:1px solid #f1f5f9}.resource-detail-body h2{font-size:12px;color:var(--sub);font-weight:500;margin:0 0 8px}.resource-detail-body p{font-size:14px;line-height:1.85;margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.resource-detail-actions{display:flex;align-items:center;gap:12px;margin-top:24px}.resource-detail-actions>*{flex:1}.inline-fee{position:static;display:inline-block;margin-right:8px;box-shadow:none}.resource-notice{position:fixed;top:76px;left:50%;transform:translateX(-50%);z-index:1000;background:#0f1b33;color:#fff;border-radius:8px;padding:10px 18px;max-width:80vw;font-size:14px}
@media(min-width:1650px){.resource-menu{width:180px}.resource-forms{width:116px}}@media(max-width:1250px){.catalog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.resource-menu{width:145px}.resource-forms{width:88px}}@media(max-width:800px){.resource-workspace{display:block}.resource-menu{width:auto;margin-bottom:14px}.sub-card{position:static;display:flex;flex-wrap:wrap;gap:6px}.sub-card a{gap:10px;margin:0}.resource-filter-row{flex-wrap:wrap}.resource-keyword{flex-basis:100%}.resource-results-layout{gap:10px}.catalog-grid{grid-template-columns:1fr}.resource-forms{width:82px}.resource-drawer{max-width:100vw}.cart-floating{right:16px;bottom:16px}}
