:root {
  --bg: #040d19;
  --panel: rgba(8, 18, 36, 0.82);
  --panel-strong: rgba(12, 26, 48, 0.92);
  --ink: #f5efe6;
  --muted: #c4d0e2;
  --line: rgba(125, 156, 196, 0.18);
  --teal: #00d4aa;
  --sea: #5bbcdc;
  --sage: #8fce59;
  --copper: #f38f64;
  --gold: #ffd166;
  --rose: #ff6b8a;
  --shadow: 0 24px 72px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(0, 212, 170, 0.12), transparent 24%),
    radial-gradient(circle at right 18% top 12%, rgba(91, 188, 220, 0.16), transparent 20%),
    radial-gradient(circle at 50% 100%, rgba(255, 209, 102, 0.1), transparent 28%),
    linear-gradient(180deg, #06101e 0%, #030913 100%);
  font-family: "Avenir Next", "Trebuchet MS", sans-serif;
}

body.dragging-widget {
  user-select: none;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(141, 231, 215, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(141, 231, 215, 0.04) 1px, transparent 1px);
  background-size: 52px 52px;
  opacity: 0.85;
}

.page-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 18px;
}

.nebula-page {
  display: flex;
}

.nebula-shell {
  width: 100%;
  display: grid;
  gap: 18px;
  padding: 18px;
}

.nebula-hud {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.95fr);
  gap: 24px;
  align-items: end;
}

.nebula-brand {
  max-width: 660px;
}

.nebula-actions {
  display: grid;
  gap: 12px;
  justify-items: stretch;
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.eyebrow,
.panel-kicker,
.stat-label,
.block-label {
  margin: 0 0 8px;
  font-family: "Avenir Next Condensed", "Avenir Next", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Iowan Old Style", "Georgia", serif;
  font-weight: 700;
}

h1 {
  font-size: clamp(40px, 7vw, 64px);
  line-height: 0.94;
}

.hero-copy {
  max-width: 720px;
  margin: 14px 0 0;
  line-height: 1.65;
  font-size: 15px;
  color: var(--muted);
}

.hero-actions {
  display: grid;
  gap: 12px;
  min-width: 220px;
}

.hero-actions.compact {
  min-width: 0;
  justify-items: start;
}

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

.action-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(125, 156, 196, 0.18);
  background: rgba(8, 18, 36, 0.82);
  color: var(--ink);
  border-radius: 999px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
}

.action-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.3);
}

.action-button.primary {
  background: linear-gradient(135deg, rgba(0, 212, 170, 0.84), rgba(0, 96, 180, 0.88));
  color: #06101e;
}

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

.stat-card,
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  border-radius: 28px;
}

.stat-card {
  padding: 18px 20px;
}

.stat-card.wide {
  grid-column: span 2;
}

.stat-card.compact {
  min-width: 0;
  padding: 14px 16px;
  border-radius: 22px;
  box-shadow: 0 16px 38px rgba(24, 52, 58, 0.12);
}

.stat-card.compact.danger {
  border-color: rgba(188, 75, 81, 0.24);
  background: rgba(188, 75, 81, 0.08);
}

.stat-value {
  font-family: "Iowan Old Style", "Georgia", serif;
  font-size: 34px;
  line-height: 1;
}

.compact-value {
  font-size: 24px;
}

.stat-value.small {
  font-size: 18px;
  line-height: 1.4;
}

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

.compact-detail {
  margin-top: 6px;
  font-size: 12px;
}

.compact-detail.secondary {
  opacity: 0.8;
}

.main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(360px, 0.95fr);
  gap: 18px;
}

.panel {
  padding: 20px;
}

.constellation-home {
  min-height: clamp(680px, 72vh, 920px);
  height: clamp(680px, 72vh, 920px);
}

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

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

.panel-header h2 {
  font-size: 30px;
}

.runtime-pill,
.state-chip,
.mini-chip,
.pill {
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(0, 212, 170, 0.16);
  background: rgba(0, 212, 170, 0.12);
  color: #8de7d7;
}

.state-chip {
  border-color: color-mix(in srgb, var(--chip-color, var(--teal)) 24%, transparent);
  background: color-mix(in srgb, var(--chip-color, var(--teal)) 18%, rgba(8, 18, 36, 0.82));
  color: var(--chip-color, var(--teal));
}

.command-bar.panel {
  background:
    radial-gradient(circle at top left, rgba(0, 212, 170, 0.12), transparent 22%),
    linear-gradient(180deg, rgba(10, 23, 44, 0.9), rgba(5, 14, 28, 0.94));
}

.constellation-board {
  position: relative;
  min-height: 820px;
  overflow: hidden;
  border-radius: 24px;
  background:
    radial-gradient(circle at 61% 50%, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.28)),
    linear-gradient(180deg, rgba(13, 92, 99, 0.08), rgba(208, 140, 38, 0.08));
  border: 1px solid rgba(24, 52, 58, 0.1);
}

.nebula-runtime-bar {
  position: absolute;
  right: 18px;
  top: 18px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 10px;
}

.constellation-board::before,
.constellation-board::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.constellation-board::before {
  background:
    radial-gradient(circle at 14% 18%, rgba(255, 255, 255, 0.9) 0 2px, transparent 2px 100%),
    radial-gradient(circle at 82% 22%, rgba(255, 255, 255, 0.8) 0 2px, transparent 2px 100%),
    radial-gradient(circle at 70% 76%, rgba(255, 255, 255, 0.9) 0 2px, transparent 2px 100%),
    radial-gradient(circle at 24% 70%, rgba(255, 255, 255, 0.75) 0 2px, transparent 2px 100%);
  opacity: 0.7;
}

.constellation-board::after {
  background: radial-gradient(circle at 61% 50%, rgba(13, 92, 99, 0.08), transparent 48%);
  animation: halo 8s ease-in-out infinite;
}

@keyframes halo {
  0%, 100% { opacity: 0.58; }
  50% { opacity: 0.88; }
}

#constellation-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#workflow-flows {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.workflow-label {
  fill: rgba(24, 52, 58, 0.64);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.workflow-edge.blocked .workflow-label {
  fill: rgba(188, 75, 81, 0.86);
}

.workflow-edge.watch .workflow-label {
  fill: rgba(208, 140, 38, 0.9);
}

.orbital {
  position: absolute;
  left: 61%;
  top: 50%;
  border-radius: 999px;
  border: 1px dashed rgba(24, 52, 58, 0.1);
  transform: translate(-50%, -50%);
}

.orbital-inner { width: 42%; height: 31%; }
.orbital-mid { width: 68%; height: 47%; }
.orbital-outer { width: 84%; height: 62%; }

.constellation-nodes {
  position: absolute;
  inset: 0;
  z-index: 3;
}

.node {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 176px;
  min-height: 132px;
  padding: 18px 16px 16px;
  border: 1px solid color-mix(in srgb, var(--node-color) 22%, white 78%);
  background: color-mix(in srgb, var(--node-color) 10%, white 90%);
  border-radius: 22px;
  text-align: left;
  box-shadow: 0 18px 36px rgba(24, 52, 58, 0.12);
  cursor: pointer;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
  z-index: 2;
}

.node:hover,
.node.active {
  transform: translate(-50%, -52%);
  border-color: var(--node-color);
  box-shadow: 0 24px 52px rgba(24, 52, 58, 0.18);
}

.node-pulse {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--state-color);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--state-color) 46%, white 54%);
  animation: ping 2.6s ease-out infinite;
}

@keyframes ping {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--state-color) 42%, white 58%); }
  100% { box-shadow: 0 0 0 18px rgba(255, 255, 255, 0); }
}

.node-core {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--node-color);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.node-label {
  display: block;
  font-family: "Iowan Old Style", "Georgia", serif;
  font-size: 24px;
  line-height: 1.1;
  margin-bottom: 5px;
}

.node-role {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: color-mix(in srgb, var(--node-color) 76%, var(--ink) 24%);
  margin-bottom: 8px;
}

.node-meta {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.nebula-command-stack,
.live-pulse-rail,
.office-hub,
.water-cooler-station {
  position: absolute;
  z-index: 4;
}

.nebula-command-stack {
  top: 22px;
  left: 22px;
  width: min(300px, calc(100% - 44px));
  display: grid;
  gap: 12px;
}

.board-float-card,
.office-hub-card,
.water-cooler-card {
  border-radius: 24px;
  border: 1px solid rgba(24, 52, 58, 0.1);
  background: rgba(255, 250, 242, 0.86);
  box-shadow: 0 18px 46px rgba(24, 52, 58, 0.14);
  backdrop-filter: blur(16px);
}

.board-float-card {
  padding: 16px;
}

.office-hub,
.live-pulse-rail,
.water-cooler-station {
  position: static;
}

.board-float-card.warning {
  border-color: rgba(208, 140, 38, 0.24);
  background: rgba(255, 244, 224, 0.9);
}

.board-float-header,
.water-cooler-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.board-float-header h3,
.office-hub-card h3,
.water-cooler-card h3 {
  font-size: 24px;
}

.board-float-copy {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

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

.board-metric {
  border-radius: 18px;
  border: 1px solid rgba(24, 52, 58, 0.08);
  background: rgba(255, 255, 255, 0.72);
  padding: 12px;
}

.board-footnotes {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.board-footnotes p {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

.office-hub-card {
  padding: 14px 18px;
  text-align: left;
}

.hub-pill-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.danger-pill {
  background: rgba(188, 75, 81, 0.12);
  color: var(--rose);
}

.water-cooler-card {
  position: relative;
  padding: 16px 18px 18px;
  overflow: hidden;
}

.cooler-bubbles {
  position: absolute;
  inset: 12px auto auto 18px;
  width: 56px;
  height: 56px;
  pointer-events: none;
}

.cooler-bubbles span {
  position: absolute;
  bottom: 0;
  left: 18px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(13, 92, 99, 0.22);
  animation: cooler-rise 5s ease-in-out infinite;
}

.cooler-bubbles span:nth-child(2) {
  left: 2px;
  width: 9px;
  height: 9px;
  animation-delay: 1.1s;
}

.cooler-bubbles span:nth-child(3) {
  left: 34px;
  width: 10px;
  height: 10px;
  animation-delay: 2.1s;
}

@keyframes cooler-rise {
  0% { transform: translateY(0) scale(0.9); opacity: 0; }
  25% { opacity: 0.7; }
  100% { transform: translateY(-42px) scale(1.2); opacity: 0; }
}

.water-cooler-feed {
  display: grid;
  gap: 10px;
  margin-top: 6px;
}

.cooler-note {
  border-radius: 18px;
  border: 1px solid rgba(24, 52, 58, 0.08);
  background: rgba(255, 255, 255, 0.72);
  padding: 12px;
  display: grid;
  gap: 6px;
}

.cooler-note-action {
  width: 100%;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.cooler-note-action:hover {
  transform: translateY(-1px);
  border-color: rgba(13, 92, 99, 0.18);
  box-shadow: 0 12px 24px rgba(24, 52, 58, 0.08);
}

.cooler-note p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.inspector-stack {
  display: grid;
  gap: 18px;
}

body.workbench-open {
  overflow: hidden;
}

.workbench-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  padding: 24px;
  display: grid;
  align-items: start;
  overflow: auto;
  background:
    radial-gradient(circle at 18% 14%, rgba(0, 212, 170, 0.12), transparent 22%),
    radial-gradient(circle at 82% 18%, rgba(0, 132, 255, 0.12), transparent 22%),
    rgba(4, 10, 21, 0.76);
  backdrop-filter: blur(20px);
  overscroll-behavior: contain;
}

.nebula-dock {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.touchpoint-panel {
  padding: 18px;
}

.compact-header {
  margin-bottom: 12px;
}

.compact-header h2 {
  font-size: 24px;
}

.touchpoint-stack {
  display: grid;
  gap: 10px;
}

.touchpoint-item,
.touchpoint-metric {
  border-radius: 18px;
  border: 1px solid rgba(24, 52, 58, 0.1);
  background: var(--panel-strong);
  padding: 14px;
}

.touchpoint-action {
  appearance: none;
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.touchpoint-action:hover {
  transform: translateY(-1px);
  border-color: rgba(13, 92, 99, 0.18);
  box-shadow: 0 14px 24px rgba(24, 52, 58, 0.08);
}

.touchpoint-item {
  display: grid;
  gap: 6px;
}

.touchpoint-item.danger {
  border-color: rgba(188, 75, 81, 0.22);
  background: rgba(188, 75, 81, 0.08);
}

.touchpoint-item p,
.touchpoint-meta {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.touchpoint-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
}

.touchpoint-jump {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 2px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(13, 92, 99, 0.08);
  color: var(--teal);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

.touchpoint-subsection {
  display: grid;
  gap: 10px;
}

.workbench-overlay.hidden {
  display: none;
}

.workbench-shell {
  width: min(1680px, 100%);
  min-height: calc(100% - 0px);
  height: auto;
  max-height: none;
  margin: 0 auto;
  overflow: visible;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.workbench-content {
  flex: 1 1 auto;
  min-height: 0;
  overflow: visible;
}

.workbench-tabs-shell {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: auto;
  min-height: 0;
}

.workbench-tab-groups {
  display: grid;
  gap: 12px;
}

.workbench-tab-group {
  display: grid;
  gap: 8px;
}

.workbench-tab-group-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: end;
}

.workbench-tab-group-header .list-detail {
  max-width: 520px;
  text-align: right;
}

.workbench-tab-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.workbench-tab {
  appearance: none;
  border: 1px solid rgba(125, 156, 196, 0.18);
  background: rgba(8, 18, 36, 0.7);
  color: rgba(245, 239, 230, 0.92);
  border-radius: 18px;
  padding: 12px 14px;
  display: inline-grid;
  gap: 4px;
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.workbench-tab:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 212, 170, 0.22);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.24);
}

.workbench-tab.active {
  border-color: rgba(0, 212, 170, 0.28);
  background: linear-gradient(135deg, rgba(0, 212, 170, 0.16), rgba(10, 27, 52, 0.94));
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.28);
}

.workbench-tab.priority {
  border-color: rgba(255, 209, 102, 0.24);
  background: rgba(255, 209, 102, 0.1);
}

.workbench-tab.active.priority {
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.18), rgba(10, 27, 52, 0.94));
  border-color: rgba(255, 209, 102, 0.3);
}

.workbench-tab-title-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.workbench-tab-badge {
  font: inherit;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 4px 7px;
  border-radius: 999px;
  color: #ffd166;
  background: rgba(255, 209, 102, 0.16);
}

.workbench-tab span {
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
}

.workbench-tab small {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(196, 208, 226, 0.62);
}

.workbench-stage {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  border: 1px solid rgba(125, 156, 196, 0.16);
  background:
    linear-gradient(180deg, rgba(11, 24, 45, 0.9), rgba(7, 16, 32, 0.94));
  overflow: visible;
}

.workbench-stage-header {
  padding: 18px 22px;
  border-bottom: 1px solid rgba(125, 156, 196, 0.14);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  background: rgba(7, 18, 36, 0.74);
}

.workbench-stage-copy {
  min-width: 0;
}

.workbench-stage-copy h3 {
  margin: 0;
  font-size: 28px;
}

.workbench-stage-copy .list-detail {
  margin-top: 8px;
}

.workbench-stage-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.workbench-stage-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: visible;
  padding: 22px;
  display: grid;
  gap: 18px;
}

.workbench-stage-rail {
  display: grid;
  gap: 14px;
}

.workbench-stage-signal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.workbench-signal-card {
  border-radius: 18px;
  border: 1px solid rgba(125, 156, 196, 0.16);
  background: rgba(8, 18, 36, 0.74);
  padding: 14px;
  display: grid;
  gap: 6px;
}

.workbench-signal-card strong {
  font-size: 20px;
  line-height: 1.15;
}

.workbench-signal-card.danger {
  border-color: rgba(255, 107, 138, 0.24);
  background: rgba(255, 107, 138, 0.1);
}

.workbench-stage-quicklinks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.accordion-section {
  border-radius: 24px;
  border: 1px solid rgba(125, 156, 196, 0.16);
  background: rgba(8, 18, 36, 0.62);
  overflow: hidden;
}

.accordion-section[open] {
  background: rgba(10, 23, 44, 0.84);
}

.accordion-summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
}

.accordion-summary::-webkit-details-marker {
  display: none;
}

.accordion-summary-copy {
  min-width: 0;
}

.accordion-toggle {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  color: #8de7d7;
  background: rgba(0, 212, 170, 0.12);
}

.accordion-toggle::before {
  content: "Expand";
}

.accordion-section[open] .accordion-toggle::before {
  content: "Collapse";
}

.accordion-toggle::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 180ms ease;
}

.accordion-section[open] .accordion-toggle::after {
  transform: rotate(-135deg) translateY(-1px);
}

.accordion-body {
  display: grid;
  gap: 16px;
  padding: 0 20px 20px;
}

.workbench-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 16px;
}

.workbench-motion-overview-slot {
  grid-column: 1 / -1;
}

.workbench-motion-stage-slot {
  display: grid;
}

.workbench-offerings {
  display: grid;
  gap: 10px;
}

.workbench-actions-grid,
.template-grid,
.task-feed-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.workbench-card {
  border-radius: 20px;
  border: 1px solid rgba(125, 156, 196, 0.16);
  background: rgba(8, 18, 36, 0.74);
  padding: 16px;
  display: grid;
  gap: 10px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.2);
}

.workbench-card h3 {
  font-size: 22px;
}

.workbench-card p {
  margin: 0;
}

.section-heading {
  display: grid;
  gap: 6px;
}

.section-heading + .workbench-actions-grid {
  margin-top: 2px;
}

.workbench-actions-grid + .section-heading {
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(125, 156, 196, 0.14);
}

.workbench-primary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.workbench-form {
  display: grid;
  gap: 10px;
}

.field-grid {
  display: grid;
  gap: 10px;
}

.field-label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.field-label input,
.field-label textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(125, 156, 196, 0.18);
  background: rgba(4, 11, 24, 0.88);
  color: rgba(245, 239, 230, 0.92);
  font: inherit;
  line-height: 1.5;
}

.field-label textarea {
  min-height: 108px;
  resize: vertical;
}

.task-card {
  border-radius: 18px;
  border: 1px solid rgba(125, 156, 196, 0.16);
  background: rgba(8, 18, 36, 0.7);
  padding: 14px;
  display: grid;
  gap: 8px;
}

.task-card.failed {
  border-color: rgba(255, 107, 138, 0.24);
  background: rgba(255, 107, 138, 0.1);
}

.task-card.active {
  border-color: rgba(0, 212, 170, 0.24);
  background: rgba(0, 212, 170, 0.08);
}

.task-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.inspector-content,
.feed,
.stacked-list {
  display: grid;
  gap: 12px;
}

.inspector-block {
  display: grid;
  gap: 10px;
}

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

.mini-card,
.list-card,
.feed-card {
  border-radius: 18px;
  border: 1px solid rgba(125, 156, 196, 0.16);
  background: rgba(8, 18, 36, 0.74);
  padding: 14px;
}

.wide-card {
  grid-column: span 2;
}

.block-copy,
.list-card span,
.feed-card p,
.muted {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.list-detail,
.feed-note,
.feed-path,
.section-label {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.section-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  background: rgba(13, 92, 99, 0.08);
}

.list-card {
  display: grid;
  gap: 6px;
}

.list-card.danger {
  border-color: rgba(255, 107, 138, 0.24);
  background: rgba(255, 107, 138, 0.1);
}

.stacked-list.compact {
  gap: 10px;
}

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

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

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

.artifact-metric-card {
  border-radius: 18px;
  border: 1px solid rgba(125, 156, 196, 0.16);
  background: rgba(8, 18, 36, 0.74);
  padding: 14px;
}

.artifact-metric-value {
  font-family: "Iowan Old Style", "Georgia", serif;
  font-size: 28px;
  line-height: 1.05;
}

.artifact-table-shell {
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid rgba(125, 156, 196, 0.14);
  background: rgba(5, 14, 28, 0.84);
}

.artifact-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.artifact-table th,
.artifact-table td {
  padding: 12px 14px;
  vertical-align: top;
  border-bottom: 1px solid rgba(125, 156, 196, 0.12);
  text-align: left;
}

.artifact-table th {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(196, 208, 226, 0.72);
  background: rgba(0, 212, 170, 0.08);
}

.artifact-table tbody tr:last-child td {
  border-bottom: 0;
}

.artifact-table-row.danger td {
  background: rgba(255, 107, 138, 0.08);
}

.artifact-table-row.selected td {
  background: rgba(0, 212, 170, 0.08);
}

.artifact-table-row.route-row {
  cursor: pointer;
}

.artifact-table-row.route-row:hover td {
  background: rgba(0, 212, 170, 0.06);
}

.artifact-cell-main {
  font-size: 13px;
  line-height: 1.45;
}

.artifact-cell-detail {
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.45;
  color: var(--muted);
}

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

.accounting-desk-shell {
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
}

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

.accounting-vendor-button,
.accounting-inline-button {
  appearance: none;
  width: 100%;
  border: 1px solid rgba(125, 156, 196, 0.18);
  background: rgba(5, 14, 28, 0.72);
  color: var(--ink);
  border-radius: 8px;
  text-align: left;
  padding: 12px;
  font: inherit;
  cursor: pointer;
}

.accounting-inline-button {
  width: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--teal);
  font-weight: 700;
}

.accounting-vendor-button.active {
  border-color: rgba(0, 212, 170, 0.36);
  background: rgba(0, 212, 170, 0.08);
}

.accounting-vendor-button strong {
  display: block;
}

.accounting-desk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0;
}

.accounting-document-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.accounting-preview-frame,
.accounting-preview-image {
  width: 100%;
  margin-top: 10px;
  border: 1px solid rgba(125, 156, 196, 0.18);
  border-radius: 8px;
  background: rgba(5, 14, 28, 0.84);
}

.accounting-preview-frame {
  min-height: 440px;
}

.accounting-preview-image {
  display: block;
  max-height: 520px;
  object-fit: contain;
}

.accounting-status-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.parity-card {
  border-radius: 18px;
  border: 1px solid rgba(125, 156, 196, 0.16);
  background: rgba(8, 18, 36, 0.74);
  padding: 12px;
  display: grid;
  gap: 6px;
}

.parity-card.danger {
  border-color: rgba(255, 107, 138, 0.24);
  background: rgba(255, 107, 138, 0.1);
}

.feed-card h3 {
  font-size: 19px;
  margin: 8px 0;
}

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

.inline-action {
  appearance: none;
  border: 1px solid rgba(0, 212, 170, 0.2);
  background: rgba(0, 212, 170, 0.1);
  color: #8de7d7;
  border-radius: 999px;
  padding: 8px 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.workbench-shell,
.workbench-shell h2,
.workbench-shell h3,
.workbench-shell strong,
.workbench-shell .artifact-metric-value {
  color: rgba(245, 239, 230, 0.94);
}

.workbench-shell .panel-kicker,
.workbench-shell .block-label,
.workbench-shell .list-detail,
.workbench-shell .feed-note,
.workbench-shell .feed-path,
.workbench-shell .section-label,
.workbench-shell .muted,
.workbench-shell .task-meta,
.workbench-shell .block-copy,
.workbench-shell .list-card span,
.workbench-shell .feed-card p,
.workbench-shell .artifact-cell-detail {
  color: rgba(196, 208, 226, 0.74);
}

.workbench-shell .mini-chip,
.workbench-shell .pill {
  border: 1px solid rgba(0, 212, 170, 0.16);
  background: rgba(0, 212, 170, 0.12);
  color: #8de7d7;
}

.workbench-shell .action-button {
  border-color: rgba(125, 156, 196, 0.18);
  background: rgba(8, 18, 36, 0.82);
  color: rgba(245, 239, 230, 0.92);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.workbench-shell .action-button.primary {
  background: linear-gradient(135deg, rgba(0, 212, 170, 0.24), rgba(0, 96, 180, 0.78));
  border-color: rgba(0, 212, 170, 0.24);
}

.danger-action {
  background: rgba(188, 75, 81, 0.08);
  color: var(--rose);
}

.feed-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.feed-path {
  font-family: "SFMono-Regular", "Menlo", monospace;
  word-break: break-word;
}

@media (max-width: 1180px) {
  .hero,
  .main-grid,
  .nebula-hud,
  .nebula-dock {
    grid-template-columns: 1fr;
    display: grid;
  }

  .constellation-board {
    min-height: 640px;
  }

  .constellation-home {
    height: 760px;
  }

  .nebula-command-stack {
    position: absolute;
    left: 18px;
    right: 18px;
    top: 68px;
    width: auto;
  }

  .orbital-inner { width: 48%; height: 30%; }
  .orbital-mid { width: 76%; height: 48%; }
  .orbital-outer { width: 92%; height: 66%; }

  .workbench-grid,
  .workbench-actions-grid,
  .template-grid,
  .task-feed-grid,
  .accounting-summary-grid,
  .accounting-desk-shell {
    grid-template-columns: 1fr;
  }

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

  .workbench-overlay {
    inset: 8px;
  }

  .workbench-stage-header {
    flex-direction: column;
  }

  .workbench-stage-meta {
    justify-content: flex-start;
  }

  .workbench-tab-group-header {
    align-items: start;
    flex-direction: column;
  }

  .workbench-tab-group-header .list-detail {
    max-width: none;
    text-align: left;
  }
}

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

  .nebula-shell {
    padding: 14px;
  }

  .nebula-hud {
    gap: 18px;
  }

  .overview-grid,
  .inspector-grid,
  .parity-grid,
  .artifact-grid,
  .touchpoint-mini-grid {
    grid-template-columns: 1fr;
  }

  .accounting-preview-frame {
    min-height: 320px;
  }

  .stat-card.wide,
  .wide-card {
    grid-column: span 1;
  }

  .panel-header {
    flex-direction: column;
  }

  .workbench-overlay {
    inset: 0;
    border-radius: 0;
  }

  .workbench-shell {
    width: 100%;
    border-radius: 0;
  }

  .workbench-tab-strip {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .workbench-tab {
    min-width: 180px;
  }

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

  .workbench-stage-header,
  .workbench-stage-body {
    padding: 16px;
  }

  .constellation-board {
    min-height: 760px;
  }

  .constellation-home {
    height: 760px;
  }

  .node {
    width: 138px;
  }

  .node-label {
    font-size: 20px;
  }

  .node-role,
  .workflow-label {
    display: none;
  }

  .nebula-command-stack {
    left: 12px;
    right: 12px;
    top: 60px;
  }

  .board-float-grid {
    grid-template-columns: 1fr;
  }

  .nebula-command-stack {
    gap: 10px;
  }

  .orbital-inner { width: 56%; height: 24%; }
  .orbital-mid { width: 86%; height: 42%; }
  .orbital-outer { width: 98%; height: 58%; }

  .workbench-overlay {
    inset: 0;
  }
}

.nebula-shell {
  gap: 18px;
}

.command-bar {
  display: grid;
  grid-template-columns: minmax(240px, 0.92fr) minmax(0, 1.75fr) auto;
  gap: 18px;
  align-items: start;
  padding: 18px 20px;
}

.command-bar-copy {
  min-width: 0;
}

.command-bar-copy h1 {
  font-size: clamp(38px, 5vw, 54px);
}

.command-bar-copy .hero-copy {
  max-width: none;
  margin-top: 10px;
}

.command-bar-actions {
  display: grid;
  gap: 12px;
  align-content: start;
  justify-items: end;
}

.runtime-stack {
  display: flex;
  justify-content: flex-end;
}

.overview-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.main-stage {
  display: grid;
  grid-template-columns: minmax(308px, 348px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.office-rail {
  display: grid;
  gap: 14px;
  align-content: start;
}

.office-rail-slot {
  min-width: 0;
}

.nebula-stage {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.nebula-stage-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.nebula-stage-header h2 {
  font-size: 30px;
}

.stage-copy {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 540px;
}

.stage-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.constellation-home {
  min-height: clamp(760px, 78vh, 980px);
  height: clamp(760px, 78vh, 980px);
}

.constellation-board {
  min-height: clamp(760px, 78vh, 980px);
  height: clamp(760px, 78vh, 980px);
  background:
    radial-gradient(circle at 52% 50%, rgba(91, 188, 220, 0.2), transparent 26%),
    radial-gradient(circle at 52% 50%, rgba(0, 212, 170, 0.14), transparent 46%),
    linear-gradient(180deg, rgba(10, 23, 44, 0.98), rgba(5, 14, 28, 0.98));
}

.constellation-board::after {
  background: radial-gradient(circle at 52% 50%, rgba(0, 212, 170, 0.12), transparent 48%);
}

.orbital {
  left: 52%;
}

.orbital-inner {
  width: 44%;
  height: 32%;
}

.orbital-mid {
  width: 70%;
  height: 50%;
}

.orbital-outer {
  width: 88%;
  height: 68%;
}

.node {
  width: 178px;
  min-height: 134px;
}

.node-meta {
  font-size: 11px;
}

.office-hub-card,
.board-float-card,
.water-cooler-card {
  border-radius: 24px;
}

.office-cast-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.cast-pill {
  appearance: none;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(0, 212, 170, 0.12);
  color: #8de7d7;
}

.cast-pill-action {
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.cast-pill-action:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 212, 170, 0.2);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
}

.cast-pill.degraded {
  background: rgba(208, 140, 38, 0.14);
  color: var(--gold);
}

.cast-pill.blocked {
  background: rgba(188, 75, 81, 0.14);
  color: var(--rose);
}

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

.legend-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(125, 156, 196, 0.16);
  background: rgba(8, 18, 36, 0.74);
}

.legend-row strong,
.touchpoint-item strong {
  display: block;
}

.legend-row p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.legend-swatch {
  width: 12px;
  height: 12px;
  margin-top: 4px;
  border-radius: 999px;
  box-shadow: 0 0 0 6px rgba(8, 18, 36, 0.85);
}

.legend-swatch.active {
  background: #0d5c63;
}

.legend-swatch.watch {
  background: #d08c26;
}

.legend-swatch.blocked {
  background: #bc4b51;
}

.context-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.context-card {
  padding: 16px;
}

.compact-stack {
  gap: 8px;
}

.compact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.touchpoint-item,
.touchpoint-metric {
  padding: 12px;
  border-radius: 16px;
}

.touchpoint-item strong {
  font-size: 14px;
  line-height: 1.3;
}

.touchpoint-item p {
  font-size: 12px;
}

.workbench-overlay {
  inset: 0;
}

.workbench-shell.panel {
  background:
    linear-gradient(180deg, rgba(10, 23, 44, 0.96), rgba(5, 14, 28, 0.96));
  color: rgba(245, 239, 230, 0.94);
}

.nebula-loading {
  position: absolute;
  inset: 18px;
  z-index: 6;
  display: none;
  align-content: center;
  justify-items: center;
  gap: 12px;
  border-radius: 24px;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.46)),
    linear-gradient(180deg, rgba(246, 240, 226, 0.72), rgba(255, 249, 239, 0.46));
  backdrop-filter: blur(8px);
  color: var(--teal);
  text-align: center;
}

.nebula-loading p {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.constellation-board.is-loading .nebula-loading {
  display: grid;
}

.nebula-loading-dots {
  display: flex;
  gap: 12px;
}

.nebula-loading-dots span {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: rgba(13, 92, 99, 0.82);
  box-shadow: 0 0 0 0 rgba(13, 92, 99, 0.18);
  animation: nebula-loader 1.4s ease-in-out infinite;
}

.nebula-loading-dots span:nth-child(2) {
  animation-delay: 0.18s;
}

.nebula-loading-dots span:nth-child(3) {
  animation-delay: 0.36s;
}

@keyframes nebula-loader {
  0%, 100% {
    transform: translateY(0) scale(0.9);
    opacity: 0.45;
    box-shadow: 0 0 0 0 rgba(13, 92, 99, 0.18);
  }
  50% {
    transform: translateY(-8px) scale(1.06);
    opacity: 1;
    box-shadow: 0 0 0 10px rgba(13, 92, 99, 0);
  }
}

@media (max-width: 1440px) {
  .command-bar {
    grid-template-columns: minmax(220px, 0.96fr) minmax(0, 1.45fr) auto;
  }

  .overview-grid {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  }

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

@media (max-width: 1180px) {
  .command-bar,
  .main-stage,
  .context-strip {
    grid-template-columns: 1fr;
  }

  .command-bar-actions {
    justify-items: start;
  }

  .office-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .stage-meta {
    justify-content: flex-start;
  }

  .constellation-home {
    height: 820px;
  }

  .home-context-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .command-bar,
  .nebula-stage,
  .context-card {
    padding: 14px;
  }

  .overview-grid,
  .office-rail,
  .context-strip,
  .compact-grid {
    grid-template-columns: 1fr;
  }

  .home-context-grid {
    grid-template-columns: 1fr;
  }

  .nebula-stage-header {
    flex-direction: column;
  }

  .constellation-home {
    height: 880px;
  }

  .orbital {
    left: 50%;
  }

  .constellation-board {
    background:
      radial-gradient(circle at 50% 46%, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.22)),
      linear-gradient(180deg, rgba(13, 92, 99, 0.08), rgba(208, 140, 38, 0.08));
  }
}

.home-whiteboard {
  position: relative;
  min-height: auto;
  padding: 20px;
  overflow: visible;
  background:
    radial-gradient(circle at 18% 14%, rgba(0, 212, 170, 0.12), transparent 22%),
    radial-gradient(circle at 84% 16%, rgba(58, 123, 213, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(8, 18, 36, 0.86), rgba(5, 12, 24, 0.94));
  border: 1px solid rgba(125, 156, 196, 0.12);
}

.home-stage-shell {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
}

.home-context-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.home-context-card {
  border: 1px solid rgba(125, 156, 196, 0.16);
  background:
    linear-gradient(180deg, rgba(11, 24, 45, 0.86), rgba(7, 16, 32, 0.92));
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.24);
}

.compact-copy {
  max-width: none;
  margin-top: 8px;
  font-size: 13px;
}

.widget-home-stack {
  grid-area: stack;
  display: grid;
  gap: 18px;
  align-content: start;
}

.widget-home-deck {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 18px;
}

.widget-home-deck-zone {
  grid-area: deck;
  display: grid;
  gap: 18px;
}

.whiteboard-zone-copy {
  max-width: 760px;
}

.whiteboard-open-field {
  grid-area: field;
  display: grid;
  gap: 16px;
}

.whiteboard-field-surface {
  min-height: 340px;
  border-radius: 28px;
  border: 1px dashed rgba(24, 52, 58, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.18)),
    radial-gradient(circle at 20% 20%, rgba(13, 92, 99, 0.06), transparent 18%);
  display: grid;
  place-items: center;
  gap: 12px;
  padding: 28px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.whiteboard-field-surface span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(24, 52, 58, 0.08);
  background: rgba(255, 251, 243, 0.72);
}

.home-whiteboard::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(141, 231, 215, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(141, 231, 215, 0.04) 1px, transparent 1px);
  background-size: 54px 54px;
  opacity: 0.28;
}

.nebula-anchor {
  position: relative;
  z-index: 1;
  width: 100%;
  min-width: 0;
  margin: 0;
}

.home-whiteboard .panel-kicker,
.home-whiteboard .stage-copy,
.home-whiteboard .list-detail,
.home-whiteboard .feed-note,
.home-whiteboard .feed-path,
.home-whiteboard .section-label,
.home-whiteboard .muted,
.home-whiteboard .touchpoint-item p,
.home-whiteboard .touchpoint-meta {
  color: rgba(196, 208, 226, 0.74);
}

.home-whiteboard h2,
.home-whiteboard h3,
.home-whiteboard strong,
.home-whiteboard .touchpoint-item strong,
.home-whiteboard .touchpoint-metric .artifact-metric-value {
  color: rgba(245, 239, 230, 0.94);
}

.home-whiteboard .touchpoint-item,
.home-whiteboard .touchpoint-metric,
.home-whiteboard .cooler-note,
.home-whiteboard .water-cooler-card {
  border-color: rgba(125, 156, 196, 0.16);
  background: rgba(8, 18, 36, 0.72);
}

.home-whiteboard .touchpoint-item.danger,
.home-whiteboard .cooler-note.danger {
  border-color: rgba(255, 107, 138, 0.24);
  background: rgba(255, 107, 138, 0.1);
}

.home-whiteboard .touchpoint-jump,
.home-whiteboard .mini-chip {
  background: rgba(0, 212, 170, 0.12);
  color: #8de7d7;
}

.widget-layer {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
}

.widget-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  pointer-events: auto;
  cursor: default;
  width: 100%;
  max-width: 100%;
  --floating-width: 320px;
}

.widget-shell.floating {
  position: absolute;
  width: var(--floating-width);
  max-width: var(--floating-width);
  filter: drop-shadow(0 18px 32px rgba(24, 52, 58, 0.1));
}

.widget-shell.widget-rail {
  --floating-width: 320px;
}

.widget-shell.widget-wide {
  --floating-width: 420px;
}

.widget-home-deck .widget-shell {
  min-width: 0;
}

.widget-shell.dragging {
  z-index: 20 !important;
  cursor: grabbing;
}

.widget-placeholder {
  width: 100%;
  min-width: 0;
}

.widget-placeholder-card {
  height: 100%;
  min-height: inherit;
  border-radius: 24px;
  border: 1px dashed rgba(24, 52, 58, 0.16);
  background: rgba(255, 251, 243, 0.38);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.widget-drag-handle {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border: 1px solid rgba(24, 52, 58, 0.12);
  background: rgba(255, 251, 243, 0.97);
  color: var(--teal);
  border-radius: 20px 20px 12px 12px;
  margin: 0 0 -12px;
  padding: 10px 14px 20px;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: grab;
  user-select: none;
  touch-action: none;
  box-shadow: 0 8px 24px rgba(24, 52, 58, 0.1);
}

.widget-drag-handle::before {
  content: "";
  width: 34px;
  height: 10px;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(13, 92, 99, 0.38) 0 2px, transparent 2px 100%) left center / 10px 10px repeat-x;
  opacity: 0.85;
}

.widget-drag-handle::after {
  content: "Drag";
  font-size: 10px;
  letter-spacing: 0.18em;
  opacity: 0.72;
}

.widget-drag-handle:active,
.widget-shell.dragging .widget-drag-handle {
  cursor: grabbing;
}

.widget-shell .panel,
.widget-shell .board-float-card,
.widget-shell .office-hub-card,
.widget-shell .water-cooler-card {
  margin: 0;
  position: relative;
  z-index: 1;
}

.widget-shell .context-card {
  padding: 16px;
}

@media (max-width: 1280px) {
  .whiteboard-shell {
    grid-template-columns: 300px minmax(0, 1fr);
  }

  .widget-home-deck {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  }
}

@media (max-width: 1180px) {
  .home-whiteboard {
    min-height: auto;
    display: grid;
    gap: 18px;
    padding: 18px;
  }

  .whiteboard-shell {
    grid-template-columns: 1fr;
    grid-template-areas:
      "stage"
      "stack"
      "deck"
      "field";
  }

  .widget-home-stack,
  .widget-home-deck {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .widget-layer {
    position: relative;
    inset: auto;
    min-height: 0;
  }

  .widget-shell {
    position: relative;
    left: auto !important;
    top: auto !important;
    width: auto !important;
    max-width: none !important;
    filter: none;
  }
}

@media (max-width: 760px) {
  .home-whiteboard {
    padding: 14px;
  }

  .widget-home-stack,
  .widget-home-deck {
    grid-template-columns: 1fr;
  }

  .whiteboard-field-surface {
    min-height: 260px;
  }
}

.briefing-visual-card {
  display: grid;
  gap: 12px;
}

.briefing-visual-list {
  display: grid;
  gap: 12px;
}

.briefing-visual-row {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(24, 52, 58, 0.08);
  background: rgba(255, 255, 255, 0.72);
}

.briefing-visual-row-action {
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.briefing-visual-row-action:hover {
  transform: translateY(-1px);
  border-color: rgba(13, 92, 99, 0.18);
  box-shadow: 0 12px 24px rgba(24, 52, 58, 0.08);
}

.briefing-visual-copy {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.briefing-visual-copy strong {
  font-size: 14px;
}

.briefing-visual-copy span {
  font-size: 13px;
  color: var(--muted);
}

.briefing-visual-track {
  position: relative;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(13, 92, 99, 0.08);
  overflow: hidden;
}

.briefing-visual-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--gold));
}

.briefing-telegram-preview {
  margin: 0;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(24, 52, 58, 0.08);
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
  font: 12px/1.55 "SFMono-Regular", "Menlo", monospace;
  white-space: pre-wrap;
}

.focused-section {
  border-color: rgba(13, 92, 99, 0.28) !important;
  box-shadow: 0 0 0 3px rgba(13, 92, 99, 0.08);
}

.commerce-registry-table-shell {
  max-height: 720px;
}

.inventory-row-link {
  appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  color: var(--teal);
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.inventory-row-link:hover {
  text-decoration: underline;
}

@media (max-width: 760px) {
  .daily-briefing-metrics-grid {
    grid-template-columns: 1fr;
  }
}
