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

.brand-mark {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: var(--radius);
  background: #dcefe8;
  color: var(--green-dark);
  font-weight: 800;
}

.brand > div strong,
.brand > div span {
  display: block;
}

.brand > div strong {
  letter-spacing: 0;
}

.brand > div span {
  margin-top: 3px;
  color: #afc8bf;
  font-size: 0.85rem;
}

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

.nav-item {
  width: 100%;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 12px 14px;
  background: transparent;
  color: #dce9e4;
  text-align: left;
}

.nav-item:hover,
.nav-item.is-active {
  background: #1b3a31;
  border-color: #2d584c;
  color: #ffffff;
}

.sidebar-panel {
  margin-top: auto;
  padding: 16px;
  border: 1px solid #2b4c43;
  border-radius: var(--radius);
  background: #153027;
}

.sidebar-panel strong {
  display: block;
  margin: 6px 0 8px;
}

.sidebar-panel p {
  margin: 0;
  color: #b9ccc5;
  font-size: 0.9rem;
  line-height: 1.45;
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.status-actions,
.form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.role-switcher {
  min-width: 190px;
  gap: 5px;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.role-switcher select {
  min-height: 42px;
  color: var(--ink);
  font-weight: 800;
  text-transform: none;
}

.status-pill,
.primary-action,
.secondary-action {
  min-height: 42px;
  border-radius: var(--radius);
  padding: 0 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2aa66f;
  box-shadow: 0 0 0 4px rgba(42, 166, 111, 0.16);
}

.status-pill.is-offline .status-dot {
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(183, 121, 31, 0.16);
}

.primary-action {
  border-color: var(--green);
  background: var(--green);
  color: #ffffff;
}

.primary-action:hover {
  background: var(--green-dark);
}

.secondary-action:hover,
.status-pill:hover {
  border-color: var(--green);
}

.metric,
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.metric {
  min-height: 128px;
  padding: 18px;
}

.metric span,
.metric small {
  display: block;
  color: var(--muted);
}

.metric strong {
  display: block;
  margin: 10px 0 8px;
  font-size: 2.1rem;
  line-height: 1;
}

.panel {
  padding: 18px;
}

.panel-heading h2 {
  margin: 4px 0 0;
  font-size: 1.1rem;
  letter-spacing: 0;
}

.activity-list,
.queue-list,
.toggle-list,
.sensitive-list {
  display: grid;
  gap: 10px;
}

.activity-item,
.queue-item,
.sensitive-card,
.restricted-card {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.activity-item strong,
.queue-item strong,
.sensitive-card strong,
.restricted-card strong {
  display: block;
  margin-bottom: 5px;
}

.sensitive-panel {
  margin-top: 18px;
}

.sensitive-card {
  border-color: rgba(185, 58, 50, 0.28);
  background: #fff8f7;
}

.restricted-card {
  border-color: rgba(183, 121, 31, 0.34);
  background: #fffaf0;
}

.activity-meta,
.queue-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.85rem;
}

.check-list {
  display: grid;
  gap: 12px;
  padding-left: 18px;
  color: #32423d;
  line-height: 1.45;
}

.protected-area-assist {
  grid-column: 1 / -1;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.protected-area-assist.is-match,
.protected-area-assist.is-selected {
  border-color: rgba(25, 113, 91, 0.28);
  background: #eff8f4;
  color: var(--green-dark);
}

.protected-area-assist.is-warning {
  border-color: rgba(183, 121, 31, 0.32);
  background: #fff8e9;
  color: #76500e;
}

.segmented {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.segmented button {
  min-height: 38px;
  border: 0;
  border-right: 1px solid var(--line);
  background: #ffffff;
  padding: 0 12px;
  font-weight: 700;
}

.segmented button:last-child {
  border-right: 0;
}

.segmented .is-selected {
  background: var(--green);
  color: #ffffff;
}

.toggle-list label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.toggle-list input {
  width: 18px;
  height: 18px;
  min-height: 18px;
}

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

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-cloud span {
  border-radius: 999px;
  padding: 9px 12px;
  background: #edf5f1;
  color: var(--green-dark);
  font-weight: 800;
}
