@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap");

:root {
  --page: #0f1110;
  --surface: #1d1f1e;
  --surface-soft: #242625;
  --field: #171918;
  --text: #f5f5f2;
  --muted: #a7aba5;
  --muted-strong: #c6cbc4;
  --line: #383b38;
  --line-soft: #2c2f2d;
  --green: #ff5a1f;
  --green-dark: #df4110;
  --blue: #2f9bee;
  --danger: #f05c50;
  --wait: #d7a43d;
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.45);
  --hub-content-max: 1540px;
  --hub-page-gutter: 16px;
  --hub-header-height: 76px;
  --hub-tabs-height: 48px;
  --hub-header-padding: 18px;
  --hub-radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  overflow-x: hidden;
  background: var(--page);
  font-family: "Space Grotesk", "Avenir Next", "Trebuchet MS", sans-serif;
}

button,
input,
select {
  font: inherit;
}

.shell {
  width: 100%;
  min-height: 100vh;
  display: block;
  padding: var(--hub-page-gutter);
}

.surface {
  width: min(var(--hub-content-max), 100%);
  min-height: calc(100vh - 32px);
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--hub-radius);
  overflow: visible;
  background: var(--surface);
}

.telecom-surface {
  width: min(var(--hub-content-max), 100%);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 30px 20px;
  border-bottom: 1px solid var(--line);
}

.hub-header { min-height: var(--hub-header-height); padding: 12px var(--hub-header-padding); }
.hub-brand-cluster { min-width: 0; display: flex; align-items: center; gap: 10px; }
.hub-logo { width: 42px; height: 42px; object-fit: contain; }
.hub-brand { min-width: 0; }
.hub-brand .kicker { margin-bottom: 2px; font-size: 11px; }
.hub-brand h1 { overflow: hidden; font-size: 22px; line-height: 1.1; letter-spacing: 0; text-overflow: ellipsis; white-space: nowrap; }
.icon-button { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 6px; padding: 0; color: var(--muted-strong); background: var(--field); font-size: 24px; line-height: 1; cursor: pointer; }
.icon-button:hover, .icon-button:focus-visible { border-color: var(--green); color: var(--text); outline: none; }
.hub-tool-tabs { min-height: var(--hub-tabs-height); display: flex; align-items: stretch; gap: 2px; overflow-x: auto; padding: 0 var(--hub-header-padding); border-bottom: 1px solid var(--line); background: #191b1a; overscroll-behavior-x: contain; scrollbar-width: thin; }
.hub-tool-tab { position: relative; min-width: max-content; min-height: 47px; display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; color: var(--muted); font-size: 12px; font-weight: 600; text-decoration: none; white-space: nowrap; transition: color .15s ease, background-color .15s ease; }
.hub-tool-tab::after { position: absolute; right: 12px; bottom: 0; left: 12px; height: 2px; background: transparent; content: ""; transition: background-color .15s ease; }
.hub-tool-tab:hover { color: var(--text); background: rgba(255, 255, 255, .025); }
.hub-tool-tab.active { color: #ff936d; background: rgba(255, 90, 31, .07); }
.hub-tool-tab.active::after { background: var(--green); }
.hub-tool-tab:focus-visible { color: var(--text); outline: 2px solid var(--green); outline-offset: -2px; }
.hub-tool-tab-icon { width: 16px; height: 16px; flex: 0 0 auto; }
.session-email { max-width: 280px; overflow: hidden; color: var(--muted-strong); font-size: 12px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }

.kicker,
.route,
.hint,
.job small {
  color: var(--muted);
}

.kicker {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(32px, 5vw, 44px);
  line-height: 1;
  letter-spacing: -0.045em;
}

h2 {
  margin-bottom: 4px;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.route {
  margin: 4px 0 0;
  font-size: 14px;
  white-space: nowrap;
}

.session {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.tool-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}

.nav-link {
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
}

.session-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--green);
  font-size: 13px;
  font-weight: 600;
}

.card,
.workspace {
  padding: 28px clamp(18px, 3vw, 40px) 36px;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: start;
  padding: 0;
}

.form {
  display: grid;
  gap: 14px;
}

.form-panel,
.side-card {
  min-width: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  padding: 26px clamp(18px, 3vw, 40px) 30px;
}

#login-card .form,
#change-form,
#reset-form {
  max-width: 680px;
}

.home-main {
  padding: 34px clamp(18px, 3vw, 40px) 44px;
}

.home-login {
  max-width: 680px;
}

.section-copy {
  margin-bottom: 2px;
}

label,
legend {
  display: grid;
  gap: 8px;
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 700;
}

input[type="text"],
input[type="url"],
input[type="email"],
input[type="password"],
input[type="file"],
input[type="date"],
input[type="search"],
select {
  width: 100%;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--text);
  background: var(--field);
  outline: none;
}

input::placeholder {
  color: #6d726c;
}

input[type="file"] {
  display: flex;
  align-items: center;
  padding: 12px 14px;
}

input[type="file"].hidden {
  display: none;
}

input:focus,
select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px rgba(47, 155, 238, 0.18);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

code {
  color: var(--text);
}

fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.checks {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.checks legend {
  width: 100%;
  margin-bottom: 8px;
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: var(--field);
  cursor: pointer;
}

.check input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--green);
}

.actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 2px;
}

button {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 18px;
  color: #fff;
  background: var(--green);
  font-weight: 700;
  cursor: pointer;
}

button:hover {
  background: var(--green-dark);
}

button:disabled {
  cursor: wait;
  opacity: 0.66;
}

button.secondary {
  min-height: 34px;
  border-color: var(--line);
  color: var(--muted-strong);
  background: var(--surface-soft);
  padding: 0 12px;
  font-size: 13px;
}

button.secondary:hover {
  color: var(--text);
  background: #2d302e;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.hint {
  margin-bottom: 0;
  font-size: 13px;
  line-height: 1.35;
}

.error {
  min-height: 17px;
  margin-bottom: 0;
  color: var(--danger);
  font-size: 13px;
  font-weight: 700;
}

.hidden {
  display: none !important;
}

.access-denied {
  min-height: clamp(240px, 55vh, 560px);
  display: grid;
  place-items: center;
  padding: 24px;
  border-top: 1px solid var(--line-soft);
}

.access-denied h2 { margin: 0; font-size: 24px; letter-spacing: 0; }

.workspace-boot {
  min-height: clamp(260px, 55vh, 580px);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  padding: 32px;
  color: var(--muted);
  text-align: center;
}

.workspace-boot p {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
}

.player-info-workspace {
  min-width: 0;
  display: grid;
  gap: 16px;
  padding: 18px 24px 24px;
}

.player-info-tabs {
  margin: 0;
}

.player-info-panel {
  min-width: 0;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 18px;
  background: #1d1f1e;
}

.player-info-upload-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.player-info-file-button {
  min-height: 76px;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  border: 1px dashed #626762;
  padding: 12px 16px;
  color: var(--text);
  background: var(--field);
  text-align: left;
}

.player-info-file-button:hover {
  border-color: var(--green);
  background: rgba(255, 90, 31, .06);
}

.player-info-file-button svg {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  color: #ff8a60;
}

.player-info-file-button span {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.player-info-file-button strong,
.player-info-file-button small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-info-file-button small {
  color: var(--muted);
  font-size: 12px;
}

.player-info-upload-row > .secondary {
  align-self: center;
}

.player-info-progress {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 700;
}

.player-info-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--line);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: telecom-spin .8s linear infinite;
}

.player-info-result {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.player-info-result strong,
.player-info-result span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  padding: 0 10px;
  color: var(--muted-strong);
  background: var(--field);
  font-size: 12px;
}

.player-info-result strong {
  border-color: rgba(118, 201, 149, .35);
  color: #76c995;
}

.player-info-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.player-info-table th,
.player-info-table td {
  max-width: 300px;
  overflow: hidden;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-info-table th {
  color: var(--muted);
  background: rgba(13, 15, 16, .18);
  font-size: 11px;
  text-transform: uppercase;
}

.player-info-table tr:last-child td {
  border-bottom: 0;
}

.player-info-archive-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.player-info-archive-head h2 {
  margin: 0;
  font-size: 18px;
}

.player-info-refresh {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.player-info-refresh svg {
  width: 16px;
  height: 16px;
}

.player-info-archive-wrap {
  max-width: 100%;
  overflow: auto;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
}

.player-info-source,
.player-info-table small {
  display: block;
}

.player-info-table small {
  margin-top: 3px;
  color: var(--muted);
}

.player-info-export-status {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.player-info-export-status.done { border-color: rgba(118, 201, 149, .4); color: #76c995; }
.player-info-export-status.running { border-color: rgba(234, 188, 91, .4); color: var(--wait); }
.player-info-export-status.error { border-color: rgba(239, 117, 105, .4); color: var(--danger); }

.player-info-log {
  max-width: 430px;
}

.player-info-log summary {
  overflow: hidden;
  color: var(--muted-strong);
  cursor: pointer;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-info-log > div {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  white-space: normal;
}

.player-info-log-event {
  display: grid;
  gap: 2px;
}

.player-info-log-event time { color: var(--muted); font-size: 10px; }
.player-info-log-event .success { color: #76c995; }
.player-info-log-event .error { color: var(--danger); }
.player-info-download { white-space: nowrap; }
.player-info-empty { color: var(--muted); text-align: center !important; }

.text-link { width: fit-content; color: #ff8a60; font-size: 13px; font-weight: 600; text-decoration: none; }
.text-link:hover { color: var(--text); }
.admin-workspace {
  display: grid;
  gap: 0;
  padding: 0;
}

.admin-workspace .form-panel {
  padding-top: 22px;
  padding-bottom: 26px;
}

.admin-workspace .section-head {
  align-items: flex-end;
  margin-bottom: 14px;
}

.admin-workspace .section-head h2 {
  margin-bottom: 3px;
  font-size: 19px;
  letter-spacing: 0;
}

.admin-section-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-section-actions button {
  min-height: 36px;
}

.admin-page-error:empty {
  display: none;
}

.admin-page-error:not(:empty) {
  margin: -2px 0 12px;
}

.admin-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: end;
  gap: 12px;
}

.scope-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-table-wrap {
  max-width: 100%;
  overflow: auto;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #1b1d1c;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.admin-users-table {
  min-width: 1040px;
}

.admin-table th,
.admin-table td {
  height: 54px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: middle;
}

.admin-table th {
  height: 38px;
  color: var(--muted);
  background: #171918;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.admin-table tr:last-child td {
  border-bottom: 0;
}

.admin-table time {
  white-space: nowrap;
}

.admin-users-table tbody tr {
  cursor: pointer;
  transition: background-color 150ms ease;
}

.admin-users-table tbody tr:hover,
.admin-users-table tbody tr:focus-within {
  background: rgba(255, 90, 31, .055);
}

.admin-users-table th:first-child,
.admin-users-table td:first-child {
  width: 25%;
}

.admin-users-table th:nth-child(2),
.admin-users-table td:nth-child(2) {
  width: 32%;
}

.admin-users-table th:last-child,
.admin-users-table td:last-child {
  width: 1%;
  text-align: right;
  white-space: nowrap;
}

.admin-user-open {
  min-height: 0;
  display: grid;
  gap: 2px;
  border: 0;
  border-radius: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  text-align: left;
}

.admin-user-open:hover,
.admin-user-open:focus-visible {
  color: inherit;
  background: transparent;
  outline: none;
}

.admin-user-open:focus-visible .admin-user-email {
  color: #ff8a60;
}

.admin-user-email {
  max-width: 320px;
  overflow: hidden;
  color: var(--text);
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.muted-line {
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
}

.admin-access-summary {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.admin-access-chip,
.admin-access-more,
.admin-role {
  min-height: 23px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0 7px;
  color: var(--muted-strong);
  background: #202321;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.admin-access-chip.is-admin,
.admin-role.is-admin {
  border-color: rgba(255, 90, 31, .35);
  color: #ff956e;
  background: rgba(255, 90, 31, .08);
}

.admin-access-more {
  min-width: 23px;
  justify-content: center;
  color: var(--muted);
  padding: 0 5px;
  cursor: help;
}

.admin-access-more:hover,
.admin-access-more:focus-visible {
  border-color: rgba(255, 149, 110, .55);
  color: #ff956e;
  outline: none;
}

.admin-access-tooltip {
  position: fixed;
  z-index: 1200;
  width: max-content;
  max-width: min(280px, calc(100vw - 24px));
  display: grid;
  gap: 4px;
  padding: 9px 10px;
  border: 1px solid #4a4e4a;
  border-radius: 6px;
  color: var(--muted-strong);
  background: #242725;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .46);
  font-size: 11px;
  line-height: 1.35;
  pointer-events: none;
}

.admin-access-tooltip strong {
  margin-bottom: 2px;
  color: #ff956e;
  font-size: 10px;
  text-transform: uppercase;
}

.admin-access-tooltip span {
  overflow-wrap: anywhere;
}

.admin-access-empty {
  color: var(--muted);
  font-size: 12px;
}

.admin-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.admin-status > span {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--muted);
}

.admin-status.is-active > span {
  background: #76c995;
  box-shadow: 0 0 0 3px rgba(118, 201, 149, .08);
}

.admin-status.is-disabled {
  color: #8d918d;
}

.admin-status.is-disabled > span {
  background: var(--danger);
}

.admin-manage-button {
  opacity: .76;
}

.admin-users-table tr:hover .admin-manage-button,
.admin-manage-button:focus-visible {
  opacity: 1;
}

.admin-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.admin-actions button {
  min-height: 34px;
}

.admin-actions [data-action="save"]:disabled {
  cursor: default;
  opacity: .48;
}

.audit-meta {
  max-width: 360px;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--green);
}

.status-dot.off {
  background: var(--danger);
}

body.admin-modal-open {
  overflow: hidden;
}

.admin-modal {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 20px;
  background: rgba(5, 7, 6, .78);
  backdrop-filter: blur(5px);
}

.admin-modal-dialog {
  width: min(980px, 100%);
  max-height: min(880px, calc(100dvh - 40px));
  overflow: hidden;
  border: 1px solid #4a4e4a;
  border-radius: 8px;
  background: #1d1f1e;
  box-shadow: 0 28px 100px rgba(0, 0, 0, .62);
}

.admin-access-form {
  max-height: min(880px, calc(100dvh - 40px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
}

.admin-modal-header,
.admin-modal-footer {
  position: relative;
  z-index: 2;
  background: #222422;
}

.admin-modal-header {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.admin-modal-header .kicker {
  margin-bottom: 3px;
  font-size: 10px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.admin-modal-header h2 {
  margin-bottom: 2px;
  font-size: 21px;
  letter-spacing: 0;
}

.admin-modal-header .hint {
  max-width: 650px;
  font-size: 12px;
}

.admin-modal-close {
  flex: 0 0 auto;
  color: var(--muted);
  background: transparent;
  font-size: 22px;
}

.admin-modal-body {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.admin-access-section {
  padding: 18px 20px 20px;
  border-bottom: 1px solid var(--line-soft);
}

.admin-access-section:last-child {
  border-bottom: 0;
}

.admin-access-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 13px;
}

.admin-access-section-heading h3 {
  margin: 0 0 2px;
  color: var(--text);
  font-size: 15px;
  letter-spacing: 0;
}

.admin-access-section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.admin-account-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) minmax(190px, 1fr) minmax(190px, 1fr);
  gap: 10px;
  align-items: stretch;
}

.admin-account-grid > label:first-child {
  gap: 6px;
  font-size: 11px;
}

.admin-account-grid input[type="email"],
.permission-search input {
  height: 42px;
  border-radius: 7px;
}

.admin-toggle,
.permission-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  color: var(--text);
  background: #191b1a;
  cursor: pointer;
  transition: border-color 140ms ease, background-color 140ms ease, opacity 140ms ease;
}

.admin-toggle {
  min-height: 64px;
  padding: 10px 12px;
}

.admin-toggle:hover,
.permission-option:hover {
  border-color: #555a55;
  background: #1f2220;
}

.admin-toggle:has(input:checked),
.permission-option:has(input:checked) {
  border-color: rgba(255, 90, 31, .48);
  background: rgba(255, 90, 31, .075);
}

.admin-toggle input,
.permission-option input,
.report-access-mode input {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  margin: 0;
  accent-color: var(--green);
}

.admin-toggle span,
.permission-option span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.admin-toggle strong,
.permission-option strong {
  font-size: 12px;
  line-height: 1.25;
}

.admin-toggle small,
.permission-option small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.3;
}

.permission-heading {
  align-items: center;
}

.permission-search {
  width: min(280px, 42%);
  display: block;
}

.permission-search input {
  padding-left: 13px;
  background: #171918;
}

.admin-access-note {
  margin-bottom: 10px;
  border-left: 2px solid #ff8a60;
  padding: 8px 10px;
  color: var(--muted-strong);
  background: rgba(255, 90, 31, .055);
  font-size: 11px;
  line-height: 1.4;
}

.admin-tool-permissions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.permission-option {
  min-height: 56px;
  padding: 9px 11px;
}

.permission-option:has(input:disabled) {
  cursor: default;
  opacity: .52;
}

.permission-option.permission-filtered,
.report-permission-group.permission-filtered {
  display: none;
}

.report-access-mode {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 3px;
  background: #171918;
}

.report-access-mode label {
  position: relative;
  display: block;
  cursor: pointer;
}

.report-access-mode input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.report-access-mode span {
  min-height: 31px;
  display: flex;
  align-items: center;
  border-radius: 5px;
  padding: 0 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  transition: color 140ms ease, background-color 140ms ease;
}

.report-access-mode label:hover span {
  color: var(--text);
}

.report-access-mode input:checked + span {
  color: #fff;
  background: var(--green);
}

.report-section-permissions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  transition: opacity 140ms ease;
}

.report-section-permissions.is-disabled {
  opacity: .45;
}

.report-permission-group {
  min-width: 0;
}

.report-permission-group h4 {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.report-permission-group > div {
  display: grid;
  gap: 5px;
}

.report-permission-option {
  min-height: 38px;
  border-radius: 6px;
  padding: 7px 9px;
}

.report-permission-option strong {
  font-size: 11px;
}

#report-access-error:empty,
#access-form-error:empty {
  display: none;
}

#report-access-error:not(:empty) {
  margin-top: 10px;
}

.admin-modal-footer {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
  border-top: 1px solid var(--line);
}

.admin-modal-footer > .error {
  min-width: 0;
  flex: 1 1 auto;
  margin: 0;
}

.admin-modal-footer > .error.success {
  color: #76c995;
}

.admin-modal-footer-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-left: auto;
}

.admin-modal-footer-actions button {
  min-height: 38px;
  white-space: nowrap;
}

#user-access-save {
  border-color: var(--line);
  color: #818681;
  background: #292c2a;
  box-shadow: none;
  cursor: default;
  opacity: 1;
  transition: border-color 150ms ease, color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

#user-access-save.admin-save-dirty {
  border-color: var(--green);
  color: #fff;
  background: var(--green);
  box-shadow: 0 0 0 1px rgba(255, 90, 31, .2), 0 0 18px rgba(255, 90, 31, .18);
  cursor: pointer;
}

#user-access-save.admin-save-dirty:hover,
#user-access-save.admin-save-dirty:focus-visible {
  background: var(--green-dark);
}

.jobs-panel {
  min-width: 0;
  min-height: 0;
}

.jobs {
  min-width: 0;
  display: grid;
  gap: 8px;
  overflow: visible;
}

.job {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: #1a1c1b;
}

.job-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 7px;
}

.job-top strong {
  min-width: 0;
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.badge {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  color: #0d0f10;
  background: var(--green);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.badge.running,
.badge.queued {
  background: var(--wait);
}

.badge.error {
  color: #fff;
  background: var(--danger);
}

.job a {
  color: var(--green);
  font-weight: 700;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.job p {
  margin-bottom: 7px;
  overflow-wrap: anywhere;
}

.job small {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.progress-block {
  display: grid;
  gap: 7px;
  margin: 6px 0 8px;
}

.progress-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
}

.progress-line span {
  color: var(--muted);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.progress-bar {
  height: 8px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: #161817;
}

.progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
  transition: width 0.3s ease;
}

.telecom-workspace {
  display: grid;
  gap: 16px;
  padding: 18px 24px 24px;
}

.telecom-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  width: fit-content;
  padding: 4px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: #1d1f1e;
}

.telecom-tab {
  min-height: 38px;
  border-radius: 5px;
  padding: 0 14px;
  color: var(--muted-strong);
  background: transparent;
  font-size: 13px;
}

.telecom-tab:hover {
  color: var(--text);
  background: rgba(255, 90, 31, 0.08);
}

.telecom-tab.active {
  color: #fff;
  background: var(--green);
}

.telecom-tab-panel {
  display: grid;
  gap: 16px;
}

.telecom-tab-panel.hidden {
  display: none;
}

.telecom-filterbar {
  display: grid;
  grid-template-columns:
    minmax(132px, 0.75fr)
    minmax(132px, 0.75fr)
    minmax(180px, 1fr)
    minmax(158px, 0.85fr)
    96px;
  align-items: end;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: #1d1f1e;
}

.report-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.report-strip div,
.metric {
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: #1d1f1e;
}

.report-strip div {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  color: var(--muted);
  font-size: 13px;
}

.report-strip strong {
  color: var(--text);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.metric {
  min-height: 82px;
  display: grid;
  align-content: space-between;
  gap: 10px;
  padding: 14px;
}

.metric-accent {
  border-color: rgba(255, 90, 31, 0.44);
  background: rgba(255, 90, 31, 0.08);
}

.metric span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.metric strong {
  font-size: 26px;
  line-height: 1;
}

.table-panel {
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  overflow: hidden;
  background: #1d1f1e;
}

.report-head {
  min-height: 72px;
  margin: 0;
  padding: 16px;
  border-bottom: 1px solid var(--line-soft);
}

.table-panel .error {
  padding: 0 16px;
}

.table-scroll {
  overflow-x: auto;
}

.report-table {
  width: 100%;
  min-width: 1120px;
  border-collapse: collapse;
  table-layout: fixed;
}

.report-table th,
.report-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: middle;
}

.report-table th {
  color: var(--muted);
  background: rgba(13, 15, 16, 0.18);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.report-table tr:last-child td {
  border-bottom: 0;
}

.report-table tr:hover td {
  background: rgba(255, 255, 255, 0.025);
}

.report-table th:nth-child(1),
.report-table td:nth-child(1) {
  width: 17%;
}

.report-table th:nth-child(2),
.report-table td:nth-child(2),
.report-table th:nth-child(3),
.report-table td:nth-child(3),
.report-table th:nth-child(4),
.report-table td:nth-child(4),
.report-table th:nth-child(5),
.report-table td:nth-child(5),
.report-table th:nth-child(6),
.report-table td:nth-child(6) {
  width: 9%;
}

.report-table th:nth-child(7),
.report-table td:nth-child(7) {
  width: 15%;
}

.report-table th:nth-child(8),
.report-table td:nth-child(8) {
  width: 23%;
}

.report-table td strong,
.muted-line {
  display: block;
}

.numeric {
  font-variant-numeric: tabular-nums;
}

.rate {
  color: #ffb79f;
  font-weight: 700;
}

.muted-line {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.reason-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.reason-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  color: var(--muted-strong);
  background: #1a1c1b;
  font-size: 12px;
  white-space: nowrap;
}

.reason-pill strong,
.reason-pill span,
.reason-pill em {
  display: inline;
}

.reason-pill strong {
  color: var(--text);
}

.reason-pill em {
  color: var(--green);
  font-style: normal;
  font-weight: 700;
}

.empty {
  color: var(--muted);
  text-align: center;
}

.suppression-import-panel {
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: #1d1f1e;
}

.suppression-head,
.suppression-list-head {
  min-height: 72px;
  margin: 0;
  padding: 14px 16px;
}

.suppression-list-head {
  border-bottom: 1px solid var(--line-soft);
}

.suppression-actions,
.suppression-search,
.table-pagination {
  display: flex;
  align-items: center;
  gap: 8px;
}

.landings-workspace {
  display: grid;
  gap: 14px;
  padding: 18px 22px 24px;
}

.landings-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}

.landings-search {
  width: min(540px, 100%);
}

.landings-search input {
  height: 42px;
}

.landings-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.landing-count {
  min-width: 72px;
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.landing-stats-period {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.landings-error {
  min-height: 0;
}

.landings-table-wrap {
  overflow: auto;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: #1a1c1b;
}

.landings-table {
  width: 100%;
  min-width: 1500px;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 12px;
}

.landings-table .landing-column { width: 23%; }
.landings-table .creative-column { width: 8%; }
.landings-table .bonus-column { width: 8%; }
.landings-table .traffic-column { width: 15%; }
.landings-table .conversion-column { width: 27%; }
.landings-table .teams-column { width: 19%; }

.landings-table th,
.landings-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: middle;
}

.landings-table th {
  position: sticky;
  z-index: 2;
  top: 0;
  color: var(--muted);
  background: #151716;
  font-size: 10px;
  text-transform: uppercase;
}

.landing-sort {
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  text-transform: inherit;
}

.landing-sort:hover,
.landing-sort:focus-visible,
.landing-sort.active {
  color: var(--text);
  background: transparent;
  outline: none;
}

.landing-sort:focus-visible {
  text-decoration: underline;
  text-decoration-color: #ff8a60;
  text-underline-offset: 3px;
}

.landing-sort-indicator::before {
  content: "\2195";
  color: #6f7773;
  font-size: 11px;
}

.landing-sort[data-direction="asc"] .landing-sort-indicator::before {
  content: "\2191";
  color: #ff8a60;
}

.landing-sort[data-direction="desc"] .landing-sort-indicator::before {
  content: "\2193";
  color: #ff8a60;
}

.landings-table tr:last-child td {
  border-bottom: 0;
}

.landing-primary,
.landing-creative {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.landing-entry {
  width: 100%;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.landing-primary {
  width: auto;
  gap: 2px;
}

.landing-thumbnail {
  width: 132px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  color: var(--muted);
  background: #111312;
  font-size: 10px;
  text-align: center;
  text-decoration: none;
}

.landing-thumbnail img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: opacity 160ms ease;
}

.landing-thumbnail:hover img {
  opacity: 0.82;
}

.landing-primary a {
  overflow-wrap: anywhere;
}

.landing-primary a,
.landing-creative a,
.landing-link,
.secondary-link {
  color: #ff8a60;
  font-weight: 700;
  text-decoration: none;
}

.landing-primary a:hover,
.landing-creative a:hover,
.landing-link:hover,
.secondary-link:hover {
  color: var(--text);
}

.landing-creative small,
.landing-name-status,
.copy-status,
.landing-muted {
  color: var(--muted);
  font-size: 11px;
}

.landing-links {
  width: 100%;
  display: grid;
  gap: 5px;
}

.landing-name-editor,
.tracker-link-row {
  min-width: 0;
  display: grid;
  align-items: center;
  gap: 6px;
}

.landing-name-editor {
  grid-template-columns: minmax(0, 1fr) 24px;
  gap: 4px;
}

.landing-name-input {
  min-width: 0;
  height: 34px !important;
  padding: 0 8px !important;
  border-radius: 5px !important;
  font-size: 12px !important;
  font-weight: 700;
}

.landing-name-status {
  min-height: 13px;
  grid-column: 1 / -1;
}

.landing-name-status:empty,
.copy-status:empty {
  display: none;
}

.icon-button.compact {
  width: 32px;
  height: 32px;
  min-height: 32px;
  border-radius: 6px;
  padding: 0;
}

.icon-button.compact svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.landing-name-save {
  width: 24px !important;
  height: 24px !important;
  min-height: 24px !important;
  border: 0 !important;
  border-radius: 4px !important;
  padding: 0 !important;
  color: var(--muted);
  background: transparent !important;
}

.landing-name-save svg {
  width: 14px !important;
  height: 14px !important;
}

.landing-name-save:hover:not(:disabled),
.landing-name-save:focus-visible {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06) !important;
  outline: none;
}

.landing-name-save:disabled {
  cursor: default;
  opacity: 0.38;
}

.tracker-link-row {
  grid-template-columns: minmax(0, 1fr) 32px;
}

.tracker-url {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 11px;
  line-height: 1.35;
}

.copy-status {
  min-height: 13px;
  grid-column: 1 / -1;
}

.landing-conversion {
  display: grid;
  gap: 8px;
}

.landing-funnel {
  display: grid;
  grid-template-columns: minmax(74px, 1fr) 12px minmax(74px, 1fr) 12px minmax(58px, 0.8fr);
  align-items: center;
  gap: 4px;
}

.landing-funnel > span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.landing-funnel small {
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.landing-funnel strong {
  color: var(--text);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.landing-funnel i {
  color: #6f7773;
  font-size: 13px;
  font-style: normal;
  text-align: center;
}

.landing-funnel > span:first-child strong { color: #ff8a60; }
.landing-funnel > span:nth-of-type(2) strong { color: #6eb8df; }
.landing-funnel > span:last-child strong { color: #76c995; }

.landing-conversion-rates {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 12px;
  color: var(--muted);
  font-size: 10px;
}

.landing-conversion-rates strong {
  color: var(--muted-strong);
  font-variant-numeric: tabular-nums;
}

.landing-teams,
.landing-bonuses {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.landing-team,
.landing-bonus {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  padding: 4px 6px;
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  color: var(--muted-strong);
  background: #202321;
  font-size: 10px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.landing-bonus {
  border-color: rgba(110, 184, 223, 0.34);
  color: #92cbf5;
}

.landing-team small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
}

.landing-team-more {
  appearance: none;
  font-family: inherit;
  line-height: 1.2;
  color: #ff8a60;
  border-color: rgba(255, 90, 31, 0.42);
  cursor: pointer;
}

.landing-team-more:hover,
.landing-team-more:focus-visible,
.landing-team-more[aria-expanded="true"] {
  color: #ffd4c4;
  background: rgba(255, 90, 31, 0.12);
  outline: none;
}

.landing-team-more:focus-visible {
  box-shadow: 0 0 0 2px rgba(255, 138, 96, 0.32);
}

.landing-teams-expanded {
  flex: 1 0 100%;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  padding-top: 2px;
}

.landings-empty {
  height: 180px;
  color: var(--muted);
  text-align: center !important;
}

.suppression-search input {
  width: min(320px, 44vw);
  min-height: 38px;
}

.suppression-job {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 56px;
  padding: 10px 16px;
  border-top: 1px solid var(--line-soft);
  background: rgba(255, 90, 31, 0.07);
}

.suppression-job.hidden {
  display: none;
}

.suppression-job div {
  display: grid;
  gap: 2px;
}

.suppression-job span:last-child {
  color: var(--muted);
  font-size: 12px;
}

.spinner {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  border: 2px solid rgba(255, 90, 31, 0.25);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: telecom-spin 0.8s linear infinite;
}

@keyframes telecom-spin {
  to { transform: rotate(360deg); }
}

.suppression-import-panel .error {
  padding: 0 16px 12px;
}

.suppression-table,
.suppression-history-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.suppression-history-table {
  min-width: 980px;
}

.suppression-table th,
.suppression-table td,
.suppression-history-table th,
.suppression-history-table td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: middle;
}

.suppression-table th,
.suppression-history-table th {
  color: var(--muted);
  background: rgba(13, 15, 16, 0.18);
  font-size: 12px;
  text-transform: uppercase;
}

.suppression-table tr:last-child td,
.suppression-history-table tr:last-child td {
  border-bottom: 0;
}

.suppression-table th:last-child,
.suppression-table td:last-child {
  width: 112px;
}

.phone-cell {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.row-actions {
  text-align: right !important;
  white-space: nowrap;
}

button.danger-button {
  border-color: rgba(240, 92, 80, 0.34);
  color: #ff9c94;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0 8px;
  color: var(--muted-strong);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.status-succeeded {
  border-color: rgba(116, 201, 151, 0.42);
  color: #84d9a7;
}

.status-failed {
  border-color: rgba(240, 92, 80, 0.42);
  color: #ff8d83;
}

.status-running,
.status-queued {
  border-color: rgba(215, 164, 61, 0.42);
  color: #e5bb62;
}

.table-pagination {
  justify-content: flex-end;
  padding: 10px 14px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 12px;
}

.vitals-surface {
  width: min(var(--hub-content-max), 100%);
}

.vitals-workspace {
  background: #181a19;
}

.vitals-overview {
  min-height: 132px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px clamp(18px, 3vw, 40px);
  border-bottom: 1px solid var(--line);
  background: #242624;
}

.vitals-overview-copy {
  min-width: 0;
}

.vitals-overview h2 {
  margin: 10px 0 5px;
  font-size: 26px;
  letter-spacing: 0;
}

.vitals-state,
.vitals-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.vitals-state {
  color: #84d9a7;
  font-size: 12px;
  text-transform: uppercase;
}

.vitals-state > span,
.vitals-badge i {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 5px color-mix(in srgb, currentColor 12%, transparent);
}

.vitals-state.degraded,
.vitals-state.unavailable,
.vitals-badge.unhealthy {
  color: #ff8d83;
}

.vitals-state.stale,
.vitals-state.loading {
  color: #e5bb62;
}

.icon-text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.icon-text-button svg {
  width: 16px;
  height: 16px;
}

.icon-text-button.loading svg {
  animation: telecom-spin 0.8s linear infinite;
}

.vitals-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.vitals-metrics > div {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: 18px clamp(16px, 2vw, 28px);
  border-right: 1px solid var(--line-soft);
}

.vitals-metrics > div:last-child {
  border-right: 0;
}

.vitals-metrics span,
.vitals-group header span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.vitals-metrics strong {
  font-size: 28px;
  line-height: 1;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

.vitals-metrics strong.has-issues {
  color: #ff8d83;
}

.vitals-controls {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(18px, 3vw, 40px);
  border-bottom: 1px solid var(--line);
  background: #202220;
}

.vitals-search {
  width: min(420px, 100%);
  flex: 1 1 280px;
}

.vitals-search input {
  height: 40px;
}

.vitals-filters {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--field);
}

.vitals-filters button {
  min-height: 38px;
  flex: 0 0 auto;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  padding: 0 13px;
  color: var(--muted-strong);
  background: transparent;
  font-size: 12px;
}

.vitals-filters button:last-child {
  border-right: 0;
}

.vitals-filters button:hover {
  color: var(--text);
  background: #2a2c2a;
}

.vitals-filters button.active {
  color: #fff;
  background: var(--green);
}

.vitals-error:not(:empty) {
  padding: 14px clamp(18px, 3vw, 40px);
  border-bottom: 1px solid rgba(240, 92, 80, 0.35);
  background: rgba(240, 92, 80, 0.08);
}

.vitals-groups {
  display: grid;
}

.vitals-group {
  border-bottom: 1px solid var(--line);
}

.vitals-group:last-child {
  border-bottom: 0;
}

.vitals-group > header {
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 13px clamp(18px, 3vw, 40px);
  background: #202220;
}

.vitals-group > header > div {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.vitals-group h2 {
  margin: 0;
  font-size: 17px;
  letter-spacing: 0;
}

.vitals-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.vitals-table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  table-layout: fixed;
}

.vitals-table th,
.vitals-table td {
  padding: 13px clamp(12px, 2vw, 28px);
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  vertical-align: middle;
}

.vitals-table tr:last-child td {
  border-bottom: 0;
}

.vitals-table th {
  color: var(--muted);
  background: rgba(13, 15, 16, 0.2);
  font-size: 10px;
  text-transform: uppercase;
}

.vitals-table th:nth-child(1) { width: 34%; }
.vitals-table th:nth-child(2) { width: 15%; }
.vitals-table th:nth-child(3) { width: 17%; }
.vitals-table th:nth-child(4) { width: 34%; }

.vitals-table tr.has-issue {
  background: rgba(240, 92, 80, 0.05);
}

.vitals-table td strong,
.vitals-table td small {
  display: block;
}

.vitals-table td strong {
  margin-bottom: 2px;
  font-size: 13px;
  letter-spacing: 0;
}

.vitals-table td small,
.vitals-detail {
  color: var(--muted);
  font-size: 11px;
}

.vitals-table td .vitals-description {
  color: var(--muted-strong);
  line-height: 1.4;
}

.vitals-table td .vitals-technical-name {
  margin-top: 3px;
  color: #737a75;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.vitals-badge {
  min-height: 26px;
  border: 1px solid rgba(116, 201, 151, 0.28);
  border-radius: 5px;
  padding: 0 8px;
  color: #84d9a7;
  font-size: 10px;
  text-transform: uppercase;
}

.vitals-badge.unhealthy {
  border-color: rgba(240, 92, 80, 0.34);
}

.vitals-badge i {
  width: 6px;
  height: 6px;
  box-shadow: none;
}

.vitals-detail {
  overflow-wrap: anywhere;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
}

.vitals-empty {
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 760px) {
  .shell {
    min-height: 100vh;
    padding: 0;
  }

  .surface { min-height: 100vh; border-right: 0; border-left: 0; border-radius: 0; }

  .topbar {
    padding: 8px 12px;
  }

  .hub-header { min-height: 62px; }
  .hub-brand-cluster { gap: 8px; }
  .hub-logo { width: 36px; height: 36px; }
  .hub-brand h1 { max-width: 142px; font-size: 17px; }
  .hub-tool-tabs { padding: 0 8px; }
  .hub-tool-tab { padding: 0 10px; }
  .hub-tool-tab::after { right: 10px; left: 10px; }
  .session-email { max-width: 120px; }
  body[data-tool="landings"] .hub-header { flex-wrap: wrap; }
  body[data-tool="landings"] .session-actions { width: 100%; justify-content: flex-end; }
  body[data-tool="player_info"] .hub-header { flex-wrap: wrap; }
  body[data-tool="player_info"] .session-actions { width: 100%; justify-content: flex-end; }
  body[data-tool="admin"] .hub-header { flex-wrap: wrap; }
  body[data-tool="admin"] .session-actions { width: 100%; justify-content: flex-end; }
  .admin-toolbar { grid-template-columns: 1fr; }

  .admin-workspace .form-panel {
    padding: 18px 14px 22px;
  }

  .admin-workspace .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-section-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .admin-section-actions button {
    width: 100%;
  }

  .admin-users-table-wrap,
  .admin-users-table {
    min-width: 0;
  }

  .admin-users-table {
    display: block;
  }

  .admin-users-table thead {
    display: none;
  }

  .admin-users-table tbody {
    display: grid;
    gap: 8px;
  }

  .admin-users-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
    border: 1px solid var(--line-soft);
    border-radius: 7px;
    padding: 12px;
    background: #1b1d1c;
  }

  .admin-users-table td,
  .admin-users-table th:first-child,
  .admin-users-table td:first-child,
  .admin-users-table th:nth-child(2),
  .admin-users-table td:nth-child(2),
  .admin-users-table th:last-child,
  .admin-users-table td:last-child {
    width: auto;
  }

  .admin-users-table td {
    height: auto;
    padding: 0;
    border: 0;
    text-align: left;
  }

  .admin-users-table td:nth-child(1),
  .admin-users-table td:nth-child(2),
  .admin-users-table td:nth-child(6) {
    grid-column: 1 / -1;
  }

  .admin-users-table td:nth-child(5) {
    display: none;
  }

  .admin-users-table td:nth-child(6) {
    margin-top: 2px;
  }

  .admin-user-email {
    max-width: calc(100vw - 70px);
  }

  .admin-manage-button {
    width: 100%;
    opacity: 1;
  }

  .admin-access-summary {
    min-height: 24px;
  }

  .admin-modal {
    place-items: stretch;
    padding: 8px;
  }

  .admin-modal-dialog,
  .admin-access-form {
    width: 100%;
    max-height: calc(100dvh - 16px);
  }

  .admin-modal-header {
    min-height: 76px;
    padding: 13px 14px;
  }

  .admin-modal-header h2 {
    font-size: 18px;
  }

  .admin-modal-header .hint {
    max-width: calc(100vw - 100px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .admin-access-section {
    padding: 16px 14px 18px;
  }

  .admin-access-section-heading,
  .permission-heading {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .admin-account-grid,
  .admin-tool-permissions,
  .report-section-permissions {
    grid-template-columns: 1fr;
  }

  .permission-search {
    width: 100%;
  }

  .report-access-mode {
    align-self: stretch;
  }

  .report-access-mode label {
    flex: 1 1 0;
  }

  .report-access-mode span {
    justify-content: center;
  }

  .report-section-permissions {
    gap: 15px;
  }

  .admin-modal-footer {
    min-height: 0;
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
    padding: 10px 14px 12px;
  }

  .admin-modal-footer-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .admin-modal-footer-actions button {
    width: 100%;
    padding: 0 10px;
    white-space: normal;
  }

  #access-reset-password {
    grid-column: 1 / -1;
  }

  .landings-workspace { padding: 14px; }
  .landings-toolbar { align-items: stretch; flex-direction: column; }
  .landings-toolbar-actions { justify-content: space-between; }
  .landings-table-wrap { overflow: visible; border: 0; background: transparent; }
  .landings-table { min-width: 0; }
  .landings-table colgroup { display: none; }
  .landings-table thead { display: block; margin-bottom: 8px; }
  .landings-table thead tr { display: flex; flex-wrap: wrap; gap: 5px; margin: 0; border: 0; background: transparent; }
  .landings-table thead th { position: static; display: block; width: auto; padding: 0; border: 0; background: transparent; }
  .landings-table thead .landing-sort { min-height: 34px; padding: 6px 8px; border: 1px solid var(--line-soft); border-radius: 5px; background: #1a1c1b; }
  .landings-table thead .landing-sort.active { border-color: rgba(255, 90, 31, 0.42); background: rgba(255, 90, 31, 0.08); }
  .landings-table,
  .landings-table tbody,
  .landings-table tr,
  .landings-table td { display: block; width: 100%; }
  .landings-table tr { margin-bottom: 10px; border: 1px solid var(--line-soft); border-radius: 7px; background: #1a1c1b; }
  .landings-table td { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--line-soft); }
  .landings-table td::before { content: attr(data-label); color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; }
  .landings-table td:last-child { border-bottom: 0; }
  .landing-primary,
  .landing-links { width: 100%; }
  .landing-entry { width: 100%; grid-template-columns: minmax(0, 1fr); }
  .landing-thumbnail { width: min(240px, 100%); }
  .landing-funnel { max-width: 420px; grid-template-columns: minmax(0, 1fr) 8px minmax(0, 1fr) 8px minmax(0, 0.75fr); gap: 2px; }
  .landings-empty { display: block !important; padding: 70px 14px !important; }
  .landings-empty::before { content: none !important; }

  .session {
    justify-items: start;
  }

  .card {
    padding: 20px 18px 22px;
  }

  .workspace {
    grid-template-columns: 1fr;
  }

  .actions {
    grid-template-columns: 1fr;
    display: grid;
  }

  .tool-nav {
    justify-content: flex-start;
  }

  .telecom-workspace {
    padding: 16px 18px 20px;
  }

  .player-info-workspace {
    padding: 16px 18px 20px;
  }

  .player-info-upload-row,
  .player-info-result {
    align-items: stretch;
    flex-direction: column;
  }

  .player-info-upload-row > .secondary {
    align-self: stretch;
  }

  .telecom-filterbar,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .telecom-tabs {
    width: 100%;
  }

  .telecom-tab {
    flex: 1 1 0;
  }

  .suppression-head,
  .suppression-list-head {
    align-items: stretch;
    flex-direction: column;
  }

  .suppression-actions,
  .suppression-search {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .suppression-search input,
  .suppression-actions button {
    width: 100%;
  }

  .suppression-table,
  .suppression-table tbody,
  .suppression-table tr,
  .suppression-table td {
    display: block;
    width: 100%;
  }

  .suppression-table thead {
    display: none;
  }

  .suppression-table tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line-soft);
  }

  .suppression-table tbody tr:last-child {
    border-bottom: 0;
  }

  .suppression-table td {
    padding: 0;
    border: 0;
  }

  .suppression-table td:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
  }

  .suppression-table td:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
    color: var(--muted);
    font-size: 12px;
  }

  .suppression-table td:nth-child(3) {
    width: auto;
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .suppression-table td.empty {
    grid-column: 1 / -1;
    padding: 14px 0;
  }

  .route {
    white-space: normal;
  }

  body[data-tool="vitals"] .hub-header {
    flex-wrap: wrap;
  }

  body[data-tool="vitals"] .session-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .vitals-overview {
    min-height: 0;
    align-items: stretch;
    flex-direction: column;
  }

  .vitals-overview .icon-text-button {
    width: 100%;
  }

  .vitals-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vitals-metrics > div:nth-child(2) {
    border-right: 0;
  }

  .vitals-metrics > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line-soft);
  }

  .vitals-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .vitals-search {
    width: 100%;
    flex-basis: auto;
  }

  .vitals-filters {
    justify-content: flex-start;
  }

  .vitals-group > header > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .vitals-table {
    min-width: 0;
  }

  .vitals-table thead {
    display: none;
  }

  .vitals-table,
  .vitals-table tbody,
  .vitals-table tr,
  .vitals-table td {
    display: block;
    width: 100%;
  }

  .vitals-table tr {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line-soft);
  }

  .vitals-table tr:last-child {
    border-bottom: 0;
  }

  .vitals-table td {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 10px;
    padding: 6px 0;
    border: 0;
  }

  .vitals-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
  }

  .vitals-table td > * {
    min-width: 0;
  }

  .vitals-table td strong {
    margin-bottom: 3px;
  }
}

@media (min-width: 681px) and (max-width: 980px) {
  .admin-account-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-account-grid > label:first-child {
    grid-column: 1 / -1;
  }

  .admin-tool-permissions,
  .report-section-permissions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .telecom-filterbar,
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .telecom-filterbar button {
    grid-column: 1 / -1;
  }
}

/* Player 360 */
.player360-surface {
  min-height: calc(100vh - 32px);
}

.player360-workspace {
  min-height: calc(100vh - 102px);
}

.player360-search {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(190px, 240px) auto auto;
  align-items: end;
  gap: 12px;
  padding: 20px 28px;
  border-bottom: 1px solid var(--line);
  background: #1c1f1d;
}

.player360-search > button {
  height: 48px;
  white-space: nowrap;
}

.player360-refresh {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.player360-refresh svg {
  width: 17px;
  height: 17px;
}

.player360-loader {
  min-height: 102px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 26px 30px;
  border-bottom: 1px solid var(--line);
  background: #181b19;
}

.player360-loader strong,
.player360-loader small {
  display: block;
}

.player360-loader small {
  max-width: 680px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.player360-spinner {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border: 3px solid rgba(255, 90, 31, 0.2);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: player360-spin 0.8s linear infinite;
}

@keyframes player360-spin {
  to { transform: rotate(360deg); }
}

.player360-page-error {
  margin: 0;
  padding: 0 28px;
}

.player360-page-error:not(:empty) {
  padding-top: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(240, 92, 80, 0.35);
  background: rgba(240, 92, 80, 0.08);
}

.player360-empty {
  min-height: 410px;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 44px 24px;
  color: var(--muted);
  text-align: center;
}

.player360-empty h2 {
  margin: 14px 0 6px;
  color: var(--text);
  font-size: 20px;
  letter-spacing: 0;
}

.player360-empty p {
  max-width: 520px;
  margin: 0;
  font-size: 13px;
}

.player360-empty-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #ff8a60;
  background: var(--field);
}

.player360-empty-icon svg {
  width: 27px;
  height: 27px;
}

.player360-profile-head {
  min-height: 116px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 28px;
  border-bottom: 1px solid var(--line);
  background: #222522;
}

.player360-profile-head h2 {
  margin: 3px 0 9px;
  font-size: 30px;
  letter-spacing: 0;
}

.player360-eyebrow {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.player360-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.player360-tag,
.player360-class,
.player360-status,
.player360-delta {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 2px 8px;
  color: var(--muted-strong);
  background: var(--field);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.player360-tag.accent,
.player360-class.calculated {
  border-color: rgba(255, 186, 85, 0.42);
  color: #ffc86f;
  background: rgba(215, 164, 61, 0.09);
}

.player360-tag.success,
.player360-class.factual,
.player360-status.available,
.player360-status.success,
.player360-status.pass,
.player360-delta.positive {
  border-color: rgba(116, 201, 149, 0.38);
  color: #81d9a3;
  background: rgba(116, 201, 149, 0.08);
}

.player360-tag.blue,
.player360-class.model {
  border-color: rgba(91, 175, 231, 0.42);
  color: #75bdf0;
  background: rgba(47, 155, 238, 0.08);
}

.player360-tag.warning,
.player360-status.warning,
.player360-status.partial,
.player360-status.empty,
.player360-class.unavailable,
.player360-status.restricted {
  border-color: rgba(215, 164, 61, 0.42);
  color: #e6bc68;
  background: rgba(215, 164, 61, 0.08);
}

.player360-tag.danger,
.player360-status.fail,
.player360-delta.negative {
  border-color: rgba(240, 92, 80, 0.38);
  color: #f27d73;
  background: rgba(240, 92, 80, 0.08);
}

.player360-profile-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(130px, auto));
  gap: 24px;
  margin: 0;
}

.player360-profile-meta dt,
.player360-definition-grid dt,
.player360-highlight dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.player360-profile-meta dd,
.player360-definition-grid dd,
.player360-highlight dd {
  margin: 5px 0 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.player360-tabs {
  position: sticky;
  z-index: 8;
  top: 0;
  border-bottom: 1px solid var(--line);
  padding: 8px 28px 0;
  background: #191c1a;
}

.player360-panel {
  animation: player360-panel-in 0.16s ease-out;
}

@keyframes player360-panel-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.player360-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.player360-kpis.compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.player360-kpi {
  min-width: 0;
  min-height: 116px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 18px 20px;
  border-right: 1px solid var(--line);
}

.player360-kpi:last-child {
  border-right: 0;
}

.player360-kpi > span {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.player360-kpi strong {
  overflow: hidden;
  color: var(--text);
  font-size: 20px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player360-kpi small {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player360-kpi small.factual { color: #81d9a3; }
.player360-kpi small.calculated { color: #ffc86f; }

.player360-band-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.player360-band {
  min-width: 0;
  padding: 24px 28px 28px;
  border-right: 1px solid var(--line);
}

.player360-band:last-child { border-right: 0; }

.player360-band > header,
.player360-table-section > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.player360-band h3,
.player360-table-section h3,
.player360-highlight h3,
.player360-quality-summary h3 {
  margin: 3px 0 0;
  color: var(--text);
  font-size: 16px;
  letter-spacing: 0;
}

.player360-definition-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px 18px;
  margin: 24px 0 0;
}

.player360-definition-grid > div {
  min-width: 0;
}

.player360-definition-grid dd {
  overflow-wrap: anywhere;
}

.player360-table-section {
  border-bottom: 1px solid var(--line);
}

.player360-table-section > header {
  padding: 20px 28px 16px;
  background: rgba(255, 255, 255, 0.012);
}

.player360-table-section > header > p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.player360-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.player360-table {
  width: 100%;
  min-width: 880px;
  border-collapse: collapse;
  table-layout: fixed;
}

.player360-table th,
.player360-table td {
  border-top: 1px solid var(--line-soft);
  padding: 12px 14px;
  text-align: left;
  vertical-align: middle;
}

.player360-table th {
  color: var(--muted);
  background: #191c1a;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.player360-table td {
  color: var(--muted-strong);
  font-size: 12px;
}

.player360-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.player360-table td strong,
.player360-table td small {
  display: block;
}

.player360-table td strong {
  color: var(--text);
}

.player360-table td small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.player360-table td code {
  color: #ffc86f;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}

.player360-table-empty {
  height: 86px;
  color: var(--muted);
  text-align: center !important;
}

.player360-delta.neutral { color: var(--muted); }

.player360-status.success,
.player360-status.fail {
  min-width: 58px;
  justify-content: center;
}

.player360-highlight {
  min-height: 126px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
  background: #222522;
}

.player360-highlight p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.player360-highlight dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(110px, 1fr));
  gap: 26px;
  margin: 0;
}

.player360-highlight dd {
  font-size: 20px;
}

.player360-quality-summary {
  min-height: 112px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 28px;
  border-bottom: 1px solid var(--line);
  background: #222522;
}

.player360-quality-summary p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.player360-quality-mark {
  width: 58px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(116, 201, 149, 0.42);
  border-radius: 6px;
  color: #81d9a3;
  background: rgba(116, 201, 149, 0.08);
  font-size: 11px;
  font-weight: 700;
}

.player360-quality-mark.warning {
  border-color: rgba(215, 164, 61, 0.42);
  color: #e6bc68;
  background: rgba(215, 164, 61, 0.08);
}

.player360-unavailable {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line-soft);
}

.player360-unavailable article {
  min-width: 0;
  padding: 20px 28px;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.player360-unavailable article:nth-child(even) { border-right: 0; }

.player360-unavailable h4 {
  margin: 0 0 6px;
  font-size: 13px;
}

.player360-unavailable p,
.player360-unavailable small {
  display: block;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.player360-unavailable small {
  margin-top: 8px;
  color: #e6bc68;
}

@media (max-width: 1100px) {
  .player360-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .player360-kpis.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .player360-kpi:nth-child(3n) { border-right: 0; }
  .player360-definition-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .player360-profile-meta { grid-template-columns: 1fr; gap: 9px; }
}

@media (max-width: 760px) {
  .player360-shell { padding: 0; }
  .player360-surface { min-height: 100vh; border: 0; border-radius: 0; }
  .player360-search { grid-template-columns: 1fr 1fr; padding: 16px; }
  .player360-search > label:first-child { grid-column: 1 / -1; }
  .player360-profile-head { align-items: flex-start; flex-direction: column; padding: 20px 16px; }
  .player360-profile-meta { width: 100%; }
  .player360-tabs { overflow-x: auto; padding: 8px 16px 0; }
  .player360-tabs .telecom-tab { flex: 0 0 auto; }
  .player360-kpis,
  .player360-kpis.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .player360-kpi { min-height: 96px; padding: 14px 16px; }
  .player360-kpi:nth-child(odd) { border-right: 1px solid var(--line); }
  .player360-kpi:nth-child(even) { border-right: 0; }
  .player360-band-grid { grid-template-columns: 1fr; }
  .player360-band { padding: 20px 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .player360-band:last-child { border-bottom: 0; }
  .player360-definition-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
  .player360-table-section > header { padding: 18px 16px 14px; }
  .player360-table-section > header > p { display: none; }
  .player360-highlight { align-items: flex-start; flex-direction: column; padding: 20px 16px; }
  .player360-highlight dl { width: 100%; }
  .player360-quality-summary { align-items: flex-start; padding: 20px 16px; }
  .player360-unavailable { grid-template-columns: 1fr; }
  .player360-unavailable article { padding: 18px 16px; border-right: 0; }
}

@media (max-width: 480px) {
  .player360-search { grid-template-columns: 1fr; }
  .player360-search > label:first-child { grid-column: auto; }
  .player360-definition-grid { grid-template-columns: 1fr; }
  .player360-kpis,
  .player360-kpis.compact { grid-template-columns: 1fr; }
  .player360-kpi { border-right: 0 !important; }
}

.vip-surface {
  width: min(var(--hub-content-max), 100%);
  overflow: hidden;
}

.vip-workspace {
  min-width: 0;
  overflow: hidden;
}

.vip-overview {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.vip-overview h2,
.vip-overview p {
  margin-bottom: 0;
}

.vip-overview h2 {
  font-size: 19px;
  letter-spacing: 0;
}

.vip-overview .kicker {
  margin-bottom: 2px;
  font-size: 10px;
  letter-spacing: 0;
}

.vip-overview .hint {
  margin-top: 4px;
  font-size: 11px;
}

.vip-overview-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vip-mode-badge,
.vip-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid rgba(215, 164, 61, .42);
  border-radius: 5px;
  padding: 0 9px;
  color: #e6bc68;
  background: rgba(215, 164, 61, .08);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}

.vip-error {
  margin: 0;
  padding: 0 18px;
}

.vip-error:not(:empty) {
  padding-top: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}

.vip-health {
  min-height: 38px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 14px;
  padding: 8px 18px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 10px;
}

.vip-health strong {
  color: var(--text);
}

.vip-health-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--wait);
  box-shadow: 0 0 12px rgba(215, 164, 61, .45);
}

.vip-health.healthy .vip-health-dot {
  background: #74c995;
  box-shadow: 0 0 12px rgba(116, 201, 149, .5);
}

.vip-summary-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  border-bottom: 1px solid var(--line);
}

.vip-summary-grid .vip-metric {
  min-height: 68px;
  gap: 7px;
  padding: 11px 14px;
  border: 0;
  border-right: 1px solid var(--line-soft);
  border-radius: 0;
  background: transparent;
}

.vip-summary-grid .vip-metric:last-child {
  border-right: 0;
}

.vip-summary-grid .vip-metric span {
  font-size: 10px;
  letter-spacing: 0;
}

.vip-summary-grid .vip-metric strong {
  font-size: 23px;
}

.vip-metric-good strong {
  color: #8adca8;
}

.vip-metric-accent strong {
  color: #92cbf5;
}

.vip-metric-warn strong {
  color: #e6bc68;
}

.vip-thresholds {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  border-bottom: 1px solid var(--line);
  background: #1b1d1c;
}

.vip-threshold {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 2px 10px;
  padding: 9px 14px;
  border-right: 1px solid var(--line-soft);
}

.vip-threshold:last-child {
  border-right: 0;
}

.vip-threshold span {
  grid-row: 1 / 3;
  align-self: center;
  color: #7f857f;
  font-size: 9px;
  text-transform: uppercase;
}

.vip-threshold small {
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vip-threshold strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vip-filterbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(126px, 160px)) 88px;
  align-items: end;
  gap: 8px;
  padding: 11px 18px 12px;
  border-bottom: 1px solid var(--line);
}

.vip-filterbar label {
  gap: 5px;
  font-size: 10px;
  text-transform: uppercase;
}

.vip-filterbar input,
.vip-filterbar select {
  height: 36px;
  border-radius: 6px;
  padding-right: 10px;
  padding-left: 10px;
  font-size: 12px;
}

.vip-result-count {
  min-height: 36px;
  display: grid;
  align-content: center;
  justify-items: end;
}

.vip-result-count strong {
  font-size: 16px;
}

.vip-result-count span {
  color: var(--muted);
  font-size: 10px;
}

.vip-table-scroll {
  width: 100%;
  max-width: 100%;
  overscroll-behavior-x: contain;
  background: #1b1d1c;
}

.vip-table {
  width: 100%;
  min-width: 1200px;
  table-layout: fixed;
  font-size: 12px;
}

.vip-table th:nth-child(1), .vip-table td:nth-child(1) { width: 11%; }
.vip-table th:nth-child(2), .vip-table td:nth-child(2) { width: 17%; }
.vip-table th:nth-child(3), .vip-table td:nth-child(3) { width: 10%; }
.vip-table th:nth-child(4), .vip-table td:nth-child(4) { width: 14%; }
.vip-table th:nth-child(5), .vip-table td:nth-child(5) { width: 12%; }
.vip-table th:nth-child(6), .vip-table td:nth-child(6) { width: 15%; }
.vip-table th:nth-child(7), .vip-table td:nth-child(7) { width: 11%; }
.vip-table th:nth-child(8), .vip-table td:nth-child(8) { width: 10%; }

.vip-table th,
.vip-table td {
  padding: 10px 12px;
  vertical-align: middle;
}

.vip-table th {
  position: sticky;
  z-index: 2;
  top: 0;
  color: var(--muted);
  background: #171918;
  font-size: 9px;
  letter-spacing: 0;
}

.vip-table td > strong,
.vip-table td > .muted-line {
  display: block;
}

.vip-table td > strong {
  font-size: 12px;
  line-height: 1.25;
}

.vip-table td.numeric strong {
  white-space: nowrap;
}

.vip-table .muted-line {
  margin-top: 3px;
  font-size: 9px;
}

.vip-table .vip-status {
  width: max-content;
  min-height: 20px;
  margin: 4px 0 2px;
  padding: 0 6px;
  font-size: 8px;
}

.vip-status-active {
  border-color: rgba(116, 201, 149, .42);
  color: #8adca8;
  background: rgba(116, 201, 149, .08);
}

.vip-status-candidate,
.vip-status-enter,
.vip-status-upgrade {
  border-color: rgba(47, 155, 238, .42);
  color: #92cbf5;
  background: rgba(47, 155, 238, .08);
}

.vip-status-downgrade,
.vip-status-exit {
  border-color: rgba(215, 164, 61, .42);
  color: #e6bc68;
  background: rgba(215, 164, 61, .08);
}

.vip-progress {
  height: 4px;
  margin: 5px 0 3px;
  overflow: hidden;
  border-radius: 999px;
  background: #111312;
}

.vip-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--green));
}

@media (max-width: 1100px) {
  .vip-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .vip-summary-grid .vip-metric:nth-child(3n) {
    border-right: 0;
  }

  .vip-summary-grid .vip-metric:nth-child(-n + 3) {
    border-bottom: 1px solid var(--line-soft);
  }
}

@media (max-width: 760px) {
  .vip-overview {
    min-height: 72px;
    flex-wrap: wrap;
    padding: 12px 16px;
  }

  .vip-health,
  .vip-filterbar {
    padding-right: 16px;
    padding-left: 16px;
  }

  .vip-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vip-thresholds {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vip-summary-grid .vip-metric:nth-child(3n) {
    border-right: 1px solid var(--line-soft);
  }

  .vip-summary-grid .vip-metric:nth-child(even),
  .vip-threshold:nth-child(even) {
    border-right: 0;
  }

  .vip-summary-grid .vip-metric:nth-child(-n + 4),
  .vip-threshold:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line-soft);
  }

  .vip-filterbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vip-search {
    grid-column: 1 / -1;
  }

  .vip-result-count {
    justify-items: end;
  }
}

@media (max-width: 480px) {
  .vip-overview {
    align-items: flex-start;
    flex-direction: column;
  }

  .vip-filterbar {
    grid-template-columns: 1fr;
  }

  .vip-filterbar > *,
  .vip-search {
    grid-column: 1;
  }

  .vip-result-count {
    min-height: 28px;
    justify-items: start;
  }
}
