:root {
    color-scheme: light;
    --ink: #172338;
    --muted: #778397;
    --muted-dark: #59677b;
    --line: #e5eaf1;
    --paper: #fff;
    --canvas: #f5f7fb;
    --navy: #14213a;
    --navy-light: #1c2b48;
    --blue: #4169e1;
    --blue-dark: #3154c6;
    --blue-soft: #edf2ff;
    --green: #16845b;
    --green-soft: #e8f7ef;
    --amber: #a96f17;
    --red: #b54646;
    --shadow: 0 8px 24px #2038560a, 0 1px 3px #20385608;
    font-family: "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
body { min-width: 320px; margin: 0; background: var(--canvas); color: var(--ink); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }

.app-layout { min-height: 100vh; }
.sidebar { position: fixed; z-index: 10; inset: 0 auto 0 0; display: flex; width: 252px; flex-direction: column; padding: 25px 16px 18px; background: var(--navy); color: #d8e1f0; }
.mobile-nav-toggle { display: none; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.sidebar > .brand { padding: 0 10px 29px; }
.brand-mark { display: block; width: 46px; height: 46px; flex: 0 0 auto; border: 1px solid #ffffff24; border-radius: 10px; object-fit: cover; box-shadow: 0 6px 16px #00000030; }
.brand-name { display: flex; flex-direction: column; color: white; font-size: 20px; font-weight: 750; letter-spacing: -.6px; line-height: 1.1; }
.brand-word { white-space: nowrap; }
.brand-name small { margin-top: 6px; color: #8d9bb3; font-size: 8px; font-weight: 700; letter-spacing: 1px; }
.sidebar-caption { padding: 4px 12px 11px; color: #7e8ca5; font-size: 10px; font-weight: 700; letter-spacing: 1.45px; }
.sidebar-nav { display: grid; gap: 5px; }
.sidebar-nav a { position: relative; display: flex; min-height: 44px; align-items: center; gap: 12px; padding: 0 12px; border: 1px solid transparent; border-radius: 9px; color: #aab7ca; font-size: 13px; font-weight: 550; transition: color .16s ease, background .16s ease, border-color .16s ease; }
.sidebar-nav a:hover { background: #ffffff0d; color: #fff; }
.sidebar-nav a.active { border-color: #ffffff12; background: linear-gradient(100deg, #4169e133, #4169e119); color: #fff; box-shadow: inset 3px 0 #7290ff; }
.nav-icon { width: 19px; height: 19px; flex: 0 0 auto; opacity: .9; }
.sidebar-nav a.active .nav-icon { color: #93aaff; }
.nav-live-dot { width: 7px; height: 7px; margin-left: auto; border-radius: 50%; background: #43d69c; box-shadow: 0 0 0 4px #43d69c1c; }
.mobile-nav-context { display: none; }
.sidebar-bottom { margin-top: auto; }
.sidebar-secure { display: flex; align-items: center; gap: 11px; padding: 13px 12px; border: 1px solid #ffffff12; border-radius: 10px; background: #ffffff08; }
.secure-icon { display: grid; width: 29px; height: 29px; flex: 0 0 auto; place-items: center; border-radius: 9px; background: #3ed39820; color: #57dfa8; font-size: 15px; font-weight: 700; }
.sidebar-secure strong, .sidebar-secure small { display: block; }
.sidebar-secure strong { color: #e8eef9; font-size: 11px; font-weight: 650; }
.sidebar-secure small { margin-top: 4px; color: #8b9ab2; font-size: 10px; }
.sidebar-version { display: flex; justify-content: space-between; padding: 17px 5px 0; color: #718099; font-size: 9px; font-weight: 700; letter-spacing: 1.1px; }
.sidebar-version span { color: #8795aa; font-weight: 500; letter-spacing: 0; }

.app-main { min-height: 100vh; margin-left: 252px; }
.topbar { position: sticky; z-index: 5; top: 0; display: flex; min-height: 74px; align-items: center; justify-content: space-between; gap: 20px; padding: 0 36px; border-bottom: 1px solid var(--line); background: #ffffffed; backdrop-filter: blur(12px); }
.topbar.links-header { display: none; }
.links-header .brand-name { color: var(--ink); }
.links-header .brand-name small { color: var(--muted); }
.topbar-context, .topbar-account { display: flex; align-items: center; }
.topbar-context { gap: 12px; min-width: 0; }
.topbar-eyebrow { color: #8290a3; font-size: 10px; font-weight: 700; letter-spacing: 1.15px; white-space: nowrap; }
.topbar-separator { color: #c0c9d5; }
.topbar-title { overflow: hidden; color: var(--ink); font-size: 13px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.topbar-account { gap: 10px; flex: 0 0 auto; }
.router-switch-form { display: flex; align-items: center; gap: 5px; margin: 0; }
.router-switch-form select { width: auto; min-height: 34px; padding: 6px 25px 6px 9px; font-size: 10px; }
.router-switch-form .button { min-height: 34px; padding: 6px 9px; font-size: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; clip-path: inset(50%); }
.account-avatar { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid #dbe4ff; border-radius: 50%; background: var(--blue-soft); color: var(--blue-dark); font-size: 10px; font-weight: 750; }
.account-copy strong, .account-copy small { display: block; }
.account-copy strong { color: #344258; font-size: 11px; font-weight: 650; }
.account-copy small { margin-top: 3px; color: #8994a4; font-size: 10px; }
.account-divider { width: 1px; height: 28px; margin: 0 3px 0 9px; background: var(--line); }
.logout-form { margin: 0; }
.logout-button { display: flex; align-items: center; gap: 8px; padding: 8px 10px; }
.logout-button svg { width: 17px; height: 17px; }
.password-change-button { min-height: 34px; padding: 7px 9px; white-space: nowrap; }

.container { width: min(1450px, 100%); min-height: calc(100vh - 135px); margin: 0 auto; padding: 32px 36px 56px; }
.hotspot-tabs { display: flex; gap: 5px; overflow-x: auto; margin: -5px 0 25px; padding: 6px; border: 1px solid #cbd5e4; border-radius: 11px; background: #edf1f7; box-shadow: 0 1px 3px #20385612; scrollbar-width: thin; }
.hotspot-tabs a { display: inline-flex; min-height: 40px; flex: 0 0 auto; align-items: center; justify-content: center; padding: 0 17px; border: 1px solid #d4dce8; border-radius: 7px; background: #fff; color: #46556b; font-size: 13px; font-weight: 650; white-space: nowrap; transition: color .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease; }
.hotspot-tabs a:hover { border-color: #8aa5ed; background: #f3f6ff; color: #2449b5; }
.hotspot-tabs a.active { border-color: #3154c6; background: #4169e1; color: #fff; box-shadow: 0 2px 5px #3154c63b; }
.hotspot-tabs a:focus-visible { outline: 2px solid var(--blue); outline-offset: -3px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.links-page-actions { display: flex; flex: 0 1 500px; align-items: center; justify-content: flex-end; gap: 9px; }
.links-search { min-width: 0; flex: 1 1 220px; }
.links-page-actions > .button { flex: 0 0 auto; white-space: nowrap; }
h1, h2, h3 { margin: 0; color: var(--ink); font-family: "Segoe UI", Arial, sans-serif; }
h1 { font-size: clamp(24px, 2.5vw, 31px); font-weight: 720; letter-spacing: -.8px; line-height: 1.2; }
h2 { font-size: 15px; font-weight: 680; letter-spacing: -.1px; }
h3 { font-size: 14px; font-weight: 650; }
.subtitle { margin: 7px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.grid { display: grid; gap: 17px; }
.stats { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 22px 0; }
.host-summary { max-width: 620px; margin: 0 0 16px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); box-shadow: var(--shadow); }
.host-summary-table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; text-align: left; }
.host-summary-table th { padding: 11px 16px 4px; border-right: 1px solid var(--line); background: #f8f9fc; color: var(--muted); font-size: 9px; font-weight: 750; letter-spacing: .055em; line-height: 1.2; }
.host-summary-table td { padding: 3px 16px 11px; border-right: 1px solid var(--line); background: #f8f9fc; color: var(--ink); font-size: 22px; font-weight: 720; letter-spacing: -.4px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.host-summary-table th:last-child, .host-summary-table td:last-child { border-right: 0; }
.host-summary-table td:nth-child(2) { color: var(--blue-dark); }
.host-summary-table td:nth-child(3) { color: var(--green); }
.dashboard-live-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 22px 0 14px; }
.failed-login-monitor { margin: 0 0 14px; }
.failed-login-alert { display: flex; width: 100%; min-height: 54px; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid #d83a42; border-radius: 10px; background: #b4232d; color: #fff; text-align: left; cursor: pointer; }
.failed-login-alert[hidden], .failed-login-status[hidden] { display: none; }
.failed-login-alert:hover { background: #971b24; }
.failed-login-alert.is-unseen { animation: failed-login-blink 1.1s steps(2, start) infinite; }
.failed-login-alert-icon { display: grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center; border: 1px solid #ffffff80; border-radius: 50%; font-size: 19px; font-weight: 800; }
.failed-login-alert-copy { display: grid; min-width: 0; flex: 1 1 auto; gap: 3px; }
.failed-login-alert-copy strong { font-size: 13px; font-weight: 750; line-height: 1.35; overflow-wrap: anywhere; }
.failed-login-alert-copy small { color: #ffe3e4; font-size: 10px; line-height: 1.4; overflow-wrap: anywhere; }
.failed-login-alert-count { flex: 0 0 auto; border: 1px solid #ffffff70; border-radius: 999px; padding: 4px 8px; font-size: 10px; font-weight: 700; white-space: nowrap; }
.failed-login-status { margin: 0; color: var(--red); font-size: 11px; }
.failed-login-dialog { width: min(940px, calc(100vw - 32px)); max-width: none; overflow: hidden; }
.failed-login-dialog-summary { padding: 13px 18px; color: var(--muted-dark); font-size: 11px; }
.failed-login-table-wrap { max-height: min(58vh, 560px); overflow: auto; border-top: 1px solid var(--line); }
.failed-login-table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 11px; }
.failed-login-table th, .failed-login-table td { padding: 9px 10px; border-bottom: 1px solid #edf0f5; text-align: left; vertical-align: top; }
.failed-login-table th { position: sticky; top: 0; z-index: 1; background: #f0f3f8; color: #53627a; font-size: 9px; white-space: nowrap; }
.failed-login-table td { color: #334158; overflow-wrap: anywhere; }
.failed-login-table td:nth-child(1), .failed-login-table td:nth-child(4) { white-space: nowrap; font-variant-numeric: tabular-nums; }
.failed-login-updated { margin-right: auto; color: var(--muted); font-size: 9px; }
@keyframes failed-login-blink { 50% { border-color: #ef4444; background: #f04444; box-shadow: 0 0 0 4px #f0444430; } }
@media (prefers-reduced-motion: reduce) { .failed-login-alert.is-unseen { animation: none; box-shadow: 0 0 0 3px #f0444440; } }
.dashboard-live-stat { min-height: 124px; }
.dashboard-live-stat .stat-label { padding-right: 34px; line-height: 1.35; }
.dashboard-cpu-stat { min-height: 160px; }
.dashboard-cpu-stat::after { display: none; }
.cpu-gauge { --cpu-color: #aab4c2; display: flex; flex: 1 1 auto; flex-direction: column; align-items: center; justify-content: center; color: var(--cpu-color); }
.cpu-gauge[data-level="green"] { --cpu-color: #16a34a; }
.cpu-gauge[data-level="yellow"] { --cpu-color: #d99a12; }
.cpu-gauge[data-level="red"] { --cpu-color: #dc3f45; }
.cpu-gauge svg { display: block; width: 100%; max-width: 170px; height: auto; overflow: visible; }
.cpu-gauge-track, .cpu-gauge-progress { fill: none; stroke-linecap: round; stroke-width: 9; }
.cpu-gauge-track { stroke: #e9eef5; }
.cpu-gauge-progress { stroke: var(--cpu-color); stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset .65s cubic-bezier(.2,.75,.25,1), stroke .25s ease; }
.cpu-gauge-needle { stroke: var(--cpu-color); stroke-linecap: round; stroke-width: 2.5; transform-box: view-box; transition: transform .65s cubic-bezier(.2,.75,.25,1), stroke .25s ease; }
.cpu-gauge-hub { fill: #fff; stroke: var(--cpu-color); stroke-width: 2; }
.cpu-gauge-readout { display: flex; align-items: baseline; justify-content: center; gap: 2px; margin-top: -4px; color: var(--cpu-color); font-variant-numeric: tabular-nums; }
.cpu-gauge-readout strong { font-size: 19px; font-weight: 700; letter-spacing: -.4px; line-height: 1; }
.cpu-gauge-readout span { color: var(--muted); font-size: 9px; font-weight: 650; }
.cpu-gauge-status { margin-top: 2px; color: var(--cpu-color); font-size: 9px; font-weight: 700; }
.dashboard-stat-text { overflow-wrap: anywhere; font-size: clamp(16px, 1.5vw, 22px); line-height: 1.2; white-space: pre-line; }
.dashboard-interface-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 18px; }
.dashboard-interface-card { padding: 17px 20px; }
.dashboard-interface-card .card-heading { margin-bottom: 4px; }
.dashboard-interface-card .card-heading h2 { display: flex; min-width: 0; align-items: baseline; gap: 8px; }
.dashboard-interface-ip { color: var(--muted); font-family: Consolas, "Courier New", monospace; font-size: 10px; font-weight: 550; letter-spacing: 0; white-space: nowrap; }
.live-indicator { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; background: #20b77a; box-shadow: 0 0 0 4px #20b77a1c; }
.dashboard-interface-card[data-state="unavailable"] .live-indicator { background: #a7b0bd; box-shadow: 0 0 0 4px #a7b0bd1c; }
.interface-gauges { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.traffic-gauge { --gauge-color: #16a34a; min-width: 0; text-align: center; }
.traffic-gauge[data-level="green"] { --gauge-color: #16a34a; }
.traffic-gauge[data-level="yellow"] { --gauge-color: #d99a12; }
.traffic-gauge[data-level="red"] { --gauge-color: #dc3f45; }
.traffic-gauge[data-level="unavailable"] { --gauge-color: #aab4c2; }
.traffic-gauge-label { color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .08em; }
.traffic-gauge-dial { display: block; width: 100%; max-width: 190px; height: auto; margin: 0 auto -4px; overflow: visible; }
.traffic-gauge-track, .traffic-gauge-progress { fill: none; stroke-linecap: round; stroke-width: 9; }
.traffic-gauge-track { stroke: #e9eef5; }
.traffic-gauge-progress { stroke: var(--gauge-color); stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset .65s cubic-bezier(.2,.75,.25,1), stroke .25s ease; }
.traffic-gauge-needle { stroke: var(--gauge-color); stroke-linecap: round; stroke-width: 2.5; transform-box: view-box; transition: transform .65s cubic-bezier(.2,.75,.25,1), stroke .25s ease; }
.traffic-gauge-hub { fill: #fff; stroke: var(--gauge-color); stroke-width: 2; }
.traffic-gauge-readout { display: flex; align-items: baseline; justify-content: center; gap: 4px; margin-top: -3px; color: var(--gauge-color); font-variant-numeric: tabular-nums; }
.traffic-gauge-readout strong { font-size: 19px; font-weight: 650; letter-spacing: -.45px; }
.traffic-gauge-readout span { color: var(--muted); font-size: 9px; font-weight: 650; }
.traffic-gauge-scale { display: flex; justify-content: space-between; max-width: 170px; margin: 0 auto; color: #9aa5b5; font-size: 8px; font-variant-numeric: tabular-nums; }
.dashboard-interface-card[data-state="unavailable"] .traffic-gauge-progress { stroke: #b5bfce; filter: none; }
.dashboard-interface-card[data-state="unavailable"] .traffic-gauge-needle { stroke: #aab4c2; }
.stat, .card { min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); box-shadow: var(--shadow); }
.stat { position: relative; overflow: hidden; min-height: 119px; padding: 20px; }
.stat::after { position: absolute; top: 17px; right: 18px; width: 30px; height: 30px; border-radius: 9px; background: var(--blue-soft); content: ""; }
.stat-label { color: var(--muted-dark); font-size: 12px; font-weight: 550; }
.stat-value { margin-top: 14px; color: var(--ink); font-size: 27px; font-weight: 720; letter-spacing: -.7px; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-detail { margin-top: 9px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.stats .stat:last-child .stat-detail { max-width: 260px; margin-top: 16px; }
.two-column { grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr); }
.logs-audit-grid { grid-template-columns: minmax(0, 1fr); }
.audit-table { table-layout: fixed; }
.audit-table th:nth-child(1), .audit-table td:nth-child(1) { width: 31%; white-space: nowrap; }
.audit-table th:nth-child(2), .audit-table td:nth-child(2) { width: 16%; }
.audit-table th:nth-child(3), .audit-table td:nth-child(3) { width: 18%; }
.audit-table th:nth-child(4), .audit-table td:nth-child(4) { width: 35%; overflow-wrap: anywhere; }
.card { padding: 20px; }
.card-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.host-card-heading { flex-wrap: wrap; }
.host-page-heading { align-items: center; }
.host-page-heading h1 { display: inline-flex; align-items: baseline; gap: 12px; }
.host-page-heading .live-status { flex: 0 0 auto; }
.host-search { width: min(260px, 100%); min-height: 34px; margin-left: auto; }
.live-controls { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.live-status { color: var(--green); font-size: 11px; font-weight: 650; white-space: nowrap; }
.live-status[data-state="error"] { color: var(--red); }
.queue-rate { white-space: nowrap; }
.host-actions { display: flex; min-width: 128px; align-items: center; justify-content: flex-end; gap: 7px; }
.host-delete-form { display: inline-flex; margin: 0; }
.button.host-delete-button { width: 30px; min-width: 30px; min-height: 30px; padding: 6px; border-color: #f0d7d6; color: var(--red); }
.host-delete-button:hover { border-color: #e7b9b7; background: #fff3f2; color: #963e3c; }
.button.host-delete-button svg { width: 15px; height: 15px; flex: 0 0 15px; }
.host-delete-confirm-dialog { width: min(440px, calc(100vw - 32px)); max-width: none; overflow: hidden; }
.host-delete-confirm-copy { padding: 18px 22px 8px; color: #526076; font-size: 12px; line-height: 1.6; }
.host-delete-confirm-copy p { margin: 0 0 9px; }
.host-delete-confirm-copy strong { color: var(--ink); }
.host-delete-confirm-dialog .binding-actions { padding: 13px 20px 17px; }
.links-table tbody tr[data-link-row] { cursor: pointer; }
.queue-table tbody tr[data-queue-id] { cursor: pointer; }
.queue-table tbody tr[data-queue-id]:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.user-table tbody tr[data-user-id] { cursor: pointer; }
.user-table tbody tr[data-user-id]:hover { background: var(--blue-soft); }
.user-table tbody tr[data-user-id]:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.user-detail-dialog { overflow: hidden; }
.user-detail-dialog .binding-titlebar h2 { margin-top: 4px; color: #fff; font-size: 17px; }
.user-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 5px 14px; }
.user-detail-grid > div { display: grid; align-content: center; gap: 6px; min-width: 0; min-height: 62px; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.user-detail-grid > div > span:first-child { color: var(--muted); font-size: 9px; font-weight: 750; letter-spacing: .055em; }
.user-detail-grid > div > strong { min-width: 0; color: #334158; font-size: 11px; font-weight: 600; overflow-wrap: anywhere; }
.user-detail-grid .user-detail-comment { grid-column: 1 / -1; }
.user-detail-dialog .binding-actions form { margin: 0 auto 0 0; }
.queue-detail-dialog { overflow: hidden; }
.queue-detail-dialog .binding-titlebar h2 { margin-top: 4px; color: #fff; font-size: 17px; }
.queue-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 5px 14px; }
.queue-detail-grid > div { display: grid; align-content: center; gap: 6px; min-width: 0; min-height: 62px; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.queue-detail-grid > div > span:first-child { color: var(--muted); font-size: 9px; font-weight: 750; letter-spacing: .055em; }
.queue-detail-grid > div > strong { min-width: 0; color: #334158; font-size: 11px; font-weight: 600; overflow-wrap: anywhere; }
.queue-detail-grid .queue-detail-comment { grid-column: 1 / -1; }
.link-detail-dialog { overflow: hidden; }
.link-detail-dialog .binding-titlebar h2 { margin-top: 4px; color: #fff; font-size: 17px; }
.link-detail-grid .link-detail-url { grid-column: 1 / -1; }
.link-detail-url a { color: var(--blue-dark); }
.queue-table tbody tr[data-queue-id].queue-usage-low > td { background-color: #eaf7ef; }
.queue-table tbody tr[data-queue-id].queue-usage-medium > td { background-color: #fff7df; }
.queue-table tbody tr[data-queue-id].queue-usage-high > td { background-color: #ffebea; }
.queue-table tbody tr[data-queue-id].queue-usage-low > td:first-child { background-color: #eaf7ef; }
.queue-table tbody tr[data-queue-id].queue-usage-medium > td:first-child { background-color: #fff7df; }
.queue-table tbody tr[data-queue-id].queue-usage-high > td:first-child { background-color: #ffebea; }
.button:disabled { opacity: .6; cursor: wait; }
.host-traffic-rate { font-variant-numeric: tabular-nums; white-space: nowrap; }
.host-detail-dialog { overflow: hidden; }
.host-detail-dialog .binding-titlebar h2 { margin-top: 4px; color: #fff; font-size: 17px; }
.host-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 5px 14px; }
.host-detail-grid > div { display: grid; align-content: center; gap: 6px; min-width: 0; min-height: 62px; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.host-detail-grid > div > span:first-child { color: var(--muted); font-size: 9px; font-weight: 750; letter-spacing: .055em; }
.host-detail-grid > div > strong, .host-detail-grid > div > div { min-width: 0; color: #334158; font-size: 11px; font-weight: 600; overflow-wrap: anywhere; }
.host-detail-grid .mono { font-size: 10px; }
.host-detail-grid > div > div .button { display: inline-flex; }
.host-detail-dialog .binding-actions { justify-content: flex-end; padding: 11px 18px 16px; }
.sort-button { display: inline-flex; align-items: center; gap: 5px; border: 0; padding: 2px 0; background: transparent; color: inherit; font-size: inherit; font-weight: inherit; letter-spacing: inherit; text-transform: inherit; white-space: nowrap; cursor: pointer; }
.sort-button:hover, th[aria-sort] .sort-button { color: var(--blue-dark); }
.sort-button span { color: var(--blue); font-size: 13px; }
.table-wrap { overflow-x: auto; border: 1px solid #e9edf3; border-radius: 9px; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th { padding: 12px 12px; border-bottom: 1px solid var(--line); background: #f8f9fc; color: #758196; font-size: 10px; font-weight: 700; letter-spacing: .055em; text-align: left; text-transform: uppercase; white-space: nowrap; }
th:first-child { border-top-left-radius: 8px; }
th:last-child { border-top-right-radius: 8px; }
td { padding: 12px; border-bottom: 1px solid #edf0f5; color: #3b485b; vertical-align: middle; }
tbody tr { transition: background .14s ease; }
tbody tr:hover { background: #f8faff; }
tbody tr:last-child td { border-bottom: 0; }
th[aria-sort="ascending"] .sort-button span, th[aria-sort="descending"] .sort-button span { color: var(--blue-dark); }

.button { display: inline-flex; min-height: 36px; align-items: center; justify-content: center; gap: 7px; border: 1px solid transparent; border-radius: 8px; padding: 8px 13px; background: var(--blue); box-shadow: 0 2px 4px #4169e11c; color: white; font-size: 12px; font-weight: 650; cursor: pointer; transition: background .15s ease, border-color .15s ease, box-shadow .15s ease; }
.button:hover { background: var(--blue-dark); box-shadow: 0 4px 10px #4169e12e; }
.button-quiet { border-color: #e3e8ef; background: #fff; box-shadow: none; color: #5a687c; }
.button-quiet:hover { border-color: #cfd8e5; background: #f8faff; box-shadow: none; color: var(--ink); }
.button-danger { border-color: #f6d9d8; background: #fff3f2; box-shadow: none; color: var(--red); }
.button-danger:hover { border-color: #efc4c2; background: #ffe9e7; box-shadow: none; }
.button-small { min-height: 30px; padding: 6px 9px; font-size: 11px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.password-input-wrap { position: relative; }
.password-input-wrap input { padding-right: 42px; }
.password-visibility { position: absolute; top: 50%; right: 5px; display: grid; width: 32px; height: 32px; place-items: center; transform: translateY(-50%); border: 0; border-radius: 6px; background: transparent; color: #738197; cursor: pointer; }
.password-visibility:hover { background: #f1f4fa; color: var(--blue-dark); }
.password-visibility svg { width: 18px; height: 18px; }
.password-eye-slash { display: none; }
.password-visibility[aria-pressed="true"] .password-eye-slash { display: block; }
label { color: #4d5b70; font-size: 11px; font-weight: 650; }
input, select, textarea { width: 100%; min-height: 38px; border: 1px solid #dce3ec; border-radius: 8px; outline: none; background: #fff; color: var(--ink); padding: 9px 11px; font-size: 12px; transition: border-color .15s ease, box-shadow .15s ease; }
input::placeholder, textarea::placeholder { color: #a2acba; }
input:focus, select:focus, textarea:focus { border-color: #7893ee; box-shadow: 0 0 0 3px #4169e117; }
input[type="checkbox"] { min-height: 0; accent-color: var(--blue); }
.form-actions { display: flex; align-items: center; gap: 9px; margin-top: 17px; }
.inline-form { display: inline-flex; align-items: center; gap: 7px; }
.stack { display: grid; gap: 16px; }
.notice { margin: 0 0 18px; padding: 12px 15px; border: 1px solid transparent; border-radius: 9px; font-size: 12px; line-height: 1.5; }
.success { border-color: #d2eddf; background: #effaf4; color: #176345; }
.error { border-color: #f2d8d7; background: #fff4f3; color: #963e3c; }
.badge { display: inline-flex; align-items: center; gap: 5px; border: 1px solid #d7eee2; border-radius: 99px; background: var(--green-soft); color: #17724f; padding: 4px 9px; font-size: 10px; font-weight: 700; white-space: nowrap; }
.badge.off { border-color: #e7eaf0; background: #f2f4f7; color: #68768a; }
.muted { color: var(--muted); }
.mono { font-family: Consolas, "Courier New", monospace; font-size: 11px; }
.empty { padding: 27px; color: var(--muted); text-align: center; }
.router-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; }
.router-summary div { padding: 11px 0; border-bottom: 1px solid var(--line); }
.router-summary dt { margin-bottom: 5px; color: var(--muted); font-size: 10px; }
.router-summary dd { overflow-wrap: anywhere; margin: 0; color: #334158; font-size: 12px; font-weight: 620; }
.ping-page-heading { align-items: center; }
.ping-router-badge { min-height: 31px; border-color: #d7eee2; padding: 6px 10px; }
.ping-live-dot, .ping-reply-status > span { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: #20b77a; box-shadow: 0 0 0 3px #20b77a1c; }
.ping-workspace { display: grid; grid-template-columns: minmax(265px, .7fr) minmax(0, 1.3fr); align-items: start; gap: 16px; }
.ping-form { display: grid; gap: 19px; padding: 22px; }
.ping-form-heading { display: flex; align-items: center; gap: 12px; }
.ping-form-icon { display: grid; width: 40px; height: 40px; flex: 0 0 auto; place-items: center; border: 1px solid #dfe7fb; border-radius: 10px; background: var(--blue-soft); color: var(--blue-dark); }
.ping-form-icon svg { width: 21px; height: 21px; }
.ping-form-heading h2 { font-size: 14px; }
.ping-form-heading p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.ping-form-fields { display: grid; grid-template-columns: minmax(0, 1fr) 88px; align-items: end; gap: 12px; }
.ping-submit { justify-self: start; min-height: 39px; }
.ping-submit svg { width: 16px; height: 16px; }
.ping-form-footnote { margin: -8px 0 0; color: var(--muted); font-size: 10px; }
.ping-empty-state { display: flex; min-height: 210px; flex-direction: column; align-items: center; justify-content: center; gap: 14px; border: 1px dashed #cbd5e4; border-radius: 10px; background: #f9fafd; color: var(--muted); font-size: 12px; }
.ping-empty-mark { display: grid; width: 54px; height: 54px; place-items: center; border: 1px solid #e0e7f3; border-radius: 15px; background: #fff; color: #8394b3; }
.ping-empty-mark svg { width: 35px; height: 35px; }
.ping-result-card { min-width: 0; padding: 20px; }
.ping-result-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 17px; }
.ping-result-heading .eyebrow { margin-bottom: 5px; }
.ping-result-heading h2 { overflow-wrap: anywhere; font-family: Consolas, "Courier New", monospace; font-size: 16px; }
.ping-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-bottom: 16px; }
.ping-metric { display: grid; min-width: 0; min-height: 72px; align-content: center; gap: 7px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 8px; background: #fafbfd; }
.ping-metric > span { color: var(--muted); font-size: 8px; font-weight: 750; letter-spacing: .06em; }
.ping-metric > strong { overflow: hidden; color: var(--ink); font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; text-overflow: ellipsis; white-space: nowrap; }
.ping-table-wrap { overflow-x: auto; border: 1px solid #e9edf3; border-radius: 8px; }
.ping-table { min-width: 450px; font-size: 11px; }
.ping-table th { padding: 9px 10px; font-size: 9px; }
.ping-table td { padding: 9px 10px; }
.ping-reply-status { display: inline-flex; align-items: center; gap: 7px; color: var(--green); font-size: 10px; font-weight: 650; }
.ping-reply-status.is-timeout { color: var(--red); }
.ping-reply-status.is-timeout > span { background: #c44545; box-shadow: 0 0 0 3px #c445451c; }
.ping-tested-at { margin: 12px 0 0; color: var(--muted); font-size: 9px; text-align: right; }
.voucher-print { white-space: pre-wrap; }
.fingerprint { font-size: 11px; overflow-wrap: anywhere; }
.small-check { width: auto; }
.section-spaced { margin-top: 16px; }
.section-spaced-small { margin-top: 15px; }
.binding-dialog { width: min(520px, calc(100vw - 32px)); max-width: none; padding: 0; border: 1px solid #d9e0e9; border-radius: 14px; color: var(--ink); box-shadow: 0 22px 70px #14213a38; }
.password-dialog { overflow: hidden; }
.password-dialog .binding-titlebar h2 { margin-top: 4px; color: #fff; font-size: 17px; }
.queue-dialog { width: min(700px, calc(100vw - 32px)); }
.port-forward-dialog { width: min(520px, calc(100vw - 32px)); }
.port-forward-dialog form { display: grid; gap: 12px; padding-top: 16px; }
.port-forward-dialog form > label { display: grid; gap: 6px; padding: 0 20px; }
.port-forward-dialog .binding-actions { margin-top: 3px; }
.port-forward-table { min-width: 720px; }
.port-forward-card-heading { flex-wrap: nowrap; align-items: center; }
.port-forward-card-heading h2 { flex: 0 0 auto; white-space: nowrap; }
.port-forward-card-heading .customer-search { min-width: 0; flex: 1 1 auto; }
.port-forward-actions { display: flex; align-items: center; gap: 7px; }
.port-forward-actions form { margin: 0; }
.role-user main [data-port-forward-create],
.role-user main [data-port-forward-edit] { display: none !important; }
.user-dialog { width: min(700px, calc(100vw - 32px)); }
.user-dialog .form-grid { padding: 22px; }
.customer-dialog { width: min(680px, calc(100vw - 32px)); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overflow: hidden; }
.customer-dialog form { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; max-height: calc(100vh - 26px); max-height: calc(100dvh - 26px); }
.bandwidth-dialog { width: min(680px, calc(100vw - 32px)); overflow: hidden; }
.bandwidth-dialog .binding-titlebar h2 { margin-top: 4px; color: #fff; font-size: 17px; }
.bandwidth-dialog-body { padding: 22px 24px 8px; }
.bandwidth-dialog-body > .subtitle { margin: 0 0 16px; color: #344258; font-size: 13px; font-weight: 650; }
.last-seen-panel { display: grid; gap: 7px; margin-bottom: 14px; padding: 13px 15px; border: 1px solid #dce7f8; border-radius: 10px; background: linear-gradient(110deg, #f3f7ff, #fbfcff); }
.last-seen-panel > span { color: var(--muted); font-size: 9px; font-weight: 750; letter-spacing: .08em; }
.last-seen-panel > strong { color: #294b9c; font-size: 14px; font-weight: 720; }
.last-seen-panel > small { color: var(--muted); font-size: 10px; }
.bandwidth-period-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.bandwidth-period { display: grid; min-height: 112px; align-content: start; gap: 9px; padding: 16px; border: 1px solid var(--line); border-radius: 11px; background: #fbfcff; }
.bandwidth-period-primary { border-color: #d9e3ff; background: linear-gradient(140deg, #f4f7ff, #fbfcff); }
.bandwidth-period > span { color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: .08em; }
.bandwidth-period > strong { color: var(--ink); font-size: 21px; font-weight: 730; letter-spacing: -.45px; font-variant-numeric: tabular-nums; }
.bandwidth-period > small { color: var(--muted); font-size: 10px; line-height: 1.4; }
.bandwidth-note { min-height: 31px; margin: 15px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }
.bandwidth-note[data-state="error"] { color: var(--red); }
.bandwidth-dialog .binding-actions { justify-content: flex-end; padding: 12px 24px 18px; }
.customer-name-link { display: inline; width: auto; min-height: 0; border: 0; padding: 0; background: transparent; color: var(--ink); font-size: inherit; font-weight: 700; text-align: left; cursor: pointer; }
.customer-name-link:hover { color: var(--blue-dark); text-decoration: underline; text-underline-offset: 3px; }
.customer-name-link:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
.customer-dialog .binding-titlebar { padding: 19px 24px; }
.customer-dialog .binding-titlebar h2 { margin-top: 4px; font-size: 17px; }
.customer-form-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 23px 24px 8px; }
.customer-form-body .form-grid { margin: 15px 0 24px; }
.customer-form-body .form-grid:last-of-type { margin-bottom: 12px; }
.form-section-label { display: flex; align-items: center; gap: 9px; color: #344258; font-size: 12px; font-weight: 700; }
.form-section-label span { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 8px; background: var(--blue-soft); color: var(--blue-dark); font-size: 10px; }
.dialog-eyebrow { color: #a9b8d7; font-size: 9px; font-weight: 750; letter-spacing: 1.4px; }
.customer-dialog-note { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.customer-dialog .binding-actions { position: sticky; bottom: 0; z-index: 1; padding: 15px 24px; background: var(--paper); }
.binding-dialog::backdrop { background: #14213a70; backdrop-filter: blur(3px); }
.binding-form { display: grid; gap: 0; }
.binding-titlebar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-radius: 13px 13px 0 0; background: linear-gradient(115deg, var(--navy), #24385f); color: #fff; }
.binding-titlebar h2 { color: #fff; font-size: 14px; }
.dialog-x { width: 30px; height: 30px; padding: 0; border: 1px solid #ffffff24; border-radius: 8px; background: #ffffff10; color: #fff; font-size: 21px; cursor: pointer; }
.binding-fields { display: grid; grid-template-columns: 120px minmax(0, 1fr); align-items: center; gap: 12px; padding: 22px; }
.binding-fields > label, .binding-fields > span { color: #45554c; font-size: 12px; font-weight: 600; }
.binding-fields input, .binding-fields select { min-width: 0; }
.queue-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; padding: 22px; }
.queue-enabled { display: flex; align-items: center; gap: 8px; align-self: center; }
.queue-enabled input { width: auto; }
.binding-enabled { display: flex; align-items: center; gap: 8px; font-weight: 400 !important; }
.binding-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 9px; padding: 14px 20px; border-top: 1px solid var(--line); }
.customer-heading { align-items: center; }
.eyebrow { display: block; margin-bottom: 8px; color: #6f83b0; font-size: 9px; font-weight: 750; letter-spacing: 1.55px; }
.customer-heading h1 { letter-spacing: -1px; }
.customer-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 0; }
.payment-stats.customer-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.customer-stat { min-height: 112px; padding: 18px 19px; }
.customer-stat::after { display: none; }
.customer-stat .stat-value { font-size: 29px; }
.customer-stat-warning::after { background: #fff2dc; }
.customer-stat-warning .stat-value { color: var(--amber); }
.customer-stat-danger::after { background: #ffeded; }
.customer-stat-danger .stat-value { color: var(--red); }
.payment-policy-notice { border-color: #dce6ff; background: linear-gradient(110deg, #f1f5ff, #f9fbff); color: #445676; }
.payment-policy-notice strong { color: #2b4272; }
.payment-table { min-width: 820px; }
.payment-history-table { min-width: 600px; }
.payment-table tbody td, .payment-history-table tbody td { vertical-align: middle; }
.payment-table tbody tr[data-payment-row] { cursor: pointer; }
.payment-table tbody tr[data-payment-row]:hover { background: var(--blue-soft); }
.payment-table tbody tr[data-payment-row]:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.payment-detail-dialog { overflow: hidden; }
.payment-detail-dialog .binding-titlebar h2 { margin-top: 4px; color: #fff; font-size: 17px; }
.payment-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 5px 14px; }
.payment-detail-grid > div { display: grid; align-content: center; gap: 6px; min-width: 0; min-height: 62px; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.payment-detail-grid > div > span:first-child { color: var(--muted); font-size: 9px; font-weight: 750; letter-spacing: .055em; }
.payment-detail-grid > div > strong { min-width: 0; color: #334158; font-size: 11px; font-weight: 600; overflow-wrap: anywhere; }
.payment-detail-dialog .binding-actions form { margin: 0 auto 0 0; }
.payment-history-card { display: block; }
.payment-history-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; cursor: pointer; list-style: none; }
.payment-history-summary::-webkit-details-marker { display: none; }
.payment-history-summary::after { color: var(--muted); content: "−"; font-size: 20px; line-height: 1; }
.payment-history-card:not([open]) .payment-history-summary { margin-bottom: 0; }
.payment-history-card:not([open]) .payment-history-summary::after { content: "+"; }
.payment-history-summary strong { color: var(--ink); font-size: 14px; font-weight: 650; }
.payment-history-summary .subtitle { display: block; margin-top: 5px; font-size: 11px; }
.billing-status { display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 9px; font-size: 10px; font-weight: 700; white-space: nowrap; }
.billing-status-ok { background: var(--green-soft); color: var(--green); }
.billing-status-warning { background: #fff4df; color: var(--amber); }
.billing-status-danger { background: #fff0ef; color: var(--red); }
.billing-status-muted { background: #f0f2f5; color: #68768a; }
.payment-sync-warning { display: block; margin: 4px 0 0; }
.payment-table form { margin: 0; }
.customer-list-card { padding: 21px; }
.customer-list-heading { align-items: center; margin-bottom: 17px; }
.customer-list-heading .subtitle { margin-top: 5px; font-size: 11px; }
.package-list-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(180px, 280px); gap: 10px; }
.package-list-heading .button { white-space: nowrap; }
.package-list-heading .customer-search { width: 100%; }
.package-table { min-width: 880px; }
.package-table tbody tr[data-package-row] { cursor: pointer; }
.package-table tbody tr[data-package-row]:hover { background: var(--blue-soft); }
.package-table tbody tr[data-package-row]:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.package-table form, .package-detail-dialog .binding-actions form { margin: 0; }
.package-detail-dialog { overflow: hidden; }
.package-detail-dialog .binding-titlebar h2 { margin-top: 4px; color: #fff; font-size: 17px; }
.package-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 5px 20px; }
.package-detail-grid > div { display: grid; align-content: center; gap: 6px; min-width: 0; padding: 12px 8px; border-bottom: 1px solid var(--line); }
.package-detail-grid > div > span { color: var(--muted); font-size: 9px; font-weight: 750; letter-spacing: .06em; }
.package-detail-grid strong { min-width: 0; color: #334158; font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }
.package-detail-grid .package-detail-comment { grid-column: 1 / -1; text-align: center; }
.package-detail-dialog .binding-actions { justify-content: flex-end; padding: 12px 20px 18px; }
.binding-list-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.binding-list-heading .customer-search { width: min(360px, 100%); }
.binding-table { min-width: 560px; }
.binding-table form, .ip-binding-detail-dialog .binding-actions form { margin: 0; }
.binding-table tbody tr[data-binding-row] { cursor: pointer; }
.binding-table tbody tr[data-binding-row]:hover { background: var(--blue-soft); }
.binding-table tbody tr[data-binding-row]:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.ip-binding-detail-dialog { overflow: hidden; }
.ip-binding-detail-dialog .binding-titlebar h2 { margin-top: 4px; color: #fff; font-size: 17px; }
.ip-binding-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 5px 20px; }
.ip-binding-detail-grid > div { display: grid; align-content: center; gap: 6px; min-width: 0; padding: 12px 8px; border-bottom: 1px solid var(--line); }
.ip-binding-detail-grid > div > span { color: var(--muted); font-size: 9px; font-weight: 750; letter-spacing: .06em; }
.ip-binding-detail-grid strong { min-width: 0; color: #334158; font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }
.ip-binding-detail-grid .ip-binding-detail-comment { grid-column: 1 / -1; text-align: center; }
.ip-binding-detail-dialog .binding-actions { justify-content: flex-end; padding: 12px 20px 18px; }
.app-user-dialog { width: min(520px, calc(100vw - 32px)); overflow: hidden; }
.app-user-dialog form { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; max-height: min(620px, calc(100vh - 26px)); max-height: min(620px, calc(100dvh - 26px)); }
.app-user-dialog .customer-form-body { padding: 18px 22px 8px; }
.app-user-dialog .customer-form-body .form-grid { margin: 0 0 12px; }
.app-user-list-card .app-user-table { min-width: 560px; }
.app-user-table form { margin: 0; }
.role-user main form:not(.filter-form):not(.host-delete-form):not(.ping-form) { display: none !important; }
.role-user main [data-customer-create],
.role-user main [data-customer-edit],
.role-user main [data-package-create],
.role-user main [data-package-edit],
.role-user main [data-package-detail-edit],
.role-user main [data-user-create],
.role-user main [data-user-edit],
.role-user main [data-queue-create],
.role-user main [data-host-add-customer],
.role-user main [data-host-create-customer],
.role-user main a.button,
.role-user main #host-detail-action .button { display: none !important; }
.customer-list-title-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.customer-list-title-row .button { flex: 0 0 auto; }
.lease-list-title { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.lease-list-title .badge { padding: 4px 8px; font-size: 9px; }
.customer-search { width: min(280px, 100%); min-height: 36px; }
.customer-table { min-width: 850px; }
.customer-table thead th { border-bottom-color: #d7dfeb; background: #f0f3f8; color: #53627a; }
.customer-table tbody tr[data-customer-row] td { padding-top: 14px; padding-bottom: 14px; }
.customer-table tbody tr[data-customer-row]:nth-child(even) { background: #fbfcfe; }
.customer-table tbody tr[data-customer-row]:nth-child(even):hover { background: var(--blue-soft); }
.lease-table { min-width: 800px; }
.lease-table th { white-space: nowrap; }
.lease-table td:first-child { width: 95px; color: var(--muted-dark); font-variant-numeric: tabular-nums; }
.lease-table td:nth-child(3), .lease-table td:nth-child(4) { white-space: nowrap; }
.lease-detail-dialog { overflow: hidden; }
.lease-detail-dialog .binding-titlebar h2 { margin-top: 4px; color: #fff; font-size: 17px; }
.lease-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 5px 20px; }
.lease-detail-grid > div { display: grid; align-content: center; gap: 6px; min-width: 0; padding: 12px 8px; border-bottom: 1px solid var(--line); }
.lease-detail-grid > div > span:first-child { color: var(--muted); font-size: 9px; font-weight: 750; letter-spacing: .06em; }
.lease-detail-grid strong { min-width: 0; color: #334158; font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }
.lease-detail-grid .mono { font-size: 11px; }
.lease-detail-grid .lease-detail-comment { grid-column: 1 / -1; text-align: center; }
.lease-detail-dialog .binding-actions { justify-content: flex-end; padding: 12px 20px 18px; }
.customer-table tbody td { vertical-align: middle; }
.customer-table tbody tr[data-customer-row] { cursor: pointer; }
.customer-table tbody tr[data-customer-row]:hover { background: var(--blue-soft); }
.customer-table tbody tr[data-customer-row]:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
.customer-name-link { min-height: 0; padding: 0; border: 0; background: transparent; color: #26354b; font-size: 12px; font-weight: 700; text-align: left; }
.customer-detail-dialog { overflow: hidden; }
.customer-detail-dialog .binding-titlebar h2 { margin-top: 4px; color: #fff; font-size: 17px; }
.customer-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 5px 20px; }
.customer-detail-grid > div { display: grid; align-content: center; gap: 6px; min-width: 0; padding: 12px 8px; border-bottom: 1px solid var(--line); }
.customer-detail-grid > div > span:first-child { color: var(--muted); font-size: 9px; font-weight: 750; letter-spacing: .06em; }
.customer-detail-grid strong { min-width: 0; color: #334158; font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }
.customer-detail-grid .customer-detail-access { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 7px; }
.customer-detail-access small { color: var(--muted); font-size: 9px; font-weight: 550; }
.lease-state-badge { display: inline-flex; width: fit-content; align-items: center; border: 1px solid #dfe5ec; border-radius: 999px; padding: 4px 8px; background: #f2f4f7; color: #68768a; font-size: 10px; font-weight: 700; }
.lease-state-badge[data-state="bound"] { border-color: #cfe9dc; background: var(--green-soft); color: #17724f; }
.lease-state-badge[data-state="waiting"] { border-color: #f1d6d4; background: #fff0ef; color: var(--red); }
.lease-state-badge[data-state="error"] { border-color: #f1d6d4; background: #fff0ef; color: var(--red); }
.customer-detail-grid .mono { font-size: 11px; }
.customer-detail-grid .customer-detail-comment { grid-column: 1 / -1; text-align: center; }
.customer-detail-grid .customer-detail-route { grid-column: 1 / -1; }
.customer-route-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.customer-route-form select { flex: 1 1 220px; min-width: 0; }
.customer-host-live { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 16px; margin: 0 20px 10px; padding: 12px 14px; border: 1px solid #dfe8f3; border-radius: 10px; background: #f7f9fc; }
.customer-host-live-heading { display: flex; min-width: 0; align-items: center; gap: 9px; }
.customer-host-live-heading > div { display: grid; gap: 4px; min-width: 0; }
.customer-host-live-heading > div > span, .customer-host-live-rate > span { color: var(--muted); font-size: 8px; font-weight: 750; letter-spacing: .06em; }
.customer-host-live-heading strong { color: #536278; font-size: 11px; font-weight: 650; }
.customer-host-live-dot { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; background: #98a4b5; box-shadow: 0 0 0 4px #98a4b51c; }
.customer-host-live-rate { display: grid; justify-items: end; gap: 4px; }
.customer-host-live-rate strong { color: var(--ink); font-size: 16px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.customer-host-live > p { grid-column: 1 / -1; min-height: 12px; margin: 0; color: var(--muted); font-size: 9px; }
.customer-host-live[data-state="online"] { border-color: #cfe9dc; background: #f1faf5; }
.customer-host-live[data-state="online"] .customer-host-live-dot { background: #20b77a; box-shadow: 0 0 0 4px #20b77a1c; }
.customer-host-live[data-state="online"] .customer-host-live-heading strong { color: var(--green); }
.customer-host-live[data-state="offline"] { border-color: #e5eaf1; background: #f7f9fc; }
.customer-host-live[data-state="error"] { border-color: #f1d6d4; background: #fff7f6; }
.customer-host-live[data-state="error"] .customer-host-live-dot { background: var(--red); box-shadow: 0 0 0 4px #b546461c; }
.customer-host-live[data-state="error"] .customer-host-live-heading strong { color: var(--red); }
.customer-detail-dialog .binding-actions { justify-content: flex-end; padding: 10px 16px 15px; }
.customer-name-cell { display: flex; align-items: center; min-width: 140px; }
.customer-name-cell strong, .customer-name-cell small, .customer-secondary, .due-label { display: block; }
.customer-name-cell strong { color: #26354b; font-size: 12px; }
.customer-name-cell small, .customer-secondary { margin-top: 4px; color: var(--muted); font-size: 10px; }
.customer-name-cell .customer-comment { max-width: 220px; color: #61718a; overflow-wrap: anywhere; }
.optional-label { color: var(--muted); font-size: 10px; font-weight: 500; }
.field-hint { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.speed-chip { display: inline-grid; gap: 4px; border: 1px solid #e2e9fa; border-radius: 8px; padding: 6px 8px; background: #f7f9ff; color: #435780; font-size: 10px; font-weight: 650; white-space: nowrap; }
.due-label { margin-top: 5px; font-size: 10px; font-weight: 650; }
.due-label.due-ok { color: var(--green); }
.due-label.due-soon { color: var(--amber); }
.due-label.overdue { color: var(--red); }
.sync-warning { display: inline-block; margin: 6px 0 0 44px; color: var(--red); font-size: 9px; font-weight: 700; }
.customer-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.customer-actions form { margin: 0; }
.customer-footnote { margin: 14px 0 0; color: var(--muted); font-size: 10px; line-height: 1.5; }
[data-customer-row][hidden], [data-customer-empty-search][hidden] { display: none !important; }
.footer { display: flex; justify-content: space-between; gap: 15px; padding: 0 36px 18px; color: #8b96a6; font-size: 10px; }

.guest { min-height: 100vh; background: radial-gradient(ellipse at 50% 4%, #e8efff 0, transparent 43%), var(--canvas); }
.guest-layout { min-height: 100vh; }
.guest-topbar { display: flex; min-height: 76px; align-items: center; justify-content: space-between; padding: 0 max(5vw, calc((100vw - 1180px) / 2)); border-bottom: 1px solid #e4eaf3; background: #ffffffd9; }
.guest-brand .brand-mark { width: 42px; height: 42px; }
.guest-brand .brand-name { color: var(--navy); font-size: 18px; }
.guest-brand .brand-name small { color: #8290a3; }
.guest-secure { display: flex; align-items: center; gap: 7px; color: #728096; font-size: 11px; }
.guest-secure span { color: var(--green); font-weight: 800; }
.guest-container { display: flex; align-items: center; justify-content: center; min-height: calc(100vh - 130px); padding-top: 30px; padding-bottom: 36px; }
.login-wrap { width: min(440px, 100%); margin: 0 auto; }
.login-wrap .card { padding: 30px; border-color: #e6ebf3; border-radius: 15px; box-shadow: 0 18px 55px #1b376014, 0 2px 8px #1b37600a; }
.login-wrap h1 { font-size: 25px; }
.login-wrap .form-grid { grid-template-columns: 1fr; }
.login-wrap .subtitle { margin-top: 8px; }
.guest-footer { padding: 0 18px 20px; color: #98a3b2; font-size: 9px; font-weight: 700; letter-spacing: 1.2px; text-align: center; }
.guest-footer span { padding: 0 4px; color: #b4bdc9; }

@media (max-width: 1100px) {
    .sidebar { width: 218px; }
    .app-main { margin-left: 218px; }
    .topbar { padding-right: 24px; padding-left: 24px; }
    .container { padding-right: 24px; padding-left: 24px; }
    .stats { gap: 12px; }
    .stat { padding: 17px; }
    .dashboard-live-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .dashboard-interface-grid { gap: 12px; }
    .ping-workspace { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
    .sidebar { position: sticky; inset: 0 0 auto; width: 100%; padding: 12px 16px 10px; }
    .sidebar > .brand { padding: 0 4px 12px; }
    .mobile-nav-toggle { position: absolute; top: 12px; right: 20px; display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; margin: 0; border: 1px solid #ffffff24; border-radius: 9px; background: #ffffff0b; color: #d8e1f0; cursor: pointer; }
    .mobile-nav-toggle:hover, .mobile-nav-toggle[aria-expanded="true"] { border-color: #829cff80; background: #4169e133; color: #fff; }
    .mobile-nav-toggle svg { width: 19px; height: 19px; }
    .brand-mark { width: 40px; height: 40px; border-radius: 9px; }
    .brand-name { font-size: 17px; }
    .brand-name small { margin-top: 4px; font-size: 8px; }
    .sidebar-caption, .sidebar-bottom { display: none; }
    .sidebar-nav { display: none; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; overflow: visible; padding: 1px 0 2px; }
    .sidebar.mobile-nav-open .sidebar-nav { display: grid; }
    .sidebar-nav a { min-width: 0; min-height: 38px; gap: 8px; padding: 0 10px; font-size: 11px; }
    .sidebar-nav a > span:not(.nav-live-dot) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .nav-icon { width: 16px; height: 16px; }
    .sidebar-nav a.active { box-shadow: inset 0 -2px #829cff; }
    .app-main { margin-left: 0; }
    .topbar { display: none; }
    .sidebar.mobile-nav-open .mobile-nav-context { display: block; margin-top: 8px; padding: 12px 4px 2px; border-top: 1px solid #ffffff1c; }
    .mobile-nav-page { margin-bottom: 10px; color: #fff; font-size: 13px; font-weight: 650; }
    .mobile-nav-account { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
    .mobile-nav-account > .account-avatar,
    .mobile-nav-account > .account-copy,
    .mobile-nav-account > .password-change-button { order: 2; }
    .mobile-nav-account > .router-switch-form { order: 1; }
    .mobile-nav-account > .logout-form { order: 3; }
    .mobile-nav-context .account-avatar { width: 30px; height: 30px; flex: 0 0 auto; }
    .mobile-nav-context .account-copy { display: block; min-width: 0; flex: 1 1 auto; }
    .mobile-nav-context .account-copy strong { color: #e8eef9; }
    .mobile-nav-context .account-copy small { color: #aab7ca; }
    .mobile-nav-context .router-switch-form { width: 100%; }
    .mobile-nav-context .router-switch-form select { min-width: 0; flex: 1 1 auto; }
    .mobile-nav-context .button-quiet { min-height: 32px; padding: 6px 8px; font-size: 10px; }
    .mobile-nav-context .logout-button { gap: 5px; }
    .mobile-nav-context .logout-button svg { width: 15px; height: 15px; }
    .container { min-height: calc(100vh - 160px); padding: 25px 18px 40px; }
    .footer { padding: 0 18px 15px; }
}
@media (max-width: 560px) {
    body { overflow-x: hidden; }
    .container { padding-top: 21px; }
    .page-heading.links-page-heading { flex-wrap: wrap; align-items: flex-start; gap: 12px; }
    .links-page-actions { width: 100%; flex: 1 1 100%; gap: 7px; }
    .links-search { flex: 1 1 auto; }
    .ping-page-heading { flex-wrap: wrap; align-items: flex-start; }
    .ping-page-heading .ping-router-badge { margin-left: auto; }
    .ping-workspace { gap: 12px; }
    .ping-form { gap: 15px; padding: 16px; }
    .ping-result-card { padding: 15px; }
    .ping-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
    .ping-metric { min-height: 64px; padding: 9px 10px; }
    .dashboard-container { min-height: 0; padding: 12px 12px 14px; }
    .page-heading.dashboard-page-heading { align-items: center; flex-direction: row; gap: 6px; margin-bottom: 8px; }
    .dashboard-page-heading > div { min-width: 0; }
    .dashboard-page-heading h1 { overflow: hidden; font-size: 19px; letter-spacing: -.4px; text-overflow: ellipsis; white-space: nowrap; }
    .dashboard-page-heading .subtitle { display: none; }
    .dashboard-page-heading .live-status { flex: 0 0 auto; font-size: 8px; }
    .host-summary { max-width: none; margin-bottom: 14px; }
    .host-summary-table th { padding: 9px 10px 4px; font-size: 8px; }
    .host-summary-table td { padding: 3px 10px 9px; font-size: 19px; }
    .host-page-heading { flex-wrap: nowrap; gap: 8px; margin-bottom: 16px; }
    .page-heading.host-page-heading { flex-direction: row; align-items: center; justify-content: flex-start; }
    .host-page-heading h1 { gap: 7px; font-size: 22px; white-space: nowrap; }
    .host-page-heading .live-status { font-size: 9px; white-space: nowrap; }
    .hotspot-tabs { margin-top: -2px; margin-bottom: 20px; }
    .hotspot-tabs a { min-height: 43px; padding: 0 14px; font-size: 12px; }
    .stats, .form-grid, .router-summary { grid-template-columns: 1fr 1fr; }
    .two-column { grid-template-columns: minmax(0, 1fr); }
    .table-wrap:not(.queue-table-wrap) #router-servers tbody tr td:nth-child(4) { grid-column: 1 / -1; }
    .table-wrap:not(.queue-table-wrap) #router-servers tbody tr td:nth-child(6) { align-items: flex-end; }
    .dashboard-live-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 8px 0; }
    .dashboard-live-stat { min-height: 76px; padding: 10px 9px; }
    .dashboard-cpu-stat { min-height: 96px; }
    .dashboard-live-stat::after { top: 7px; right: 7px; width: 15px; height: 15px; border-radius: 5px; }
    .dashboard-live-stat .stat-label { padding-right: 12px; font-size: 9px; line-height: 1.2; }
    .dashboard-live-stat .stat-value { margin-top: 7px; font-size: 18px; }
    .dashboard-live-stat .dashboard-stat-text { font-size: 14px; }
    .dashboard-live-stat .stat-detail { display: none; }
    .cpu-gauge svg { max-width: 110px; }
    .cpu-gauge-track, .cpu-gauge-progress { stroke-width: 10; }
    .cpu-gauge-needle { stroke-width: 3; }
    .cpu-gauge-readout { margin-top: -3px; }
    .cpu-gauge-readout strong { font-size: 14px; }
    .cpu-gauge-readout span, .cpu-gauge-status { font-size: 7px; }
    .cpu-gauge-status { margin-top: 1px; }
    .dashboard-interface-grid { grid-template-columns: minmax(0, 1fr); gap: 7px; margin-bottom: 8px; }
    .dashboard-interface-card { padding: 10px 13px; }
    .dashboard-interface-card .card-heading { gap: 6px; margin-bottom: 3px; }
    .dashboard-interface-card .card-heading h2 { font-size: 11px; line-height: 1.2; }
    .dashboard-interface-ip { font-size: 8px; }
    .dashboard-interface-card .live-indicator { width: 7px; height: 7px; }
    .interface-gauges { gap: 12px; }
    .traffic-gauge-label { font-size: 8px; }
    .traffic-gauge-dial { max-width: 150px; margin-bottom: -3px; }
    .traffic-gauge-track, .traffic-gauge-progress { stroke-width: 10; }
    .traffic-gauge-needle { stroke-width: 3; }
    .traffic-gauge-readout { gap: 3px; margin-top: -1px; }
    .traffic-gauge-readout strong { font-size: 13px; letter-spacing: -.25px; }
    .traffic-gauge-readout span { font-size: 8px; }
    .traffic-gauge-scale { max-width: 140px; font-size: 7px; }
    .stats .stat { min-height: 108px; padding: 15px; }
    .stat-value { font-size: 24px; }
    .stat-detail { font-size: 10px; }
    .stats .stat:last-child .stat-detail { margin-top: 10px; }
    .field.full { grid-column: 1 / -1; }
    .page-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
    .customer-heading { align-items: stretch; }
    .customer-heading > .button { width: 100%; }
    .customer-list-heading { display: grid; }
    .binding-list-heading { display: grid; justify-content: stretch; gap: 9px; }
    .binding-list-heading .customer-search { width: 100%; }
    .package-list-heading { grid-template-columns: minmax(0, 1fr) auto; gap: 9px; }
    .package-list-heading .customer-search { grid-column: 1 / -1; }
    .customer-search { width: 100%; }
    .customer-list-card { padding: 15px; }
    .customer-table { min-width: 0; }
    .package-table-wrap { overflow: visible; border: 0; }
    .package-table { display: table !important; width: 100%; min-width: 0; table-layout: fixed; border-collapse: collapse; }
    .package-table thead { display: table-header-group !important; }
    .package-table tbody { display: table-row-group; width: 100%; }
    .package-table thead tr, .package-table tbody tr[data-package-row] { display: table-row; overflow: visible; border: 0; border-radius: 0; background: var(--paper); box-shadow: none; }
    .package-table thead th, .package-table tbody tr[data-package-row] td { display: none; min-width: 0; }
    .package-table thead th:nth-child(-n+3), .package-table tbody tr[data-package-row] td:nth-child(-n+3) { display: table-cell; }
    .package-table thead th { padding: 6px 4px; background: var(--blue-soft); color: var(--blue-dark); font-size: 9px; text-align: center; white-space: nowrap; }
    .package-table thead th:first-child, .package-table tbody tr[data-package-row] td:first-child { width: 40%; text-align: left; }
    .package-table thead th:nth-child(2), .package-table tbody tr[data-package-row] td:nth-child(2) { width: 30%; }
    .package-table thead th:nth-child(3), .package-table tbody tr[data-package-row] td:nth-child(3) { width: 30%; }
    .package-table tbody tr[data-package-row] td { padding: 7px 5px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 9px; line-height: 1.25; text-align: center; overflow: hidden; }
    .package-table tbody tr[data-package-row] td::before { display: none; }
    .package-table tbody tr[data-package-row] td:first-child strong { display: block; font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .package-table tbody tr[data-package-row] td:nth-child(2) .speed-chip { display: grid; justify-items: center; gap: 2px; font-size: 8px; }
    .package-table tbody tr[data-package-row] td:nth-child(3) strong { font-size: 9px; overflow-wrap: anywhere; }
    .package-table tbody tr[data-package-row][hidden] { display: none !important; }
    .package-table tbody tr[data-package-no-results] td, .package-table tbody tr[data-package-empty] td { display: table-cell; padding: 14px 8px; text-align: center; white-space: normal; }
    .package-detail-grid { padding: 4px 14px; }
    .package-detail-grid > div { padding: 11px 6px; }
    .package-detail-dialog .binding-actions { flex-wrap: wrap; padding: 10px 16px 15px; }
    .package-detail-dialog .binding-actions form { display: contents; }
    .binding-table-wrap { overflow: visible; border: 0; }
    .binding-table { display: table !important; width: 100%; min-width: 0; table-layout: fixed; border-collapse: collapse; }
    .binding-table thead { display: table-header-group !important; }
    .binding-table tbody { display: table-row-group; width: 100%; }
    .binding-table thead tr, .binding-table tbody tr[data-binding-row] { display: table-row; overflow: visible; border: 0; border-radius: 0; background: var(--paper); box-shadow: none; }
    .binding-table thead th, .binding-table tbody tr[data-binding-row] td { display: table-cell; min-width: 0; }
    .binding-table thead th { padding: 6px 4px; background: var(--blue-soft); color: var(--blue-dark); font-size: 9px; text-align: center; white-space: nowrap; }
    .binding-table thead th:first-child, .binding-table tbody tr[data-binding-row] td:first-child { width: 40%; text-align: left; }
    .binding-table thead th:nth-child(2), .binding-table tbody tr[data-binding-row] td:nth-child(2) { width: 35%; }
    .binding-table thead th:nth-child(3), .binding-table tbody tr[data-binding-row] td:nth-child(3) { width: 25%; }
    .binding-table tbody tr[data-binding-row] td { padding: 7px 5px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 9px; line-height: 1.25; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .binding-table tbody tr[data-binding-row] td::before { display: none; }
    .binding-table tbody tr[data-binding-row] td:first-child { font-size: 9px; text-align: left; }
    .binding-table tbody tr[data-binding-row] td:nth-child(2) { font-size: 9px; }
    .binding-table tbody tr[data-binding-row] td:nth-child(3) .badge { padding: 3px 6px; font-size: 8px; }
    .binding-table tbody tr[data-binding-row][hidden] { display: none !important; }
    .binding-table tbody tr[data-binding-no-results] td, .binding-table tbody tr[data-binding-empty] td { display: table-cell; padding: 14px 8px; text-align: center; white-space: normal; }
    .ip-binding-detail-grid { padding: 4px 14px; }
    .ip-binding-detail-grid > div { padding: 11px 6px; }
    .ip-binding-detail-dialog .binding-actions { flex-wrap: wrap; padding: 10px 16px 15px; }
    .ip-binding-detail-dialog .binding-actions form { display: contents; }
    .customer-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
    .customer-stats .customer-stat { min-height: 0; padding: 8px 6px; text-align: center; }
    .customer-stats .customer-stat .stat-label { min-height: 0; font-size: 9px; line-height: 1.2; }
    .customer-stats .customer-stat .stat-value { margin-top: 4px; font-size: 20px; }
    .customer-stats .customer-stat .stat-detail { display: none; }
    .payment-stats.customer-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
    .payment-stats.customer-stats .customer-stat { min-height: 0; padding: 7px 3px; text-align: center; }
    .payment-stats.customer-stats .stat-label { min-height: 0; font-size: 8px; line-height: 1.15; overflow-wrap: anywhere; }
    .payment-stats.customer-stats .stat-value { margin-top: 4px; font-size: 17px; }
    .payment-table, .payment-history-table { min-width: 0; }
    .payment-table-wrap { overflow: visible; border: 0; }
    .payment-table { display: table !important; width: 100%; min-width: 0; table-layout: fixed; border-collapse: collapse; }
    .payment-table thead { display: table-header-group !important; }
    .payment-table tbody { display: table-row-group !important; width: 100%; }
    .payment-table thead tr, .payment-table tbody tr[data-payment-row] { display: table-row; overflow: visible; border: 0; border-radius: 0; background: var(--paper); box-shadow: none; }
    .payment-table thead th, .payment-table tbody tr[data-payment-row] td { display: none; min-width: 0; }
    .payment-table thead th:nth-child(1), .payment-table tbody tr[data-payment-row] td:nth-child(1),
    .payment-table thead th:nth-child(2), .payment-table tbody tr[data-payment-row] td:nth-child(2),
    .payment-table thead th:nth-child(3), .payment-table tbody tr[data-payment-row] td:nth-child(3) { display: table-cell; }
    .payment-table thead th { padding: 6px 4px; background: var(--blue-soft); color: var(--blue-dark); font-size: 9px; text-align: center; white-space: nowrap; }
    .payment-table thead th:first-child, .payment-table tbody tr[data-payment-row] td:first-child { width: 39%; text-align: left; }
    .payment-table thead th:nth-child(2), .payment-table tbody tr[data-payment-row] td:nth-child(2) { width: 26%; }
    .payment-table thead th:nth-child(3), .payment-table tbody tr[data-payment-row] td:nth-child(3) { width: 35%; }
    .payment-table tbody tr[data-payment-row] td { padding: 7px 5px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 9px; line-height: 1.25; text-align: center; overflow-wrap: anywhere; }
    .payment-table tbody tr[data-payment-row] td::before { display: none; }
    .payment-table tbody tr[data-payment-row] td:first-child .customer-name-cell { min-width: 0; }
    .payment-table tbody tr[data-payment-row] td:first-child strong { font-size: 10px; }
    .payment-table tbody tr[data-payment-row] td:first-child small { display: none; }
    .payment-table tbody tr[data-payment-row] td:nth-child(2) > strong { font-size: 9px; white-space: nowrap; }
    .payment-table tbody tr[data-payment-row] td:nth-child(2) .due-label { display: block; font-size: 8px; }
    .payment-table tbody tr[data-payment-row] td:nth-child(3) .billing-status { padding: 3px 5px; font-size: 8px; white-space: normal; }
    .payment-table tbody tr[data-payment-row]:hover { background: var(--blue-soft); }
    .payment-table tbody tr[data-payment-row]:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
    .payment-table tbody tr[data-payment-row][hidden], .payment-table tbody tr[data-payment-no-results][hidden] { display: none !important; }
    .payment-table tbody tr[data-payment-no-results] { display: table-row; }
    .payment-table tbody tr[data-payment-no-results] td { display: table-cell; padding: 14px 8px; text-align: center; white-space: normal; }
    .payment-detail-grid { padding: 4px 10px; }
    .payment-detail-grid > div { min-height: 58px; padding: 9px 6px; }
    .payment-detail-dialog .binding-actions { padding: 10px 14px 14px; }
    .lease-table { min-width: 0; }
    .customer-dialog .binding-titlebar { padding: 16px 18px; }
    .bandwidth-dialog-body { padding: 18px 18px 6px; }
    .bandwidth-dialog .binding-actions { padding: 10px 18px 15px; }
    .last-seen-panel { padding: 11px 12px; }
    .bandwidth-period-grid { gap: 8px; }
    .bandwidth-period { min-height: 104px; padding: 12px; }
    .bandwidth-period > strong { font-size: 18px; }
    .customer-form-body { padding: 18px 18px 6px; }
    .customer-form-body .form-grid { grid-template-columns: 1fr; gap: 12px; margin: 12px 0 20px; }
    .customer-dialog .binding-actions { padding: 12px 18px; }
    .live-controls { width: 100%; justify-content: space-between; }
    .card { padding: 15px; }
    .card-heading { align-items: flex-start; }
    .host-card-heading h2 { flex: 1 1 auto; }
    .host-card-heading .host-search { order: 3; width: 100%; margin-left: 0; }
    .host-card-heading > .button { min-height: 34px; padding: 7px 9px; font-size: 11px; }
    .queue-card-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; }
    .queue-card-heading h2 { grid-column: 1; }
    .queue-card-heading > .live-status { grid-column: 1 / -1; grid-row: 2; }
    .user-card-heading { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
    .user-card-heading .customer-search { width: 100%; }
    .queue-table-wrap { overflow: visible; border: 0; }
    .queue-table { display: table; width: 100%; min-width: 0; table-layout: fixed; border-collapse: collapse; }
    .queue-table thead { display: table-header-group; }
    .queue-table tbody { display: table-row-group; width: 100%; }
    .queue-table thead tr, .queue-table tbody tr[data-queue-id] { display: table-row; overflow: visible; border: 0; border-radius: 0; background: var(--paper); box-shadow: none; }
    .queue-table thead th, .queue-table tbody td { display: none; min-width: 0; }
    .queue-table thead th:nth-child(1), .queue-table tbody td:nth-child(1),
    .queue-table thead th:nth-child(2), .queue-table tbody td:nth-child(2),
    .queue-table thead th:nth-child(5), .queue-table tbody td:nth-child(5) { display: table-cell; }
    .queue-table thead th { padding: 5px 3px; background: var(--blue-soft); color: var(--blue-dark); font-size: 9px; text-align: center; white-space: nowrap; }
    .queue-table thead th button { display: inline-flex; min-height: 0; justify-content: center; gap: 3px; padding: 0; border: 0; background: transparent; color: inherit; font-size: inherit; font-weight: 750; white-space: nowrap; }
    .queue-table thead th:nth-child(1), .queue-table tbody td:nth-child(1) { width: 40%; }
    .queue-table thead th:nth-child(2), .queue-table tbody td:nth-child(2) { width: 32%; }
    .queue-table thead th:nth-child(5), .queue-table tbody td:nth-child(5) { width: 28%; }
    .queue-table tbody tr[data-queue-id] td { padding: 6px 5px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 10px; line-height: 1.2; text-align: center; overflow-wrap: anywhere; }
    .queue-table tbody tr[data-queue-id] td::before { display: none; }
    .queue-table tbody tr[data-queue-id] td:first-child { text-align: left; }
    .queue-table tbody tr[data-queue-id] td:first-child .muted { display: none; }
    .queue-table tbody tr[data-queue-id] td:nth-child(2) { white-space: nowrap; }
    .queue-table tbody tr[data-queue-id] td:nth-child(5) { font-size: 9px; white-space: nowrap; }
    .queue-table tbody tr[data-queue-id]:hover { background: var(--blue-soft); }
    .queue-table tbody tr[data-queue-id]:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
    .queue-table tbody tr[data-queue-id][hidden], .queue-table tbody tr[data-queue-no-results][hidden] { display: none !important; }
    .queue-table tbody tr[data-queue-empty], .queue-table tbody tr[data-queue-no-results] { display: table-row; }
    .queue-table tbody tr[data-queue-empty] td, .queue-table tbody tr[data-queue-no-results] td { display: table-cell; padding: 14px 8px; text-align: center; white-space: normal; }
    .links-table-wrap { overflow: visible; border: 0; }
    .links-table { display: table !important; width: 100%; min-width: 0; table-layout: fixed; border-collapse: collapse; }
    .links-table thead { display: table-header-group !important; }
    .links-table tbody { display: table-row-group; width: 100%; }
    .links-table thead tr, .links-table tbody tr[data-link-row] { display: table-row; overflow: visible; border: 0; border-radius: 0; background: var(--paper); box-shadow: none; }
    .links-table thead th, .links-table tbody tr[data-link-row] td { display: none; min-width: 0; }
    .links-table thead th:nth-child(1), .links-table tbody tr[data-link-row] td:nth-child(1),
    .links-table thead th:nth-child(4), .links-table tbody tr[data-link-row] td:nth-child(4) { display: table-cell; }
    .links-table thead th { padding: 5px 4px; background: var(--blue-soft); color: var(--blue-dark); font-size: 9px; text-align: center; white-space: nowrap; }
    .links-table thead th:nth-child(1), .links-table tbody tr[data-link-row] td:nth-child(1) { width: 52%; text-align: left; }
    .links-table thead th:nth-child(4), .links-table tbody tr[data-link-row] td:nth-child(4) { width: 48%; }
    .links-table tbody tr[data-link-row] td { padding: 7px 5px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 10px; line-height: 1.25; text-align: center; overflow-wrap: anywhere; }
    .links-table tbody tr[data-link-row] td::before { display: none; }
    .links-table tbody tr[data-link-row] td:first-child strong { font-size: 10px; }
    .links-table tbody tr[data-link-row] td:nth-child(4) .customer-actions { flex-wrap: nowrap; justify-content: center; gap: 3px; }
    .links-table tbody tr[data-link-row] td:nth-child(4) .customer-actions form { flex: 0 0 auto; }
    .links-table tbody tr[data-link-row] td:nth-child(4) .customer-actions .button { min-width: 0; padding: 5px 3px; font-size: 9px; white-space: nowrap; }
    .links-table tbody tr[data-link-row][hidden] { display: none !important; }
    .links-table tbody tr:not([data-link-row]) td { display: table-cell; padding: 14px 8px; text-align: center; }
    .user-table-wrap { overflow: visible; border: 0; }
    .user-table { display: table !important; width: 100%; min-width: 0; table-layout: fixed; border-collapse: collapse; }
    .user-table thead { display: table-header-group !important; }
    .user-table tbody { display: table-row-group !important; width: 100%; }
    .user-table thead tr, .user-table tbody tr[data-user-id] { display: table-row; overflow: visible; border: 0; border-radius: 0; background: var(--paper); box-shadow: none; }
    .user-table thead th, .user-table tbody tr[data-user-id] td { display: none; min-width: 0; }
    .user-table thead th:nth-child(1), .user-table tbody tr[data-user-id] td:nth-child(1),
    .user-table thead th:nth-child(2), .user-table tbody tr[data-user-id] td:nth-child(2),
    .user-table thead th:nth-child(3), .user-table tbody tr[data-user-id] td:nth-child(3) { display: table-cell; }
    .user-table thead th { padding: 6px 4px; background: var(--blue-soft); color: var(--blue-dark); font-size: 9px; text-align: center; white-space: nowrap; }
    .user-table thead th:nth-child(1), .user-table tbody tr[data-user-id] td:nth-child(1) { width: 44%; text-align: left; }
    .user-table thead th:nth-child(2), .user-table tbody tr[data-user-id] td:nth-child(2) { width: 30%; }
    .user-table thead th:nth-child(3), .user-table tbody tr[data-user-id] td:nth-child(3) { width: 26%; }
    .user-table tbody tr[data-user-id] td { padding: 7px 5px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 10px; line-height: 1.25; text-align: center; overflow-wrap: anywhere; }
    .user-table tbody tr[data-user-id] td::before { display: none; }
    .user-table tbody tr[data-user-id] td:first-child strong { font-size: 10px; }
    .user-table tbody tr[data-user-id] td:first-child .muted { display: none; }
    .user-table tbody tr[data-user-id] td:nth-child(2) { white-space: nowrap; }
    .user-table tbody tr[data-user-id]:hover { background: var(--blue-soft); }
    .user-table tbody tr[data-user-id]:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
    .user-table tbody tr[data-user-id][hidden], .user-table tbody tr[data-user-no-results][hidden] { display: none !important; }
    .user-table tbody tr[data-user-empty], .user-table tbody tr[data-user-no-results] { display: table-row; }
    .table-wrap.user-table-wrap .user-table tbody tr[data-user-empty] td,
    .table-wrap.user-table-wrap .user-table tbody tr[data-user-no-results] td { display: table-cell; padding: 14px 8px; text-align: center; white-space: normal; }
    .user-detail-grid { padding: 4px 10px; }
    .user-detail-grid > div { min-height: 58px; padding: 9px 6px; }
    .user-detail-dialog .binding-actions { padding: 10px 14px 14px; }
    .binding-fields { grid-template-columns: 1fr; gap: 6px; padding: 18px; }
    .queue-fields { grid-template-columns: 1fr; gap: 12px; padding: 18px; }
    .user-dialog .form-grid { grid-template-columns: 1fr; gap: 12px; padding: 18px; }
    .binding-fields > :not(label):not(span) { margin-bottom: 8px; }
    .binding-fields > label, .binding-fields > span { margin-top: 4px; }
    .binding-actions { padding: 12px 18px; }
    .guest-topbar { min-height: 66px; padding: 0 18px; }
    .guest-secure { font-size: 0; }
    .guest-secure span { font-size: 15px; }
    .login-wrap .card { padding: 23px; }
    .table-wrap:not(.queue-table-wrap) { overflow: visible; border: 0; }
    .table-wrap:not(.queue-table-wrap) table { display: block; width: 100%; }
    .table-wrap:not(.queue-table-wrap) thead { display: none; }
    .table-wrap:not(.queue-table-wrap) tbody { display: grid; gap: 10px; width: 100%; }
    .table-wrap:not(.queue-table-wrap) tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 10px; overflow: hidden; border: 1px solid #dfe6f0; border-radius: 10px; background: #fff; box-shadow: 0 2px 8px #2038560a; }
    .table-wrap:not(.queue-table-wrap) tbody tr:hover { background: #fff; }
    .table-wrap:not(.queue-table-wrap) tbody td { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; justify-content: center; gap: 5px; padding: 10px; border-bottom: 1px solid #edf0f5; font-size: 11px; overflow-wrap: anywhere; }
    .table-wrap:not(.queue-table-wrap) tbody td::before { color: var(--muted); content: attr(data-label); font-family: "Segoe UI", Arial, sans-serif; font-size: 9px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
    .table-wrap:not(.queue-table-wrap) .audit-table tbody tr > td { width: auto; white-space: normal; }
    .table-wrap:not(.queue-table-wrap) .audit-table tbody tr > td:nth-child(1),
    .table-wrap:not(.queue-table-wrap) .audit-table tbody tr > td:nth-child(4) { grid-column: 1 / -1; }
    .table-wrap:not(.queue-table-wrap) tbody td[colspan] { display: block; grid-column: 1 / -1; border: 0; text-align: center; }
    .table-wrap:not(.queue-table-wrap) tbody tr > td:last-child { border-bottom: 0; }
    .table-wrap:not(.queue-table-wrap) tbody tr > td:only-child { grid-column: 1 / -1; }
    .table-wrap:not(.queue-table-wrap) tbody td .inline-form { display: flex; max-width: 100%; flex-wrap: wrap; align-items: stretch; }
    .table-wrap:not(.queue-table-wrap) tbody td .inline-form > * { min-width: 0; max-width: 100%; }
    .table-wrap:not(.queue-table-wrap) tbody td .inline-form select,
    .table-wrap:not(.queue-table-wrap) tbody td .inline-form input { min-width: 0; width: 100%; }
    .table-wrap:not(.queue-table-wrap) tbody td form:not(.inline-form) { max-width: 100%; }
    .table-wrap:not(.queue-table-wrap) .lease-table { display: table; width: 100%; min-width: 0; table-layout: fixed; border-collapse: collapse; }
    .table-wrap:not(.queue-table-wrap) .lease-table thead { display: table-header-group; }
    .table-wrap:not(.queue-table-wrap) .lease-table tbody { display: table-row-group; width: 100%; border: 1px solid var(--line); border-radius: 0; }
    .table-wrap:not(.queue-table-wrap) .lease-table thead tr,
    .table-wrap:not(.queue-table-wrap) .lease-table tbody tr[data-lease-row] { display: table-row; overflow: visible; border: 0; border-radius: 0; background: var(--paper); box-shadow: none; }
    .table-wrap:not(.queue-table-wrap) .lease-table thead th,
    .table-wrap:not(.queue-table-wrap) .lease-table tbody td { display: none; }
    .table-wrap:not(.queue-table-wrap) .lease-table thead th:nth-child(2),
    .table-wrap:not(.queue-table-wrap) .lease-table tbody td:nth-child(2),
    .table-wrap:not(.queue-table-wrap) .lease-table thead th:nth-child(4),
    .table-wrap:not(.queue-table-wrap) .lease-table tbody td:nth-child(4),
    .table-wrap:not(.queue-table-wrap) .lease-table thead th:nth-child(7),
    .table-wrap:not(.queue-table-wrap) .lease-table tbody td:nth-child(7) { display: table-cell; }
    .table-wrap:not(.queue-table-wrap) .lease-table thead th:nth-child(2),
    .table-wrap:not(.queue-table-wrap) .lease-table tbody td:nth-child(2) { width: 44%; }
    .table-wrap:not(.queue-table-wrap) .lease-table thead th:nth-child(4),
    .table-wrap:not(.queue-table-wrap) .lease-table tbody td:nth-child(4) { width: 34%; }
    .table-wrap:not(.queue-table-wrap) .lease-table thead th:nth-child(7),
    .table-wrap:not(.queue-table-wrap) .lease-table tbody td:nth-child(7) { width: 22%; }
    .table-wrap:not(.queue-table-wrap) .lease-table thead th { padding: 5px 3px; background: var(--blue-soft); color: var(--blue-dark); font-size: 9px; text-align: center; white-space: nowrap; }
    .table-wrap:not(.queue-table-wrap) .lease-table thead th button { display: inline-flex; min-height: 0; justify-content: center; gap: 3px; padding: 0; border: 0; background: transparent; color: inherit; font-size: inherit; font-weight: 750; white-space: nowrap; }
    .table-wrap:not(.queue-table-wrap) .lease-table tbody tr[data-lease-row] td { padding: 3px 5px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 10px; line-height: 1.2; text-align: center; overflow-wrap: anywhere; }
    .table-wrap:not(.queue-table-wrap) .lease-table tbody tr[data-lease-row] td::before { display: none; }
    .table-wrap:not(.queue-table-wrap) .lease-table tbody tr[data-lease-row] td:nth-child(2) { color: #26354b; font-size: 10px; font-weight: 700; text-align: left; }
    .table-wrap:not(.queue-table-wrap) .lease-table tbody tr[data-lease-row] td:nth-child(4) { font-size: 10px; white-space: nowrap; }
    .table-wrap:not(.queue-table-wrap) .lease-table tbody tr[data-lease-row] td:nth-child(7) .badge { padding: 2px 5px; font-size: 9px; }
    .table-wrap:not(.queue-table-wrap) .lease-table tbody tr[data-lease-row] { cursor: pointer; }
    .table-wrap:not(.queue-table-wrap) .lease-table tbody tr[data-lease-row]:hover { background: var(--blue-soft); }
    .table-wrap:not(.queue-table-wrap) .lease-table tbody tr[data-lease-row]:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
    .table-wrap:not(.queue-table-wrap) .lease-table tbody tr[data-lease-empty],
    .table-wrap:not(.queue-table-wrap) .lease-table tbody tr[data-lease-no-results] { display: table-row; }
    .table-wrap:not(.queue-table-wrap) .lease-table tbody tr[data-lease-empty] td,
    .table-wrap:not(.queue-table-wrap) .lease-table tbody tr[data-lease-no-results] td { display: table-cell; padding: 14px 8px; text-align: center; }
    .table-wrap:not(.queue-table-wrap) .port-forward-table { display: table; width: 100%; min-width: 0; table-layout: fixed; border-collapse: collapse; }
    .table-wrap:not(.queue-table-wrap) .port-forward-table thead { display: table-header-group; }
    .table-wrap:not(.queue-table-wrap) .port-forward-table tbody { display: table-row-group; width: 100%; }
    .table-wrap:not(.queue-table-wrap) .port-forward-table thead tr,
    .table-wrap:not(.queue-table-wrap) .port-forward-table tbody tr[data-port-forward-row] { display: table-row; overflow: visible; border: 0; border-radius: 0; background: var(--paper); box-shadow: none; }
    .table-wrap:not(.queue-table-wrap) .port-forward-table thead th,
    .table-wrap:not(.queue-table-wrap) .port-forward-table tbody tr[data-port-forward-row] td { display: none; min-width: 0; }
    .table-wrap:not(.queue-table-wrap) .port-forward-table thead th:nth-child(-n+4),
    .table-wrap:not(.queue-table-wrap) .port-forward-table tbody tr[data-port-forward-row] td:nth-child(-n+4) { display: table-cell; }
    .table-wrap:not(.queue-table-wrap) .port-forward-table thead th { padding: 5px 3px; background: var(--blue-soft); color: var(--blue-dark); font-size: 9px; text-align: center; white-space: nowrap; }
    .table-wrap:not(.queue-table-wrap) .port-forward-table thead th:nth-child(1),
    .table-wrap:not(.queue-table-wrap) .port-forward-table tbody tr[data-port-forward-row] td:nth-child(1) { width: 18%; }
    .table-wrap:not(.queue-table-wrap) .port-forward-table thead th:nth-child(2),
    .table-wrap:not(.queue-table-wrap) .port-forward-table tbody tr[data-port-forward-row] td:nth-child(2) { width: 32%; }
    .table-wrap:not(.queue-table-wrap) .port-forward-table thead th:nth-child(3),
    .table-wrap:not(.queue-table-wrap) .port-forward-table tbody tr[data-port-forward-row] td:nth-child(3) { width: 20%; }
    .table-wrap:not(.queue-table-wrap) .port-forward-table thead th:nth-child(4),
    .table-wrap:not(.queue-table-wrap) .port-forward-table tbody tr[data-port-forward-row] td:nth-child(4) { width: 30%; }
    .table-wrap:not(.queue-table-wrap) .port-forward-table tbody tr[data-port-forward-row] td { padding: 6px 4px; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 10px; line-height: 1.2; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .table-wrap:not(.queue-table-wrap) .port-forward-table tbody tr[data-port-forward-row] td::before { display: none; }
    .table-wrap:not(.queue-table-wrap) .port-forward-table tbody tr[data-port-forward-row] td:first-child { font-weight: 700; }
    .table-wrap:not(.queue-table-wrap) .port-forward-table tbody tr[data-port-forward-row] { cursor: pointer; }
    .table-wrap:not(.queue-table-wrap) .port-forward-table tbody tr[data-port-forward-row]:hover { background: var(--blue-soft); }
    .table-wrap:not(.queue-table-wrap) .port-forward-table tbody tr[data-port-forward-row]:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
    .table-wrap:not(.queue-table-wrap) .port-forward-table tbody tr[data-port-forward-row][hidden] { display: none !important; }
    .table-wrap:not(.queue-table-wrap) .port-forward-table tbody tr[data-port-forward-empty],
    .table-wrap:not(.queue-table-wrap) .port-forward-table tbody tr[data-port-forward-no-results] { display: table-row; }
    .table-wrap:not(.queue-table-wrap) .port-forward-table tbody tr[data-port-forward-no-results][hidden] { display: none !important; }
    .table-wrap:not(.queue-table-wrap) .port-forward-table tbody tr[data-port-forward-empty] td,
    .table-wrap:not(.queue-table-wrap) .port-forward-table tbody tr[data-port-forward-no-results] td { display: table-cell; padding: 14px 8px; text-align: center; white-space: normal; }
    .port-forward-detail-dialog .binding-actions form { margin: 0; }
    .port-forward-detail-dialog .binding-actions [hidden] { display: none; }
    .table-wrap:not(.queue-table-wrap) .customer-table { display: table; width: 100%; min-width: 0; table-layout: fixed; border-collapse: collapse; }
    .table-wrap:not(.queue-table-wrap) .customer-table thead { display: table-header-group; }
    .table-wrap:not(.queue-table-wrap) .customer-table tbody { display: table-row-group; width: 100%; }
    .table-wrap:not(.queue-table-wrap) .customer-table thead tr,
    .table-wrap:not(.queue-table-wrap) .customer-table tbody tr[data-customer-row] { display: table-row; overflow: visible; border: 0; border-radius: 0; background: var(--paper); box-shadow: none; }
    .table-wrap:not(.queue-table-wrap) .customer-table thead th,
    .table-wrap:not(.queue-table-wrap) .customer-table tbody tr[data-customer-row] td { display: none; min-width: 0; }
    .table-wrap:not(.queue-table-wrap) .customer-table thead th:nth-child(1),
    .table-wrap:not(.queue-table-wrap) .customer-table tbody tr[data-customer-row] td:nth-child(1),
    .table-wrap:not(.queue-table-wrap) .customer-table thead th:nth-child(4),
    .table-wrap:not(.queue-table-wrap) .customer-table tbody tr[data-customer-row] td:nth-child(4),
    .table-wrap:not(.queue-table-wrap) .customer-table thead th:nth-child(5),
    .table-wrap:not(.queue-table-wrap) .customer-table tbody tr[data-customer-row] td:nth-child(5) { display: table-cell; }
    .table-wrap:not(.queue-table-wrap) .customer-table thead th { padding: 7px 4px; border-bottom: 1px solid #d5deeb; background: #eaf0f8; color: #43536c; font-size: 9px; text-align: center; white-space: nowrap; }
    .table-wrap:not(.queue-table-wrap) .customer-table thead th:nth-child(1),
    .table-wrap:not(.queue-table-wrap) .customer-table tbody tr[data-customer-row] td:nth-child(1) { width: 42%; text-align: left; }
    .table-wrap:not(.queue-table-wrap) .customer-table thead th:nth-child(4),
    .table-wrap:not(.queue-table-wrap) .customer-table tbody tr[data-customer-row] td:nth-child(4) { width: 32%; }
    .table-wrap:not(.queue-table-wrap) .customer-table thead th:nth-child(5),
    .table-wrap:not(.queue-table-wrap) .customer-table tbody tr[data-customer-row] td:nth-child(5) { width: 26%; }
    .table-wrap:not(.queue-table-wrap) .customer-table tbody tr[data-customer-row] td { padding: 8px 5px; border-bottom: 1px solid #dfe5ee; color: var(--ink); font-size: 10px; line-height: 1.3; text-align: center; overflow-wrap: anywhere; }
    .table-wrap:not(.queue-table-wrap) .customer-table tbody tr[data-customer-row] td::before { display: none; }
    .table-wrap:not(.queue-table-wrap) .customer-table .customer-name-cell { min-width: 0; }
    .table-wrap:not(.queue-table-wrap) .customer-table .customer-name-cell > span:last-child { min-width: 0; }
    .table-wrap:not(.queue-table-wrap) .customer-table .customer-name-link { display: block; max-width: 100%; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
    .table-wrap:not(.queue-table-wrap) .customer-table .customer-name-cell small,
    .table-wrap:not(.queue-table-wrap) .customer-table .sync-warning { display: none; }
    .table-wrap:not(.queue-table-wrap) .customer-table tbody tr[data-customer-row] td:nth-child(4) > strong { font-size: 10px; white-space: nowrap; }
    .table-wrap:not(.queue-table-wrap) .customer-table .due-label { margin-top: 3px; font-size: 9px; }
    .table-wrap:not(.queue-table-wrap) .customer-table .badge { padding: 3px 6px; font-size: 9px; white-space: normal; }
    .table-wrap:not(.queue-table-wrap) .customer-table tbody tr[data-customer-row][hidden] { display: none !important; }
    .table-wrap:not(.queue-table-wrap) .customer-table tbody tr[data-customer-empty],
    .table-wrap:not(.queue-table-wrap) .customer-table tbody tr[data-customer-empty-search] { display: table-row; }
    .table-wrap:not(.queue-table-wrap) .customer-table tbody tr[data-customer-empty] td,
    .table-wrap:not(.queue-table-wrap) .customer-table tbody tr[data-customer-empty-search] td { display: table-cell; padding: 14px 8px; text-align: center; }
    .table-wrap:not(.queue-table-wrap) #hosts-table { display: block; width: 100%; min-width: 0; table-layout: fixed; }
    .table-wrap:not(.queue-table-wrap) #hosts-table thead { display: block; }
    .table-wrap:not(.queue-table-wrap) #hosts-table thead tr { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, .9fr); }
    .table-wrap:not(.queue-table-wrap) #hosts-table.host-can-delete thead tr,
    .table-wrap:not(.queue-table-wrap) #hosts-table.host-can-delete tbody tr:not([data-host-empty]):not([data-host-no-results]) { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, .9fr) 32px; }
    .table-wrap:not(.queue-table-wrap) #hosts-table tbody { display: block; width: 100%; }
    .table-wrap:not(.queue-table-wrap) #hosts-table thead th,
    .table-wrap:not(.queue-table-wrap) #hosts-table tbody td { display: none; min-width: 0; }
    .table-wrap:not(.queue-table-wrap) #hosts-table thead th:nth-child(1),
    .table-wrap:not(.queue-table-wrap) #hosts-table tbody td:nth-child(1),
    .table-wrap:not(.queue-table-wrap) #hosts-table thead th:nth-child(2),
    .table-wrap:not(.queue-table-wrap) #hosts-table tbody td:nth-child(2),
    .table-wrap:not(.queue-table-wrap) #hosts-table thead th:nth-child(6),
    .table-wrap:not(.queue-table-wrap) #hosts-table tbody td:nth-child(6) { display: block; }
    .table-wrap:not(.queue-table-wrap) #hosts-table.host-can-delete thead th:nth-child(8),
    .table-wrap:not(.queue-table-wrap) #hosts-table.host-can-delete tbody td:nth-child(8) { display: block; }
    .table-wrap:not(.queue-table-wrap) #hosts-table thead th { padding: 6px 3px; background: var(--blue-soft); color: var(--blue-dark); font-size: 8px; text-align: center; }
    .table-wrap:not(.queue-table-wrap) #hosts-table thead th:nth-child(2) { grid-column: 1; grid-row: 1; }
    .table-wrap:not(.queue-table-wrap) #hosts-table thead th:nth-child(1) { grid-column: 2; grid-row: 1; }
    .table-wrap:not(.queue-table-wrap) #hosts-table thead th:nth-child(6) { grid-column: 3; grid-row: 1; }
    .table-wrap:not(.queue-table-wrap) #hosts-table.host-can-delete thead th:nth-child(8) { grid-column: 4; grid-row: 1; }
    .table-wrap:not(.queue-table-wrap) #hosts-table thead th button { display: inline-flex; min-height: 0; justify-content: center; gap: 2px; padding: 0; border: 0; background: transparent; color: inherit; font-size: inherit; font-weight: 750; white-space: nowrap; }
    .table-wrap:not(.queue-table-wrap) #hosts-table tbody tr:not([data-host-empty]):not([data-host-no-results]) { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, .9fr); gap: 0; overflow: hidden; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: var(--paper); box-shadow: none; cursor: pointer; }
    .table-wrap:not(.queue-table-wrap) #hosts-table tbody tr:not([data-host-empty]):not([data-host-no-results]) td { min-height: 29px; padding: 6px 4px; border: 0; color: var(--ink); font-size: 9px; line-height: 1.25; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .table-wrap:not(.queue-table-wrap) #hosts-table tbody tr:not([data-host-empty]):not([data-host-no-results]) td::before { display: none; }
    .table-wrap:not(.queue-table-wrap) #hosts-table tbody tr:not([data-host-empty]):not([data-host-no-results]) td:nth-child(2) { grid-column: 1; grid-row: 1; color: #26354b; font-weight: 700; text-align: left; }
    .table-wrap:not(.queue-table-wrap) #hosts-table tbody tr:not([data-host-empty]):not([data-host-no-results]) td:nth-child(1) { grid-column: 2; grid-row: 1; }
    .table-wrap:not(.queue-table-wrap) #hosts-table tbody tr:not([data-host-empty]):not([data-host-no-results]) td:nth-child(6) { grid-column: 3; grid-row: 1; }
    .table-wrap:not(.queue-table-wrap) #hosts-table.host-can-delete tbody tr:not([data-host-empty]):not([data-host-no-results]) td:nth-child(8) { display: flex; grid-column: 4; grid-row: 1; align-items: center; justify-content: center; min-height: 29px; padding: 2px; overflow: visible; }
    .table-wrap:not(.queue-table-wrap) #hosts-table.host-can-delete .host-actions { min-width: 0; gap: 0; }
    .table-wrap:not(.queue-table-wrap) #hosts-table.host-can-delete .host-delete-button { width: 26px; min-width: 26px; min-height: 26px; padding: 4px; }
    .table-wrap:not(.queue-table-wrap) #hosts-table tbody tr:not([data-host-empty]):not([data-host-no-results]) td:nth-child(6) { font-size: 8px; }
    .table-wrap:not(.queue-table-wrap) #hosts-table tbody tr:not([data-host-empty]):not([data-host-no-results]):hover { background: var(--blue-soft); }
    .table-wrap:not(.queue-table-wrap) #hosts-table tbody tr:not([data-host-empty]):not([data-host-no-results]):focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
    .table-wrap:not(.queue-table-wrap) #hosts-table tbody tr[data-host-empty],
    .table-wrap:not(.queue-table-wrap) #hosts-table tbody tr[data-host-no-results] { display: block; border: 0; }
    .table-wrap:not(.queue-table-wrap) #hosts-table tbody tr[data-host-empty] td,
    .table-wrap:not(.queue-table-wrap) #hosts-table tbody tr[data-host-no-results] td { display: block; padding: 14px 8px; text-align: center; white-space: normal; }
    .table-wrap:not(.queue-table-wrap) #hosts-table tbody tr[hidden] { display: none !important; }
    .host-detail-grid { padding: 4px 10px; }
    .host-detail-grid > div { min-height: 58px; padding: 9px 6px; }
    .host-detail-dialog .binding-actions { padding: 10px 14px 14px; }
    .lease-detail-grid { padding: 4px 14px; }
    .lease-detail-grid > div { padding: 11px 6px; }
    .lease-detail-dialog .binding-actions { padding: 10px 16px 15px; }
    .lease-table tbody tr[hidden] { display: none !important; }
}
@media (max-width: 380px) {
    .sidebar { padding-right: 11px; padding-left: 11px; }
    .sidebar-nav a { padding: 0 8px; }
    .sidebar-nav a span:not(.nav-live-dot) { font-size: 10px; }
    .topbar { padding: 0 12px; }
    .container { padding-right: 12px; padding-left: 12px; }
    .stats .stat { padding: 12px; }
    .payment-stats.customer-stats .customer-stat { padding: 6px 2px; }
    .payment-stats.customer-stats .stat-label { font-size: 7px; }
    .payment-stats.customer-stats .stat-value { font-size: 15px; }
}
@media print {
    body { background: white; }
    .sidebar, .topbar, .footer, .no-print, .page-heading, .notice { display: none !important; }
    .app-main { margin: 0; }
    .container { width: 100%; margin: 0; padding: 0; }
    .card, .stat { box-shadow: none; }
}
