*{box-sizing:border-box}html{scroll-behavior:smooth;overflow-x:clip}body{margin:0;background:#fff;color:#102a43;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.6;-webkit-font-smoothing:antialiased}a{color:inherit;text-decoration:none}button,input,select{font:inherit}.shell{width:min(1360px,calc(100% - 64px));margin:0 auto}.site-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.92);backdrop-filter:blur(16px);border-bottom:1px solid #e4ebf1}.nav-shell{height:76px;display:flex;align-items:center;gap:28px}.brand{display:flex;align-items:center;gap:12px;margin-right:auto}.brand-mark{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:#102a43;box-shadow:0 10px 30px rgba(16,42,67,.12)}.brand strong{display:block;font-size:15px;line-height:1.1}.brand small{display:block;margin-top:3px;color:#6c7d90;font-size:11px;letter-spacing:.08em;text-transform:uppercase}.site-header nav{display:flex;gap:24px;font-size:14px;font-weight:700;color:#455c72}.site-header nav a:hover{color:#1769aa}.lang-switch{display:flex;border:1px solid #d9e4ee;border-radius:999px;padding:3px;background:#f7fafc}.lang-switch a{padding:4px 9px;border-radius:999px;font-size:12px;font-weight:800;color:#6c7d90}.lang-switch a.active{background:#102a43;color:#fff}.eyebrow{display:inline-block;color:#1769aa;font-size:12px;font-weight:900;letter-spacing:.18em;text-transform:uppercase}.prompt-hero h1,.not-found h1{margin:12px 0 18px;letter-spacing:-.045em;line-height:1.02}.button,.secondary-button{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:48px;padding:0 20px;border-radius:12px;border:1px solid #1769aa;background:#1769aa;color:#fff;font-weight:850;box-shadow:0 10px 26px rgba(23,105,170,.18);cursor:pointer}.button:hover{background:#125b94}.secondary-button{background:#fff;color:#102a43;border-color:#d9e4ee;box-shadow:none}.results-line{margin:22px 2px;color:#6a7e91}.prompt-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.prompt-card{display:flex;flex-direction:column;min-height:250px;padding:22px;border:1px solid #dfe8ef;border-radius:18px;background:#fff;transition:.2s}.prompt-card:hover{transform:translateY(-2px);border-color:#c8d9e6;box-shadow:0 18px 40px rgba(16,42,67,.08)}.prompt-card-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.prompt-id{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11px;font-weight:850;color:#1769aa}.status-dot{font-size:11px;font-weight:800;color:#23866a}.prompt-card h3{margin:18px 0 10px;font-size:19px;line-height:1.28}.prompt-card h3 a:hover{color:#1769aa}.prompt-card>p{margin:0;color:#687c90;font-size:13px}.empty-state{padding:90px 20px;text-align:center}.empty-state button{padding:10px 14px;border:1px solid #d7e2eb;border-radius:10px;background:#fff;cursor:pointer}.prompt-hero{padding:48px 0 38px;background:linear-gradient(135deg,#f7fbfe,#fff 70%,#fbf6ea);border-bottom:1px solid #e5edf3}.breadcrumbs{display:flex;gap:9px;flex-wrap:wrap;color:#708395;font-size:12px}.breadcrumbs a:hover{color:#1769aa}.prompt-actions{display:flex;gap:10px}.prompt-layout{display:grid;grid-template-columns:250px minmax(0,1fr);gap:54px;padding:54px 0}.prompt-sidebar{align-self:start;position:sticky;top:100px}.side-card{padding:18px;border:1px solid #dfe8ef;border-radius:16px;background:#f9fbfc}.side-card dl{margin:0}.side-card dl>div{display:flex;justify-content:space-between;gap:10px;padding:10px 0;border-bottom:1px solid #e7eef3}.side-card dt{color:#708294;font-size:12px}.side-card dd{margin:0;font-size:12px;font-weight:850}.active-lang{color:#1769aa}.source-link{display:block;margin-top:14px;font-size:12px;font-weight:850;color:#1769aa}.toc{display:grid;gap:8px;margin-top:20px;padding:18px;border-left:2px solid #dfe8ef}.toc strong{margin-bottom:6px;font-size:12px;text-transform:uppercase;letter-spacing:.12em}.toc a{font-size:12px;color:#6a7d8f}.toc a:hover{color:#1769aa}.toc-3{padding-left:10px}.markdown-body{max-width:850px;font-size:16px;color:#263f55}.markdown-body h1,.markdown-body h2,.markdown-body h3,.markdown-body h4{scroll-margin-top:105px;color:#102a43;letter-spacing:-.02em;line-height:1.2}.markdown-body h1{font-size:38px}.markdown-body h2{margin-top:48px;padding-top:8px;font-size:28px;border-top:1px solid #e5ecf2}.markdown-body h3{margin-top:34px;font-size:21px}.markdown-body h4{margin-top:28px;font-size:17px}.markdown-body p{margin:14px 0}.markdown-body ul,.markdown-body ol{padding-left:24px}.markdown-body li{margin:6px 0}.markdown-body blockquote{margin:20px 0;padding:16px 18px;border-left:4px solid #b98524;background:#fcf8ee;border-radius:0 12px 12px 0;color:#53687d}.markdown-body code{padding:2px 6px;border-radius:6px;background:#f0f4f7;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.88em}.code-block{margin:22px 0;border:1px solid #dbe5ed;border-radius:14px;overflow:hidden;background:#102a43}.code-meta{display:flex;justify-content:space-between;align-items:center;padding:9px 12px;background:#17364f;color:#b9c8d4;font-size:11px}.code-meta button{border:0;background:transparent;color:#fff;font-size:11px;font-weight:800;cursor:pointer}.code-block pre{overflow:auto;margin:0;padding:18px;color:#e7eef4}.code-block code{padding:0;background:transparent;color:inherit}.table-wrap{overflow-x:auto;margin:20px 0;border:1px solid #dfe7ed;border-radius:12px}.markdown-body table{width:100%;border-collapse:collapse;font-size:13px}.markdown-body th,.markdown-body td{padding:10px 12px;border-bottom:1px solid #e6edf2;text-align:left;vertical-align:top}.markdown-body th{background:#f7fafc;color:#102a43}.markdown-body hr{border:0;border-top:1px solid #e2eaf0;margin:36px 0}.markdown-body a{color:#1769aa;text-decoration:underline;text-underline-offset:3px}.prev-next{display:grid;grid-template-columns:1fr 1fr;gap:14px;padding-bottom:80px}.prev-next a{padding:18px;border:1px solid #dfe8ef;border-radius:14px;background:#fff}.prev-next small{display:block;color:#6e8193}.prev-next strong{display:block;margin-top:5px}.next-link{text-align:right}.not-found{padding:110px 0}.not-found h1{font-size:64px}footer{padding:42px 0;border-top:1px solid #e3ebf1;background:#fbfcfd}.footer-shell{display:flex;align-items:center;justify-content:space-between;gap:30px}.footer-shell>div:first-child{display:flex;align-items:center;gap:12px}.footer-shell p{margin:4px 0 0;color:#738496;font-size:12px}.footer-links{display:flex;gap:18px;font-size:12px;font-weight:800;color:#61758a}@media(max-width:980px){.desktop-nav{display:none}.prompt-grid{grid-template-columns:repeat(2,1fr)}.prompt-layout{grid-template-columns:1fr}.prompt-sidebar{position:static}.toc{display:none}}@media(max-width:640px){.shell{width:min(100% - 24px,1180px)}.nav-shell{height:66px}.brand small{display:none}.site-header .lang-switch{margin-left:auto}.prompt-grid{grid-template-columns:1fr}.prompt-hero{padding-top:34px}.prompt-actions{width:100%;flex-direction:column}.prompt-actions>*{width:100%}.prompt-layout{padding-top:34px}.markdown-body h2{font-size:24px}.prev-next{grid-template-columns:1fr}.next-link{text-align:left}.footer-shell{align-items:flex-start;flex-direction:column}.footer-links{flex-wrap:wrap}}

/* Premium brand and balanced card layout */
.brand-mark{display:grid;place-items:center;width:48px;height:48px;border-radius:15px;background:transparent;box-shadow:0 12px 32px rgba(16,42,67,.14);overflow:hidden;flex:0 0 auto}
.brand-mark img{display:block;width:100%;height:100%;object-fit:cover}
.brand{gap:14px}
.brand strong{font-size:16px;letter-spacing:-.015em}
.brand small{font-size:10px;letter-spacing:.13em}

.prompt-grid{align-items:stretch}
.prompt-card{min-height:286px}
.prompt-card>p{max-width:92%}

.side-card{display:grid;gap:0}
.side-card dl>div{min-height:44px;align-items:center}
.source-link{display:flex;align-items:center;justify-content:space-between;min-height:42px;margin-top:10px;padding-top:10px}

.prev-next a{min-height:92px;display:flex;flex-direction:column;justify-content:center}

@media(max-width:640px){
  .brand-mark{width:44px;height:44px;border-radius:14px}
  .brand strong{font-size:14px}
  .prompt-card{min-height:250px}
}


/* Full-site polish */
:root{--navy:#102a43;--blue:#1769aa;--blue-2:#2e8ad0;--gold:#b98524;--green:#23866a;--muted:#61758a;--border:#dfe8ef;--surface:#f7fafc;--focus:#1769aa}
::selection{background:#dcecf8;color:#102a43}
a,button,input,select{outline:none}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid rgba(23,105,170,.28);outline-offset:3px;border-radius:10px}
.skip-link{position:fixed;left:18px;top:14px;z-index:200;transform:translateY(-180%);padding:10px 14px;border-radius:10px;background:#102a43;color:#fff;font-weight:800;box-shadow:0 12px 30px rgba(16,42,67,.22)}
.skip-link:focus{transform:none}
.nav-actions{display:flex;align-items:center;gap:12px}
.desktop-nav{display:flex;gap:24px;font-size:14px;font-weight:700;color:#455c72}
.desktop-nav a{position:relative;padding:8px 0}
.desktop-nav a:after{content:"";position:absolute;left:0;right:100%;bottom:2px;height:2px;border-radius:2px;background:#1769aa;transition:right .2s ease}
.desktop-nav a:hover:after{right:0}
.menu-toggle{display:none;width:42px;height:42px;padding:0;border:1px solid #d9e4ee;border-radius:12px;background:#fff;cursor:pointer}
.menu-toggle span{display:block;width:18px;height:2px;margin:4px auto;border-radius:2px;background:#102a43;transition:.2s}
.menu-toggle[aria-expanded="true"] span:nth-child(1){transform:translateY(6px) rotate(45deg)}
.menu-toggle[aria-expanded="true"] span:nth-child(2){opacity:0}
.menu-toggle[aria-expanded="true"] span:nth-child(3){transform:translateY(-6px) rotate(-45deg)}
.mobile-menu{border-top:1px solid #e5edf3;background:rgba(255,255,255,.98);box-shadow:0 18px 40px rgba(16,42,67,.08)}
.mobile-menu[hidden]{display:none}
.mobile-menu .shell{display:grid;padding-top:10px;padding-bottom:14px}
.mobile-menu a{padding:13px 4px;border-bottom:1px solid #edf2f5;font-weight:800;color:#455c72}
.mobile-menu a:last-child{border-bottom:0}
.mobile-lang{display:flex;gap:8px;padding:14px 0 2px}
.mobile-lang a{display:inline-flex;align-items:center;justify-content:center;min-width:44px;padding:8px 12px;border:1px solid #d9e4ee!important;border-radius:999px;background:#fff;font-size:12px}
.mobile-lang a.active{background:#102a43;color:#fff;border-color:#102a43!important}
body.menu-open{overflow:hidden}
.prompt-card[hidden]{display:none!important}
.prompt-card{position:relative;overflow:hidden}
.prompt-card:before{content:"";position:absolute;left:0;top:0;width:4px;height:100%;background:transparent;transition:.2s}
.prompt-card:hover:before{background:#1769aa}
.prompt-card h3{max-width:95%}
.status-dot{display:inline-flex;align-items:center;gap:5px}
.status-dot:before{content:"";width:7px;height:7px;border-radius:50%;background:#23866a;box-shadow:0 0 0 4px rgba(35,134,106,.09)}

.prompt-hero{position:relative;overflow:hidden}
.prompt-hero .shell{position:relative;z-index:1}
.prompt-actions{flex-wrap:wrap}
.prompt-actions .button,.prompt-actions .secondary-button{min-width:148px}
.side-card{background:linear-gradient(180deg,#fbfcfd,#f6f9fb)}
.side-card dd{word-break:break-word}
.active-lang{display:inline-grid;place-items:center;min-width:30px;height:26px;padding:0 7px;border-radius:8px;background:#eaf4fb}
.toc{max-height:calc(100vh - 360px);overflow:auto;padding-right:10px}
.toc::-webkit-scrollbar{width:6px}
.toc::-webkit-scrollbar-thumb{background:#d6e2ea;border-radius:10px}
.markdown-body{width:100%;max-width:900px}
.markdown-body>h1:first-child{margin-top:0}
.markdown-body p{max-width:78ch}
.markdown-body li{max-width:78ch}
.markdown-body blockquote{max-width:78ch}
.markdown-body .table-wrap{max-width:100%}
.code-meta button:hover{color:#e4b85a}
.table-wrap{box-shadow:0 8px 24px rgba(16,42,67,.035)}
.markdown-body tr:last-child td{border-bottom:0}
.markdown-body tbody tr:hover{background:#fbfcfd}
.prev-next a{transition:.18s}
.prev-next a:hover{transform:translateY(-2px);border-color:#c6d9e6;box-shadow:0 12px 28px rgba(16,42,67,.07)}

footer{background:linear-gradient(180deg,#fbfcfd,#f6f9fb)}
.footer-links a{position:relative}
.footer-links a:hover{color:#1769aa}

@media(max-width:980px){
  .desktop-nav{display:none}
  .menu-toggle{display:block}
  .nav-actions{margin-left:auto}
  .prompt-layout{gap:30px}
  .prompt-sidebar{display:grid;grid-template-columns:minmax(0,1fr);gap:14px}
  .side-card{max-width:none}
}

@media(max-width:720px){
  .nav-shell{gap:12px}
  .brand{min-width:0}
  .brand>span:last-child{min-width:0}
  .brand strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:220px}
  .lang-switch{display:none}
}

@media(max-width:640px){
  .site-header{position:sticky}
  .nav-shell{height:70px}
  .brand strong{max-width:175px}
  .prompt-grid{gap:10px}
  .prompt-card{padding:20px}
  .breadcrumbs{gap:6px}
  .prompt-actions{display:grid;grid-template-columns:1fr 1fr;width:100%}
  .prompt-actions .button,.prompt-actions .secondary-button{min-width:0;width:100%}
  .prompt-layout{gap:24px}
  .side-card{padding:16px}
  .markdown-body{font-size:15px}
  .markdown-body p,.markdown-body li,.markdown-body blockquote{max-width:none}
  .markdown-body h2{margin-top:40px}
  .code-block{border-radius:12px}
  .code-block pre{padding:15px;font-size:12px}
  .prev-next{gap:10px}
  footer{padding-top:34px;padding-bottom:34px}
  .footer-shell{gap:22px}
}
.results-line{display:flex;align-items:center;gap:5px;min-height:30px}
.prompt-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:stretch}
.prompt-card{min-height:282px;padding:23px 23px 20px}.prompt-card h3{font-size:20px}.language-links{display:flex;gap:8px}.language-links a{display:grid;place-items:center;min-width:30px;height:28px;border:1px solid #e0e8ef;border-radius:8px;background:#f8fafc}
.open-link{white-space:nowrap}
.prompt-title-copy{min-width:0}.prompt-hero-meta{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}.prompt-hero-meta span{padding:7px 10px;border:1px solid #d9e5ee;border-radius:999px;background:#fff;color:#5e7488;font-size:11px;font-weight:850}
.prompt-layout{grid-template-columns:280px minmax(0,1fr);gap:58px}.markdown-body{max-width:none;width:100%;padding-right:4vw}.markdown-body>p{max-width:980px}.markdown-body>ul,.markdown-body>ol{max-width:960px}
.markdown-body .table-wrap{max-width:100%}
@media(max-width:1100px){.prompt-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:980px){.prompt-layout{grid-template-columns:1fr}.markdown-body{padding-right:0}}
@media(max-width:640px){.prompt-grid{grid-template-columns:1fr}.prompt-card{min-height:auto}}


/* Support project menu */
.support-menu{position:relative}
.support-menu summary{display:flex;align-items:center;gap:8px;min-height:42px;padding:0 13px;border:1px solid #d9e4ee;border-radius:12px;background:#102a43;color:#fff;font-size:12px;font-weight:850;cursor:pointer;list-style:none;box-shadow:0 8px 20px rgba(16,42,67,.12)}
.support-menu summary::-webkit-details-marker{display:none}
.support-menu summary:hover{background:#163653}
.support-heart{display:grid;place-items:center;width:20px;height:20px;border-radius:7px;background:#fcf7ec;color:#b98524;font-size:14px}
.support-chevron{margin-left:2px;font-size:13px;transition:transform .18s}
.support-menu[open] .support-chevron{transform:rotate(180deg)}
.support-popover{position:absolute;right:0;top:calc(100% + 10px);z-index:80;width:246px;padding:13px;border:1px solid #d9e4ee;border-radius:18px;background:#fff;box-shadow:0 22px 55px rgba(16,42,67,.16)}
.support-popover:before{content:"";position:absolute;right:22px;top:-6px;width:11px;height:11px;border-left:1px solid #d9e4ee;border-top:1px solid #d9e4ee;background:#fff;transform:rotate(45deg)}
.support-lead{display:block;padding:4px 6px 10px;color:#687d90;font-size:11px;font-weight:750}
.support-popover a{display:grid;grid-template-columns:36px 1fr auto;align-items:center;gap:10px;min-height:52px;padding:7px 7px;border-radius:12px;color:#294258}
.support-popover a:hover{background:#f6f9fb}
.support-popover a>span:last-child{font-size:22px;color:#86a0b5}
.support-provider{display:grid;place-items:center;width:36px;height:36px;border-radius:10px;font-weight:900}
.support-provider.paypal{background:#e7f4fc;color:#1272aa}
.support-provider.kofi{background:#fff2c9;color:#8d5b15}
.mobile-support{display:none}
@media(max-width:980px){.support-menu{display:none}.mobile-support{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:13px 0;border-bottom:1px solid #edf2f5}.mobile-support>span{grid-column:1/-1;color:#687d90;font-size:11px;font-weight:850;text-transform:uppercase;letter-spacing:.08em}.mobile-support a{display:flex!important;align-items:center;justify-content:center;padding:10px!important;border:1px solid #d9e4ee!important;border-radius:10px;background:#fff;color:#294258!important}}
@media(max-width:1180px){.support-menu summary span:nth-child(2){display:none}.support-menu summary{padding:0 10px}}
@media(max-width:720px){
  body{max-width:100%;overflow-x:clip}
  .shell{width:min(1360px,calc(100% - 28px))}
  .prompt-card{min-height:0}.prompt-card h3{font-size:18px}
  .prompt-hero{padding:30px 0}
  .prompt-actions{grid-template-columns:1fr}
  .prompt-layout{padding-top:26px}
  .prompt-sidebar{order:0}.markdown-body{order:1;min-width:0}
  .toc{max-height:280px}
  .markdown-body h1{font-size:31px}.markdown-body h2{font-size:23px}.markdown-body h3{font-size:19px}
  .table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;margin-left:-2px;margin-right:-2px}
  .markdown-body table{min-width:620px}
  .code-block{max-width:100%;overflow:hidden}.code-block pre{overflow-x:auto;-webkit-overflow-scrolling:touch}
  .prev-next a{min-height:76px;padding:15px}
  .footer-links{display:grid;grid-template-columns:1fr 1fr;gap:12px;width:100%}
}
@media(max-width:420px){
  .shell{width:min(1360px,calc(100% - 28px))}
  .brand strong{max-width:min(220px,calc(100vw - 170px));white-space:normal;overflow:visible;text-overflow:clip;line-height:1.15}.brand small{display:none}
  .language-links{gap:5px}
  .breadcrumbs{font-size:11px;overflow-wrap:anywhere}
  .footer-links{grid-template-columns:1fr}
}

/* Shared navigation and motion preferences */
.site-header{isolation:isolate}
@media(max-width:980px){
  .mobile-menu{position:absolute;top:100%;left:0;right:0;max-height:calc(100dvh - 70px);overflow-y:auto;overscroll-behavior:contain}
}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
}

/* Scalable prompt catalog */
body.library-page{background:#f8fafc}
.library-intro{position:relative;overflow:hidden;padding:48px 0 34px;border-bottom:1px solid #e4ebf1;background:radial-gradient(ellipse at 92% 0%,rgba(220,235,245,.7),transparent 36%),linear-gradient(125deg,#fff,#f7fafc 72%,#fcf8ef)}
.library-intro-grid{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:38px}
.library-intro h1{margin:12px 0 10px;color:#102a43;font-size:clamp(42px,5vw,60px);line-height:1.02;letter-spacing:-.055em}
.library-intro p{max-width:780px;margin:0;color:#61758a;font-size:16px;line-height:1.6}
.library-workspace{display:grid;grid-template-columns:248px minmax(0,1fr);align-items:start;gap:30px;padding-top:34px;padding-bottom:92px}
.category-sidebar{position:sticky;top:98px;max-height:calc(100dvh - 118px);min-width:0;overflow-y:auto;padding:16px;border:1px solid #dfe8ef;border-radius:18px;background:#fff;box-shadow:0 12px 32px rgba(16,42,67,.045);scrollbar-width:thin;scrollbar-color:#d7e3ec transparent}
.category-sidebar-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:11px;padding:1px 4px}
.category-sidebar-head .eyebrow{font-size:10px;letter-spacing:.13em}
.category-sidebar-head>button{padding:5px 0;border:0;background:none;color:#1769aa;font-size:10px;font-weight:850;cursor:pointer}
.category-navigation{display:grid;gap:3px}
.category-link{display:grid;grid-template-columns:31px minmax(0,1fr) 16px;align-items:center;gap:8px;width:100%;min-height:56px;padding:7px 8px;border:1px solid transparent;border-radius:11px;background:transparent;color:#29465f;text-align:left;cursor:pointer;transition:background .16s,border-color .16s,color .16s}
.category-link:hover{background:#f5f9fc}
.category-link.active,.category-link[aria-pressed="true"]{border-color:#d2e4f0;background:#eef6fb;color:#102a43}
.category-order{display:grid;place-items:center;width:28px;height:28px;border:1px solid #e1eaf0;border-radius:9px;background:#fff;color:#9b762e;font-size:10px;font-weight:900}
.category-link-all .category-order{color:#1769aa}
.category-link-copy{display:grid;gap:3px;min-width:0}
.category-link-copy strong{overflow:hidden;color:inherit;font-size:11px;font-weight:850;line-height:1.25;text-overflow:ellipsis}
.category-link-copy small{color:#718599;font-size:9px;font-weight:700;line-height:1.25}
.category-status{justify-self:end;color:#96aabb;font-size:11px}
.category-link.active .category-status,.category-link[aria-pressed="true"] .category-status{color:#1769aa}
.category-link.planned{cursor:default;opacity:.78}
.category-link.planned .category-link-copy strong{color:#526b81}
.category-link.planned .category-link-copy small{color:#73879a}
.category-link.planned .category-order{color:#738697;background:#f7f9fa}
.library-results{min-width:0}
.catalog-search-wrap{margin-bottom:14px}
.catalog-search{display:grid;grid-template-columns:32px minmax(0,1fr) 22px;align-items:center;gap:10px;min-width:0;height:60px;padding:0 16px;border:1px solid #d7e4ed;border-radius:15px;background:#fff;box-shadow:0 9px 26px rgba(16,42,67,.055);transition:border-color .16s,box-shadow .16s}
.catalog-search:focus-within{border-color:#a9c7dc;box-shadow:0 14px 32px rgba(16,42,67,.09)}
.catalog-search>span{color:#1769aa;font-size:25px;text-align:center;line-height:1}
.catalog-search input{width:100%;min-width:0;height:48px;border:0;outline:0;background:transparent;color:#102a43;font-size:16px}
.catalog-search input::placeholder{color:#8595a4;opacity:1}
.catalog-search kbd{display:grid;place-items:center;width:22px;height:24px;border:1px solid #dce6ec;border-radius:6px;background:#f8fafb;color:#738697;font-family:inherit;font-size:11px}
.catalog-search-wrap>p{margin:7px 3px 0;color:#788a9c;font-size:11px;line-height:1.45}
.filter-select{display:grid;gap:5px;min-width:0}
.filter-select>span{color:#64798d;font-size:10px;font-weight:850}
.filter-select select{width:100%;min-width:0;height:44px;padding:0 12px;border:1px solid #dbe5ec;border-radius:10px;background:#fff;color:#36536c;font-size:12px;font-weight:700}
.reset-filter-button{height:44px;padding:0 14px;border:1px solid #dbe5ec;border-radius:10px;background:#fff;color:#506a80;font-size:12px;font-weight:800;white-space:nowrap;cursor:pointer}
.reset-filter-button:hover{border-color:#b4cbdc;background:#f8fbfd;color:#1769aa}
.mobile-category-trigger{display:none;align-items:center;justify-content:center;gap:9px;min-height:46px;padding:0 12px;border:1px solid #d7e4ed;border-radius:11px;background:#fff;color:#31516d;font-size:12px;font-weight:850;cursor:pointer}
.mobile-category-trigger.has-selection{border-color:#9ebed4;background:#eff7fc;color:#155f99}
.active-filters{display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin:0 0 12px}
.active-filter-chip{display:inline-flex;align-items:center;min-height:27px;padding:4px 9px;border:1px solid #d8e7f1;border-radius:999px;background:#f2f8fc;color:#315b79;font-size:10px;font-weight:750}
.results-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;min-height:43px;margin:2px 0 11px;border-bottom:1px solid #e4ebf0}
.results-line{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;margin:0;padding:0 0 10px;color:#697e92;font-size:12px}
.results-line strong{color:#102a43;font-size:15px}
.results-line small{color:#8091a1;font-size:10px;font-weight:700}
.prompt-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;gap:15px}
.prompt-card{display:flex;flex-direction:column;min-width:0;min-height:321px;padding:17px;border:1px solid #dfe8ef;border-radius:16px;background:#fff;box-shadow:0 7px 22px rgba(16,42,67,.035);transition:transform .17s,border-color .17s,box-shadow .17s}
.prompt-card:hover{transform:translateY(-2px);border-color:#c6d9e6;box-shadow:0 14px 32px rgba(16,42,67,.075)}
.prompt-card[hidden]{display:none!important}
.prompt-card-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.prompt-id{color:#1769aa;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:10px;font-weight:900;letter-spacing:.06em}
.status-dot{display:inline-flex;align-items:center;gap:6px;color:#4e786b;font-size:9px;font-weight:800}
.status-dot:before{content:"";width:6px;height:6px;border-radius:50%;background:#25856c;box-shadow:0 0 0 3px rgba(37,133,108,.1)}
.prompt-card-body{min-width:0}
.prompt-card h3{margin:17px 0 9px;color:#102a43;font-size:17px;line-height:1.3;letter-spacing:-.025em}
.prompt-card h3 a:hover{color:#1769aa}
.prompt-excerpt{display:-webkit-box;overflow:hidden;margin:0;color:#64798d;font-size:12px;line-height:1.55;-webkit-box-orient:vertical;-webkit-line-clamp:4}
.prompt-category-meta{display:flex;flex-wrap:wrap;align-items:center;gap:5px;margin-top:14px;color:#708498;font-size:10px;font-weight:750;line-height:1.4}
.prompt-category-meta span:first-child{color:#355774}
.prompt-category-meta span:nth-child(2){color:#b98524}
.prompt-card-footer{display:grid;gap:12px;margin-top:auto;padding-top:17px}
.prompt-card-languages{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#8292a1;font-size:9px;font-weight:800}
.language-links{display:flex;gap:5px}
.language-links a{display:grid;place-items:center;min-width:30px;height:25px;padding:0 6px;border:1px solid #e0e8ed;border-radius:7px;background:#fff;color:#6d8193;font-size:9px;font-weight:850}
.language-links a[aria-current="page"]{border-color:#d3e4ef;background:#edf6fb;color:#1769aa}
.open-link{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:40px;padding:0 12px;border:1px solid #1769aa;border-radius:9px;background:#1769aa;color:#fff;font-size:11px;font-weight:850;box-shadow:0 7px 17px rgba(23,105,170,.12)}
.open-link:hover{background:#125b94;color:#fff}
.open-link span{font-size:13px}
.empty-state{display:grid;justify-items:center;gap:9px;margin-top:10px;padding:55px 24px;border:1px dashed #ccdbe6;border-radius:18px;background:#fff;text-align:center}
.empty-state>span{display:grid;place-items:center;width:46px;height:46px;border-radius:14px;background:#edf6fb;color:#1769aa;font-size:25px}
.empty-state h2{margin:3px 0 0;color:#102a43;font-size:21px}
.empty-state p{max-width:460px;margin:0;color:#718497;font-size:13px}
.empty-state button{min-height:40px;margin-top:8px;padding:0 15px;border:1px solid #d8e5ed;border-radius:10px;background:#fff;color:#31536e;font-weight:800;cursor:pointer}
.category-drawer{width:min(500px,100vw);max-width:500px;max-height:min(780px,88dvh);margin:auto;padding:21px;border:1px solid #dce7ee;border-radius:21px;background:#fff;color:#102a43;box-shadow:0 26px 80px rgba(16,42,67,.22)}
.category-drawer::backdrop{background:rgba(9,29,48,.43);backdrop-filter:blur(4px)}
.category-drawer-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px}
.category-drawer-head .eyebrow{font-size:10px}
.category-drawer-head h2{margin:7px 0 0;font-size:25px;line-height:1.15;letter-spacing:-.04em}
.drawer-close{display:grid;place-items:center;flex:0 0 auto;width:40px;height:40px;border:1px solid #dce6ed;border-radius:11px;background:#fff;color:#36536c;font-size:24px;line-height:1;cursor:pointer}
.category-navigation-dialog{max-height:calc(88dvh - 120px);overflow:auto;padding:2px 2px 8px}
.category-navigation-dialog .category-link{min-height:57px}
html.category-drawer-open,body.category-drawer-open{overflow:hidden}
@media(max-width:1100px){
  .library-workspace{grid-template-columns:225px minmax(0,1fr);gap:22px}
  .prompt-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:860px){
  .category-sidebar-head>button{display:none}
  .library-intro-grid{grid-template-columns:minmax(0,1fr) auto;gap:22px}
  .library-intro p{max-width:540px;font-size:14px}
  .library-workspace{grid-template-columns:204px minmax(0,1fr);gap:17px}
  .category-sidebar{padding:11px}
  .category-link{grid-template-columns:28px minmax(0,1fr) 13px;gap:6px;padding-right:6px;padding-left:6px}
  .category-order{width:26px;height:26px}
  .reset-filter-button{grid-column:1/-1}
}
@media(max-width:720px){
  .library-intro{padding:24px 0 18px}
  .library-intro-grid{grid-template-columns:1fr;gap:11px}
  .library-intro h1{margin:8px 0 6px;font-size:40px}
  .library-intro p{display:-webkit-box;overflow:hidden;font-size:13px;line-height:1.45;-webkit-box-orient:vertical;-webkit-line-clamp:2}
  .library-workspace{display:block;padding-top:18px;padding-bottom:60px}
  .category-sidebar{display:none}
  .catalog-search{height:56px;padding:0 12px;grid-template-columns:27px minmax(0,1fr) 22px;gap:8px}
  .catalog-search input{height:46px;font-size:14px}
  .catalog-search-wrap>p{display:none}
  .mobile-category-trigger{display:flex;grid-column:1/-1;justify-content:flex-start;min-height:42px}
  .filter-select select{height:45px;padding:0 8px;font-size:11px}
  .reset-filter-button{grid-column:1/-1;width:100%;height:37px}
  .prompt-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .prompt-card{min-height:316px;padding:14px}
  .prompt-card h3{font-size:15px}
  .prompt-excerpt{font-size:11px;-webkit-line-clamp:5}
  .prompt-category-meta{font-size:9px}
  .category-drawer{width:100%;max-width:none;max-height:88dvh;overflow:hidden;margin:auto 0 0;padding:20px 18px max(20px,env(safe-area-inset-bottom));border-right:0;border-bottom:0;border-left:0;border-radius:21px 21px 0 0}
  .category-navigation-dialog{max-height:calc(88dvh - 112px)}
}
@media(max-width:520px){
  .library-intro h1{font-size:38px}
  .library-intro p{font-size:13px;line-height:1.55}
  .filter-select>span{font-size:9px}
  .filter-select select{font-size:10px}
  .prompt-grid{grid-template-columns:1fr;gap:10px}
  .prompt-card{min-height:0;padding:16px}
  .prompt-card h3{margin-top:12px;font-size:17px}
  .prompt-excerpt{-webkit-line-clamp:3}
  .prompt-card-footer{grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:10px;padding-top:13px}
  .prompt-card-languages{display:grid;justify-content:start;gap:6px}
  .open-link{min-width:130px}
  .results-line{align-items:flex-start}
  .results-line small{padding-top:3px;text-align:right}
}
@media(max-width:980px){
  .site-header .desktop-nav{display:none}
  .site-header .mobile-menu:not([hidden]){display:block;background:#fff}
}

/* Compact responsive language control for the catalog-first entry */
@media(max-width:720px){
  .site-header .lang-switch{display:flex;gap:0;padding:2px;margin-left:auto}
  .site-header .lang-switch a{padding:4px 6px;font-size:10px}
  .site-header .nav-actions{gap:7px}
  .site-header .brand{gap:9px}
  .site-header .brand-mark{width:38px;height:38px}
  .site-header .brand small{display:none}
  .site-header .brand strong{max-width:clamp(84px,calc(100vw - 236px),220px);font-size:13px}
  .site-header .menu-toggle{width:38px;height:38px}
}
@media(max-width:520px){
  .library-intro{padding:19px 0 14px}
  .library-intro-grid{gap:8px}
  .library-intro h1{font-size:34px}
  .library-intro p{display:block;max-width:42ch;font-size:12px;line-height:1.4}
  .library-workspace{padding-top:14px}
}

/* Clearer category navigation and guided prompt reading */
.category-sidebar-head .eyebrow{font-size:11px;letter-spacing:.12em}
.category-sidebar-head>button{font-size:11px}
.category-link{min-height:64px;padding:8px 9px}
.category-order{width:32px;height:32px;font-size:11px}
.category-link-copy{gap:4px}
.category-link-copy strong{font-size:13px;line-height:1.3}
.category-link-copy small{font-size:11px;line-height:1.35}
.category-link.planned{opacity:1}
.category-link.planned .category-link-copy strong{color:#50687e}
.category-link.planned .category-link-copy small{color:#687d90}
.category-navigation-dialog .category-link{grid-template-columns:38px minmax(0,1fr) 18px;min-height:72px;gap:12px;padding:10px 12px}
.category-navigation-dialog .category-link-copy strong{font-size:15px;line-height:1.35}
.category-navigation-dialog .category-link-copy small{font-size:12px}
.category-navigation-dialog .category-order{width:36px;height:36px;font-size:12px}
.category-sidebar,.category-navigation-dialog{scrollbar-width:thin;scrollbar-color:#b9cad7 transparent}
.category-sidebar::-webkit-scrollbar,.category-navigation-dialog::-webkit-scrollbar{width:8px}
.category-sidebar::-webkit-scrollbar-thumb,.category-navigation-dialog::-webkit-scrollbar-thumb{border:2px solid transparent;border-radius:10px;background:#b9cad7;background-clip:padding-box}

.prompt-page .prompt-sidebar{position:sticky;top:94px;align-self:start;max-height:calc(100dvh - 112px);overflow-y:auto;scrollbar-width:thin;scrollbar-color:#c8d7e1 transparent}
.prompt-page .prompt-sidebar .toc{max-height:none;overflow:visible;padding-right:2px}
.prompt-page .toc a{position:relative;display:block;padding:8px 10px 8px 14px;border-radius:9px;color:#587088;font-size:13px;line-height:1.45;transition:background .16s,color .16s}
.prompt-page .toc a:hover{background:#f4f8fb;color:#1769aa}
.prompt-page .toc a.is-active{background:#edf6fb;color:#125b94;font-weight:850}
.prompt-page .toc a.is-active:before{content:"";position:absolute;left:0;top:8px;bottom:8px;width:3px;border-radius:4px;background:#1769aa}
.prompt-page .toc a.toc-3{margin-left:12px;font-size:12px}
.prompt-page .reading-tools{position:sticky;top:84px;z-index:12;display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px;width:fit-content;max-width:100%;margin:0 0 22px auto;padding:6px;border:1px solid #dce6ed;border-radius:14px;background:rgba(255,255,255,.96);box-shadow:0 8px 22px rgba(16,42,67,.06);backdrop-filter:blur(12px)}
.reading-font-controls{display:flex;align-items:center;gap:3px;padding:2px;border:1px solid #e1e9ef;border-radius:10px;background:#f8fafb}
.reading-control,.reading-option{display:inline-flex;align-items:center;justify-content:center;min-width:38px;height:36px;padding:0 10px;border:1px solid transparent;border-radius:9px;background:transparent;color:#36536b;font-size:12px;font-weight:850;cursor:pointer;white-space:nowrap}
.reading-font-reset{min-width:42px;color:#1769aa}
.reading-control:hover,.reading-option:hover{border-color:#d6e5ef;background:#f2f8fb;color:#125b94}
.reading-option[aria-pressed="true"]{border-color:#c9deeb;background:#edf6fb;color:#125b94}
.prompt-page .markdown-body{font-size:var(--reading-font-size,16px);line-height:1.72}
.prompt-page .markdown-body h1{font-size:calc(var(--reading-font-size,16px) * 2.15)}
.prompt-page .markdown-body h2{font-size:calc(var(--reading-font-size,16px) * 1.55)}
.prompt-page .markdown-body h3{font-size:calc(var(--reading-font-size,16px) * 1.25)}
.prompt-page .markdown-body h4{font-size:calc(var(--reading-font-size,16px) * 1.08)}
.reader-roomy .markdown-body p,.reader-roomy .markdown-body li,.reader-roomy .markdown-body blockquote{line-height:1.95}
.prompt-page.reader-focus-mode .prompt-layout{grid-template-columns:minmax(0,1fr);gap:0}
.prompt-page.reader-focus-mode .prompt-sidebar{display:none}
.prompt-page.reader-focus-mode .markdown-body{max-width:88ch;margin-inline:auto;padding-right:0}
.reading-rail{position:fixed;top:50%;right:max(12px,calc((100vw - 1380px)/2 + 10px));z-index:40;display:grid;justify-items:center;gap:13px;transform:translateY(-50%);pointer-events:none}
.reading-progress-track{position:relative;width:5px;height:168px;overflow:hidden;border-radius:999px;background:#dce6ed;box-shadow:0 0 0 5px rgba(255,255,255,.82)}
.reading-progress-track>span{position:absolute;top:0;left:0;width:100%;height:var(--reading-progress,0%);border-radius:inherit;background:linear-gradient(180deg,#1769aa,#b98524);transition:height .1s linear}
.reading-jump-controls{display:grid;gap:7px;pointer-events:auto}
.reading-jump-controls button{display:grid;place-items:center;width:38px;height:38px;border:1px solid #d7e3eb;border-radius:12px;background:rgba(255,255,255,.97);color:#254661;font-size:20px;font-weight:800;line-height:1;box-shadow:0 8px 20px rgba(16,42,67,.11);cursor:pointer;transition:transform .16s,border-color .16s,color .16s}
.reading-jump-controls button:hover{transform:translateY(-1px);border-color:#9bbbd2;color:#1769aa}

@media(max-width:980px){
  .prompt-page .prompt-sidebar{top:82px;max-height:42dvh;padding:12px;border:1px solid #dfe8ef;border-radius:15px;background:rgba(255,255,255,.98);box-shadow:0 12px 30px rgba(16,42,67,.08)}
  .prompt-page .prompt-sidebar .toc{max-height:calc(42dvh - 152px);overflow:auto;padding-right:7px}
  .prompt-page .reading-tools{position:relative;top:auto;justify-content:flex-start;margin:0 0 20px}
}
@media(max-width:720px){
  .prompt-page .prompt-sidebar{top:70px;max-height:38dvh;padding:10px;gap:8px}
  .prompt-page .prompt-sidebar .toc{max-height:calc(38dvh - 136px)}
  .prompt-page .side-card{padding:10px 12px}
  .prompt-page .toc a{padding-top:7px;padding-bottom:7px;font-size:12px}
  .prompt-page .reading-tools{gap:5px;padding:5px}
  .reading-control,.reading-option{min-width:34px;height:34px;padding:0 8px;font-size:11px}
  .reading-progress-track{height:138px}
  .reading-rail{right:7px;gap:9px}
  .reading-jump-controls{gap:6px}
  .reading-jump-controls button{width:34px;height:34px;border-radius:11px}
  .prompt-page .markdown-body{padding-right:42px}
  .prompt-page.reader-focus-mode .markdown-body{padding-right:42px}
}

/* Premium catalog composition and prompt identity */
.library-workspace{display:grid;grid-template-columns:minmax(238px,270px) minmax(0,1fr);align-items:start;gap:28px;padding-top:19px;padding-bottom:92px}
.category-sidebar{position:sticky;top:94px;align-self:start;max-height:none;min-width:0;overflow:visible;padding:13px 12px;border:1px solid #dce7ee;border-radius:19px;background:linear-gradient(180deg,#fff,#fbfdfe);box-shadow:0 16px 38px rgba(16,42,67,.065);scrollbar-width:auto}
.category-sidebar-head{margin-bottom:7px;padding:1px 5px}
.category-sidebar-head .eyebrow{font-size:10px;letter-spacing:.14em}
.category-sidebar-head>button{font-size:10px}
.category-navigation{gap:2px}
.category-link{grid-template-columns:29px minmax(0,1fr) 13px;min-height:49px;gap:7px;padding:5px 6px;border-radius:10px}
.category-order{width:27px;height:27px;border-radius:8px;font-size:10px}
.category-link-copy{gap:2px}
.category-link-copy strong{font-size:11.5px;line-height:1.22}
.category-link-copy small{font-size:9.5px;line-height:1.2}
.category-status{font-size:10px}
.category-link.planned .category-link-copy strong{color:#5a7186}
.category-link.planned .category-link-copy small{color:#718599}
.library-results{min-width:0}
.library-intro{position:relative;overflow:hidden;margin:0 0 20px;padding:0;border:1px solid rgba(159,187,207,.28);border-radius:24px;background:#102a43;box-shadow:0 22px 52px rgba(16,42,67,.13)}
.library-intro-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(185px,224px);align-items:center;gap:26px;min-height:230px;padding:29px 30px}
.library-intro-copy{position:relative;z-index:1;min-width:0}
.library-eyebrow-row{display:flex;align-items:center;flex-wrap:wrap;gap:12px}
.library-intro .eyebrow{color:#a8d5f1;font-size:10px;letter-spacing:.16em}
.library-hero-signal{padding-left:12px;border-left:1px solid rgba(225,190,111,.65);color:#e4c478;font-size:11px;font-weight:750;letter-spacing:.015em}
.library-intro h1{max-width:720px;margin:15px 0 11px;color:#f6f9fc;font-size:clamp(42px,4.4vw,60px);line-height:.98;letter-spacing:-.06em}
.library-intro p{max-width:58ch;margin:0;color:#bdcbd7;font-size:14px;line-height:1.65}
.library-index-panel{display:grid;align-content:space-between;min-width:0;min-height:171px;overflow:hidden;padding:15px 16px 13px;border:1px solid rgba(214,231,242,.2);border-radius:17px;background:rgba(255,255,255,.055);color:#f6f9fc}
.library-index-top{display:flex;align-items:center;justify-content:flex-start;gap:8px;color:#b7c8d6;font-size:8px;font-weight:900;letter-spacing:.15em}
.library-index-main{position:relative;z-index:1;display:grid;gap:0;margin-top:2px}
.library-index-main strong{color:#fff;font-size:62px;font-weight:850;line-height:.94;letter-spacing:-.08em;font-variant-numeric:tabular-nums}
.library-index-main span,.library-index-foot>div:first-child>span{color:#bdcbd7;font-size:10px;font-weight:700}
.library-index-foot{position:relative;z-index:1;display:flex;align-items:flex-end;justify-content:space-between;gap:10px;padding-top:9px;border-top:1px solid rgba(218,232,242,.17)}
.library-index-foot>div:first-child{display:grid;gap:1px}
.library-index-foot>div:first-child>strong{color:#f0d58e;font-size:18px;line-height:1.1;font-variant-numeric:tabular-nums}
.library-index-foot>div:first-child>strong small{color:#9eb0bf;font-size:11px;font-weight:700}
.catalog-controls{margin:0 0 17px;padding:17px;border:1px solid #dce6ed;border-radius:18px;background:linear-gradient(145deg,#fff,#fcfdfe);box-shadow:0 12px 30px rgba(16,42,67,.045)}
.catalog-search-wrap{margin-bottom:15px}
.catalog-search{height:58px;border-color:#d6e2ea;border-radius:13px;box-shadow:0 5px 17px rgba(16,42,67,.04)}
.catalog-search:focus-within{border-color:#78a9c9;box-shadow:0 0 0 4px rgba(23,105,170,.09)}
.catalog-search-wrap>p{margin-top:7px;font-size:10px}
.filter-select>span{font-size:10px;letter-spacing:.015em}
.filter-select select{height:43px;border-color:#d9e4eb;border-radius:10px}
.reset-filter-button{height:43px;border-radius:10px}
.results-toolbar{scroll-margin-top:96px;display:flex;align-items:center;justify-content:space-between;gap:15px;min-height:54px;margin:0 0 13px;padding:2px 0 11px;border-bottom:1px solid #e0e8ee}
.results-line{display:flex;align-items:center;justify-content:flex-start;gap:12px;width:auto;min-width:0;margin:0;padding:0;color:#688095;font-size:12px}
.results-line>span{white-space:nowrap}
.results-line strong{font-size:16px}
.results-line small{color:#71869a;font-size:10px;font-weight:750;white-space:nowrap}
.pagination-slot{display:flex;align-items:center;justify-content:flex-end;min-width:0}
.pagination-slot[hidden]{display:none!important}
.pagination-nav,.pagination-list{display:flex;align-items:center;min-width:0}
.pagination-list{gap:4px}
.pagination-button{display:inline-flex;align-items:center;justify-content:center;min-width:35px;height:35px;padding:0 8px;border:1px solid transparent;border-radius:9px;background:transparent;color:#536c81;font-size:11px;font-weight:800;font-variant-numeric:tabular-nums;cursor:pointer;transition:background .16s,border-color .16s,color .16s,transform .16s}
.pagination-button:hover:not(:disabled){transform:translateY(-1px);border-color:#d4e3ec;background:#f6fafc;color:#1769aa}
.pagination-button[aria-current="page"]{border-color:#1769aa;background:#1769aa;color:#fff;box-shadow:0 5px 13px rgba(23,105,170,.19)}
.pagination-button:disabled{color:#a7b4bf;cursor:not-allowed}
.pagination-ellipsis{display:grid;place-items:center;width:19px;color:#93a3b1;font-size:13px}
.prompt-grid{gap:15px}
.prompt-card{position:relative;overflow:hidden;min-height:310px;padding:19px;border-color:#dce6ed;border-radius:16px;box-shadow:0 8px 23px rgba(16,42,67,.045)}
.prompt-card:before{position:absolute;top:0;left:20px;width:34px;height:2px;border-radius:0 0 3px 3px;background:linear-gradient(90deg,#1769aa,#d5ae5e);content:""}
.prompt-card:hover{transform:translateY(-3px);border-color:#bdd2e0;box-shadow:0 17px 36px rgba(16,42,67,.09)}
.prompt-card h3{margin-top:16px;font-size:18px;line-height:1.32}
.prompt-excerpt{font-size:12.5px;line-height:1.62;-webkit-line-clamp:4}
.prompt-card-footer{padding-top:15px}
.open-link{min-height:43px;border-radius:10px;box-shadow:0 7px 16px rgba(23,105,170,.15)}
.empty-state{margin-top:16px}
.pagination-bottom{justify-content:center;margin-top:24px;padding-top:17px;border-top:1px solid #e3ebf0}

.prompt-hero{position:relative;overflow:hidden;padding:24px 0 39px;border:0;background:#102a43;color:#f4f8fb}
.prompt-hero-shell{position:relative;z-index:1}
.prompt-hero .breadcrumbs{display:flex;flex-wrap:wrap;align-items:center;gap:10px;color:#9eb3c3;font-size:11px}
.prompt-hero .breadcrumbs a{color:#d1dfeb}
.prompt-hero .breadcrumbs a:hover{color:#f0d58e}
.prompt-hero .breadcrumbs span[aria-current="page"]{color:#f0d58e;font-weight:800}
.prompt-hero-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,332px);align-items:center;gap:48px;padding-top:27px}
.prompt-title-copy{min-width:0}
.prompt-hero-kicker{display:flex;align-items:center;flex-wrap:wrap;gap:10px;color:#e1c477;font-size:10px;font-weight:900;letter-spacing:.13em;text-transform:uppercase}
.prompt-title-copy h1{max-width:850px;margin:16px 0 11px;color:#f7fafc;font-size:clamp(42px,5vw,68px);line-height:.99;letter-spacing:-.06em;text-wrap:balance}
.prompt-title-copy>p{margin:0;color:#bacbd8;font-size:15px;line-height:1.5}
.prompt-hero-meta{gap:7px;margin-top:21px}
.prompt-hero-meta span{padding:6px 10px;border-color:rgba(211,229,240,.2);background:rgba(255,255,255,.065);color:#d7e3eb;font-size:10px}
.prompt-hero-side{display:grid;gap:12px;min-width:0}
.prompt-hero-stamp{position:relative;display:flex;flex-direction:column;justify-content:space-between;min-height:156px;overflow:hidden;padding:14px 17px 12px;border:1px solid rgba(221,235,244,.22);border-radius:17px;background:linear-gradient(145deg,rgba(255,255,255,.105),rgba(255,255,255,.035));box-shadow:inset 0 1px rgba(255,255,255,.1)}
.prompt-hero-stamp>strong{position:relative;z-index:1;color:#f6f9fc;font-size:76px;line-height:.92;letter-spacing:-.085em;font-variant-numeric:tabular-nums}
.prompt-stamp-top,.prompt-stamp-bottom{position:relative;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:9px;color:#b8cad7;font-size:8px;font-weight:850;letter-spacing:.13em}
.prompt-stamp-bottom{padding-top:8px;border-top:1px solid rgba(218,232,242,.16);font-size:9px;letter-spacing:.04em}
.prompt-stamp-bottom span:last-child{overflow:hidden;color:#d3e0e9;text-align:right;text-overflow:ellipsis;white-space:nowrap}
.prompt-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;width:100%}
.prompt-actions .button,.prompt-actions .secondary-button{min-width:0;min-height:45px;padding:0 12px;border-radius:10px;font-size:12px}
.prompt-actions .prompt-copy-primary{border-color:#d7b45e;background:linear-gradient(135deg,#e6c772,#c99b3e);color:#152d42;box-shadow:0 9px 21px rgba(0,0,0,.14)}
.prompt-actions .prompt-copy-primary:hover{border-color:#f1d98d;background:#eed384;color:#102a43}
.prompt-actions .prompt-copy-link{border-color:rgba(224,236,245,.28);background:rgba(255,255,255,.075);color:#edf4f8;box-shadow:none}
.prompt-actions .prompt-copy-link:hover{border-color:rgba(224,236,245,.55);background:rgba(255,255,255,.13);color:#fff}
.prompt-hero :focus-visible{outline:3px solid #f0d58e;outline-offset:3px}

@media(max-width:1120px){
  .library-workspace{grid-template-columns:232px minmax(0,1fr);gap:21px}
  .library-intro-grid{grid-template-columns:minmax(0,1fr) 196px;gap:18px;padding:25px 24px}
  .library-index-panel{min-height:160px;padding:13px}
  .library-index-main strong{font-size:55px}
  .prompt-hero-layout{grid-template-columns:minmax(0,1fr) 286px;gap:30px}
}
@media(max-width:900px){
  .library-workspace{display:block;padding-top:16px}
  .category-sidebar{display:none}
  .library-intro{margin-bottom:16px}
  .library-intro-grid{grid-template-columns:minmax(0,1fr) 210px;min-height:213px;padding:24px}
  .library-intro h1{font-size:clamp(40px,6vw,56px)}
  .catalog-controls{padding:15px}
  .mobile-category-trigger{display:flex;grid-column:1/-1;justify-content:flex-start;min-height:43px}
  .reset-filter-button{grid-column:1/-1;width:100%}
  .prompt-hero-layout{grid-template-columns:minmax(0,1fr) 270px;gap:22px}
}
@media(max-width:720px){
  .library-workspace{padding-top:13px;padding-bottom:60px}
  .library-intro{margin-bottom:13px;border-radius:20px}
  .library-intro-grid{grid-template-columns:1fr;gap:16px;min-height:0;padding:22px 20px 18px}
  .library-eyebrow-row{gap:8px}
  .library-intro .eyebrow{font-size:9px}
  .library-hero-signal{font-size:10px}
  .library-intro h1{margin:12px 0 8px;font-size:clamp(39px,9vw,52px)}
  .library-intro p{display:block;max-width:46ch;font-size:13px;line-height:1.55}
  .library-index-panel{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;min-height:0;padding:11px 13px}
  .library-index-top{grid-column:1/-1}
  .library-index-main{grid-column:1;grid-row:2;display:flex;align-items:baseline;gap:8px}
  .library-index-main strong{font-size:43px}
  .library-index-main span{font-size:10px}
  .library-index-foot{grid-column:2;grid-row:2;align-self:stretch;justify-content:flex-end;gap:10px;padding:0 0 0 12px;border-top:0;border-left:1px solid rgba(218,232,242,.17)}
  .library-index-foot>div:first-child>strong{font-size:16px}
  .catalog-controls{margin-bottom:13px;padding:12px;border-radius:15px}
  .catalog-search-wrap{margin-bottom:12px}
  .catalog-search{height:51px;grid-template-columns:24px minmax(0,1fr) 22px;padding:0 10px}
  .catalog-search input{height:43px;font-size:14px}
  .catalog-search-wrap>p{display:none}
  .mobile-category-trigger{min-height:40px;font-size:11px}
  .filter-select>span{font-size:9px}
  .filter-select select{height:41px;font-size:11px}
  .reset-filter-button{height:38px}
  .active-filters{grid-column:1/-1;margin-top:10px}
  .results-toolbar{align-items:flex-start;flex-wrap:wrap;gap:10px;margin-bottom:12px;padding-bottom:10px}
  .results-line{justify-content:space-between;width:100%;gap:8px}
  .pagination-top{width:100%;justify-content:center}
  .pagination-list{gap:3px}
  .pagination-button{min-width:33px;height:33px;padding:0 7px}
  .prompt-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .prompt-card{min-height:302px;padding:14px;border-radius:14px}
  .prompt-card h3{margin-top:14px;font-size:15px}
  .prompt-excerpt{font-size:11px;line-height:1.55;-webkit-line-clamp:4}
  .prompt-category-meta{font-size:9px}
  .prompt-card-footer{gap:9px;padding-top:13px}
  .prompt-hero{padding:19px 0 27px}
  .prompt-hero-layout{grid-template-columns:1fr;gap:18px;padding-top:21px}
  .prompt-title-copy h1{margin:13px 0 9px;font-size:clamp(38px,9vw,54px)}
  .prompt-hero-meta{margin-top:15px}
  .prompt-hero-side{grid-template-columns:minmax(0,1fr) minmax(190px, .82fr);align-items:stretch;gap:9px}
  .prompt-hero-stamp{min-height:116px;padding:10px 12px}
  .prompt-hero-stamp>strong{font-size:57px}
  .prompt-stamp-top,.prompt-stamp-bottom{font-size:7px}
  .prompt-actions{grid-template-columns:1fr;align-content:center}
  .prompt-actions .button,.prompt-actions .secondary-button{min-height:42px}
  .prompt-layout{padding-top:26px}
}
@media(max-width:520px){
  .library-intro-grid{padding:19px 16px 15px}
  .library-intro h1{font-size:37px}
  .catalog-controls{padding:10px}
  .filter-select select{padding:0 7px;font-size:10px}
  .pagination-list{gap:1px}
  .pagination-button{min-width:30px;height:32px;padding:0 5px;font-size:10px}
  .pagination-ellipsis{width:14px}
  .prompt-grid{grid-template-columns:1fr;gap:10px}
  .prompt-card{min-height:0;padding:16px}
  .prompt-card h3{font-size:17px}
  .prompt-excerpt{-webkit-line-clamp:3}
  .prompt-card-footer{grid-template-columns:minmax(0,1fr) auto;align-items:end}
  .prompt-hero-layout{gap:16px}
  .prompt-title-copy h1{font-size:37px}
  .prompt-hero-kicker{font-size:9px;letter-spacing:.1em}
  .prompt-hero-side{grid-template-columns:minmax(0,1fr) minmax(126px,.72fr)}
  .prompt-hero-stamp{min-height:108px;padding:9px}
  .prompt-hero-stamp>strong{font-size:48px}
  .prompt-stamp-top,.prompt-stamp-bottom{font-size:6.5px;letter-spacing:.08em}
  .prompt-actions{gap:6px}
  .prompt-actions .button,.prompt-actions .secondary-button{min-height:40px;padding:0 7px;font-size:10px}
}
.category-sidebar .category-link{min-height:48px;padding-top:3px;padding-bottom:3px}
.category-sidebar .category-link-copy strong{font-size:12px;line-height:1.18}
.category-sidebar .category-link-copy small{font-size:10px;line-height:1.15}
.pagination-button:focus-visible{outline:3px solid rgba(23,105,170,.32);outline-offset:2px}.active-filters[hidden]{display:none}
/* Minimal heroes, contained reading rail, and single-row desktop filters */
.library-results{container-name:catalog;container-type:inline-size}
.catalog-controls{display:grid;grid-template-columns:minmax(235px,1.35fr) minmax(140px,.85fr) minmax(135px,.8fr) auto;align-items:end;gap:12px;margin:0 0 18px;padding:14px 15px}
.catalog-search-wrap{display:grid;align-content:end;gap:5px;min-width:0;margin:0}
.catalog-search-wrap>label,.filter-select>span{color:#536c81;font-size:10px;font-weight:800;line-height:1.25}
.catalog-search-wrap>p{display:none}
.catalog-search{height:44px;border-radius:10px;box-shadow:none}
.catalog-search input{height:40px;font-size:13px}
.filter-select{min-width:0}
.filter-select select{height:44px;padding:0 10px;font-size:11px}
.reset-filter-button{height:44px;padding:0 13px;font-size:11px}
.mobile-category-trigger{display:none}
.active-filters{grid-column:1/-1;margin:0;padding-top:10px;border-top:1px solid #edf1f4}
.reading-rail{opacity:0;visibility:hidden;transition:opacity .18s ease,visibility .18s ease}
.reader-rail-visible .reading-rail{opacity:1;visibility:visible}
@container catalog (max-width:760px){
  .catalog-controls{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}
  .catalog-search-wrap{grid-column:1/-1}
  .reset-filter-button,.active-filters{grid-column:1/-1}
}
@media(max-width:900px){
  .catalog-controls{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:end;padding:13px}
  .catalog-search-wrap{grid-column:1/-1;margin-bottom:0}
  .mobile-category-trigger{display:flex;grid-column:1/-1;justify-content:flex-start;min-height:42px;margin-bottom:0}
  .filter-select{margin-bottom:0}
  .filter-select select{height:42px}
  .reset-filter-button{grid-column:1/-1;width:100%;height:40px}
  .active-filters{grid-column:1/-1;margin-top:10px}
}

/* Premium spacing for the catalog, prompt hero, and prompt cards */
.library-intro{background:#102a43;background-image:none}
.library-intro:before,.library-intro:after,.prompt-hero:before,.prompt-hero:after{display:none}
.library-intro-grid{grid-template-columns:minmax(0,1fr) minmax(300px,330px);align-items:center;gap:clamp(28px,4vw,54px);min-height:238px;padding:34px 38px}
.library-intro-copy{max-width:780px}
.library-intro h1{max-width:850px;font-size:clamp(48px,5vw,70px);line-height:.99;letter-spacing:-.065em}
.library-intro p{max-width:66ch;font-size:15px;line-height:1.7}
.library-index-panel{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);align-content:initial;gap:12px 0;min-height:174px;padding:17px 19px 15px}
.library-index-top{grid-column:1/-1;align-self:start}
.library-index-main{align-self:stretch;align-content:end;margin:0;padding-right:18px;border-right:1px solid rgba(218,232,242,.18)}
.library-index-main strong{font-size:clamp(54px,5.5vw,68px);line-height:.9}
.library-index-main span,.library-index-foot>div:first-child>span{font-size:11px;line-height:1.35}
.library-index-foot{align-self:stretch;justify-content:flex-start;padding:0 0 2px 19px;border:0}
.library-index-foot>div:first-child{gap:9px}
.library-index-foot>div:first-child>strong{font-size:clamp(25px,3vw,34px);letter-spacing:-.045em;white-space:nowrap}
.library-index-foot>div:first-child>strong small{font-size:15px}

.prompt-hero{background:#102a43;background-image:none}
.prompt-hero-layout{grid-template-columns:minmax(0,1fr) minmax(300px,352px);align-items:center;gap:clamp(34px,5vw,64px)}
.prompt-title-copy{max-width:900px}
.prompt-title-copy h1{max-width:940px;font-size:clamp(48px,5.7vw,78px);line-height:.98;letter-spacing:-.065em}
.prompt-title-copy>p{font-size:16px}
.prompt-hero-stamp{min-height:174px;padding:16px 19px 13px}
.prompt-hero-stamp>strong{align-self:center;text-align:center;font-size:clamp(84px,8vw,108px);line-height:.84;letter-spacing:-.09em}
.prompt-stamp-top,.prompt-stamp-bottom{font-size:9px}
.prompt-stamp-bottom{font-size:10px}
.prompt-actions .button,.prompt-actions .secondary-button{min-height:51px;font-size:13px}

.prompt-card{min-height:330px;padding:23px;border-radius:18px}
.prompt-card-body{position:relative;z-index:0}
.prompt-card h3{margin:18px 0 12px;font-size:20px;line-height:1.28}
.prompt-card h3 a:after{position:absolute;inset:0;z-index:1;border-radius:inherit;content:""}
.prompt-excerpt{font-size:13.5px;line-height:1.68;-webkit-line-clamp:4}
.prompt-category-meta{font-size:10px;line-height:1.4}
.prompt-card-footer{position:relative;z-index:2;gap:13px;padding-top:17px}
.prompt-card-languages{font-size:10px}
.prompt-card-languages .language-links a{min-width:33px;height:30px;font-size:10px}
.open-link{min-height:52px;padding:0 15px;border-radius:11px;font-size:13px;box-shadow:0 9px 20px rgba(23,105,170,.18)}
.open-link span{font-size:17px}
.prompt-card:focus-within{outline:3px solid rgba(23,105,170,.24);outline-offset:3px}

@media(max-width:1120px){
  .library-intro-grid{grid-template-columns:minmax(0,1fr) minmax(290px,320px);gap:25px;padding:29px 27px}
  .library-index-panel{min-height:166px}
  .prompt-hero-layout{grid-template-columns:minmax(0,1fr) minmax(290px,320px);gap:28px}
}
@media(max-width:900px){
  .library-intro-grid{grid-template-columns:minmax(0,1fr) minmax(280px,320px);gap:22px;padding:27px 25px}
  .library-intro h1{font-size:clamp(44px,6vw,62px)}
  .prompt-hero-layout{grid-template-columns:minmax(0,1fr) minmax(280px,310px);gap:24px}
  .prompt-title-copy h1{font-size:clamp(44px,6.2vw,62px)}
}
@media(max-width:720px){
  .library-intro-grid{grid-template-columns:minmax(0,1fr);gap:17px;min-height:0;padding:23px 21px 20px}
  .library-intro h1{font-size:clamp(40px,8.5vw,56px)}
  .library-intro p{max-width:58ch;font-size:14px}
  .library-index-panel{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:auto minmax(76px,auto);align-items:stretch;gap:8px 0;min-height:0;padding:13px 16px}
  .library-index-top{grid-column:1/-1}
  .library-index-main{grid-column:1;grid-row:2;display:grid;align-content:center;gap:2px;padding-right:14px}
  .library-index-main strong{font-size:clamp(44px,9vw,56px)}
  .library-index-foot{grid-column:2;grid-row:2;align-self:stretch;justify-content:flex-start;padding:0 0 0 15px;border-left:1px solid rgba(218,232,242,.18)}
  .library-index-foot>div:first-child{align-content:center;gap:6px}
  .library-index-foot>div:first-child>strong{font-size:clamp(25px,6vw,32px)}
  .prompt-hero-layout{grid-template-columns:minmax(0,1fr);gap:22px;padding-top:23px}
  .prompt-title-copy h1{font-size:clamp(42px,8.5vw,58px)}
  .prompt-hero-side{grid-template-columns:minmax(0,1fr);gap:10px}
  .prompt-hero-stamp{min-height:136px;padding:13px 16px 11px}
  .prompt-hero-stamp>strong{font-size:76px}
  .prompt-actions{grid-template-columns:1fr 1fr;gap:9px}
  .prompt-actions .button,.prompt-actions .secondary-button{min-height:48px;padding:0 10px;font-size:12px}
}
@media(max-width:520px){
  .library-intro-grid{padding:20px 16px 16px}
  .library-intro h1{font-size:38px}
  .library-index-panel{grid-template-rows:auto minmax(70px,auto);padding:12px}
  .library-index-main{padding-right:10px}
  .library-index-main strong{font-size:44px}
  .library-index-main span,.library-index-foot>div:first-child>span{font-size:9px}
  .library-index-foot{padding-left:11px}
  .library-index-foot>div:first-child>strong{font-size:25px}
  .library-index-foot>div:first-child>strong small{font-size:12px}
  .prompt-hero-stamp{min-height:128px}
  .prompt-hero-stamp>strong{font-size:68px}
  .prompt-stamp-top,.prompt-stamp-bottom{font-size:8px}
  .prompt-card{min-height:0;padding:18px}
  .prompt-card h3{font-size:19px}
  .prompt-card-footer{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px}
  .open-link{min-width:132px;min-height:49px;padding:0 12px;font-size:12px}
}

/* Give both catalog metrics matching order and breathing room */
.library-intro-grid{grid-template-columns:minmax(0,1fr) minmax(320px,360px);gap:clamp(28px,4vw,48px)}
.library-index-panel{grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);padding-right:22px;padding-left:22px}
.library-index-main{padding-right:21px}
.library-index-main strong{font-size:clamp(56px,5vw,66px)}
.library-index-foot{padding-left:22px}
.library-index-foot>div:first-child{display:flex;flex-direction:column-reverse;align-items:flex-start;gap:5px;width:100%}
.library-index-foot>div:first-child>span{font-size:11px;line-height:1.35}
.library-index-foot>div:first-child>strong{font-size:clamp(28px,3vw,36px);line-height:.95}
@media(max-width:1120px){
  .library-intro-grid{grid-template-columns:minmax(0,1fr) minmax(300px,330px);gap:24px}
  .library-index-main{padding-right:18px}
  .library-index-foot{padding-left:18px}
}
@media(max-width:900px){
  .library-intro-grid{grid-template-columns:minmax(0,1fr) minmax(290px,320px);gap:22px}
}
@media(max-width:720px){
  .library-index-panel{grid-template-columns:minmax(0,1fr) minmax(0,1fr);padding-right:16px;padding-left:16px}
  .library-index-main{padding-right:15px}
  .library-index-foot{padding-left:16px}
  .library-index-foot>div:first-child{gap:4px}
  .library-index-foot>div:first-child>strong{font-size:clamp(27px,6vw,33px)}
}
@media(max-width:520px){
  .library-index-panel{padding-right:12px;padding-left:12px}
  .library-index-main{padding-right:11px}
  .library-index-foot{padding-left:12px}
  .library-index-foot>div:first-child>strong{font-size:25px}
  .library-index-foot>div:first-child>span{font-size:9px}
}

/* Center each metric pair in its own half instead of leaving a top void */
.library-index-panel{grid-template-rows:auto minmax(0,1fr);align-content:stretch;gap:0}
.library-index-main{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:11px;align-content:normal}
.library-index-main strong{font-size:clamp(62px,5.2vw,72px);line-height:.82}
.library-index-main span{font-size:12px;line-height:1.35}
.library-index-foot{align-items:stretch}
.library-index-foot>div:first-child{height:100%;justify-content:center;gap:9px}
.library-index-foot>div:first-child>strong{font-size:clamp(30px,3vw,38px);line-height:.9}
.library-index-foot>div:first-child>span{font-size:12px;line-height:1.35}
@media(max-width:720px){
  .library-index-main{gap:8px}
  .library-index-main strong{font-size:clamp(52px,9vw,64px)}
  .library-index-main span{font-size:11px}
  .library-index-foot>div:first-child{gap:7px}
  .library-index-foot>div:first-child>strong{font-size:clamp(28px,6vw,34px)}
}
@media(max-width:520px){
  .library-index-main{gap:7px}
  .library-index-main strong{font-size:48px}
  .library-index-main span{font-size:10px}
  .library-index-foot>div:first-child{gap:6px}
  .library-index-foot>div:first-child>strong{font-size:25px}
  .library-index-foot>div:first-child>span{font-size:9px}
}

/* Mobile layout refinements */
@media(max-width:720px){
  .library-intro-grid{grid-template-columns:minmax(0,1fr);align-items:start;align-content:start;gap:18px;min-height:0;padding:24px 20px 18px}
  .library-index-panel{width:100%}
  .library-intro h1{max-width:12ch;margin:11px 0 9px;font-size:clamp(38px,9vw,50px);line-height:.98;letter-spacing:-.06em}
  .library-intro p{max-width:40ch;font-size:14px;line-height:1.55}
  .library-index-panel{grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:auto minmax(104px,auto);align-items:stretch;gap:8px 0;min-height:0;padding:13px 15px}
  .library-index-top{grid-column:1/-1}
  .library-index-main{grid-column:1;grid-row:2;display:grid;align-content:center;gap:9px;padding:0 14px 0 0;border-right:1px solid rgba(218,232,242,.18)}
  .library-index-main strong{font-size:clamp(48px,13vw,58px);line-height:.84}
  .library-index-main span{font-size:11px;line-height:1.3}
  .library-index-foot{grid-column:2;grid-row:2;align-self:stretch;display:flex;align-items:stretch;justify-content:flex-start;padding:0 0 0 14px;border:0}
  .library-index-foot>div:first-child{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:9px;width:100%;height:auto}
  .library-index-foot>div:first-child>strong{order:-1;font-size:clamp(30px,8vw,38px);line-height:.84;letter-spacing:-.045em}
  .library-index-foot>div:first-child>span{font-size:11px;line-height:1.3}
  .catalog-controls{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;padding:13px}
  .catalog-search-wrap,.mobile-category-trigger,.reset-filter-button,.active-filters{grid-column:1/-1}
  .mobile-category-trigger,.filter-select select,.reset-filter-button{min-height:44px}
  .prompt-grid{grid-template-columns:minmax(0,1fr);gap:12px}
  .prompt-card{min-height:0;padding:19px;border-radius:16px}
  .prompt-card h3{margin-top:14px;font-size:19px;line-height:1.3}
  .prompt-excerpt{font-size:13px;line-height:1.6;-webkit-line-clamp:4}
  .prompt-category-meta{font-size:10px}
  .prompt-card-footer{gap:12px;padding-top:15px}
  .open-link{min-height:48px;padding:0 14px;font-size:12px}
  .prompt-hero{padding:20px 0 25px}
  .prompt-hero .breadcrumbs{gap:6px;font-size:10px;line-height:1.5}
  .prompt-hero-layout{grid-template-columns:minmax(0,1fr);gap:18px;padding-top:20px}
  .prompt-title-copy h1{max-width:15ch;margin:12px 0 9px;font-size:clamp(37px,9vw,52px);line-height:1;letter-spacing:-.06em;overflow-wrap:anywhere}
  .prompt-title-copy>p{font-size:14px}
  .prompt-hero-meta{gap:6px;margin-top:14px}
  .prompt-hero-side{grid-template-columns:minmax(0,1fr) minmax(144px,.82fr);align-items:stretch;gap:8px}
  .prompt-hero-stamp{min-height:120px;padding:11px 12px}
  .prompt-hero-stamp>strong{font-size:clamp(48px,13vw,60px);line-height:.86}
  .prompt-stamp-top,.prompt-stamp-bottom{font-size:7px;letter-spacing:.08em}
  .prompt-stamp-bottom{gap:5px}
  .prompt-actions{grid-template-columns:minmax(0,1fr);align-content:center;gap:7px}
  .prompt-actions .button,.prompt-actions .secondary-button{min-width:0;min-height:44px;padding:0 9px;font-size:11px}
  .prompt-page .reading-tools{display:flex;justify-content:space-between;gap:4px;width:100%;padding:4px}
  .prompt-page .reading-font-controls{gap:1px}
  .prompt-page .reading-control,.prompt-page .reading-option{min-width:32px;height:36px;padding:0 6px;font-size:10px}
}
@media(max-width:520px){
  .library-intro-grid{padding:20px 16px 16px}
  .library-intro h1{font-size:clamp(36px,10vw,45px)}
  .library-intro p{max-width:37ch;font-size:13px}
  .library-index-panel{grid-template-rows:auto minmax(100px,auto);padding:12px}
  .library-index-main{gap:8px;padding-right:11px}
  .library-index-main strong{font-size:clamp(46px,13vw,54px)}
  .library-index-main span{font-size:10px}
  .library-index-foot{padding-left:11px}
  .library-index-foot>div:first-child{gap:8px}
  .library-index-foot>div:first-child>strong{font-size:clamp(29px,8vw,35px)}
  .library-index-foot>div:first-child>span{font-size:10px}
  .catalog-controls{padding:11px;border-radius:15px}
  .filter-select>span{font-size:10px}
  .filter-select select{font-size:11px}
  .prompt-card{padding:17px}
  .prompt-card-footer{grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px}
  .open-link{min-width:124px;min-height:46px;padding:0 11px}
  .prompt-title-copy h1{max-width:14ch;font-size:clamp(34px,10vw,45px)}
  .prompt-hero-side{grid-template-columns:minmax(0,1fr) minmax(136px,.82fr);gap:7px}
  .prompt-hero-stamp{min-height:112px;padding:10px}
  .prompt-hero-stamp>strong{font-size:clamp(44px,13vw,54px)}
  .prompt-stamp-top,.prompt-stamp-bottom{font-size:6.5px}
  .prompt-actions{gap:6px}
  .prompt-actions .button,.prompt-actions .secondary-button{min-height:42px;padding:0 7px;font-size:10px}
  .prompt-page .reading-control,.prompt-page .reading-option{min-width:30px;padding:0 5px;font-size:9px}
}


/* PromptLibrary.pro - stronger catalog navigation hierarchy */
@media(min-width:961px){
  .library-workspace{
    grid-template-columns:320px minmax(0,1fr);
    gap:34px;
  }

  .category-sidebar{
    top:92px;
    max-height:calc(100dvh - 112px);
    padding:18px;
    border-color:#d6e2ea;
    border-radius:22px;
    box-shadow:0 16px 42px rgba(16,42,67,.07);
  }

  .category-sidebar-head{
    margin-bottom:14px;
    padding:2px 5px 8px;
    border-bottom:1px solid #edf2f5;
  }

  .category-sidebar-head .eyebrow{
    font-size:12px;
    letter-spacing:.14em;
  }

  .category-sidebar-head>button{
    min-height:32px;
    padding:4px 2px;
    font-size:12px;
  }

  .category-navigation{
    gap:6px;
  }

  .category-sidebar .category-link{
    grid-template-columns:40px minmax(0,1fr) 18px;
    gap:11px;
    min-height:68px;
    padding:9px 10px;
    border-radius:14px;
  }

  .category-sidebar .category-link:hover{
    border-color:#e0e9ef;
    background:#f6fafc;
  }

  .category-sidebar .category-link.active,
  .category-sidebar .category-link[aria-pressed="true"]{
    border-color:#bfd8e8;
    background:linear-gradient(135deg,#eef7fc,#f7fbfd);
    box-shadow:0 8px 20px rgba(23,105,170,.07);
  }

  .category-sidebar .category-order{
    width:38px;
    height:38px;
    border-radius:11px;
    font-size:12px;
  }

  .category-sidebar .category-link-copy{
    gap:4px;
  }

  .category-sidebar .category-link-copy strong{
    overflow:visible;
    font-size:14px;
    line-height:1.28;
    text-overflow:clip;
  }

  .category-sidebar .category-link-copy small{
    font-size:11.5px;
    line-height:1.3;
  }

  .category-sidebar .category-status{
    font-size:13px;
  }

  .catalog-search-wrap>label,
  .filter-select>span{
    font-size:11px;
  }

  .catalog-search input{
    font-size:14px;
  }

  .filter-select select,
  .reset-filter-button{
    font-size:12px;
  }

  .results-line{
    font-size:13px;
  }

  .results-line strong{
    font-size:17px;
  }

  .prompt-card h3{
    font-size:19px;
  }

  .prompt-excerpt{
    font-size:13px;
  }

  .prompt-category-meta{
    font-size:10.5px;
  }
}

@media(min-width:961px) and (max-width:1180px){
  .library-workspace{
    grid-template-columns:285px minmax(0,1fr);
    gap:26px;
  }

  .category-sidebar{
    padding:15px;
  }

  .category-sidebar .category-link{
    grid-template-columns:36px minmax(0,1fr) 16px;
    gap:9px;
    min-height:64px;
    padding:8px;
  }

  .category-sidebar .category-order{
    width:34px;
    height:34px;
  }

  .category-sidebar .category-link-copy strong{
    font-size:13px;
  }

  .category-sidebar .category-link-copy small{
    font-size:11px;
  }
}

@media(max-width:960px){
  .library-workspace{
    display:block;
  }

  .category-sidebar{
    display:none;
  }

  .mobile-category-trigger{
    display:flex;
    justify-content:flex-start;
    min-height:46px;
  }

  .catalog-controls{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  }

  .catalog-search-wrap,
  .mobile-category-trigger,
  .active-filters{
    grid-column:1/-1;
  }

  .category-navigation-dialog .category-link{
    min-height:74px;
    padding:11px 12px;
  }

  .category-navigation-dialog .category-link-copy strong{
    font-size:15px;
  }

  .category-navigation-dialog .category-link-copy small{
    font-size:12px;
  }
}

@media(max-width:520px){
  .category-navigation-dialog .category-link{
    min-height:70px;
  }

  .category-navigation-dialog .category-link-copy strong{
    font-size:14px;
  }

  .category-navigation-dialog .category-link-copy small{
    font-size:11px;
  }
}


/* Prompt detail v3 - premium, content-first presentation */
.prompt-page{
  background:#f7f9fb;
}

.prompt-page .prompt-hero{
  position:relative;
  overflow:hidden;
  padding:26px 0 42px;
  border:0;
  background:
    radial-gradient(circle at 82% 18%,rgba(73,142,190,.16),transparent 26%),
    radial-gradient(circle at 16% 115%,rgba(203,164,81,.11),transparent 34%),
    linear-gradient(135deg,#0d2942 0%,#102f4b 52%,#0e2941 100%);
  color:#f5f8fb;
}

.prompt-page .prompt-hero:after{
  position:absolute;
  right:-90px;
  bottom:-180px;
  width:480px;
  height:480px;
  border:1px solid rgba(255,255,255,.05);
  border-radius:50%;
  box-shadow:0 0 0 70px rgba(255,255,255,.018),0 0 0 140px rgba(255,255,255,.012);
  content:"";
  pointer-events:none;
}

.prompt-page .prompt-hero-shell{
  position:relative;
  z-index:1;
}

.prompt-page .prompt-hero .breadcrumbs{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:9px;
  min-height:28px;
  color:#91a8ba;
  font-size:12px;
  line-height:1.4;
}

.prompt-page .prompt-hero .breadcrumbs a{
  color:#c8d8e4;
  transition:color .16s;
}

.prompt-page .prompt-hero .breadcrumbs a:hover{
  color:#fff;
}

.prompt-page .prompt-hero .breadcrumbs span[aria-current="page"]{
  color:#e9c76f;
  font-weight:850;
}

.prompt-page .prompt-hero-layout{
  display:grid;
  grid-template-columns:minmax(0,1.6fr) minmax(310px,.72fr);
  align-items:stretch;
  gap:64px;
  padding-top:34px;
}

.prompt-page .prompt-title-copy{
  display:flex;
  min-width:0;
  flex-direction:column;
  justify-content:center;
  padding:8px 0 4px;
}

.prompt-page .prompt-hero-kicker{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:11px;
  margin-bottom:17px;
  color:#e9c76f;
  font-size:11px;
  font-weight:900;
  letter-spacing:.13em;
  text-transform:uppercase;
}

.prompt-page .prompt-hero-kicker span+span{
  padding-left:11px;
  border-left:1px solid rgba(228,196,120,.38);
  color:#aac0d0;
}

.prompt-page .prompt-title-copy h1{
  max-width:18ch;
  margin:0;
  color:#fff;
  font-size:clamp(46px,4.8vw,72px);
  font-weight:850;
  line-height:.98;
  letter-spacing:-.06em;
  text-wrap:balance;
  overflow-wrap:anywhere;
}

.prompt-page .prompt-hero-taxonomy{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  margin-top:18px;
  color:#b9cbd8;
  font-size:14px;
  font-weight:700;
  line-height:1.5;
}

.prompt-page .prompt-hero-taxonomy span:nth-child(2){
  color:#e0bd68;
}

.prompt-page .prompt-hero-meta{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin-top:20px;
}

.prompt-page .prompt-hero-meta span{
  display:inline-flex;
  align-items:center;
  min-height:31px;
  padding:5px 10px;
  border:1px solid rgba(202,220,232,.18);
  border-radius:999px;
  background:rgba(255,255,255,.055);
  color:#c5d4df;
  font-size:11px;
  font-weight:800;
  backdrop-filter:blur(8px);
}

.prompt-page .prompt-hero-meta .prompt-status-chip{
  border-color:rgba(72,171,137,.26);
  background:rgba(50,145,113,.12);
  color:#bce6d5;
}

.prompt-page .prompt-actions{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
  margin-top:27px;
}

.prompt-page .prompt-actions .button,
.prompt-page .prompt-actions .secondary-button{
  min-height:48px;
  padding:0 20px;
  border-radius:12px;
  font-size:13px;
  font-weight:900;
}

.prompt-page .prompt-actions .button{
  border-color:#e0b850;
  background:#e0b850;
  color:#102a43;
  box-shadow:0 12px 28px rgba(224,184,80,.18);
}

.prompt-page .prompt-actions .button:hover{
  border-color:#edc869;
  background:#edc869;
}

.prompt-page .prompt-actions .secondary-button{
  border-color:rgba(207,224,235,.22);
  background:rgba(255,255,255,.075);
  color:#f5f8fb;
}

.prompt-page .prompt-actions .secondary-button:hover{
  border-color:rgba(207,224,235,.38);
  background:rgba(255,255,255,.12);
}

.prompt-source-action{
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:48px;
  padding:0 10px;
  color:#b9cad7;
  font-size:12px;
  font-weight:800;
  transition:color .16s;
}

.prompt-source-action:hover{
  color:#fff;
}

.prompt-profile-card{
  align-self:stretch;
  overflow:hidden;
  min-width:0;
  padding:21px;
  border:1px solid rgba(205,223,235,.2);
  border-radius:20px;
  background:linear-gradient(145deg,rgba(255,255,255,.09),rgba(255,255,255,.045));
  box-shadow:0 24px 60px rgba(4,19,31,.18);
  backdrop-filter:blur(12px);
}

.prompt-profile-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
  padding-bottom:17px;
  border-bottom:1px solid rgba(210,226,237,.15);
  color:#9fb5c5;
  font-size:10px;
  font-weight:900;
  letter-spacing:.14em;
  text-transform:uppercase;
}

.prompt-profile-number{
  color:#f2d17c;
  font-size:30px;
  font-weight:900;
  line-height:.9;
  letter-spacing:-.05em;
  font-variant-numeric:tabular-nums;
}

.prompt-profile-grid{
  display:grid;
  gap:0;
  margin:4px 0 0;
}

.prompt-profile-grid>div{
  display:grid;
  grid-template-columns:98px minmax(0,1fr);
  gap:15px;
  align-items:start;
  padding:13px 0;
  border-bottom:1px solid rgba(210,226,237,.1);
}

.prompt-profile-grid>div:last-child{
  border-bottom:0;
  padding-bottom:2px;
}

.prompt-profile-grid dt{
  color:#8fa7b8;
  font-size:10px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.06em;
}

.prompt-profile-grid dd{
  min-width:0;
  margin:0;
  color:#f1f6f9;
  font-size:12px;
  font-weight:800;
  line-height:1.42;
  overflow-wrap:anywhere;
}

.prompt-page .prompt-layout{
  display:grid;
  grid-template-columns:272px minmax(0,900px);
  justify-content:center;
  align-items:start;
  gap:52px;
  padding-top:44px;
  padding-bottom:68px;
}

.prompt-page .prompt-sidebar{
  position:sticky;
  top:94px;
  align-self:start;
  max-height:calc(100dvh - 112px);
  overflow-y:auto;
  padding-right:4px;
  scrollbar-width:thin;
  scrollbar-color:#c4d2dc transparent;
}

.prompt-sidebar-utility{
  display:grid;
  gap:13px;
  margin-bottom:18px;
  padding:16px;
  border:1px solid #dce6ed;
  border-radius:16px;
  background:#fff;
  box-shadow:0 8px 24px rgba(16,42,67,.04);
}

.prompt-sidebar-utility>strong{
  color:#102a43;
  font-size:11px;
  font-weight:900;
  letter-spacing:.1em;
  text-transform:uppercase;
}

.prompt-sidebar-language{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:7px;
}

.prompt-sidebar-language a{
  display:grid;
  place-items:center;
  min-height:38px;
  border:1px solid #dde7ed;
  border-radius:10px;
  background:#f8fafc;
  color:#61788c;
  font-size:11px;
  font-weight:900;
}

.prompt-sidebar-language a.active-lang{
  border-color:#b8d3e4;
  background:#edf6fb;
  color:#1769aa;
}

.prompt-sidebar-utility .source-link{
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:42px;
  margin:0;
  padding:0 2px;
  border-top:1px solid #edf2f5;
  padding-top:12px;
  color:#1769aa;
  font-size:11px;
  font-weight:850;
}

.prompt-page .toc{
  display:grid;
  gap:2px;
  margin:0;
  padding:15px 10px 15px 12px;
  border:1px solid #dfe7ed;
  border-radius:16px;
  background:rgba(255,255,255,.72);
}

.prompt-page .toc>strong{
  margin:0 8px 8px;
  color:#526b80;
  font-size:10px;
  font-weight:900;
  letter-spacing:.11em;
  text-transform:uppercase;
}

.prompt-page .toc a{
  position:relative;
  display:block;
  padding:8px 9px 8px 12px;
  border-radius:9px;
  color:#61788c;
  font-size:11.5px;
  line-height:1.35;
  transition:background .15s,color .15s;
}

.prompt-page .toc a:hover{
  background:#eef5f9;
  color:#1769aa;
}

.prompt-page .toc a.active{
  background:#eaf4fa;
  color:#155f99;
  font-weight:850;
}

.prompt-page .toc a.active:before{
  position:absolute;
  top:9px;
  bottom:9px;
  left:0;
  width:2px;
  border-radius:2px;
  background:#1769aa;
  content:"";
}

.prompt-page .toc .toc-3{
  padding-left:22px;
  font-size:11px;
}

.prompt-page .markdown-body{
  width:100%;
  max-width:900px;
  padding:30px clamp(24px,3.4vw,42px) 46px;
  border:1px solid #dfe7ed;
  border-radius:20px;
  background:#fff;
  box-shadow:0 12px 36px rgba(16,42,67,.045);
  color:#263f55;
  font-size:var(--reading-font-size,16px);
  line-height:1.72;
}

.prompt-page .markdown-body>.reading-tools{
  position:sticky;
  top:88px;
  z-index:12;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  width:100%;
  margin:-12px 0 34px;
  padding:7px;
  border:1px solid #dde7ed;
  border-radius:13px;
  background:rgba(255,255,255,.94);
  box-shadow:0 8px 24px rgba(16,42,67,.06);
  backdrop-filter:blur(12px);
}

.prompt-page .reading-font-controls{
  display:flex;
  gap:4px;
}

.prompt-page .reading-control,
.prompt-page .reading-option{
  min-width:38px;
  height:38px;
  padding:0 10px;
  border:1px solid transparent;
  border-radius:9px;
  background:transparent;
  color:#526b80;
  font-size:11px;
  font-weight:850;
  cursor:pointer;
}

.prompt-page .reading-control:hover,
.prompt-page .reading-option:hover{
  background:#f0f5f8;
  color:#1769aa;
}

.prompt-page .reading-option[aria-pressed="true"]{
  border-color:#c9dce8;
  background:#edf6fb;
  color:#1769aa;
}

.prompt-page .markdown-body h1,
.prompt-page .markdown-body h2,
.prompt-page .markdown-body h3,
.prompt-page .markdown-body h4{
  scroll-margin-top:145px;
  color:#102a43;
  text-wrap:balance;
}

.prompt-page .markdown-body h1{
  margin:0 0 24px;
  font-size:clamp(30px,3vw,39px);
  line-height:1.12;
  letter-spacing:-.04em;
}

.prompt-page .markdown-body h2{
  margin-top:52px;
  margin-bottom:18px;
  padding-top:4px;
  font-size:27px;
  line-height:1.18;
  letter-spacing:-.035em;
}

.prompt-page .markdown-body h3{
  margin-top:34px;
  margin-bottom:13px;
  font-size:20px;
  line-height:1.25;
}

.prompt-page .markdown-body p{
  max-width:74ch;
  margin:0 0 18px;
}

.prompt-page .markdown-body ul,
.prompt-page .markdown-body ol{
  max-width:74ch;
  margin:0 0 22px;
  padding-left:25px;
}

.prompt-page .markdown-body li{
  margin:7px 0;
}

.prompt-page .markdown-body blockquote{
  max-width:74ch;
  margin:24px 0;
  padding:17px 20px;
  border-left:3px solid #d3ad57;
  border-radius:0 12px 12px 0;
  background:#fbf8ef;
  color:#3f5364;
}

.prompt-page .markdown-body hr{
  margin:42px 0;
  border:0;
  border-top:1px solid #e3eaf0;
}

.prompt-page .code-block{
  margin:24px 0 28px;
  border-color:#d8e2e9;
  border-radius:14px;
  box-shadow:0 8px 22px rgba(16,42,67,.035);
}

.prompt-page .table-wrap{
  margin:24px 0 30px;
  border:1px solid #dfe7ed;
  border-radius:14px;
  background:#fff;
}

.prompt-page .prev-next{
  gap:14px;
  padding-top:0;
  padding-bottom:72px;
}

.prompt-page .prev-next a{
  min-height:100px;
  padding:20px 22px;
  border:1px solid #dce6ed;
  border-radius:16px;
  background:#fff;
  box-shadow:0 8px 24px rgba(16,42,67,.035);
}

.prompt-page .prev-next a:hover{
  border-color:#bdd2e0;
  box-shadow:0 14px 30px rgba(16,42,67,.07);
}

@media(max-width:1100px){
  .prompt-page .prompt-hero-layout{
    grid-template-columns:minmax(0,1.35fr) minmax(285px,.75fr);
    gap:36px;
  }

  .prompt-page .prompt-title-copy h1{
    font-size:clamp(44px,5.6vw,64px);
  }

  .prompt-page .prompt-layout{
    grid-template-columns:240px minmax(0,1fr);
    gap:30px;
  }
}

@media(max-width:900px){
  .prompt-page .prompt-hero{
    padding:23px 0 31px;
  }

  .prompt-page .prompt-hero-layout{
    grid-template-columns:1fr;
    gap:24px;
    padding-top:25px;
  }

  .prompt-page .prompt-title-copy{
    padding:0;
  }

  .prompt-page .prompt-title-copy h1{
    max-width:16ch;
    font-size:clamp(42px,7vw,60px);
  }

  .prompt-page .prompt-profile-card{
    display:grid;
    grid-template-columns:160px minmax(0,1fr);
    gap:18px;
    padding:17px 19px;
  }

  .prompt-page .prompt-profile-head{
    display:grid;
    align-content:space-between;
    border-right:1px solid rgba(210,226,237,.15);
    border-bottom:0;
    padding:0 18px 0 0;
  }

  .prompt-page .prompt-profile-number{
    font-size:44px;
  }

  .prompt-page .prompt-profile-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:0 18px;
    margin:0;
  }

  .prompt-page .prompt-profile-grid>div{
    grid-template-columns:1fr;
    gap:3px;
    padding:7px 0;
  }

  .prompt-page .prompt-layout{
    grid-template-columns:1fr;
    gap:18px;
    padding-top:28px;
  }

  .prompt-page .prompt-sidebar{
    position:static;
    max-height:none;
    overflow:visible;
    padding:0;
  }

  .prompt-page .prompt-sidebar-utility{
    grid-template-columns:auto minmax(150px,220px) auto;
    align-items:center;
    gap:14px;
    margin-bottom:0;
  }

  .prompt-page .prompt-sidebar-utility .source-link{
    justify-content:flex-end;
    min-height:38px;
    padding:0;
    border:0;
  }

  .prompt-page .toc{
    display:none;
  }

  .prompt-page .markdown-body{
    max-width:none;
  }
}

@media(max-width:640px){
  .prompt-page .prompt-hero{
    padding:18px 0 25px;
  }

  .prompt-page .prompt-hero .breadcrumbs{
    gap:6px;
    font-size:10px;
  }

  .prompt-page .prompt-hero-layout{
    gap:18px;
    padding-top:20px;
  }

  .prompt-page .prompt-hero-kicker{
    gap:8px;
    margin-bottom:13px;
    font-size:9px;
    letter-spacing:.1em;
  }

  .prompt-page .prompt-title-copy h1{
    max-width:15ch;
    font-size:clamp(36px,10.5vw,48px);
    line-height:1;
  }

  .prompt-page .prompt-hero-taxonomy{
    margin-top:13px;
    font-size:12px;
  }

  .prompt-page .prompt-hero-meta{
    margin-top:15px;
  }

  .prompt-page .prompt-hero-meta span{
    min-height:28px;
    padding:4px 8px;
    font-size:9.5px;
  }

  .prompt-page .prompt-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8px;
    margin-top:20px;
  }

  .prompt-page .prompt-actions .button,
  .prompt-page .prompt-actions .secondary-button{
    min-height:44px;
    padding:0 10px;
    font-size:11px;
  }

  .prompt-page .prompt-source-action{
    grid-column:1/-1;
    justify-content:flex-start;
    min-height:34px;
    padding:0 2px;
    font-size:10px;
  }

  .prompt-page .prompt-profile-card{
    display:block;
    padding:15px;
    border-radius:16px;
  }

  .prompt-page .prompt-profile-head{
    display:flex;
    border-right:0;
    border-bottom:1px solid rgba(210,226,237,.15);
    padding:0 0 12px;
  }

  .prompt-page .prompt-profile-number{
    font-size:28px;
  }

  .prompt-page .prompt-profile-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:0 14px;
    margin-top:5px;
  }

  .prompt-page .prompt-profile-grid>div{
    padding:9px 0;
  }

  .prompt-page .prompt-profile-grid>div:nth-child(2){
    grid-column:1/-1;
  }

  .prompt-page .prompt-sidebar-utility{
    grid-template-columns:1fr auto;
    gap:10px;
    padding:13px;
  }

  .prompt-page .prompt-sidebar-utility>strong{
    grid-column:1/-1;
  }

  .prompt-page .prompt-sidebar-language{
    min-width:116px;
  }

  .prompt-page .prompt-sidebar-utility .source-link{
    justify-content:flex-end;
  }

  .prompt-page .markdown-body{
    padding:18px 17px 34px;
    border-radius:16px;
  }

  .prompt-page .markdown-body>.reading-tools{
    position:static;
    flex-wrap:wrap;
    margin:0 0 25px;
    padding:5px;
  }

  .prompt-page .reading-option{
    flex:1 1 auto;
  }

  .prompt-page .markdown-body h1{
    font-size:29px;
  }

  .prompt-page .markdown-body h2{
    margin-top:42px;
    font-size:24px;
  }

  .prompt-page .markdown-body h3{
    font-size:19px;
  }

  .prompt-page .prev-next{
    grid-template-columns:1fr;
    padding-bottom:48px;
  }

  .prompt-page .next-link{
    text-align:left;
  }
}

@media(max-width:420px){
  .prompt-page .prompt-title-copy h1{
    font-size:clamp(33px,10.5vw,42px);
  }

  .prompt-page .prompt-profile-grid{
    grid-template-columns:1fr;
  }

  .prompt-page .prompt-profile-grid>div:nth-child(2){
    grid-column:auto;
  }

  .prompt-page .prompt-sidebar-utility{
    grid-template-columns:1fr;
  }

  .prompt-page .prompt-sidebar-utility .source-link{
    justify-content:flex-start;
  }
}


/* Category sidebar containment fix - content must never escape the card */
@media(min-width:961px){
  .category-sidebar{
    max-height:none !important;
    height:auto;
    overflow:visible !important;
  }

  .category-sidebar .category-navigation{
    overflow:visible;
    padding-bottom:2px;
  }

  .category-sidebar .category-link{
    min-height:62px;
  }
}

@media(min-width:961px) and (max-height:820px){
  .category-sidebar{
    position:relative;
    top:auto;
  }
}


/* Premium prompt cards and balanced profile panel */
.prompt-card{
  position:relative;
  overflow:hidden;
  min-height:348px;
  padding:21px 21px 20px;
  border:1px solid #d9e4eb;
  border-radius:19px;
  background:
    linear-gradient(180deg,rgba(255,255,255,1) 0%,rgba(252,254,255,1) 100%);
  box-shadow:0 10px 30px rgba(16,42,67,.045);
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;
}

.prompt-card:before{
  position:absolute;
  top:0;
  left:21px;
  width:42px;
  height:3px;
  border-radius:0 0 4px 4px;
  background:linear-gradient(90deg,#1769aa 0%,#3a8fc7 48%,#d0a94f 100%);
  content:"";
}

.prompt-card:hover{
  transform:translateY(-4px);
  border-color:#b9d0df;
  box-shadow:0 20px 46px rgba(16,42,67,.095);
}

.prompt-card-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-height:28px;
}

.prompt-card .prompt-id{
  color:#1769aa;
  font-size:10.5px;
  font-weight:900;
  letter-spacing:.07em;
}

.prompt-card .status-dot{
  padding:5px 8px;
  border:1px solid #d9ebe4;
  border-radius:999px;
  background:#f3faf7;
  color:#3d725f;
  font-size:9.5px;
  font-weight:850;
}

.prompt-card .status-dot:before{
  width:6px;
  height:6px;
  box-shadow:none;
}

.prompt-card-body{
  display:flex;
  min-width:0;
  flex:1 1 auto;
  flex-direction:column;
}

.prompt-card h3{
  margin:20px 0 12px;
  color:#102a43;
  font-size:21px;
  font-weight:850;
  line-height:1.2;
  letter-spacing:-.035em;
  text-wrap:balance;
}

.prompt-card h3 a{
  transition:color .16s ease;
}

.prompt-card h3 a:hover{
  color:#1769aa;
}

.prompt-card .prompt-excerpt{
  display:-webkit-box;
  overflow:hidden;
  min-height:72px;
  margin:0;
  color:#657c90;
  font-size:13px;
  line-height:1.65;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:3;
}

.prompt-card .prompt-category-meta{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:6px;
  margin-top:18px;
  padding-top:14px;
  border-top:1px solid #edf2f5;
  color:#5f768a;
  font-size:10.5px;
  font-weight:800;
  line-height:1.4;
}

.prompt-card .prompt-category-meta span:first-child{
  color:#274d6b;
}

.prompt-card .prompt-category-meta span:nth-child(2){
  color:#c39a3a;
  font-size:13px;
}

.prompt-card-footer{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:13px;
  margin-top:auto;
  padding-top:18px;
}

.prompt-card-languages{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  color:#718599;
  font-size:10px;
  font-weight:850;
}

.prompt-card .language-links{
  display:flex;
  gap:6px;
}

.prompt-card .language-links a{
  min-width:34px;
  height:31px;
  border-radius:9px;
  border-color:#d8e5ed;
  background:#fff;
  color:#637b90;
}

.prompt-card .language-links a[aria-current="page"]{
  border-color:#bcd8e9;
  background:#edf7fc;
  color:#1769aa;
}

.prompt-card .open-link{
  display:flex;
  align-items:center;
  justify-content:space-between;
  width:100%;
  min-height:50px;
  padding:0 15px;
  border-radius:12px;
  background:linear-gradient(135deg,#1769aa,#247bb8);
  color:#fff;
  font-size:12px;
  font-weight:900;
  box-shadow:0 10px 22px rgba(23,105,170,.18);
  transition:transform .16s ease,box-shadow .16s ease,background .16s ease;
}

.prompt-card .open-link:hover{
  transform:translateY(-1px);
  background:linear-gradient(135deg,#145f99,#2174ad);
  box-shadow:0 13px 26px rgba(23,105,170,.24);
}

.prompt-card .open-link span{
  font-size:16px;
}

.prompt-page .prompt-profile-card{
  display:grid;
  grid-template-rows:auto 1fr;
  align-self:stretch;
  padding:22px;
}

.prompt-page .prompt-profile-head{
  align-items:center;
  padding-bottom:18px;
}

.prompt-page .prompt-profile-number{
  display:grid;
  place-items:center;
  min-width:76px;
  min-height:48px;
  padding:0 12px;
  border:1px solid rgba(231,199,111,.24);
  border-radius:13px;
  background:rgba(232,197,105,.09);
  color:#f2d17c;
  font-size:31px;
}

.prompt-page .prompt-profile-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:0;
  margin:8px 0 0;
  align-content:stretch;
}

.prompt-page .prompt-profile-grid>div{
  display:grid;
  grid-template-columns:1fr;
  align-content:start;
  gap:6px;
  min-width:0;
  padding:16px 14px;
  border-bottom:1px solid rgba(210,226,237,.1);
}

.prompt-page .prompt-profile-grid>div:nth-child(odd){
  padding-left:0;
  border-right:1px solid rgba(210,226,237,.1);
}

.prompt-page .prompt-profile-grid>div:nth-child(even){
  padding-right:0;
  padding-left:18px;
}

.prompt-page .prompt-profile-grid>div:nth-child(2){
  grid-column:1/-1;
  padding-right:0;
  padding-left:0;
  border-right:0;
}

.prompt-page .prompt-profile-grid>div:nth-last-child(-n+2){
  border-bottom:0;
}

.prompt-page .prompt-profile-grid dt{
  color:#8fa8ba;
  font-size:9.5px;
  font-weight:900;
  letter-spacing:.1em;
}

.prompt-page .prompt-profile-grid dd{
  color:#f5f8fb;
  font-size:13px;
  font-weight:850;
  line-height:1.4;
}

@media(max-width:1180px){
  .prompt-card{
    min-height:332px;
    padding:19px;
  }

  .prompt-card h3{
    font-size:19px;
  }

  .prompt-card .prompt-excerpt{
    min-height:66px;
    font-size:12.5px;
  }
}

@media(max-width:900px){
  .prompt-page .prompt-profile-card{
    grid-template-columns:150px minmax(0,1fr);
    grid-template-rows:auto;
    gap:18px;
  }

  .prompt-page .prompt-profile-grid{
    margin:0;
  }
}

@media(max-width:640px){
  .prompt-card{
    min-height:0;
    padding:18px;
  }

  .prompt-card h3{
    margin-top:17px;
    font-size:19px;
  }

  .prompt-card .prompt-excerpt{
    min-height:0;
    -webkit-line-clamp:3;
  }

  .prompt-page .prompt-profile-card{
    display:block;
  }

  .prompt-page .prompt-profile-grid{
    grid-template-columns:1fr 1fr;
    margin-top:6px;
  }

  .prompt-page .prompt-profile-grid>div{
    padding:12px 10px;
  }

  .prompt-page .prompt-profile-grid>div:nth-child(odd){
    padding-left:0;
  }

  .prompt-page .prompt-profile-grid>div:nth-child(even){
    padding-right:0;
    padding-left:12px;
  }

  .prompt-page .prompt-profile-grid>div:nth-child(2){
    padding-left:0;
  }
}

@media(max-width:420px){
  .prompt-page .prompt-profile-grid{
    grid-template-columns:1fr;
  }

  .prompt-page .prompt-profile-grid>div,
  .prompt-page .prompt-profile-grid>div:nth-child(odd),
  .prompt-page .prompt-profile-grid>div:nth-child(even),
  .prompt-page .prompt-profile-grid>div:nth-child(2){
    grid-column:auto;
    padding:12px 0;
    border-right:0;
    border-bottom:1px solid rgba(210,226,237,.1);
  }

  .prompt-page .prompt-profile-grid>div:last-child{
    border-bottom:0;
  }
}
