:root {
  --yw: #eab308;
}
.sec {
  padding: 80px 0;
}
.h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 300;
  letter-spacing: -1.5px;
  line-height: 1.15;
}
.h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 300;
  letter-spacing: -1px;
  line-height: 1.2;
}
.bl {
  font-size: 17px;
  line-height: 1.7;
  color: var(--t2);
  max-width: 640px;
}
.hero {
  padding: 140px 0 80px;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 500px;
  background: linear-gradient(180deg, #edf7fb 0%, var(--bg) 100%);
  z-index: -1;
}
.back-btn {
  font-size: 13px;
  color: var(--t2);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}
.back-btn:hover {
  color: var(--hd);
}
@media (max-width: 768px) {
  .ct {
    padding: 0 20px;
  }
  .sec {
    padding: 60px 0;
  }
}

:root {
  --paper: #f8f7f4;
  --surface: #ffffff;
  --surface-soft: #f4f6f5;
  --surface-blue: #eef7f9;
  --line: #e2e5e3;
  --line-strong: #d4d9d6;
  --ink: #17201d;
  --muted: #69736f;
  --quiet: #9aa39f;
  --blue: #3ba0c4;
  --blue-deep: #267d9c;
  --blue-pale: #cae9f5;
  --green: #2d8b5a;
  --green-pale: #e8f6ed;
  --amber: #b7791f;
  --amber-pale: #fff5dd;
  --red: #b94b55;
  --red-pale: #fff0f1;
  --ga: #d99aa0;
  --sm: #91d7a0;
  --rd: #9ebbc6;
  --ops: #e4d888;
  --shadow: 0 34px 90px rgba(26, 34, 31, 0.16);
}
button {
  font: inherit;
}

/* MacBook */
.device-stage {
  margin: 0 auto;
  position: relative;
}
.device-stage::before {
  content: '';
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 12px;
  height: 90px;
  background: radial-gradient(ellipse, rgba(26, 32, 30, 0.17), transparent 66%);
  filter: blur(20px);
}
.macbook {
  position: relative;
  width: 100%;
  margin: 0 auto;
}
.mac-lid {
  position: relative;
  width: 91%;
  aspect-ratio: 16/10;
  margin: 0 auto;
  padding: 10px 10px 12px;
  border-radius: 25px 25px 8px 8px;
  background: linear-gradient(145deg, #202523, #0b0e0d 62%);
  box-shadow:
    var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.mac-lid::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 4px;
  width: 92px;
  height: 25px;
  transform: translateX(-50%);
  border-radius: 0 0 14px 14px;
  background: #0b0e0d;
  z-index: 5;
}
.mac-camera {
  position: absolute;
  left: 50%;
  top: 9px;
  width: 6px;
  height: 6px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #18211f;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
  z-index: 6;
}
.mac-display {
  height: 100%;
  border-radius: 16px 16px 4px 4px;
  overflow: hidden;
  background: var(--surface-soft);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.mac-menubar {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 14px;
  background: linear-gradient(180deg, #fcfcfd 0%, #eef0f3 100%);
  border-bottom: 1px solid #dde1e6;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  font-family:
    -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Helvetica, Arial, sans-serif;
}
.traffic {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
}
.traffic i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, #ff6a5f, #e0443e);
  box-shadow:
    inset 0 0.5px 0.5px rgba(255, 255, 255, 0.4),
    inset 0 -0.5px 0.5px rgba(0, 0, 0, 0.15);
}
.traffic i:nth-child(2) {
  background: radial-gradient(circle at 32% 28%, #ffc12f, #dfa023);
}
.traffic i:nth-child(3) {
  background: radial-gradient(circle at 32% 28%, #2bd63f, #1aad2c);
}
.mac-address {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 27px;
  padding: 0 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #dde1e6;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.05);
}
.mac-address svg {
  width: 10px;
  height: 12px;
  flex: 0 0 auto;
  stroke: #6b8f6f;
  fill: none;
  stroke-width: 1.6;
}
.mac-address b {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: -0.1px;
  color: #3c4149;
  white-space: nowrap;
}
.mac-address span {
  font-size: 12.5px;
  font-weight: 400;
  letter-spacing: -0.1px;
  color: #9aa0a8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mac-screen {
  height: calc(100% - 40px);
  overflow: hidden;
  background: #f5f7f6;
}
.mac-demo-viewport {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #fff;
  position: relative;
}
.mac-demo-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
  transform-origin: top left;
}
.mac-base {
  position: relative;
  width: 100%;
  height: 32px;
  background: linear-gradient(180deg, #f5f6f7 0, #d7dade 36%, #b9bdc2 83%, #a8adb2 100%);
  border-radius: 2px 2px 17px 17px;
  box-shadow:
    0 20px 35px rgba(20, 25, 23, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -2px 3px rgba(0, 0, 0, 0.07);
}
.mac-base::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  width: 170px;
  height: 9px;
  transform: translateX(-50%);
  border-radius: 0 0 9px 9px;
  background: linear-gradient(180deg, rgba(60, 64, 67, 0.17), rgba(255, 255, 255, 0.2));
}
.mac-foot {
  position: absolute;
  bottom: -5px;
  width: 5%;
  height: 6px;
  border-radius: 0 0 5px 5px;
  background: #262a29;
}
.mac-foot.left {
  left: 5%;
}
.mac-foot.right {
  right: 5%;
}

/* Application shell */
.app {
  position: relative;
  height: 100%;
  display: grid;
  grid-template-columns: 176px minmax(0, 1fr);
  background: #f6f8f7;
  color: var(--ink);
}
.sidebar {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 17px 13px 14px;
  background: rgba(249, 250, 249, 0.96);
  border-right: 1px solid var(--line);
}
.app-brand {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0 9px;
  margin-bottom: 16px;
}
.app-brand-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.app-brand .app-logo-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex: 0 0 auto;
  animation: none;
}
.app-brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 19px;
  font-weight: 500;
  line-height: 1;
  color: #303338;
  white-space: nowrap;
}
.app-brand-caption {
  display: block;
  font-size: 6.8px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--quiet);
  white-space: nowrap;
}
.workspace-select {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 3px 17px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(22, 31, 28, 0.025);
}
.workspace-mark {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--surface-blue);
  color: var(--blue-deep);
}
.workspace-mark svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}
.workspace-copy {
  min-width: 0;
  flex: 1;
}
.workspace-copy b {
  display: block;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
}
.workspace-copy span {
  display: block;
  margin-top: 2px;
  font-size: 8px;
  color: var(--quiet);
}
.chevron {
  width: 12px;
  height: 12px;
  color: var(--quiet);
}
.nav-section-label {
  padding: 0 10px;
  margin: 0 0 7px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: #a3aba7;
}
.app-nav {
  display: grid;
  gap: 3px;
}
.nav-btn {
  width: 100%;
  height: 34px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #65706c;
  font-size: 10px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: 0.18s ease;
}
.nav-btn:hover {
  background: #f0f3f1;
  color: #26312d;
}
.nav-btn.active {
  background: #e9f4f6;
  color: #1d718d;
  box-shadow: inset 0 0 0 1px rgba(59, 160, 196, 0.08);
}
.nav-btn .ico {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  flex: 0 0 auto;
}
.nav-badge {
  margin-left: auto;
  display: grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  border-radius: 8px;
  background: #fff0df;
  color: #a65f12;
  font-size: 8px;
  font-weight: 800;
}
.nav-btn.active .nav-badge {
  background: #fff;
}
.sidebar-spacer {
  flex: 1;
}
.system-card {
  padding: 11px;
  border: 1px solid #dce8e1;
  border-radius: 11px;
  background: linear-gradient(145deg, #f3faf6, #fff);
}
.system-top {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #426650;
  font-size: 9px;
  font-weight: 700;
}
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3caf76;
  box-shadow: 0 0 0 4px rgba(60, 175, 118, 0.11);
  animation: pulse 2s ease-in-out infinite;
}
.system-card p {
  margin: 7px 0 0;
  color: #7b8981;
  font-size: 8px;
  line-height: 1.45;
}
.user-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 12px;
  padding: 9px 7px 0;
  border-top: 1px solid var(--line);
}
.avatar {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(145deg, #cae9f5, #9bcbd9);
  color: #225b70;
  font-size: 9px;
  font-weight: 800;
}
.user-copy {
  min-width: 0;
  flex: 1;
}
.user-copy b {
  display: block;
  font-size: 9px;
}
.user-copy span {
  display: block;
  margin-top: 2px;
  font-size: 8px;
  color: var(--quiet);
}

.main {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #f6f8f7;
}
.topbar {
  height: 51px;
  flex: 0 0 51px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  background: rgba(255, 255, 255, 0.84);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 9px;
  color: var(--quiet);
}
.breadcrumb b {
  color: #42504b;
}
.breadcrumb svg {
  width: 10px;
  height: 10px;
}
.topbar-spacer {
  flex: 1;
}
.sync-state {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 9px;
  font-weight: 700;
  color: var(--green);
}
.sync-state .live-dot {
  width: 6px;
  height: 6px;
  box-shadow: none;
}
.icon-btn,
.search-btn,
.range-btn,
.primary-btn,
.ghost-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: #5c6863;
  cursor: pointer;
  transition: 0.18s ease;
}
.icon-btn {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
}
.icon-btn:hover,
.search-btn:hover,
.range-btn:hover,
.ghost-btn:hover {
  border-color: var(--line-strong);
  color: var(--ink);
  box-shadow: 0 4px 12px rgba(25, 35, 31, 0.05);
}
.icon-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}
.search-btn {
  height: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border-radius: 9px;
  font-size: 8px;
}
.search-btn svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}
.search-btn kbd {
  margin-left: 6px;
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #f7f8f7;
  color: #98a19d;
  font: 600 7px 'DM Sans';
}
.view-scroll {
  min-height: 0;
  flex: 1;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #cdd4d0 transparent;
}
.view-pane {
  display: none;
  padding: 19px 20px 24px;
}
.view-pane.active {
  display: block;
  animation: viewIn 0.26s ease;
}
.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 15px;
}
.eyebrow {
  margin-bottom: 4px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.25px;
  text-transform: uppercase;
  color: var(--blue-deep);
}
.page-head h2 {
  margin: 0;
  font-size: 19px;
  letter-spacing: -0.45px;
  line-height: 1.2;
}
.page-head p {
  margin: 5px 0 0;
  font-size: 9px;
  color: var(--muted);
}
.page-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}
.range-btn,
.primary-btn,
.ghost-btn {
  height: 30px;
  padding: 0 10px;
  border-radius: 9px;
  font-size: 8px;
  font-weight: 700;
}
.range-btn {
  display: flex;
  align-items: center;
  gap: 7px;
}
.range-btn svg {
  width: 11px;
  height: 11px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}
.primary-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  border-color: #2f91b4;
  background: #369bc0;
  color: #fff;
  box-shadow: 0 5px 14px rgba(59, 160, 196, 0.18);
}
.primary-btn:hover {
  background: #2b8eaf;
}
.primary-btn svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 10px;
}
.metric {
  position: relative;
  min-width: 0;
  padding: 11px 12px 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 5px 18px rgba(23, 33, 29, 0.025);
  overflow: hidden;
}
.metric::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent, var(--blue));
}
.metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.metric-label {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.55px;
  text-transform: uppercase;
  color: var(--quiet);
}
.metric-icon {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--icon-bg, #edf7f9);
  color: var(--accent, var(--blue-deep));
}
.metric-icon svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}
.metric-value {
  margin-top: 4px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.7px;
}
.metric-value small {
  font-size: 9px;
  color: var(--quiet);
  font-weight: 600;
  letter-spacing: 0;
}
.metric-foot {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 3px;
  font-size: 8px;
  color: var(--muted);
}
.trend-up {
  color: var(--green);
  font-weight: 700;
}
.trend-warn {
  color: var(--amber);
  font-weight: 700;
}

.overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(270px, 0.85fr);
  gap: 10px;
  margin-bottom: 10px;
}
.panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 6px 20px rgba(24, 34, 30, 0.028);
}
.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 13px 0;
}
.panel-title {
  font-size: 10px;
  font-weight: 700;
}
.panel-sub {
  margin-top: 3px;
  font-size: 8px;
  color: var(--quiet);
}
.panel-chip {
  padding: 4px 7px;
  border-radius: 6px;
  background: #f1f5f3;
  color: #6f7d77;
  font-size: 7px;
  font-weight: 700;
}
.chart-wrap {
  padding: 7px 12px 10px;
}
.chart-meta {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-bottom: 2px;
}
.chart-number {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.8px;
}
.chart-change {
  padding-bottom: 3px;
  color: var(--green);
  font-size: 8px;
  font-weight: 700;
}
.pulse-chart {
  display: block;
  width: 100%;
  height: 86px;
  overflow: visible;
}
.chart-grid line {
  stroke: #e9ecea;
  stroke-width: 1;
}
.chart-area {
  fill: url(#chartFill);
}
.chart-line {
  fill: none;
  stroke: var(--blue);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.chart-point {
  fill: #fff;
  stroke: var(--blue);
  stroke-width: 2;
}
.chart-marker {
  stroke: #cad2ce;
  stroke-width: 1;
  stroke-dasharray: 3 4;
}
.chart-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2px;
  font-size: 7px;
  color: var(--quiet);
}
.decision-list {
  display: grid;
  gap: 6px;
  padding: 9px 10px 10px;
}
.decision {
  display: grid;
  grid-template-columns: 5px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: start;
  padding: 8px 8px;
  border: 1px solid #eceeec;
  border-radius: 9px;
  background: #fbfcfb;
  cursor: pointer;
  transition: 0.18s ease;
}
.decision:hover {
  border-color: #d8deda;
  background: #fff;
  transform: translateX(1px);
}
.priority-bar {
  width: 5px;
  height: 100%;
  min-height: 30px;
  border-radius: 5px;
  background: var(--priority, var(--amber));
}
.decision b {
  display: block;
  font-size: 8.5px;
  line-height: 1.3;
}
.decision span {
  display: block;
  margin-top: 3px;
  font-size: 7.5px;
  line-height: 1.35;
  color: var(--muted);
}
.decision-time {
  padding-top: 1px;
  font-size: 7px;
  color: var(--quiet);
  white-space: nowrap;
}
.decision-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 12px 10px;
  color: var(--quiet);
  font-size: 7.5px;
}
.text-link {
  border: 0;
  background: none;
  padding: 0;
  color: var(--blue-deep);
  font-size: 7.5px;
  font-weight: 700;
  cursor: pointer;
}

.division-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}
.division-card {
  position: relative;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: 0.2s ease;
}
.division-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 2px;
  background: var(--division);
}
.division-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: 0 9px 20px rgba(22, 31, 28, 0.07);
}
.division-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.division-code {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--quiet);
}
.division-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--division);
}
.health-pill {
  padding: 4px 6px;
  border-radius: 6px;
  background: var(--health-bg);
  color: var(--health);
  font-size: 6.8px;
  font-weight: 800;
}
.division-name {
  margin-top: 7px;
  font-family: 'Playfair Display', serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.05;
}
.division-bottom {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}
.division-health b {
  display: block;
  font-size: 15px;
  letter-spacing: -0.4px;
}
.division-health span {
  display: block;
  font-size: 7px;
  color: var(--quiet);
}
.spark {
  width: 50px;
  height: 21px;
}
.spark path {
  fill: none;
  stroke: var(--division);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.spark .spark-fill {
  fill: var(--division);
  opacity: 0.1;
  stroke: none;
}

/* Secondary views */
.health-ring {
  --pct: 80;
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border-radius: 50%;
  background: conic-gradient(var(--ring) calc(var(--pct) * 1%), #edf0ee 0);
  position: relative;
}
.health-ring::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: #fff;
}
.health-ring b {
  position: relative;
  z-index: 1;
  font-size: 8px;
}

/* Org browser: divisions > teams > performers > tasks */
.org-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 8.5px;
  color: var(--muted);
}
.org-stats b {
  color: var(--ink);
  font-weight: 700;
}
.org-stats-dot {
  width: 2.5px;
  height: 2.5px;
  border-radius: 50%;
  background: var(--line-strong);
  flex: 0 0 auto;
}
.org-stats-flag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--amber-pale);
  color: #9a651d;
  font-weight: 600;
}
.org-stats-flag b {
  color: #9a651d;
}
.org-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  padding: 10px 12px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 6px 20px rgba(24, 34, 30, 0.028);
}
.org-toolbar-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  flex: 1 1 auto;
  min-width: 0;
}
.org-toolbar-group {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
}
.org-toolbar-label {
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--quiet);
  flex: 0 0 auto;
}
.org-toolbar-divider {
  width: 1px;
  align-self: stretch;
  min-height: 20px;
  background: var(--line);
  flex: 0 0 auto;
}
.org-seg {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f6f8f7;
}
.org-seg-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 9px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font: 600 7.8px 'DM Sans';
  cursor: pointer;
  transition: 0.15s ease;
  white-space: nowrap;
}
.org-seg-btn:hover {
  color: var(--ink);
}
.org-seg-btn.active {
  background: #fff;
  color: var(--ink);
  box-shadow:
    0 1px 3px rgba(23, 33, 29, 0.1),
    0 0 0 1px var(--line);
}
.org-seg-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex: 0 0 auto;
}
.org-select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.org-select-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 28px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: 600 7.8px 'DM Sans';
  cursor: pointer;
  min-width: 140px;
  outline: none;
}
.org-select-btn:hover {
  border-color: var(--line-strong);
}
.org-select-btn i {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex: 0 0 auto;
}
.org-select-btn span {
  flex: 1;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.org-select-btn::after {
  content: '';
  width: 6px;
  height: 6px;
  border-right: 1.5px solid var(--quiet);
  border-bottom: 1.5px solid var(--quiet);
  transform: rotate(45deg);
  flex: 0 0 auto;
}
.org-select-menu {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  z-index: 50;
  min-width: 190px;
  max-height: 260px;
  overflow-y: auto;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(21, 31, 27, 0.16);
}
.org-select-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 6px 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
  font: 600 7.8px 'DM Sans';
  text-align: left;
  cursor: pointer;
}
.org-select-item i {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex: 0 0 auto;
}
.org-select-item:hover {
  background: var(--surface-soft);
}
.org-select-item.active {
  background: #eef4f1;
  color: #1d718d;
}
.org-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}
.org-search-wrap svg {
  position: absolute;
  left: 9px;
  width: 11px;
  height: 11px;
  stroke: var(--quiet);
  fill: none;
  stroke-width: 1.8;
  pointer-events: none;
}
.org-search {
  height: 28px;
  width: 190px;
  padding: 0 10px 0 27px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font: 500 8px 'DM Sans';
  color: var(--ink);
  outline: none;
}
.org-search:focus {
  border-color: var(--line-strong);
}
.org-search::placeholder {
  color: var(--quiet);
}
.org-tree {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.org-div {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(24, 34, 30, 0.028);
}
.org-div-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  cursor: pointer;
  transition: 0.15s ease;
}
.org-div-head:hover {
  background: #fafbfa;
}
.org-div-bar {
  width: 4px;
  align-self: stretch;
  border-radius: 4px;
  flex: 0 0 auto;
}
.org-div-title {
  font-family: 'Playfair Display', serif;
  font-size: 13px;
  font-weight: 500;
}
.org-div-code {
  font-family: 'DM Sans', sans-serif;
  font-size: 9px;
  font-weight: 600;
  color: var(--quiet);
}
.org-div-sub {
  margin-top: 2px;
  font-size: 7.5px;
  color: var(--quiet);
}
.org-warn-text {
  color: var(--amber);
}
.org-chevron {
  width: 11px;
  height: 11px;
  color: var(--quiet);
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  flex: 0 0 auto;
  transition: transform 0.2s ease;
}
.org-chevron.open {
  transform: rotate(90deg);
}
.org-div-body {
  padding: 2px 10px 10px;
}
.org-dept {
  border-radius: 9px;
  margin-top: 3px;
}
.org-dept-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px;
  border-radius: 9px;
  cursor: pointer;
}
.org-dept-head:hover {
  background: var(--surface-soft);
}
.org-dept-name {
  flex: 1;
  min-width: 0;
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: #3c4642;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.org-dept-count {
  flex: 0 0 auto;
  font-size: 7px;
  color: var(--quiet);
  white-space: nowrap;
}
.org-dept-status {
  flex: 0 0 auto;
  font-size: 6.8px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.org-dept-bar {
  width: 48px;
  height: 4px;
  border-radius: 4px;
  background: #edf0ee;
  overflow: hidden;
  flex: 0 0 auto;
}
.org-dept-bar i {
  display: block;
  height: 100%;
  border-radius: 4px;
}
.org-dept-pct {
  width: 24px;
  text-align: right;
  font-size: 7.5px;
  color: var(--muted);
  flex: 0 0 auto;
}
.org-dept-body {
  padding: 2px 0 4px 14px;
}
.org-agent {
  border-radius: 8px;
  margin: 2px 0;
}
.org-agent-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid transparent;
}
.org-agent-icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex: 0 0 auto;
}
.org-agent-head:hover {
  background: var(--surface-soft);
  border-color: var(--line);
}
.org-agent-name {
  font-size: 8.3px;
  font-weight: 700;
}
.org-agent-goal {
  margin-top: 2px;
  font-size: 7.2px;
  color: var(--muted);
  font-style: italic;
  line-height: 1.35;
}
.org-agent-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}
.org-agent-count {
  font-size: 7px;
  color: var(--quiet);
  white-space: nowrap;
}
.org-status-pill {
  font-size: 6.8px;
  font-weight: 800;
  padding: 4px 6px;
  border-radius: 6px;
  white-space: nowrap;
}
.org-agent-body {
  padding: 2px 0 6px 14px;
}
.org-task {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 7px 9px;
  margin: 3px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}
.org-task-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.org-task-num {
  font-size: 7px;
  color: var(--quiet);
  flex: 0 0 14px;
}
.org-task-name {
  flex: 1;
  font-size: 7.8px;
  line-height: 1.4;
  color: #2b332f;
}
.org-level-pill {
  flex: 0 0 auto;
  font-size: 6.6px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 8px;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.org-task-tools {
  margin-left: 20px;
  font-size: 7px;
  color: var(--quiet);
}
.org-empty {
  padding: 20px;
  text-align: center;
  font-size: 8.5px;
  color: var(--quiet);
}
.mini-bar {
  height: 4px;
  border-radius: 4px;
  background: #edf0ee;
  overflow: hidden;
}
.mini-bar i {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: var(--bar);
}
.decision-table {
  overflow: hidden;
}
.table-head,
.table-row {
  display: grid;
  grid-template-columns: 70px minmax(170px, 1.25fr) minmax(130px, 1fr) 90px 58px;
  gap: 10px;
  align-items: center;
}
.table-head {
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  background: #fafbfa;
  color: var(--quiet);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.table-row {
  padding: 10px 12px;
  border-bottom: 1px solid #edf0ee;
  font-size: 8px;
}
.table-row:last-child {
  border-bottom: 0;
}
.table-row strong {
  font-size: 8.5px;
}
.table-row .context {
  color: var(--muted);
  line-height: 1.35;
}
.owner-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #52605a;
}
.tiny-avatar {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #edf5f2;
  color: #416154;
  font-size: 6px;
  font-weight: 800;
}
.due {
  color: var(--amber);
  font-weight: 700;
}
.status-chip {
  justify-self: start;
  padding: 4px 6px;
  border-radius: 6px;
  background: var(--amber-pale);
  color: #9a651d;
  font-size: 6.8px;
  font-weight: 800;
}
.activity-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(220px, 0.75fr);
  gap: 10px;
}
.timeline {
  padding: 12px;
}
.event {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 9px;
  position: relative;
  padding: 0 0 13px;
}
.event:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 11px;
  top: 25px;
  bottom: 2px;
  width: 1px;
  background: #e0e5e2;
}
.event-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: #edf7f9;
  color: var(--blue-deep);
  --pulse-glow: rgba(38, 125, 156, 0.5);
  --pulse-glow-strong: rgba(38, 125, 156, 0.95);
  animation: livePulse 1.35s ease-in-out infinite;
}
.timeline .event:nth-child(4n + 2) .event-icon {
  animation-delay: 0.3s;
}
.timeline .event:nth-child(4n + 3) .event-icon {
  animation-delay: 0.6s;
}
.timeline .event:nth-child(4n) .event-icon {
  animation-delay: 0.9s;
}
.event-icon svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}
.event-copy b {
  display: block;
  font-size: 8.5px;
}
.event-copy p {
  margin: 3px 0 0;
  font-size: 8px;
  line-height: 1.4;
  color: var(--muted);
}
.event-time {
  font-size: 7px;
  color: var(--quiet);
}
.performer-list {
  padding: 10px;
}
.performer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-bottom: 1px solid #edf0ee;
}
.performer:last-child {
  border-bottom: 0;
}
.performer img {
  width: 19px;
  height: 19px;
}
.performer-copy {
  min-width: 0;
  flex: 1;
}
.performer-copy b {
  display: block;
  font-size: 8px;
}
.performer-copy span {
  display: block;
  margin-top: 2px;
  font-size: 7px;
  color: var(--quiet);
}
.performer-state {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  --pulse-glow: rgba(45, 139, 90, 0.5);
  --pulse-glow-strong: rgba(45, 139, 90, 0.95);
  animation: livePulse 1.35s ease-in-out infinite;
}
.performer-list .performer:nth-child(4n + 2) .performer-state {
  animation-delay: 0.3s;
}
.performer-list .performer:nth-child(4n + 3) .performer-state {
  animation-delay: 0.6s;
}
.performer-list .performer:nth-child(4n) .performer-state {
  animation-delay: 0.9s;
}

/* Drawer, command palette, toast */
.drawer-scrim {
  position: absolute;
  inset: 0 0 0 176px;
  z-index: 20;
  background: rgba(29, 38, 34, 0.16);
  opacity: 0;
  visibility: hidden;
  transition: 0.23s ease;
  backdrop-filter: blur(1.5px);
}
.drawer-scrim.open {
  opacity: 1;
  visibility: visible;
}
.drawer {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(360px, 48%);
  padding: 17px 17px 20px;
  background: #fff;
  border-left: 1px solid var(--line);
  box-shadow: -18px 0 42px rgba(22, 31, 27, 0.12);
  transform: translateX(102%);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: auto;
}
.drawer-scrim.open .drawer {
  transform: none;
}
.drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.drawer-kicker {
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--quiet);
}
.drawer h3 {
  margin: 5px 0 0;
  font-family: 'Playfair Display', serif;
  font-size: 19px;
  font-weight: 500;
}
.drawer-close {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
}
.drawer-close svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}
.drawer-health {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  margin: 16px 0;
  padding: 12px;
  border-radius: 11px;
  background: #f6f8f7;
}
.drawer-score {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -1px;
}
.drawer-score small {
  font-size: 10px;
  color: var(--quiet);
}
.drawer-health p {
  margin: 3px 0 0;
  font-size: 8px;
  color: var(--muted);
}
.drawer-section {
  margin-top: 15px;
}
.drawer-section-title {
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--quiet);
  margin-bottom: 7px;
}
.drawer-function {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 68px 27px;
  gap: 8px;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid #edf0ee;
  font-size: 8px;
}
.drawer-update {
  display: flex;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #edf0ee;
}
.drawer-update img {
  width: 18px;
  height: 18px;
}
.drawer-update b {
  display: block;
  font-size: 8px;
}
.drawer-update p {
  margin: 3px 0 0;
  font-size: 7.5px;
  line-height: 1.4;
  color: var(--muted);
}
.command-scrim {
  position: absolute;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 72px;
  background: rgba(22, 30, 27, 0.22);
  opacity: 0;
  visibility: hidden;
  transition: 0.2s ease;
  backdrop-filter: blur(2px);
}
.command-scrim.open {
  opacity: 1;
  visibility: visible;
}
.command {
  width: min(430px, 70%);
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(19, 28, 24, 0.2);
  overflow: hidden;
  transform: translateY(-10px);
  transition: 0.23s ease;
}
.command-scrim.open .command {
  transform: none;
}
.command-search {
  height: 43px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  border-bottom: 1px solid var(--line);
}
.command-search svg {
  width: 14px;
  height: 14px;
  stroke: var(--muted);
  fill: none;
  stroke-width: 1.8;
}
.command-search input {
  flex: 1;
  border: 0;
  outline: 0;
  color: var(--ink);
  font: 500 10px 'DM Sans';
  background: transparent;
}
.command-group {
  padding: 8px;
}
.command-label {
  padding: 4px 7px 6px;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--quiet);
}
.command-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 8.5px;
  text-align: left;
  cursor: pointer;
}
.command-item:hover {
  background: #f2f6f4;
}
.command-item svg {
  width: 13px;
  height: 13px;
  stroke: var(--blue-deep);
  fill: none;
  stroke-width: 1.8;
}
.command-item span:last-child {
  margin-left: auto;
  color: var(--quiet);
  font-size: 7px;
}
.toast {
  position: absolute;
  right: 17px;
  bottom: 16px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 12px;
  border: 1px solid #dbe8df;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 14px 35px rgba(21, 31, 27, 0.15);
  font-size: 8px;
  color: #4b5d54;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: 0.25s ease;
}
.toast.show {
  opacity: 1;
  transform: none;
}
.toast-check {
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--green-pale);
  color: var(--green);
  font-size: 9px;
  font-weight: 800;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.42;
  }
}
@keyframes viewIn {
  from {
    opacity: 0;
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 1080px) {
  .app {
    grid-template-columns: 68px minmax(0, 1fr);
  }
  .sidebar {
    padding-left: 8px;
    padding-right: 8px;
  }
  .app-brand {
    align-items: center;
    padding: 0;
  }
  .app-brand-name,
  .app-brand-caption,
  .workspace-copy,
  .workspace-select .chevron,
  .nav-section-label,
  .nav-btn span:not(.nav-badge),
  .system-card p,
  .user-copy {
    display: none;
  }
  .workspace-select {
    justify-content: center;
    padding: 7px;
  }
  .nav-btn {
    justify-content: center;
    padding: 0;
  }
  .nav-badge {
    position: absolute;
    transform: translate(11px, -9px);
    min-width: 13px;
    height: 13px;
    padding: 0 3px;
  }
  .nav-btn {
    position: relative;
  }
  .system-top {
    justify-content: center;
  }
  .user-row {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
  }
  .drawer-scrim {
    left: 68px;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .overview-grid {
    grid-template-columns: 1fr;
  }
  .division-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .device-stage {
    overflow: visible;
  }
  .device-stage::before {
    display: none;
  }
  .macbook {
    width: 100%;
    margin: 0;
  }
  .mac-lid {
    width: 100%;
    aspect-ratio: auto;
    padding: 4px;
    border-radius: 22px;
    background: linear-gradient(145deg, #202523, #0b0e0d);
    box-shadow: 0 24px 55px rgba(26, 34, 31, 0.15);
  }
  .mac-lid::before,
  .mac-camera,
  .mac-menubar,
  .mac-base {
    display: none;
  }
  .mac-display {
    height: min(780px, calc(100svh - 26px));
    min-height: 680px;
    border-radius: 18px;
    background: var(--surface-soft);
  }
  .mac-screen {
    height: 100%;
    overflow: hidden;
  }
  .app {
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 17px;
    overflow: hidden;
  }

  .main {
    order: 1;
    height: calc(100% - 69px);
    flex: 0 0 calc(100% - 69px);
    min-height: 0;
  }
  .topbar {
    height: 55px;
    flex-basis: 55px;
    padding: 0 13px;
    gap: 8px;
    background: rgba(255, 255, 255, 0.94);
  }
  .breadcrumb {
    font-size: 10px;
    gap: 5px;
  }
  .breadcrumb b {
    max-width: 102px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .breadcrumb svg {
    width: 9px;
    height: 9px;
  }
  .sync-state {
    display: none;
  }
  .search-btn {
    width: 34px;
    height: 34px;
    justify-content: center;
    padding: 0;
    font-size: 0;
  }
  .search-btn svg {
    width: 15px;
    height: 15px;
  }
  .search-btn kbd {
    display: none;
  }
  .icon-btn {
    width: 34px;
    height: 34px;
  }
  .view-scroll {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .view-pane {
    padding: 18px 13px 28px;
  }
  .page-head {
    display: block;
    margin-bottom: 15px;
  }
  .eyebrow {
    font-size: 8px;
  }
  .page-head h2 {
    font-size: 24px;
  }
  .page-head p {
    font-size: 10px;
    line-height: 1.45;
  }
  .page-actions {
    width: 100%;
    margin-top: 13px;
  }
  .page-actions > * {
    min-height: 38px;
    flex: 1;
    justify-content: center;
    padding: 0 9px;
    font-size: 9px;
  }

  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .metric {
    min-height: 106px;
    padding: 12px 11px;
  }
  .metric-label {
    font-size: 7.3px;
  }
  .metric-icon {
    width: 25px;
    height: 25px;
  }
  .metric-value {
    margin-top: 7px;
    font-size: 24px;
  }
  .metric-foot {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2px 4px;
    font-size: 7.5px;
    line-height: 1.25;
  }
  .overview-grid {
    grid-template-columns: 1fr;
    gap: 9px;
  }
  .panel {
    border-radius: 13px;
  }
  .panel-head {
    padding: 13px 13px 0;
  }
  .panel-title {
    font-size: 11px;
  }
  .panel-sub {
    font-size: 8.5px;
    line-height: 1.35;
  }
  .chart-wrap {
    padding: 8px 12px 12px;
  }
  .pulse-chart {
    height: 105px;
  }
  .decision {
    padding: 10px 9px;
  }
  .decision b {
    font-size: 9px;
  }
  .decision span {
    font-size: 8px;
  }
  .decision-footer {
    padding-top: 1px;
  }
  .division-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .division-card {
    min-height: 128px;
    padding: 11px;
  }
  .division-name {
    font-size: 14px;
  }
  .division-health b {
    font-size: 18px;
  }
  .division-health span {
    font-size: 7.5px;
  }
  .spark {
    width: 42px;
  }

  .activity-layout {
    grid-template-columns: 1fr;
  }
  .health-ring {
    width: 43px;
    height: 43px;
  }
  .decision-table {
    display: grid;
    gap: 9px;
    overflow: visible;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  .table-head {
    display: none;
  }
  .table-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 5px 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    font-size: 9px;
    box-shadow: 0 4px 14px rgba(23, 33, 29, 0.025);
  }
  .table-row .status-chip {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }
  .table-row > strong {
    grid-column: 1/-1;
    grid-row: 2;
    font-size: 10px;
  }
  .table-row .context {
    grid-column: 1/-1;
    grid-row: 3;
    font-size: 8.5px;
  }
  .table-row .owner-chip {
    grid-column: 1/-1;
    grid-row: 4;
    margin-top: 2px;
  }
  .table-row > span:last-child {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-self: center;
  }
  .timeline {
    padding: 13px;
  }
  .event {
    grid-template-columns: 28px minmax(0, 1fr) auto;
    gap: 9px;
  }
  .event-icon {
    width: 28px;
    height: 28px;
  }
  .event:not(:last-child)::after {
    left: 13px;
    top: 29px;
  }
  .event-copy b {
    font-size: 9.5px;
  }
  .event-copy p {
    font-size: 8.5px;
  }
  .performer {
    padding: 10px 8px;
  }
  .performer img {
    width: 22px;
    height: 22px;
  }
  .performer-copy b {
    font-size: 9px;
  }
  .performer-copy span {
    font-size: 8px;
  }

  .sidebar {
    order: 2;
    position: relative;
    z-index: 18;
    width: 100%;
    height: 69px;
    flex: 0 0 69px;
    display: block;
    padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
    border: 0;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -7px 22px rgba(24, 34, 30, 0.055);
    backdrop-filter: blur(18px);
  }
  .app-brand,
  .workspace-select,
  .nav-section-label,
  .sidebar-spacer,
  .system-card,
  .user-row {
    display: none;
  }
  .app-nav {
    height: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 3px;
  }
  .nav-btn {
    position: relative;
    height: 54px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 0;
    border-radius: 10px;
    font-size: 7.5px;
    text-align: center;
  }
  .nav-btn .ico {
    width: 17px;
    height: 17px;
  }
  .nav-btn span:not(.nav-badge) {
    display: block;
  }
  .nav-btn.active {
    background: #edf7f9;
  }
  .nav-badge {
    position: absolute;
    top: 5px;
    left: calc(50% + 4px);
    transform: none;
    min-width: 15px;
    height: 15px;
    padding: 0 4px;
    border: 2px solid #fff;
    font-size: 6.5px;
  }

  .drawer-scrim {
    inset: 0;
    z-index: 24;
    background: rgba(22, 30, 27, 0.23);
    backdrop-filter: blur(2px);
  }
  .drawer {
    width: 100%;
    padding: 19px 16px 25px;
    border-left: 0;
    border-radius: 16px 16px 0 0;
    top: 64px;
    box-shadow: 0 -18px 45px rgba(22, 31, 27, 0.13);
  }
  .drawer-close {
    width: 36px;
    height: 36px;
  }
  .drawer h3 {
    font-size: 23px;
  }
  .drawer-health {
    padding: 14px;
  }
  .drawer-score {
    font-size: 28px;
  }
  .drawer-function {
    grid-template-columns: minmax(0, 1fr) 82px 29px;
    padding: 9px 0;
    font-size: 9px;
  }
  .drawer-update {
    padding: 10px 0;
  }
  .drawer-update img {
    width: 22px;
    height: 22px;
  }
  .drawer-update b {
    font-size: 9px;
  }
  .drawer-update p {
    font-size: 8.5px;
  }
  .command-scrim {
    inset: 0;
    padding: 62px 12px 0;
  }
  .command {
    width: 100%;
    border-radius: 14px;
  }
  .command-search {
    height: 51px;
    padding: 0 14px;
  }
  .command-search input {
    font-size: 11px;
  }
  .command-group {
    padding: 9px;
  }
  .command-item {
    min-height: 45px;
    padding: 10px;
    font-size: 9px;
  }
  .command-item svg {
    width: 15px;
    height: 15px;
  }
  .toast {
    left: 12px;
    right: 12px;
    bottom: 81px;
    justify-content: center;
    padding: 12px 13px;
    font-size: 9px;
  }
}
@media (max-width: 390px) {
  .view-pane {
    padding-left: 11px;
    padding-right: 11px;
  }
  .metric {
    padding-left: 9px;
    padding-right: 9px;
  }
  .metric-label {
    letter-spacing: 0.35px;
  }
  .division-card {
    padding: 10px;
  }
  .division-name {
    font-size: 13px;
  }
  .decision-footer > span {
    display: none;
  }
  .page-actions {
    gap: 6px;
  }
}

/* Solid white card surfaces, consistent with the landing page. */
.cd,
.panel,
.division-card {
  background: #fff;
}

.maestro-demo-controls {
  margin: 40px 0 24px;
}
.maestro-view-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.maestro-view-buttons button {
  font:
    600 15px/1.4 'DM Sans',
    sans-serif;
  padding: 12px 20px;
  border: 1px solid var(--bd);
  border-radius: 24px;
  background: #fff;
  color: var(--t2);
  cursor: pointer;
}
.maestro-view-buttons button[aria-pressed='true'] {
  background: #f3f9fb;
  border-color: var(--hd);
  color: #1a5568;
}
.maestro-view-buttons button:focus-visible {
  outline: 2px solid var(--hd);
  outline-offset: 3px;
}
.maestro-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.maestro-return {
  text-align: center;
  margin-top: 48px;
}
@media (max-width: 768px) {
  .maestro-benefits {
    grid-template-columns: 1fr;
  }
}
.maestro-view-buttons button:disabled {
  opacity: 0.45;
  cursor: default;
}
