/* ปรับกรอบเดิมให้ทำงานเป็นเว็บไซต์บนจอใหญ่ โดยคงประสบการณ์ mobile-first */
.app-container { max-width: 1120px; }
#cardsList.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: 0; }
#cardsList { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.75rem; }
#cardsList > button { grid-column: 1 / -1; }
@media (min-width: 720px) {
    #cardsList { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
    #cardsList { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.filter-select {
    appearance: none; min-height: 40px; border: 1px solid #fbcfe8; border-radius: 12px;
    background-color: #fff; color: #374151; padding: 0.55rem 2rem 0.55rem 0.7rem;
    font-size: 0.75rem; outline: none; width: 100%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23ec4899' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 0.65rem center;
}
.filter-select:focus { border-color: #f472b6; box-shadow: 0 0 0 3px #fce7f3; }
.filter-action {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
    min-height: 40px; padding: 0.55rem 0.75rem; border: 1px solid #fbcfe8;
    border-radius: 12px; color: #be185d; background: #fdf2f8; font-size: 0.75rem; font-weight: 500;
    transition: background-color .2s, color .2s, border-color .2s;
}
.filter-action.active { color: #fff; background: #ec4899; border-color: #ec4899; }
.favorite-toggle { border: 0; background: transparent; cursor: pointer; }
.metadata-row { border-bottom: 1px solid #f1f5f9; padding-bottom: 0.55rem; }
.metadata-row:last-child { border-bottom: 0; padding-bottom: 0; }
.metadata-label { color: #9d174d; font-weight: 600; margin-bottom: 0.15rem; }
.metadata-value { white-space: pre-wrap; line-height: 1.65; overflow-wrap: anywhere; }
#qualityDetails ul { list-style: disc; padding-left: 1.25rem; }
#qualityDetails li { margin-top: 0.25rem; }


/* Layout แบบพื้นที่ทำงานกว้าง: หมวดหมู่ซ้าย รายการอ่านง่ายขวา */
.app-container { max-width: 1480px; width: 100%; height: 100dvh; max-height: none; overflow: hidden; border-radius: 0; }
@media (min-width: 480px) {
    .app-container { height: 96dvh; max-height: 1100px; border-radius: 1.75rem; }
}
.workspace-shell { display: flex; flex: 1; min-height: 0; position: relative; overflow: hidden; background: #f8fafc; }
.category-sidebar {
    width: 264px; flex: 0 0 264px; min-height: 0; overflow: auto; background: #fff;
    border-right: 1px solid #fce7f3; padding: 1rem 0.8rem; transition: width .22s ease, flex-basis .22s ease, transform .22s ease;
}
.sidebar-heading { display:flex; align-items:center; justify-content:space-between; gap:.5rem; margin:0 .25rem .9rem; color:#9d174d; font-size:.9rem; font-weight:700; }
.sidebar-title { display:flex; align-items:center; gap:.6rem; white-space:nowrap; }
.sidebar-title i { color:#ec4899; }
.sidebar-actions { display:flex; align-items:center; gap:.3rem; }
.sidebar-collapse, .sidebar-hide, .sidebar-open-button { border:1px solid #fbcfe8; background:#fff; color:#be185d; border-radius:.8rem; cursor:pointer; transition:background .18s,color .18s; }
.sidebar-collapse, .sidebar-hide { width:2.05rem; height:2.05rem; flex:0 0 2.05rem; }
.sidebar-collapse:hover, .sidebar-hide:hover, .sidebar-open-button:hover { background:#fdf2f8; }
.category-menu { display:flex; flex-direction:column; gap:.38rem; }
.category-nav-button {
    display:flex; align-items:center; gap:.7rem; width:100%; min-height:46px; border-radius:.9rem;
    padding:.7rem .85rem; text-align:left; white-space:nowrap; font-size:.83rem; line-height:1.35;
    transition:background-color .18s,color .18s,box-shadow .18s; border:1px solid transparent;
}
.category-nav-button:not(.active) { background:#f8fafc; color:#475569; }
.category-nav-button:not(.active):hover { background:#fdf2f8; color:#be185d; }
.category-nav-button.active { background:linear-gradient(100deg,#ec4899,#c084fc); color:#fff; box-shadow:0 7px 18px #fbcfe888; }
.category-nav-button i { width:1.1rem; text-align:center; flex:0 0 1.1rem; }
.content-column { display:flex; flex:1; flex-direction:column; min-width:0; min-height:0; overflow:hidden; }
.content-toolbar { display:flex; align-items:flex-start; gap:.85rem; padding:.9rem 1rem .75rem; border-bottom:1px solid #f1f5f9; background:#fff; }
.sidebar-open-button { display:inline-flex; align-items:center; gap:.55rem; padding:.65rem .85rem; min-height:42px; flex:0 0 auto; font-size:.78rem; font-weight:600; }
.filter-panel { display:grid; grid-template-columns:repeat(4,minmax(120px,1fr)) auto auto; align-items:end; gap:.6rem; flex:1; min-width:0; }
.filter-field { display:block; min-width:0; color:#64748b; font-size:.69rem; font-weight:600; }
.filter-field .filter-select { margin-top:.25rem; min-height:42px; font-size:.78rem; }
.filter-action { white-space:nowrap; }
.reset-filter-button { min-height:40px; border:0; background:transparent; color:#be185d; padding:.4rem .5rem; text-decoration:underline; font-size:.75rem; white-space:nowrap; }
.list-heading { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:.65rem 1.25rem; background:#f8fafc; }
.list-summary { color:#64748b; font-size:.78rem; font-weight:500; }
.list-hint { color:#be185d; font-size:.7rem; white-space:nowrap; }
.card-scroller { flex:1; min-height:0; overflow-y:auto; overscroll-behavior:contain; scroll-snap-type:y mandatory; padding:1rem clamp(.75rem,2vw,1.6rem) 1.5rem; }
.cards-list { display:grid; grid-template-columns:minmax(0,1fr); gap:.85rem; padding-bottom:1rem; }
.prompt-card { min-height:clamp(170px,22vh,230px); scroll-snap-align:start; scroll-snap-stop:always; padding:1.15rem 1.3rem !important; border-color:#fbcfe8; }
.prompt-card-category { min-width:0; max-width:calc(100% - 10rem); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.prompt-card-header-actions { display:inline-flex; align-items:center; justify-content:flex-end; gap:.35rem; flex:0 0 auto; min-width:max-content; }
.content-tier { display:inline-flex; align-items:center; gap:.3rem; white-space:nowrap; border:1px solid currentColor; border-radius:999px; padding:.22rem .52rem; font-size:.68rem; font-weight:700; line-height:1; }
.content-tier i { font-size:.62rem; }
.tier-free { color:#15803d; background:#f0fdf4; border-color:#86efac; }
.tier-standard { color:#2563eb; background:#eff6ff; border-color:#93c5fd; }
.tier-premium { color:#a16207; background:#fefce8; border-color:#fde047; }
.tier-exclusive { color:#9333ea; background:#faf5ff; border-color:#d8b4fe; }
.prompt-card-locked { border-color:#cbd5e1; }
.locked-card-dummy { color:#64748b !important; font-style:italic; }
.prompt-card-locked-button { color:#64748b; background:#f1f5f9; }
.access-tier-notice { grid-column:1 / -1; margin:0; color:#64748b; font-size:.7rem; line-height:1.5; }
.modal-prompt-locked { position:relative; overflow:hidden; }
.prompt-content-locked { filter:blur(5px); user-select:none !important; -webkit-user-select:none !important; pointer-events:none; opacity:.72; }
.locked-card-dummy { display:block; min-height:2.9rem; max-height:4.4rem; overflow:hidden; padding:.45rem .65rem; border:1px solid #cbd5e1; border-radius:.75rem; background:repeating-linear-gradient(180deg,#f8fafc 0,#f8fafc 1.05rem,#e2e8f0 1.05rem,#e2e8f0 1.1rem); color:#64748b !important; font-size:.7rem; line-height:1.55; filter:blur(2.5px); user-select:none; -webkit-user-select:none; pointer-events:none; }
.modal-lock-contact { display:flex; align-items:center; justify-content:center; gap:.4rem; margin-top:.65rem; padding:.5rem .65rem; border:1px solid #a7f3d0; border-radius:.7rem; background:#ecfdf5; color:#047857; font-size:.68rem; font-weight:700; line-height:1.45; text-align:center; text-decoration:none; overflow-wrap:anywhere; }
.modal-lock-contact:hover { background:#d1fae5; color:#065f46; text-decoration:underline; }
.prompt-card-actions { display:flex; justify-content:flex-end; margin-top:.7rem; }
.prompt-card-open-button { width:auto; min-width:11rem; }
.prompt-card h2 { font-size:1.08rem !important; line-height:1.5 !important; margin-bottom:.45rem !important; }
.prompt-card p { font-size:.9rem !important; line-height:1.65 !important; }
.prompt-card .favorite-toggle { font-size:1.15rem; padding:.55rem !important; }
.prompt-card > div:first-child > div:last-child span { font-size:.72rem !important; }
    .prompt-card-open-button { min-height:44px; font-size:.83rem !important; }
.load-one-more { min-height:52px; scroll-snap-align:start; }
.suggested-context-highlight {
    display:block; margin:.55rem 0; padding:.8rem 1rem; border:1px solid #f9a8d4; border-left:5px solid #ec4899;
    border-radius:.9rem; background:linear-gradient(110deg,#fdf2f8,#f5f3ff 62%,#eff6ff); color:#831843; font-weight:600;
}
.sidebar-collapsed .category-sidebar { width:76px; flex-basis:76px; padding-inline:.55rem; }
.sidebar-collapsed .sidebar-heading { justify-content:center; margin-inline:0; }
.sidebar-collapsed .sidebar-title span, .sidebar-collapsed .category-nav-button span { display:none; }
.sidebar-collapsed .sidebar-collapse { transform:rotate(180deg); }
.sidebar-collapsed .category-nav-button { justify-content:center; padding:.7rem .4rem; }
.sidebar-collapsed .category-nav-button i { font-size:1rem; }
.sidebar-collapsed .sidebar-actions { flex-direction:column; }
.sidebar-hidden .category-sidebar { width:0; flex-basis:0; padding:0; border-right:0; visibility:hidden; overflow:hidden; }
.sidebar-backdrop { display:none; }
@media (max-width: 1100px) and (min-width: 960px) {
    .content-toolbar { flex-direction:column; }
    .filter-panel { width:100%; grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width: 959px) {
    .workspace-shell { overflow:hidden; }
    .category-sidebar { position:absolute; z-index:25; inset:0 auto 0 0; width:min(82vw,300px); flex-basis:min(82vw,300px); box-shadow:14px 0 36px #0f172a24; transform:translateX(-105%); }
    .workspace-shell.sidebar-mobile-open .category-sidebar { transform:translateX(0); }
    .sidebar-collapse { display:none; }
    .sidebar-backdrop { display:block; position:absolute; inset:0; z-index:24; background:#0f172a66; opacity:0; pointer-events:none; transition:opacity .2s; border:0; }
    .workspace-shell.sidebar-mobile-open .sidebar-backdrop { opacity:1; pointer-events:auto; }
    .content-toolbar { padding:.7rem; gap:.6rem; }
    .sidebar-open-button { padding:.65rem; }
    .filter-panel { grid-template-columns:repeat(2,minmax(0,1fr)); gap:.45rem; }
    .filter-action, .reset-filter-button { min-height:40px; }
    .list-heading { padding:.55rem .8rem; }
    .list-summary { font-size:.7rem; }
    .card-scroller { padding:.65rem .7rem 1rem; }
}
@media (max-width: 560px) {
    .app-container { height:100dvh; }
    .app-container > header { border-radius:0 0 1.25rem 1.25rem; padding:1rem !important; }
    .app-container > header h1 { font-size:1.05rem !important; }
    .app-container > header p { font-size:.68rem !important; }
    .content-toolbar { flex-direction:column; align-items:stretch; }
    .sidebar-open-button { align-self:flex-start; }
    .filter-panel { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .filter-panel .filter-action { grid-column:span 1; }
    .filter-panel .reset-filter-button { grid-column:span 1; }
    .list-hint { display:none; }
    .prompt-card { min-height:176px; padding:1rem !important; }
    .prompt-card h2 { font-size:1rem !important; }
}
@media (prefers-reduced-motion: reduce) {
    .category-sidebar, .sidebar-backdrop, .category-nav-button, .sidebar-hide { transition:none; }
}

/* Layout responsive ล่าสุด: mobile 1, tablet 2, desktop 3 columns */
.mobile-category-bar { display: none; }
.category-nav-button:not(.active) { background:#fdf2f8; color:#9d174d; }
.category-nav-button:not(.active):hover { background:#fce7f3; color:#831843; }
.category-nav-button.active { background:#fce7f3 !important; color:#9d174d !important; border-color:#f9a8d4 !important; box-shadow:0 3px 10px #fbcfe866; }
.card-scroller { padding-bottom:calc(6rem + env(safe-area-inset-bottom)) !important; scroll-snap-type:none; }
.prompt-card, .load-one-more { scroll-snap-align:none; scroll-snap-stop:normal; }
#cardsList { grid-template-columns:minmax(0,1fr) !important; gap:.85rem; }
.filter-panel { grid-template-columns:minmax(140px,220px) auto auto; }
.prompt-card > button { width:100%; min-height:48px; }
@media (min-width:768px) {
    #cardsList { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
}
@media (min-width:1024px) {
    #cardsList { grid-template-columns:repeat(3,minmax(0,1fr)) !important; }
}
@media (max-width:959px) {
    .workspace-shell { flex-direction:column; }
    .category-sidebar, .sidebar-backdrop, .sidebar-open-button { display:none !important; }
    .mobile-category-bar {
        display:flex; flex:0 0 auto; gap:.45rem; overflow-x:auto; overscroll-behavior-x:contain;
        -webkit-overflow-scrolling:touch; scroll-snap-type:x proximity; padding:.55rem .7rem;
        background:#fff; border-bottom:1px solid #fce7f3;
    }
    .mobile-category-chip {
        display:inline-flex; align-items:center; justify-content:center; gap:.45rem; flex:0 0 auto;
        min-height:44px; padding:.55rem .85rem; border:1px solid #fbcfe8; border-radius:999px;
        background:#fdf2f8; color:#9d174d; font-size:.76rem; font-weight:600; white-space:nowrap;
        scroll-snap-align:start; transition:background-color .18s,border-color .18s;
    }
    .mobile-category-chip.active { background:#fce7f3; border-color:#f472b6; color:#831843; box-shadow:0 2px 8px #fbcfe866; }
    .content-toolbar { padding:.55rem .7rem; }
    .filter-panel { grid-template-columns:minmax(0,1fr) auto auto; gap:.45rem; }
}
@media (max-width:560px) {
    .content-toolbar { flex-direction:row; align-items:center; padding:.45rem .65rem; }
    .filter-panel { grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:.4rem; }
    .filter-panel .filter-field { grid-column:1 / -1; }
    .filter-panel .filter-action, .filter-panel .reset-filter-button { min-height:44px; justify-content:center; }
    .filter-panel .reset-filter-button { text-decoration:none; border:1px solid #fbcfe8; background:#fdf2f8; border-radius:12px; }
    .filter-field .filter-select { min-height:44px; }
    .card-scroller { padding: .6rem .65rem calc(6rem + env(safe-area-inset-bottom)) !important; }
    .prompt-card { min-height:168px; padding:1rem !important; }
    .prompt-card-open-button { min-height:48px; width:100%; }
}

/* Compact hero and on-demand controls */
.filter-controls { position:relative; display:flex; flex:1; min-width:0; flex-direction:column; align-items:stretch; justify-content:flex-start; }
.filter-toggle {
    display:inline-flex; align-items:center; gap:.5rem; min-height:42px; padding:.55rem .8rem;
    border:1px solid #f9a8d4; border-radius:.85rem; background:#fdf2f8; color:#9d174d;
    font-size:.76rem; font-weight:700; box-shadow:0 2px 7px #fbcfe855; transition:background .18s,box-shadow .18s;
}
.filter-toggle:hover, .filter-toggle[aria-expanded="true"] { background:#fce7f3; box-shadow:0 3px 10px #fbcfe888; }
.filter-toggle { align-self:flex-end; }
.filter-panel[hidden] { display:none !important; }
.filter-controls .filter-panel:not([hidden]) {
    position:static; z-index:2; width:min(340px,100%); max-width:100%; align-self:flex-end; margin-top:.45rem; padding:.7rem;
    border:1px solid #fbcfe8; border-radius:1rem; background:#fff; box-shadow:0 8px 20px #83184316;
    grid-template-columns:minmax(0,1fr); gap:.55rem; align-items:stretch;
}
#heroHeader { position:sticky; top:0; z-index:30; transition:padding .2s ease,border-radius .2s ease,box-shadow .2s ease; }
.hero-brand-row, .hero-search-wrap { transition:opacity .16s ease,margin .2s ease,max-height .2s ease; }
@media (max-width:767px) {
    #heroHeader { padding:.4rem .65rem !important; border-radius:0 0 .9rem .9rem; box-shadow:0 4px 12px #8318431a; }
    #heroHeader .hero-brand-row { margin-bottom:.25rem !important; gap:.4rem; }
    #heroHeader .hero-brand-row > div:first-child > span { padding:.3rem !important; border-radius:.65rem; font-size:1.15rem !important; }
    #heroHeader .hero-brand-row p { display:none !important; }
    #heroHeader .hero-brand-row h1 { font-size:.92rem !important; line-height:1.2 !important; }
    #heroHeader #badgeCount { padding:.2rem .45rem; font-size:.64rem; }
    #heroHeader .hero-search-wrap { margin-top:.25rem !important; }
    #heroHeader #searchInput { min-height:34px; padding-top:.375rem !important; padding-bottom:.375rem !important; border-radius:.75rem; font-size:.78rem; }
    #heroHeader .hero-search-wrap > i { left:.75rem !important; }
    #heroHeader.header-collapsed { padding:.28rem .6rem !important; border-radius:0; box-shadow:0 3px 10px #83184324; }
    #heroHeader.header-collapsed .hero-brand-row { display:none !important; }
    #heroHeader.header-collapsed .hero-search-wrap { margin-top:0 !important; }
    #heroHeader.header-collapsed #searchInput { min-height:34px; }
    .mobile-category-bar { gap:.3rem; padding:.2rem .4rem; }
    .mobile-category-chip { min-height:36px; padding:.35rem .6rem; font-size:.68rem; }
    .content-toolbar { padding:.2rem .45rem; gap:.3rem; }
    .filter-controls { align-items:flex-end; }
    .filter-toggle { min-height:36px; padding:.35rem .6rem; font-size:.7rem; }
    .list-heading { min-height:26px; padding:.15rem .5rem; gap:.35rem; }
    .list-summary { font-size:.62rem; }
    .card-scroller { padding:.35rem .5rem calc(6rem + env(safe-area-inset-bottom)) !important; }
    .cards-list { gap:.4rem; padding-bottom:.35rem; }
    .prompt-card { min-height:0; padding:.5rem .65rem !important; border-radius:.9rem; }
    .prompt-card > div:first-child > div:first-child { margin-bottom:.3rem !important; }
    .prompt-card h2 { margin-bottom:.18rem !important; font-size:.84rem !important; line-height:1.2 !important; }
    .prompt-card p { margin-bottom:.22rem !important; font-size:.7rem !important; line-height:1.25 !important; }
    .prompt-card > div:first-child > div:last-child { margin-bottom:.32rem !important; gap:.2rem !important; }
    .prompt-card > div:first-child > div:last-child span { font-size:.62rem !important; padding:.12rem .38rem !important; }
    .prompt-card-open-button { min-height:40px; padding:.38rem .55rem !important; border-radius:.7rem; font-size:.7rem !important; }
    .prompt-card .favorite-toggle { font-size:.95rem; padding:.3rem !important; }
    .prompt-card-category { max-width:calc(100% - 8.5rem); }
    .content-tier { padding:.18rem .38rem; font-size:.58rem; gap:.2rem; }
    .content-tier i { font-size:.54rem; }
    .prompt-card-actions { margin-top:.45rem; }
    #cardsList { gap:.4rem !important; }
}
@media (prefers-reduced-motion: reduce) {
    #heroHeader, .hero-brand-row, .hero-search-wrap, .filter-toggle { transition:none; }
}

/* PromptVault Brushed Titanium & Satin Silver skin */
:root {
  --pv-bg: #0f1115;
  --pv-panel: #15181e;
  --pv-panel-2: #1a1e25;
  --pv-line: #737b86;
  --pv-line-soft: rgba(186, 194, 204, .24);
  --pv-silver: #c8cdd3;
  --pv-text: #edf0f3;
  --pv-muted: #9da6b1;
  --pv-accent: #aeb7c1;
}
html, body { background: var(--pv-bg) !important; }
body { color: var(--pv-text) !important; background-image: radial-gradient(rgba(205,214,224,.08) 1px, transparent 1px) !important; background-size: 22px 22px !important; }
.app-container { background: var(--pv-bg) !important; color: var(--pv-text); box-shadow: 0 28px 80px rgba(0,0,0,.55) !important; }
#heroHeader { background: linear-gradient(145deg, #232832 0%, #15181e 52%, #0f1115 100%) !important; color: var(--pv-text) !important; padding: 1rem 1.25rem .85rem !important; border-bottom: 1px solid var(--pv-line) !important; border-radius: 0 !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 8px 22px rgba(0,0,0,.32) !important; }
#heroHeader::after { content:""; position:absolute; inset:0 0 auto 0; height:2px; background: linear-gradient(90deg, transparent, #d7dce1 18%, #7b848e 50%, #d7dce1 82%, transparent); opacity:.72; pointer-events:none; }
.hero-brand-row { margin-bottom: .7rem !important; }
.hero-brand-row > div:first-child > span { background: linear-gradient(145deg,#aeb6bf,#4c545e) !important; color:#11151a !important; border:1px solid #d6dbe0; box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 4px 10px rgba(0,0,0,.35) !important; }
#heroHeader h1 { color:#f4f6f8 !important; letter-spacing:.01em; }
#heroHeader p { color:var(--pv-muted) !important; }
#badgeCount { color:#f0f2f4 !important; background:rgba(210,216,222,.12) !important; border:1px solid rgba(205,213,221,.48) !important; }
.tier-switcher { display:flex; justify-content:flex-end; gap:.38rem; flex-wrap:wrap; }
.tier-switch { display:inline-flex; align-items:center; gap:.34rem; min-height:30px; padding:.34rem .62rem; border:1px solid var(--pv-line); border-radius:999px; background:rgba(255,255,255,.045); color:#b7bec6; font:600 .68rem/1 'Kanit',sans-serif; cursor:pointer; transition:all .18s ease; }
.tier-switch:hover, .tier-switch.is-active { color:#11151a; background:linear-gradient(135deg,#eef1f3,#969fa9); border-color:#eef1f3; box-shadow:0 0 0 2px rgba(212,218,224,.12), inset 0 1px 0 rgba(255,255,255,.8); }
.tier-switch i { font-size:.66rem; }
.hero-control-row { display:flex; align-items:center; gap:.5rem; }
.hero-search-wrap { flex:1; min-width:0; margin-top:0 !important; }
#searchInput { min-height:40px; color:#eef1f4 !important; background:rgba(8,10,13,.56) !important; border:1px solid var(--pv-line) !important; box-shadow:inset 0 1px 4px rgba(0,0,0,.35), 0 1px 0 rgba(255,255,255,.05) !important; }
#searchInput::placeholder { color:#7f8994 !important; }
.hero-search-wrap > i { color:#adb6bf !important; }
#clearSearchBtn { color:#aeb7c1 !important; }
.hero-tool-button, .filter-toggle { display:inline-flex; align-items:center; justify-content:center; gap:.42rem; min-height:40px; padding:.55rem .72rem; border:1px solid var(--pv-line); border-radius:.72rem; background:rgba(255,255,255,.045); color:#dce1e6; font-size:.72rem; font-weight:700; white-space:nowrap; cursor:pointer; }
.hero-tool-button:hover, .filter-toggle:hover, .filter-toggle[aria-expanded="true"] { background:rgba(207,214,220,.16); border-color:#d0d6dc; color:#fff; }
.hero-filter-controls { position:relative; flex:0 0 auto; }
.hero-filter-controls .filter-panel { position:absolute !important; right:0; top:calc(100% + .45rem); z-index:40; width:min(440px, calc(100vw - 2rem)); padding:.72rem; background:#1b1f26; border:1px solid var(--pv-line); border-radius:.9rem; box-shadow:0 16px 40px rgba(0,0,0,.5); }
.filter-field { color:#aeb6bf !important; }
.filter-select { color:#edf0f3 !important; background-color:#111419 !important; border-color:#68717c !important; }
.filter-action, .reset-filter-button { color:#d4d9de !important; background:#232831 !important; border-color:#737d87 !important; }
.filter-action.active { background:#c6cdd3 !important; color:#11151a !important; border-color:#e5e8eb !important; }
.workspace-shell { background:#0f1115 !important; }
.category-sidebar { background:#14171c !important; border-right-color:var(--pv-line-soft) !important; }
.sidebar-heading, .sidebar-title i { color:#d7dce1 !important; }
.sidebar-collapse, .sidebar-hide, .sidebar-open-button { border-color:#68727d !important; background:#1c2027 !important; color:#cbd1d7 !important; }
.category-nav-button:not(.active), .mobile-category-chip { background:#1a1e24 !important; color:#aeb7c1 !important; border-color:transparent !important; }
.category-nav-button:not(.active):hover, .mobile-category-chip:hover { background:#242a32 !important; color:#f1f3f5 !important; }
.category-nav-button.active, .mobile-category-chip.active { background:linear-gradient(135deg,#d6dbe0,#707985) !important; color:#11151a !important; border-color:#e6e9ec !important; box-shadow:0 5px 16px rgba(0,0,0,.3) !important; }
.content-column { background:#0f1115 !important; }
.legacy-toolbar { display:none !important; }
.list-heading { background:#111419 !important; border-bottom:1px solid var(--pv-line-soft) !important; }
.list-summary, .list-hint { color:#9da6b1 !important; }
.card-scroller { padding: .72rem clamp(.7rem,1.4vw,1.2rem) 1.2rem !important; }
#cardsList { grid-template-columns:repeat(3,minmax(0,1fr)) !important; gap:.62rem !important; }
.prompt-card { min-height:0 !important; padding:.86rem .95rem !important; background:linear-gradient(145deg,rgba(35,40,48,.98),rgba(20,23,28,.98)) !important; border:1px solid var(--pv-line-soft) !important; border-top-color:rgba(231,235,239,.45) !important; border-radius:.82rem !important; box-shadow:inset 0 1px 0 rgba(255,255,255,.06), 0 8px 20px rgba(0,0,0,.22) !important; }
.prompt-card:hover { border-color:#b7c0c8 !important; transform:translateY(-1px); box-shadow:inset 0 1px 0 rgba(255,255,255,.1), 0 10px 24px rgba(0,0,0,.34) !important; }
.prompt-card h2 { color:#f0f2f4 !important; font-size:.92rem !important; line-height:1.35 !important; }
.prompt-card p { color:#aeb7c1 !important; font-size:.74rem !important; line-height:1.45 !important; }
.prompt-card-category { color:#c3cad1 !important; background:#252b33 !important; border-color:#68727d !important; }
.content-tier { filter:grayscale(.75); }
.prompt-card-actions { margin-top:.45rem !important; }
.prompt-card-open-button { min-height:36px !important; width:auto !important; min-width:8.6rem !important; padding:.42rem .7rem !important; color:#13171b !important; background:linear-gradient(135deg,#e0e4e7,#919aa4) !important; border:1px solid #edf0f2 !important; border-radius:.62rem !important; font-size:.7rem !important; }
.prompt-card-open-button:hover { background:linear-gradient(135deg,#fff,#bac2c9) !important; }
.favorite-toggle { color:#c4ccd3 !important; }
.access-tier-notice { color:#9da6b1 !important; }
@media (min-width:960px) { #cardsList { grid-template-rows:repeat(2, minmax(0,1fr)); } .prompt-card { min-height:142px !important; } }
@media (max-width:959px) { .hero-control-row { flex-wrap:wrap; } .hero-search-wrap { flex:1 1 100%; order:0; } .hero-tool-button, .hero-filter-controls { flex:1; } #cardsList { grid-template-columns:repeat(2,minmax(0,1fr)) !important; } }
@media (max-width:560px) { #heroHeader { padding:.65rem .7rem .7rem !important; } .tier-switcher { justify-content:flex-start; margin-top:.45rem; } .tier-switch { min-height:28px; padding:.3rem .46rem; font-size:.6rem; } .hero-control-row { gap:.35rem; } .hero-tool-button, .filter-toggle { min-height:36px; font-size:.66rem; } #cardsList { grid-template-columns:1fr !important; } .prompt-card { padding:.72rem .76rem !important; } }

/* =====================================================================
   Titanium & Satin Silver — Prompt library + modal final override
   This block intentionally comes last so it wins over legacy Tailwind
   utility classes and dynamic classes rendered by app.js.
   ===================================================================== */
:root { --pv-bg:#0f1115; --pv-surface:#171b21; --pv-surface-2:#20252c; --pv-silver:#d8dde2; --pv-muted:#9da6b1; --pv-hairline:#737b86; --pv-metal:linear-gradient(135deg,#eef1f3,#8f99a3 52%,#dfe4e8); }
body, .app-container, .workspace-shell, .content-column { background:#0f1115 !important; color:#edf0f3 !important; }
.prompt-card, .list-heading, .category-sidebar, .filter-panel { background-color:#171b21 !important; color:#edf0f3 !important; }
.prompt-card { border:1px solid rgba(194,202,211,.28) !important; border-top-color:rgba(239,242,245,.48) !important; background:linear-gradient(145deg,#232831 0%,#171b21 56%,#12151a 100%) !important; }
.prompt-card:hover { border-color:#c8d0d7 !important; }
.prompt-card h2 { color:#f1f3f5 !important; }
.prompt-card p, .prompt-card .text-gray-500, .prompt-card .text-gray-600 { color:#aeb7c1 !important; }
.prompt-card-category, .pv-cat-badge { color:#d3d9de !important; background:#2a3038 !important; border-color:#77818c !important; }
.prompt-card [class*="bg-slate"], .prompt-card .pv-scenario-chip { color:#c4ccd3 !important; background:#252b33 !important; border:1px solid #59636e !important; }
.prompt-card [class*="bg-pink"], .prompt-card [class*="text-pink"], .prompt-card [class*="border-pink"], .prompt-card [class*="bg-rose"], .prompt-card [class*="text-rose"] { color:#cbd2d8 !important; background:#252b33 !important; border-color:#69737d !important; }
.pv-card-icon, .pv-favorite, .favorite-toggle { color:#cbd2d8 !important; }
.pv-card-icon:hover, .pv-favorite:hover, .favorite-toggle:hover { color:#fff !important; }
.prompt-card-open-button, .load-one-more { color:#11151a !important; background:var(--pv-metal) !important; border:1px solid #eef1f3 !important; box-shadow:0 6px 14px rgba(0,0,0,.25) !important; }
.prompt-card-open-button:hover, .load-one-more:hover { color:#0c0f12 !important; background:linear-gradient(135deg,#fff,#bcc5cc) !important; }
.pv-filter-button, .filter-action, .reset-filter-button { color:#cbd2d8 !important; background:#20252c !important; border-color:#69737d !important; }
.pv-filter-active, .filter-action.active { color:#11151a !important; background:var(--pv-metal) !important; border-color:#eef1f3 !important; }

/* Modal shell */
.modal-overlay { background:rgba(3,5,8,.78) !important; backdrop-filter:blur(9px) saturate(.7) !important; }
.modal-body-container { background:#171b21 !important; color:#edf0f3 !important; border:1px solid rgba(215,222,228,.38) !important; box-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 28px 80px rgba(0,0,0,.62) !important; }
.modal-body-container > div:first-child { background:linear-gradient(90deg,#e3e7ea,#858f99,#dfe4e8) !important; }
.modal-body-container header, .modal-body-container .bg-white, .modal-body-container .bg-slate-50, .modal-body-container .border-t { background:#171b21 !important; border-color:rgba(194,202,211,.24) !important; }
.modal-body-container .text-gray-800, .modal-body-container .text-gray-700, .modal-body-container .text-gray-600, .modal-body-container .text-slate-600 { color:#d8dde2 !important; }
.modal-body-container .text-gray-400, .modal-body-container .text-slate-500 { color:#9da6b1 !important; }
#modalTitle { color:#f1f3f5 !important; }
#modalFavoriteBtn, #modalFavoriteBtn[class*="text-pink"] { color:#cbd2d8 !important; }
#modalFavoriteBtn:hover { color:#fff !important; }
#modalCategoryBadge, #modalCategoryBadge[class*="bg-"], #modalCategoryBadge[class*="text-"], #modalCategoryBadge[class*="border-"] { color:#d3d9de !important; background:#2a3038 !important; border-color:#77818c !important; }
#modalUsageBox { color:#d5dbe0 !important; background:linear-gradient(145deg,#272d35,#1e232a) !important; border-color:#707a85 !important; }
#modalUsageBox .text-amber-500, #modalUsageBox .text-amber-800, #modalUsageBox .text-amber-900 { color:#d5dbe0 !important; }
#modalMetadata { background:#1d2229 !important; border-color:#707a85 !important; box-shadow:0 8px 20px rgba(0,0,0,.2) !important; }
#modalMetadata h4, #modalMetadata h4 i, #modalMetadataContent, #modalMetadataContent * { color:#cbd2d8 !important; }
#modalPromptBox label, #modalPromptBox label i { color:#cbd2d8 !important; }
#modalPromptBox label i { color:#d9dfe4 !important; }
#modalPromptBox span { color:#b9c2ca !important; background:#252b33 !important; border:1px solid #69737d !important; }
#modalPromptContent { color:#dce1e5 !important; background:#0f1216 !important; border:1px solid #69737d !important; border-left:4px solid #bfc7ce !important; box-shadow:inset 0 1px 5px rgba(0,0,0,.35) !important; }
#modalLockContact { color:#d5dbe0 !important; background:#252b33 !important; border-color:#77818c !important; }
#modalLockContact:hover { color:#fff !important; background:#303740 !important; }
#modalCopyBtn, .pv-copy-button { color:#11151a !important; background:var(--pv-metal) !important; border:1px solid #eef1f3 !important; box-shadow:0 8px 18px rgba(0,0,0,.3) !important; }
#modalCopyBtn:hover, .pv-copy-button:hover { background:linear-gradient(135deg,#fff,#bdc6cd) !important; }
#modalCopyBtn.pv-copy-success { color:#101514 !important; background:linear-gradient(135deg,#dbe7e1,#8fa99c) !important; border-color:#d5e4dc !important; }
#modalCopyBtn.pv-copy-locked { color:#909aa4 !important; background:#2b3139 !important; border-color:#59636e !important; }
.pv-error-box { color:#ffc9c9 !important; background:rgba(107,25,25,.28) !important; border-color:#8f5b62 !important; }
#toast { color:#e8ecef !important; background:rgba(23,27,33,.96) !important; border-color:#737d87 !important; }
#toastIcon { background:#8fa99c !important; color:#101514 !important; }


.pv-toast-error { background:#8f5b62 !important; color:#fff !important; } .pv-toast-success { background:#8fa99c !important; color:#101514 !important; }

.tier-switch { text-decoration:none !important; } .tier-switch:hover { text-decoration:none !important; }
