.demo {
  background: var(--prism-cloud, #f6f8fb);
  border: 1px solid rgba(22, 32, 42, 0.1);
  color: var(--prism-text-primary, #16202a);
  font-family: var(--halo-font-sans);
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.shell {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  height: 100%;
  min-height: 0;
  transition: grid-template-columns 240ms ease;
}

.shell[data-sidebar="expanded"] {
  grid-template-columns: 186px minmax(0, 1fr);
}

.sidebar {
  background: var(--prism-sidebar-bg, #18212f);
  color: rgba(255, 255, 255, 0.82);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  padding: 12px 8px;
  position: relative;
}

.sidebarToggle {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 999px;
  color: inherit;
  display: inline-flex;
  height: 26px;
  justify-content: center;
  padding: 0;
  position: absolute;
  right: -13px;
  top: 15px;
  width: 26px;
  z-index: 3;
}

.brand {
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  gap: 9px;
  height: 50px;
  justify-content: center;
  overflow: hidden;
}

.brand img {
  height: 28px;
  max-width: none;
  width: auto;
}

.brand strong {
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

.shell[data-sidebar="collapsed"] .brand strong,
.shell[data-sidebar="collapsed"] .sidebar nav span,
.shell[data-sidebar="collapsed"] .sidebar nav small,
.shell[data-sidebar="collapsed"] .today {
  display: none;
}

.sidebar nav {
  display: grid;
  gap: 4px;
}

.sidebar nav button {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--prism-radius-sm);
  color: inherit;
  display: grid;
  font: inherit;
  font-size: 0.72rem;
  gap: 8px;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  min-height: 36px;
  padding: 0 9px;
  text-align: left;
}

.shell[data-sidebar="collapsed"] .sidebar nav button {
  display: flex;
  justify-content: center;
  padding: 0;
}

.sidebar nav button[aria-current="page"] {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(241, 58, 173, 0.28);
}

.sidebar nav small {
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.62rem;
}

.today {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--prism-radius-sm);
  display: grid;
  margin-top: auto;
  padding: 10px;
}

.today span,
.today small {
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.64rem;
}

.today strong {
  font-size: 1.25rem;
  margin: 3px 0;
}

.workspace {
  display: grid;
  grid-template-rows: 46px minmax(0, 1fr);
  min-height: 0;
  min-width: 0;
}

.mobileHeader {
  display: none;
}

.commandBar {
  align-items: center;
  background: var(--prism-surface, #fff);
  border-bottom: 1px solid var(--prism-border, #dde3ea);
  display: flex;
  gap: 7px;
  min-width: 0;
  padding: 6px 10px;
}

.search {
  align-items: center;
  background: var(--prism-surface-raised, #f9fafc);
  border: 1px solid var(--prism-border, #dde3ea);
  border-radius: var(--prism-radius-sm);
  color: var(--prism-text-muted, #73808d);
  display: flex;
  flex: 1;
  gap: 7px;
  height: 32px;
  max-width: 430px;
  min-width: 120px;
  padding: 0 9px;
}

.search input {
  background: transparent;
  border: 0;
  color: var(--prism-text-primary, #16202a);
  font-size: 0.68rem;
  min-width: 0;
  outline: none;
  width: 100%;
}

.rooftop,
.workflow,
.live {
  align-items: center;
  background: var(--prism-surface-raised, #f9fafc);
  border: 1px solid var(--prism-border, #dde3ea);
  border-radius: 999px;
  color: var(--prism-text-secondary, #465665);
  display: inline-flex;
  font-size: 0.64rem;
  font-weight: 650;
  height: 28px;
  padding: 0 9px;
  white-space: nowrap;
}

.live {
  background: var(--prism-magenta-50, #fff4fc);
  border-color: var(--prism-magenta-100, #f8d8f0);
  color: var(--prism-magenta-700, #a81b78);
}

.content {
  display: grid;
  gap: 7px;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  padding: 8px;
  position: relative;
}

.summary,
.boardPanel {
  background: var(--prism-surface, #fff);
  border: 1px solid var(--prism-border, #dde3ea);
  border-radius: var(--prism-radius-md);
  min-width: 0;
}

.summary {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  min-height: 70px;
  padding: 9px 12px;
}

.summary > div:first-child > span {
  color: var(--prism-magenta-700, #a81b78);
  font-size: 0.55rem;
  font-weight: 760;
  letter-spacing: 0.07em;
}

.summary h3 {
  color: var(--prism-text-primary, #16202a);
  font-size: 1.08rem;
  line-height: 1;
  margin: 3px 0;
}

.summary p {
  color: var(--prism-text-muted, #73808d);
  font-size: 0.64rem;
  line-height: 1.25;
  margin: 0;
}

.kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(90px, 1fr));
}

.kpis article {
  align-items: baseline;
  border-left: 1px solid var(--prism-border, #dde3ea);
  display: flex;
  gap: 7px;
  padding: 2px 12px;
}

.kpis strong {
  color: var(--prism-text-primary, #16202a);
  font-size: 1.18rem;
}

.kpis span {
  color: var(--prism-text-muted, #73808d);
  font-size: 0.6rem;
  line-height: 1.15;
}

.boardPanel {
  display: grid;
  grid-template-rows: 42px minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
}

.toolbar {
  align-items: center;
  background: var(--prism-surface-raised, #f9fafc);
  border-bottom: 1px solid var(--prism-border, #dde3ea);
  display: flex;
  gap: 8px;
  justify-content: space-between;
  min-width: 0;
  padding: 5px 8px 5px 11px;
}

.toolbar > strong {
  color: var(--prism-text-primary, #16202a);
  font-size: 0.78rem;
}

.toolbar > div {
  align-items: center;
  display: flex;
  gap: 6px;
  min-width: 0;
}

.toolbar label {
  align-items: center;
  display: flex;
  gap: 5px;
}

.toolbar label > span {
  color: var(--prism-text-muted, #73808d);
  font-size: 0.58rem;
  font-weight: 650;
}

.toolbar select {
  background: white;
  border: 1px solid var(--prism-border, #dde3ea);
  border-radius: var(--prism-radius-sm);
  color: var(--prism-text-secondary, #465665);
  font-size: 0.62rem;
  height: 30px;
  padding: 0 22px 0 8px;
}

.segmented {
  background: var(--prism-mist, #eef2f6);
  border: 1px solid var(--prism-border, #dde3ea);
  border-radius: var(--prism-radius-sm);
  display: flex;
  padding: 2px;
}

.segmented button,
.handoffButton,
.reset {
  align-items: center;
  border: 0;
  border-radius: var(--prism-radius-sm);
  display: inline-flex;
  font-size: 0.61rem;
  font-weight: 700;
  gap: 4px;
  height: 26px;
  justify-content: center;
  padding: 0 8px;
  white-space: nowrap;
}

.segmented button {
  background: transparent;
  color: var(--prism-text-secondary, #465665);
}

.segmented button[aria-pressed="true"] {
  background: white;
  color: var(--prism-text-primary, #16202a);
}

.handoffButton {
  background: var(--prism-text-primary, #16202a);
  color: white;
}

.handoffButton:disabled {
  background: var(--prism-magenta-50, #fff4fc);
  color: var(--prism-magenta-700, #a81b78);
}

.reset {
  background: white;
  border: 1px solid var(--prism-border, #dde3ea);
  color: var(--prism-text-secondary, #465665);
  padding: 0;
  width: 28px;
}

.boardViewport {
  min-height: 0;
  overflow: hidden;
  padding: 7px;
}

.mobileStages {
  display: none;
}

.kanban {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  height: 100%;
  min-height: 0;
}

.lane {
  background: var(--prism-surface-raised, #f9fafc);
  border: 1px solid var(--prism-border, #dde3ea);
  border-radius: var(--prism-radius-sm);
  display: grid;
  grid-template-rows: 46px minmax(0, 1fr);
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}

.lane > header {
  align-items: center;
  border-bottom: 1px solid var(--prism-border, #dde3ea);
  display: flex;
  gap: 6px;
  justify-content: space-between;
  padding: 6px 7px;
}

.lane > header strong,
.lane > header small {
  display: block;
}

.lane > header strong {
  color: var(--prism-text-primary, #16202a);
  font-size: 0.65rem;
  line-height: 1.05;
}

.lane > header small {
  color: var(--prism-text-muted, #73808d);
  font-size: 0.54rem;
  margin-top: 3px;
}

.lane > header b {
  align-items: center;
  background: var(--prism-mist, #eef2f6);
  border: 1px solid var(--prism-border, #dde3ea);
  border-radius: 999px;
  color: var(--prism-text-secondary, #465665);
  display: inline-flex;
  font-size: 0.58rem;
  height: 22px;
  justify-content: center;
  min-width: 22px;
}

.lane > div {
  align-content: start;
  display: grid;
  gap: 6px;
  min-height: 0;
  overflow: hidden;
  padding: 6px;
}

.lane > div > p {
  color: var(--prism-text-muted, #73808d);
  font-size: 0.58rem;
  margin: 2px;
}

.vehicleCard {
  appearance: none;
  background: white;
  border: 1px solid var(--prism-border, #dde3ea);
  border-radius: var(--prism-radius-sm);
  color: var(--prism-text-secondary, #465665);
  display: grid;
  font: inherit;
  gap: 5px;
  min-width: 0;
  padding: 7px;
  text-align: left;
  transition: 180ms ease;
  width: 100%;
}

.vehicleCard:hover,
.vehicleCard[data-selected="true"] {
  background: var(--prism-magenta-50, #fff4fc);
  border-color: var(--prism-magenta-100, #f8d8f0);
}

.demo[data-advanced="true"] .vehicleCard[data-featured="true"] {
  animation: cardLand 620ms ease both;
}

.demo[data-advancing="true"] .vehicleCard[data-featured="true"] {
  border-color: var(--prism-magenta-300, #e885c8);
  transform: translateY(-3px);
}

.cardTop,
.cardFooter {
  align-items: center;
  display: flex;
  gap: 6px;
  justify-content: space-between;
  min-width: 0;
}

.cardTop > span {
  color: var(--prism-text-muted, #73808d);
  font-family: var(--halo-font-mono);
  font-size: 0.56rem;
  font-weight: 700;
}

.cardTop small {
  background: #e9f8f0;
  border-radius: 999px;
  color: #147052;
  font-size: 0.5rem;
  font-weight: 760;
  padding: 3px 5px;
  white-space: nowrap;
}

.cardTop small[data-sla="At risk"] {
  background: #fff5df;
  color: #8c5d13;
}

.vehicleCard > strong {
  color: var(--prism-text-primary, #16202a);
  font-size: 0.63rem;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.vehicleCard > em {
  background: #fff5df;
  border: 1px solid #f2d8a8;
  border-radius: var(--prism-radius-sm);
  color: #8c5d13;
  font-size: 0.5rem;
  font-style: normal;
  font-weight: 720;
  padding: 4px 5px;
}

.cardStatus {
  font-size: 0.55rem;
  font-weight: 720;
}

.cardStatus[data-tone="capturing"] {
  color: var(--prism-magenta-700, #a81b78);
}

.cardStatus[data-tone="review"] {
  color: #8c5d13;
}

.cardStatus[data-tone="published"] {
  color: #147052;
}

.cardFooter {
  color: var(--prism-text-muted, #73808d);
  font-size: 0.51rem;
}

.tableWrap {
  min-height: 0;
  overflow: hidden;
}

.tableWrap table {
  border-collapse: collapse;
  width: 100%;
}

.tableWrap th,
.tableWrap td {
  border-bottom: 1px solid var(--prism-border, #dde3ea);
  color: var(--prism-text-secondary, #465665);
  font-size: 0.62rem;
  padding: 7px 9px;
  text-align: left;
}

.tableWrap th {
  background: var(--prism-mist, #eef2f6);
  color: var(--prism-text-muted, #73808d);
  font-size: 0.56rem;
  text-transform: uppercase;
}

.tableWrap tr[data-featured="true"] td {
  background: var(--prism-magenta-50, #fff4fc);
}

.tableWrap td button {
  background: transparent;
  border: 0;
  color: inherit;
  display: grid;
  padding: 0;
  text-align: left;
}

.tableWrap td button strong {
  color: var(--prism-text-primary, #16202a);
}

.tableWrap td button span {
  color: var(--prism-text-muted, #73808d);
  font-size: 0.55rem;
}

.drawerLayer {
  align-items: stretch;
  background: rgba(22, 32, 42, 0.12);
  display: flex;
  inset: 0;
  justify-content: flex-end;
  position: absolute;
  z-index: 8;
}

.drawer {
  animation: drawerIn 180ms ease both;
  background: white;
  border-left: 1px solid var(--prism-border, #dde3ea);
  color: var(--prism-text-secondary, #465665);
  display: grid;
  grid-template-rows: auto auto auto auto;
  max-width: 100%;
  min-height: 0;
  overflow: hidden;
  width: min(330px, 44%);
}

.drawer > header {
  border-bottom: 1px solid var(--prism-border, #dde3ea);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 12px;
}

.drawer > header > span {
  color: var(--prism-magenta-700, #a81b78);
  font-size: 0.55rem;
  font-weight: 760;
  letter-spacing: 0.06em;
}

.drawer > header button {
  align-items: center;
  background: var(--prism-surface-raised, #f9fafc);
  border: 1px solid var(--prism-border, #dde3ea);
  border-radius: 999px;
  color: inherit;
  display: inline-flex;
  grid-column: 2;
  grid-row: 1 / span 2;
  height: 28px;
  justify-content: center;
  padding: 0;
  width: 28px;
}

.drawer > header strong {
  color: var(--prism-text-primary, #16202a);
  font-size: 1.2rem;
  grid-column: 1;
  margin-top: 6px;
}

.drawer > header small {
  color: var(--prism-text-muted, #73808d);
  font-size: 0.68rem;
  grid-column: 1;
}

.drawerMetrics {
  display: grid;
  gap: 7px;
  grid-template-columns: 1fr 1fr;
  padding: 10px;
}

.drawerMetrics article,
.drawer > section {
  background: var(--prism-surface-raised, #f9fafc);
  border: 1px solid var(--prism-border, #dde3ea);
  border-radius: var(--prism-radius-sm);
  display: grid;
  gap: 5px;
  padding: 9px;
}

.drawer > section {
  border-left: 0;
  border-right: 0;
  border-radius: 0;
}

.drawerMetrics span,
.drawer > section > span {
  color: var(--prism-text-muted, #73808d);
  font-size: 0.55rem;
  font-weight: 720;
}

.drawerMetrics strong,
.drawer > section > strong {
  color: var(--prism-text-primary, #16202a);
  font-size: 0.68rem;
}

.drawer > section p {
  font-size: 0.62rem;
  line-height: 1.3;
  margin: 0;
}

.observation {
  background: #fff5df;
  color: #8c5d13 !important;
  padding: 7px;
}

.drawer ol {
  display: grid;
  gap: 5px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.drawer li {
  color: var(--prism-text-muted, #73808d);
  font-size: 0.58rem;
  padding-left: 12px;
  position: relative;
}

.drawer li::before {
  background: #bdc6ce;
  border-radius: 999px;
  content: "";
  height: 6px;
  left: 0;
  position: absolute;
  top: 3px;
  width: 6px;
}

.drawer li[data-state="complete"]::before {
  background: #147052;
}

.drawer li[data-state="active"] {
  color: var(--prism-text-primary, #16202a);
  font-weight: 720;
}

.drawer li[data-state="active"]::before {
  background: var(--prism-magenta-700, #a81b78);
}

@keyframes drawerIn {
  from {
    opacity: 0;
    transform: translateX(14px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes cardLand {
  0% {
    background: var(--prism-magenta-50, #fff4fc);
    transform: translateY(-4px);
  }
  100% {
    background: white;
    transform: translateY(0);
  }
}

@media (max-width: 930px) {
  .rooftop,
  .workflow,
  .toolbar label {
    display: none;
  }

  .summary {
    min-height: 62px;
  }

  .kpis article {
    padding-inline: 7px;
  }

  .vehicleCard > em {
    display: none;
  }
}

@media (max-width: 700px) {
  .shell,
  .shell[data-sidebar="expanded"] {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

  .workspace {
    grid-template-rows: 42px 40px minmax(0, 1fr);
  }

  .mobileHeader {
    align-items: center;
    background: var(--prism-sidebar-bg, #18212f);
    color: white;
    display: grid;
    gap: 8px;
    grid-template-columns: 22px minmax(0, 1fr) auto;
    padding: 6px 9px;
  }

  .mobileHeader img {
    height: 24px;
    width: auto;
  }

  .mobileHeader > span:nth-child(2) {
    color: rgba(255, 255, 255, 0.58);
    display: grid;
    font-size: 0.52rem;
  }

  .mobileHeader strong {
    color: white;
    font-size: 0.7rem;
  }

  .mobileHeader .live {
    height: 24px;
  }

  .commandBar {
    grid-row: 2;
  }

  .commandBar > .live {
    display: none;
  }

  .search {
    height: 28px;
    max-width: none;
  }

  .content {
    grid-row: 3;
    grid-template-rows: minmax(0, 1fr);
    padding: 6px;
  }

  .summary {
    display: none;
  }

  .boardPanel {
    grid-template-rows: 40px minmax(0, 1fr);
  }

  .toolbar > strong,
  .segmented {
    display: none;
  }

  .toolbar {
    justify-content: flex-end;
    padding-inline: 6px;
  }

  .toolbar > div {
    width: 100%;
  }

  .handoffButton {
    flex: 1;
  }

  .boardViewport {
    padding: 5px;
  }

  .mobileStages {
    display: grid;
    gap: 3px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin-bottom: 5px;
  }

  .mobileStages button {
    align-items: center;
    background: white;
    border: 1px solid var(--prism-border, #dde3ea);
    border-radius: var(--radius-control);
    color: var(--prism-text-secondary, #465665);
    display: grid;
    font: inherit;
    font-size: 0.46rem;
    gap: 1px;
    min-height: 31px;
    padding: 3px 1px;
  }

  .mobileStages button[aria-current="true"] {
    background: var(--prism-magenta-50, #fff4fc);
    border-color: var(--prism-magenta-100, #f8d8f0);
    color: var(--prism-magenta-700, #a81b78);
  }

  .mobileStages span {
    font-size: 0.48rem;
    font-weight: 760;
  }

  .kanban {
    display: block;
    height: calc(100% - 36px);
  }

  .lane {
    display: none;
    height: 100%;
  }

  .lane[data-mobile-active="true"] {
    display: grid;
  }

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

  .drawer {
    width: min(330px, 88%);
  }

  .tableWrap th:nth-child(3),
  .tableWrap td:nth-child(3),
  .tableWrap th:nth-child(5),
  .tableWrap td:nth-child(5) {
    display: none;
  }
}

@media (max-width: 430px) {
  .lane > div {
    grid-template-columns: 1fr;
  }

  .vehicleCard {
    gap: 4px;
  }

  .drawer > section:nth-of-type(n + 3) {
    display: none;
  }
}

@media (max-height: 560px) {
  .workspace {
    grid-template-rows: 36px minmax(0, 1fr);
  }

  .commandBar {
    padding-block: 3px;
  }

  .search {
    height: 28px;
  }

  .content {
    grid-template-rows: minmax(0, 1fr);
    padding: 5px;
  }

  .summary {
    display: none;
  }

  .boardPanel {
    grid-template-rows: 36px minmax(0, 1fr);
  }

  .toolbar label,
  .segmented {
    display: none;
  }

  .lane {
    grid-template-rows: 36px minmax(0, 1fr);
  }

  .lane > header {
    padding-block: 3px;
  }

  .lane > header small,
  .vehicleCard .cardFooter,
  .vehicleCard > em {
    display: none;
  }

  .lane > div {
    padding: 4px;
  }

  .lane .vehicleCard:nth-child(n + 2) {
    display: none;
  }

  .vehicleCard {
    gap: 3px;
    padding: 5px;
  }

  .drawer > section:nth-of-type(n + 2) {
    display: none;
  }
}

@media (max-width: 700px) and (max-height: 560px) {
  .workspace {
    grid-template-rows: 34px 34px minmax(0, 1fr);
  }

  .mobileHeader {
    padding-block: 3px;
  }

  .mobileHeader img {
    height: 20px;
  }

  .boardViewport {
    padding: 3px;
  }

  .mobileStages {
    margin-bottom: 3px;
  }

  .mobileStages button {
    min-height: 26px;
  }

  .kanban {
    height: calc(100% - 29px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .shell,
  .vehicleCard,
  .demo[data-advanced="true"] .vehicleCard[data-featured="true"],
  .drawer {
    animation: none;
    transition: none;
  }
}
