.page-tbw-cpanel {
  background: #eef2ef;
  color: #10231f;
}

.page-tbw-cpanel.is-embedded-cpanel {
  background: transparent;
}

.twc-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  padding-top: 88px;
}

.is-embedded-cpanel .twc-shell {
  min-height: 0;
  padding-top: 0;
}

.twc-sidebar {
  position: sticky;
  top: 88px;
  height: calc(100vh - 88px);
  padding: 24px;
  background: #10231f;
  color: #fff;
  overflow-y: auto;
}

.is-embedded-cpanel .twc-sidebar {
  top: 0;
  height: 100vh;
}

.twc-brand {
  display: block;
  margin-bottom: 28px;
  color: #fff;
  text-decoration: none;
}

.twc-brand span,
.twc-kicker,
.twc-command-card span,
.twc-side-card span,
.twc-sponsor-card span {
  display: block;
  color: #c09201;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.twc-brand strong {
  display: block;
  color: #fff;
  font-size: 22px;
  line-height: 1.1;
}

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

.twc-sidebar nav a {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
  color: #dbe5df;
  text-decoration: none;
  font-weight: 800;
}

.twc-sidebar nav a.is-active,
.twc-sidebar nav a:hover {
  color: #10231f;
  background: #f3d36d;
}

.twc-side-card {
  margin-top: 28px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
}

.twc-side-card p {
  margin: 7px 0 0;
  color: #dbe5df;
  line-height: 1.5;
}

.twc-main {
  min-width: 0;
  padding: 28px;
}

.twc-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: stretch;
  margin-bottom: 22px;
}

.twc-hero > div:first-child,
.twc-command-card,
.twc-panel,
.twc-metrics div {
  border: 1px solid rgba(15, 35, 31, 0.1);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(18, 25, 31, 0.08);
}

.twc-hero > div:first-child {
  padding: 32px;
}

.twc-hero h1 {
  max-width: 820px;
  margin: 0 0 16px;
  color: #10231f;
  font-size: 48px;
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: 0;
}

.twc-hero p {
  max-width: 850px;
  margin: 0;
  color: #4f5b55;
  font-size: 18px;
  line-height: 1.65;
}

.twc-command-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(16, 35, 31, 0.52), rgba(16, 35, 31, 0.96)),
    url("/assets/img/holding hands.jpg") center/cover no-repeat;
}

.twc-command-card strong {
  display: block;
  margin-top: 6px;
  color: #fff;
  font-size: 34px;
  line-height: 1.05;
}

.twc-command-card p {
  margin-top: 10px;
  color: #eef4ef;
}

.twc-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.twc-metrics div {
  padding: 18px;
}

.twc-address-callout {
  display: grid;
  gap: 4px;
  margin: 0 0 22px;
  padding: 14px 16px;
  border: 1px solid #e7d59a;
  border-left: 5px solid #c09201;
  border-radius: 8px;
  background: #fff9e6;
  color: #10231f;
}

.twc-address-callout strong {
  font-size: 15px;
}

.twc-address-callout span {
  color: #5a6961;
  line-height: 1.45;
}

.twc-address-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.twc-metrics span {
  display: block;
  color: #64746d;
  font-size: 13px;
  font-weight: 800;
}

.twc-metrics strong {
  display: block;
  margin: 4px 0;
  color: #10231f;
  font-size: 34px;
  line-height: 1;
}

.twc-metrics small {
  color: #68766f;
}

.twc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 22px;
}

.twc-grid-large {
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.55fr);
}

.twc-panel {
  padding: 24px;
}

.twc-line-window,
.twc-workflow-panel {
  margin-bottom: 28px;
  padding: 0;
}

.twc-line-window summary,
.twc-workflow-panel > summary {
  min-height: 74px;
}

.twc-line-window summary .twc-icon-button {
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: center;
  justify-self: end;
}

.twc-control-strip {
  margin-bottom: 22px;
}

.twc-line-picker {
  display: grid;
  gap: 6px;
  min-width: 280px;
  color: #64746d;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.twc-line-picker select {
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid #cfd7d0;
  border-radius: 8px;
  background: #fff;
  color: #10231f;
  font: inherit;
  text-transform: none;
}

.twc-line-edit-grid,
.twc-program-grid,
.twc-recording-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.twc-line-edit-grid label,
.twc-program-grid label,
.twc-recording-grid label {
  display: grid;
  gap: 6px;
  color: #10231f;
  font-weight: 800;
}

.twc-line-edit-grid input,
.twc-line-edit-grid select,
.twc-program-grid input,
.twc-program-grid select,
.twc-gateway-port-fields input,
.twc-gateway-port-fields select,
.twc-recording-grid input,
.twc-recording-grid select {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid #cfd7d0;
  border-radius: 8px;
  background: #fff;
}

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

.twc-action-row button {
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  background: #f3d36d;
  color: #10231f;
  font-weight: 800;
}

.twc-work-window {
  border: 1px solid #e3dfd2;
  border-radius: 8px;
  background: #fbfdfb;
  margin-top: 12px;
  overflow: hidden;
}

.twc-work-window summary {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 28px;
  gap: 12px;
  align-items: center;
  padding: 16px;
  cursor: pointer;
  list-style: none;
}

.twc-work-window summary::after {
  content: "+";
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: center;
  justify-self: end;
  color: #10231f;
  font-size: 24px;
  font-weight: 800;
}

.twc-work-window[open] summary::after {
  content: "-";
}

.twc-work-window summary::-webkit-details-marker {
  display: none;
}

.twc-work-window summary > span {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #10231f;
  background: #f3d36d;
  font-weight: 800;
  grid-column: 1;
  grid-row: 1 / span 2;
}

.twc-work-window summary strong,
.twc-work-window summary small {
  display: block;
}

.twc-work-window summary strong {
  color: #10231f;
  font-size: 18px;
  grid-column: 2;
  grid-row: 1;
}

.twc-work-window summary small {
  color: #66746d;
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
}

.twc-work-window[open] {
  background: #fff;
}

.twc-work-window[open] > :not(summary) {
  padding: 0 16px 16px;
}

.twc-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.twc-sub-panel-head {
  margin: 18px 0 10px;
}

.twc-sub-panel-head h2 {
  font-size: 18px;
}

.twc-panel h2 {
  margin: 0;
  color: #10231f;
  font-size: 26px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: 0;
}

.twc-icon-button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  color: #10231f;
  background: #f3d36d;
  font-size: 20px;
}

.twc-line-list,
.twc-manage-list {
  display: grid;
  gap: 12px;
}

.twc-empty-state {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 6px 12px;
  align-items: center;
  padding: 16px;
  border: 1px dashed #cfd8d1;
  border-radius: 8px;
  background: #f8fbf7;
  color: #53665c;
}

.twc-empty-state i {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #21483b;
  background: #e8f1ec;
  font-size: 20px;
}

.twc-empty-state strong {
  color: #10231f;
  font-size: 16px;
}

.twc-empty-state span {
  font-size: 13px;
  line-height: 1.45;
}

.twc-did-bridge,
.twc-outside-calling {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(280px, 1.4fr);
  gap: 14px;
  margin-bottom: 14px;
  padding: 16px;
  border: 1px solid #d6e0da;
  border-radius: 8px;
  background: #f4faf7;
}

.twc-did-bridge-copy h3 {
  margin: 4px 0 8px;
  color: #10231f;
  font-size: 18px;
  line-height: 1.25;
}

.twc-did-bridge-copy span {
  display: block;
  color: #5a6961;
  font-size: 13px;
  line-height: 1.45;
}

.twc-did-bridge-list {
  display: grid;
  gap: 8px;
}

.twc-did-bridge-list article {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid #e1e9e4;
  border-radius: 8px;
  background: #fff;
}

.twc-did-bridge-list strong {
  color: #10231f;
  font-size: 17px;
}

.twc-did-bridge-list span,
.twc-did-bridge-list small {
  color: #5a6961;
}

.twc-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  width: 100%;
  padding: 16px;
  border: 1px solid #e3dfd2;
  border-left: 5px solid #9fb6aa;
  border-radius: 8px;
  background: #fbfdfb;
  cursor: pointer;
  text-align: left;
}

.twc-line.is-primary {
  border-left-color: #c09201;
  background: #fffaf0;
  box-shadow: 0 0 0 3px rgba(192, 146, 1, 0.12);
}

.twc-line.is-save-error {
  border-left-color: #b84a3a;
  box-shadow: 0 0 0 3px rgba(184, 74, 58, 0.12);
}

.twc-line h3 {
  margin: 6px 0 4px;
  color: #10231f;
  font-size: 18px;
  font-weight: 800;
}

.twc-line p {
  margin: 0;
  color: #5a6961;
}

.twc-caller-id-summary {
  display: block;
  margin-top: 6px;
  color: #68766f;
  font-size: 12px;
  font-weight: 800;
}

.twc-line strong {
  color: #10231f;
}

.twc-line-main {
  min-width: 0;
}

.twc-node-runtime {
  display: grid;
  gap: 3px;
  max-width: 520px;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid #d8e5dd;
  border-radius: 8px;
  background: #f4faf7;
}

.twc-node-runtime strong {
  color: #10231f;
  font-size: 13px;
}

.twc-node-runtime span {
  color: #5a6961;
  font-size: 12px;
  line-height: 1.4;
}

.twc-node-runtime small {
  color: #6e7a75;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;
}

.twc-node-runtime.is-installed {
  border-color: #b8dac8;
  background: #edf8f1;
}

.twc-node-runtime.is-failover {
  border-color: #d7dce8;
  background: #f3f6fb;
}

.twc-node-runtime.is-available,
.twc-node-runtime.is-planned {
  border-color: #e5d8a8;
  background: #fff9e6;
}

.twc-line-number {
  display: block;
  color: #10231f;
  font-size: 24px;
  font-weight: 900;
  line-height: 1.12;
}

.twc-line-assignment {
  display: grid;
  min-width: 190px;
  justify-items: end;
  gap: 5px;
  text-align: right;
}

.twc-line-assignment small {
  color: #6a746f;
  font-size: 12px;
  font-weight: 700;
}

.twc-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  color: #10231f;
  background: #e7ece8;
  font-size: 12px;
  font-weight: 900;
}

.twc-status-pill.is-active {
  color: #0d3824;
  background: #ccebd9;
}

.twc-status-pill.is-internal {
  color: #163763;
  background: #d8e7fb;
}

.twc-status-pill.is-paused {
  color: #5d2430;
  background: #f4d4dc;
}

.twc-line-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.twc-wide-field {
  grid-column: 1 / -1;
}

.twc-inline-editor {
  display: none;
  width: 100%;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid #e7d8a5;
}

.twc-line.is-editing .twc-inline-editor {
  display: grid;
}

.twc-inline-editor label {
  display: grid;
  gap: 6px;
  color: #5b675f;
  font-size: 12px;
  font-weight: 800;
}

.twc-inline-editor input,
.twc-inline-editor select,
.twc-inline-editor textarea {
  width: 100%;
  border: 1px solid #d8d2bf;
  border-radius: 8px;
  padding: 10px;
  color: #10231f;
  background: #fff;
  font: inherit;
}

.twc-inline-editor textarea {
  resize: vertical;
}

.twc-credential-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #d8d2bf;
  border-radius: 8px;
  background: #fbf8ec;
}

.twc-gateway-port-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 10px;
}

.twc-gateway-port-grid article {
  display: grid;
  gap: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #d8d2bf;
  border-radius: 8px;
  background: #fffef8;
  cursor: pointer;
}

.twc-gateway-port-summary {
  display: grid;
  grid-template-columns: minmax(86px, 0.75fr) minmax(150px, 1.3fr) minmax(190px, 1.8fr) minmax(150px, 1.2fr) 42px;
  gap: 10px;
  align-items: center;
  min-height: 52px;
  padding: 10px 12px;
}

.twc-gateway-port-summary span {
  color: #163763;
  font-weight: 900;
}

.twc-gateway-port-summary small,
.twc-gateway-port-summary em {
  color: #64746d;
  font-size: 12px;
  font-style: normal;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.twc-port-toggle {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #d8d2bf;
  border-radius: 8px;
  background: #fff;
  color: #163763;
  cursor: pointer;
}

.twc-gateway-port-fields {
  display: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border-top: 1px solid #eee1bf;
  background: #fbf8ec;
  cursor: default;
}

.twc-gateway-port-grid article.is-port-open .twc-gateway-port-fields {
  display: grid;
}

.twc-gateway-port-grid article.is-port-open .twc-port-toggle {
  background: #163763;
  color: #fff;
  border-color: #163763;
}

.twc-gateway-port-fields label {
  display: grid;
  gap: 6px;
  color: #5b675f;
  font-size: 12px;
  font-weight: 800;
}

.twc-credential-panel strong {
  color: #10231f;
  font-size: 15px;
}

.twc-credential-panel small {
  color: #6a746f;
  font-weight: 700;
}

.twc-credential-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  align-items: end;
  gap: 12px;
}

.twc-save-note {
  align-self: end;
  color: #6a746f;
  font-size: 12px;
  font-weight: 800;
}

.twc-hunt-builder {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #e3dfd2;
  border-radius: 8px;
  background: #fbf7e9;
}

.twc-hunt-head,
.twc-hunt-member {
  display: grid;
  gap: 10px;
  align-items: center;
}

.twc-hunt-head {
  grid-template-columns: minmax(0, 1fr) auto;
}

.twc-hunt-head strong {
  color: #10231f;
}

.twc-hunt-members {
  display: grid;
  gap: 8px;
}

.twc-hunt-member {
  grid-template-columns: 34px minmax(180px, 1fr) minmax(90px, 140px) auto;
  padding: 10px;
  border: 1px solid #e6dec6;
  border-radius: 8px;
  background: #fff;
}

.twc-hunt-member > span {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #10231f;
  background: #f3d36d;
  font-weight: 900;
}

.twc-node-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.twc-node-tabs a {
  display: inline-flex;
  gap: 7px;
  min-height: 34px;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid #d8d2bf;
  border-radius: 8px;
  color: #10231f;
  background: #fff;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.twc-node-tabs a.is-active {
  border-color: #c09201;
  background: #fff4cc;
}

.twc-node-panel[hidden] {
  display: none !important;
}

.twc-node-panel.is-active {
  display: block;
}

.twc-node-map {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
  padding: 18px;
  border: 1px solid #dfd6bd;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 248, 228, 0.94), rgba(244, 249, 246, 0.94)),
    repeating-linear-gradient(90deg, rgba(16, 35, 31, 0.04) 0, rgba(16, 35, 31, 0.04) 1px, transparent 1px, transparent 44px);
}

.twc-node-map-copy {
  display: grid;
  max-width: 760px;
  gap: 6px;
}

.twc-node-map-copy span {
  color: #a27a00;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.twc-node-map-copy strong {
  color: #10231f;
  font-size: 24px;
  line-height: 1.14;
  font-weight: 900;
}

.twc-node-map-copy p {
  margin: 0;
  color: #5a6961;
  line-height: 1.55;
}

.twc-node-diagram {
  display: grid;
  grid-template-columns: minmax(150px, 0.9fr) minmax(90px, 0.55fr) minmax(180px, 1fr) minmax(90px, 0.55fr) minmax(160px, 0.9fr);
  gap: 12px;
  align-items: center;
  min-height: 250px;
}

.twc-diagram-stack {
  display: grid;
  gap: 12px;
}

.twc-diagram-cluster {
  display: grid;
  gap: 7px;
  min-height: 116px;
  align-content: center;
  justify-items: center;
  padding: 16px;
  border: 1px solid #d8d2bf;
  border-radius: 8px;
  background: #fff;
  text-align: center;
  box-shadow: 0 10px 22px rgba(16, 35, 31, 0.08);
}

.twc-diagram-cluster i {
  color: #a27a00;
  font-size: 30px;
}

.twc-diagram-cluster strong {
  color: #10231f;
  font-size: 16px;
  font-weight: 900;
}

.twc-diagram-cluster span {
  color: #5a6961;
  font-size: 12px;
  line-height: 1.35;
}

.twc-diagram-cluster.is-people {
  border-color: #b9c9c0;
  background: #f4f9f6;
}

.twc-diagram-cluster.is-local {
  min-height: 104px;
  border-color: #d6c072;
  background: #fffaf0;
}

.twc-diagram-cluster.is-fabric {
  border-color: #aabed5;
  background: #f2f7fd;
}

.twc-dc-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
  margin-top: 4px;
}

.twc-dc-stack span {
  padding: 5px 7px;
  border: 1px solid #b6c9df;
  border-radius: 8px;
  color: #163763;
  background: #fff;
  font-size: 11px;
  font-weight: 900;
}

.twc-diagram-path {
  position: relative;
  min-height: 58px;
  display: grid;
  align-items: center;
  justify-items: center;
  color: #48564f;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.twc-diagram-path::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  border-top: 3px solid #c09201;
}

.twc-diagram-path::after {
  content: "";
  position: absolute;
  right: 0;
  top: calc(50% - 6px);
  width: 12px;
  height: 12px;
  border-top: 3px solid #c09201;
  border-right: 3px solid #c09201;
  transform: rotate(45deg);
}

.twc-diagram-path.is-failover::before {
  border-top-style: dashed;
  border-top-color: #6f8dac;
}

.twc-diagram-path.is-failover::after {
  border-color: #6f8dac;
}

.twc-diagram-path span {
  position: relative;
  z-index: 1;
  max-width: 120px;
  padding: 4px 7px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
}

.twc-node-map-footer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.twc-node-map-footer span {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #e3dfd2;
  border-radius: 8px;
  color: #10231f;
  background: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 900;
}

.twc-node-policy {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.twc-node-policy article {
  display: grid;
  gap: 8px;
  min-height: 160px;
  align-content: start;
  padding: 16px;
  border: 1px solid #e3dfd2;
  border-radius: 8px;
  background: #fbfdfb;
}

.twc-node-policy i {
  color: #a27a00;
  font-size: 26px;
}

.twc-node-policy strong {
  color: #10231f;
  font-size: 16px;
  font-weight: 900;
}

.twc-node-policy span {
  color: #5a6961;
  font-size: 13px;
  line-height: 1.45;
}

.twc-feature-catalog {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.twc-feature-catalog article {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 3px 10px;
  align-items: start;
  padding: 13px;
  border: 1px solid #e3dfd2;
  border-radius: 8px;
  background: #fbfdfb;
}

.twc-feature-catalog i {
  grid-row: span 2;
  color: #1c7a5b;
  font-size: 20px;
}

.twc-feature-catalog strong {
  color: #10231f;
  font-size: 14px;
  font-weight: 900;
}

.twc-feature-catalog span {
  color: #66746d;
  font-size: 12px;
  line-height: 1.35;
}

.twc-routing-matrix {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid #dfd6bd;
  border-radius: 8px;
  background: #fffaf0;
}

.twc-routing-matrix-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: end;
}

.twc-routing-matrix-head span {
  display: block;
  color: #a27a00;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.twc-routing-matrix-head strong {
  display: block;
  color: #10231f;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 900;
}

.twc-routing-matrix-head small {
  max-width: 380px;
  color: #66746d;
  line-height: 1.35;
  text-align: right;
}

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

.twc-routing-status article {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid #e3dfd2;
  border-radius: 8px;
  background: #fff;
}

.twc-routing-status article.is-warning {
  border-color: #d8b2b8;
  background: #fff7f7;
}

.twc-routing-status span {
  color: #66746d;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.twc-routing-status strong {
  color: #10231f;
  font-size: 24px;
  line-height: 1;
  font-weight: 900;
}

.twc-routing-issues {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border: 1px solid #d8b2b8;
  border-radius: 8px;
  background: #fff7f7;
}

.twc-routing-issues small {
  color: #5d2430;
  font-weight: 800;
}

.twc-routing-table-wrap {
  max-height: 420px;
  overflow: auto;
  border: 1px solid #e3dfd2;
  border-radius: 8px;
  background: #fff;
}

.twc-routing-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  color: #10231f;
}

.twc-routing-table th,
.twc-routing-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #eee8d8;
  vertical-align: middle;
  font-size: 12px;
  line-height: 1.35;
}

.twc-routing-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: #5a6961;
  background: #fbfdfb;
  font-weight: 900;
  text-transform: uppercase;
}

.twc-routing-table td strong {
  font-size: 14px;
}

.twc-routing-table select {
  width: 100%;
  min-width: 210px;
  min-height: 34px;
  border: 1px solid #d8d2bf;
  border-radius: 8px;
  background: #fff;
  color: #10231f;
  font: inherit;
}

.twc-routing-table select.is-save-error {
  border-color: #b84a3a;
  box-shadow: 0 0 0 3px rgba(184, 74, 58, 0.12);
}

.twc-route-badge {
  display: inline-flex;
  margin-right: 7px;
  padding: 3px 7px;
  border-radius: 999px;
  color: #10231f;
  background: #e7ece8;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.twc-route-badge.is-auto,
.twc-route-badge.is-generated {
  color: #0d3824;
  background: #ccebd9;
}

.twc-route-badge.is-manual {
  color: #163763;
  background: #d8e7fb;
}

.twc-route-badge.is-critical {
  color: #5d2430;
  background: #f4d4dc;
}

.twc-emergency-panel {
  display: grid;
  grid-template-columns: 56px minmax(260px, 0.8fr) minmax(360px, 1.2fr);
  gap: 14px;
  align-items: start;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid #d8b2b8;
  border-left: 5px solid #b84a3a;
  border-radius: 8px;
  background: #fff7f7;
}

.twc-emergency-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  color: #5d2430;
  background: #f4d4dc;
  font-size: 24px;
}

.twc-emergency-copy {
  display: grid;
  gap: 6px;
}

.twc-emergency-copy span {
  color: #9b332b;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.twc-emergency-copy strong {
  color: #10231f;
  font-size: 20px;
  line-height: 1.18;
  font-weight: 900;
}

.twc-emergency-copy p {
  margin: 0;
  color: #5a6961;
  line-height: 1.45;
}

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

.twc-emergency-fields label {
  display: grid;
  gap: 6px;
  color: #5b675f;
  font-size: 12px;
  font-weight: 800;
}

.twc-emergency-fields input,
.twc-emergency-fields select {
  width: 100%;
  min-height: 38px;
  border: 1px solid #d8d2bf;
  border-radius: 8px;
  padding: 8px 10px;
  color: #10231f;
  background: #fff;
  font: inherit;
}

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

.twc-telecom-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border: 1px solid #e3dfd2;
  border-radius: 8px;
  background: #fbfdfb;
}

.twc-telecom-card header {
  display: flex;
  gap: 12px;
  align-items: center;
}

.twc-telecom-card i {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: #10231f;
  background: #f3d36d;
  font-size: 20px;
}

.twc-telecom-card strong {
  display: block;
  color: #10231f;
  font-size: 16px;
  font-weight: 900;
}

.twc-telecom-card header span,
.twc-telecom-card p {
  color: #66746d;
  font-size: 12px;
}

.twc-telecom-list {
  display: grid;
  gap: 8px;
  max-height: 300px;
  overflow: auto;
  padding-right: 4px;
}

.twc-telecom-list > div {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid #eee8d8;
  border-radius: 8px;
  background: #fff;
}

.twc-telecom-list span {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 8px;
  color: #10231f;
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.twc-telecom-list em {
  color: #66746d;
  font-style: normal;
  font-weight: 800;
}

.twc-telecom-list small {
  margin-top: 3px;
  color: #5a6961;
  font-size: 12px;
  line-height: 1.4;
}

.twc-inventory-status {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.twc-inventory-status article {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 14px;
  border: 1px solid #e3dfd2;
  border-radius: 8px;
  background: #fff;
}

.twc-inventory-status article.is-warning {
  border-color: #d9a626;
  background: #fff9e8;
}

.twc-inventory-status span {
  color: #66746d;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.twc-inventory-status strong {
  color: #10231f;
  font-size: 18px;
  font-weight: 900;
}

.twc-inventory-status small {
  color: #5a6961;
  font-size: 12px;
  line-height: 1.35;
}

.twc-bundle-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  margin-top: 10px;
  padding: 14px;
  border: 1px solid #c8d8d1;
  border-radius: 8px;
  background: #f4faf7;
}

.twc-bundle-status strong {
  color: #10231f;
  font-weight: 900;
}

.twc-bundle-status span {
  color: #1f5f4b;
  font-size: 12px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.twc-bundle-status small {
  color: #5a6961;
  font-size: 12px;
}

.twc-manage-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e3dfd2;
}

.twc-delete-button {
  border: 1px solid #c0392b;
  border-radius: 8px;
  padding: 8px 14px;
  background: #fff;
  color: #c0392b;
  font-weight: 800;
}

.twc-footer-button {
  border: 0;
  border-radius: 8px;
  padding: 8px 14px;
  background: #f3d36d;
  color: #10231f;
  font-weight: 800;
  text-decoration: none;
}

.twc-footer-button.is-secondary {
  border: 1px solid #c8d8d1;
  background: #fff;
  color: #34443d;
}

.twc-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e3dfd2;
}

.twc-modal-actions .twc-footer-button {
  padding: 10px 20px;
}

.twc-protected-note {
  color: #8a9089;
  font-style: italic;
  font-size: 12px;
}

.is-hidden {
  display: none;
}

.twc-line-actions button,
.twc-line-actions a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border: 1px solid #c09201;
  border-radius: 8px;
  color: #10231f;
  background: #fff;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.twc-badge {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 999px;
  color: #10231f;
  background: #f3d36d;
  font-size: 12px;
  font-weight: 800;
}

.twc-sponsor-card button {
  border: 0;
  border-radius: 8px;
  color: #10231f;
  background: #f3d36d;
  font-weight: 800;
  padding: 10px;
}

.twc-people,
.twc-rules {
  display: grid;
  gap: 12px;
}

.twc-people div {
  padding: 14px;
  border: 1px solid #e3dfd2;
  border-radius: 8px;
  background: #fbfdfb;
}

.twc-person {
  width: 100%;
  padding: 14px;
  border: 1px solid #c09201;
  border-radius: 8px;
  background: #fff8e4;
  text-align: left;
}

.twc-people strong,
.twc-people span {
  display: block;
}

.twc-people span {
  color: #5a6961;
}

.twc-rules label {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 13px;
  border: 1px solid #e3dfd2;
  border-radius: 8px;
  background: #fbfdfb;
  font-weight: 800;
}

.twc-rules input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #c09201;
}

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

.twc-rules-note {
  display: block;
  margin-top: 14px;
  padding: 14px;
  border-left: 5px solid #c09201;
  border-radius: 8px;
  background: #fff8e4;
  color: #4f5b55;
  line-height: 1.55;
  font-weight: 700;
}

.twc-rules > .twc-rule-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 13px;
  border: 1px solid #e3dfd2;
  border-radius: 8px;
  background: #fbfdfb;
}

.twc-rule-row .twc-rule-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: none;
  background: transparent;
  font-weight: 800;
  flex: 1 1 auto;
}

.twc-rule-row .twc-rule-fields {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.twc-rule-row .twc-rule-fields label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: none;
  background: transparent;
  font-weight: 700;
  font-size: 13px;
  color: #4f5b55;
  white-space: nowrap;
}

.twc-rule-row .twc-rule-fields input,
.twc-rule-row .twc-rule-fields select {
  width: auto;
  height: auto;
  padding: 6px 8px;
  border: 1px solid #e3dfd2;
  border-radius: 6px;
  font: inherit;
  font-size: 13px;
}

.twc-sponsor-card {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border-radius: 8px;
  background: #10231f;
  color: #fff;
}

.twc-sponsor-card strong {
  display: block;
  margin-top: 6px;
  color: #fff;
  font-size: 26px;
}

.twc-sponsor-card p {
  margin: 6px 0 0;
  color: #dbe5df;
}

.twc-permission-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.twc-permission-grid label {
  display: grid;
  gap: 7px;
  color: #64746d;
  font-weight: 800;
}

.twc-permission-grid span {
  font-size: 12px;
  text-transform: uppercase;
}

.twc-permission-grid select {
  min-height: 40px;
  border: 1px solid #cfd7d0;
  border-radius: 8px;
  background: #fff;
  color: #10231f;
}

.twc-invoice {
  display: grid;
  gap: 14px;
}

.twc-invoice-section {
  display: grid;
  gap: 10px;
}

.twc-invoice-section h3 {
  margin: 0;
  color: #10231f;
  font-size: 16px;
  font-weight: 900;
}

.twc-invoice-line {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(0, 1.6fr) 92px;
  gap: 12px;
  align-items: start;
}

.twc-invoice-head {
  display: none;
}

.twc-invoice-line {
  padding: 14px 12px;
  border: 1px solid #e3dfd2;
  border-radius: 8px;
  background: #fbfdfb;
}

.twc-invoice-line strong,
.twc-invoice-line small,
.twc-invoice-total span,
.twc-invoice-total strong {
  display: block;
}

.twc-invoice-line small {
  margin-top: 3px;
  color: #66746d;
}

.twc-invoice-base,
.twc-account-total,
.twc-line-total {
  color: #10231f;
  font-weight: 800;
}

.twc-invoice-base {
  color: #64746d;
}

.twc-account-total,
.twc-line-total {
  padding: 8px 10px;
  border-radius: 8px;
  background: #fff8e4;
  text-align: center;
}

.twc-invoice-account {
  border-color: #d6c072;
  background: #fffaf0;
}

.twc-account-total {
  background: #f3d36d;
}

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

.twc-invoice-summary span {
  color: #34433c;
  font-size: 13px;
  font-weight: 800;
}

.twc-invoice-summary span.is-muted {
  color: #8a9089;
  font-weight: 700;
}

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

.twc-option-grid label {
  display: flex;
  gap: 7px;
  align-items: center;
  color: #34433c;
  font-size: 13px;
  font-weight: 800;
}

.twc-option-grid select {
  min-height: 32px;
  min-width: 88px;
  border: 1px solid #cfd7d0;
  border-radius: 6px;
  background: #fff;
  color: #17201b;
  font-weight: 800;
}

.twc-option-grid input {
  width: 16px;
  height: 16px;
  accent-color: #c09201;
}

.twc-invoice-total {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border-radius: 8px;
  color: #fff;
  background: #10231f;
}

.twc-invoice-total span {
  color: #dbe5df;
  font-weight: 800;
}

.twc-invoice-total strong {
  color: #f4d36b;
  font-size: 34px;
  line-height: 1;
}

.twc-render-marker {
  padding: 10px 18px;
  color: #7a837d;
  background: #f7f7f3;
  font-size: 12px;
  text-align: center;
}

.twc-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(12, 20, 28, 0.68);
}

.twc-modal.is-open {
  display: flex;
}

.twc-modal-card {
  width: min(680px, 100%);
  max-height: min(720px, 90vh);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
  position: relative;
}

.twc-modal-body {
  overflow-y: auto;
  padding: 26px;
}

.twc-modal-card h2 {
  margin: 4px 0 18px;
  color: #10231f;
  font-size: 30px;
  line-height: 1.15;
  font-weight: 800;
}

.twc-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  color: #10231f;
  background: #f3d36d;
  font-size: 24px;
  line-height: 1;
}

.twc-modal-list {
  display: grid;
  gap: 10px;
}

.twc-modal-list a,
.twc-modal-list button {
  display: block;
  width: 100%;
  padding: 14px;
  border: 1px solid #e3dfd2;
  border-radius: 8px;
  background: #fbfdfb;
  color: #10231f;
  text-align: left;
  text-decoration: none;
}

.twc-modal-list strong,
.twc-modal-list span {
  display: block;
}

.twc-modal-list span {
  margin-top: 4px;
  color: #66746d;
}

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

  .twc-sidebar {
    position: static;
    height: auto;
  }

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

  .twc-hero,
  .twc-grid,
  .twc-grid-large,
  .twc-node-diagram,
  .twc-node-map-footer,
  .twc-node-policy {
    grid-template-columns: 1fr;
  }

  .twc-diagram-path {
    min-height: 44px;
  }

  .twc-diagram-path::before {
    left: 50%;
    right: auto;
    top: 0;
    bottom: 0;
    border-top: 0;
    border-left: 3px solid #c09201;
  }

  .twc-diagram-path::after {
    left: calc(50% - 6px);
    right: auto;
    top: auto;
    bottom: 0;
    transform: rotate(135deg);
  }

  .twc-diagram-path.is-failover::before {
    border-left-style: dashed;
    border-left-color: #6f8dac;
  }

  .twc-hunt-member {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .twc-hunt-member .twc-delete-button {
    grid-column: 1 / -1;
    justify-self: end;
  }
}

@media (max-width: 760px) {
  .twc-main {
    padding: 16px;
  }

  .twc-sidebar nav,
  .twc-metrics,
  .twc-rules-two,
  .twc-permission-grid,
  .twc-line-edit-grid,
  .twc-inline-editor,
  .twc-credential-fields,
  .twc-program-grid,
  .twc-recording-grid,
  .twc-telecom-grid,
  .twc-inventory-status,
  .twc-action-row {
    grid-template-columns: 1fr;
  }

  .twc-panel-head {
    flex-direction: column;
  }

  .twc-line-picker {
    min-width: 0;
    width: 100%;
  }

  .twc-hero h1 {
    font-size: 34px;
  }

  .twc-line,
  .twc-sponsor-card,
  .twc-invoice-total {
    align-items: flex-start;
    flex-direction: column;
  }

  .twc-line strong {
    text-align: left;
  }

  .twc-line-assignment {
    min-width: 0;
    justify-items: start;
    text-align: left;
  }

  .twc-invoice-head {
    display: none;
  }

  .twc-invoice-line {
    grid-template-columns: 1fr;
  }

  .twc-option-grid {
    grid-template-columns: 1fr;
  }

  .twc-telecom-list span {
    grid-template-columns: 1fr;
    gap: 2px;
  }

}

.twc-use-default {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  padding: 0;
  border: none;
  background: transparent;
  font-weight: 700;
  font-size: 12px;
  color: #8a9089;
  white-space: nowrap;
}

.twc-use-default input {
  width: 16px;
  height: 16px;
  accent-color: #c09201;
}

.twc-rule-fields input:disabled,
.twc-rule-fields select:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.twc-rule-check input:disabled {
  opacity: 0.55;
}

.twc-gateway-port-map {
  display: grid;
  gap: 12px;
}
