/* Tactical Grid: a quiet overview and a single accessible detail window. */
body.pt-wiki-theme .edition { display:flex; flex-wrap:wrap; gap:8px 18px; margin-top:14px; color:var(--muted); font-size:11px; }
body.pt-wiki-theme .edition a { color:var(--accent); text-decoration:none; }
body.pt-wiki-theme .toolbar { display:flex; align-items:center; gap:16px; background:transparent; border:0; padding:0; margin:0 0 16px; }
body.pt-wiki-theme .tabs { display:flex; gap:4px; padding:4px; flex-shrink:0; }
body.pt-wiki-theme .tab { display:flex; align-items:center; gap:12px; padding:9px 14px; color:var(--muted); text-decoration:none; font-size:12px; }
body.pt-wiki-theme .tab span { color:var(--muted); font-size:10px; }
body.pt-wiki-theme .tabs .tab { border:1px solid var(--line); border-radius:5px; background:var(--panel); }
body.pt-wiki-theme .set-kind { display:inline-block; margin:0 0 6px; padding:2px 7px; border:1px solid #dfbb7240; border-radius:4px; color:var(--gold); font-size:10px; }
body.pt-wiki-theme [data-kind="gearset"] .set-kind { color:#7cddb0; border-color:#7cddb040; }
body.pt-wiki-theme .tab.active { color:var(--accent); background:#ffad6212; border-color:#ffad6230; }
body.pt-wiki-theme .search { width:100%; min-width:0; padding:12px 14px; background:#10161e; border:1px solid var(--line); border-radius:5px; color:var(--text); font:inherit; font-size:12px; }
body.pt-wiki-theme .results-bar { display:flex; justify-content:space-between; gap:12px; margin:0 0 12px; color:var(--muted); font-size:11px; }
body.pt-wiki-theme .sets-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); grid-auto-rows:1fr; gap:14px; }
body.pt-wiki-theme .set-card { display:grid; grid-template-rows:minmax(86px,auto) minmax(160px,1fr) 42px; padding:18px 18px 0; color:var(--text); text-decoration:none; background:var(--panel); border:1px solid var(--line); border-radius:7px; min-width:0; }
body.pt-wiki-theme .set-card[hidden],body.pt-wiki-theme [hidden] { display:none; }
body.pt-wiki-theme .set-card:hover,body.pt-wiki-theme .set-card.is-selected { border-color:var(--accent); background:#18212b; }
body.pt-wiki-theme .set-head { display:grid; grid-template-columns:44px minmax(0,1fr); gap:12px; align-items:start; }
body.pt-wiki-theme .set-icon { display:grid; place-items:center; width:44px; height:44px; background:#dfbb720b; border:1px solid #dfbb7225; border-radius:5px; }
body.pt-wiki-theme .set-icon img { width:32px; height:32px; object-fit:contain; }
body.pt-wiki-theme .set-name h2 { margin:0 0 7px; font:650 16px/1.25 system-ui,sans-serif; overflow-wrap:anywhere; }
body.pt-wiki-theme .set-core { display:block; font-size:10px; color:var(--muted); }
body.pt-wiki-theme [data-core="Weapon Damage"] { color:#f69a93; }
body.pt-wiki-theme [data-core="Armor"] { color:#87b9f0; }
body.pt-wiki-theme [data-core="Skill Tier"] { color:#dfbb72; }
body.pt-wiki-theme .bonuses { display:grid; grid-template-rows:repeat(3,minmax(48px,1fr)); padding-bottom:12px; }
body.pt-wiki-theme .bonus-row { display:grid; grid-template-columns:25px minmax(0,1fr); gap:10px; align-items:center; border-top:1px solid #ffffff07; padding:8px 0; font-size:12px; line-height:1.5; }
body.pt-wiki-theme .piece { display:grid; place-items:center; width:25px; height:25px; border:1px solid #dfbb7235; border-radius:4px; color:var(--gold); background:#dfbb720b; font-size:11px; }
body.pt-wiki-theme [data-kind="gearset"] .piece { color:#7cddb0; border-color:#7cddb035; background:#7cddb00b; }
body.pt-wiki-theme .set-card-footer { display:flex; align-items:center; justify-content:space-between; gap:8px; border-top:1px solid var(--line); font-size:10px; color:var(--muted); }
body.pt-wiki-theme .slot-hints { display:flex; align-items:center; gap:5px; min-width:0; }
body.pt-wiki-theme .slot-hints img { width:17px; height:17px; object-fit:contain; }
body.pt-wiki-theme .slot-hints span { margin-left:3px; }
body.pt-wiki-theme .set-open { white-space:nowrap; color:var(--accent); }
body.pt-wiki-theme :is(.empty-state,.data-warning) { border:1px dashed var(--line); padding:24px; color:var(--muted); border-radius:6px; margin:16px 0; }
body.pt-wiki-theme .set-dialog { box-sizing:border-box; padding:0; width:min(780px,calc(100% - 32px)); height:min(720px,calc(100dvh - 48px)); max-height:calc(100dvh - 48px); border:1px solid #485564; border-radius:10px; background:var(--panel); color:var(--text); box-shadow:0 28px 100px #0009; overflow:hidden; }
body.pt-wiki-theme .set-dialog[open] { display:grid; grid-template-rows:138px 46px minmax(0,1fr) 76px; }
body.pt-wiki-theme .set-dialog::backdrop { background:#060a10c7; backdrop-filter:blur(4px); }
body.pt-wiki-theme:has(.set-dialog[open]) { overflow:hidden; }
body.pt-wiki-theme .dialog-head { display:flex; justify-content:space-between; align-items:start; gap:16px; padding:24px; flex-shrink:0; }
body.pt-wiki-theme .dialog-identity { display:flex; gap:14px; min-width:0; }
body.pt-wiki-theme .dialog-identity > img { width:48px; height:48px; object-fit:contain; }
body.pt-wiki-theme .dialog-identity h2 { margin:4px 0 6px; font:650 22px/1.2 system-ui,sans-serif; overflow-wrap:anywhere; }
body.pt-wiki-theme .detail-label { display:block; color:var(--muted); font-size:10px; line-height:1.5; letter-spacing:.06em; text-transform:uppercase; }
body.pt-wiki-theme .dialog-close { flex-shrink:0; width:34px; height:34px; padding:0; font:24px/1 system-ui,sans-serif; background:transparent; border:1px solid var(--line); color:var(--muted); }
body.pt-wiki-theme .detail-tabs { display:flex; gap:4px; padding:0 24px; border-bottom:1px solid var(--line); flex-shrink:0; }
body.pt-wiki-theme .detail-tabs button { padding:12px 14px; background:transparent; border:0; border-bottom:2px solid transparent; border-radius:0; color:var(--muted); font:500 12px/1.5 system-ui,sans-serif; }
body.pt-wiki-theme .detail-tabs [aria-selected="true"] { color:var(--accent); border-bottom-color:var(--accent); }
body.pt-wiki-theme .dialog-content { padding:18px 24px; overflow-y:auto; scrollbar-gutter:stable; overscroll-behavior:contain; min-height:0; }
body.pt-wiki-theme .detail-section-title { margin:0 0 14px; font:600 14px/1.5 system-ui,sans-serif; }
body.pt-wiki-theme .detail-bonuses { margin-bottom:22px; }
body.pt-wiki-theme .detail-bonuses .bonus-row { grid-template-columns:30px minmax(0,1fr); font-size:13px; padding:12px 0; }
body.pt-wiki-theme .detail-bonuses .piece { width:30px; height:30px; }
body.pt-wiki-theme .four-piece-talent { padding:18px; border:1px solid #7cddb035; border-left:3px solid #7cddb0; border-radius:5px; background:#7cddb005; }
body.pt-wiki-theme .four-piece-talent h3 { margin:5px 0 12px; font:650 16px/1.4 system-ui,sans-serif; }
/* Each item follows its own text flow; short entries do not inherit empty tracks. */
body.pt-wiki-theme .parallel-cards { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; align-items:start; }
body.pt-wiki-theme .parallel-card { display:block; padding:16px; border:1px solid var(--line); border-radius:6px; background:#10171f; min-width:0; }
body.pt-wiki-theme .parallel-head { display:grid; grid-template-columns:40px minmax(0,1fr); gap:12px; align-items:start; padding-bottom:12px; }
body.pt-wiki-theme .parallel-head :is(img,.unknown-slot) { width:40px; height:40px; object-fit:contain; }
body.pt-wiki-theme .unknown-slot { display:grid; place-items:center; color:var(--gold); }
body.pt-wiki-theme .parallel-head h3 { margin:5px 0 0; color:var(--gold); font:650 17px/1.3 system-ui,sans-serif; overflow-wrap:anywhere; }
body.pt-wiki-theme .parallel-trait { padding:12px 0; border-top:1px solid var(--line); }
body.pt-wiki-theme .parallel-trait > strong { display:block; margin-top:5px; font-size:13px; font-weight:600; }
body.pt-wiki-theme .detail-copy { font-size:13px; line-height:1.6; overflow-wrap:anywhere; }
body.pt-wiki-theme .detail-copy p { margin:0 0 10px; }
body.pt-wiki-theme .detail-copy p:last-child { margin:0; }
body.pt-wiki-theme .detail-copy strong { color:var(--text); font-weight:650; }
body.pt-wiki-theme .attribute-pair { display:grid; gap:10px; margin-top:12px; font-size:12px; }
body.pt-wiki-theme .attribute-pair small { display:block; color:var(--muted); margin-bottom:3px; font-size:10px; }
body.pt-wiki-theme .attribute-pair strong { font-weight:600; }
body.pt-wiki-theme .attribute-pair span:last-child:not(:first-child) strong { color:var(--accent); }
body.pt-wiki-theme .core-breakdown { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin-bottom:22px; }
body.pt-wiki-theme .core-breakdown > div { display:flex; gap:10px; align-items:center; padding:10px; border:1px solid var(--line); border-radius:5px; font-size:12px; }
body.pt-wiki-theme .core-breakdown img { width:24px; height:24px; object-fit:contain; }
body.pt-wiki-theme .core-breakdown small { display:block; color:var(--muted); font-size:10px; }
body.pt-wiki-theme :is(.detail-note,.detail-empty) { color:var(--muted); font-size:12px; line-height:1.7; }
body.pt-wiki-theme .dialog-footer { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:10px; padding:14px 24px; border-top:1px solid var(--line); background:#10171f; flex-shrink:0; color:var(--muted); font-size:11px; }
body.pt-wiki-theme .dialog-footer > div { display:flex; gap:8px; }
body.pt-wiki-theme .set-step { padding:9px 12px; background:transparent; border:1px solid var(--line); color:var(--text); font-size:11px; }
body.pt-wiki-theme .set-step:disabled { opacity:.4; cursor:default; }
body.pt-wiki-theme .static-set-detail { margin-top:24px; padding:24px; border:1px solid var(--line); border-radius:6px; }
@media(max-width:1100px) { body.pt-wiki-theme .sets-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:620px) {
    body.pt-wiki-theme .toolbar { flex-direction:column; align-items:stretch; gap:10px; }
    body.pt-wiki-theme .tabs { align-self:start; }
    body.pt-wiki-theme .sets-grid { grid-template-columns:minmax(0,1fr); }
    body.pt-wiki-theme .results-bar > span:last-child { display:none; }
    body.pt-wiki-theme .parallel-cards { grid-template-columns:minmax(0,1fr); }
    body.pt-wiki-theme .set-dialog { width:calc(100% - 16px); height:min(720px,calc(100dvh - 16px)); max-height:calc(100dvh - 16px); }
    body.pt-wiki-theme .set-dialog[open] { grid-template-rows:132px 46px minmax(0,1fr) 104px; }
    body.pt-wiki-theme :is(.dialog-head,.dialog-content) { padding:18px; }
    body.pt-wiki-theme .dialog-identity h2 { font-size:19px; }
    body.pt-wiki-theme .detail-tabs { padding:0 10px; }
    body.pt-wiki-theme .detail-tabs button { padding:12px 10px; font-size:11px; }
    body.pt-wiki-theme .dialog-footer { padding:12px 18px; }
}
