/* OC WIKI plan modal: match the site's existing palette and card styling. */
#planDialog { z-index: 90; }
#planDialog .plan-dialog-card { width: min(900px, 96vw); max-height: min(86vh, 820px); overflow-y: auto; box-sizing: border-box; color: var(--text); }
#planDialog h2 { margin: 0 0 8px; }
#planDialog .plan-intro { margin: 0 0 16px; font-size: 13px; color: var(--muted); line-height: 1.6; }
#planDialog .plan-table-scroll { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
#planDialog .plan-table { width: 100%; min-width: 690px; table-layout: fixed; border-collapse: separate; border-spacing: 0; font-size: 13px; text-align: center; color: var(--text); }
#planDialog .plan-table th, #planDialog .plan-table td { padding: 12px 9px; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); vertical-align: middle; line-height: 1.5; }
#planDialog .plan-table thead th { background: #d2edff; font-weight: 700; color: var(--text); }
#planDialog .plan-table thead th:not(:first-child) { font-size: 14px; }
#planDialog .plan-table tbody th { background-color: #d2edff; text-align: center; white-space: normal; font-weight: 600; }
#planDialog .plan-table tbody td { background: #FFFFFF; }
#planDialog .plan-table tr:last-child th, #planDialog .plan-table tr:last-child td { border-bottom: 0; }
#planDialog .plan-table tr th:last-child, #planDialog .plan-table tr td:last-child { border-right: 0; }

#planDialog .plan-table tbody tr:hover td { background: #FFFFFF; }
#planDialog .plan-notes { margin-top: 14px; font-size: 12px; line-height: 1.65; color: var(--muted); }
#planDialog .plan-notes p { margin: 5px 0; }
#planDialog .spoiler-dialog-actions { margin-top: 16px; }
@media (max-width:600px) { #planDialog { padding: 10px; } #planDialog .plan-dialog-card { width: 100%; max-height: 90vh; padding: 14px; } #planDialog .plan-table { font-size: 12px; } #planDialog .plan-table th, #planDialog .plan-table td { padding: 11px 8px; } }

#planDialog .plan-table .plan-qualifier { color: var(--muted); }
#planDialog .plan-table .plan-unavailable { vertical-align: middle; }

/* Plan comparison: consistent column widths, centered labels, balanced cell rhythm. */
#planDialog .plan-table th:first-child { width: 22%; }
#planDialog .plan-table thead th:not(:first-child) { width: 19.5%; }
#planDialog .plan-table tbody th { text-align: center; }
#planDialog .plan-table .plan-qualifier { display: inline-block; font-size: 11px; white-space: nowrap; }
#planDialog .plan-table tbody tr:nth-child(even) td { background: #FFFFFF; }
#planDialog .plan-table tbody tr:hover td { background: #FFFFFF; }
#planDialog .plan-table tbody tr:nth-child(even):hover td { background: #FFFFFF; }
#planDialog .plan-table th, #planDialog .plan-table td { overflow-wrap: break-word; }

/* Match the first column to the existing site table header blue; data cells remain white. */
#planDialog .plan-table tbody tr > th:first-child { background-color: #d2edff; }
#planDialog .plan-table tbody tr > td { background-color: #ffffff; }
