/* Customer Panel – area styles (servers), 2026-10-12 redesign. Shared tokens and components live in app.css.
   Everything here is prefixed sv- and mobile-first: no fixed widths, touch targets ≥ 40 px, no horizontal page scroll at 390 px. */

.sv-card-title { margin: 0 0 10px; font-size: 1.05rem; font-weight: 650; }
.sv-card-title-sm { margin: 0; font-size: 1rem; overflow-wrap: anywhere; }
.sv-agent-admins { margin-top: 16px; }
.sv-card-title-sm a { color: var(--nx-text); }
.sv-card-title-sm a:hover { color: var(--nx-accent); }
.sv-subtitle { margin: 16px 0 6px; font-size: 0.95rem; font-weight: 650; }
.sv-flush { margin-top: 0; }
.sv-mono { font-family: var(--nx-mono); font-size: 0.85rem; }
.sv-form-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.sv-form-actions .nx-btn { min-height: 40px; }
.sv-touch { min-height: 40px; }
.sv-owner-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.sv-owner-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; overflow-wrap: anywhere; }
.sv-owner-list .nx-btn { min-height: 40px; margin-left: auto; }
.sv-readonly-value { margin: 0 0 6px; font-weight: 600; overflow-wrap: anywhere; }
.sv-readonly-reason, .sv-readonly-alert { margin: 0 0 14px; }
.sv-section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.sv-section-head .sv-card-title { margin: 0; }

/* servers list */
.sv-slots { align-items: center; }
.sv-slots-value { font-size: 1.05rem; font-weight: 650; margin-top: 2px; }
.sv-slots-note { margin: 0; color: var(--nx-text-dim); font-size: 0.86rem; max-width: 520px; }
.sv-create { margin-bottom: 18px; }
.sv-server-link { font-weight: 650; color: var(--nx-text); overflow-wrap: anywhere; }
.sv-server-link:hover { color: var(--nx-accent); }
@media (max-width: 759px) {
    .sv-server-table .nx-cell-actions .nx-btn { width: 100%; }
}

/* server detail */
.sv-head-badges { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 10px; }
.sv-badge-pair { display: inline-flex; align-items: center; gap: 6px; }
.sv-badge-label { font-size: 0.78rem; color: var(--nx-text-faint); }
.sv-tab-panel { outline: none; }
.sv-tab-panel:focus-visible { box-shadow: var(--nx-focus); border-radius: var(--nx-radius-sm); }
.sv-write-only { margin: 10px 0 14px; font-size: 0.86rem; }
.sv-key-result { margin: 4px 0 0; }
.sv-branding-mode { margin-bottom: 12px; }

.sv-color-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sv-color-row .nx-color-swatch:disabled { cursor: not-allowed; opacity: 0.6; }
.sv-color-row .nx-color-hex { flex: 1 1 120px; min-width: 0; }

.sv-logo-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sv-logo-thumb { width: 56px; height: 56px; flex-shrink: 0; }
.sv-logo-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.sv-logo-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sv-logo-mode { font-size: 0.86rem; color: var(--nx-text-dim); }
.sv-logo-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.sv-logo-actions .nx-btn { min-height: 40px; }
.sv-file-label { cursor: pointer; }
.sv-file-input:focus-visible + .sv-file-label { box-shadow: var(--nx-focus); }
.sv-file-label[aria-disabled="true"] { opacity: 0.5; cursor: progress; }

/* IslePilot */
.sv-how { display: flex; flex-direction: column; gap: 4px; margin-bottom: 18px; }
.sv-summary { margin: 0 0 12px; color: var(--nx-text-dim); font-size: 0.9rem; }

/* features matrix */
.sv-feature-table td { vertical-align: top; }
.sv-feature-table .nx-cell-primary { min-width: 200px; }
.sv-origin { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.sv-origin-text { color: var(--nx-text-faint); font-size: 0.78rem; line-height: 1.4; max-width: 260px; }
.sv-requires { color: var(--nx-warning); }
.sv-switch { min-height: 40px; white-space: nowrap; }
@media (max-width: 759px) {
    .sv-feature-table .nx-cell-primary { min-width: 0; }
    .sv-origin { align-items: flex-end; text-align: right; }
    .sv-origin-text { max-width: 60vw; }
}

/* license */
.sv-band-text { margin: 0; flex: 1 1 260px; line-height: 1.5; }
.sv-kpi-badge { font-size: 1rem; }
.sv-license-features .cp-two-col { margin-top: 12px; }

/* usage */
.sv-usage-note { margin: -8px 0 18px; }
.sv-usage-grid { margin-top: 4px; }
.sv-inner-table { border: 0; background: transparent; }
table.nx-table .sv-num { text-align: right; font-variant-numeric: tabular-nums; }
.sv-bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.sv-bar-head { display: flex; justify-content: space-between; gap: 10px; font-size: 0.88rem; margin-bottom: 4px; }
.sv-bar-label { overflow-wrap: anywhere; }
.sv-bar-value { font-variant-numeric: tabular-nums; color: var(--nx-text-dim); }
.sv-bar-track { height: 8px; border-radius: var(--nx-radius-pill); background: var(--nx-bg-inset); overflow: hidden; }
.sv-bar-fill { height: 100%; background: var(--nx-accent); border-radius: inherit; }

/* Remove server (2026-10-12): Owner-only danger card on the General tab. */
.sv-danger { margin-top: 16px; border-color: var(--nx-danger); }
.sv-danger .sv-card-title { color: var(--nx-danger); }
.sv-delete-facts { margin: 0 0 14px; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 0.88rem; color: var(--nx-text-dim); }
.sv-delete-facts li { overflow-wrap: anywhere; }