/* The static IP addresses on the packages page (ip-pool.js). Built from the page's own pieces (section-header,
   kpi-strip, table-card, segmented) so it sits with the packages above it, in both themes. */
.ipp-root { display: grid; gap: 14px; margin-top: 28px; min-width: 0; }
.ipp-root > * { min-width: 0; }
.ipp-head { margin-bottom: 0; }
.ipp-head p { max-width: 90ch; line-height: 1.55; }
.ipp-stats { display: flex; flex-wrap: wrap; gap: 8px 30px; margin: 0; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius-md, 16px); background: var(--panel); }
.ipp-stats div { display: grid; gap: 2px; }
.ipp-stats dt { color: var(--muted); font-size: 11.5px; }
.ipp-stats dd { margin: 0; font-size: 18px; font-weight: 680; font-variant-numeric: tabular-nums; color: var(--text); }
.ipp-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--panel); }
.ipp-bar input[type=search] { flex: 1 1 260px; min-width: 0; min-height: 36px; }
#ipPool .ipp-table { min-width: 0; width: 100%; }
#ipPool .ipp-table th, #ipPool .ipp-table td { text-align: left; vertical-align: middle; }
#ipPool .ipp-table .money { text-align: right; }
.ipp-ip { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ipp-table tr.is-free .ipp-ip { font-weight: 500; color: var(--muted); }
.ipp-free { display: inline-flex; padding: 2px 9px; border-radius: 999px; background: var(--green-bg); color: var(--green); font-size: 12px; font-weight: 650; }
#ipPool .ipp-acts { text-align: right; white-space: nowrap; }
.ipp-acts-in { display: inline-flex; align-items: center; justify-content: flex-end; gap: 4px; flex-wrap: nowrap; }
.ipp-acts-in .btn { margin: 0; }
.ipp-acts-in .row-action { position: relative; flex: none; }
.ipp-n { position: absolute; top: -3px; right: -3px; min-width: 15px; height: 15px; padding: 0 3px; border-radius: 999px; background: var(--primary); color: #fff; font-size: 9.5px; font-weight: 700; line-height: 15px; text-align: center; }
.ipp-form-row td, .ipp-hist-row td { background: var(--panel-muted); }
.ipp-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px 12px; padding: 4px 0; }
.ipp-add .ipp-form { padding: 14px; }
.ipp-form label { display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
.ipp-form input { min-height: 36px; }
.ipp-form .ipp-wide { grid-column: 1 / -1; }
.ipp-form-acts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.ipp-note { margin: 0; color: var(--muted); font-size: 12.5px; }
.ipp-hist { margin: 0; padding: 0 0 0 18px; display: grid; gap: 4px; font-size: 13px; }
.ipp-hist li span { margin-left: 10px; color: var(--muted); }
.ipp-line { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--muted); font: inherit; font-size: 12px; cursor: pointer; }
.ipp-line b { color: var(--text); font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-weight: 600; }
.ipp-line:hover { border-color: var(--primary); }

@media (max-width: 760px) {
  #ipPool .ipp-table thead { display: none; }
  #ipPool .ipp-table, #ipPool .ipp-table tbody, #ipPool .ipp-table tr, #ipPool .ipp-table td { display: block; width: 100%; }
  #ipPool .ipp-table tr { padding: 10px 12px; border-top: 1px solid var(--line); }
  #ipPool .ipp-table td { border: 0; padding: 2px 0; }
  #ipPool .ipp-table td:empty { display: none; }
  #ipPool .ipp-table .money, #ipPool .ipp-acts { text-align: left; }
  #ipPool .ipp-acts { white-space: normal; padding-top: 6px; }
  .ipp-acts-in { flex-wrap: wrap; justify-content: flex-start; }
}

/* tying companies to packages (package-link.js) -- the packages page's own window */
.pkl-modal { width: min(1180px, calc(100vw - 32px)); }
.pkl-seg { margin: 6px 0 10px; flex-wrap: wrap; }
.pkl-seg b { margin-left: 4px; font-variant-numeric: tabular-nums; }
.pkl-scroll { max-height: min(62vh, 640px); overflow: auto; border: 1px solid var(--line); border-radius: var(--radius-sm, 11px); }
#pkgLinkBody .pkl-table { min-width: 0; width: 100%; }
#pkgLinkBody .pkl-table th, #pkgLinkBody .pkl-table td { text-align: left; vertical-align: middle; }
#pkgLinkBody .pkl-table .money { text-align: right; white-space: nowrap; }
#pkgLinkBody .pkl-table th { position: sticky; top: 0; z-index: 2; background: var(--panel-muted); }
.pkl-table select { min-height: 34px; max-width: 290px; }
.pkl-speed { width: 76px; min-height: 34px; }
.pkl-st { display: inline-flex; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: var(--panel-muted); color: var(--muted); }
.pkl-st.is-good { background: var(--green-bg); color: var(--green); }
.pkl-st.is-warn { background: var(--amber-bg); color: var(--amber); }
.pkl-st.is-bad { background: var(--red-bg); color: var(--red); }
.pkl-res { white-space: nowrap; font-weight: 650; font-variant-numeric: tabular-nums; }
.pkl-res.is-ok { color: var(--green); }
.pkl-res.is-bad { color: var(--red); }
.section-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
