:root {
  color-scheme: light;
  --bg: #f4f6f3;
  --stage: #fbfcfa;
  --surface: #ffffff;
  --surface-soft: #eef3ee;
  --ink: #1e2924;
  --muted: #66736d;
  --line: #dce4de;
  --brand: #2f6f5d;
  --brand-deep: #1f4d42;
  --blue: #355c9b;
  --amber: #ad6a2b;
  --red: #b84c49;
  --shadow: 0 18px 40px rgba(38, 58, 49, 0.08);
}

/* 2026-05-03 reference dashboard pass */
body {
  background: #f6f8fb;
}

.stage-status {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.stage-status-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: transparent;
  color: #4f5b66;
  font-size: 13px;
  font-weight: 750;
}

.stage-status-item .nav-icon,
.stage-status-item .ui-icon {
  width: 18px;
  height: 18px;
}

.stage-status-item.secure {
  color: #15804b;
}

.icon-button.has-alert {
  position: relative;
}

.icon-button.has-alert::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 8px;
  height: 8px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #d93737;
}

.system-statusbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 35;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) minmax(260px, 1fr);
  align-items: center;
  min-height: 34px;
  border-top: 1px solid #dce3eb;
  padding: 0 24px;
  background: rgba(255, 255, 255, 0.94);
  color: #6c7680;
  font-size: 12px;
}

.system-statusbar span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.system-statusbar span:last-child {
  justify-content: flex-end;
}

.reference-dashboard {
  gap: 14px;
}

.workbench-titlebar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 2px 4px 10px;
}

.workbench-titlebar h1 {
  margin: 0;
  color: #111b17;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: 0;
}

.workbench-titlebar p {
  margin: 8px 0 0;
  color: #65717b;
  font-size: 14px;
}

.mission-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.36fr) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

.priority-panel {
  min-height: 286px;
  border-color: #109353;
  box-shadow: 0 16px 36px rgba(17, 51, 36, 0.08);
}

.priority-panel .panel-title {
  margin-bottom: 16px;
  font-size: 18px;
}

.priority-panel .next-action-card {
  min-height: 150px;
  border: 0;
  padding: 12px 0 8px;
  background: transparent;
}

.priority-panel .action-orb {
  width: 82px;
  height: 82px;
  background: #e8f5ee;
  color: #09924f;
}

.priority-panel .action-orb .ui-icon {
  width: 46px;
  height: 46px;
  stroke-width: 1.8;
}

.priority-panel .next-step strong {
  font-size: 24px;
  line-height: 1.2;
}

.priority-panel .next-step span {
  max-width: 430px;
  margin-top: 10px;
  color: #424f58;
  font-size: 14px;
}

.next-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.next-button-row .primary-button,
.next-button-row .ghost-button {
  min-width: 168px;
}

.next-footnote {
  display: flex;
  align-items: center;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.next-footnote .ui-icon {
  width: 15px;
  height: 15px;
}

.status-stack {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 14px;
}

.device-summary-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  min-height: 132px;
  padding: 24px;
}

.mac-device-visual {
  position: relative;
  display: grid;
  place-items: center;
  width: 82px;
  height: 64px;
  border-radius: 14px;
  background: linear-gradient(145deg, #f2f3f4, #cfd5d8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 14px 24px rgba(29, 36, 42, 0.12);
}

.mac-device-visual::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2b302f;
  box-shadow: -18px 24px 0 -4px #8b9398, 18px 24px 0 -4px #8b9398;
}

.mac-device-visual::after {
  content: "";
  position: absolute;
  right: -8px;
  bottom: 14px;
  width: 12px;
  height: 12px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #22c966;
}

.device-summary-main strong {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #05944f;
  font-size: 18px;
}

.device-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(90px, 1fr));
  gap: 22px;
  margin-top: 14px;
}

.device-summary-grid span,
.device-summary-grid em {
  display: block;
}

.device-summary-grid em {
  margin-bottom: 6px;
  color: #8a949f;
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
}

.device-summary-grid span {
  color: #111820;
  font-size: 14px;
  font-weight: 850;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.metric-row .metric-card.workbench-metric {
  position: relative;
  min-height: 142px;
  gap: 18px;
  padding: 24px 22px;
}

.metric-row .metric-card.workbench-metric::after {
  content: "›";
  position: absolute;
  right: 18px;
  top: 50%;
  color: #65717b;
  font-size: 28px;
  transform: translateY(-50%);
}

.metric-row .metric-orb {
  width: 58px;
  height: 58px;
}

.metric-row .metric-orb .ui-icon {
  width: 30px;
  height: 30px;
}

.metric-row .metric-card.workbench-metric strong {
  font-size: 32px;
}

.workbench-lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.98fr);
  gap: 14px;
  align-items: stretch;
}

.task-table-panel,
.boundary-ledger {
  min-height: 364px;
}

.task-table-panel .panel-title {
  margin-bottom: 16px;
}

.task-table-panel .recent-task-list {
  border-top: 1px solid var(--line);
}

.task-table-panel .recent-task-row {
  grid-template-columns: 36px minmax(0, 1fr) 88px 92px;
  min-height: 48px;
  gap: 12px;
}

.task-table-panel .task-orb {
  width: 28px;
  height: 28px;
}

.task-table-panel .task-orb .ui-icon {
  width: 15px;
  height: 15px;
}

.task-table-panel .recent-task-row strong {
  font-size: 14px;
}

.task-table-panel .recent-task-row span {
  display: block;
}

.task-table-panel .recent-task-row > div > span {
  display: none;
}

.task-table-panel .recent-task-row > .task-orb {
  display: grid;
}

.task-table-panel .wide-link-button {
  justify-content: flex-start;
  width: auto;
  margin-top: 10px;
}

.boundary-ledger .privacy-title {
  justify-content: space-between;
  margin-bottom: 18px;
}

.boundary-ledger .privacy-title > span {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.boundary-ledger .privacy-title em {
  color: var(--muted);
  font-size: 14px;
  font-style: normal;
  font-weight: 750;
}

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

.boundary-ledger .privacy-block {
  position: relative;
  min-height: 74px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 16px;
}

.boundary-ledger .privacy-block:nth-child(1) {
  border-top: 1px solid #b7ead0;
  border-color: #b7ead0;
  background: #f0fbf5;
  box-shadow: inset 0 1px 0 #b7ead0;
}

.boundary-ledger .privacy-block:nth-child(2) {
  border-color: #b8d8ff;
  background: #f2f7ff;
}

.boundary-ledger .privacy-block:nth-child(3) {
  border-color: #f5d8a8;
  background: #fff8ec;
}

.boundary-ledger .privacy-icon {
  width: 38px;
  height: 38px;
}

.boundary-ledger .privacy-icon .ui-icon {
  width: 22px;
  height: 22px;
}

.boundary-ledger .privacy-block strong {
  color: #0c8e4d;
}

.boundary-ledger .privacy-block:nth-child(2) strong {
  color: #1f67a7;
}

.boundary-ledger .privacy-block:nth-child(3) strong {
  color: #b65f00;
}

@media (min-width: 821px) {
  body {
    padding-bottom: 34px;
  }

  .shell {
    grid-template-columns: 248px minmax(0, 1fr);
    min-height: calc(100vh - 34px);
  }

  .sidebar {
    height: calc(100vh - 34px);
    padding: 26px 12px 28px;
    background: #ffffff;
  }

  .brand {
    padding: 0 14px;
  }

  .brand-mark {
    width: 31px;
    height: 31px;
    border-radius: 9px;
    background: linear-gradient(145deg, #34c978, #159454 54%, #94e6c1);
    color: transparent;
    clip-path: polygon(50% 0, 91% 24%, 91% 75%, 50% 100%, 9% 75%, 9% 24%);
  }

  .brand-title {
    font-size: 22px;
    font-weight: 900;
  }

  .brand-subtitle {
    display: none;
  }

  .topnav {
    gap: 8px;
    margin-top: 24px;
  }

  .topnav-button {
    min-height: 48px;
    padding: 0 16px;
    color: #4d5964;
    font-size: 15px;
  }

  .topnav-button.is-active {
    border-color: transparent;
    background: #eaf7f0;
    color: #09834a;
  }

  .sidebar-foot {
    padding: 0 0 0;
  }

  .space-card {
    min-height: 76px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(31, 48, 58, 0.08);
  }

  .space-card strong::after {
    content: "所有者";
    display: inline-block;
    margin-left: 7px;
    border: 1px solid #89d8ae;
    border-radius: 5px;
    padding: 1px 5px;
    color: #078449;
    font-size: 11px;
  }

  .version-card {
    display: none;
  }

  .stage-topbar {
    min-height: 72px;
    border-bottom: 1px solid #e4e9ef;
    padding: 0 24px;
    background: rgba(255, 255, 255, 0.88);
  }

  .app-shell {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 28px 24px;
  }
}

@media (max-width: 1280px) {
  .mission-grid,
  .workbench-lower-grid {
    grid-template-columns: 1fr;
  }

  .device-summary-grid {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }
}

@media (max-width: 820px) {
  .stage-status,
  .system-statusbar {
    display: none;
  }

  .reference-dashboard {
    gap: 14px;
  }

  .workbench-titlebar {
    display: grid;
    padding: 0;
  }

  .workbench-titlebar h1 {
    font-size: 28px;
  }

  .mission-grid,
  .workbench-lower-grid,
  .metric-row {
    grid-template-columns: 1fr;
  }

  .priority-panel .next-action-card {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .priority-panel .action-orb {
    width: 58px;
    height: 58px;
  }

  .priority-panel .action-orb .ui-icon {
    width: 32px;
    height: 32px;
  }

  .priority-panel .next-step strong {
    font-size: 18px;
  }

  .next-button-row {
    display: grid;
  }

  .next-button-row .primary-button,
  .next-button-row .ghost-button {
    min-width: 0;
    width: 100%;
  }

  .device-summary-card {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .device-summary-grid {
    grid-template-columns: 1fr 1fr;
  }

  .device-summary-card > .ghost-button {
    width: 100%;
  }

  .task-table-panel .recent-task-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .task-table-panel .recent-task-row .status-pill,
  .task-table-panel .recent-task-row time {
    grid-column: 2;
  }

  .boundary-ledger .privacy-title,
  .boundary-ledger .privacy-title > span {
    align-items: flex-start;
    flex-direction: column;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

button,
a,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.shell {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 18px;
  min-height: 100vh;
  max-width: 1520px;
  margin: 0 auto;
  padding: 18px;
}

.sidebar {
  position: sticky;
  top: 18px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  height: calc(100vh - 36px);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.86);
}

.mobile-topbar {
  display: none;
}

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

.brand-button {
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  text-align: left;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--brand);
  color: #f7fff9;
  font-size: 18px;
  font-weight: 900;
}

.brand-title,
.brand-subtitle,
.sidebar-foot span,
.sidebar-foot strong {
  display: block;
}

.brand-title {
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-subtitle {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.topnav {
  display: grid;
  gap: 6px;
}

.topnav-button,
.primary-button,
.ghost-button,
.wide-button,
.mini-button {
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: 8px;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.topnav-button {
  width: 100%;
  padding: 9px 10px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-align: left;
}

.topnav-button.is-active {
  border-color: rgba(47, 111, 93, 0.18);
  background: rgba(47, 111, 93, 0.1);
  color: var(--brand-deep);
}

.topnav-button:hover,
.primary-button:hover,
.ghost-button:hover,
.wide-button:hover,
.mini-button:hover {
  transform: translateY(-1px);
}

.sidebar-foot {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.sidebar-foot span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.sidebar-foot strong {
  margin-top: 4px;
  color: var(--brand-deep);
  font-size: 12px;
}

.main-stage {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--stage);
  box-shadow: var(--shadow);
}

.app-shell {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
}

.workbench-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  align-items: start;
  gap: 16px;
}

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

.page-head,
.workbench-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.workbench-hero {
  min-height: 230px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px;
  background: var(--surface);
}

.page-head h1,
.workbench-hero h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: 0;
}

.page-head p,
.workbench-hero p {
  max-width: 680px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.eyebrow {
  margin: 0 0 7px;
  color: var(--brand-deep);
  font-size: 12px;
  font-weight: 900;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.node-summary {
  display: grid;
  justify-items: start;
  align-content: center;
  min-width: 220px;
  min-height: 142px;
  border: 1px solid rgba(47, 111, 93, 0.18);
  border-radius: 8px;
  padding: 16px;
  background: #f7faf7;
}

.node-summary strong,
.node-summary em {
  display: block;
}

.node-summary strong {
  margin-top: 12px;
  font-size: 18px;
  line-height: 1.25;
}

.node-summary em {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  line-height: 1.45;
}

.primary-button {
  border-color: var(--brand);
  background: var(--brand);
  color: #ffffff;
  padding: 8px 14px;
  font-weight: 900;
}

.ghost-button,
.wide-button {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
  padding: 8px 14px;
  font-weight: 850;
}

.wide-button {
  width: 100%;
}

.wide-button:disabled,
.template-button:disabled {
  cursor: default;
  opacity: 0.66;
}

.ghost-button.danger,
.mini-button.danger {
  color: var(--red);
}

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

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

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

.metric-card {
  min-height: 104px;
  padding: 16px;
}

.metric-card span,
.metric-card strong,
.metric-card em {
  display: block;
}

.metric-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.metric-card strong {
  margin-top: 10px;
  font-size: 28px;
  line-height: 1;
}

.metric-card em {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.privacy-panel {
  position: sticky;
  top: 20px;
  display: grid;
  gap: 18px;
  border: 1px solid rgba(47, 111, 93, 0.18);
  border-radius: 8px;
  padding: 18px;
  background: #ffffff;
}

.privacy-panel h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.18;
  letter-spacing: 0;
}

.privacy-panel p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.58;
}

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

.boundary-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #f8faf8;
}

.boundary-item strong,
.boundary-item em {
  display: block;
}

.boundary-item strong {
  font-size: 13px;
}

.boundary-item em {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.4;
}

.boundary-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--muted);
}

.boundary-dot.ok {
  background: var(--brand);
}

.boundary-dot.warn,
.boundary-dot.lock {
  background: var(--amber);
}

.privacy-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.privacy-metrics div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--stage);
}

.privacy-metrics span,
.privacy-metrics strong {
  display: block;
}

.privacy-metrics span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.privacy-metrics strong {
  margin-top: 8px;
  font-size: 24px;
}

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

.panel {
  padding: 16px;
}

.panel-title {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.next-step {
  display: grid;
  justify-items: start;
  gap: 10px;
  min-height: 154px;
  align-content: center;
}

.next-step strong {
  font-size: 18px;
}

.next-step span {
  max-width: 520px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.list-row,
.detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 54px;
  border-top: 1px solid var(--line);
  padding: 11px 0;
}

.list-row:first-child,
.detail-row:first-child {
  border-top: 0;
}

.list-row strong,
.list-row span,
.detail-row strong,
.detail-row span {
  display: block;
}

.list-row strong {
  font-size: 14px;
}

.list-row span,
.detail-row span,
.row-meta em {
  color: var(--muted);
  font-size: 12px;
}

.detail-row strong {
  color: var(--ink);
  font-size: 13px;
  text-align: right;
}

.row-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 128px;
  text-align: right;
}

.row-meta em {
  font-style: normal;
}

.warn-text {
  color: var(--amber) !important;
  font-weight: 900;
}

.review-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}

.review-tags em {
  border: 1px solid rgba(53, 92, 155, 0.18);
  border-radius: 8px;
  padding: 3px 8px;
  background: rgba(53, 92, 155, 0.06);
  color: var(--blue);
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}

.review-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.mini-button {
  min-height: 28px;
  border-color: var(--line);
  padding: 3px 9px;
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red);
}

.status-dot.ok {
  background: var(--brand);
}

.status-dot.warn {
  background: var(--amber);
}

.status-dot.danger {
  background: var(--red);
}

.pair-code {
  display: grid;
  place-items: center;
  min-height: 58px;
  margin-top: 14px;
  border: 1px dashed rgba(53, 92, 155, 0.38);
  border-radius: 8px;
  background: rgba(53, 92, 155, 0.08);
  color: var(--blue);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 20px;
  font-weight: 900;
}

.detail-list,
.action-list,
.doc-links,
.source-grid,
.permission-list {
  display: grid;
  gap: 10px;
}

.pill-grid,
.template-grid,
.check-list,
.step-grid {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

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

.pill,
.source-chip,
.step-card,
.template-button,
.maintenance-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--stage);
}

.pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 38px;
  padding: 8px 10px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.pill em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.source-chip {
  padding: 11px;
}

.source-chip strong,
.source-chip span,
.source-chip em {
  display: block;
}

.source-chip strong {
  font-size: 13px;
}

.source-chip span,
.source-chip em {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.source-chip em {
  color: var(--brand-deep);
  font-weight: 850;
}

.permission-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 58px;
  border-top: 1px solid var(--line);
}

.permission-row:first-child {
  border-top: 0;
}

.permission-row strong,
.permission-row span,
.permission-actions em {
  display: block;
}

.permission-row strong {
  font-size: 14px;
}

.permission-row span,
.permission-actions em {
  color: var(--muted);
  font-size: 12px;
}

.permission-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  text-align: right;
}

.compact-toggle {
  min-height: 28px;
}

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

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

.step-card {
  min-height: 108px;
  padding: 13px;
}

.step-card span,
.step-card strong,
.step-card em {
  display: block;
}

.step-card span {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(47, 111, 93, 0.1);
  color: var(--brand-deep);
  font-size: 13px;
  font-weight: 900;
}

.step-card strong {
  margin-top: 11px;
  font-size: 14px;
}

.step-card em {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.command-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #f7f9f7;
}

.command-box code {
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.command-box.compact {
  margin-top: 10px;
}

.install-ready {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.install-ready strong,
.install-ready span,
.install-ready em,
.install-empty strong,
.install-empty span {
  display: block;
}

.install-ready strong,
.install-empty strong {
  font-size: 14px;
}

.install-ready span,
.install-empty span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.install-ready em {
  border-radius: 8px;
  padding: 5px 9px;
  background: rgba(53, 92, 155, 0.08);
  color: var(--blue);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.install-empty {
  display: grid;
  justify-items: start;
  gap: 10px;
  min-height: 132px;
  align-content: center;
  border: 1px dashed rgba(47, 111, 93, 0.28);
  border-radius: 8px;
  padding: 16px;
  background: rgba(47, 111, 93, 0.06);
}

.template-button {
  min-height: 90px;
  padding: 12px;
  color: var(--ink);
  text-align: left;
}

.template-button:hover {
  border-color: rgba(47, 111, 93, 0.34);
}

.template-button strong,
.template-button span {
  display: block;
}

.template-button strong {
  font-size: 14px;
}

.template-button span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.check-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  border-top: 1px solid var(--line);
}

.check-row:first-child {
  border-top: 0;
}

.check-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
}

.check-dot.done {
  background: var(--brand);
}

.check-row strong {
  font-size: 13px;
}

.check-row em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.admin-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
}

.pilot-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 10px;
}

.wechat-form {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.check-toggle {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.check-toggle input {
  width: 16px;
  height: 16px;
  accent-color: var(--brand);
}

.login-code-box,
.invite-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--stage);
}

.invite-box {
  align-items: start;
}

.login-code-box span,
.login-code-box strong,
.login-code-box em,
.invite-box span {
  display: block;
}

.login-code-box span,
.invite-box span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.login-code-box strong {
  margin-top: 5px;
  color: var(--blue);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 17px;
  overflow-wrap: anywhere;
}

.login-code-box em {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.invite-box pre {
  margin: 8px 0 0;
  white-space: pre-wrap;
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
  line-height: 1.55;
}

.user-list {
  margin-top: 12px;
}

.admin-input {
  min-height: 40px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: var(--surface);
  color: var(--ink);
}

.admin-session {
  display: flex;
  align-items: center;
  min-height: 40px;
  border: 1px solid rgba(47, 111, 93, 0.2);
  border-radius: 8px;
  padding: 0 12px;
  background: rgba(47, 111, 93, 0.08);
  color: var(--brand-deep);
  font-size: 13px;
  font-weight: 900;
}

.panel-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.notice {
  border: 1px solid rgba(53, 92, 155, 0.2);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(53, 92, 155, 0.07);
  color: var(--blue);
  font-size: 14px;
  font-weight: 850;
}

.notice.warning {
  border-color: rgba(173, 106, 43, 0.22);
  background: rgba(173, 106, 43, 0.08);
  color: var(--amber);
}

.maintenance-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.maintenance-head strong,
.maintenance-head span,
.maintenance-head em {
  display: block;
}

.maintenance-head strong {
  font-size: 14px;
}

.maintenance-head span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.maintenance-head em {
  border-radius: 8px;
  padding: 5px 9px;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.maintenance-head em.ok {
  background: rgba(47, 111, 93, 0.1);
  color: var(--brand-deep);
}

.maintenance-head em.warn {
  background: rgba(173, 106, 43, 0.1);
  color: var(--amber);
}

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

.maintenance-card {
  padding: 12px;
}

.maintenance-card strong,
.maintenance-card span {
  display: block;
}

.maintenance-card strong {
  font-size: 13px;
}

.maintenance-card span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

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

.doc-links a {
  display: flex;
  align-items: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: var(--stage);
  color: var(--blue);
  font-size: 13px;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 130px;
  color: var(--muted);
  text-align: center;
}

.empty-state.compact {
  min-height: 64px;
}

/* 2026-05-03 dashboard restoration */
.ui-icon {
  display: block;
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.shell {
  grid-template-columns: 304px minmax(0, 1fr);
  gap: 0;
  max-width: none;
  padding: 0;
}

.sidebar {
  top: 0;
  height: 100vh;
  border-width: 0 1px 0 0;
  border-radius: 0;
  padding: 36px 22px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: none;
}

.brand {
  gap: 14px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  font-size: 24px;
}

.brand-title {
  font-size: 22px;
  line-height: 1;
}

.brand-subtitle {
  font-size: 14px;
}

.topnav {
  gap: 8px;
}

.topnav-button {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  border-radius: 8px;
  padding: 0 14px;
  color: #28342f;
  font-size: 16px;
  font-weight: 700;
}

.topnav-button.is-active {
  border-color: rgba(47, 111, 93, 0.1);
  background: #eaf3ec;
  color: var(--brand-deep);
}

.nav-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: currentColor;
}

.nav-icon .ui-icon {
  width: 24px;
  height: 24px;
}

.nav-badge {
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  border-radius: 999px;
  padding: 0 8px;
  background: #e56743;
  color: #fff;
  font-size: 14px;
  font-style: normal;
  font-weight: 800;
}

.nav-badge[hidden] {
  display: none;
}

.nav-divider {
  display: block;
  height: 1px;
  margin: 16px 0 8px;
  background: var(--line);
}

.sidebar-foot {
  display: grid;
  gap: 20px;
  margin-top: auto;
  border-top: 0;
  padding-top: 0;
}

.space-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 82px;
  border: 1px solid rgba(47, 111, 93, 0.16);
  border-radius: 8px;
  padding: 14px 18px;
  background: #eef7ef;
  color: var(--ink);
  text-align: left;
}

.space-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 900;
}

.space-card strong,
.space-card em {
  display: block;
}

.space-card strong {
  font-size: 16px;
}

.space-card em {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.space-arrow {
  color: var(--muted);
  font-size: 26px;
  line-height: 1;
}

.version-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  border-radius: 8px;
  padding: 0 20px;
  background: #f5f8f5;
  color: var(--muted);
}

.version-card strong {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.main-stage {
  min-height: 100vh;
  border: 0;
  border-radius: 0;
  background: #fbfcfa;
  box-shadow: none;
}

.stage-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 88px;
  padding: 0 38px;
}

.stage-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.icon-button,
.user-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: #0f1714;
}

.icon-button {
  width: 42px;
  height: 42px;
}

.icon-button .ui-icon {
  width: 26px;
  height: 26px;
}

.user-button {
  gap: 10px;
  min-height: 48px;
}

.user-button .space-avatar {
  width: 42px;
  height: 42px;
  font-size: 20px;
}

.user-button .nav-icon,
.user-button .ui-icon {
  width: 18px;
  height: 18px;
  color: var(--muted);
}

.app-shell {
  gap: 22px;
  padding: 8px 34px 38px;
}

.workbench-page {
  display: grid;
  gap: 22px;
}

.workbench-hero {
  align-items: center;
  min-height: 184px;
  border-color: var(--line);
  padding: 30px 52px;
  background: #fbfdfb;
}

.workbench-hero h1 {
  font-size: 46px;
  font-weight: 900;
}

.workbench-hero p {
  max-width: 760px;
  margin-top: 18px;
  font-size: 17px;
}

.node-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 390px;
  min-height: 124px;
  border-color: rgba(47, 111, 93, 0.16);
  padding: 24px 30px;
  background: #fdfefd;
}

.device-status-title {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #111916;
  font-size: 18px;
  font-weight: 850;
}

.node-summary strong {
  margin: 0;
}

.node-summary em {
  margin-top: 20px;
  font-size: 14px;
}

.device-illustration {
  color: #1f2a27;
}

.device-illustration .ui-icon {
  width: 72px;
  height: 72px;
  stroke-width: 1.55;
}

.workbench-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.metric-card.workbench-metric {
  display: flex;
  align-items: center;
  gap: 34px;
  min-height: 144px;
  padding: 26px 28px;
}

.metric-card.workbench-metric > div {
  min-width: 0;
}

.metric-card.workbench-metric > div > span {
  color: var(--ink);
  font-size: 16px;
  font-weight: 850;
}

.metric-card.workbench-metric strong {
  margin-top: 8px;
  font-size: 40px;
}

.metric-card.workbench-metric em {
  margin-top: 12px;
  font-size: 14px;
}

.metric-orb {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 78px;
  height: 78px;
  border-radius: 50%;
}

.metric-orb .ui-icon {
  width: 38px;
  height: 38px;
  stroke-width: 1.8;
}

.workbench-metric.green .metric-orb,
.action-orb.green,
.task-orb.green {
  background: #e4f3e7;
  color: #1d8151;
}

.workbench-metric.amber .metric-orb,
.action-orb.amber,
.task-orb.amber {
  background: #fff1dc;
  color: #c65b00;
}

.workbench-metric.blue .metric-orb,
.action-orb.blue,
.task-orb.blue {
  background: #e5effe;
  color: #2265a8;
}

.workbench-metric.amber strong {
  color: #c65b00;
}

.workbench-metric.blue strong {
  color: #2265a8;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr) minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}

.panel {
  padding: 24px;
}

.panel-title {
  margin-bottom: 22px;
  font-size: 20px;
}

.panel-title.with-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.link-button {
  border: 0;
  background: transparent;
  color: #128143;
  font-size: 14px;
  font-weight: 850;
}

.next-panel,
.recent-panel,
.privacy-panel {
  min-height: 420px;
}

.next-step {
  justify-items: stretch;
  gap: 20px;
  min-height: 0;
  align-content: start;
}

.next-action-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  min-height: 176px;
  border: 1px solid rgba(47, 111, 93, 0.18);
  border-radius: 8px;
  padding: 24px;
  background: #f6fbf7;
}

.action-orb {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border-radius: 50%;
}

.action-orb .ui-icon {
  width: 34px;
  height: 34px;
}

.next-step strong {
  display: block;
  font-size: 16px;
}

.next-step span {
  display: block;
  margin-top: 8px;
  color: #3d4944;
  font-size: 14px;
}

.next-action-card .primary-button,
.next-action-card .ghost-button {
  margin-top: 18px;
}

.icon-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.icon-text .ui-icon {
  width: 17px;
  height: 17px;
}

.next-step p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.next-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.next-actions-row .ghost-button {
  min-width: 128px;
}

.recent-task-list {
  display: grid;
}

.recent-task-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 14px;
  min-height: 82px;
  border-top: 1px solid var(--line);
}

.recent-task-row:first-child {
  border-top: 0;
}

.task-orb {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.task-orb .ui-icon {
  width: 25px;
  height: 25px;
}

.recent-task-row strong,
.recent-task-row span {
  display: block;
}

.recent-task-row strong {
  font-size: 15px;
}

.recent-task-row span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.status-pill {
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
  white-space: nowrap;
}

.status-pill.ok {
  background: #e8f5eb;
  color: #16824a;
}

.status-pill.warn,
.status-pill.neutral {
  background: #fff3df;
  color: #bb6500;
}

.status-pill.danger {
  background: #fdebe9;
  color: var(--red);
}

.recent-task-row time {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.row-chevron {
  color: #9aa5a0;
}

.row-chevron .ui-icon {
  width: 18px;
  height: 18px;
}

.wide-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  margin-top: 10px;
  border: 0;
  background: transparent;
  color: #16824a;
  font-weight: 850;
}

.wide-link-button .ui-icon {
  width: 18px;
  height: 18px;
}

.privacy-panel {
  position: static;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-color: var(--line);
  background: var(--surface);
}

.privacy-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 34px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
}

.privacy-title .ui-icon {
  width: 24px;
  height: 24px;
}

.privacy-stack {
  display: grid;
}

.privacy-block {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 26px;
  align-items: center;
  min-height: 128px;
  border-top: 1px solid var(--line);
}

.privacy-block:first-child {
  border-top: 0;
}

.privacy-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 8px;
  background: #eef6ef;
  color: #197548;
}

.privacy-icon .ui-icon {
  width: 36px;
  height: 36px;
}

.privacy-block strong,
.privacy-block em {
  display: block;
}

.privacy-block strong {
  font-size: 16px;
}

.privacy-block em {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  font-style: normal;
  line-height: 1.55;
}

.boundary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: auto;
}

.boundary-link .ui-icon {
  width: 16px;
  height: 16px;
}

/* 2026-05-03 compact and repair pass */
body {
  font-size: 14px;
}

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

.sidebar {
  gap: 20px;
  padding: 30px 20px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  font-size: 20px;
}

.brand-title {
  font-size: 19px;
}

.brand-subtitle {
  font-size: 12px;
}

.topnav-button {
  grid-template-columns: 26px minmax(0, 1fr) auto;
  min-height: 48px;
  gap: 10px;
  padding: 0 13px;
  font-size: 14px;
}

.nav-icon,
.nav-icon .ui-icon {
  width: 21px;
  height: 21px;
}

.nav-badge {
  min-width: 24px;
  height: 24px;
  font-size: 12px;
}

.space-card {
  min-height: 72px;
  gap: 12px;
  padding: 12px 16px;
}

.sidebar-foot .space-card .space-avatar,
.user-button .space-avatar {
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
}

.sidebar-foot .space-card .space-avatar {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  font-size: 17px;
}

.space-copy {
  min-width: 0;
}

.sidebar-foot .space-card strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-foot .space-card em {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.space-arrow {
  font-size: 20px;
}

.version-card {
  min-height: 44px;
  padding: 0 18px;
}

.stage-topbar {
  min-height: 74px;
  padding: 0 34px;
}

.icon-button {
  width: 38px;
  height: 38px;
}

.icon-button .ui-icon {
  width: 22px;
  height: 22px;
}

.user-button .space-avatar {
  width: 38px;
  height: 38px;
  font-size: 17px;
}

.app-shell {
  gap: 18px;
  padding: 6px 34px 34px;
}

.workbench-page {
  gap: 18px;
}

.workbench-hero {
  min-height: 156px;
  padding: 26px 44px;
}

.workbench-hero h1 {
  font-size: 38px;
}

.workbench-hero p {
  margin-top: 14px;
  font-size: 15px;
}

.node-summary {
  min-width: 340px;
  min-height: 106px;
  padding: 20px 26px;
}

.device-status-title {
  font-size: 16px;
}

.node-summary em {
  margin-top: 14px;
  font-size: 13px;
}

.device-illustration .ui-icon {
  width: 56px;
  height: 56px;
}

.workbench-metrics {
  gap: 16px;
}

.metric-card.workbench-metric {
  gap: 28px;
  min-height: 118px;
  padding: 22px 26px;
}

.metric-orb {
  width: 62px;
  height: 62px;
}

.metric-orb .ui-icon {
  width: 31px;
  height: 31px;
}

.metric-card.workbench-metric > div > span {
  font-size: 14px;
}

.metric-card.workbench-metric strong {
  font-size: 34px;
}

.metric-card.workbench-metric em {
  margin-top: 9px;
  font-size: 12px;
}

.dashboard-grid {
  grid-template-columns: minmax(0, 0.98fr) minmax(390px, 1.14fr) minmax(0, 0.98fr);
  gap: 16px;
}

.panel {
  padding: 20px;
}

.panel-title {
  margin-bottom: 18px;
  font-size: 17px;
}

.next-panel,
.recent-panel,
.privacy-panel {
  min-height: 372px;
}

.next-action-card {
  min-height: 148px;
  gap: 18px;
  padding: 20px;
}

.action-orb {
  width: 54px;
  height: 54px;
}

.action-orb .ui-icon {
  width: 28px;
  height: 28px;
}

.next-step {
  gap: 16px;
}

.next-step strong {
  font-size: 14px;
}

.next-step span,
.next-step p {
  font-size: 12px;
}

.next-actions-row {
  gap: 12px;
}

.recent-task-row {
  grid-template-columns: auto minmax(178px, 1fr) auto auto;
  gap: 12px;
  min-height: 66px;
}

.recent-task-row > div {
  min-width: 0;
}

.task-orb {
  width: 42px;
  height: 42px;
}

.task-orb .ui-icon {
  width: 21px;
  height: 21px;
}

.recent-task-row strong,
.recent-task-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-task-row strong {
  font-size: 13px;
}

.recent-task-row span,
.recent-task-row time {
  font-size: 12px;
}

.status-pill {
  padding: 4px 9px;
  font-size: 11px;
}

.row-chevron {
  display: none;
}

.wide-link-button {
  min-height: 40px;
  font-size: 13px;
}

.privacy-title {
  margin-bottom: 26px;
  font-size: 17px;
}

.privacy-block {
  gap: 20px;
  min-height: 108px;
}

.privacy-icon {
  width: 52px;
  height: 52px;
}

.privacy-icon .ui-icon {
  width: 29px;
  height: 29px;
}

.privacy-block strong {
  font-size: 14px;
}

.privacy-block em {
  font-size: 12px;
}

.page-head h1 {
  font-size: 30px;
}

.page-head p {
  font-size: 14px;
}

.metric-card strong {
  font-size: 24px;
}

.list-row {
  min-height: 50px;
}

.mini-button.primary-mini {
  border-color: rgba(47, 111, 93, 0.28);
  background: rgba(47, 111, 93, 0.1);
  color: var(--brand-deep);
}

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

  .stage-topbar {
    min-height: 72px;
  }

  .workbench-layout {
    grid-template-columns: 1fr;
  }

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

  .sidebar {
    position: static;
    height: auto;
    border-width: 0 0 1px;
  }

  .privacy-panel {
    position: static;
  }

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

  .topnav-button {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 5px;
    min-height: 72px;
    text-align: center;
  }

  .nav-badge {
    position: absolute;
    margin: -32px 0 0 38px;
  }

  .sidebar-foot {
    display: none;
  }

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

@media (max-width: 820px) {
  .shell {
    padding: 10px;
  }

  .sidebar {
    display: flex;
    gap: 14px;
  }

  .main-stage {
    min-height: auto;
  }

  .mobile-topbar {
    display: none;
  }

  .app-shell {
    padding: 14px;
  }

  .page-head,
  .workbench-hero,
  .review-toolbar,
  .maintenance-head,
  .install-ready {
    align-items: stretch;
    flex-direction: column;
  }

  .metric-grid,
  .workbench-main .metric-grid,
  .workbench-metrics,
  .split-grid,
  .dashboard-grid,
  .workbench-layout,
  .template-grid,
  .step-grid,
  .maintenance-grid,
  .doc-links,
  .pill-grid {
    grid-template-columns: 1fr;
  }

  .node-summary {
    min-width: 0;
  }

  .workbench-hero {
    padding: 24px;
  }

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

  .metric-card.workbench-metric,
  .next-action-card,
  .recent-task-row,
  .privacy-block {
    grid-template-columns: 1fr;
  }

  .recent-task-row {
    justify-items: start;
    gap: 8px;
    padding: 14px 0;
  }

  .list-row,
  .detail-row {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }

  .row-meta,
  .permission-actions {
    justify-content: flex-start;
    min-width: 0;
    text-align: left;
  }

  .permission-row,
  .admin-row,
  .pilot-form,
  .login-code-box,
  .invite-box,
  .command-box {
    grid-template-columns: 1fr;
  }

  .page-head h1,
  .workbench-hero h1 {
    font-size: 26px;
  }
}

/* 2026-05-03 private control-room redesign */
:root {
  --bg: #f3f5f2;
  --stage: #fbfcfa;
  --surface-soft: #f5f8f5;
  --line: #d8e2db;
  --line-strong: #c8d7cf;
  --ink: #17231f;
  --muted: #65736d;
  --brand: #2f7d65;
  --brand-deep: #185342;
  --blue: #1f67a7;
  --amber: #b65f00;
  --red: #b84c49;
  --shadow: none;
}

body {
  background: var(--bg);
  color: var(--ink);
}

.page-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.control-room {
  gap: 18px;
}

.control-hero {
  min-height: 168px;
  border-color: var(--line);
  padding: 30px 44px;
  background: #fcfdfb;
}

.control-hero .eyebrow {
  margin-bottom: 10px;
}

.control-hero h1 {
  font-size: 40px;
  line-height: 1.05;
}

.control-hero p {
  max-width: 720px;
  margin-top: 14px;
  color: #53635c;
  font-size: 15px;
}

.compact-actions {
  margin-top: 20px;
}

.mac-status-strip {
  min-width: 360px;
  background: #f8fbf8;
}

.command-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.55fr);
  gap: 16px;
  align-items: stretch;
}

.command-panel {
  min-height: 318px;
}

.panel-title.with-kicker {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.panel-title.with-kicker em {
  max-width: 360px;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.45;
  text-align: right;
}

.metric-rail {
  display: grid;
  gap: 12px;
}

.metric-rail .metric-card.workbench-metric {
  min-height: 98px;
  gap: 18px;
  padding: 18px;
}

.metric-rail .metric-orb {
  width: 48px;
  height: 48px;
}

.metric-rail .metric-orb .ui-icon {
  width: 24px;
  height: 24px;
}

.metric-rail .metric-card.workbench-metric strong {
  font-size: 28px;
}

.control-dashboard {
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.92fr) minmax(280px, 0.82fr);
}

.control-dashboard .privacy-panel,
.control-dashboard .readiness-panel,
.control-dashboard .recent-panel {
  min-height: 350px;
}

.readiness-panel .check-list {
  margin-top: 0;
}

.next-panel .next-action-card {
  min-height: 184px;
  border-color: rgba(47, 125, 101, 0.18);
  background: #f5fbf7;
}

.next-panel .next-step p {
  max-width: 720px;
}

.task-surface {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
  align-items: start;
}

.task-summary-panel .detail-row strong {
  color: var(--brand-deep);
}

.task-queue-panel .panel-title {
  margin-bottom: 6px;
}

.task-queue-row {
  min-height: 62px;
}

.task-queue-row .row-meta {
  min-width: 180px;
}

.install-panel {
  border-color: rgba(47, 125, 101, 0.2);
}

.command-box code {
  word-break: break-word;
}

.primary-button:focus-visible,
.ghost-button:focus-visible,
.wide-button:focus-visible,
.mini-button:focus-visible,
.topnav-button:focus-visible,
.icon-button:focus-visible,
.user-button:focus-visible,
.space-card:focus-visible,
.link-button:focus-visible,
.wide-link-button:focus-visible,
.template-button:focus-visible {
  outline: 3px solid rgba(47, 125, 101, 0.28);
  outline-offset: 2px;
}

@media (max-width: 1180px) {
  .control-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .mac-status-strip {
    min-width: 0;
  }

  .command-grid,
  .task-surface,
  .control-dashboard {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 820px) {
  body {
    background: #f1f4f1;
  }

  .shell {
    display: block;
    min-height: 100vh;
    padding: 0;
  }

  .sidebar {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 40;
    display: block;
    height: 78px;
    border-width: 1px 0 0;
    border-radius: 0;
    padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
  }

  .sidebar > .brand,
  .sidebar-foot,
  .nav-divider {
    display: none;
  }

  .topnav {
    display: flex;
    gap: 4px;
    height: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  .topnav::-webkit-scrollbar {
    display: none;
  }

  .topnav-button {
    grid-template-columns: 1fr;
    justify-items: center;
    align-content: center;
    gap: 4px;
    flex: 0 0 74px;
    min-height: 62px;
    border-radius: 8px;
    padding: 7px 6px;
    font-size: 11px;
    line-height: 1.15;
    text-align: center;
    white-space: normal;
  }

  .topnav-button .nav-icon,
  .topnav-button .nav-icon .ui-icon {
    width: 20px;
    height: 20px;
  }

  .nav-badge {
    position: absolute;
    top: 5px;
    right: 8px;
    margin: 0;
  }

  .main-stage {
    min-height: 100vh;
    padding-bottom: 92px;
  }

  .stage-topbar {
    min-height: 58px;
    padding: 0 18px;
  }

  .mobile-topbar {
    display: flex;
    align-items: center;
    min-height: 62px;
    border-top: 1px solid var(--line);
    padding: 10px 18px 8px;
    background: #fbfcfa;
  }

  .mobile-topbar .brand-button {
    width: auto;
  }

  .mobile-topbar .brand-mark {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  .mobile-topbar .brand-title {
    font-size: 18px;
  }

  .stage-actions {
    gap: 12px;
    margin-left: auto;
  }

  .app-shell {
    gap: 16px;
    padding: 14px 14px 22px;
  }

  .page-head {
    gap: 14px;
  }

  .page-head h1,
  .control-hero h1,
  .workbench-hero h1 {
    font-size: 27px;
    line-height: 1.12;
  }

  .page-head p,
  .control-hero p {
    font-size: 13px;
    line-height: 1.65;
  }

  .page-actions,
  .compact-actions,
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .control-hero .compact-actions {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .control-hero .compact-actions .primary-button,
  .control-hero .compact-actions .ghost-button {
    min-height: 40px;
    padding: 8px 10px;
    font-size: 13px;
  }

  .control-hero {
    min-height: 0;
    padding: 22px;
  }

  .mac-status-strip {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 92px;
    padding: 16px;
  }

  .device-illustration .ui-icon {
    width: 44px;
    height: 44px;
  }

  .command-grid,
  .control-dashboard,
  .task-surface {
    gap: 14px;
  }

  .command-panel {
    min-height: 0;
  }

  .panel {
    padding: 20px;
  }

  .panel-title.with-kicker {
    display: grid;
    gap: 6px;
  }

  .panel-title.with-kicker em {
    max-width: none;
    text-align: left;
  }

  .metric-rail {
    grid-template-columns: 1fr;
  }

  .metric-rail .metric-card.workbench-metric,
  .metric-card.workbench-metric {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 18px;
    min-height: 104px;
  }

  .next-action-card {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    min-height: 132px;
    padding: 16px;
  }

  .action-orb {
    width: 46px;
    height: 46px;
  }

  .action-orb .ui-icon {
    width: 24px;
    height: 24px;
  }

  .next-action-card .primary-button,
  .next-action-card .ghost-button {
    margin-top: 12px;
  }

  .recent-task-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
  }

  .recent-task-row .status-pill,
  .recent-task-row time {
    grid-column: 2;
  }

  .task-template-panel .template-grid,
  .step-grid,
  .maintenance-grid {
    grid-template-columns: 1fr;
  }

  .task-queue-row {
    gap: 8px;
  }

  .task-queue-row .row-meta {
    min-width: 0;
  }

  .command-box {
    align-items: stretch;
  }

  .command-box .mini-button {
    width: 100%;
  }
}

/* Final override for the reference-style dashboard layer. */
body {
  background: #f6f8fb;
}

.main-stage {
  background: #fbfcff;
}

.mission-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.36fr) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

.priority-panel {
  min-height: 286px;
  border-color: #109353;
  box-shadow: 0 16px 36px rgba(17, 51, 36, 0.08);
}

.priority-panel .next-action-card {
  grid-template-columns: auto minmax(0, 1fr);
  min-height: 150px;
  border: 0;
  padding: 12px 0 8px;
  background: transparent;
}

.priority-panel .action-orb {
  width: 82px;
  height: 82px;
  background: #e8f5ee;
  color: #09924f;
}

.priority-panel .action-orb .ui-icon {
  width: 46px;
  height: 46px;
  stroke-width: 1.8;
}

.priority-panel .next-step strong {
  font-size: 24px;
  line-height: 1.2;
}

.workbench-lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.98fr);
  gap: 14px;
  align-items: stretch;
}

.device-summary-card {
  display: grid;
  grid-template-columns: 126px minmax(0, 1fr);
  align-items: center;
  column-gap: 18px;
  row-gap: 10px;
  min-height: 132px;
  padding: 24px;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.boundary-ledger .privacy-block {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
}

@media (min-width: 821px) {
  body {
    padding-bottom: 34px;
  }

  .shell {
    grid-template-columns: 248px minmax(0, 1fr);
    min-height: calc(100vh - 34px);
  }

  .sidebar {
    top: 0;
    height: calc(100vh - 34px);
    padding: 26px 12px 28px;
    background: #ffffff;
  }

  .brand {
    padding: 0 14px;
  }

  .brand-mark {
    width: 31px;
    height: 31px;
    border-radius: 9px;
    background: linear-gradient(145deg, #34c978, #159454 54%, #94e6c1);
    color: transparent;
    clip-path: polygon(50% 0, 91% 24%, 91% 75%, 50% 100%, 9% 75%, 9% 24%);
  }

  .brand-title {
    font-size: 22px;
  }

  .brand-subtitle {
    display: none;
  }

  .stage-topbar {
    min-height: 72px;
    border-bottom: 1px solid #e4e9ef;
    padding: 0 24px;
    background: rgba(255, 255, 255, 0.88);
  }

  .app-shell {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 28px 24px;
  }
}

@media (max-width: 1280px) {
  .mission-grid,
  .workbench-lower-grid {
    grid-template-columns: 1fr;
  }

  .device-summary-grid {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }
}

@media (max-width: 820px) {
  .mission-grid,
  .workbench-lower-grid,
  .metric-row {
    grid-template-columns: 1fr;
  }

  .priority-panel .next-action-card,
  .device-summary-card {
    grid-template-columns: 1fr;
  }

  .priority-panel .action-orb {
    width: 58px;
    height: 58px;
  }

  .priority-panel .action-orb .ui-icon {
    width: 32px;
    height: 32px;
  }

  .priority-panel .next-step strong {
    font-size: 18px;
  }
}

.task-table-panel .recent-task-list {
  border-top: 0;
}

.task-table-panel .recent-task-head,
.task-table-panel .recent-task-row {
  display: grid;
  grid-template-columns: 34px minmax(220px, 1fr) 92px 100px;
  align-items: center;
  gap: 12px;
}

.task-table-panel .recent-task-head {
  min-height: 32px;
  border-bottom: 1px solid var(--line);
  color: #7a858f;
  font-size: 12px;
  font-weight: 800;
}

.task-table-panel .recent-task-row {
  min-height: 52px;
  border-top: 0;
  border-bottom: 1px solid var(--line);
}

.task-table-panel .recent-task-row > div {
  min-width: 0;
}

.task-table-panel .recent-task-row strong {
  overflow: hidden;
  color: #1c2723;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-table-panel .recent-task-row span {
  display: none;
}

.task-table-panel .status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  width: auto;
  min-width: 58px;
}

.task-table-panel .recent-task-row time {
  justify-self: start;
}

@media (max-width: 820px) {
  .task-table-panel .recent-task-head {
    display: none;
  }

  .task-table-panel .recent-task-row {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    min-height: 74px;
    padding: 12px 0;
  }

  .task-table-panel .recent-task-row .status-pill,
  .task-table-panel .recent-task-row time {
    grid-column: 2;
  }
}

.brand-mark {
  overflow: hidden;
  background: #ffffff;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 821px) {
  .brand-mark {
    clip-path: none;
    border-radius: 8px;
    background: #ffffff;
  }
}

.mac-device-visual {
  overflow: hidden;
  margin: 0;
  width: 118px;
  height: 70px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.device-visual-stack {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: 0;
}

.device-summary-card .device-status-title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #05944f;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
}

.device-visual-name {
  max-width: 152px;
  color: #26342e;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
  overflow-wrap: anywhere;
  white-space: normal;
}

.device-summary-main {
  min-width: 0;
}

.device-summary-card {
  grid-template-columns: 126px minmax(0, 1fr);
}

.device-summary-card .device-visual-stack {
  grid-row: 1 / span 2;
}

.device-summary-card > .ghost-button {
  grid-column: 2;
  justify-self: end;
  white-space: nowrap;
}

.mac-device-visual::before,
.mac-device-visual::after {
  display: none;
}

.mac-device-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.device-config-line {
  margin-top: 10px;
  color: #5f6b73;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}

.resource-strip,
.resource-panel {
  display: grid;
  gap: 8px;
}

.resource-strip {
  grid-template-columns: repeat(auto-fit, minmax(126px, 1fr));
  margin-top: 10px;
}

.resource-strip.pending {
  display: block;
  border: 1px dashed #cfdad4;
  border-radius: 8px;
  padding: 9px 10px;
  background: #f8fbf8;
  color: #66736d;
  font-size: 12px;
  font-weight: 750;
}

.resource-meter {
  display: grid;
  grid-template-columns: auto minmax(36px, 1fr) auto;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: #26342e;
  font-size: 11px;
  font-weight: 850;
}

.resource-meter em {
  color: #6b767f;
  font-style: normal;
}

.resource-meter i {
  position: relative;
  display: block;
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7ece8;
}

.resource-meter b {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: #168454;
}

.resource-meter.warm b {
  background: #c87922;
}

.resource-meter.hot b {
  background: #b84c49;
}

.resource-meter.muted b {
  background: #a8b3ad;
}

.resource-panel {
  margin-bottom: 14px;
}

.compact-detail-list .detail-row {
  min-height: 42px;
}

.profile-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 10px;
}

/* 2026-05-03 asset and mobile polish */
.brand-mark {
  width: 44px;
  height: 44px;
}

.brand-mark img {
  object-fit: contain;
  transform: scale(1.06);
}

@media (max-width: 820px) {
  .mobile-topbar .brand-mark {
    width: 40px;
    height: 40px;
  }

  .mac-device-visual {
    width: 104px;
    height: 58px;
  }

  .device-summary-card {
    grid-template-columns: 1fr;
  }

  .device-summary-card .device-visual-stack {
    justify-items: start;
  }

  .resource-strip {
    grid-template-columns: 1fr;
  }

  .sidebar {
    height: 70px;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  }

  .topnav-button {
    flex-basis: 70px;
    min-height: 58px;
    padding: 5px;
  }

  .main-stage {
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }

  .priority-panel {
    min-height: 0;
  }

  .priority-panel .panel-title {
    margin-bottom: 10px;
  }

  .priority-panel .next-step {
    min-height: 0;
    gap: 10px;
  }

  .priority-panel .next-action-card {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 14px;
    min-height: 0;
    padding: 4px 0 0;
    text-align: left;
  }

  .priority-panel .next-action-card > div {
    min-width: 0;
  }

  .priority-panel .action-orb {
    width: 52px;
    height: 52px;
  }

  .priority-panel .action-orb .ui-icon {
    width: 28px;
    height: 28px;
  }

  .priority-panel .next-step strong {
    font-size: 18px;
    line-height: 1.25;
  }

  .priority-panel .next-step span {
    margin-top: 6px;
    font-size: 13px;
  }

  .priority-panel .next-button-row {
    margin-top: 12px;
  }

  .next-footnote {
    gap: 14px;
    margin-top: 6px;
    padding-top: 12px;
  }

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

/* 2026-05-03 Mac mini card label and summary alignment */
.device-visual-name > span {
  display: block;
}

.device-summary-card .device-summary-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
  gap: 8px;
}

.device-summary-card .resource-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.device-summary-card .device-summary-grid {
  margin-top: 0;
}

.device-summary-card .device-summary-grid > span,
.device-detail-chip {
  min-height: 44px;
}

.device-detail-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  border: 1px solid #d7e4dc;
  border-radius: 8px;
  padding: 0 10px;
  background: #ffffff;
  color: #143f34;
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.device-detail-chip .ui-icon {
  width: 14px;
  height: 14px;
  stroke-width: 2.2;
}

@media (max-width: 820px) {
  .device-summary-card .device-summary-grid,
  .device-summary-card .resource-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .device-summary-card .device-summary-grid,
  .device-summary-card .resource-strip {
    grid-template-columns: 1fr;
  }
}

/* 2026-05-03 brand and orb alignment polish */
.brand-mark {
  overflow: hidden;
  flex: 0 0 78px;
  width: 78px;
  height: 49px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: none;
}

.brand-title {
  display: inline-flex;
  align-items: baseline;
  color: #0d1713;
  font-family: "Avenir Next", Avenir, Futura, "Gill Sans", "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
  font-size: 23px;
  font-weight: 850;
  font-stretch: normal;
  letter-spacing: 0.01em;
  line-height: 1;
  text-transform: uppercase;
  transform: none;
  transform-origin: left center;
}

.brand-title-yes {
  color: #08894f;
  font-weight: 900;
  font-style: italic;
  transform: skewX(-5deg);
  transform-origin: left center;
}

.brand-title-dot {
  margin: 0 1px 0 2px;
  color: #08894f;
  font-weight: 900;
}

.brand-title-ceo {
  color: #101716;
  font-weight: 800;
}

.brand-subtitle {
  margin-top: 5px;
  font-weight: 750;
}

.priority-panel .action-orb,
.metric-row .metric-orb {
  position: relative;
  display: grid;
  place-items: center;
  line-height: 0;
}

.priority-panel .action-orb .ui-icon,
.metric-row .metric-orb .ui-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  margin: 0;
  transform: translate(-50%, -50%);
}

@media (max-width: 820px) {
  .mobile-topbar .brand-mark {
    flex-basis: 70px;
    width: 70px;
    height: 44px;
  }
}
