:root {
  --bg: #f6f7f9;
  --panel: #ffffff;
  --line: #dde3ea;
  --text: #17202a;
  --muted: #657386;
  --brand: #0f766e;
  --brand-strong: #115e59;
  --danger: #b42318;
  --warn: #a15c07;
  --ok: #147d3f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  min-height: 36px;
  padding: 0 12px;
}

button:hover {
  border-color: var(--brand);
}

button.primary {
  background: var(--brand);
  border-color: var(--brand);
  color: white;
}

button.primary:hover {
  background: var(--brand-strong);
}

button.ghost {
  background: transparent;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  min-height: 36px;
  padding: 8px 10px;
  background: white;
}

textarea {
  min-height: 92px;
  resize: vertical;
}

label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}

.hidden {
  display: none !important;
}

.muted {
  color: var(--muted);
}

.error {
  color: var(--danger);
  min-height: 20px;
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-panel {
  width: min(420px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
}

.login-panel h1 {
  margin: 0 0 22px;
  font-size: 24px;
}

.stack {
  display: grid;
  gap: 12px;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 220px 1fr;
}

.sidebar {
  background: #18202b;
  color: white;
  padding: 20px 14px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 24px;
}

.sidebar h1 {
  font-size: 20px;
  margin: 0 0 8px;
}

.sidebar .muted {
  color: #b5c0ce;
  margin: 0;
  font-size: 13px;
}

nav {
  display: grid;
  align-content: start;
  gap: 8px;
}

.nav {
  border-color: transparent;
  background: transparent;
  color: #d7dde6;
  text-align: left;
}

.nav.active,
.nav:hover {
  background: #263243;
  color: white;
}

.content {
  min-width: 0;
  padding: 22px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.topbar h2 {
  margin: 0 0 4px;
  font-size: 22px;
}

.topbar p {
  margin: 0;
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(8, minmax(110px, 0.72fr)) 90px;
  gap: 10px;
  margin-bottom: 14px;
}

.workflow-rail {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.workflow-step {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 12px;
  align-items: center;
  gap: 8px;
  min-height: 66px;
  padding: 8px 10px;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  text-align: left;
}

.workflow-step:hover,
.workflow-step.active {
  border-bottom-color: var(--brand);
  background: #eef7f5;
}

.workflow-step strong,
.workflow-step small {
  display: block;
}

.workflow-step strong {
  font-size: 14px;
}

.workflow-step small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.workflow-index {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.workflow-step.active .workflow-index {
  border-color: var(--brand);
  background: var(--brand);
  color: white;
}

.workflow-arrow {
  color: #9aa7b6;
  font-size: 20px;
}

.workbench-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(110px, 1fr));
  gap: 1px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  background: var(--line);
}

.workbench-metric {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  border: 0;
  border-radius: 0;
  background: var(--panel);
}

.workbench-metric span {
  color: var(--muted);
  font-size: 12px;
}

.workbench-metric strong {
  font-size: 20px;
}

.workbench-metric.urgent strong {
  color: var(--danger);
}

.bulkbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: -4px 0 14px;
}

.bulk-select-page {
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid #cddde2;
  border-radius: 6px;
  background: #ffffff;
  color: #334957;
  font-weight: 700;
}

.bulk-select-page input {
  width: 17px;
  height: 17px;
  min-height: 17px;
}

.table-loading,
.table-error {
  min-height: 180px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  border: 1px solid #dbe5e9;
  border-radius: 8px;
  background: #ffffff;
  color: #647986;
}

.table-error strong {
  color: #bd3c45;
}

.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
}

.layer-tabs,
.pool-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: -2px 0 12px;
}

.layer-tab,
.pool-tab {
  background: var(--panel);
  border-color: var(--line);
  color: var(--text);
}

.layer-tab.active,
.pool-tab.active {
  background: var(--brand);
  border-color: var(--brand);
  color: white;
}

.layer-tab b,
.pool-tab b {
  margin-left: 6px;
}

.quota {
  align-self: center;
  color: var(--muted);
  font-size: 13px;
}

.pager .actions {
  margin-left: auto;
}

.page-controls,
.page-numbers,
.page-jump {
  display: flex;
  align-items: center;
  gap: 6px;
}

.page-controls {
  margin-left: auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.page-number {
  min-width: 34px;
  padding-inline: 8px;
  font-variant-numeric: tabular-nums;
}

.page-number.active {
  border-color: var(--brand);
  background: var(--brand);
  color: #ffffff;
}

.page-ellipsis {
  min-width: 20px;
  text-align: center;
  color: var(--muted);
}

.page-jump {
  margin-left: 6px;
  white-space: nowrap;
}

.page-jump input {
  width: 64px;
  min-width: 64px;
  padding: 7px 8px;
  text-align: center;
}

.pager-bottom {
  margin-top: 14px;
  margin-bottom: 0;
}

@media (max-width: 760px) {
  .pager {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-controls {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
  }

  .page-numbers {
    max-width: 100%;
    overflow-x: auto;
  }
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(470px, 510px);
  gap: 16px;
  align-items: start;
}

.creator-list-pane {
  min-width: 0;
}

.creator-list-pager {
  min-height: 38px;
  padding-right: 4px;
}

.detail,
.table,
.metric {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.detail {
  padding: 16px;
  position: sticky;
  top: 18px;
  max-height: calc(100vh - 36px);
  overflow-y: auto;
}

.detail h3 {
  margin: 0 0 12px;
}

.table {
  overflow: hidden;
}

.row,
.head {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.7fr 0.8fr 0.8fr 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.head {
  background: #eef2f6;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.row:last-child {
  border-bottom: 0;
}

.row:hover {
  background: #f9fbfc;
}

.creator-row,
.creator-head {
  grid-template-columns: 34px minmax(190px, 1.15fr) minmax(175px, 0.9fr) 0.45fr 0.58fr minmax(130px, 0.75fr) 0.52fr minmax(210px, 1fr);
}

.resolve-row,
.resolve-head {
  grid-template-columns: minmax(180px, 1fr) 0.55fr 0.7fr 0.55fr minmax(320px, 1.35fr) 0.8fr;
}

.outbound-row,
.outbound-head {
  grid-template-columns: 110px 120px 90px minmax(180px, 1fr) 155px 155px 105px 72px minmax(210px, 1.1fr);
}

.outbound-stat-row,
.outbound-stat-head {
  grid-template-columns: minmax(130px, 1fr) repeat(5, 90px) 125px 90px;
}

.outbound-seat-row,
.outbound-seat-head {
  grid-template-columns: minmax(110px, 0.8fr) minmax(120px, 0.8fr) 70px minmax(150px, 1fr) 90px 125px 100px 70px;
}

.user-row,
.user-head {
  grid-template-columns: minmax(100px, 0.8fr) minmax(120px, 0.8fr) 0.45fr minmax(170px, 1fr) 0.65fr 0.65fr 0.65fr;
}

.user-row input,
.outbound-seat-row > input {
  min-height: 34px;
  padding: 6px 8px;
}

.checkbox-control {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  color: var(--text);
  font-size: 13px;
}

.checkbox-control input {
  width: 16px;
  height: 16px;
  min-height: 16px;
  padding: 0;
}

.outbound-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.recording-player {
  flex-basis: 100%;
  min-width: 0;
}

.recording-player audio {
  display: block;
  width: 100%;
  max-width: 260px;
  height: 34px;
}

.outbound-commandbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.outbound-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
}

.outbound-tab {
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  min-height: 42px;
}

.outbound-tab.active {
  border-bottom-color: var(--brand);
  color: var(--brand-strong);
  font-weight: 700;
}

.outbound-account {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 5px;
}

.outbound-filter-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(145px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.outbound-filter-grid label {
  min-width: 0;
}

.outbound-filter-actions {
  display: flex;
  align-items: end;
  gap: 8px;
  grid-column: span 2;
}

.outbound-filter-actions button {
  min-width: 72px;
  flex: 0 0 auto;
  white-space: nowrap;
}

.outbound-stats-filters {
  display: grid;
  grid-template-columns: minmax(160px, 0.8fr) minmax(180px, 1fr) minmax(180px, 1fr) 120px;
  gap: 10px;
  margin-bottom: 14px;
}

.outbound-table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: 8px;
}

.outbound-call-table {
  min-width: 1380px;
}

.outbound-stats-table {
  min-width: 900px;
}

.outbound-seat-table {
  min-width: 1080px;
}

.outbound-empty {
  padding: 24px 16px;
  text-align: center;
}

.call-failure {
  color: var(--danger) !important;
  white-space: normal;
}

.seat-report-control span {
  color: inherit;
}

.compact-toolbar {
  grid-template-columns: minmax(150px, 0.4fr) minmax(150px, 0.4fr) minmax(160px, 0.4fr);
}

.resolve-batch-toolbar {
  grid-template-columns: minmax(130px, 0.7fr) minmax(150px, 0.8fr) minmax(190px, 1fr) minmax(150px, 0.8fr);
}

.resolve-toolbar {
  grid-template-columns: minmax(150px, 1fr) minmax(130px, 0.7fr) 90px minmax(130px, auto) 90px 100px;
}

.match-fields {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.7fr;
  gap: 8px;
}

.match-fields input {
  min-height: 32px;
  padding: 6px 8px;
}

.creator-check {
  display: flex;
  align-items: center;
  justify-content: center;
}

.creator-check input,
.creator-head input[type="checkbox"] {
  width: 16px;
  min-height: 16px;
  height: 16px;
  padding: 0;
}

.title-cell {
  min-width: 0;
}

.creator-title-cell {
  margin: -6px -8px;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
}

.creator-title-cell:hover {
  background: #e8f4f2;
}

.creator-title-cell:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.creator-row.selected,
.creator-row.selected:hover {
  background: #eef7f5;
  box-shadow: inset 3px 0 0 var(--brand);
}

.title-cell strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.title-cell span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tag {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  background: #e8f4f2;
  color: var(--brand-strong);
  font-size: 12px;
  white-space: nowrap;
}

.tag.warn {
  background: #fff2dc;
  color: var(--warn);
}

.tag.ok {
  background: #e8f7ed;
  color: var(--ok);
}

.tag.bad {
  background: #fde8e7;
  color: var(--danger);
}

.contact-cell {
  display: grid;
  gap: 4px;
  min-width: 0;
  font-size: 13px;
}

.contact-line {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 6px;
  min-width: 0;
}

.contact-line b {
  color: var(--muted);
  font-weight: 500;
}

.contact-line span,
.contact-line a {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-line a {
  color: var(--brand-strong);
  text-decoration: none;
}

.contact-line a:hover {
  text-decoration: underline;
}

button.mini {
  min-height: 28px;
  padding: 0 8px;
  font-size: 12px;
  background: #f8fafc;
}

.mini-select {
  width: auto;
  min-height: 28px;
  padding: 3px 28px 3px 8px;
  font-size: 12px;
}

.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.actions button {
  min-height: 30px;
  padding: 0 9px;
  font-size: 13px;
}

.stage-cell {
  display: grid;
  justify-items: start;
  gap: 6px;
  min-width: 0;
}

.follow-date {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.follow-date.overdue {
  color: var(--danger);
  font-weight: 700;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.detail-grid {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 8px 10px;
  font-size: 13px;
}

.detail-grid b {
  color: var(--muted);
  font-weight: 500;
}

.detail-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: -4px 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.detail-summary {
  padding-bottom: 14px;
}

.claim-panel {
  display: grid;
  gap: 8px;
  margin: 0 -16px 14px;
  padding: 12px 16px;
  border-left: 3px solid var(--brand);
  background: #eef7f5;
}

.claim-panel span {
  color: var(--muted);
  font-size: 12px;
}

.workflow-section,
.workflow-details {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.section-heading h4 {
  margin: 0;
  font-size: 15px;
}

.section-heading > span {
  font-size: 11px;
}

.required-note {
  color: var(--warn);
}

.contact-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.contact-actions button {
  min-width: 0;
  padding: 0 7px;
  font-size: 12px;
}

.workflow-details summary {
  cursor: pointer;
  font-weight: 700;
}

.close-section {
  border-top-color: #9dcfc6;
}

.timeline {
  display: grid;
  gap: 0;
  margin-top: 10px;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 9px;
  padding: 0 0 16px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 0;
  left: 5px;
  width: 1px;
  background: var(--line);
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-dot {
  width: 11px;
  height: 11px;
  margin-top: 3px;
  border: 2px solid var(--brand);
  border-radius: 50%;
  background: white;
}

.timeline-item b {
  font-size: 13px;
}

.timeline-item p {
  margin: 4px 0;
  color: #364152;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.timeline-item small {
  color: var(--muted);
  font-size: 11px;
}

.form-grid {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.contact-form {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.form-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.form-heading h4 {
  margin: 0;
}

.field-label {
  display: grid;
  gap: 6px;
}

.field-label > span {
  color: var(--muted);
  font-size: 12px;
}

.field-label input:disabled {
  color: #475569;
  background: #f1f5f9;
  cursor: not-allowed;
}

.privacy-badge {
  padding: 3px 7px;
  border: 1px solid #f5c47b;
  color: #9a5a06;
  background: #fff8e8;
  border-radius: 4px;
  font-size: 12px;
}

.privacy-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.metric {
  padding: 16px;
}

.metric span {
  color: var(--muted);
  font-size: 13px;
}

.metric strong {
  display: block;
  margin-top: 8px;
  font-size: 26px;
}

.metric small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.middle-office-view {
  min-height: calc(100vh - 112px);
}

.middle-office-frame {
  display: block;
  width: 100%;
  min-height: calc(100vh - 112px);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f4f6f8;
}

@media (max-width: 1600px) {
  .toolbar {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  #creatorSearch {
    grid-column: span 2;
  }

  .split {
    grid-template-columns: minmax(0, 1fr);
  }

  .detail {
    position: static;
    max-height: none;
  }
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    grid-template-rows: auto auto auto;
  }

  nav {
    grid-template-columns: repeat(3, 1fr);
  }

  .split,
  .toolbar,
  .metrics {
    grid-template-columns: 1fr;
  }

  #creatorSearch {
    grid-column: auto;
  }

  .workflow-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workbench-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .outbound-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .outbound-stats-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail {
    position: static;
    max-height: none;
  }

  .row,
  .head {
    grid-template-columns: 1fr;
  }

  .middle-office-view,
  .middle-office-frame {
    min-height: 900px;
  }
}

@media (max-width: 620px) {
  .workflow-rail,
  .workbench-metrics,
  .contact-actions {
    grid-template-columns: 1fr;
  }

  .workflow-arrow {
    display: none;
  }

  .outbound-commandbar {
    align-items: stretch;
    flex-direction: column;
  }

  .outbound-tabs {
    overflow-x: auto;
  }

  .outbound-tab {
    flex: 0 0 auto;
  }

  .outbound-account {
    justify-content: space-between;
  }

  .outbound-filter-grid,
  .outbound-stats-filters {
    grid-template-columns: 1fr;
  }

  .outbound-filter-actions {
    align-items: stretch;
  }
}


/* CRM command-center theme */
:root {
  color-scheme: dark;
  --bg: #070b10;
  --panel: #0f171f;
  --panel-strong: #111c25;
  --panel-soft: #0b131a;
  --line: rgba(126, 165, 184, 0.2);
  --line-strong: rgba(50, 214, 255, 0.42);
  --text: #edf7fb;
  --muted: #8397a5;
  --brand: #27c9e8;
  --brand-strong: #5fe2f8;
  --green: #4ce6a1;
  --amber: #f6c75b;
  --danger: #ff6b6b;
  --warn: #f6c75b;
  --ok: #4ce6a1;
  --violet: #a78bfa;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

html {
  background: #070b10;
}

body {
  min-height: 100vh;
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(66, 147, 174, 0.052) 1px, transparent 1px),
    linear-gradient(90deg, rgba(66, 147, 174, 0.052) 1px, transparent 1px);
  background-size: 34px 34px;
  color: var(--text);
  overflow-x: hidden;
  animation: crm-grid-drift 32s linear infinite;
}

body::before {
  content: "";
  position: fixed;
  z-index: 100;
  top: -22vh;
  left: 0;
  right: 0;
  height: 18vh;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(50, 214, 255, 0.025) 78%, rgba(50, 214, 255, 0.14) 99%, transparent);
  animation: crm-scan 12s linear infinite;
}

body::after {
  content: "";
  position: fixed;
  z-index: 99;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(7, 11, 16, 0.46), transparent 12%, transparent 88%, rgba(7, 11, 16, 0.46));
}

button,
input,
select,
textarea {
  letter-spacing: 0;
}

input,
select,
textarea {
  border-color: rgba(125, 165, 184, 0.26);
  background: rgba(10, 18, 25, 0.92);
  color: #e8f4f8;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

input::placeholder,
textarea::placeholder {
  color: #607381;
}

select {
  color-scheme: dark;
}

input:hover,
select:hover,
textarea:hover {
  border-color: rgba(90, 174, 198, 0.46);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  background: rgba(12, 23, 31, 0.98);
  outline: none;
  box-shadow: 0 0 0 2px rgba(50, 214, 255, 0.1), 0 0 20px rgba(50, 214, 255, 0.07);
}

input[type="checkbox"] {
  accent-color: var(--brand);
}

button {
  position: relative;
  overflow: hidden;
  border-color: rgba(125, 165, 184, 0.26);
  background: rgba(14, 23, 31, 0.92);
  color: #dcebf1;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

button:hover {
  border-color: rgba(50, 214, 255, 0.68);
  color: #ffffff;
  background: rgba(20, 38, 49, 0.96);
  box-shadow: 0 0 18px rgba(50, 214, 255, 0.08);
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0);
}

button.primary {
  border-color: rgba(50, 214, 255, 0.72);
  background: linear-gradient(110deg, #127b91, #16a4ba 58%, #218f7a);
  color: #ffffff;
  box-shadow: 0 8px 22px rgba(11, 123, 144, 0.22), inset 0 1px rgba(255, 255, 255, 0.12);
}

button.primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
  transform: translateX(-130%);
  transition: transform 0.55s ease;
}

button.primary:hover {
  background: linear-gradient(110deg, #1594ab, #24bdd3 58%, #27a78d);
  box-shadow: 0 10px 26px rgba(26, 188, 211, 0.22);
}

button.primary:hover::after {
  transform: translateX(130%);
}

button.ghost {
  background: rgba(9, 16, 22, 0.48);
}

.error {
  color: var(--danger);
}

.muted {
  color: var(--muted);
}

.login-shell {
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(112deg, rgba(50, 214, 255, 0.075), transparent 38%),
    linear-gradient(294deg, rgba(76, 230, 161, 0.055), transparent 36%);
}

.login-shell::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 8%;
  right: 8%;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand), var(--green), transparent);
  box-shadow: 0 0 30px rgba(50, 214, 255, 0.28);
  animation: crm-signal 4.5s ease-in-out infinite;
}

.login-panel {
  position: relative;
  width: min(450px, 100%);
  padding: 30px;
  overflow: hidden;
  border-color: rgba(76, 178, 204, 0.32);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.025), transparent 42%),
    rgba(12, 20, 27, 0.96);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42), inset 0 1px rgba(255, 255, 255, 0.035);
  animation: crm-panel-in 0.58s ease both;
}

.login-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 160px;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--green), transparent);
  box-shadow: 0 0 14px rgba(50, 214, 255, 0.48);
}

.login-panel::after {
  content: "AUTH / SECURE ACCESS";
  position: absolute;
  right: 18px;
  top: 17px;
  color: rgba(126, 165, 184, 0.35);
  font-size: 10px;
  font-weight: 800;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.login-brand-mark,
.sidebar-brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border: 1px solid rgba(50, 214, 255, 0.5);
  border-radius: 6px;
  background: rgba(50, 214, 255, 0.08);
  color: var(--brand-strong);
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 0 22px rgba(50, 214, 255, 0.09);
}

.login-kicker,
.sidebar-kicker,
.view-code {
  color: var(--brand);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.login-brand p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.login-panel h1 {
  margin-bottom: 24px;
  color: #f4fbff;
  font-size: 26px;
  text-shadow: 0 0 24px rgba(50, 214, 255, 0.12);
}

.login-panel label {
  color: #9eb0bb;
}

.login-panel input {
  min-height: 42px;
}

.login-panel button.primary {
  min-height: 42px;
  margin-top: 4px;
}

.login-security {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(126, 165, 184, 0.14);
  color: var(--muted);
  font-size: 11px;
}

.login-security i,
.sidebar-status i,
.system-health i {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(76, 230, 161, 0.08), 0 0 12px rgba(76, 230, 161, 0.62);
  animation: crm-status-pulse 1.8s ease-in-out infinite;
}

.app-shell {
  position: relative;
  z-index: 1;
  grid-template-columns: 236px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 30;
  padding: 18px 13px;
  overflow-y: auto;
  border-right: 1px solid rgba(50, 214, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(50, 214, 255, 0.045), transparent 25%),
    #0b1219;
  box-shadow: 14px 0 36px rgba(0, 0, 0, 0.22);
  scrollbar-width: thin;
  scrollbar-color: rgba(50, 214, 255, 0.24) transparent;
}

.sidebar::after {
  content: "";
  position: absolute;
  top: 0;
  right: -1px;
  width: 1px;
  height: 180px;
  background: linear-gradient(180deg, var(--brand), transparent);
  box-shadow: 0 0 12px rgba(50, 214, 255, 0.42);
}

.sidebar-brand {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 4px 4px 17px;
  border-bottom: 1px solid rgba(126, 165, 184, 0.14);
}

.sidebar-brand-mark {
  width: 40px;
  height: 40px;
}

.sidebar h1 {
  margin: 3px 0 5px;
  color: #f0f8fb;
  font-size: 18px;
}

.sidebar .muted {
  color: #758a98;
  font-size: 11px;
}

.sidebar nav {
  gap: 5px;
}

.nav-group-label {
  display: block;
  padding: 15px 11px 5px;
  color: #728693;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.nav-group-label:first-child {
  padding-top: 9px;
}

.nav-group-management {
  margin-top: 7px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.feature-hidden {
  display: none !important;
}

.nav {
  min-height: 42px;
  padding: 0 11px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #9fb0bb;
}

.nav::before {
  content: "00";
  display: grid;
  place-items: center;
  width: 22px;
  height: 20px;
  flex: 0 0 auto;
  border: 1px solid rgba(126, 165, 184, 0.18);
  border-radius: 4px;
  color: #66808e;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0;
}

.nav[data-pool="public"]::before { content: "01"; }
.nav[data-pool="private"]::before { content: "02"; }
.nav[data-pool="intent"]::before { content: "03"; }
.nav[data-pool="closed"]::before { content: "04"; }
.nav[data-view="outbound"]::before { content: "05"; }
.nav[data-view="users"]::before { content: "06"; }

.nav.active,
.nav:hover {
  border-color: rgba(50, 214, 255, 0.2);
  background: linear-gradient(90deg, rgba(50, 214, 255, 0.13), rgba(50, 214, 255, 0.025));
  color: #f3fbff;
  box-shadow: inset 3px 0 0 var(--brand), 0 8px 20px rgba(0, 0, 0, 0.12);
}

.nav.active::before,
.nav:hover::before {
  color: var(--brand-strong);
  text-shadow: 0 0 12px rgba(50, 214, 255, 0.5);
}

.sidebar-footer {
  display: grid;
  gap: 10px;
}

.sidebar-status {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px;
  border: 1px solid rgba(126, 165, 184, 0.14);
  border-radius: 6px;
  background: rgba(5, 11, 16, 0.38);
  color: #8ea2af;
  font-size: 11px;
}

.sidebar-footer #logoutButton {
  width: 100%;
  color: #a8bac4;
}

.content {
  min-width: 0;
  padding: 18px 20px 24px;
}

.topbar {
  position: sticky;
  z-index: 24;
  top: 0;
  min-height: 78px;
  margin: -18px -20px 16px;
  padding: 16px 20px 12px;
  border-bottom: 1px solid rgba(126, 165, 184, 0.14);
  background: rgba(7, 12, 17, 0.88);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.12);
}

.topbar > div:first-child {
  min-width: 0;
}

.view-code {
  display: block;
  margin-bottom: 4px;
}

.topbar h2 {
  margin-bottom: 3px;
  color: #f2f9fc;
  font-size: 23px;
  text-shadow: 0 0 20px rgba(50, 214, 255, 0.1);
}

.topbar p {
  color: var(--muted);
  font-size: 13px;
}

.topbar-actions {
  display: flex;
  align-items: stretch;
  gap: 9px;
}

.system-health,
.shell-clock {
  min-width: 118px;
  padding: 8px 10px;
  border: 1px solid rgba(126, 165, 184, 0.16);
  border-radius: 6px;
  background: rgba(11, 19, 26, 0.72);
  display: grid;
  align-content: center;
  gap: 4px;
}

.system-health {
  grid-template-columns: 8px 1fr;
  align-items: center;
  color: var(--green);
  font-size: 11px;
}

.system-health i {
  grid-row: 1;
}

.shell-clock span {
  color: var(--muted);
  font-size: 10px;
}

.shell-clock strong {
  color: #f4fbff;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

#refreshButton {
  min-width: 118px;
}

#refreshButton::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border: 2px solid var(--brand);
  border-top-color: transparent;
  border-radius: 50%;
  vertical-align: -1px;
}

#refreshButton:hover::before {
  animation: crm-refresh 0.65s ease;
}

.view:not(.hidden) {
  animation: crm-view-in 0.4s ease both;
}

.toolbar {
  padding: 12px;
  border: 1px solid rgba(126, 165, 184, 0.17);
  border-radius: 6px;
  background: rgba(13, 21, 29, 0.86);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.02);
}

.workflow-rail {
  overflow: hidden;
  border: 1px solid rgba(126, 165, 184, 0.17);
  border-bottom-color: rgba(126, 165, 184, 0.17);
  border-radius: 6px;
  background: rgba(11, 19, 26, 0.82);
}

.workflow-step {
  min-height: 70px;
  border-right: 1px solid rgba(126, 165, 184, 0.1);
  border-bottom: 0;
  background: transparent;
}

.workflow-step:last-child {
  border-right: 0;
}

.workflow-step:hover,
.workflow-step.active {
  border-bottom-color: transparent;
  background: linear-gradient(180deg, rgba(50, 214, 255, 0.1), rgba(50, 214, 255, 0.025));
  box-shadow: inset 0 -2px 0 var(--brand);
}

.workflow-step strong {
  color: #dcebf1;
}

.workflow-index {
  border-color: rgba(126, 165, 184, 0.26);
  background: #0a1218;
}

.workflow-step.active .workflow-index {
  border-color: var(--brand);
  background: rgba(50, 214, 255, 0.14);
  color: var(--brand-strong);
  box-shadow: 0 0 15px rgba(50, 214, 255, 0.12);
}

.workflow-arrow {
  color: #506774;
}

.workbench-metrics {
  gap: 8px;
  border: 0;
  background: transparent;
}

.workbench-metric {
  position: relative;
  min-height: 62px;
  padding: 0 13px;
  overflow: hidden;
  border: 1px solid rgba(126, 165, 184, 0.17);
  border-radius: 6px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.018), transparent 45%),
    rgba(14, 23, 31, 0.9);
}

.workbench-metric::before,
.metric::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 58%;
  height: 1px;
  background: linear-gradient(90deg, var(--brand), transparent);
  box-shadow: 0 0 10px rgba(50, 214, 255, 0.3);
}

.workbench-metric:hover,
.workbench-metric.active {
  border-color: rgba(50, 214, 255, 0.5);
  background: rgba(18, 34, 44, 0.94);
}

.workbench-metric strong {
  color: #f5fbfd;
  font-variant-numeric: tabular-nums;
}

.workbench-metric.urgent {
  border-color: rgba(255, 107, 107, 0.32);
}

.workbench-metric.urgent::before {
  background: linear-gradient(90deg, var(--danger), transparent);
}

.bulkbar,
.pager {
  color: var(--muted);
}

.layer-tabs,
.pool-tabs {
  gap: 6px;
}

.layer-tab,
.pool-tab {
  background: rgba(12, 21, 28, 0.86);
  color: #a7bac4;
}

.layer-tab.active,
.pool-tab.active {
  border-color: rgba(50, 214, 255, 0.62);
  background: rgba(50, 214, 255, 0.12);
  color: var(--brand-strong);
  box-shadow: 0 0 16px rgba(50, 214, 255, 0.08), inset 0 -2px 0 var(--brand);
}

.quota {
  padding: 8px 10px;
  border-left: 1px solid rgba(126, 165, 184, 0.17);
}

.detail,
.table,
.metric {
  position: relative;
  border-color: rgba(126, 165, 184, 0.18);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.016), transparent 46%),
    rgba(14, 23, 31, 0.94);
  box-shadow: var(--shadow), inset 0 1px rgba(255, 255, 255, 0.022);
}

.table {
  scrollbar-width: thin;
  scrollbar-color: rgba(50, 214, 255, 0.28) rgba(6, 12, 17, 0.8);
}

.head {
  background: #111d26;
  color: #91a5b1;
  box-shadow: inset 0 -1px rgba(50, 214, 255, 0.1);
}

.row,
.head {
  border-bottom-color: rgba(126, 165, 184, 0.13);
}

.row {
  background: rgba(11, 19, 26, 0.24);
  transition: background 0.16s ease, box-shadow 0.16s ease;
}

.row:nth-child(odd) {
  background: rgba(20, 31, 40, 0.2);
}

.row:hover {
  background: rgba(50, 214, 255, 0.045);
  box-shadow: inset 2px 0 0 rgba(50, 214, 255, 0.5);
}

.creator-title-cell:hover {
  background: rgba(50, 214, 255, 0.08);
}

.creator-title-cell:focus-visible {
  outline-color: var(--brand);
}

.creator-row.selected,
.creator-row.selected:hover {
  background: rgba(50, 214, 255, 0.075);
  box-shadow: inset 3px 0 0 var(--brand);
}

.title-cell strong,
.detail h3,
.section-heading h4,
.form-heading h4 {
  color: #eaf4f8;
}

.title-cell span {
  color: #718895;
}

.contact-line b,
.detail-grid b,
.field-label > span {
  color: #7f95a2;
}

.contact-line a {
  color: var(--brand-strong);
}

.contact-line a:hover {
  color: #a3f2ff;
}

.tag,
.status-pill,
.capability-chip,
.pace-chip {
  border: 1px solid rgba(50, 214, 255, 0.22);
  background: rgba(50, 214, 255, 0.09);
  color: var(--brand-strong);
}

.tag.ok {
  border-color: rgba(76, 230, 161, 0.22);
  background: rgba(76, 230, 161, 0.09);
  color: var(--green);
}

.tag.warn {
  border-color: rgba(246, 199, 91, 0.22);
  background: rgba(246, 199, 91, 0.09);
  color: var(--amber);
}

.tag.bad {
  border-color: rgba(255, 107, 107, 0.22);
  background: rgba(255, 107, 107, 0.09);
  color: var(--danger);
}

button.mini {
  background: rgba(9, 17, 23, 0.88);
}

.detail {
  top: 94px;
  max-height: calc(100vh - 112px);
  scrollbar-width: thin;
  scrollbar-color: rgba(50, 214, 255, 0.28) rgba(6, 12, 17, 0.8);
}

.detail::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 55%;
  height: 1px;
  background: linear-gradient(90deg, var(--brand), transparent);
  box-shadow: 0 0 12px rgba(50, 214, 255, 0.32);
}

.detail-statusbar,
.workflow-section,
.workflow-details,
.contact-form {
  border-color: rgba(126, 165, 184, 0.14);
}

.claim-panel {
  border-left-color: var(--brand);
  background: rgba(50, 214, 255, 0.07);
}

.contact-actions button {
  min-height: 34px;
}

.workflow-details summary {
  color: #d9e8ee;
}

.close-section {
  border-top-color: rgba(76, 230, 161, 0.4);
}

.timeline-item::before {
  background: rgba(126, 165, 184, 0.2);
}

.timeline-dot {
  border-color: var(--brand);
  background: #0b141b;
  box-shadow: 0 0 10px rgba(50, 214, 255, 0.18);
}

.timeline-item p {
  color: #aebdc5;
}

.field-label input:disabled {
  color: #718692;
  background: #0b1218;
}

.privacy-badge {
  border-color: rgba(246, 199, 91, 0.38);
  background: rgba(246, 199, 91, 0.08);
  color: var(--amber);
}

.metric {
  overflow: hidden;
  min-height: 108px;
  animation: crm-card-in 0.46s ease both;
}

.metric:nth-child(2)::before { background: linear-gradient(90deg, var(--green), transparent); }
.metric:nth-child(3)::before { background: linear-gradient(90deg, var(--amber), transparent); }
.metric:nth-child(4)::before { background: linear-gradient(90deg, var(--violet), transparent); }
.metric:nth-child(5)::before { background: linear-gradient(90deg, var(--danger), transparent); }

.metric strong {
  color: #f4fbff;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 22px rgba(50, 214, 255, 0.1);
}

.metric small {
  color: var(--muted);
}

.outbound-commandbar {
  border-color: rgba(126, 165, 184, 0.16);
}

.outbound-tab {
  color: #8094a1;
}

.outbound-tab.active {
  border-bottom-color: var(--brand);
  color: var(--brand-strong);
  text-shadow: 0 0 12px rgba(50, 214, 255, 0.2);
}

.outbound-account {
  color: #aebfc7;
}

.outbound-filter-grid,
.outbound-stats-filters {
  padding: 12px;
  border: 1px solid rgba(126, 165, 184, 0.17);
  border-radius: 6px;
  background: rgba(13, 21, 29, 0.84);
}

.outbound-table-wrap {
  border: 1px solid rgba(126, 165, 184, 0.14);
  background: rgba(8, 14, 20, 0.56);
  scrollbar-width: thin;
  scrollbar-color: rgba(50, 214, 255, 0.28) rgba(6, 12, 17, 0.8);
}

.recording-player audio {
  color-scheme: dark;
  filter: saturate(0.75) brightness(0.82);
}

.outbound-empty {
  color: var(--muted);
}

.call-failure {
  color: var(--danger) !important;
}

.user-metrics {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  margin-bottom: 12px;
}

.account-create-form,
.user-bulkbar,
.user-account-card {
  border: 1px solid rgba(126, 165, 184, 0.17);
  border-radius: 6px;
  background: rgba(13, 21, 29, 0.84);
}

.account-create-form {
  margin-bottom: 12px;
  padding: 12px;
}

.account-create-main {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 9px;
}

.account-create-advanced {
  margin-top: 10px;
  border-top: 1px solid rgba(126, 165, 184, 0.13);
}

.account-create-advanced summary,
.user-card-details summary {
  cursor: pointer;
  list-style: none;
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 700;
}

.account-create-advanced summary {
  padding: 10px 0 0;
}

.account-create-advanced summary::before,
.user-card-details summary::before {
  content: "+";
  display: inline-grid;
  place-items: center;
  width: 17px;
  height: 17px;
  margin-right: 7px;
  border: 1px solid rgba(50, 214, 255, 0.28);
  border-radius: 3px;
  font-family: Consolas, monospace;
}

.account-create-advanced[open] summary::before,
.user-card-details[open] summary::before {
  content: "-";
}

.account-advanced-grid,
.user-package-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 9px;
  margin-top: 10px;
}

.account-advanced-grid label,
.user-package-grid label,
.user-card-line label,
.user-card-supplier label {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.account-advanced-grid label span,
.user-package-grid label span,
.user-card-line label span,
.user-card-supplier label span {
  color: var(--muted);
  font-size: 10px;
}

.account-create-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 10px;
}

.account-create-actions .primary {
  min-width: 150px;
}

.user-bulkbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  padding: 9px 12px;
}

.user-bulkbar .danger-action {
  margin-left: auto;
}

.danger-action {
  border-color: rgba(255, 107, 107, 0.34);
  background: rgba(255, 107, 107, 0.08);
  color: #ff9b9b;
}

.danger-action:hover:not(:disabled) {
  border-color: rgba(255, 107, 107, 0.68);
  background: rgba(255, 107, 107, 0.16);
  color: #ffd1d1;
}

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

.user-account-card {
  display: grid;
  grid-template-areas:
    "select identity line supplier state actions"
    ". details details details details details";
  grid-template-columns: 28px minmax(175px, 0.8fr) minmax(220px, 1fr) minmax(220px, 1fr) 170px 120px;
  gap: 10px;
  align-items: center;
  padding: 12px;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.user-account-card:hover,
.user-account-card.selected {
  border-color: rgba(50, 214, 255, 0.38);
  background: rgba(15, 28, 37, 0.94);
}

.user-account-card.selected {
  box-shadow: inset 3px 0 0 var(--brand);
}

.user-card-select {
  grid-area: select;
}

.user-card-select input {
  width: 16px;
  height: 16px;
  min-height: 16px;
}

.user-card-identity {
  grid-area: identity;
  display: grid;
  gap: 3px;
  min-width: 0;
}

.user-card-identity strong {
  color: #f3fbff;
  font-size: 14px;
}

.user-card-identity span {
  color: var(--brand-strong);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 12px;
}

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

.user-card-line {
  grid-area: line;
}

.user-card-supplier {
  grid-area: supplier;
}

.user-card-line,
.user-card-supplier {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.user-card-state {
  grid-area: state;
  display: grid;
  gap: 4px;
}

.user-card-state select,
.user-card-line input,
.user-card-supplier input,
.user-package-grid input {
  min-height: 32px;
  padding: 5px 7px;
  font-size: 11px;
}

.user-card-state .checkbox-control {
  min-height: 22px;
  font-size: 11px;
}

.user-card-actions {
  grid-area: actions;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.user-card-actions button {
  min-width: 0;
  padding-inline: 8px;
  white-space: nowrap;
}

.user-card-details {
  grid-area: details;
  min-width: 0;
  padding-top: 5px;
  border-top: 1px solid rgba(126, 165, 184, 0.1);
}

.user-package-grid {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
}

.user-notes-field {
  grid-column: span 2;
}

.middle-office-frame {
  border-color: rgba(50, 214, 255, 0.22);
  background: #070b10;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.3);
}

.toast-stack {
  position: fixed;
  z-index: 1000;
  top: 18px;
  right: 18px;
  width: min(360px, calc(100vw - 36px));
  display: grid;
  gap: 9px;
  pointer-events: none;
}

.toast {
  position: relative;
  min-height: 54px;
  padding: 12px 38px 12px 14px;
  overflow: hidden;
  border: 1px solid rgba(50, 214, 255, 0.28);
  border-radius: 6px;
  background: rgba(11, 20, 27, 0.96);
  color: #dfeef3;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  pointer-events: auto;
  animation: crm-toast-in 0.28s ease both;
}

.toast::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3px;
  background: var(--brand);
  box-shadow: 0 0 12px rgba(50, 214, 255, 0.45);
}

.toast.success::before { background: var(--green); }
.toast.warning::before { background: var(--amber); }
.toast.error::before { background: var(--danger); }

.toast strong {
  display: block;
  margin-bottom: 3px;
  color: #f3fbff;
  font-size: 12px;
}

.toast span {
  display: block;
  color: #a8bac4;
  font-size: 12px;
  line-height: 1.5;
}

.toast button {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  min-height: 26px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #79909e;
}

.toast.is-leaving {
  animation: crm-toast-out 0.2s ease both;
}

@keyframes crm-grid-drift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 34px 34px, 34px 34px; }
}

@keyframes crm-scan {
  from { transform: translateY(-24vh); }
  to { transform: translateY(130vh); }
}

@keyframes crm-signal {
  0%, 100% { opacity: 0.35; transform: scaleX(0.78); }
  50% { opacity: 1; transform: scaleX(1); }
}

@keyframes crm-status-pulse {
  0%, 100% { opacity: 0.58; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.15); }
}

@keyframes crm-panel-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes crm-view-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes crm-card-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes crm-refresh {
  to { transform: rotate(360deg); }
}

@keyframes crm-toast-in {
  from { opacity: 0; transform: translateX(18px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes crm-toast-out {
  to { opacity: 0; transform: translateX(18px); }
}

@media (min-width: 1401px) and (max-width: 1600px) {
  .split {
    grid-template-columns: minmax(0, 1fr) 360px;
  }

  .detail {
    position: sticky;
    top: 94px;
    max-height: calc(100vh - 112px);
  }
}

@media (max-width: 1750px) {
  .split {
    grid-template-columns: minmax(0, 1fr);
  }

  .detail {
    position: static;
    max-height: none;
  }

  .system-health {
    display: none;
  }
}

@media (max-width: 1400px) {
  .account-create-main,
  .account-advanced-grid {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
  }

  .user-account-card {
    grid-template-areas:
      "select identity identity identity"
      ". line supplier state"
      ". actions actions actions"
      ". details details details";
    grid-template-columns: 28px repeat(3, minmax(0, 1fr));
  }

  .user-card-actions {
    display: flex;
    justify-content: flex-end;
  }

  .user-card-actions button {
    min-width: 86px;
  }
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    overflow: visible;
    grid-template-rows: auto auto auto;
  }

  .sidebar nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .nav {
    justify-content: center;
  }

  .sidebar-footer {
    grid-template-columns: 1fr 1fr;
  }

  .topbar {
    position: static;
    margin-top: -18px;
  }

  .toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #creatorSearch {
    grid-column: span 2;
  }

  .table .head {
    display: none;
  }

  .row {
    grid-template-columns: 1fr !important;
    gap: 8px;
    margin: 10px;
    padding: 14px;
    border: 1px solid rgba(126, 165, 184, 0.16);
    border-radius: 6px;
    background: rgba(14, 23, 31, 0.9);
  }

  .creator-check {
    justify-content: flex-start;
  }

  .user-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .content {
    padding: 12px;
  }

  .topbar {
    margin: -12px -12px 14px;
    padding: 14px 12px;
    align-items: stretch;
    flex-direction: column;
  }

  .topbar-actions {
    display: grid;
    grid-template-columns: 1fr auto;
  }

  .shell-clock {
    min-width: 0;
  }

  #refreshButton {
    min-width: 0;
  }

  .workflow-rail,
  .workbench-metrics,
  .toolbar,
  .metrics,
  .contact-actions {
    grid-template-columns: 1fr;
  }

  #creatorSearch {
    grid-column: auto;
  }

  .workflow-step {
    border-right: 0;
    border-bottom: 1px solid rgba(126, 165, 184, 0.1);
  }

  .workflow-step:last-child {
    border-bottom: 0;
  }

  .sidebar nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav {
    justify-content: flex-start;
  }

  .sidebar-footer {
    grid-template-columns: 1fr;
  }

  .account-create-main,
  .account-advanced-grid,
  .user-package-grid {
    grid-template-columns: 1fr;
  }

  .account-create-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .user-account-card {
    grid-template-areas:
      "select identity"
      ". line"
      ". supplier"
      ". state"
      ". actions"
      ". details";
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .user-card-line,
  .user-card-supplier {
    grid-template-columns: 1fr;
  }

  .user-card-actions {
    justify-content: stretch;
  }

  .user-card-actions button {
    flex: 1 1 0;
  }

  .user-notes-field {
    grid-column: auto;
  }

  .login-panel {
    padding: 24px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High-contrast light SaaS theme */
:root {
  color-scheme: light;
  --bg: #f7f8fa;
  --panel: #ffffff;
  --panel-strong: #ffffff;
  --panel-soft: #f2f5f7;
  --line: #dbe3e8;
  --line-strong: #8ec8cf;
  --text: #182431;
  --muted: #607181;
  --brand: #0b8793;
  --brand-strong: #066b75;
  --green: #17865c;
  --amber: #a96708;
  --danger: #c83e46;
  --warn: #a96708;
  --ok: #17865c;
  --violet: #6e5aa5;
  --shadow: 0 8px 24px rgba(31, 50, 64, 0.08);
}

html {
  background: var(--bg);
}

body {
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(96, 124, 140, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 124, 140, 0.035) 1px, transparent 1px);
  background-size: 36px 36px;
  color: var(--text);
}

body::before {
  display: none;
}

body::after {
  display: none;
}

input,
select,
textarea {
  border-color: #cfd9e0;
  background: #ffffff;
  color: var(--text);
  box-shadow: 0 1px 2px rgba(31, 50, 64, 0.03);
}

input::placeholder,
textarea::placeholder {
  color: #8795a1;
}

select {
  color-scheme: light;
}

input:hover,
select:hover,
textarea:hover {
  border-color: #9eb7c2;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(11, 135, 147, 0.11);
}

button {
  border-color: #ccd7de;
  background: #ffffff;
  color: #334454;
  box-shadow: 0 1px 2px rgba(31, 50, 64, 0.04);
}

button:hover {
  border-color: #87b8c0;
  background: #f3f9fa;
  color: #173947;
  box-shadow: 0 5px 14px rgba(31, 50, 64, 0.08);
}

button.primary {
  border-color: #0b8793;
  background: #0b8793;
  color: #ffffff;
  box-shadow: 0 5px 14px rgba(11, 135, 147, 0.2);
}

button.primary:hover {
  border-color: #087580;
  background: #087580;
  box-shadow: 0 7px 18px rgba(11, 135, 147, 0.24);
}

button.primary::after {
  display: none;
}

button.ghost {
  background: #ffffff;
}

button,
input,
select,
textarea,
.toolbar,
.workflow-rail,
.workbench-metric,
.detail,
.table,
.metric,
.system-health,
.shell-clock,
.account-create-form,
.user-bulkbar,
.user-account-card,
.toast {
  border-radius: 8px;
}

.login-shell {
  background:
    linear-gradient(125deg, rgba(11, 135, 147, 0.08), transparent 42%),
    linear-gradient(310deg, rgba(92, 148, 109, 0.06), transparent 40%),
    var(--bg);
}

.login-panel {
  border-color: #d6e2e7;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 70px rgba(31, 50, 64, 0.14);
}

.login-panel h1,
.login-brand p {
  color: var(--text);
}

.login-security {
  border-color: #d8e4e8;
  background: #f4f8f9;
  color: var(--muted);
}

.app-shell {
  grid-template-columns: 236px minmax(0, 1fr);
}

.sidebar {
  border-right-color: #223748;
  background: #172532;
  box-shadow: 10px 0 28px rgba(31, 50, 64, 0.1);
}

.sidebar::after {
  background: linear-gradient(180deg, #35c2cc, transparent);
  box-shadow: 0 0 10px rgba(53, 194, 204, 0.28);
}

.sidebar-brand {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.sidebar h1 {
  color: #ffffff;
}

.sidebar .muted,
.sidebar-brand .muted {
  color: #a9b8c4;
}

.sidebar-kicker {
  color: #72d4db;
}

.nav {
  color: #c5d0d8;
}

.nav::before {
  border-color: rgba(255, 255, 255, 0.12);
  color: #8da0ad;
}

.nav.active,
.nav:hover {
  border-color: rgba(91, 205, 214, 0.28);
  background: rgba(65, 189, 198, 0.13);
  color: #ffffff;
  box-shadow: inset 3px 0 0 #46c2cb;
}

.nav.active::before,
.nav:hover::before {
  color: #8de2e7;
  text-shadow: none;
}

.sidebar-status {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.045);
  color: #bac7cf;
}

.sidebar-footer #logoutButton {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: #dbe4e9;
}

.content {
  background: transparent;
}

.topbar {
  border-bottom-color: #dce4e9;
  background: rgba(247, 248, 250, 0.94);
  box-shadow: 0 8px 20px rgba(31, 50, 64, 0.05);
}

.topbar h2 {
  color: var(--text);
  text-shadow: none;
}

.topbar p,
.shell-clock span {
  color: var(--muted);
}

.system-health,
.shell-clock {
  border-color: #d8e1e6;
  background: #ffffff;
}

.shell-clock strong {
  color: #253543;
}

.toolbar,
.workflow-rail,
.outbound-filter-grid,
.outbound-stats-filters,
.account-create-form,
.user-bulkbar,
.user-account-card {
  border-color: #dbe3e8;
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(31, 50, 64, 0.055);
}

.workflow-step {
  border-right-color: #e3e9ed;
  background: #ffffff;
}

.workflow-step:hover,
.workflow-step.active {
  background: #edf8f9;
  box-shadow: inset 0 -3px 0 var(--brand);
}

.workflow-step strong {
  color: #273846;
}

.workflow-step small {
  color: #6c7d8b;
}

.workflow-index {
  border-color: #cbd7de;
  background: #f4f7f9;
  color: #657785;
}

.workflow-step.active .workflow-index {
  border-color: #0b8793;
  background: #0b8793;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(11, 135, 147, 0.18);
}

.workflow-arrow {
  color: #a1afb9;
}

.workbench-metric {
  border-color: #dbe3e8;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(31, 50, 64, 0.055);
}

.workbench-metric:hover,
.workbench-metric.active {
  border-color: #8cc4cb;
  background: #f1fafb;
}

.workbench-metric span {
  color: #647583;
}

.workbench-metric strong,
.metric strong {
  color: #1c2b37;
  text-shadow: none;
}

.workbench-metric::before,
.metric::before {
  background: linear-gradient(90deg, #0b8793, transparent);
  box-shadow: none;
}

.layer-tab,
.pool-tab {
  border-color: #d5dfe5;
  background: #ffffff;
  color: #536675;
}

.layer-tab.active,
.pool-tab.active {
  border-color: #70b6be;
  background: #eaf7f8;
  color: #075f68;
  box-shadow: inset 0 -2px 0 var(--brand);
}

.quota {
  border-left-color: #dbe3e8;
}

.detail,
.table,
.metric {
  border-color: #dbe3e8;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.table,
.detail,
.outbound-table-wrap {
  scrollbar-color: #a7c6cc #eef2f4;
}

.head {
  background: #f1f5f7;
  color: #536675;
  box-shadow: inset 0 -1px #dbe3e8;
}

.row,
.head {
  border-bottom-color: #e2e8ec;
}

.row,
.row:nth-child(odd) {
  background: #ffffff;
}

.row:nth-child(even) {
  background: #fbfcfd;
}

.row:hover {
  background: #f1f9fa;
  box-shadow: inset 3px 0 0 #4eb5be;
}

.creator-title-cell:hover {
  background: #eaf6f7;
}

.creator-row.selected,
.creator-row.selected:hover {
  background: #e8f5f6;
  box-shadow: inset 3px 0 0 var(--brand);
}

.creator-head > :nth-child(-n + 2) {
  background: #eaf4f6;
}

.creator-head > :nth-child(2),
.creator-row > :nth-child(2) {
  border-right: 1px solid #d4e2e6;
}

.creator-row > :first-child,
.creator-row > :nth-child(2) {
  align-self: stretch;
  display: flex;
  align-items: center;
  background: #f6fafb;
}

.creator-row > :first-child {
  justify-content: center;
}

.creator-row > .creator-title-cell {
  margin: -10px -8px;
  padding: 10px 8px;
  border-radius: 0;
}

.creator-row.bulk-selectable > .creator-check,
.creator-row.bulk-selectable > .creator-title-cell {
  cursor: pointer;
}

.creator-row:hover > :first-child,
.creator-row:hover > :nth-child(2) {
  background: #eaf6f7;
}

.creator-row.bulk-selected,
.creator-row.bulk-selected:hover {
  background: #edf8f9;
  box-shadow: inset 3px 0 0 var(--brand);
}

.creator-row.bulk-selected > :first-child,
.creator-row.bulk-selected > :nth-child(2) {
  background: #dff1f3;
}

.creator-check input,
.creator-head input[type="checkbox"] {
  cursor: pointer;
  accent-color: var(--brand);
}

.dm-review-section {
  border: 1px solid #cfe2e6;
  border-radius: 8px;
  padding: 14px;
  background: #f7fbfc;
}

.dm-commandbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
  padding: 16px 18px;
  border: 1px solid #dce7eb;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(31, 50, 64, 0.05);
}

.dm-commandbar > div:first-child {
  display: grid;
  gap: 4px;
}

.dm-commandbar span {
  color: #647683;
  font-size: 13px;
}

.assistant-status {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid #cfe1e5;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
}

.assistant-status.ready {
  color: #0b755b;
  border-color: #b8decf;
  background: #eef9f4;
}

.assistant-status.pending {
  color: #8b6517;
  border-color: #ead6a7;
  background: #fff9eb;
}

.dm-template-form {
  display: grid;
  grid-template-columns: minmax(140px, 0.7fr) minmax(130px, 0.55fr) minmax(150px, 0.7fr) minmax(320px, 2fr) auto;
  gap: 8px;
  margin-bottom: 10px;
  padding: 12px;
  border: 1px solid #dce7eb;
  border-radius: 10px;
  background: #ffffff;
}

.dm-template-form textarea {
  min-height: 40px;
  resize: vertical;
}

.dm-template-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.dm-template-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid #dbe6ea;
  border-radius: 8px;
  background: #ffffff;
}

.dm-template-card > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.dm-template-card span,
.dm-template-card p {
  color: #667887;
  font-size: 12px;
}

.dm-template-card p {
  margin: 0;
  line-height: 1.55;
}

.dm-template-card.inactive {
  opacity: 0.58;
}

.dm-filterbar {
  margin-bottom: 10px;
}

.dm-existing-message {
  padding: 11px 12px;
  border: 1px solid #d9e6e9;
  border-radius: 7px;
  background: #ffffff;
  color: #314552;
  line-height: 1.65;
  white-space: pre-wrap;
}

.dm-failure {
  margin: 8px 0;
  color: #a1443c;
  font-size: 12px;
}

.dm-confirm-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #405563;
  font-size: 13px;
}

.dm-confirm-row input {
  width: 16px;
  height: 16px;
  accent-color: var(--brand);
}

.history-section-priority {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid #d8e5e8;
  border-radius: 8px;
  background: #fbfdfd;
}

.history-section-priority .timeline {
  max-height: 280px;
  overflow-y: auto;
  padding-right: 4px;
}

.title-cell strong,
.detail h3,
.section-heading h4,
.form-heading h4,
.workflow-details summary {
  color: #172431;
}

.title-cell span,
.contact-line b,
.detail-grid b,
.field-label > span {
  color: #667887;
}

.contact-line a {
  color: #087b87;
}

.contact-line a:hover {
  color: #045b64;
}

.tag,
.status-pill,
.capability-chip,
.pace-chip {
  border-color: #b8dde1;
  background: #eaf7f8;
  color: #076873;
}

.tag.ok {
  border-color: #b8dfcd;
  background: #edf8f2;
  color: #11734d;
}

.tag.warn {
  border-color: #ead7ac;
  background: #fff7e8;
  color: #915b09;
}

.tag.bad {
  border-color: #edc1c4;
  background: #fff0f1;
  color: #b5353d;
}

button.mini {
  background: #ffffff;
}

.detail::before {
  background: linear-gradient(90deg, var(--brand), transparent);
  box-shadow: none;
}

.detail-statusbar,
.workflow-section,
.workflow-details,
.contact-form {
  border-color: #dfe6ea;
}

.claim-panel {
  border-left-color: var(--brand);
  background: #eef8f9;
}

.timeline-item::before {
  background: #dce4e9;
}

.timeline-dot {
  border-color: var(--brand);
  background: #ffffff;
  box-shadow: 0 0 0 3px #dff1f3;
}

.timeline-item p {
  color: #536675;
}

.field-label input:disabled {
  color: #778794;
  background: #f1f4f6;
}

.privacy-badge {
  border-color: #e6d2a5;
  background: #fff8e9;
  color: #905b09;
}

.metric small,
.outbound-empty,
.muted {
  color: var(--muted);
}

.outbound-tab {
  color: #647684;
}

.outbound-tab.active {
  border-bottom-color: var(--brand);
  color: var(--brand-strong);
  text-shadow: none;
}

.outbound-account {
  color: #536675;
}

.outbound-table-wrap {
  border-color: #dbe3e8;
  background: #ffffff;
}

.recording-player audio {
  color-scheme: light;
  filter: none;
}

.account-create-advanced,
.user-card-details {
  border-color: #e2e8ec;
}

.account-create-advanced summary,
.user-card-details summary {
  color: #076c76;
}

.account-create-advanced summary::before,
.user-card-details summary::before {
  border-color: #9acbd0;
}

.danger-action {
  border-color: #e6b6ba;
  background: #fff4f4;
  color: #b73139;
}

.danger-action:hover:not(:disabled) {
  border-color: #d66b72;
  background: #ffe9ea;
  color: #9e252d;
}

.user-account-card:hover,
.user-account-card.selected {
  border-color: #8cc4cb;
  background: #f3fafb;
}

.user-identity strong,
.user-card-identity strong,
.user-card-state strong {
  color: #172431;
}

.user-card-identity span {
  color: #087b85;
}

.user-card-state,
.user-card-line,
.user-card-supplier,
.user-card-details {
  color: #506472;
}

.toast {
  border-color: #d4dfe5;
  background: rgba(255, 255, 255, 0.98);
  color: var(--text);
  box-shadow: 0 14px 34px rgba(31, 50, 64, 0.15);
}

.modal,
.dialog {
  color: var(--text);
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    max-height: none;
    overflow: visible;
    box-shadow: none;
  }

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

  .nav-group-label {
    grid-column: 1 / -1;
  }

  .topbar {
    position: static;
    margin-top: -18px;
  }

  .row {
    border-color: #dbe3e8;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(31, 50, 64, 0.055);
  }
}

@media (max-width: 700px) {
  .sidebar nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topbar {
    margin: -12px -12px 14px;
  }
}

.helper-install-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(290px, 0.55fr);
  gap: 16px;
  max-width: 1180px;
}

.helper-install-panel,
.helper-install-aside {
  border: 1px solid #dbe4e9;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(31, 50, 64, 0.07);
}

.helper-install-panel {
  padding: 28px;
}

.helper-install-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

.helper-eyebrow {
  display: block;
  margin-bottom: 7px;
  color: #07808c;
  font-size: 11px;
  font-weight: 700;
}

.helper-install-heading h3,
.helper-install-aside h3 {
  margin: 0;
  color: #172431;
  letter-spacing: 0;
}

.helper-install-heading h3 {
  font-size: 25px;
}

.helper-install-heading p {
  max-width: 610px;
  margin: 9px 0 0;
  color: #617481;
  line-height: 1.7;
}

.helper-download-button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 0 18px;
  border: 1px solid #087f8a;
  border-radius: 8px;
  background: #0b8d98;
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 7px 16px rgba(11, 141, 152, 0.18);
}

.helper-download-button:hover {
  background: #07727c;
  color: #ffffff;
}

.helper-download-button.secondary {
  border-color: #cad9df;
  background: #ffffff;
  color: #176470;
  box-shadow: none;
}

.helper-download-button.secondary:hover {
  background: #f2f8f9;
  color: #0d5963;
}

@media (max-width: 1100px) {
  .dm-template-form,
  .dm-template-list {
    grid-template-columns: 1fr 1fr;
  }
}

.helper-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
  padding: 18px 0;
  border-top: 1px solid #e5ebef;
  border-bottom: 1px solid #e5ebef;
}

.helper-meta > div {
  padding: 0 18px;
  border-right: 1px solid #e5ebef;
}

.helper-meta > div:first-child {
  padding-left: 0;
}

.helper-meta > div:last-child {
  border-right: 0;
}

.helper-meta span,
.helper-support-block > span {
  display: block;
  margin-bottom: 5px;
  color: #758692;
  font-size: 12px;
}

.helper-meta strong {
  color: #263746;
  font-size: 14px;
}

.helper-step-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 28px 0;
  padding: 0;
  list-style: none;
}

.helper-step-list li {
  min-width: 0;
  padding-left: 16px;
  border-left: 2px solid #9fd0d5;
}

.helper-step-list li > span {
  display: block;
  margin-bottom: 7px;
  color: #07808c;
  font-size: 12px;
  font-weight: 800;
}

.helper-step-list strong {
  color: #233442;
}

.helper-step-list p {
  margin: 7px 0 0;
  color: #667986;
  font-size: 13px;
  line-height: 1.6;
}

.helper-install-note {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 14px 16px;
  border-left: 3px solid #0b8d98;
  background: #f2f9fa;
  color: #526774;
  line-height: 1.55;
}

.helper-install-note strong {
  flex: 0 0 auto;
  color: #17646c;
}

.helper-install-aside {
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.helper-checklist {
  display: grid;
  gap: 16px;
  margin: 24px 0;
  padding: 22px 0;
  border-top: 1px solid #e5ebef;
  border-bottom: 1px solid #e5ebef;
  list-style: none;
}

.helper-checklist li {
  display: flex;
  gap: 10px;
  align-items: center;
  color: #425664;
}

.helper-checklist i {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #27a06d;
  box-shadow: 0 0 0 4px #e7f6ef;
}

.helper-support-block {
  margin-top: auto;
}

.helper-support-block strong {
  color: #223542;
}

.helper-support-block p {
  margin: 8px 0 0;
  color: #677a87;
  font-size: 13px;
  line-height: 1.6;
}

@media (max-width: 980px) {
  .helper-install-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .helper-install-heading,
  .helper-install-note {
    align-items: stretch;
    flex-direction: column;
  }

  .helper-download-button {
    width: 100%;
  }

  .helper-meta,
  .helper-step-list {
    grid-template-columns: 1fr;
  }

  .helper-meta > div {
    padding: 12px 0;
    border-right: 0;
    border-bottom: 1px solid #e5ebef;
  }

  .helper-meta > div:last-child {
    border-bottom: 0;
  }
}

/* Employee custom dialer */
.outbound-dialpad-panel {
  display: grid;
  grid-template-columns: minmax(420px, 680px) minmax(280px, 360px);
  align-items: start;
  justify-content: center;
  gap: 18px;
  padding: 18px 0;
}

.outbound-dialpad-card,
.outbound-seat-card {
  border: 1px solid #dce4ea;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(31, 52, 67, 0.07);
}

.outbound-dialpad-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(260px, 1fr);
  gap: 32px;
  padding: 28px;
}

.outbound-dialpad-heading {
  padding-top: 4px;
}

.outbound-dialpad-heading h3,
.outbound-seat-card h3 {
  margin: 7px 0 10px;
  color: #1f3342;
  font-size: 20px;
  letter-spacing: 0;
}

.outbound-dialpad-heading p {
  margin: 0;
  color: #687b88;
  font-size: 13px;
  line-height: 1.7;
}

.custom-dial-form {
  display: grid;
  gap: 12px;
}

.custom-dial-form > label {
  color: #526674;
  font-size: 12px;
  font-weight: 700;
}

.custom-dial-input {
  display: grid;
  grid-template-columns: 52px 1fr;
  align-items: center;
  height: 48px;
  overflow: hidden;
  border: 1px solid #cbd8e1;
  border-radius: 7px;
  background: #f8fafb;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.custom-dial-input:focus-within {
  border-color: #2f6fed;
  box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.12);
}

.custom-dial-input > span {
  display: grid;
  height: 100%;
  place-items: center;
  border-right: 1px solid #dce4ea;
  color: #526674;
  font-weight: 700;
}

.custom-dial-input input {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #172b3a;
  font-size: 21px;
  font-variant-numeric: tabular-nums;
}

.custom-dial-input input:focus {
  outline: 0;
  box-shadow: none;
}

.custom-dial-keypad {
  display: grid;
  grid-template-columns: repeat(3, minmax(64px, 1fr));
  gap: 8px;
}

.custom-dial-keypad button {
  height: 46px;
  border: 1px solid #dce4ea;
  border-radius: 7px;
  background: #f8fafb;
  color: #223746;
  font-size: 17px;
  font-weight: 700;
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
}

.custom-dial-keypad button:hover {
  border-color: #9eb9dc;
  background: #eef4ff;
}

.custom-dial-keypad button:active {
  transform: translateY(1px);
}

.custom-dial-keypad .custom-dial-command {
  color: #617482;
  font-size: 13px;
  font-weight: 600;
}

.custom-dial-submit {
  width: 100%;
  min-height: 44px;
}

.outbound-seat-card {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.outbound-seat-summary {
  display: grid;
  gap: 0;
  margin: 0;
  border-top: 1px solid #e5ebef;
}

.outbound-seat-summary > div {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid #edf1f4;
}

.outbound-seat-summary dt {
  color: #7a8b96;
  font-size: 12px;
}

.outbound-seat-summary dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
  color: #263b49;
  font-size: 13px;
  font-weight: 700;
}

.outbound-seat-summary .seat-ready {
  color: #14815c;
}

.outbound-seat-summary .seat-blocked {
  color: #b24a47;
}

.custom-dial-status {
  display: grid;
  gap: 5px;
  padding: 13px 14px;
  border-left: 3px solid #8da3b2;
  background: #f4f7f9;
  color: #5f7481;
  font-size: 12px;
  line-height: 1.55;
}

.custom-dial-status strong {
  color: #2e4351;
}

.custom-dial-status.success {
  border-left-color: #24a06d;
  background: #edf8f3;
}

.custom-dial-status.warning {
  border-left-color: #d69a32;
  background: #fff8e8;
}

.custom-dial-status.error {
  border-left-color: #d85454;
  background: #fff1f1;
  color: #a54242;
}

@media (max-width: 1050px) {
  .outbound-dialpad-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .outbound-seat-card {
    grid-template-columns: minmax(180px, 0.7fr) minmax(280px, 1fr);
  }

  .outbound-seat-card > button,
  .custom-dial-status {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .outbound-dialpad-card,
  .outbound-seat-card {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .outbound-dialpad-panel {
    padding-top: 8px;
  }
}
