/* Isolated demo chrome. Operational components retain the Nexo design system. */
:root {
  --demo-bar-height: 62px;
}
.demo-entry {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: #fff;
}
.demo-story {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 44px clamp(32px, 5vw, 80px) 28px;
  color: #eef3f6;
  background: #17242d;
  overflow: hidden;
}
.demo-story .demo-brand {
  color: #fff;
  align-self: flex-start;
}
.demo-brand .brand-mark {
  width: 37px;
  height: 37px;
}
.demo-brand .brand-mark svg {
  width: 37px;
  height: 37px;
}
.demo-story-content {
  margin-top: clamp(48px, 10vh, 120px);
  position: relative;
  z-index: 1;
}
.demo-story-content h1 {
  font-size: clamp(40px, 4.4vw, 68px);
  font-weight: 620;
  line-height: 1.04;
  letter-spacing: -2px;
}
.demo-story-content > p {
  max-width: 380px;
  margin-top: 24px;
  color: #bccbd5;
  font-size: 17px;
  line-height: 1.7;
}
.demo-story-art {
  margin: 30px -30px 34px;
  position: relative;
}
.demo-story-art img {
  display: block;
  width: 100%;
  height: clamp(150px, 23vh, 245px);
  object-fit: cover;
  object-position: 50% 50%;
  border-radius: 5px;
}
.demo-story-art figcaption {
  margin-top: 13px;
  padding-inline: 30px;
  font-size: 12px;
  color: #bccbd5;
}
.demo-story-footer {
  margin-top: auto;
  font-size: 12px;
  color: #9eb0bd;
  padding-top: 20px;
}
.demo-entry-access {
  padding: 64px clamp(30px, 5.2vw, 88px);
  display: flex;
  align-items: center;
}
.demo-entry-content {
  width: 100%;
  max-width: 480px;
  margin-inline: auto;
}
.demo-example-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #854021;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}
.demo-example-tag > span {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #ad4119;
}
.demo-entry-content > h2 {
  margin-top: 20px;
  font-size: clamp(28px, 2.8vw, 39px);
  line-height: 1.2;
  letter-spacing: -1px;
  font-weight: 650;
}
.demo-entry-intro {
  font-size: 16px;
  line-height: 1.7;
  margin-top: 18px;
  color: #5c6d7a;
}
.demo-ready-note {
  display: flex;
  gap: 13px;
  margin-top: 28px;
  padding: 19px 18px;
  background: #f3f6f8;
  border-radius: 6px;
}
.demo-ready-note > svg {
  color: #237459;
  width: 21px;
  height: 21px;
  margin-top: 1px;
}
.demo-ready-note strong {
  font-size: 14px;
}
.demo-ready-note p {
  margin-top: 5px;
  font-size: 13px;
  line-height: 1.65;
  color: #5c6d7a;
}
.demo-enter-button {
  margin-top: 24px;
  min-height: 52px;
  font-size: 15px;
}
.demo-entry-session {
  margin-top: 10px;
  font-size: 12px;
  color: #5c6d7a;
  text-align: center;
}
.demo-entry-error,
.demo-dialog-error {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid #e7bbb2;
  border-radius: 5px;
  color: #983b24;
  background: #fff6f2;
}
.demo-entry-route {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid #dbe2e7;
}
.demo-entry-route h3 {
  font-size: 14px;
  font-weight: 650;
}
.demo-entry-route ol {
  margin: 13px 0 0;
  padding-left: 20px;
  color: #5c6d7a;
  font-size: 13px;
}
.demo-entry-route li {
  padding-left: 4px;
  margin-top: 7px;
}
.demo-entry-route li::marker {
  color: #ad4119;
  font-weight: 600;
}
.demo-entry-details {
  margin-top: 18px;
  color: #17242d;
  font-size: 13px;
}
.demo-entry-details summary {
  cursor: pointer;
  min-height: 32px;
  font-weight: 600;
}
.demo-entry-details p {
  color: #5c6d7a;
  line-height: 1.7;
  margin: 6px 0 15px;
}
.demo-entry-limit {
  font-size: 12px;
  line-height: 1.65;
  color: #5c6d7a;
  margin-top: 18px;
}
.demo-real-access {
  display: inline-block;
  margin-top: 18px;
  color: #ad4119;
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.demo-running {
  padding-top: var(--demo-bar-height);
}
.demo-running .sidebar {
  top: var(--demo-bar-height);
}
.demo-running .mobile-backdrop.visible {
  top: var(--demo-bar-height);
}
.demo-running .main {
  min-height: calc(100svh - var(--demo-bar-height));
}
.demo-running .demo-pill,
.demo-running .example-note {
  display: none;
}
.demo-toolbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 70;
  min-height: 62px;
  padding: 9px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #fff9f5;
  border-bottom: 1px solid #e6cdbd;
  color: #17242d;
}
.demo-toolbar-context,
.demo-toolbar-controls {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}
.demo-toolbar-time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #5c6d7a;
  font-size: 12px;
  white-space: nowrap;
}
.demo-toolbar-time svg {
  width: 15px;
  height: 15px;
}
.demo-toolbar-controls {
  gap: 10px;
}
.demo-guide-button {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 650;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid #d6b6a2;
  border-radius: 5px;
  color: #854021;
  background: #fff;
  white-space: nowrap;
}
.demo-guide-button:hover {
  background: #fff1e7;
}
.demo-guide-button svg {
  width: 17px;
  height: 17px;
}
.demo-role-picker {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #5c6d7a;
  font-size: 12px;
}
.demo-role-picker select {
  min-height: 40px;
  max-width: 150px;
  padding: 6px 24px 6px 9px;
  color: #17242d;
  border: 1px solid #d8ccc4;
  background: #fff;
  border-radius: 5px;
  font-size: 13px;
}
.demo-toolbar-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 5px;
  color: #5c6d7a;
}
.demo-toolbar-icon:hover {
  background: #f3e9e2;
  color: #854021;
}
.demo-toolbar-icon svg {
  width: 18px;
  height: 18px;
}
.demo-dialog-open {
  overflow: hidden;
}
.demo-dialog-backdrop {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  z-index: 100;
  background: #10263180;
}
.demo-dialog {
  width: min(100%, 480px);
  max-height: calc(100svh - 44px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 15px 60px #10263124;
}
.demo-dialog-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 21px 24px;
  background: #fff;
  border-bottom: 1px solid #dbe2e7;
}
.demo-dialog-head h2 {
  font-size: 20px;
  line-height: 1.35;
}
.demo-dialog-close {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  color: #5c6d7a;
  border-radius: 5px;
}
.demo-dialog-close:hover {
  background: #f3f6f8;
}
.demo-confirm-content {
  padding: 24px;
  color: #5c6d7a;
  font-size: 14px;
  line-height: 1.7;
}
.demo-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 0 24px 24px;
}
.demo-confirm-actions .btn {
  white-space: normal;
  text-align: center;
}
.demo-guide-backdrop {
  justify-items: end;
  padding: 0;
}
.demo-guide-dialog {
  width: min(100%, 475px);
  height: 100svh;
  max-height: 100svh;
  border-radius: 0;
}
.demo-guide-content {
  padding: 22px 24px 30px;
}
.demo-guide-intro {
  font-size: 14px;
  line-height: 1.7;
  color: #5c6d7a;
}
.demo-guide-current {
  padding: 21px 19px 9px;
  margin-top: 22px;
  background: #f3f6f8;
  border-radius: 7px;
}
.demo-guide-progress {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 7px 14px;
  font-size: 12px;
  color: #5c6d7a;
}
.demo-guide-progress > span:first-child {
  color: #854021;
  font-weight: 650;
}
.demo-guide-current h3 {
  font-size: 20px;
  line-height: 1.35;
  margin-top: 12px;
  letter-spacing: -0.3px;
}
.demo-guide-current p {
  font-size: 14px;
  line-height: 1.7;
  margin-top: 12px;
}
.demo-guide-current .demo-guide-detail {
  color: #5c6d7a;
  font-size: 12px;
}
.demo-guide-current .btn {
  margin-top: 20px;
  min-height: 44px;
}
.demo-guide-current .demo-guide-role-note {
  font-size: 12px;
  color: #854021;
}
.demo-guide-step-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 16px;
}
.demo-guide-step-controls > button {
  min-height: 44px;
  font-size: 13px;
  color: #854021;
  font-weight: 600;
  padding: 0 2px;
}
.demo-guide-step-controls > span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.demo-guide-step-controls i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c7d2da;
}
.demo-guide-step-controls i.is-current {
  background: #ad4119;
  width: 7px;
  height: 7px;
}
.demo-guide-areas-title {
  margin-top: 28px;
  font-size: 15px;
}
.demo-guide-areas {
  display: grid;
  margin-top: 10px;
}
.demo-guide-area {
  text-align: left;
  padding: 15px 0;
  border-bottom: 1px solid #dbe2e7;
}
.demo-guide-area strong {
  display: block;
  font-size: 14px;
}
.demo-guide-area > span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.6;
  color: #5c6d7a;
}
.demo-guide-area small {
  display: block;
  margin-top: 5px;
  color: #854021;
}
.demo-guide-area:hover:not(:disabled) strong {
  color: #ad4119;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.demo-guide-area:disabled {
  opacity: 0.7;
}
.demo-guide-boundary {
  margin-top: 24px;
  padding: 16px;
  border-radius: 5px;
  background: #fff6ed;
}
.demo-guide-boundary strong {
  font-size: 13px;
}
.demo-guide-boundary p {
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.65;
  color: #5c6d7a;
}
@media (max-width: 1100px) {
  .demo-toolbar-context {
    gap: 13px;
  }
  .demo-role-picker > span {
    display: none;
  }
  .demo-story {
    padding-inline: 38px;
  }
  .demo-entry-access {
    padding-inline: 38px;
  }
  .demo-story-art {
    margin-inline: -15px;
  }
  .demo-story-art figcaption {
    padding-inline: 15px;
  }
}
@media (max-width: 760px) {
  .demo-entry {
    grid-template-columns: 1fr;
  }
  .demo-story {
    padding: 26px 26px 29px;
  }
  .demo-story-content {
    margin-top: 24px;
  }
  .demo-story-content h1 {
    font-size: 36px;
    letter-spacing: -1px;
  }
  .demo-story-content > p,
  .demo-story-art {
    display: none;
  }
  .demo-story-art img {
    height: 135px;
  }
  .demo-story-art figcaption {
    padding-inline: 8px;
  }
  .demo-story-footer {
    display: none;
  }
  .demo-entry-access {
    padding: 26px 26px 40px;
  }
  .demo-entry-content {
    max-width: 520px;
  }
  .demo-entry-content > h2 {
    font-size: 32px;
  }
  .demo-ready-note {
    margin-top: 20px;
    padding: 14px;
  }
  .demo-enter-button {
    margin-top: 18px;
  }
  .demo-toolbar {
    flex-wrap: wrap;
    gap: 4px;
    padding: 6px 12px;
  }
  .demo-toolbar-context {
    width: 100%;
    justify-content: space-between;
    padding: 2px 2px 0;
  }
  .demo-toolbar-controls {
    width: 100%;
    gap: 7px;
    justify-content: flex-end;
  }
  .demo-guide-button {
    margin-right: auto;
    padding-inline: 8px;
    font-size: 12px;
  }
  .demo-role-picker select {
    max-width: 135px;
    font-size: 12px;
  }
  .demo-toolbar-icon {
    width: 36px;
    height: 40px;
  }
  .demo-toolbar-icon svg {
    width: 17px;
    height: 17px;
  }
  .demo-dialog-backdrop:not(.demo-guide-backdrop) {
    padding: 15px;
  }
  .demo-dialog-head {
    padding: 18px;
  }
  .demo-dialog-head h2 {
    font-size: 19px;
  }
  .demo-guide-content {
    padding: 18px 18px 26px;
  }
  .demo-confirm-content {
    padding: 20px 18px;
  }
  .demo-confirm-actions {
    flex-wrap: wrap;
    padding: 0 18px 20px;
  }
}
@media (max-width: 370px) {
  .demo-toolbar {
    padding-inline: 8px;
  }
  .demo-toolbar-controls {
    gap: 3px;
  }
  .demo-guide-button {
    gap: 4px;
    padding-inline: 6px;
  }
  .demo-guide-button svg {
    display: none;
  }
  .demo-role-picker select {
    max-width: 119px;
    padding-right: 13px;
  }
  .demo-toolbar-icon {
    width: 32px;
  }
  .demo-entry-access {
    padding-inline: 22px;
  }
  .demo-story {
    padding-inline: 22px;
  }
  .demo-story-content h1 {
    font-size: 36px;
  }
  .demo-entry-content > h2 {
    font-size: 29px;
  }
  .demo-guide-step-controls {
    gap: 3px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .demo-entry *,
  .demo-toolbar *,
  .demo-dialog * {
    scroll-behavior: auto;
    transition: none;
    animation: none;
  }
}
