* {
  box-sizing: border-box;
}

.ql-body {
  --ql-bg: #f3f5f1;
  --ql-ink: #172018;
  --ql-muted: #5e6a61;
  --ql-panel: #ffffff;
  --ql-line: #d9dfd2;
  --ql-black: #101512;
  --ql-yellow: #f1c93b;
  --ql-green: #267047;
  --ql-green-dark: #174a31;
  --ql-red: #a64032;
  margin: 0;
  background: var(--ql-bg);
  color: var(--ql-ink);
  font: 14px/1.45 "Segoe UI", Arial, sans-serif;
}

.ql-body a {
  color: var(--ql-green-dark);
  text-decoration: none;
}

.ql-body a:hover {
  text-decoration: underline;
}

.ql-body h1,
.ql-body h2,
.ql-body h3,
.ql-body p {
  margin-top: 0;
}

.ql-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 68px;
  padding: 12px 28px;
  border-bottom: 1px solid #202821;
  background: #111711;
  color: #fff;
}

.ql-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
}

.ql-brand:hover {
  text-decoration: none;
}

.ql-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.ql-brand strong,
.ql-brand small {
  display: block;
}

.ql-brand strong {
  font-size: 18px;
}

.ql-brand small {
  color: #cfdbc5;
  font-size: 12px;
}

.ql-mark {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border: 2px solid #f7d75b;
  border-radius: 10px;
  background: #f1c93b;
}

.ql-mark img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.ql-ghost,
.ql-download,
.ql-form button,
#refresh-thread,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid var(--ql-green-dark);
  border-radius: 6px;
  padding: 9px 13px;
  background: var(--ql-green);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
}

.ql-ghost {
  border-color: #d6c259;
  background: #f1c93b;
  color: #111711;
}

.ql-ghost:hover,
.ql-download:hover,
.ql-form button:hover,
#refresh-thread:hover,
.button:hover {
  filter: brightness(0.95);
  text-decoration: none;
}

#refresh-thread:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.ql-page {
  width: min(1440px, calc(100% - 36px));
  margin: 22px auto 46px;
}

.ql-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 460px);
  gap: 18px;
  align-items: end;
  margin-bottom: 16px;
}

.ql-eyebrow {
  margin: 0 0 7px;
  color: var(--ql-green-dark);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.ql-hero h1 {
  max-width: 840px;
  margin: 0;
  font-size: 30px;
  line-height: 1.16;
}

.ql-status {
  min-height: 46px;
  border: 1px solid #cab24c;
  border-left: 7px solid #f1c93b;
  border-radius: 7px;
  padding: 12px 14px;
  background: #fffbe7;
  color: #302810;
  font-weight: 700;
}

.ql-status.error {
  border-color: #cf988f;
  border-left-color: var(--ql-red);
  background: #fff0ee;
  color: #732819;
}

.ql-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.ql-stats div,
.ql-panel {
  border: 1px solid var(--ql-line);
  border-radius: 8px;
  background: var(--ql-panel);
  box-shadow: 0 10px 24px rgba(24, 34, 24, 0.06);
}

.ql-stats div {
  padding: 15px;
}

.ql-stats span {
  display: block;
  margin-bottom: 4px;
  font-size: 24px;
  font-weight: 900;
}

.ql-stats strong {
  color: var(--ql-muted);
  font-size: 12px;
  text-transform: uppercase;
}

.ql-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(360px, 1.4fr);
  gap: 16px;
  margin-bottom: 16px;
}

.ql-grid-wide {
  grid-template-columns: minmax(300px, 0.7fr) minmax(520px, 1.3fr);
}

.ql-route-test-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ql-panel {
  padding: 18px;
  overflow: hidden;
}

.ql-page > .ql-panel {
  margin-bottom: 16px;
}

.ql-section-head {
  margin-bottom: 14px;
}

.ql-section-head h2 {
  margin: 0 0 5px;
  font-size: 18px;
}

.ql-section-head p,
.ql-version {
  margin: 0;
  color: var(--ql-muted);
}

.ql-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ql-form label {
  display: grid;
  gap: 6px;
  margin: 0;
  color: var(--ql-muted);
  font-weight: 700;
}

.ql-form .ql-full,
.ql-form button {
  grid-column: 1 / -1;
}

.ql-form input,
.ql-form select,
.ql-form textarea,
.pairing-detail-list code {
  width: 100%;
  min-height: 38px;
  border: 1px solid #cbd4c6;
  border-radius: 6px;
  padding: 8px 10px;
  background: #fff;
  color: var(--ql-ink);
  font: inherit;
}

.ql-form input[readonly] {
  background: #f1f4ee;
  color: var(--ql-muted);
}

.ql-form textarea {
  resize: vertical;
}

.ql-token-box {
  margin-top: 14px;
  border: 1px solid #cab24c;
  border-radius: 7px;
  padding: 13px;
  background: #fffbe7;
}

.ql-token-box span,
.ql-token-box strong,
.ql-token-box p {
  display: block;
}

.ql-token-box span {
  color: var(--ql-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.ql-token-box strong {
  margin: 5px 0;
  font-size: 20px;
  word-break: break-all;
}

.ql-token-note {
  margin: 8px 0 0;
  color: #4f451c;
  font-size: 13px;
}

.ql-download {
  margin-bottom: 10px;
}

.ql-download-grid {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.ql-qr-card {
  display: grid;
  gap: 7px;
  justify-items: center;
  border: 1px solid var(--ql-line);
  border-radius: 7px;
  padding: 10px;
  background: #fff;
}

.ql-qr-card img {
  width: 126px;
  height: 126px;
  object-fit: contain;
}

.ql-qr-card span {
  color: var(--ql-muted);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.ql-pairing-qr {
  width: 150px;
  margin-top: 10px;
}

.ql-small-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 800;
}

.ql-table-wrap {
  overflow-x: auto;
}

.ql-panel table {
  width: 100%;
  min-width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.ql-panel th,
.ql-panel td {
  padding: 10px 9px;
  border-bottom: 1px solid var(--ql-line);
  text-align: left;
  vertical-align: top;
}

.ql-panel th {
  color: var(--ql-muted);
  font-size: 12px;
  text-transform: uppercase;
}

.ql-thread-row {
  cursor: pointer;
}

.ql-thread-row:hover,
.ql-thread-row.selected {
  background: #fff8d2;
}

.ql-thread-row.selected {
  outline: 2px solid #f1c93b;
  outline-offset: -2px;
}

.ql-empty-cell {
  color: var(--ql-muted);
  font-weight: 700;
}

.ql-mini-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.ql-registry-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
}

.ql-compact-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 1px solid #cab24c;
  border-radius: 6px;
  padding: 7px 11px;
  background: #fff8d2;
  color: #2f2912;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.ql-compact-toggle:hover {
  background: #f1c93b;
}

.ql-registry-hint {
  color: var(--ql-muted);
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}

.ql-collapsible-list {
  max-height: min(48vh, 520px);
  overflow: auto;
  padding-right: 4px;
}

.ql-collapsible-list.collapsed {
  display: none;
}

.ql-row-button {
  display: grid;
  gap: 3px;
  width: 100%;
  border: 1px solid var(--ql-line);
  border-radius: 7px;
  padding: 10px;
  background: #f9faf7;
  color: var(--ql-ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.ql-row-button:hover {
  border-color: #cab24c;
  background: #fff8d2;
}

.ql-row-button span {
  color: var(--ql-muted);
  font-size: 12px;
}

.ql-client-app-link {
  color: var(--ql-ink);
  text-decoration: none;
  grid-template-columns: 1fr auto;
  align-items: center;
}

.ql-client-app-link strong,
.ql-client-app-link span {
  min-width: 0;
}

.ql-client-app-link span {
  grid-column: 1 / -1;
}

.ql-client-app-link small {
  color: var(--ql-green);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: .02em;
}

.ql-proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 12px;
  max-height: min(70vh, 760px);
  overflow: auto;
  padding-right: 4px;
}

.ql-live-test-board {
  display: grid;
  gap: 12px;
  margin: 0 0 16px;
}

.ql-live-test-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #e2d073;
  border-left: 7px solid var(--ql-yellow);
  border-radius: 7px;
  background: #fffbed;
  padding: 12px;
}

.ql-live-test-head h3 {
  margin: 0;
  color: var(--ql-ink);
  font-size: 16px;
}

.ql-live-test-head p {
  margin: 4px 0 0;
  color: var(--ql-muted);
  font-size: 13px;
}

.ql-live-test-head span {
  flex: 0 0 auto;
  border: 1px solid #d6c259;
  border-radius: 999px;
  background: var(--ql-yellow);
  color: var(--ql-black);
  padding: 5px 10px;
  font-weight: 900;
  font-size: 12px;
}

.ql-live-test-table {
  min-width: 980px;
}

.ql-live-test-row td:first-child strong,
.ql-live-test-row td:first-child span {
  display: block;
}

.ql-live-test-row td:first-child span {
  margin-top: 3px;
  color: var(--ql-muted);
  font-size: 12px;
}

.ql-live-test-row.good {
  background: #fbfff9;
}

.ql-live-test-row.warning {
  background: #fffdf2;
}

.ql-live-test-row.danger {
  background: #fff7f5;
}

.ql-proof-card {
  display: grid;
  gap: 12px;
  border: 1px solid #d9dfd2;
  border-left: 5px solid var(--ql-green);
  border-radius: 8px;
  background: #fbfdf8;
  padding: 13px;
}

.ql-proof-card.warning {
  border-left-color: #c4911c;
}

.ql-proof-card.danger {
  border-left-color: var(--ql-red);
}

.ql-proof-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.ql-proof-head strong,
.ql-proof-head span {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.ql-proof-head strong {
  color: var(--ql-ink);
  font-size: 15px;
}

.ql-proof-head span {
  color: var(--ql-muted);
  font-size: 12px;
}

.ql-proof-status {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 5px 9px;
  background: #daf2df;
  color: #164125;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.ql-proof-status.warning {
  background: #fff0b5;
  color: #60480b;
}

.ql-proof-status.danger {
  background: #ffe0dc;
  color: #7e281f;
}

.ql-proof-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  margin: 0;
}

.ql-proof-facts div {
  min-width: 0;
}

.ql-proof-facts dt {
  color: var(--ql-muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.ql-proof-facts dd {
  margin: 2px 0 0;
  color: var(--ql-ink);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.ql-proof-action {
  justify-self: start;
}

.ql-line-map {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.gateway-line-section {
  border: 1px solid var(--ql-line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfcf8;
}

.gateway-line-heading,
.gateway-line-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.gateway-line-heading {
  margin-bottom: 12px;
}

.gateway-line-heading h3 {
  margin: 0 0 3px;
  font-size: 16px;
}

.gateway-line-heading p {
  margin: 0;
  color: var(--ql-muted);
}

.gateway-line-count,
.gateway-line-detail-head > span {
  flex: 0 0 auto;
  border: 1px solid #caa824;
  border-radius: 999px;
  padding: 5px 9px;
  background: var(--ql-yellow);
  color: var(--ql-black);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.gateway-line-layout {
  display: grid;
  grid-template-columns: minmax(230px, 0.85fr) minmax(300px, 1.15fr);
  gap: 12px;
  align-items: stretch;
}

.gateway-line-list {
  display: grid;
  gap: 10px;
  align-content: start;
}

.ql-line-card {
  border: 1px solid var(--ql-line);
  border-left: 5px solid var(--ql-green);
  border-radius: 8px;
  background: #fbfdf8;
  padding: 13px;
  display: grid;
  gap: 10px;
  min-width: 0;
}

.gateway-line-card {
  width: 100%;
  color: var(--ql-ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.gateway-line-card:hover,
.gateway-line-card.selected {
  border-color: #cab24c;
  background: linear-gradient(180deg, #fffdf1 0%, #f8f4d3 100%);
  box-shadow: 0 0 0 2px rgba(241, 201, 59, 0.32);
}

.gateway-line-detail {
  min-height: 100%;
  border: 1px solid #d7decf;
  border-radius: 8px;
  padding: 13px;
  background: #fff;
}

.gateway-line-detail-head strong,
.gateway-line-detail-head span {
  display: block;
}

.gateway-line-detail-head strong {
  font-size: 16px;
}

.gateway-line-detail-head span {
  color: var(--ql-muted);
  font-size: 12px;
}

.gateway-line-sites {
  margin-top: 12px;
}

.gateway-line-sites {
  max-height: min(520px, 58vh);
  overflow: auto;
  padding-right: 2px;
}

.gateway-line-site-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid #e3e8dc;
  border-radius: 7px;
  background: #fff;
  padding: 10px;
}

.gateway-line-site-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.gateway-line-site-copy strong,
.gateway-line-site-copy span,
.gateway-line-site-copy em {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.gateway-line-site-copy strong {
  color: var(--ql-ink);
  font-size: 13px;
}

.gateway-line-site-copy span,
.gateway-line-site-copy em {
  color: var(--ql-muted);
  font-size: 12px;
  font-style: normal;
}

.ql-body .gateway-line-site-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 1px solid #caa824;
  border-radius: 7px;
  background: var(--ql-yellow);
  color: var(--ql-black);
  font-size: 12px;
  font-weight: 800;
  padding: 8px 12px;
  white-space: nowrap;
  box-shadow: 0 1px 0 rgba(16, 21, 18, 0.18);
}

.ql-body .gateway-line-site-action:hover {
  background: #ffe16a;
  color: var(--ql-black);
  text-decoration: none;
}

.ql-body .gateway-line-site-action.disabled {
  border-color: #d7decf;
  background: #eef1ea;
  color: var(--ql-muted);
  box-shadow: none;
}

.ql-line-card.near-capacity {
  border-left-color: #c4911c;
}

.ql-line-card.at-capacity {
  border-left-color: #a43c2f;
}

.ql-line-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.ql-line-card-head div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.ql-line-card-head strong {
  color: var(--ql-ink);
  font-size: 15px;
}

.ql-line-card-head span,
.ql-line-card-meta {
  color: var(--ql-muted);
  font-size: 12px;
}

.ql-line-card-head b {
  border-radius: 999px;
  background: var(--ql-yellow);
  color: var(--ql-black);
  padding: 5px 9px;
  font-size: 12px;
  white-space: nowrap;
}

.ql-line-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

.ql-line-sites {
  display: grid;
  gap: 7px;
}

.ql-line-sites > a,
.ql-line-site-static,
.ql-unassigned-site {
  border: 1px solid #e3e8dc;
  border-radius: 7px;
  background: #fff;
  padding: 9px 10px;
  text-decoration: none;
  color: var(--ql-ink);
  display: grid;
  gap: 2px;
  min-width: 0;
}

.ql-line-sites > a:hover {
  border-color: #cab24c;
  background: #fff8d2;
}

.ql-line-sites strong {
  font-size: 13px;
}

.ql-line-sites span,
.ql-line-sites em,
.ql-unassigned-site em {
  color: var(--ql-muted);
  font-size: 12px;
  font-style: normal;
  overflow-wrap: anywhere;
}

.ql-unassigned-sites {
  border-left-color: #7b8794;
}

.ql-unassigned-site-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.ql-unassigned-site-row {
  display: grid;
  gap: 3px;
  min-width: 0;
  border: 1px solid #e3e8dc;
  border-radius: 7px;
  background: #fff;
  padding: 9px 10px;
}

.ql-unassigned-site-row strong,
.ql-unassigned-site-row span {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.ql-unassigned-site-row strong {
  color: var(--ql-ink);
  font-size: 13px;
}

.ql-unassigned-site-row span {
  color: var(--ql-muted);
  font-size: 12px;
}

.ql-active-route {
  margin-top: 14px;
  border: 1px solid #cab24c;
  border-radius: 7px;
  padding: 13px;
  background: #fffbe7;
}

.ql-active-route h3,
.ql-template-card h3 {
  margin: 0 0 10px;
  font-size: 15px;
}

.ql-active-route dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  margin: 0;
}

.ql-active-route div {
  min-width: 0;
}

.ql-active-route dt {
  color: var(--ql-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.ql-active-route dd {
  margin: 2px 0 0;
  font-weight: 700;
  word-break: break-word;
}

.ql-template-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 12px;
}

.ql-template-card {
  display: grid;
  gap: 9px;
  border: 1px solid var(--ql-line);
  border-radius: 7px;
  padding: 12px;
  background: #f9faf7;
}

.ql-template-card label {
  display: grid;
  gap: 5px;
  color: var(--ql-muted);
  font-weight: 700;
}

.ql-template-card input,
.ql-template-card textarea {
  width: 100%;
  border: 1px solid #cbd4c6;
  border-radius: 6px;
  padding: 8px 10px;
  background: #fff;
  color: var(--ql-ink);
  font: inherit;
}

.ql-template-card button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border: 1px solid var(--ql-green-dark);
  border-radius: 6px;
  padding: 8px 12px;
  background: var(--ql-green);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.ql-pill {
  display: inline-block;
  border-radius: 999px;
  padding: 3px 9px;
  background: #e9eee6;
  color: #2b382b;
  font-size: 12px;
  font-weight: 800;
}

.ql-pill.online {
  background: #dff4e8;
  color: #185035;
}

.ql-pill.offline {
  background: #f7e5e1;
  color: #7c3124;
}

.ql-thread-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ql-thread-messages {
  display: grid;
  gap: 10px;
  max-height: 520px;
  overflow: auto;
  border: 1px solid var(--ql-line);
  border-radius: 7px;
  padding: 14px;
  background: #f9faf7;
}

.ql-bubble {
  max-width: min(760px, 92%);
  border: 1px solid var(--ql-line);
  border-radius: 8px;
  padding: 11px 12px;
  background: #fff;
}

.ql-bubble.outbound {
  margin-left: auto;
  border-color: #c5ddb9;
  background: #eef8ea;
}

.ql-bubble.inbound {
  margin-right: auto;
  border-color: #e5d79a;
  background: #fff9df;
}

.ql-bubble div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  color: var(--ql-muted);
  font-size: 12px;
}

.ql-bubble p,
.ql-empty {
  margin: 0;
  color: var(--ql-ink);
}

.ql-empty {
  padding: 20px;
  color: var(--ql-muted);
  text-align: center;
}

.phone-pair-page {
  max-width: 980px;
}

.install-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.step-card {
  border: 1px solid var(--ql-line);
  border-radius: 8px;
  padding: 16px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(24, 34, 24, 0.06);
}

.step-card span {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--ql-green);
  color: #fff;
  font-weight: 700;
}

.step-card .button {
  width: 100%;
}

.pairing-detail-list {
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
}

.pairing-detail-list div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 10px;
}

.pairing-detail-list dt {
  color: var(--ql-muted);
  font-weight: 700;
}

.pairing-detail-list dd {
  margin: 0;
}

.pairing-detail-list code {
  display: block;
  min-height: auto;
  word-break: break-word;
}

.ql-body details {
  margin-top: 10px;
}

.ql-body summary {
  cursor: pointer;
  color: var(--ql-green-dark);
  font-weight: 700;
}

.ql-body pre {
  max-height: 180px;
  overflow: auto;
  border: 1px solid var(--ql-line);
  border-radius: 6px;
  padding: 10px;
  background: #f7f8f3;
  white-space: pre-wrap;
}

.ql-action-stack,
.ql-mini-actions,
.ql-proof-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.ql-action-stack {
  flex-direction: column;
  align-items: stretch;
  min-width: 132px;
}

.ql-action-stack .button {
  justify-content: center;
  min-height: 30px;
  padding: 6px 8px;
  font-size: 12px;
}

.ql-warn-chip {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin-left: 6px;
  border-radius: 999px;
  padding: 2px 8px;
  background: #fff0b5;
  color: #60480b;
  font-size: 12px;
  font-weight: 800;
}

.ql-alert-list,
.ql-issue-list,
.ql-lifecycle-list,
.ql-audit-list {
  display: grid;
  gap: 8px;
  max-height: 520px;
  overflow: auto;
}

.ql-alert-item,
.ql-issue-row,
.ql-lifecycle-row,
.ql-audit-row {
  border: 1px solid var(--ql-line);
  border-left: 5px solid var(--ql-yellow);
  border-radius: 7px;
  padding: 10px 12px;
  background: #fffdf3;
}

.ql-alert-item.danger,
.ql-issue-row.failed,
.ql-issue-row.stuck {
  border-left-color: var(--ql-red);
  background: #fff7f5;
}

.ql-alert-item.warning,
.ql-lifecycle-row.expired {
  border-left-color: #c4911c;
}

.ql-alert-item strong,
.ql-alert-item span,
.ql-audit-row strong,
.ql-audit-row span,
.ql-lifecycle-row strong,
.ql-lifecycle-row span {
  display: block;
}

.ql-alert-item span,
.ql-audit-row span,
.ql-lifecycle-row span {
  color: var(--ql-muted);
  font-size: 12px;
}

.ql-issue-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.ql-issue-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.ql-issue-main span,
.ql-issue-main em,
.ql-issue-main small,
.ql-issue-meta {
  color: var(--ql-muted);
  font-size: 12px;
}

.ql-issue-main small {
  color: var(--ql-ink);
  word-break: break-word;
}

.ql-issue-meta {
  display: grid;
  justify-items: end;
  gap: 5px;
}

.ql-alert-form {
  align-items: end;
}

.ql-check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid #e4e8dc;
  border-radius: 7px;
  background: #fbfcf8;
  color: var(--ql-ink);
  font-weight: 800;
}

.ql-check-row input {
  width: 16px;
  height: 16px;
  accent-color: var(--ql-yellow);
}

.ql-alert-form textarea {
  min-height: 96px;
  resize: vertical;
}

.ql-alert-form label small {
  display: block;
  margin-top: 5px;
  color: var(--ql-muted);
  font-size: 12px;
  font-weight: 700;
}

.ql-alert-rule-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.ql-alert-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid #e4e8dc;
  border-radius: 7px;
  background: #fffdf1;
  color: var(--ql-muted);
  font-size: 13px;
}

.ql-alert-summary strong,
.ql-alert-summary span {
  color: var(--ql-ink);
}

.ql-lifecycle-group {
  display: grid;
  gap: 8px;
  border: 1px solid #edf0e8;
  border-radius: 7px;
  padding: 10px;
  background: #fbfcf8;
}

.ql-lifecycle-group h3 {
  margin: 0;
  color: var(--ql-ink);
  font-size: 14px;
}

.ql-lifecycle-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.ql-proof-actions {
  justify-content: flex-start;
}

@media (max-width: 980px) {
  .ql-header,
  .ql-hero,
  .ql-grid,
  .ql-grid-wide,
  .ql-thread-head {
    display: block;
  }

  .ql-header .ql-ghost,
  .ql-status,
  .ql-panel {
    margin-top: 12px;
  }

  .ql-header-actions {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .ql-stats,
  .ql-form,
  .ql-download-grid,
  .gateway-line-layout,
  .ql-alert-rule-grid,
  .ql-proof-facts,
  .install-steps,
  .ql-active-route dl,
  .ql-template-list {
    grid-template-columns: 1fr;
  }

  .ql-issue-row,
  .ql-lifecycle-row {
    grid-template-columns: 1fr;
    display: grid;
  }

  .ql-issue-meta {
    justify-items: start;
  }

  .pairing-detail-list div {
    grid-template-columns: 1fr;
  }
}
.ql-test-apk-card {
  margin-top: 16px;
  padding: 14px;
  border: 2px solid #f5c400;
  border-radius: 8px;
  background: #151515;
}

.ql-test-apk-label {
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 6px;
  background: #f5c400;
  color: #111;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.ql-test-apk-grid {
  align-items: center;
}

.ql-test-apk-qr {
  border-color: rgba(245, 196, 0, 0.65);
  background: #fff8cf;
}

.ql-test-apk-qr span {
  color: #111;
  font-weight: 800;
}

.ql-test-download {
  background: #f5c400;
  color: #111;
  border-color: #f5c400;
}

.ql-test-download:hover,
.ql-test-download:focus {
  background: #ffe05c;
  color: #111;
}
