/* tests/role-walkthrough.css */
:root {
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #19322f;
  background: #eef1f3;
  font-size: 14px;
  letter-spacing: 0;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
button:focus-visible {
  outline: 3px solid #346dad;
  outline-offset: 3px;
}
.walkthrough {
  min-height: 100dvh;
}
.demo-heading {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 28px;
  background: white;
  border-bottom: 1px solid #d3dcda;
}
.demo-heading > div {
  display: flex;
  align-items: baseline;
  gap: 22px;
}
.demo-wordmark {
  font-weight: 750;
  font-size: 21px;
}
.demo-heading h1 {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}
.demo-badge {
  font-size: 12px;
  padding: 7px 10px;
  background: #edf2fa;
  color: #35567b;
  border-radius: 4px;
}
.demo-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: calc(100dvh - 88px);
}
.demo-controls {
  padding: 24px 20px;
  background: #fff;
  border-right: 1px solid #d3dcda;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.demo-controls h2 {
  font-size: 13px;
  color: #596d69;
  font-weight: 600;
  margin: 0 0 10px;
}
.demo-roles {
  display: grid;
  gap: 10px;
}
.demo-role {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  min-height: 76px;
  background: #fff;
  padding: 14px 12px;
  border: 1px solid #d3dcda;
  border-radius: 8px;
  transition: background-color .15s, border-color .15s;
}
.demo-role.selected {
  background: #e7f1ed;
  border-color: #367d6c;
}
.demo-role > span {
  flex: 1;
  min-width: 0;
}
.demo-role strong,
.demo-role small {
  display: block;
}
.demo-role strong {
  font-size: 15px;
  line-height: 21px;
}
.demo-role small {
  color: #60716e;
  margin-top: 4px;
}
.demo-role:nth-child(2) > svg {
  color: #30699e;
}
.demo-role:nth-child(3) > svg {
  color: #956119;
}
.demo-role:nth-child(4) > svg {
  color: #776094;
}
.demo-control-row {
  padding-top: 15px;
}
.demo-segment {
  display: flex;
  padding: 3px;
  background: #edf1f0;
  border-radius: 6px;
  gap: 3px;
}
.demo-segment button {
  flex: 1;
  min-height: 42px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}
.demo-segment button[aria-pressed=true] {
  background: white;
  box-shadow: 0 1px 3px #182d2a20;
  font-weight: 650;
}
.demo-footer {
  margin-top: auto;
  padding-top: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #596d69;
}
.demo-footer strong {
  display: block;
  font-size: 17px;
  color: #19322f;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}
.demo-reset {
  margin-left: auto;
  border: 1px solid #d3dcda;
  background: white;
  border-radius: 6px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
}
.demo-stage {
  min-width: 0;
  padding: 16px 24px 24px;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 10px;
}
.demo-preview-title {
  width: min(100%, 390px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 28px;
  font-size: 13px;
}
.demo-preview-title span {
  color: #5b6a68;
}
.demo-stage iframe {
  width: min(100%, 390px);
  height: max(600px, calc(100dvh - 168px));
  max-height: 900px;
  display: block;
  background: #f3f6f4;
  border: 1px solid #ced8d5;
  border-radius: 8px;
  box-shadow: 0 4px 20px #213f3510;
}
.demo-stage.tablet iframe,
.demo-stage.tablet .demo-preview-title {
  width: min(100%, 1024px);
}
@media (max-width: 760px) {
  .demo-heading {
    padding: 14px 16px;
    min-height: 76px;
    align-items: flex-start;
  }
  .demo-heading > div {
    display: block;
  }
  .demo-wordmark {
    font-size: 16px;
  }
  .demo-heading h1 {
    font-size: 18px;
    margin-top: 3px;
  }
  .demo-badge {
    max-width: 133px;
    line-height: 17px;
  }
  .demo-layout {
    display: block;
  }
  .demo-controls {
    padding: 16px;
    border-right: 0;
    border-bottom: 1px solid #d3dcda;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
  }
  .demo-controls > h2 {
    grid-column: 1/-1;
    margin: 0;
  }
  .demo-roles {
    grid-column: 1/-1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .demo-role {
    padding: 10px;
    min-height: 70px;
    gap: 8px;
  }
  .demo-role strong {
    font-size: 13px;
    line-height: 18px;
  }
  .demo-role small {
    font-size: 12px;
  }
  .demo-role > svg {
    width: 18px;
    flex-shrink: 0;
  }
  .demo-role > svg:last-child:not(:first-child) {
    width: 14px;
  }
  .demo-control-row {
    padding-top: 0;
    min-width: 0;
  }
  .demo-control-row h2 {
    margin-bottom: 6px;
  }
  .demo-device-row {
    display: none;
  }
  .demo-footer {
    margin: 0;
    padding: 0;
    justify-self: end;
  }
  .demo-footer > span {
    font-size: 11px;
  }
  .demo-footer strong {
    font-size: 15px;
  }
  .demo-reset {
    width: 40px;
    height: 40px;
  }
  .demo-stage {
    padding: 12px 10px 20px;
  }
  .demo-stage iframe {
    height: 780px;
    max-height: none;
  }
  .demo-preview-title {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

.demo-return{height:48px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 24px;background:#123D40;color:#F5F2EA;font:12px system-ui,sans-serif}.demo-return a{color:#BFE7DB;text-decoration:none;font-weight:600}#root{height:calc(100% - 48px)!important}@media(max-width:500px){.demo-return{padding:0 14px;font-size:11px}.demo-return span{max-width:130px;text-align:right}}
