:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --panel: #ffffff;
  --border: #d9e0eb;
  --text: #0f172a;
  --muted: #5b6473;
  --accent: #1f6feb;
  --accent-strong: #0f56c6;
  --danger: #c53131;
}

* {
  box-sizing: border-box;
}

.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;
}

body {
  margin: 0;
  font-family: Inter, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

#app {
  min-height: 100vh;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: #0d1b2a;
  color: #f8fafc;
  border-bottom: 1px solid #20354f;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand h1 {
  margin: 0;
  font-size: 20px;
  line-height: 1.1;
}

.brand p {
  margin: 2px 0 0;
  color: #c6d5e6;
  font-size: 12px;
}

.brand-dot {
  width: 12px;
  height: 12px;
  background: linear-gradient(135deg, #ffd166, #f5a524);
  border-radius: 50%;
}

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

.payments-debug-kill {
  border-color: #f1b9b9;
  background: #fff2f2;
  color: #8b1d1d;
}

.payments-debug-kill:hover {
  background: #ffe3e3;
}

.layout {
  padding: 16px;
  max-width: 1400px;
  margin: 0 auto;
}

.dashboard {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 8px;
}

.tab {
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 8px;
  padding: 10px 8px;
  font-size: 13px;
  color: var(--muted);
}

.tab.active {
  border-color: #aac7f6;
  background: #edf4ff;
  color: #0d3f8f;
  font-weight: 600;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
}

.auth-panel {
  max-width: 460px;
  margin: 50px auto;
}

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

label span {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  color: var(--muted);
}

input, select, button, textarea {
  font: inherit;
}

input:not([type='checkbox']):not([type='radio']), select, textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 8px;
  padding: 0 10px;
}

input:not([type='checkbox']):not([type='radio']), select {
  height: 40px;
}

textarea {
  padding-top: 8px;
  padding-bottom: 8px;
}

button {
  border: 1px solid #b7c8df;
  border-radius: 8px;
  background: #eaf1fd;
  color: #0d3f8f;
  padding: 8px 12px;
  font-weight: 600;
  transition: box-shadow 120ms ease, transform 120ms ease, opacity 120ms ease, background-color 120ms ease;
}

button:hover {
  background: #dce9fd;
}

button.secondary {
  background: #fff;
  color: #17345f;
}

button.button-click-ack {
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.24);
  transform: translateY(1px);
}

button.button-busy {
  cursor: wait;
  opacity: 0.85;
}

button.button-success {
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.25);
}

button.button-error {
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.22);
}

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

.panel-head h2 {
  margin: 0;
  font-size: 17px;
}

.row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.row select {
  min-width: 190px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 10px;
}

.stat {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fbfdff;
  padding: 10px;
}

.stat-label {
  font-size: 12px;
  color: var(--muted);
}

.stat-value {
  font-size: 26px;
  line-height: 1.1;
  margin-top: 6px;
  font-weight: 700;
}

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

.error {
  color: var(--danger);
  font-size: 13px;
}

.success {
  color: #15803d;
  font-size: 13px;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.pager {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  align-items: center;
}

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

th, td {
  border-bottom: 1px solid #e6edf6;
  padding: 8px 6px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-weight: 600;
  background: #fbfdff;
}

.pill {
  display: inline-block;
  border-radius: 999px;
  border: 1px solid #d1def1;
  background: #f4f8ff;
  padding: 2px 8px;
  font-size: 12px;
  color: #19488e;
}

.placeholder-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.placeholder-actions button {
  opacity: 0.7;
}

.ops-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.subpanel {
  padding: 12px;
}

.subpanel h3 {
  margin: 0 0 10px;
  font-size: 15px;
}

.compact-form {
  gap: 8px;
}

.dispatch-test-panel {
  display: grid;
  gap: 10px;
}

.dispatch-test-warning {
  color: #8b1d1d;
  background: #fff3f3;
  border: 1px solid #f3c2c2;
  border-radius: 8px;
  padding: 8px 10px;
}

.dispatch-test-location-tools {
  border: 1px solid #d7e2f5;
  border-radius: 8px;
  background: #f8fbff;
  padding: 10px;
  display: grid;
  gap: 8px;
}

.dispatch-test-location-action {
  align-self: end;
}

.dispatch-test-location-action button {
  width: 100%;
}

.dispatch-test-location-presets {
  gap: 8px;
}

.dispatch-test-location-presets button {
  flex: 0 1 auto;
}

.dispatch-test-location-status {
  margin: 0;
  font-size: 12px;
  color: #20466d;
}

.dispatch-test-virtual-tools {
  border: 1px solid #d7e2f5;
  background: #f9fbff;
  border-radius: 8px;
  padding: 10px;
  display: grid;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.dispatch-test-virtual-tools h4 {
  margin: 0;
  color: #1e3a5f;
  font-size: 14px;
}

.dispatch-test-score-hint {
  margin: 0;
  font-size: 12px;
  color: #335377;
}

.dispatch-test-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.dispatch-test-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  border: 1px solid #e6edf6;
  border-radius: 8px;
  padding: 10px;
  background: #fbfdff;
}

.dispatch-test-options label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: #27415f;
  font-size: 13px;
}

.dispatch-test-options input[type='checkbox'] {
  width: 16px;
  height: 16px;
}

.dispatch-test-confirm {
  color: #8b1d1d !important;
  font-weight: 700;
}

.dispatch-test-actions {
  margin-top: 4px;
}

.dispatch-test-checklist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 8px;
}

.dispatch-test-check-item {
  border: 1px solid #d7e2f5;
  border-radius: 8px;
  padding: 8px 10px;
  background: #f9fbff;
}

.dispatch-test-check-item.pass {
  border-color: #b8e5c8;
  background: #f2fff7;
}

.dispatch-test-check-item.fail {
  border-color: #f2c4c4;
  background: #fff5f5;
}

.dispatch-test-check-label {
  font-size: 12px;
  color: #51627f;
}

.dispatch-test-check-value {
  font-weight: 700;
  margin-top: 4px;
}

.dispatch-test-debug-indicator {
  display: inline-flex;
  align-items: center;
  border: 1px dashed #c8d6ed;
  border-radius: 999px;
  background: #f8fbff;
  padding: 4px 10px;
  min-height: 30px;
  font-size: 12px;
}

.dispatch-test-score-preset {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) auto;
  gap: 6px;
  align-items: center;
}

#dispatchTestTechTable td input[data-dispatch-score-field='rating'],
#dispatchTestTechTable td input[data-dispatch-score-field='ratingCount'],
#dispatchTestTechTable td input[data-dispatch-score-field='completedJobsCount'] {
  min-width: 92px;
}

#dispatchTestGenerateVirtualBtn {
  position: relative;
  z-index: 2;
  pointer-events: auto;
}

.row.wrap {
  flex-wrap: wrap;
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.json-output {
  margin: 8px 0 0;
  border: 1px solid #e6edf6;
  background: #f8fbff;
  border-radius: 8px;
  padding: 10px;
  max-height: 280px;
  overflow: auto;
  font-size: 12px;
  line-height: 1.45;
}

.payments-panel {
  display: grid;
  gap: 14px;
}

.payments-head {
  align-items: flex-start;
}

.payments-subtitle {
  margin: 4px 0 0;
}

.payments-toolbar {
  border: 1px solid #dce6f6;
  border-radius: 10px;
  background: #f9fbff;
  padding: 12px;
  display: grid;
  gap: 10px;
}

.payments-primary-filters {
  display: grid;
  grid-template-columns: minmax(280px, 2fr) minmax(220px, 1fr) auto auto;
  gap: 8px;
  align-items: end;
}

.payments-search-field input {
  width: 100%;
}

.payments-inline-toggle {
  height: 40px;
  border: 1px solid #dce6f6;
  border-radius: 8px;
  background: #fff;
  padding: 0 10px;
}

.payments-show-hidden-toggle {
  min-width: 190px;
  justify-content: flex-start;
}

.payments-filters-grid {
  margin-bottom: 0;
  padding-top: 4px;
}

.payments-table-block {
  display: grid;
  gap: 8px;
}

.payments-table-wrap {
  border: 1px solid #dce6f6;
  border-radius: 10px;
  background: #ffffff;
  overflow-x: auto;
}

.payments-table {
  width: 100%;
  min-width: 860px;
  border-collapse: separate;
  border-spacing: 0;
}

.payments-table th,
.payments-table td {
  white-space: nowrap;
  padding: 11px 10px;
  border-bottom: 1px solid #e6edf6;
  font-size: 13px;
}

.payments-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f7fbff;
  color: #44607f;
  font-weight: 600;
}

.payments-table tr:hover td {
  background: rgba(31, 111, 235, 0.04);
}

.payments-table-row {
  cursor: pointer;
}

.payments-table-row.is-active td {
  background: rgba(31, 111, 235, 0.1);
}

.payments-table-row.is-hidden-record td {
  opacity: 0.78;
}

.payments-table td.cell-id {
  max-width: 230px;
}

.payments-table td.cell-reason {
  min-width: 170px;
  max-width: 240px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.payments-table th.cell-select,
.payments-table td.cell-select {
  width: 44px;
  min-width: 44px;
  text-align: center;
  padding-left: 8px;
  padding-right: 8px;
}

.payments-table td.cell-select input[type='checkbox'] {
  width: 16px;
  height: 16px;
}

.payments-value-state {
  color: #5b6473;
  font-weight: 500;
}

.mono-truncate {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: top;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  font-size: 12px;
  color: #1e3a66;
}

.payments-pager {
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.payments-bulk-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.payments-drawer[hidden],
.payments-modal[hidden] {
  display: none !important;
}

#paymentDetailDrawer:not([data-user-open='true']),
#paymentRefundModal:not([data-user-open='true']),
.payments-drawer:not([data-user-open='true']),
.payments-modal:not([data-user-open='true']),
.payments-backdrop:not([data-user-open='true']) {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.payments-drawer:not(.is-open),
.payments-modal:not(.is-open),
.payments-backdrop:not(.is-open) {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.payment-status-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 9px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 600;
  text-transform: lowercase;
}

.payment-status-authorized {
  color: #18478c;
  background: #e9f2ff;
  border-color: #cde0ff;
}

.payment-status-captured {
  color: #0e6b41;
  background: #e8f7ef;
  border-color: #bfe5cf;
}

.payment-status-refunded {
  color: #8f1f1f;
  background: #fdeaea;
  border-color: #f6c1c1;
}

.payment-status-pending {
  color: #7a5a00;
  background: #fff7db;
  border-color: #f0dd9d;
}

.payment-status-default {
  color: #35506f;
  background: #eff4fb;
  border-color: #d7e3f1;
}

.admin-search-drawer {
  position: fixed;
  inset: 0;
  z-index: 78;
  display: grid;
  grid-template-columns: 1fr minmax(420px, 720px);
}

.admin-search-drawer[hidden] {
  display: none;
}

.admin-search-drawer-backdrop {
  background: rgba(8, 22, 44, 0.42);
}

.admin-search-drawer-panel {
  height: 100%;
  overflow-y: auto;
  background: #ffffff;
  border-left: 1px solid #dce6f6;
  padding: 18px;
  display: grid;
  align-content: start;
  gap: 14px;
  box-shadow: -24px 0 56px rgba(10, 24, 46, 0.18);
}

.admin-search-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.admin-search-drawer-header h3 {
  margin: 4px 0;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.admin-search-drawer-header p {
  margin: 0;
}

.admin-search-status {
  border: 1px solid #dbe7f6;
  border-radius: 10px;
  background: #f7fbff;
  padding: 10px 12px;
  font-size: 13px;
}

.admin-search-status[hidden] {
  display: none;
}

.admin-search-status.error {
  border-color: #f0b4b4;
  background: #fff6f6;
  color: #9f1d1d;
}

.admin-search-content {
  display: grid;
  gap: 12px;
}

.completion-issue-content {
  gap: 16px;
}

.completion-issue-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
}

.completion-issue-badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(14, 116, 144, 0.28);
  border-radius: 999px;
  padding: 5px 10px;
  color: #075985;
  background: rgba(224, 242, 254, 0.78);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.2;
  white-space: nowrap;
  word-break: normal;
  overflow-wrap: normal;
}

.completion-issues-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
}

.completion-issues-table {
  min-width: 1180px;
  table-layout: auto;
}

.completion-issues-table th,
.completion-issues-table td {
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
  line-height: 1.35;
}

.completion-issues-table .cell-date {
  min-width: 120px;
}

.completion-issues-table .cell-id {
  min-width: 150px;
}

.completion-issues-table .cell-service {
  min-width: 95px;
}

.completion-issues-table .cell-person {
  min-width: 145px;
}

.completion-issues-table .cell-issue-status {
  min-width: 170px;
}

.completion-issues-table .cell-actions {
  min-width: 170px;
  width: 170px;
}

.completion-issues-table .mono-truncate {
  max-width: 170px;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  word-break: normal;
  overflow-wrap: anywhere;
}

.completion-issues-table .payment-status-badge,
.completion-issues-table .completion-issue-badge,
.completion-issues-table .issue-action-bar button {
  white-space: nowrap;
}

.completion-issue-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.completion-issue-detail-grid > div,
.completion-issue-note,
.completion-issue-deferred {
  border: 1px solid #dbe7f6;
  border-radius: 14px;
  background: #f8fbff;
  padding: 12px;
}

.completion-issue-detail-grid span {
  display: block;
  color: #58708f;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.completion-issue-detail-grid strong {
  display: block;
  margin-top: 4px;
  font-size: clamp(0.82rem, 0.76rem + 0.18vw, 0.96rem);
  line-height: 1.28;
  word-break: normal;
  overflow-wrap: break-word;
}

.completion-issue-detail-grid strong.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  font-size: clamp(0.68rem, 0.62rem + 0.18vw, 0.84rem);
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.completion-issue-note h4 {
  margin: 0 0 8px;
}

.completion-issue-note p,
.completion-issue-deferred p {
  margin: 6px 0 0;
  color: #58708f;
}

.completion-issue-warning {
  border-color: rgba(202, 138, 4, 0.35);
  background: #fffbeb;
}

.completion-issue-actions {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.completion-issue-actions textarea {
  width: 100%;
  min-height: 110px;
  resize: vertical;
}

.completion-issue-deferred {
  border-color: rgba(100, 116, 139, 0.28);
}

.admin-search-result-card {
  display: grid;
  gap: 14px;
  border: 1px solid #dbe7f6;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  padding: 16px;
}

.admin-search-result-heading {
  display: grid;
  gap: 4px;
}

.admin-search-result-heading span {
  color: #4d6ca2;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-search-result-heading strong {
  min-width: 0;
  font-size: 18px;
  color: #10213d;
}

.admin-search-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-search-empty {
  display: grid;
  gap: 6px;
  border: 1px dashed #cfdced;
  border-radius: 16px;
  background: #fbfdff;
  padding: 18px;
  color: #405675;
}

.admin-search-empty strong {
  color: #10213d;
}

.payments-drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: 1fr minmax(380px, 760px);
}

.payments-drawer-backdrop {
  background: rgba(10, 24, 46, 0.42);
}

.payments-drawer-panel {
  height: 100%;
  overflow-y: auto;
  background: #ffffff;
  border-left: 1px solid #dce6f6;
  padding: 16px;
  display: grid;
  gap: 14px;
}

.payments-drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.payments-drawer-header h3 {
  margin: 0 0 4px 0;
}

.payments-drawer-header p {
  margin: 0;
}

.payments-drawer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.payments-detail-section {
  border: 1px solid #e2ebf7;
  border-radius: 10px;
  background: #fbfdff;
  padding: 12px;
}

.payments-detail-section h4 {
  margin: 0 0 10px 0;
  font-size: 14px;
  color: #263f5d;
}

.payments-placeholder {
  color: var(--muted);
  font-size: 13px;
}

.payments-inline-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.payments-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  padding: 16px;
  overflow-y: auto;
}

.payments-modal-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(8, 20, 40, 0.46);
}

.payments-modal-card {
  position: relative;
  z-index: 2;
  width: min(520px, 100%);
  margin: 10vh auto 0;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #dce6f6;
  padding: 16px;
  box-shadow: 0 18px 48px rgba(12, 30, 60, 0.24);
  pointer-events: auto;
}

.payments-modal-card h3 {
  margin: 0 0 12px 0;
}

.payments-refund-summary {
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 8px;
  background: #f5f8ff;
  border: 1px solid #dce6f6;
  color: #233a59;
  font-size: 13px;
}

.payments-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 6px;
}

.toggle-list {
  display: grid;
  gap: 8px;
}

.toggle-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.toggle-item input[type='checkbox'] {
  width: 16px;
  height: 16px;
}

.inline-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
}

.inline-label input {
  width: 88px;
  height: 34px;
  padding: 0 8px;
}

.inline-label select {
  width: 88px;
  height: 34px;
  padding: 0 8px;
}

.issue-filter-grid {
  margin-bottom: 10px;
}

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

.issue-action-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 150px;
}

.issue-action-bar button {
  white-space: nowrap;
}

.issue-action-result {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(220px, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid #cddbf0;
  border-radius: 14px;
  background: #f8fbff;
  padding: 12px;
  margin: 10px 0;
  box-shadow: var(--shadow-soft);
}

.issue-action-result[hidden] {
  display: none;
}

.issue-action-result-success {
  border-color: #b8dfc7;
  background: #f3fbf6;
}

.issue-action-result-warning {
  border-color: #f1d798;
  background: #fffaf0;
}

.issue-action-result-danger {
  border-color: #efb4bf;
  background: #fff4f6;
}

.issue-action-result-main {
  min-width: 0;
}

.issue-action-result-kicker,
.issue-action-result-grid span {
  display: block;
  color: #5d6f8f;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.issue-action-result-main strong {
  display: block;
  margin-top: 3px;
  color: #122b4e;
  font-size: 16px;
}

.issue-action-result-main p {
  margin: 5px 0 0;
  color: #5d6a80;
  font-size: 12px;
  line-height: 1.4;
}

.issue-action-result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.issue-action-result-grid strong {
  display: block;
  margin-top: 3px;
  color: #122b4e;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.occ-page-head {
  align-items: flex-start;
}

.occ-top-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.occ-mini-status-wrap {
  position: sticky;
  top: 10px;
  z-index: 6;
  border-color: #c9daf4;
  box-shadow: 0 4px 14px rgba(16, 41, 76, 0.08);
}

.occ-mini-status {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.occ-mini-item {
  border: 1px solid #d9e5f8;
  border-radius: 8px;
  background: #f8fbff;
  padding: 6px 8px;
}

.occ-mini-item h4 {
  margin: 0;
  font-size: 11px;
  color: #556683;
  text-transform: uppercase;
}

.occ-mini-item p {
  margin: 4px 0 0;
  font-size: 12px;
  color: #203453;
  font-weight: 600;
}

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

.occ-status-card {
  border: 1px solid #dfe8f7;
  border-radius: 10px;
  background: #fff;
  padding: 10px;
}

.occ-status-card h4 {
  margin: 0;
  font-size: 12px;
  color: #51607a;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.occ-status-card .value {
  margin-top: 6px;
  font-size: 18px;
  font-weight: 700;
  color: #1f2d3d;
}

.occ-status-card .detail {
  margin-top: 4px;
  font-size: 12px;
  color: #60708c;
}

.occ-status-card.mode-active {
  border: 2px solid #1f6feb;
  background: #f4f8ff;
}

.occ-status-card.health-healthy {
  border-color: #9ed1aa;
}

.occ-status-card.health-warning {
  border-color: #f2c17e;
}

.occ-status-card.health-critical {
  border-color: #e39ba6;
  background: #fff6f7;
}

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

.occ-mode-card {
  border: 1px solid #dce6f6;
  border-radius: 10px;
  padding: 12px;
  background: #fff;
}

.occ-mode-card.active {
  border: 3px solid #1f6feb;
  background: #f4f8ff;
}

.occ-mode-card.emergency {
  border-color: #e9b2b9;
  background: #fff8f8;
}

.occ-mode-card.emergency.active {
  border-color: #bf2f3f;
  background: #fff1f3;
}

.occ-mode-card h4 {
  margin: 0 0 8px;
  font-size: 15px;
}

.occ-mode-card p {
  margin: 4px 0;
  font-size: 12px;
  color: #54647f;
}

.occ-mode-actions {
  margin-top: 10px;
}

.occ-quick-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.occ-action-card {
  border: 1px solid #dce6f6;
  border-radius: 10px;
  padding: 12px;
  background: #f9fbff;
}

.occ-action-card h4 {
  margin: 0 0 6px;
}

.occ-action-card p {
  margin: 4px 0;
  font-size: 12px;
  color: #53627d;
}

.occ-action-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.occ-action-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.occ-action-card.reduce {
  border-color: #9fd1ac;
  background: #f2fbf4;
}

.occ-action-card.reduce .occ-action-icon {
  background: #2f8f52;
  color: #fff;
}

.occ-action-card.speed {
  border-color: #b7d0f6;
  background: #f4f8ff;
}

.occ-action-card.speed .occ-action-icon {
  background: #2667d4;
  color: #fff;
}

.occ-action-card.danger {
  border-color: #e6a7b0;
  background: #fff4f5;
}

.occ-action-card.danger .occ-action-icon {
  background: #bf2f3f;
  color: #fff;
}

.occ-sandbox-state-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.occ-sandbox-state-card {
  border: 1px solid #dce6f6;
  border-radius: 10px;
  background: #fbfdff;
  padding: 10px;
}

.occ-sandbox-state-card h4 {
  margin: 0;
  font-size: 12px;
  color: #51607a;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.occ-sandbox-state-card p {
  margin: 6px 0 0;
  font-size: 13px;
  color: #253650;
}

.occ-sandbox-runner {
  border: 1px solid #c8daf6;
  border-radius: 10px;
  background: #f5f9ff;
  padding: 10px;
  margin-top: 8px;
}

.occ-sandbox-runner-hint p {
  margin: 0 0 8px;
  font-size: 12px;
  color: #4b5f7b;
}

.occ-sandbox-runner-top {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.occ-sandbox-runner-top > div {
  border: 1px solid #dbe6f7;
  border-radius: 8px;
  background: #fff;
  padding: 8px;
}

.occ-sandbox-runner-top p {
  margin: 2px 0;
  font-size: 12px;
  color: #4d607c;
}

.occ-sandbox-runner-current {
  margin-top: 8px;
  border: 1px solid #dbe6f7;
  border-radius: 8px;
  background: #fff;
  padding: 8px;
}

.occ-sandbox-runner-current p {
  margin: 3px 0;
  font-size: 12px;
  color: #4d607c;
}

.occ-sandbox-runner-actions {
  margin-top: 8px;
}

#occSandboxRunnerMainBtn {
  min-width: 180px;
  font-size: 14px;
  font-weight: 700;
}

.occ-sandbox-runner-progress,
.occ-sandbox-runner-result,
.occ-sandbox-runner-summary {
  margin-top: 8px;
  border: 1px solid #dbe6f7;
  border-radius: 8px;
  background: #fff;
  padding: 8px;
}

.occ-sandbox-runner-progress h4,
.occ-sandbox-runner-result h4,
.occ-sandbox-runner-summary h4 {
  margin: 0 0 6px;
  font-size: 13px;
}

.occ-sandbox-progress-wrap {
  margin-bottom: 8px;
}

.occ-sandbox-progress-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #e7eef9;
  overflow: hidden;
}

.occ-sandbox-progress-fill {
  height: 100%;
  width: 0%;
  transition: width 140ms ease;
}

.occ-sandbox-progress-fill.good {
  background: #24925b;
}

.occ-sandbox-progress-fill.risk {
  background: #c53e4f;
}

.occ-sandbox-progress-fill.warn {
  background: #d38a1e;
}

.occ-sandbox-progress-fill.info {
  background: #2b6fcb;
}

.occ-sandbox-runner-timeline {
  display: grid;
  gap: 8px;
}

.occ-sandbox-runner-progress-item {
  border: 1px solid #e4ecf9;
  border-radius: 8px;
  background: #fbfdff;
  padding: 8px;
}

.occ-sandbox-runner-progress-item:first-of-type {
  border-top: 1px solid #e4ecf9;
}

.occ-sandbox-runner-progress-item p,
.occ-sandbox-runner-result p,
.occ-sandbox-runner-summary p {
  margin: 3px 0;
  font-size: 12px;
  color: #4d607c;
}

.occ-sandbox-tech-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.occ-sandbox-tech-card {
  border: 1px solid #dce6f6;
  border-radius: 10px;
  background: #fff;
  padding: 10px;
}

.occ-sandbox-tech-card h4 {
  margin: 0 0 4px;
  font-size: 13px;
}

.occ-sandbox-tech-card label {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #3f526f;
}

.occ-sandbox-tech-card input,
.occ-sandbox-tech-card select {
  width: 100%;
  margin-top: 2px;
}

.occ-sandbox-tech-actions {
  margin-top: 8px;
}

.occ-sandbox-toggle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.occ-sandbox-toggle-card {
  border: 1px solid #dce6f6;
  border-radius: 10px;
  background: #fff;
  padding: 10px;
}

.occ-sandbox-toggle-card h4 {
  margin: 0 0 6px;
  font-size: 13px;
}

.occ-sandbox-toggle-card p {
  margin: 4px 0;
  font-size: 12px;
  color: #53627d;
}

.occ-sandbox-mode-select {
  margin-top: 6px;
}

.occ-sandbox-toggle-actions {
  margin-top: 8px;
}

.occ-sandbox-busy {
  margin: 8px 0 0;
  font-size: 12px;
  color: #1f5eb8;
  font-weight: 600;
}

.occ-sandbox-playbooks {
  border: 1px solid #dce6f6;
  border-radius: 10px;
  background: #fbfdff;
  padding: 10px;
  margin-top: 10px;
}

.occ-sandbox-playbook-actions {
  gap: 8px;
  align-items: center;
}

.occ-sandbox-playbook-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.occ-sandbox-playbook-card {
  border: 1px solid #dce6f6;
  border-radius: 10px;
  background: #fff;
  padding: 10px;
}

.occ-sandbox-playbook-card.active {
  border-color: #9ec4f3;
  background: #f2f7ff;
}

.occ-sandbox-playbook-card h4 {
  margin: 0 0 6px;
  font-size: 13px;
}

.occ-sandbox-playbook-card p {
  margin: 4px 0;
  font-size: 12px;
  color: #4f607b;
}

.occ-sandbox-playbook-details,
.occ-sandbox-playbook-setup,
.occ-sandbox-playbook-steps {
  margin-top: 10px;
}

.occ-sandbox-playbook-detail-card,
.occ-sandbox-playbook-setup-card {
  border: 1px solid #dce6f6;
  border-radius: 10px;
  background: #fff;
  padding: 10px;
}

.occ-sandbox-playbook-detail-card h4,
.occ-sandbox-playbook-setup-card h4 {
  margin: 0 0 6px;
  font-size: 13px;
}

.occ-sandbox-playbook-detail-card p,
.occ-sandbox-playbook-setup-card p {
  margin: 4px 0;
  font-size: 12px;
  color: #4f607b;
}

.occ-sandbox-playbook-step {
  border: 1px solid #dce6f6;
  border-radius: 10px;
  background: #fff;
  padding: 10px;
  margin-bottom: 8px;
}

.occ-sandbox-playbook-step.done {
  border-color: #b7dfbf;
  background: #f1fbf3;
}

.occ-sandbox-playbook-step.next {
  border-color: #9ec4f3;
  background: #f2f7ff;
  box-shadow: 0 0 0 2px rgba(62, 118, 204, 0.08);
}

.occ-sandbox-playbook-step-head {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  align-items: center;
}

.occ-sandbox-playbook-step h4 {
  margin: 0;
  font-size: 13px;
}

.occ-sandbox-playbook-step p {
  margin: 4px 0;
  font-size: 12px;
  color: #4f607b;
}

.occ-sandbox-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.occ-sandbox-action-card {
  border: 1px solid #dce6f6;
  border-radius: 10px;
  background: #fff;
  padding: 10px;
}

.occ-sandbox-action-card h4 {
  margin: 0 0 6px;
  font-size: 13px;
}

.occ-sandbox-action-card p {
  margin: 4px 0;
  font-size: 12px;
  color: #53627d;
}

.occ-sandbox-action-card.safe {
  border-color: #b7dfbf;
  background: #f2fbf4;
}

.occ-sandbox-action-card.warning {
  border-color: #f2c17e;
  background: #fff8ed;
}

.occ-sandbox-action-card.risky {
  border-color: #e6a7b0;
  background: #fff3f5;
}

.occ-sandbox-fulltest-options {
  margin-top: 8px;
  gap: 12px;
}

.occ-sandbox-fulltest-options label {
  font-size: 12px;
  color: #4c5f7c;
}

.occ-sandbox-logs {
  border: 1px solid #e3eaf7;
  border-radius: 10px;
  background: #fbfdff;
  padding: 10px;
  max-height: 260px;
  overflow: auto;
}

.occ-sandbox-log-item {
  border-bottom: 1px solid #e8eef8;
  padding: 6px 0;
}

.occ-sandbox-log-item:last-child {
  border-bottom: 0;
}

.occ-sandbox-log-item p {
  margin: 2px 0;
  font-size: 12px;
  color: #4e607c;
}

.occ-sandbox-log-item .time {
  color: #667896;
  font-size: 11px;
}

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

.occ-advanced-grid {
  margin-top: 10px;
}

.occ-control-card {
  border: 1px solid #dfe7f5;
  border-radius: 10px;
  padding: 10px;
  background: #fff;
}

.occ-control-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.occ-control-title {
  display: flex;
  gap: 6px;
  align-items: center;
}

.occ-control-card h4 {
  margin: 0;
  font-size: 14px;
}

.occ-help {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1px solid #bdcde8;
  background: #f4f8ff;
  color: #385f99;
  font-size: 11px;
  padding: 0;
  line-height: 1;
  cursor: help;
}

.occ-control-card p {
  margin: 4px 0;
  font-size: 12px;
  color: #52617d;
}

.occ-control-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0;
}

.occ-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  border: 1px solid #cad8ef;
  background: #f2f6ff;
  color: #1f4e8f;
}

.occ-badge.good {
  border-color: #b7e2c0;
  background: #edf9f0;
  color: #17663f;
}

.occ-badge.warn {
  border-color: #ffd8a8;
  background: #fff6e8;
  color: #8a5611;
}

.occ-badge.risk {
  border-color: #f1bdc3;
  background: #fff1f2;
  color: #8b1d2c;
}

.occ-badge.info {
  border-color: #c6d9fa;
  background: #f2f7ff;
  color: #1f5eb8;
}

.occ-range-wrap {
  margin: 6px 0;
}

.occ-range-wrap input[type='range'] {
  width: 100%;
}

.occ-range-scale {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #5f6f8a;
}

.occ-range-scale strong {
  color: #1e2f47;
}

.occ-range-zones {
  margin-top: 4px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4px;
}

.occ-range-zone {
  border-radius: 999px;
  padding: 2px 6px;
  font-size: 10px;
  text-align: center;
  border: 1px solid #d8e3f6;
  background: #f7fbff;
  color: #4d607f;
}

.occ-range-zone.low {
  border-color: #b7e2c0;
  background: #edf9f0;
  color: #165f3a;
}

.occ-range-zone.mid {
  border-color: #c9d9f5;
  background: #f1f6ff;
  color: #1c4f96;
}

.occ-range-zone.high {
  border-color: #f1c8a0;
  background: #fff5e9;
  color: #8d5612;
}

.occ-switch-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
}

.occ-switch {
  position: relative;
  width: 46px;
  height: 26px;
  flex: none;
}

.occ-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.occ-switch-slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #c7d4e9;
  transition: background 0.2s ease;
}

.occ-switch-slider::before {
  content: '';
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  top: 3px;
  border-radius: 999px;
  background: #fff;
  transition: transform 0.2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.occ-switch input:checked + .occ-switch-slider {
  background: #2f7cdb;
}

.occ-switch input:checked + .occ-switch-slider::before {
  transform: translateX(20px);
}

.occ-save-dock {
  position: sticky;
  top: 10px;
  z-index: 3;
  border-color: #c6d8f5;
  box-shadow: 0 4px 14px rgba(16, 41, 76, 0.08);
}

.occ-save-actions {
  display: flex;
  gap: 8px;
}

.occ-preview-item {
  border: 1px solid #e0e8f5;
  border-radius: 8px;
  background: #fff;
  padding: 8px;
  margin-bottom: 8px;
}

.occ-preview-item p {
  margin: 2px 0;
  font-size: 12px;
}

.occ-post-save-feedback {
  border: 1px solid #b7dfbf;
  border-radius: 8px;
  background: #f1fbf3;
  padding: 8px;
  margin-bottom: 8px;
}

.occ-post-save-feedback p {
  margin: 2px 0;
  font-size: 12px;
  color: #30513c;
}

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

.occ-driver-card {
  border: 1px solid #dee7f6;
  border-radius: 10px;
  background: #fff;
  padding: 10px;
}

.occ-driver-card h4 {
  margin: 0 0 6px;
  font-size: 13px;
}

.occ-driver-card p {
  margin: 3px 0;
  font-size: 12px;
  color: #53617b;
}

.occ-warning-grid {
  display: grid;
  gap: 10px;
}

.occ-warning-card {
  border: 1px solid #ecd6ac;
  border-radius: 10px;
  background: #fff9ef;
  padding: 10px;
}

.occ-warning-card.critical {
  border-color: #e4abb3;
  background: #fff2f4;
}

.occ-warning-card.healthy {
  border-color: #b7dfbf;
  background: #f0fbf2;
}

.occ-warning-card h4 {
  margin: 0 0 6px;
}

.occ-warning-card p {
  margin: 3px 0;
  font-size: 12px;
  color: #55637e;
}

.occ-recommended-card {
  border: 1px solid #c8daf6;
  border-radius: 10px;
  background: #f5f9ff;
  padding: 12px;
}

.occ-recommended-card p {
  margin: 4px 0;
  font-size: 12px;
  color: #4f617f;
}

.occ-recommended-card .row {
  margin-top: 8px;
}

.occ-glossary {
  display: grid;
  gap: 10px;
}

.occ-glossary-item {
  border: 1px solid #e3eaf7;
  border-radius: 8px;
  background: #fbfdff;
  padding: 8px;
}

.occ-glossary-item h4 {
  margin: 0 0 4px;
  font-size: 13px;
}

.occ-glossary-item p {
  margin: 0;
  font-size: 12px;
  color: #53617a;
}

.occ-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
}

.occ-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(22, 34, 53, 0.45);
}

.occ-modal-card {
  position: relative;
  max-width: 520px;
  margin: 10vh auto 0;
  border-radius: 12px;
  border: 1px solid #d5dfef;
  background: #fff;
  padding: 16px;
  z-index: 2;
}

.occ-modal-card h3 {
  margin: 0 0 8px;
}

.occ-modal-card p {
  margin: 5px 0;
  font-size: 13px;
  color: #4f5f7a;
}

.occ-modal-card ul {
  margin: 8px 0;
  padding-left: 18px;
}

.occ-modal-card li {
  font-size: 12px;
  color: #4d5e79;
}

.occ-confirm-type {
  margin-top: 10px;
}

.occ-confirm-type input {
  margin-top: 6px;
}

.occ-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

@media (max-width: 1080px) {
  .ops-grid {
    grid-template-columns: 1fr;
  }

  .dispatch-test-form-grid {
    grid-template-columns: 1fr;
  }

  .dispatch-test-options {
    grid-template-columns: 1fr;
  }

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

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

  .payments-primary-filters {
    grid-template-columns: 1fr;
  }

  .payments-bulk-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .payments-table {
    min-width: 760px;
  }

  .payments-drawer {
    grid-template-columns: 1fr;
  }

  .payments-drawer-panel {
    width: 100%;
    max-width: 100%;
  }

  .occ-status-grid,
  .occ-mini-status,
  .occ-mode-grid,
  .occ-quick-actions,
  .occ-sandbox-state-grid,
  .occ-sandbox-tech-grid,
  .occ-sandbox-toggle-grid,
  .occ-sandbox-playbook-grid,
  .occ-sandbox-actions,
  .occ-control-grid,
  .occ-driver-grid {
    grid-template-columns: 1fr;
  }

  .occ-mini-status-wrap {
    position: static;
  }

  .occ-save-dock {
    position: static;
  }

  .occ-top-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .occ-modal-card {
    margin: 5vh 12px 0;
    max-width: none;
  }

  .occ-sandbox-runner-top {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .occ-mode-grid,
  .occ-quick-actions,
  .occ-sandbox-state-grid,
  .occ-sandbox-tech-grid,
  .occ-sandbox-toggle-grid,
  .occ-sandbox-playbook-grid,
  .occ-sandbox-actions,
  .occ-control-grid,
  .occ-driver-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .filters-grid {
    grid-template-columns: 1fr;
  }

  .payments-table {
    min-width: 680px;
  }

  .payments-modal {
    padding: 10px;
  }
}

.support-case-row:hover {
  background: rgba(31, 111, 235, 0.06);
}

.support-case-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px 16px;
}

.support-case-tools {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.support-internal-notes {
  max-height: 180px;
  overflow: auto;
  white-space: pre-wrap;
  font: inherit;
}

.support-chat-log {
  max-height: 320px;
  overflow: auto;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.02);
  margin: 8px 0 12px;
}

.support-chat-row {
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.support-chat-row:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.support-chat-meta {
  font-size: 12px;
  color: #5c6570;
  margin-bottom: 4px;
}

.support-chat-text {
  white-space: pre-wrap;
  font: inherit;
}

.support-chat-admin .support-chat-text {
  border-left: 3px solid #1f6feb;
  padding-left: 8px;
}

.tech-monitor-row {
  cursor: pointer;
}
.tech-monitor-row:hover {
  background: rgba(31, 111, 235, 0.06);
}

.admin-detail-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  font-size: 14px;
}
.admin-detail-table th {
  text-align: left;
  font-weight: 700;
  color: var(--muted);
  padding: 6px 12px 6px 0;
  vertical-align: top;
  white-space: nowrap;
  width: 1%;
}
.admin-detail-table td {
  padding: 6px 0;
  vertical-align: top;
  word-break: break-word;
}
.admin-detail-table tr {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.admin-detail-table tr:last-child {
  border-bottom: none;
}

/* ===== CrewHook Admin UI Refresh ===== */
:root {
  --bg-app: #edf2fa;
  --bg-surface: #ffffff;
  --bg-surface-soft: #f6f9ff;
  --bg-sidebar: #0b1f3b;
  --border-strong: #d5deec;
  --border-soft: #e2e9f5;
  --text-main: #10223f;
  --text-subtle: #5d6a80;
  --text-inverse: #eef4ff;
  --brand-500: #2667d4;
  --brand-600: #1d56b2;
  --good-500: #1f8f58;
  --warn-500: #bb7a0b;
  --danger-500: #c03c44;
  --shadow-soft: 0 8px 24px rgba(13, 35, 67, 0.07);
  --radius-md: 12px;
  --radius-lg: 16px;
}

body {
  background: radial-gradient(1200px 520px at 50% -140px, #dce9ff 0%, var(--bg-app) 58%);
  color: var(--text-main);
  font-family: 'Manrope', 'Avenir Next', 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: 70px;
  padding: 12px 20px;
  background: linear-gradient(120deg, #07192f, #0e2748 70%);
  border-bottom: 1px solid #1c3d67;
}

.brand h1 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand p {
  font-size: 13px;
  letter-spacing: 0.01em;
}

#authState {
  color: #c8d9f2;
  font-size: 12px;
}

.layout {
  max-width: 1700px;
  padding: 20px;
}

.dashboard {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.dashboard-sidebar {
  position: sticky;
  top: 86px;
}

.tabs {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid #1e3c63;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #0f2950, var(--bg-sidebar));
  box-shadow: var(--shadow-soft);
  padding: 12px;
}

.nav-section {
  display: grid;
  gap: 6px;
}

.nav-section + .nav-section {
  border-top: 1px solid rgba(188, 209, 239, 0.14);
  padding-top: 12px;
}

.nav-section-title {
  margin: 0 0 2px;
  padding: 0 4px;
  color: #7f9cc8;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tab {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: #bcd1ef;
  text-align: left;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
}

.tab::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #3c5f91;
  flex: none;
}

.tab:hover {
  border-color: #2f4d77;
  background: rgba(255, 255, 255, 0.06);
  color: #eaf3ff;
}

.tab.active {
  border-color: #4b77b2;
  background: linear-gradient(180deg, #f5f8ff, #e7efff);
  color: #153b79;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.tab.active::before {
  background: #2667d4;
}

.sidebar-note {
  display: grid;
  gap: 4px;
  margin-top: 12px;
  border: 1px solid #d8e4f4;
  border-radius: var(--radius-md);
  background: #ffffff;
  color: #304869;
  box-shadow: var(--shadow-soft);
  padding: 12px;
}

.sidebar-note strong {
  color: #153b79;
  font-size: 13px;
}

.sidebar-note span {
  color: var(--text-subtle);
  font-size: 12px;
  line-height: 1.4;
}

.dashboard-main {
  min-width: 0;
  display: grid;
  gap: 14px;
}

.workspace-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: linear-gradient(120deg, #ffffff, #f2f7ff);
  border: 1px solid var(--border-soft);
}

.workspace-heading h2 {
  margin: 4px 0 3px;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.workspace-kicker {
  margin: 0;
  color: #4d6ca2;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.workspace-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: min(100%, 520px);
}

.admin-search-form {
  display: grid;
  grid-template-columns: minmax(96px, 120px) minmax(220px, 1fr) auto;
  align-items: center;
  gap: 8px;
  width: min(100%, 560px);
  min-width: 0;
  border: 1px solid #d5e2f7;
  border-radius: 999px;
  background: #ffffff;
  padding: 4px;
  box-shadow: 0 10px 30px rgba(27, 58, 102, 0.06);
}

.admin-search-form select,
.admin-search-form input {
  height: 32px;
  min-width: 0;
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 0 10px;
}

.admin-search-form select {
  border-right: 1px solid #e0e9f7;
  border-radius: 999px 0 0 999px;
  color: #32517f;
  font-size: 12px;
  font-weight: 700;
}

.admin-search-form input {
  color: #10213d;
}

.admin-search-form button {
  height: 32px;
  border-radius: 999px;
  padding: 0 14px;
  white-space: nowrap;
}

.workspace-admin-id {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d5e2f7;
  border-radius: 999px;
  background: #ffffff;
  color: #32517f;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
}

.workspace-panels {
  display: grid;
  gap: 14px;
}

.workspace-panels > .tab-panel.active {
  animation: admin-fade-in 140ms ease-out;
}

.command-center-root {
  display: block;
  width: 100%;
  min-width: 0;
}

.command-center-grid {
  display: grid;
  gap: 14px;
  width: 100%;
  min-width: 0;
}

.command-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: 18px;
  align-items: center;
  border: 1px solid #cbdaf0;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #10284d, #16406f);
  color: #f7fbff;
  padding: 18px;
  overflow: hidden;
  position: relative;
  min-width: 0;
}

.command-hero::after {
  content: '';
  position: absolute;
  right: -70px;
  top: -90px;
  width: 230px;
  height: 230px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.command-hero h3 {
  margin: 4px 0 6px;
  font-size: 32px;
  letter-spacing: -0.03em;
}

.command-hero p {
  margin: 0;
  color: #d9e8ff;
  max-width: 720px;
}

.command-hero .workspace-kicker {
  color: #9fc0ef;
}

.command-hero-critical {
  background: linear-gradient(135deg, #4b1220, #8e2638);
  border-color: #f0b0bc;
}

.command-hero-watch {
  background: linear-gradient(135deg, #4a3309, #9b6508);
  border-color: #f0d08f;
}

.command-hero-healthy {
  background: linear-gradient(135deg, #123d2a, #1f7a4d);
  border-color: #a8dbc0;
}

.command-hero-meta {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  padding: 12px;
  position: relative;
  z-index: 1;
}

.command-hero-meta span,
.command-hero-meta small {
  color: #dbe9ff;
}

.command-hero-meta strong {
  color: #ffffff;
  font-size: 18px;
}

.command-metrics-grid,
.command-issue-grid,
.command-shortcut-grid,
.command-system-strip {
  display: grid;
  gap: 10px;
  width: 100%;
  min-width: 0;
}

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

.command-metric-card {
  border: 1px solid #dbe5f2;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  padding: 12px;
  min-width: 0;
}

.command-metric-card span,
.command-system-strip span,
.command-issue-label {
  display: block;
  color: #5d6f8f;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.command-metric-card strong {
  display: block;
  margin-top: 6px;
  color: #122b4e;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.03em;
}

.command-metric-card small {
  display: block;
  margin-top: 6px;
  color: #5d6a80;
  font-size: 12px;
}

.command-section {
  border: 1px solid #dbe5f2;
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  padding: 14px;
  min-width: 0;
}

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

.command-section-head h3 {
  margin: 2px 0 0;
  font-size: 18px;
  letter-spacing: -0.015em;
}

.command-issue-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.command-issue-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid #dbe5f2;
  border-radius: 14px;
  background: #f8fbff;
  padding: 12px;
  min-width: 0;
}

.command-issue-card strong {
  display: block;
  margin-top: 6px;
  color: #122b4e;
  font-size: 30px;
  line-height: 1;
}

.command-issue-card p {
  margin: 8px 0 0;
  color: #5d6a80;
  font-size: 12px;
  line-height: 1.35;
}

.command-issue-card.critical {
  border-color: #efb4bf;
  background: #fff4f6;
}

.command-issue-card.watch {
  border-color: #ecd49b;
  background: #fffaf0;
}

.command-issue-card.quiet {
  border-color: #d9e9df;
  background: #f7fcf9;
}

.command-shortcut-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.command-shortcut {
  display: grid;
  gap: 5px;
  text-align: left;
  border: 1px solid #d4e1f2;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #f6f9ff);
  color: #173b6e;
  padding: 14px;
  box-shadow: none;
  min-width: 0;
}

.command-shortcut:hover {
  background: #eef5ff;
  border-color: #b7ccea;
}

.command-shortcut strong {
  color: #12335e;
  font-size: 14px;
}

.command-shortcut span {
  color: #5d6a80;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
}

.command-system-strip {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.command-system-strip div {
  border: 1px solid #dbe5f2;
  border-radius: 12px;
  background: #f8fbff;
  padding: 10px;
  min-width: 0;
}

.command-system-strip strong {
  display: block;
  margin-top: 5px;
  color: #152c4e;
  font-size: 16px;
}

.panel {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  box-shadow: var(--shadow-soft);
  padding: 16px;
}

.subpanel {
  border-radius: var(--radius-md);
  border-color: var(--border-soft);
  background: var(--bg-surface-soft);
}

.panel-head {
  margin-bottom: 12px;
}

.panel-head h2 {
  font-size: 25px;
  letter-spacing: -0.015em;
}

.panel-head h3 {
  margin: 0;
}

.stat {
  position: relative;
  overflow: hidden;
}

.stat-note {
  margin-top: 4px;
  font-size: 11px;
  color: #4d6a95;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.muted {
  color: var(--text-subtle);
  font-size: 12px;
}

label span {
  color: #536177;
  font-size: 12px;
  font-weight: 600;
}

input:not([type='checkbox']):not([type='radio']),
select,
textarea {
  border: 1px solid #cfd9e9;
  border-radius: 10px;
  background: #fff;
  color: #122b4e;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

input:not([type='checkbox']):not([type='radio']):focus,
select:focus,
textarea:focus {
  border-color: #7aa3e7;
  box-shadow: 0 0 0 3px rgba(38, 103, 212, 0.15);
  outline: none;
}

button {
  border: 1px solid var(--brand-500);
  border-radius: 10px;
  background: var(--brand-500);
  color: #f7fbff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.005em;
  padding: 9px 14px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.22) inset;
  transition: background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease, opacity 120ms ease,
    transform 120ms ease;
}

button:hover {
  background: var(--brand-600);
  border-color: var(--brand-600);
}

button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(38, 103, 212, 0.26);
}

button.secondary {
  background: #fff;
  border-color: #c6d2e6;
  color: #28456e;
}

button.secondary:hover {
  background: #edf3ff;
  border-color: #b5c7e5;
}

button.success {
  background: var(--good-500);
  border-color: var(--good-500);
  color: #f5fff8;
}

button.success:hover {
  background: #187447;
  border-color: #187447;
}

button.warning {
  background: var(--warn-500);
  border-color: var(--warn-500);
  color: #fff9ec;
}

button.warning:hover {
  background: #9b6508;
  border-color: #9b6508;
}

button.danger {
  background: var(--danger-500);
  border-color: var(--danger-500);
  color: #fff5f6;
}

button.danger:hover {
  background: #9d2f36;
  border-color: #9d2f36;
}

button.ghost {
  background: transparent;
  border-color: #c6d2e6;
  color: #42638f;
}

button.ghost:hover {
  background: #eff4ff;
}

button.small {
  padding: 5px 9px;
  font-size: 12px;
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: saturate(0.8);
}

button:active:not(:disabled) {
  transform: translateY(1px);
}

button.button-busy {
  position: relative;
  padding-right: 28px;
}

button.button-busy::after {
  content: '';
  position: absolute;
  right: 10px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -6px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  animation: admin-spin 0.8s linear infinite;
}

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

.row {
  gap: 10px;
}

.row.wrap {
  row-gap: 8px;
}

.filters-grid {
  border: 1px solid #d7e2f2;
  border-radius: 12px;
  background: #f8fbff;
  padding: 10px;
  margin-bottom: 12px;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #dbe5f2;
  border-radius: 12px;
  background: #fff;
}

table {
  width: 100%;
  min-width: 640px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12px;
}

th,
td {
  padding: 9px 10px;
  border-bottom: 1px solid #e6edf7;
  text-align: left;
  vertical-align: top;
  word-break: normal;
  overflow-wrap: break-word;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f6f9ff;
  color: #4d6488;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

tbody tr:nth-child(even) td {
  background: #fbfdff;
}

tbody tr:hover td {
  background: #eef4ff;
}

.requests-panel {
  padding: 18px;
}

.requests-panel .panel-head {
  align-items: flex-start;
}

.requests-toolbar {
  justify-content: flex-end;
}

.requests-toolbar select {
  min-width: 220px;
}

.requests-table-wrap {
  border-color: #ccd9ed;
}

.requests-table {
  min-width: 1260px;
  table-layout: auto;
}

.requests-table th {
  text-transform: none;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
}

.requests-table td {
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  line-height: 1.4;
}

.requests-table .mono-truncate {
  max-width: 100%;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.requests-table .request-full-value {
  display: inline-block;
  width: 100%;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  font-size: 11px;
  color: #1e3a66;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.requests-table .cell-actions {
  min-width: 150px;
  width: 150px;
  white-space: nowrap;
}

.cell-actions {
  min-width: 150px;
}

#requestsActionResult {
  min-height: 18px;
  margin: 8px 0 0;
}

.mono-truncate {
  max-width: 280px;
  font-size: 11px;
  color: #1a3f77;
  background: #f2f7ff;
  border: 1px solid #dbe6f7;
  border-radius: 6px;
  padding: 2px 6px;
  user-select: text;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  border: 1px solid #cad8ee;
  background: #eff5ff;
  color: #2a4d81;
  padding: 2px 9px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  text-transform: lowercase;
  white-space: nowrap;
}

.pill.status-success {
  border-color: #b5e0c4;
  background: #ecfaf1;
  color: #166d41;
}

.pill.status-warning {
  border-color: #f0dc9f;
  background: #fff8e4;
  color: #855b03;
}

.pill.status-danger {
  border-color: #edc2c7;
  background: #fff1f3;
  color: #962d36;
}

.pill.status-info {
  border-color: #c8daf7;
  background: #eef4ff;
  color: #1e5cb5;
}

.pill.status-default {
  border-color: #d5dfef;
  background: #f4f7fc;
  color: #425a7f;
}

.ops-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.ops-card {
  border-width: 1px;
  border-style: solid;
}

.ops-card-request {
  border-color: #c6d8f4;
  background: linear-gradient(160deg, #f8fbff, #f2f7ff);
}

.ops-card-tech {
  border-color: #c8dff0;
  background: linear-gradient(160deg, #f8fdff, #f3f9ff);
}

.ops-card-safety {
  border-color: #ecd2b0;
  background: linear-gradient(160deg, #fffaf2, #fff6ea);
}

.ops-wide-card {
  border-color: #dbe5f2;
  background: #f8fbff;
}

.dispatch-test-panel {
  border: 1px solid #d5e0f1;
  border-radius: 14px;
  background: #f9fbff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.dispatch-test-warning {
  border-radius: 10px;
  padding: 10px 12px;
}

.dispatch-test-virtual-tools,
.dispatch-test-location-tools {
  border-radius: 12px;
  border-color: #d2dff3;
  background: #f4f8ff;
}

.dispatch-test-form-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.dispatch-test-options {
  border-radius: 12px;
  background: #fff;
}

.dispatch-test-checklist-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.dispatch-test-check-item {
  border-radius: 10px;
}

#dispatchTestSummary .admin-detail-table th {
  width: 220px;
}

.payments-panel .panel-head {
  align-items: flex-start;
}

.payments-toolbar {
  border-radius: 12px;
  border-color: #d7e2f2;
  background: #f8fbff;
}

.payments-table-wrap {
  border-radius: 12px;
}

.payments-table th,
.payments-table td {
  font-size: 12px;
}

.payments-bulk-actions,
.payments-pager,
.pager {
  padding-top: 4px;
}

.issue-grid,
.support-case-tools {
  gap: 12px;
}

.support-case-detail-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

@media (max-width: 1360px) {
  .dispatch-test-form-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .filters-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .command-issue-grid,
  .command-shortcut-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .issue-action-result {
    grid-template-columns: 1fr;
  }

  .issue-action-result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  .dashboard {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    position: static;
  }

  .tabs {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .nav-section {
    flex: 1 1 230px;
    min-width: 220px;
  }

  .nav-section + .nav-section {
    border-top: 0;
    padding-top: 0;
  }

  .tab {
    width: auto;
    flex: 1 1 auto;
    justify-content: center;
    text-align: center;
  }

  .sidebar-note {
    display: none;
  }

  .workspace-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .workspace-header-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .admin-search-form {
    width: 100%;
  }

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

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

  .command-hero {
    grid-template-columns: 1fr;
  }

  .command-system-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .topbar-actions {
    width: 100%;
    justify-content: space-between;
  }

  .layout {
    padding: 14px;
  }

  .filters-grid,
  .dispatch-test-form-grid,
  .dispatch-test-options,
  .command-metrics-grid,
  .command-issue-grid,
  .command-shortcut-grid,
  .command-system-strip {
    grid-template-columns: 1fr;
  }

  .command-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-search-form {
    grid-template-columns: 1fr;
    border-radius: 16px;
    padding: 8px;
  }

  .admin-search-form select,
  .admin-search-form input,
  .admin-search-form button {
    width: 100%;
    border-radius: 10px;
  }

  .admin-search-form select {
    border-right: 0;
    border-bottom: 1px solid #e0e9f7;
  }

  .admin-search-drawer {
    grid-template-columns: 1fr;
  }

  .admin-search-drawer-backdrop {
    display: none;
  }

  .admin-search-drawer-panel {
    border-left: 0;
  }

  table {
    min-width: 560px;
  }
}

/* Global admin anti-squeeze guard: cards keep readable widths; wide data scrolls instead of compressing text. */
.dashboard-main,
.workspace-header,
.workspace-panels,
.workspace-panels > .tab-panel,
.workspace-panels > .tab-panel.active,
.panel,
.subpanel,
.command-section,
.stat,
.command-issue-card,
.command-shortcut,
.occ-status-card,
.occ-mode-card,
.occ-action-card,
.occ-sandbox-state-card,
.occ-sandbox-tech-card,
.occ-sandbox-toggle-card,
.occ-sandbox-playbook-card,
.occ-sandbox-action-card,
.occ-control-card,
.occ-driver-card {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
}

.workspace-panels > .tab-panel.active {
  width: 100%;
}

.stats-grid,
.command-metrics-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
}

.command-issue-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
}

.command-shortcut-grid,
.ops-grid,
.support-case-tools,
.occ-quick-actions,
.occ-mode-grid,
.occ-sandbox-tech-grid,
.occ-sandbox-playbook-grid,
.occ-sandbox-actions,
.occ-control-grid,
.occ-driver-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.filters-grid,
.command-system-strip,
.occ-mini-status,
.occ-status-grid,
.occ-sandbox-state-grid,
.occ-sandbox-toggle-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
}

.issue-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 640px), 1fr));
  align-items: start;
}

.issue-action-result-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
}

.table-responsive {
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.marketplace-intelligence-panel {
  min-width: 0;
}

.privacy-note {
  border: 1px solid #c7d8ef;
  border-radius: 12px;
  background: #f8fbff;
  color: #405777;
  font-size: 13px;
  margin: 0 0 12px;
  padding: 10px 12px;
  overflow-wrap: anywhere;
}

.marketplace-settings-card {
  display: block !important;
  margin: 14px 0 18px;
  border: 2px solid #2563eb;
  background: linear-gradient(135deg, #eff6ff 0%, #f8fbff 58%, #ecfeff 100%);
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.12);
}

.marketplace-settings-card.paused {
  border-color: #d97706;
  background: linear-gradient(135deg, #fffbeb 0%, #fffdf3 58%, #fef3c7 100%);
  box-shadow: 0 14px 34px rgba(217, 119, 6, 0.14);
}

.system-health-status {
  border: 1px solid #c7d8ef;
  border-radius: 12px;
  background: #f8fbff;
  color: #405777;
  font-size: 13px;
  margin: 0 0 12px;
  padding: 10px 12px;
}

.system-health-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: 14px;
  align-items: start;
}

.system-health-wide-panel {
  grid-column: 1 / -1;
}

.system-health-table {
  min-width: 980px;
}

.cost-usage-table {
  min-width: 1180px;
}

.system-health-table th,
.system-health-table td {
  vertical-align: top;
}

.system-health-table th {
  white-space: nowrap;
}

.system-health-status-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.system-health-status-badge.success {
  background: #dcfce7;
  color: #166534;
}

.system-health-status-badge.warning {
  background: #fef3c7;
  color: #92400e;
}

.system-health-status-badge.error {
  background: #fee2e2;
  color: #991b1b;
}

.status-pill.load-test {
  background: #e0f2fe;
  color: #075985;
  white-space: nowrap;
}

.cost-source-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  background: #e8f1ff;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.cost-source-badge.ai {
  background: #ecfdf5;
  color: #047857;
}

.cost-source-badge.stripe_lifecycle {
  background: #f5f3ff;
  color: #6d28d9;
}

.cost-source-badge.load_test {
  background: #fef3c7;
  color: #92400e;
}

.cost-unit-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  max-width: 420px;
}

.cost-unit-list span {
  border: 1px solid #d8e4f4;
  border-radius: 999px;
  background: #fff;
  color: #405777;
  font-size: 11px;
  line-height: 1;
  padding: 5px 8px;
  white-space: nowrap;
}

.marketplace-settings-body {
  margin: 0 0 10px;
  color: #344767;
  line-height: 1.45;
}

.marketplace-warning {
  border-color: #fde68a;
  background: #fffbeb;
  color: #854d0e;
}

.marketplace-settings-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.marketplace-settings-actions label {
  min-width: 0;
}

.marketplace-settings-actions input {
  width: 100%;
}

.marketplace-status-banner {
  border: 1px solid #c7d8ef;
  border-radius: 12px;
  margin: 0 0 12px;
  padding: 10px 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.marketplace-status-banner.active {
  background: #ecfdf5;
  border-color: #bbf7d0;
  color: #166534;
}

.marketplace-status-banner.paused {
  background: #fffbeb;
  border-color: #fde68a;
  color: #854d0e;
}

.marketplace-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 10px;
}

.marketplace-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: 12px;
  align-items: start;
}

.marketplace-wide-panel {
  grid-column: 1 / -1;
  min-width: 0;
}

.marketplace-table {
  min-width: 1080px;
}

.marketplace-table th,
.marketplace-table td {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}

.marketplace-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  white-space: normal;
}

.marketplace-badge.ready {
  border: 1px solid #bbf7d0;
  background: #ecfdf5;
  color: #166534;
}

.marketplace-badge.waiting {
  border: 1px solid #fde68a;
  background: #fffbeb;
  color: #854d0e;
}

.load-test-form-card {
  display: grid;
  gap: 14px;
  margin: 14px 0 18px;
  border: 2px solid #1d4ed8;
  background: linear-gradient(135deg, #eff6ff 0%, #f8fbff 55%, #ecfeff 100%);
}

.load-test-cleanup-card {
  display: grid;
  gap: 14px;
  margin: 0 0 18px;
  border: 2px solid #0f766e;
  background: linear-gradient(135deg, #f0fdfa 0%, #f8fbff 58%, #ffffff 100%);
}

.load-test-report-card {
  display: grid;
  gap: 14px;
  margin: 0 0 18px;
  border: 2px solid #7c3aed;
  background: linear-gradient(135deg, #f5f3ff 0%, #f8fbff 58%, #ffffff 100%);
}

.load-test-cleanup-grid {
  grid-template-columns: minmax(min(100%, 360px), 1.4fr) minmax(min(100%, 220px), 0.6fr);
}

.load-test-report-grid {
  grid-template-columns: minmax(min(100%, 360px), 1.4fr) minmax(min(100%, 220px), 0.6fr);
}

.load-test-cleanup-confirm {
  max-width: 720px;
}

.cleanup-result-card {
  border-color: #99f6e4;
}

.load-test-row-actions {
  min-width: 260px;
}

.load-test-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
}

.load-test-grid .wide {
  grid-column: 1 / -1;
}

.load-test-safety-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 10px;
}

.check-row {
  align-items: center;
  background: #f8fbff;
  border: 1px solid #d7e3f5;
  border-radius: 12px;
  display: flex;
  gap: 8px;
  min-height: 44px;
  padding: 10px 12px;
}

.check-row input {
  flex: 0 0 auto;
  width: auto;
}

.check-row span {
  color: #10254a;
  font-size: 13px;
  font-weight: 700;
}

.load-test-result {
  min-height: 24px;
}

.load-test-result-card {
  background: #ffffff;
  border: 1px solid #c7d8ef;
  border-radius: 14px;
  padding: 14px;
}

.load-test-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: 10px;
  margin: 10px 0;
}

.load-test-summary-grid span {
  background: #f8fbff;
  border: 1px solid #d7e3f5;
  border-radius: 12px;
  color: #405777;
  display: grid;
  gap: 2px;
  padding: 10px 12px;
}

.load-test-summary-grid strong {
  color: #10254a;
  font-size: 22px;
}

.load-tests-table {
  min-width: 1260px;
}

.load-test-report-table {
  min-width: 1120px;
}

.load-tests-table th,
.load-tests-table td,
.load-test-report-table th,
.load-test-report-table td {
  vertical-align: top;
}

.load-tests-table th:nth-child(1),
.load-tests-table th:nth-child(2),
.load-tests-table th:nth-child(3),
.load-tests-table th:nth-child(5),
.load-tests-table th:nth-child(6),
.load-tests-table th:nth-child(7),
.load-tests-table th:nth-child(10),
.load-tests-table td:nth-child(3),
.load-tests-table td:nth-child(5),
.load-tests-table td:nth-child(6),
.load-tests-table td:nth-child(7),
.load-tests-table td:nth-child(10) {
  white-space: nowrap;
}

.load-test-report-section {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.load-test-report-section h4 {
  color: #10254a;
  font-size: 15px;
  margin: 0;
}

.stuck-states-warning-box.inline {
  margin-top: 10px;
}

.marketplace-badge.paused {
  border: 1px solid #fde68a;
  background: #fffbeb;
  color: #854d0e;
}

.marketplace-mini-grid,
.marketplace-risk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: 10px;
}

.marketplace-mini-card,
.marketplace-risk-card {
  border: 1px solid #dbe5f2;
  border-radius: 10px;
  background: #fbfdff;
  padding: 10px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.marketplace-mini-card strong,
.marketplace-risk-card strong {
  display: block;
  font-size: 22px;
  line-height: 1.1;
}

.marketplace-mini-card span,
.marketplace-risk-card span {
  color: var(--muted);
  font-size: 12px;
}

.marketplace-risk-card.warn {
  border-color: #facc15;
  background: #fffbeb;
}

.marketplace-risk-card.info {
  border-color: #bae6fd;
  background: #f0f9ff;
}

.marketplace-list {
  margin: 8px 0 0;
  padding-left: 18px;
  color: #344767;
  font-size: 12px;
}

.stuck-states-panel {
  min-width: 0;
}

.stuck-states-status {
  border: 1px solid #c7d8ef;
  border-radius: 12px;
  background: #f8fbff;
  color: #405777;
  line-height: 1.45;
  margin: 0 0 12px;
  padding: 10px 12px;
  overflow-wrap: anywhere;
}

.stuck-states-status.critical {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.stuck-states-cards {
  margin-bottom: 12px;
}

.stuck-states-warning-box {
  border: 1px solid #f59e0b;
  border-radius: 12px;
  background: #fffbeb;
  color: #78350f;
  margin: 0 0 12px;
  padding: 12px 14px;
}

.stuck-states-warning-box h4 {
  color: #92400e;
  font-size: 14px;
  margin: 0 0 4px;
}

.stuck-states-warning-box p {
  margin: 0 0 10px;
}

.stuck-states-warning-box ul {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.stuck-states-warning-box li {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.stuck-states-warning-box li span {
  color: #92400e;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.stuck-states-warning-box li em {
  color: #5f4309;
  font-style: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.stuck-states-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

.stuck-states-filter-bar button.active {
  background: #dbeafe;
  border-color: #2563eb;
  color: #1d4ed8;
}

.stuck-states-table-wrap {
  overflow-x: auto;
}

.stuck-states-table {
  min-width: 1320px;
}

.stuck-states-table th,
.stuck-states-table td {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  vertical-align: top;
}

.stuck-states-table th {
  white-space: nowrap;
}

.stuck-states-table th:first-child,
.stuck-states-table td:first-child,
.stuck-states-table th:nth-child(9),
.stuck-states-table td:nth-child(9),
.stuck-states-table th:nth-child(10),
.stuck-states-table td:nth-child(10) {
  min-width: 92px;
  white-space: nowrap;
}

.stuck-states-table th:nth-child(8),
.stuck-states-table td:nth-child(8) {
  min-width: 130px;
  white-space: nowrap;
}

.stuck-states-table .cell-reason {
  min-width: 260px;
  max-width: 420px;
}

.stuck-states-table .cell-id {
  min-width: 126px;
}

.stuck-state-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 230px;
}

.stuck-severity-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.2;
  padding: 4px 8px;
  text-transform: uppercase;
  white-space: nowrap;
}

.stuck-severity-badge.critical {
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

.stuck-severity-badge.watch {
  border: 1px solid #fde68a;
  background: #fffbeb;
  color: #854d0e;
}

.stuck-severity-badge.info {
  border: 1px solid #bae6fd;
  background: #f0f9ff;
  color: #075985;
}

.stuck-states-detail {
  margin-top: 14px;
}

.stuck-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 10px;
}

.stuck-detail-cell {
  border: 1px solid #dbe5f2;
  border-radius: 10px;
  background: #fbfdff;
  padding: 10px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.stuck-detail-cell span {
  color: #64748b;
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.stuck-detail-cell strong {
  color: #10233f;
  display: block;
  font-size: 13px;
  line-height: 1.35;
  margin-top: 4px;
  overflow-wrap: anywhere;
}

.stuck-detail-reason {
  border: 1px solid #c7d8ef;
  border-radius: 12px;
  background: #f8fbff;
  margin: 12px 0;
  padding: 12px;
}

.stuck-detail-reason h4 {
  margin: 0 0 6px;
}

.stuck-detail-reason p {
  margin: 0;
  color: #405777;
  line-height: 1.45;
}

.stuck-preview-json pre {
  background: #0f172a;
  border-radius: 10px;
  color: #e2e8f0;
  margin: 8px 0 0;
  max-height: 260px;
  overflow: auto;
  padding: 12px;
  white-space: pre-wrap;
}

.issue-grid .table-responsive {
  width: 100%;
}

.issue-grid table {
  min-width: 920px;
  table-layout: auto;
}

.issue-grid th,
.issue-grid td {
  min-width: 96px;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
}

.issue-grid .completion-issues-table-wrap {
  overflow-x: auto;
  overflow-y: visible;
}

.issue-grid .completion-issues-table {
  min-width: 1180px;
}

.issue-grid .completion-issues-table th,
.issue-grid .completion-issues-table td {
  min-width: 0;
  word-break: normal;
  overflow-wrap: break-word;
}

.issue-grid .completion-issues-table .cell-date {
  min-width: 120px;
}

.issue-grid .completion-issues-table .cell-id {
  min-width: 150px;
}

.issue-grid .completion-issues-table .cell-service {
  min-width: 95px;
}

.issue-grid .completion-issues-table .cell-person {
  min-width: 145px;
}

.issue-grid .completion-issues-table .cell-issue-status {
  min-width: 170px;
}

.issue-grid .completion-issues-table .cell-actions {
  min-width: 170px;
  width: 170px;
}

.issue-grid .cell-actions {
  min-width: 190px;
  width: 190px;
  white-space: normal;
}

.issue-action-bar,
.cell-actions .row,
td .row {
  flex-wrap: wrap;
}

.issue-action-bar {
  min-width: 180px;
}

.mono-truncate,
.request-full-value,
.json-output {
  max-width: 100%;
}

.payments-drawer-panel,
.payments-modal-card,
.admin-search-drawer-panel,
.occ-modal-card {
  box-sizing: border-box;
  min-width: 0;
  max-width: min(960px, calc(100vw - 32px));
}

.admin-help,
.admin-inline-help {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  border: 1px solid #c6d7ee;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(241, 247, 255, 0.96)),
    #fff;
  box-shadow: 0 12px 30px rgba(15, 45, 87, 0.08);
}

.admin-help {
  margin: 0 0 18px;
  overflow: hidden;
}

.admin-help summary,
.admin-inline-help summary {
  cursor: pointer;
  list-style: none;
}

.admin-help summary::-webkit-details-marker,
.admin-inline-help summary::-webkit-details-marker {
  display: none;
}

.admin-help > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  color: #0d2b52;
  font-size: 1rem;
  font-weight: 900;
}

.admin-help > summary small {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid #b8cef0;
  border-radius: 999px;
  color: #315a91;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: #fff;
  white-space: nowrap;
}

.admin-help > summary::after {
  content: "Open guide";
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  color: #fff;
  font-size: 0.76rem;
  font-weight: 900;
  background: #2563d8;
  white-space: nowrap;
}

.admin-help[open] > summary::after {
  content: "Hide guide";
  background: #0d2b52;
}

.admin-help-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  padding: 0 18px 18px;
}

.admin-help-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid #d8e5f7;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
}

.admin-help-card h3 {
  margin: 0 0 8px;
  color: #12315d;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-help-card p,
.admin-help-card li,
.admin-inline-help p,
.admin-inline-help li {
  color: #415573;
  font-size: 0.94rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.admin-help-card p,
.admin-inline-help p {
  margin: 0;
}

.admin-help-card ol,
.admin-inline-help ol {
  margin: 0;
  padding-left: 1.2rem;
}

.admin-help-card li + li,
.admin-inline-help li + li {
  margin-top: 6px;
}

.admin-help-safe {
  border-color: #f3d6a6;
  background: linear-gradient(135deg, rgba(255, 250, 235, 0.96), rgba(255, 255, 255, 0.92));
}

.admin-help-terms {
  margin-top: 10px !important;
  padding-top: 10px;
  border-top: 1px dashed #d4b578;
  color: #6a4a13 !important;
}

.admin-inline-help {
  margin: 10px 0 14px;
  padding: 0;
  background: #f8fbff;
  box-shadow: none;
}

.admin-inline-help > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  color: #12315d;
  font-weight: 900;
}

.admin-inline-help > summary::after {
  content: "Show help";
  color: #2563d8;
  font-size: 0.75rem;
  font-weight: 900;
  white-space: nowrap;
}

.admin-inline-help[open] > summary::after {
  content: "Hide help";
  color: #0d2b52;
}

.admin-inline-help > div {
  padding: 0 14px 14px;
}

.admin-help-warning {
  margin-top: 10px !important;
  padding: 10px 12px;
  border: 1px solid #f2b8b5;
  border-radius: 12px;
  color: #7a1f1f !important;
  background: #fff5f5;
}

.admin-tooltip {
  position: fixed;
  z-index: 10000;
  box-sizing: border-box;
  width: max-content;
  max-width: min(380px, calc(100vw - 24px));
  padding: 11px 13px;
  border: 1px solid rgba(157, 187, 232, 0.9);
  border-radius: 14px;
  color: #f8fbff;
  font-size: 0.86rem;
  font-weight: 750;
  line-height: 1.42;
  overflow-wrap: anywhere;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(13, 43, 82, 0.98), rgba(25, 73, 133, 0.96)),
    #0d2b52;
  box-shadow: 0 18px 42px rgba(13, 43, 82, 0.28);
  opacity: 0;
  transform: translateY(3px) scale(0.98);
  transition:
    opacity 120ms ease,
    transform 120ms ease;
}

.admin-tooltip.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

[data-help],
.tab,
.pill,
.payment-status-badge,
.stat,
.command-metric-card,
.command-issue-card,
.command-shortcut {
  cursor: help;
}

button[data-help],
button.tab,
button.command-shortcut,
button[data-command-tab],
button[data-refresh],
button[data-next],
button[data-issue-action],
button[data-request-action],
button[data-tech-action] {
  cursor: pointer;
}

@media (max-width: 1180px) {
  .issue-grid {
    grid-template-columns: 1fr;
  }

  .issue-grid table {
    min-width: 840px;
  }
}

@media (max-width: 860px) {
  .stats-grid,
  .filters-grid,
  .command-metrics-grid,
  .command-issue-grid,
  .command-shortcut-grid,
  .command-system-strip,
  .ops-grid,
  .support-case-tools,
  .occ-mini-status,
  .occ-status-grid,
  .occ-mode-grid,
  .occ-quick-actions,
  .occ-sandbox-state-grid,
  .occ-sandbox-tech-grid,
  .occ-sandbox-toggle-grid,
  .occ-sandbox-playbook-grid,
  .occ-sandbox-actions,
  .occ-control-grid,
  .occ-driver-grid,
  .issue-grid {
    grid-template-columns: 1fr;
  }

  table {
    min-width: 640px;
  }

  .issue-grid table {
    min-width: 760px;
  }

  .admin-help-grid {
    grid-template-columns: 1fr;
  }

  .admin-help > summary {
    align-items: flex-start;
    flex-direction: column;
  }
}

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