:root {
  --bg: #f6f7f3;
  --paper: #fff;
  --ink: #252d27;
  --muted: #747b73;
  --line: #e5e8df;
  --green: #365a42;
  --light: #edf2e9;
  --lime: #d6ee9f;
  --sidebar: #202920;
  --amber: #9b6a25;
  --red: #ab3c37;
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-synthesis: none;
  color: var(--ink);
  background: var(--bg);
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.5;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: inherit;
}
button {
  border: 0;
}
svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 32px;
  font-weight: 550;
  letter-spacing: -1.3px;
  line-height: 1.2;
}
h2 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.25px;
}
h3 {
  font-size: 14px;
  font-weight: 600;
}
p {
  line-height: 1.6;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.7px;
  font-weight: 650;
  text-transform: uppercase;
  color: var(--muted);
}
.shell {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: var(--sidebar);
  color: #d5dcd0;
  padding: 31px 18px 21px;
  display: flex;
  flex-direction: column;
  position: fixed;
  width: 232px;
  inset: 0 auto 0 0;
  z-index: 4;
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  color: #f6faef;
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -1px;
  padding: 0 9px 36px;
}
.brandmark {
  width: 29px;
  height: 29px;
  background: var(--lime);
  color: #293525;
  display: grid;
  place-items: center;
  border-radius: 9px;
  transform: rotate(-8deg);
}
.brandmark svg {
  width: 18px;
  height: 18px;
  transform: rotate(8deg);
}
.workspace-picker {
  position: relative;
  margin: 0 1px 29px;
  padding: 12px;
  border: 1px solid #43503f;
  border-radius: 9px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.workspace-picker label {
  font-size: 9px;
  color: #9da997;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}
.workspace-picker select {
  appearance: none;
  background: transparent;
  color: #e8eee1;
  border: 0;
  width: 141px;
  font-size: 12px;
  font-weight: 550;
  cursor: pointer;
}
.workspace-picker option {
  background: #263124;
  color: white;
}
.workspace-picker > svg {
  width: 13px;
}
.workspace-letter {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: var(--lime);
  background: #3b4933;
  font-size: 12px;
}
.nav-label {
  padding: 0 14px;
  margin: 0 0 10px;
  font-size: 9px;
  letter-spacing: 1.6px;
  color: #8d9b86;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.nav button {
  background: transparent;
  color: #aebba7;
  text-align: left;
  padding: 12px 14px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 12px;
}
.nav button.active {
  background: #364232;
  color: #e1f4be;
}
.nav button:hover {
  background: #303d2d;
  color: #fff;
}
.nav button .count {
  margin-left: auto;
  background: #4c5b42;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 50px;
}
.local-card {
  background: #2b3727;
  border: 1px solid #3d4a36;
  border-radius: 9px;
  padding: 14px 13px;
  margin-bottom: 20px;
}
.local-card strong {
  font-size: 11px;
  color: #e4e9de;
  display: flex;
  align-items: center;
  gap: 6px;
}
.dot {
  width: 6px;
  height: 6px;
  display: inline-block;
  border-radius: 50%;
  background: #d7ac5f;
  flex-shrink: 0;
}
.local-card p {
  font-size: 10px;
  line-height: 1.7;
  color: #a7b49e;
  margin-top: 7px;
}
.local-card a {
  font-size: 10px;
  color: #d1e7b0;
  text-decoration: none;
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 10px;
}
.operator {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 0 10px;
}
.operator .avatar {
  background: #647055;
  color: #eef3e7;
}
.operator strong {
  font-size: 11px;
  font-weight: 500;
}
.operator p {
  font-size: 10px;
  color: #94a18c;
  margin-top: 3px;
}
.operator svg {
  margin-left: auto;
  width: 15px;
  color: #a9b49f;
}
.content {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 78px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  background: #fcfcf9;
}
.breadcrumbs {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 11px;
  color: #899081;
}
.breadcrumbs span:last-child {
  color: #41493f;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.top-actions .badge {
  font-size: 10px;
}
.top-actions .round-button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #e5ebdd;
  font-size: 10px;
  font-weight: 650;
  color: #56634d;
}
.top-actions .icon-button {
  background: none;
  padding: 2px;
  color: #78816f;
}
.main {
  max-width: 1410px;
  margin: auto;
  padding: 38px 40px 24px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}
.page-heading .eyebrow {
  margin-bottom: 9px;
}
.page-heading p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 7px;
  background: var(--green);
  color: white;
  font-size: 11px;
  font-weight: 550;
  min-height: 37px;
  padding: 10px 14px;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background 0.15s,
    transform 0.15s;
}
.button:hover {
  background: #244b31;
}
.button svg {
  width: 14px;
  height: 14px;
}
.button.secondary {
  color: #45503e;
  background: white;
  border: 1px solid #dce1d5;
}
.button.secondary:hover {
  background: #eef2e8;
}
.button.ghost {
  background: transparent;
  color: #557044;
  padding: 6px 0;
  min-height: 0;
}
.button.danger {
  color: var(--red);
  background: #fff0ee;
}
.button.small {
  font-size: 10px;
  padding: 7px 10px;
  min-height: 30px;
}
.heading-actions {
  display: flex;
  gap: 8px;
}
.badge {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-size: 10px;
  border: 1px solid #e2e7dc;
  border-radius: 5px;
  padding: 5px 8px;
  white-space: nowrap;
  color: #5b7050;
  background: #f4f7ef;
}
.badge.amber {
  color: var(--amber);
  background: #fcf6e9;
  border-color: #eee2c8;
}
.badge.gray {
  color: #7a8075;
  background: #f7f7f4;
  border-color: #e8e9e1;
}
.badge.red {
  color: var(--red);
  background: #fff1ef;
  border-color: #f0d6d1;
}
.notice {
  background: #f1f3eb;
  border: 1px solid #e0e5d5;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  font-size: 11px;
  color: #69735e;
  margin-bottom: 25px;
}
.notice > svg {
  width: 16px;
  color: #6b785e;
}
.notice strong {
  font-weight: 600;
  color: #4c5b41;
}
.notice .button {
  margin-left: auto;
  font-size: 10px;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 25px;
}
.metric {
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 19px 20px;
}
.metric-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #76806e;
}
.metric-label svg {
  width: 15px;
  height: 15px;
  color: #87917e;
}
.metric-value {
  font-size: 32px;
  letter-spacing: -1px;
  font-weight: 500;
  line-height: 1.1;
  margin: 15px 0 10px;
  display: flex;
  gap: 8px;
  align-items: baseline;
}
.metric-value small {
  font-size: 11px;
  color: #8b9383;
  letter-spacing: 0;
  font-weight: 400;
}
.metric-foot {
  font-size: 10px;
  color: #8d9585;
}
.metric-foot strong {
  color: #66834f;
  font-weight: 500;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
  gap: 22px;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 21px 22px 19px;
  gap: 12px;
}
.panel-header h2 {
  font-size: 14px;
}
.panel-header p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
}
.panel-header .button {
  font-size: 10px;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.table-wrap {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 11px;
}
th {
  font-size: 9px;
  letter-spacing: 0.65px;
  text-transform: uppercase;
  font-weight: 550;
  color: #8c9383;
  background: #fafbf7;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 12px 22px;
  white-space: nowrap;
}
td {
  padding: 15px 22px;
  border-bottom: 1px solid #eff1e9;
  white-space: nowrap;
}
tr:last-child td {
  border-bottom: 0;
}
.person {
  display: flex;
  align-items: center;
  gap: 10px;
}
.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-size: 9px;
  background: #ecf0e5;
  color: #63734d;
  flex-shrink: 0;
  letter-spacing: 0.3px;
}
.avatar.tone-1 {
  background: #ede9e2;
  color: #8a795b;
}
.avatar.tone-2 {
  background: #e6eced;
  color: #607d82;
}
.avatar.tone-3 {
  background: #efe7eb;
  color: #92738a;
}
.person strong {
  font-weight: 550;
  font-size: 11px;
}
.person p {
  color: #969c8e;
  font-size: 10px;
  margin-top: 3px;
}
.ext {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
  color: #737d66;
  background: #f5f6f0;
  padding: 4px 7px;
  border-radius: 4px;
}
.table-footer {
  padding: 13px 22px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: #939c86;
  display: flex;
  justify-content: space-between;
}
.route-preview {
  padding: 0 22px 20px;
}
.route-row {
  display: flex;
  gap: 12px;
  align-items: center;
  position: relative;
  padding: 12px 0;
}
.route-row:not(:last-child):after {
  content: "";
  position: absolute;
  left: 16px;
  top: 45px;
  height: 15px;
  border-left: 1px dashed #cbd5be;
}
.node-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #eff3e8;
  color: #6b8153;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.node-icon svg {
  width: 16px;
  height: 16px;
}
.route-row strong {
  font-size: 11px;
  font-weight: 550;
}
.route-row p {
  font-size: 10px;
  color: #8b947f;
  margin-top: 3px;
}
.route-row .badge {
  margin-left: auto;
  font-size: 8px;
}
.route-preview .route-sub {
  margin: 8px 0 0;
  padding: 11px 12px;
  border: 1px dashed #dfe5d4;
  border-radius: 6px;
  font-size: 10px;
  color: #839175;
  display: flex;
  gap: 9px;
  align-items: center;
}
.route-sub svg {
  width: 13px;
}
.launch-panel {
  background: #eaf0df;
  border-color: #dce5ce;
}
.launch-panel .panel-header {
  padding-bottom: 12px;
}
.launch-header {
  display: flex;
  gap: 9px;
  align-items: center;
}
.launch-header .node-icon {
  background: #dbe7ca;
  color: #648044;
  width: 30px;
  height: 30px;
}
.launch-body {
  padding: 0 22px 19px;
}
.progress-caption {
  font-size: 10px;
  display: flex;
  justify-content: space-between;
  color: #7e8b6c;
  margin-bottom: 8px;
}
progress {
  width: 100%;
  height: 4px;
  appearance: none;
  display: block;
  border: 0;
  border-radius: 9px;
  overflow: hidden;
  background: #d9e2cb;
}
progress::-webkit-progress-bar {
  background: #d9e2cb;
}
progress::-webkit-progress-value {
  background: #7b9c51;
}
progress::-moz-progress-bar {
  background: #7b9c51;
}
.checklist {
  margin-top: 14px;
  display: grid;
  gap: 13px;
}
.check-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 10px;
  color: #6f7c5d;
}
.check-item > svg {
  width: 14px;
  height: 14px;
  color: #8ca26e;
}
.check-item.done {
  color: #4f6540;
}
.check-item.done > svg {
  fill: #74964d;
  color: #eaf0df;
}
.check-item .button {
  margin-left: auto;
  font-size: 9px;
}
.signal-panel {
  padding: 21px 22px;
  display: flex;
  gap: 13px;
  align-items: flex-start;
  background: #fcfcf9;
}
.signal-panel .node-icon {
  background: #f0eee5;
  color: #9a8d69;
}
.signal-panel h3 {
  font-size: 12px;
  margin-bottom: 6px;
}
.signal-panel p {
  font-size: 10px;
  color: #939683;
  line-height: 1.8;
}
.signal-panel .button {
  font-size: 10px;
  margin-top: 11px;
}
.activity-list {
  padding: 0 22px 10px;
}
.event {
  display: flex;
  gap: 11px;
  padding: 13px 0;
  border-top: 1px solid #f0f2eb;
}
.event .node-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #f3f5ee;
}
.event .node-icon svg {
  width: 13px;
}
.event strong {
  font-size: 10px;
  font-weight: 550;
}
.event p {
  font-size: 10px;
  color: #969e8c;
  margin-top: 4px;
  white-space: normal;
}
.event time {
  margin-left: auto;
  font-size: 9px;
  color: #a0a68e;
  white-space: nowrap;
  padding-top: 2px;
}
.footer {
  margin-top: 27px;
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: #a2aa97;
  gap: 15px;
}
.footer span:last-child {
  display: flex;
  align-items: center;
  gap: 5px;
}
.footer .dot {
  background: #9bad85;
  width: 4px;
  height: 4px;
}
.empty {
  padding: 45px 25px;
  text-align: center;
  color: #89927d;
}
.empty > .node-icon {
  margin: 0 auto 14px;
  width: 44px;
  height: 44px;
}
.empty h3 {
  color: #59654d;
  margin-bottom: 7px;
}
.empty p {
  font-size: 11px;
  max-width: 340px;
  margin: auto;
}
.empty .button {
  margin-top: 18px;
}
.toolbar {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  align-items: center;
  justify-content: space-between;
}
.search {
  position: relative;
  max-width: 320px;
  width: 100%;
}
.search input {
  padding-left: 34px;
}
.search svg {
  position: absolute;
  left: 11px;
  top: 10px;
  width: 15px;
  height: 15px;
  color: #8e9981;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #dce2d4;
  border-radius: 6px;
  background: #fff;
  color: #35422d;
  padding: 10px 11px;
  min-height: 36px;
  font-size: 12px;
}
input::placeholder,
textarea::placeholder {
  color: #a6ae9a;
}
textarea {
  resize: vertical;
  min-height: 85px;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #a6bf86;
  outline-offset: 1px;
}
label.field {
  display: block;
  margin-bottom: 17px;
}
label.field > span,
.field-label {
  display: block;
  font-size: 11px;
  font-weight: 550;
  margin-bottom: 8px;
  color: #626e55;
}
.field-help {
  font-size: 10px;
  color: #919c84;
  margin-top: 7px;
  line-height: 1.6;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-panel {
  padding: 24px;
}
.form-panel .section-title {
  margin: 2px 0 18px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.checkbox-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-bottom: 20px;
}
.check-option {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  font-size: 11px;
}
.check-option input {
  width: 14px;
  height: 14px;
  min-height: 0;
  accent-color: var(--green);
}
.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 6px;
}
.version-line {
  font-size: 10px;
  color: #8b967e;
}
.routing-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(285px, 1fr);
  gap: 22px;
}
.simulate-box {
  padding: 0 22px 22px;
}
.simulate-box select {
  margin: 4px 0 12px;
}
.simulate-box .button {
  width: 100%;
}
.simulation-result {
  list-style: none;
  padding: 10px 0 0;
  margin: 0;
  counter-reset: sim;
}
.simulation-result li {
  position: relative;
  font-size: 11px;
  line-height: 1.7;
  padding: 10px 0 10px 29px;
  border-bottom: 1px solid var(--line);
  counter-increment: sim;
}
.simulation-result li:before {
  content: counter(sim);
  position: absolute;
  left: 0;
  top: 12px;
  background: #edf2e6;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  font-size: 9px;
  color: #6e8457;
}
.simulation-result + p {
  font-size: 10px;
  color: #8b967f;
  margin-top: 13px;
}
.version-list {
  padding: 0 22px 12px;
}
.version-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: 11px 0;
  font-size: 11px;
}
.version-row small {
  font-size: 9px;
  color: #98a18c;
  margin-left: 8px;
}
.integration-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.integration {
  padding: 25px;
}
.integration > .node-icon {
  margin-bottom: 18px;
}
.integration h3 {
  margin-bottom: 8px;
}
.integration p {
  font-size: 11px;
  color: #87927a;
  line-height: 1.8;
}
.integration .badge {
  margin: 16px 0;
}
.integration .button {
  margin-top: 8px;
}
.code {
  font:
    11px ui-monospace,
    monospace;
  color: #6b7b59;
  background: #f4f6ee;
  padding: 10px;
  border-radius: 5px;
  overflow-wrap: anywhere;
}
.help-list {
  padding-left: 17px;
  color: #79866c;
  font-size: 11px;
  line-height: 2;
}
.help-list code {
  font-size: 10px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  padding: 0;
  max-width: 470px;
  width: calc(100% - 32px);
  color: var(--ink);
  box-shadow: 0 24px 90px #1a25183b;
}
dialog::backdrop {
  background: #1e2c285c;
  backdrop-filter: blur(2px);
}
.modal-header {
  padding: 23px 25px 19px;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid var(--line);
}
.modal-header h2 {
  font-size: 18px;
}
.modal-header p {
  font-size: 11px;
  color: #909984;
  margin-top: 6px;
}
.close {
  background: none;
  color: #87947a;
  padding: 0;
  align-self: flex-start;
}
.close svg {
  width: 18px;
}
.modal-body {
  padding: 23px 25px;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 22px;
}
.form-error {
  color: var(--red);
  background: #fff1ef;
  border-radius: 6px;
  font-size: 11px;
  padding: 10px;
  line-height: 1.7;
  margin-bottom: 13px;
}
.form-error:empty {
  display: none;
}
.enrollment-note {
  font-size: 11px;
  line-height: 1.8;
  color: #7c886f;
  margin: 15px 0;
}
.danger-note {
  border-left: 2px solid #c5a65a;
  background: #faf7ed;
  padding: 12px 14px;
  font-size: 11px;
  line-height: 1.8;
  color: #8b794c;
}
.loading {
  display: grid;
  place-items: center;
  min-height: 100vh;
  font-size: 14px;
  color: #697a57;
}
.skip {
  position: fixed;
  top: -100px;
  left: 15px;
  z-index: 100;
  background: white;
  padding: 12px;
}
.skip:focus {
  top: 10px;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: calc(50% + 90px);
  transform: translateX(-50%) translateY(10px);
  background: #293b29;
  color: #f1f7e8;
  border: 1px solid #596e48;
  box-shadow: 0 5px 30px #0002;
  border-radius: 8px;
  padding: 13px 20px;
  font-size: 12px;
  opacity: 0;
  transition:
    opacity 0.2s,
    transform 0.2s;
  pointer-events: none;
  z-index: 20;
  max-width: calc(100vw - 35px);
}
#toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.mobile-brand {
  display: none;
}
.hidden {
  display: none !important;
}
@media (min-width: 1550px) {
  .main {
    padding-top: 45px;
  }
  .panel-header {
    padding-top: 24px;
    padding-bottom: 22px;
  }
  td {
    padding-top: 19px;
    padding-bottom: 19px;
  }
  .metric {
    padding: 23px;
  }
  .metric-value {
    margin-top: 20px;
    margin-bottom: 14px;
  }
  .route-row {
    padding-top: 16px;
    padding-bottom: 16px;
  }
  .route-row:not(:last-child):after {
    top: 51px;
    height: 20px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 200px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .shell {
    grid-template-columns: 200px minmax(0, 1fr);
  }
  .workspace-picker select {
    width: 117px;
  }
  .main {
    padding: 28px 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .metric-grid {
    gap: 10px;
  }
  .metric {
    padding: 17px 15px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(260px, 1fr);
    gap: 16px;
  }
  .stack {
    gap: 16px;
  }
  .panel-header {
    padding: 18px;
  }
  td,
  th {
    padding-left: 18px;
    padding-right: 18px;
  }
  .person p {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .dashboard-grid .department-col {
    display: none;
  }
  .route-preview,
  .launch-body,
  .activity-list {
    padding-left: 18px;
    padding-right: 18px;
  }
  .page-heading h1 {
    font-size: 29px;
  }
  .routing-layout {
    grid-template-columns: 1.25fr 1fr;
    gap: 16px;
  }
}
@media (max-width: 850px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-grid > .stack:last-child {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
  .dashboard-grid > .stack:last-child > .panel:last-child {
    grid-column: 1/-1;
  }
  .routing-layout {
    grid-template-columns: 1fr;
  }
  .top-actions .badge {
    display: none;
  }
  .metric-label {
    font-size: 10px;
  }
  .metric-value {
    font-size: 27px;
  }
  .metric-foot {
    font-size: 9px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .page-heading .heading-actions {
    flex-direction: column;
  }
  .page-heading p {
    max-width: 310px;
  }
  .integration-grid {
    grid-template-columns: 1fr;
  }
  .footer {
    font-size: 8px;
  }
}
@media (max-width: 620px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: sticky;
    inset: 0;
    top: 0;
    width: 100%;
    padding: 0;
    display: block;
    z-index: 5;
  }
  .brand,
  .workspace-picker,
  .nav-label,
  .sidebar-bottom {
    display: none;
  }
  .nav {
    flex-direction: row;
    gap: 0;
    justify-content: space-around;
    padding: 7px;
  }
  .nav button {
    font-size: 9px;
    padding: 10px 9px;
    gap: 5px;
    flex-direction: column;
    border-radius: 5px;
  }
  .nav button svg {
    width: 17px;
    height: 17px;
  }
  .nav button .count {
    display: none;
  }
  .topbar {
    height: 58px;
    padding: 0 18px;
  }
  .breadcrumbs {
    font-size: 10px;
    gap: 7px;
  }
  .top-actions {
    gap: 12px;
  }
  .main {
    padding: 26px 17px 20px;
  }
  .page-heading {
    margin-bottom: 22px;
    gap: 10px;
  }
  .page-heading h1 {
    font-size: 26px;
  }
  .page-heading .eyebrow {
    font-size: 9px;
  }
  .page-heading p {
    font-size: 10px;
    max-width: 225px;
    margin-top: 8px;
  }
  .page-heading .button {
    font-size: 10px;
    padding: 9px 10px;
    min-height: 33px;
  }
  .heading-actions {
    gap: 5px;
  }
  .notice {
    font-size: 10px;
    padding: 12px;
    align-items: flex-start;
    margin-bottom: 18px;
  }
  .notice .button {
    display: none;
  }
  .metric-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 18px;
  }
  .metric {
    padding: 16px;
  }
  .metric-label {
    font-size: 11px;
  }
  .metric-value {
    font-size: 29px;
    margin-top: 13px;
  }
  .dashboard-grid {
    gap: 17px;
  }
  .dashboard-grid > .stack:last-child {
    display: flex;
    align-items: stretch;
  }
  .stack {
    gap: 17px;
  }
  .panel-header {
    padding: 18px 16px;
  }
  .panel-header h2 {
    font-size: 13px;
  }
  td,
  th {
    padding: 13px 16px;
  }
  .person p {
    max-width: 170px;
  }
  .dashboard-grid .status-col {
    display: none;
  }
  .table-footer {
    padding: 13px 16px;
  }
  .form-panel {
    padding: 19px 16px;
  }
  .form-row {
    gap: 10px;
  }
  .checkbox-list {
    grid-template-columns: 1fr;
  }
  .footer {
    flex-direction: column;
    gap: 7px;
    line-height: 1.5;
    margin-top: 22px;
  }
  .event time {
    font-size: 8px;
  }
  .toolbar .badge {
    display: none;
  }
  .topbar .mobile-brand {
    display: block;
    font-size: 18px;
    letter-spacing: -1px;
    color: #3b5131;
    font-weight: 650;
  }
  .breadcrumbs {
    display: none;
  }
  .topbar select {
    background: none;
    border: 0;
    padding: 0;
    min-height: 0;
    font-size: 11px;
    max-width: 165px;
  }
  .mobile-select {
    display: block !important;
  }
  #toast {
    left: 50%;
    bottom: 18px;
    text-align: center;
    font-size: 11px;
  }
  .signal-panel {
    padding: 19px;
  }
  .route-row .badge {
    font-size: 8px;
  }
  .version-row small {
    margin-left: 3px;
  }
  .modal-body {
    padding: 20px;
  }
  .modal-header {
    padding: 20px;
  }
  .version-line {
    max-width: 150px;
    line-height: 1.7;
  }
}

/* Keep the Maple Telecom wordmark legible in compact navigation. */
.brand {
  font-size: 20px;
  letter-spacing: -0.8px;
}
@media (max-width: 1150px) {
  .brand {
    font-size: 18px;
    gap: 7px;
    padding-left: 6px;
    padding-right: 6px;
  }
  .brandmark {
    width: 26px;
    height: 26px;
  }
}
@media (max-width: 620px) {
  .topbar .mobile-brand {
    font-size: 16px;
    letter-spacing: -0.7px;
  }
  .topbar select {
    max-width: 135px;
  }
}

/* Maple Telecom: red/charcoal chrome; semantic success states remain distinct. */
:root {
  --bg: #f6f6f7;
  --ink: #282828;
  --muted: #747478;
  --line: #e5e5e8;
  --green: #bd090d;
  --light: #fff0f0;
  --lime: #ffb9ba;
  --sidebar: #232326;
}
.sidebar {
  color: #dedee0;
}
.brand {
  color: #fff;
}
.brandmark {
  background: #fff;
  color: #bd090d;
}
.workspace-picker {
  border-color: #49494d;
}
.workspace-letter {
  background: #38383c;
  color: #ffc9ca;
}
.workspace-picker label,
.nav-label {
  color: #a4a4ab;
}
.workspace-picker select {
  color: #f4f4f5;
}
.workspace-picker option {
  background: #29292d;
}
.nav button {
  color: #c0c0c6;
}
.nav button.active {
  background: #482a2d;
  color: #ffd4d5;
}
.nav button:hover {
  background: #353539;
}
.nav button .count {
  background: #65353a;
}
.local-card {
  background: #2d2d31;
  border-color: #424247;
}
.local-card p,
.operator p {
  color: #aaaab2;
}
.local-card a {
  color: #ffbfc1;
}
.topbar {
  background: #fff;
}
.top-actions .round-button {
  background: #f0ebeb;
  color: #5e3f41;
}
.breadcrumbs {
  color: #909096;
}
.breadcrumbs span:last-child {
  color: #48484d;
}
.button:hover {
  background: #950509;
}
.button.secondary {
  border-color: #dedee2;
  color: #53535a;
}
.button.secondary:hover {
  background: #f4f4f6;
}
.button.ghost {
  color: #a50a11;
}
.notice {
  background: #f2f2f4;
  border-color: #e3e3e7;
  color: #75757d;
}
.notice strong {
  color: #505057;
}
.notice > svg {
  color: #7e7e87;
}
.launch-panel {
  background: #fbefef;
  border-color: #eddcdc;
}
.launch-header .node-icon {
  background: #f2dada;
  color: #ad262c;
}
.launch-body .progress-caption {
  color: #8f6d70;
}
.launch-body progress {
  background: #ead6d8;
}
.launch-body progress::-webkit-progress-bar {
  background: #ead6d8;
}
.launch-body progress::-webkit-progress-value {
  background: #b83b42;
}
.launch-body progress::-moz-progress-bar {
  background: #b83b42;
}
.launch-body .check-item {
  color: #886b6e;
}
.launch-body .check-item.done {
  color: #654e50;
}
.route-preview .node-icon,
.integration > .node-icon {
  background: #f9eeee;
  color: #a44147;
}
.route-row p,
.route-sub {
  color: #8b7d80;
}
.route-preview .route-sub {
  border-color: #eadcde;
}
.node-icon {
  background: #f2f2f5;
  color: #777780;
}
.panel-header p,
.person p {
  color: #909097;
}
.avatar {
  background: #f0e9e9;
  color: #8b6365;
}
.table-footer {
  color: #8c8c96;
}
.metric-label,
.metric-foot {
  color: #80808a;
}
.metric-label svg {
  color: #8b8b95;
}
input,
select,
textarea {
  border-color: #dddde2;
  color: #3f3f47;
}
input:focus,
select:focus,
textarea:focus {
  outline-color: #d2787c;
}
.search svg {
  color: #96969f;
}
th {
  background: #fafafa;
  color: #898991;
}
.ext {
  background: #f3f3f5;
  color: #74747f;
}
.footer {
  color: #9b9ba5;
}
#toast {
  background: #323237;
  border-color: #67616a;
}
.code {
  background: #f5f1f1;
  color: #87575c;
}
.form-actions,
.version-row {
  border-color: #e5e5e8;
}
.brand.has-logo {
  padding: 0 6px 27px;
}
.brand.has-logo img {
  display: block;
  width: 100%;
  max-width: 185px;
  height: 70px;
  object-fit: contain;
  background: #fff;
  border-radius: 5px;
}
.mobile-brand.has-logo img {
  display: block;
  width: 94px;
  height: 42px;
  object-fit: contain;
  background: #fff;
}
.top-actions .icon-button {
  color: #797981;
}
