/* HAG v30.9.307 resource discovery and commerce (controlled QA) */
#resourceTabs .resource-tab.hag306-ghost{background:#f7f9fa!important;color:#61758a!important;border:1px dashed #c4d0dd!important;cursor:pointer!important}
#resourceTabs .resource-tab.hag306-ghost:hover,#resourceTabs .resource-tab.hag306-ghost:focus-visible{background:#edf4fa!important;color:#14385e!important;border-color:#7394b5!important;outline:2px solid transparent!important}
#resourceTabs .hag306-lock{display:inline-flex;align-items:center;justify-content:center;font-size:13px;color:#8294a5;border:1px solid #c7d5df;border-radius:50%;width:18px;height:18px;margin-right:3px}
.hag306-allowance{display:flex;flex-wrap:wrap;gap:6px 16px;background:#f4f8fb;border:1px solid #d5e1ed;color:#3b5974;border-radius:12px;padding:11px 14px;margin:10px 0 18px;font-size:12px;line-height:1.5}
.hag306-allowance strong{font-size:12px;color:#143a60}.hag306-allowance span{font-size:11px}
.hag306-marketplace-allowance{margin-top:0}
.hag306-recommended{display:inline-flex;color:#184b73;background:#eaf2fa;border-radius:20px;padding:4px 8px;font-size:10px;font-weight:800;margin-top:4px}
.hag306-market-card .market-card-foot{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.hag306-market-card .market-card-foot strong{margin-right:auto}
.hag306-price-note{display:block;color:#7a6b53;font-size:10px;line-height:1.5;margin-top:5px}
.hag306-detail-credit{padding:12px 14px;border:1px solid #d5e1ed;background:#f4f8fb;border-radius:10px;color:#425b73;font-size:12px}
.hag306-notice-backdrop{position:fixed;inset:0;background:rgba(13,33,54,.58);z-index:999999;display:flex;align-items:center;justify-content:center;padding:18px}
.hag306-notice-backdrop[hidden]{display:none!important}
.hag306-notice{position:relative;width:min(520px,100%);background:#fffefa;border:1px solid #d8c9b0;border-radius:18px;box-shadow:0 24px 74px #0b1c3055;padding:26px;color:#15385e}
.hag306-notice>span{display:block;color:#976b24;letter-spacing:.08em;font-weight:900;font-size:10px}
.hag306-notice h2{margin:8px 36px 14px 0;font-size:23px}
.hag306-notice p{font-size:13px;line-height:1.65;color:#47627c}
.hag306-notice-close{position:absolute;right:16px;top:15px;border:0;border-radius:8px;background:#f1efeb;width:34px;height:34px;cursor:pointer}
.hag306-notice-actions{display:flex;justify-content:flex-end;margin-top:14px}
@media(max-width:760px){.hag306-allowance{flex-direction:column;gap:3px;margin:9px 0 13px;padding:11px 12px}.hag306-market-card .market-card-foot{justify-content:space-between}.hag306-notice{padding:20px}.hag306-notice h2{font-size:20px}}

/* v30.9.307: show selected locked-resource explanation without a second modal. */
#marketplaceGrid .hag307-ghost-focus{outline:2px solid #557e9f;outline-offset:2px;box-shadow:0 0 0 5px rgba(65,123,164,.12)}
.hag307-preview-error{padding:10px 14px;border:1px solid #e2b7aa;background:#fff8f4;color:#8a3d29;border-radius:9px;font-size:12px}

/* v30.9.308: scoped nonmodal locked resource explanation */
#resources .hag308-ghost-preview{min-width:0;max-width:100%;box-sizing:border-box}
#resources .hag308-ghost-content{background:#fffefa;border:1px solid #dce5ed;border-radius:0 0 16px 16px;margin:0!important;max-width:100%;padding:24px!important;box-sizing:border-box}
#resources .hag308-ghost-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;flex-wrap:wrap}
#resources .hag308-eyebrow{font-size:10px;letter-spacing:.1em;font-weight:850;color:#906624}
#resources .hag308-ghost-heading h2{font-size:22px;margin:7px 0;color:#12375c}
#resources .hag308-ghost-heading p{line-height:1.6;color:#4d6074;max-width:780px}
#resources .hag308-price{font-size:20px;color:#15395e;font-weight:850;white-space:nowrap}
#resources .hag308-ghost-summary{font-size:12px;border:1px solid #d8e4ed;background:#f4f8fc;padding:12px;border-radius:9px;color:#3a5970}
#resources .hag308-preview-section{border-top:1px solid #e5e9ef;margin:16px 0 0;padding-top:15px}
#resources .hag308-preview-section strong{display:block;margin-bottom:7px;color:#15395e}
#resources .hag308-preview-section ul{margin:7px 0 0;padding-left:22px;display:grid;gap:7px;color:#50647a;font-size:13px}
#resources .hag308-ghost-actions{display:flex;gap:14px;align-items:center;flex-wrap:wrap;margin-top:21px}
#resources .hag308-ghost-actions span,#resources .hag308-ghost-footnote{font-size:12px;color:#5b7185;line-height:1.5}
#resources .hag308-ghost-footnote{margin:18px 0 0}
@media(max-width:650px){#resources .hag308-ghost-content{padding:15px!important}#resources .hag308-ghost-heading h2{font-size:19px}#resources .hag308-ghost-actions{align-items:stretch;flex-direction:column}}

/* v30.9.328: a revoked tier capability uses the same compact locked preview as governed resources. */
#resourceTabs [data-hag-ghost-key="artifact-review"]{border-style:dashed!important}
.hag308-ghost-preview .hag308-ghost-content{max-width:none}
.hag308-ghost-preview .hag308-price{min-width:120px;line-height:1.4}
