/* ===== AI page ===== */
.pg-ai .rbg-tabs { margin: 18px 0 0 !important; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.08); }
.pg-ai .pg-ai-prompt { max-height: 200px; resize: vertical; }
.pg-ai-row { display: flex !important; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 14px; margin: 0 0 8px !important; border-radius: 11px; background: rgba(255,255,255,.04); cursor: pointer; }
.pg-ai-row-text { display: grid; gap: 3px; min-width: 0; }
.pg-ai-row-text strong { font-size: .95rem; }
.pg-ai-row-text small { color: #b4b9cb; font-size: .84rem; line-height: 1.4; }
.pg-ai-row .switch-only { flex: 0 0 58px; margin: 0 !important; }
.pg-ai-tag { font-style: normal; font-size: .72rem; color: #b4b9cb; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; padding: 1px 8px; margin-left: 6px; font-weight: 500; }
.pg-ai .pg-section-body { min-width: 0; }
.pg-ai .pg-actions { padding-top: 22px; }
.pg-ai .rbg-tab-panel > .pg-section:first-child { border-top: 0; }
/* ===== Overview page ===== */
.pg-ov .rbg-tabs { margin: 18px 0 20px !important; }
.pg-ov-guild { display: flex; align-items: center; gap: 14px; min-width: 0; }
.pg-ov-icon { width: 52px; height: 52px; border-radius: 14px; background: rgba(255,255,255,.07); display: grid; place-items: center; font-size: 1.6rem; overflow: hidden; flex: 0 0 52px; }
.pg-ov-icon img { width: 100%; height: 100%; object-fit: cover; }
.pg-ov-head { border-bottom: 0 !important; padding-bottom: 0 !important; }
.pg-ov .pg-ov-stats { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 8px; }
.pg-ov .ov-stat { padding: 18px 16px !important; border-radius: 14px !important; background: rgba(255,255,255,.04) !important; border: 1px solid rgba(255,255,255,.08) !important; box-shadow: none !important; display: flex !important; flex-direction: column; gap: 4px; align-items: flex-start !important; }
.pg-ov .ov-stat strong { font-size: 2.2rem !important; line-height: 1.1; color: #fff !important; }
.pg-ov .ov-stat > span:last-child { font-size: .95rem !important; color: #c3c8d8 !important; }
.pg-ov .ov-stat-ico { font-size: 1.2rem !important; }
.pg-ov .pg-ov-lb { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; width: 100%; }
.pg-ov .pg-ov-lb li { display: flex !important; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 11px; background: rgba(255,255,255,.04); width: 100%; }
.pg-ov .pg-ov-lb .ov-lb-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pg-ov .pg-ov-lb .ov-lb-meta { color: #b4b9cb; font-size: .9rem; white-space: nowrap; }
.pg-ov-snap { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px 16px; }
.pg-ov-snap li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 11px; background: rgba(255,255,255,.04); }
.pg-ov-badge { font-size: .78rem; font-weight: 600; padding: 2px 10px; border-radius: 999px; color: #9aa0b4; background: transparent; border: 1px solid rgba(255,255,255,.16); cursor: default; white-space: nowrap; }
.pg-ov-badge.on { color: #5ee08a; border-color: rgba(94,224,138,.4); background: rgba(94,224,138,.08); }
.pg-ov-num { font-weight: 700; font-size: 1.05rem; color: #fff; }
.pg-ov-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.pg-ov-filter { padding: 7px 16px !important; min-height: 0 !important; border-radius: 999px !important; font-size: .88rem !important; background: rgba(255,255,255,.05) !important; color: #c3c8d8 !important; border: 1px solid rgba(255,255,255,.1) !important; box-shadow: none !important; width: auto !important; }
.pg-ov-filter.active { background: #fff !important; color: #14151c !important; border-color: #fff !important; }
.pg-ov-grid { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.pg-ov-card { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); color: inherit; text-decoration: none; transition: border-color .15s, background .15s; }
.pg-ov-card[hidden] { display: none !important; }
.pg-ov-card:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.2); }
.pg-ov-card-top { display: flex; align-items: center; gap: 12px; }
.pg-ov-ico { width: 40px; height: 40px; border-radius: 11px; background: rgba(255,255,255,.07); display: grid; place-items: center; font-size: 1.25rem; flex: 0 0 40px; }
.pg-ov-card-title { flex: 1 1 auto; min-width: 0; display: grid; }
.pg-ov-card-title h3 { margin: 0; font-size: 1rem; }
.pg-ov-card-title small { color: #9aa0b4; font-size: .78rem; }
.pg-ov-card p { margin: 0; color: #b4b9cb; font-size: .88rem; line-height: 1.45; flex: 1; }
.pg-ov-conf { color: #c3c8d8; font-size: .86rem; font-weight: 600; }
.pg-ov .commands-reference-box { background: transparent !important; border: 0 !important; padding: 0 !important; box-shadow: none !important; }
@media (max-width: 900px) { .pg-ov-snap { grid-template-columns: 1fr; } .pg-ov-head { flex-wrap: wrap; } }
.pg-ov-card[hidden] { display: none !important; }

/* ---- setup checks ---- */
.pg-ov-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pg-ov-check { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 11px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); }
.pg-ov-check-ico { flex: 0 0 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .82rem; background: rgba(255,255,255,.1); }
.pg-ov-check.is-ok .pg-ov-check-ico { background: rgba(46,204,113,.2); color: #5fe39b; }
.pg-ov-check.is-warn { border-color: rgba(255,170,60,.45); }
.pg-ov-check.is-warn .pg-ov-check-ico { background: rgba(255,170,60,.22); color: #ffb454; }
.pg-ov-check.is-info .pg-ov-check-ico { background: rgba(96,165,250,.2); color: #8bbcff; }
.pg-ov-check-text { flex: 1 1 auto; font-size: .92rem; line-height: 1.4; }
.pg-ov-check-fix { flex: 0 0 auto; font-weight: 700; font-size: .85rem; color: #ffb454; text-decoration: none; }
.pg-ov-check-fix:hover { text-decoration: underline; }
