#prototype {
  --ex-ink: #192420;
  --ex-muted: #4b5c54;
  --ex-line: #d3dbd4;
  --ex-paper: #fff;
  --ex-lime: #c9ee80;
  --ex-soft: #f3f6ef;
  color: var(--ex-ink);
  font: inherit;
  scroll-margin-top: 1.2rem;
}
#prototype *,
#prototype *::before,
#prototype *::after {
  box-sizing: border-box;
}
#prototype [hidden] {
  display: none !important;
}
#prototype :is(h3, p, dl, dd, ol, fieldset, legend) {
  margin: 0;
}
#prototype button,
#prototype select {
  font: inherit;
  letter-spacing: normal;
}
#prototype button {
  cursor: pointer;
  line-height: 1.24;
  min-height: 44px;
  color: var(--ex-ink);
  background: var(--ex-paper);
  border: 1px solid #adbbb2;
  font-weight: 600;
  border-radius: 9px;
  padding: 0.6rem 0.85rem;
  text-align: center;
  text-wrap: balance;
}
#prototype button:hover {
  background: var(--ex-soft);
  border-color: var(--ex-ink);
}
#prototype button:active {
  transform: translateY(1px);
}
#prototype :is(button, select, summary):focus-visible {
  outline: 3px solid #315939;
  outline-offset: 3px;
}
#prototype button[aria-pressed="true"] {
  color: var(--ex-ink);
  background: #e0f4bf;
  border-color: #677e55;
  box-shadow: inset 0 0 0 1px #677e55;
}
#prototype .ex-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.21fr) minmax(245px, 0.79fr);
  gap: clamp(1rem, 3vw, 2.25rem);
  align-items: start;
}
#prototype .ex-app {
  min-width: 0;
  overflow: hidden;
  max-width: 100%;
  border: 1px solid #aab8af;
  border-radius: 18px;
  background: var(--ex-paper);
  box-shadow: 0 4px 0 rgba(51, 68, 46, 0.08);
}
#prototype .ex-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem clamp(1rem, 3vw, 1.65rem);
  background: #23362d;
  color: #fff;
}
#prototype .ex-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.98rem;
  font-weight: 700;
}
#prototype .ex-brand i {
  position: relative;
  display: inline-block;
  width: 20px;
  height: 19px;
  border: 1.6px solid #d9f4b3;
  border-radius: 4px;
}
#prototype .ex-brand i::before,
#prototype .ex-brand i::after {
  content: "";
  position: absolute;
  left: 4px;
  width: 9px;
  border-top: 1.5px solid #d9f4b3;
}
#prototype .ex-brand i::before {
  top: 5px;
}
#prototype .ex-brand i::after {
  top: 10px;
  width: 6px;
}
#prototype .ex-demo {
  color: #e2ebdf;
  font-size: 0.78rem;
  letter-spacing: 0.045em;
}
#prototype .ex-app-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.4rem 0.6rem;
  padding: 1.1rem clamp(1rem, 3vw, 1.65rem) 0.1rem;
}
#prototype .ex-subject {
  font-size: 0.8rem;
  color: var(--ex-muted);
  font-weight: 650;
}
#prototype .ex-role-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 0.85rem;
}
#prototype .ex-role-label span {
  font-size: 0.75rem;
  color: var(--ex-muted);
  font-weight: 450;
}
#prototype .ex-screen {
  padding: 1rem clamp(1rem, 3vw, 1.65rem) 1.4rem;
}
#prototype .ex-screen h3 {
  font-size: clamp(1.55rem, 2.3vw, 2.15rem);
  line-height: 1.07;
  letter-spacing: -0.039em;
  text-wrap: balance;
  color: var(--ex-ink);
  font-weight: 660;
}
#prototype .ex-screen .ex-lead {
  font-size: 1rem;
  line-height: 1.47;
  margin: 0.7rem 0 1.15rem;
  color: var(--ex-muted);
}
#prototype .ex-screen dl {
  background: var(--ex-soft);
  padding: 0.18rem 0.9rem;
  border-radius: 10px;
}
#prototype .ex-screen dl > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--ex-line);
  padding: 0.55rem 0;
  font-size: 0.9rem;
  line-height: 1.34;
}
#prototype .ex-screen dl > div:last-child {
  border: 0;
}
#prototype .ex-screen dt {
  color: var(--ex-muted);
  flex: 0 1 auto;
}
#prototype .ex-screen dd {
  text-align: right;
  font-weight: 680;
  flex: 0 1 auto;
  max-width: 65%;
}
#prototype .ex-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.95rem;
}
#prototype .ex-actions:empty {
  display: none;
}
#prototype .ex-actions button {
  font-size: 0.91rem;
}
#prototype button.ex-handoff {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  color: #203b22;
  background: #f2f5ef;
  border: 0;
  width: 100%;
  font-size: 0.9rem;
  text-align: left;
  margin-top: 0.7rem;
}
#prototype .ex-notice {
  margin: 0 clamp(1rem, 3vw, 1.65rem) 1.35rem;
  padding: 0.75rem 0.9rem;
  border-left: 3px solid #6f9c48;
  background: #f3f7ed;
  color: #2a3e2c;
  font-size: 0.89rem;
  line-height: 1.44;
}
#prototype .ex-notice p {
  color: inherit;
  font: inherit;
}
#prototype .ex-notice.ex-warning {
  background: #fff3e2;
  color: #73401a;
  border-color: #a86d2b;
}
#prototype .ex-panel {
  min-width: 0;
}
#prototype .ex-panel-intro h3 {
  font-size: 1.32rem;
  font-weight: 680;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
#prototype .ex-panel-intro p {
  margin: 0.35rem 0 0.85rem;
  font-size: 0.96rem;
  line-height: 1.46;
  color: var(--ex-muted);
}
#prototype .ex-play-row,
#prototype .ex-roles > div,
#prototype .ex-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}
#prototype .ex-panel button {
  font-size: 0.88rem;
}
#prototype .ex-play-row button[data-cmd="play"] {
  color: var(--ex-ink);
  background: var(--ex-lime);
  border-color: #97bd67;
}
#prototype .ex-play-row button[data-cmd="sound"] {
  background: transparent;
  box-shadow: none;
  border-color: var(--ex-line);
}
#prototype .ex-select {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.36rem 0.75rem;
  margin: 0.85rem 0 0.65rem;
  font-size: 0.92rem;
  font-weight: 620;
}
#prototype select {
  flex: 1;
  max-width: 100%;
  min-width: 0;
  appearance: none;
  min-height: 44px;
  padding: 0.55rem 1.9rem 0.55rem 0.7rem;
  border: 1px solid var(--ex-line);
  border-radius: 8px;
  color: var(--ex-ink);
  background-color: #fff;
  background-image:
    linear-gradient(45deg, transparent 50%, #536457 50%),
    linear-gradient(135deg, #536457 50%, transparent 50%);
  background-size: 6px 6px;
  background-repeat: no-repeat;
  background-position:
    calc(100% - 16px) 52%,
    calc(100% - 10px) 52%;
}
#prototype .ex-track {
  height: 3px;
  background: #dbe3d7;
  border-radius: 2px;
}
#prototype .ex-track i {
  display: block;
  height: 100%;
  background: #76a44d;
}
#prototype .ex-panel .ex-caption {
  margin: 0.6rem 0 1rem;
  font-size: 0.95rem;
  line-height: 1.48;
  color: #314234;
}
#prototype fieldset {
  padding: 0;
  border: 0;
  min-width: 0;
}
#prototype .ex-panel legend {
  font-size: 0.86rem;
  font-weight: 670;
  line-height: 1.3;
  margin-bottom: 0.4rem;
}
#prototype .ex-endings {
  margin-bottom: 0.95rem;
}
#prototype .ex-endings button {
  margin: 0 0.2rem 0.33rem 0;
}
#prototype .ex-tools {
  margin-top: 0.95rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--ex-line);
}
#prototype .ex-tools button {
  border: 0;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  color: var(--ex-muted);
  padding: 0.3rem 0.38rem;
}
#prototype .ex-more {
  margin-top: 0.4rem;
  border-top: 1px solid var(--ex-line);
}
#prototype .ex-more > summary {
  padding: 0.7rem 0.1rem;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 620;
  color: var(--ex-muted);
}
#prototype .ex-more .ex-select {
  margin-top: 0.2rem;
}
#prototype .ex-history {
  font-size: 0.88rem;
  color: var(--ex-muted);
}
#prototype .ex-history summary {
  padding: 0.55rem 0.1rem;
  cursor: pointer;
}
#prototype .ex-history ol {
  padding-left: 1.35rem;
  line-height: 1.5;
}
#prototype .ex-history li + li {
  margin-top: 0.25rem;
}
@media (max-width: 760px) {
  #prototype .ex-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  #prototype .ex-panel {
    padding-top: 0.4rem;
  }
  #prototype .ex-screen h3 {
    font-size: 1.65rem;
  }
  #prototype .ex-screen dl > div {
    gap: 0.7rem;
  }
}
@media print {
  #prototype .ex-layout {
    display: block;
  }
  #prototype .ex-panel,
  #prototype .ex-actions,
  #prototype .ex-handoff {
    display: none;
  }
}
#prototype .ex-mobile-player {
  display: none;
}
#prototype button.ex-primary {
  color: white;
  background: #203a2c;
  border-color: #203a2c;
  box-shadow: none;
}
#prototype button.ex-primary:hover {
  background: #324e3d;
}
@media (max-width: 760px) {
  #prototype .ex-layout {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
  }
  #prototype .ex-mobile-player {
    display: block;
    position: sticky;
    top: 0;
    z-index: 3;
    align-self: stretch;
    background: #fbfcf8;
    border-bottom: 1px solid var(--ex-line);
    padding: 0.45rem 1rem 0.55rem;
  }
  #prototype .ex-mobile-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.35rem;
  }
  #prototype .ex-mobile-controls button {
    font-size: 0.85rem;
  }
  #prototype .ex-mobile-controls [data-transport] {
    background: var(--ex-lime);
    border-color: #97bd67;
  }
  #prototype .ex-mobile-caption {
    font-size: 0.91rem;
    line-height: 1.35;
    color: var(--ex-ink);
    margin: 0.4rem 0 0;
  }
  #prototype .ex-panel {
    display: none;
    order: 1;
    align-self: stretch;
    padding: 0.88rem;
    border: 1px solid var(--ex-line);
    border-radius: 12px;
    background: white;
  }
  #prototype .ex-select {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
  #prototype .ex-select select {
    width: 100%;
  }
  #prototype.ex-panel-open .ex-panel {
    display: block;
  }
  #prototype .ex-more > summary {
    display: none;
  }
  #prototype .ex-more {
    border-top: 0;
  }
  #prototype .ex-app {
    order: 2;
    align-self: stretch;
  }
}
@media print {
  #prototype .ex-mobile-player {
    display: none;
  }
}

/* Mobile prototype: one document viewport and a persistent application tab bar. */
#prototype {
  --ph-blue: #0646a8;
  --ph-deep: #07316e;
  --ph-ink: #11263f;
  --ph-muted: #4d6178;
  --ph-rule: #dce4ed;
  --ph-pale: #eaf2fe;
}
#prototype .ex-app {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  width: 408px;
  max-width: 100%;
  height: clamp(600px, calc(100svh - 112px), 780px);
  justify-self: center;
  margin: 0 auto;
  overflow: hidden;
  border: 7px solid #18202c;
  border-radius: 44px;
  background: #fafbfe;
  color: var(--ph-ink);
  box-shadow:
    0 0 0 1.8px #5d6a78,
    0 23px 44px -19px #223e5f68;
  line-height: 1.4;
  text-align: left;
}
#prototype .phone-system {
  flex: none;
  display: flex;
  position: relative;
  align-items: center;
  justify-content: space-between;
  height: 36px;
  padding: 5px 24px 0;
  color: #17273c;
  background: #fafbfe;
  font:
    700 12px/1 Inter,
    Arial,
    sans-serif;
}
#prototype .phone-speaker {
  position: absolute;
  left: 50%;
  top: 5px;
  width: 68px;
  height: 14px;
  transform: translateX(-50%);
  background: #161d28;
  border-radius: 30px;
}
#prototype .phone-system-icons {
  display: flex;
  align-items: center;
}
#prototype .phone-scroll {
  flex: 1 1 auto;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #c6d0dc transparent;
  min-height: 0;
  min-width: 0;
}
#prototype .phone-page {
  display: block;
  min-height: 100%;
  padding-bottom: 14px;
}
#prototype .phone-nav {
  flex: none;
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  background: #fff;
  border-top: 1px solid var(--ph-rule);
  padding: 5px 9px 0;
}
#prototype .phone-nav button {
  width: 32%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 49px;
  padding: 3px 8px;
  background: none;
  border: 0;
  border-radius: 12px;
  font-size: 0.73rem;
  line-height: 1.25;
  font-weight: 560;
  color: #58677b;
}
#prototype .phone-nav button[aria-current] {
  color: var(--ph-blue);
  font-weight: 760;
}
#prototype .phone-nav button[aria-current] .p-icon {
  background: #deebff;
  box-sizing: content-box;
  padding: 2px 15px;
  border-radius: 30px;
}
#prototype .phone-nav button:not([aria-current]) .p-icon {
  padding: 2px 0;
  box-sizing: content-box;
}
#prototype .p-icon {
  display: block;
  flex: none;
  width: 20px;
  height: 20px;
}
#prototype .phone-foot {
  display: grid;
  place-items: center;
  background: #fff;
  height: 17px;
  flex: none;
}
#prototype .phone-home-indicator {
  width: 92px;
  height: 4px;
  background: #1b293e;
  border-radius: 20px;
  display: block;
}
#prototype .phone-brand-row,
#prototype .phone-case-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
#prototype .phone-brand-row {
  padding: 15px 20px 11px;
}
#prototype .phone-brand-row > div {
  min-width: 0;
  max-width: 100%;
}
#prototype .phone-brand-row h3,
#prototype .ex-screen h3,
#prototype .phone-service-copy {
  overflow-wrap: anywhere;
  white-space: normal;
}
#prototype .phone-service .phone-chevron,
#prototype .phone-profile-button {
  flex-shrink: 0;
}
#prototype .phone-brand-row p,
#prototype .phone-case-bar small {
  font-size: 0.73rem;
  font-weight: 580;
  letter-spacing: 0.015em;
  color: var(--ph-muted);
}
#prototype .phone-brand-row h3 {
  font-weight: 740;
  font-size: 2.05rem;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--ph-ink);
}
#prototype button.phone-profile-button {
  display: grid;
  place-items: center;
  min-height: 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid #c8daf3;
  background: #eaf2fe;
  color: var(--ph-blue);
}
#prototype .phone-dash {
  padding: 3px 18px 10px;
}
#prototype .phone-dash > section + section {
  margin-top: 14px;
}
#prototype .phone-section-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  min-height: 34px;
}
#prototype .phone-page h4 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.24;
  color: var(--ph-ink);
}
#prototype .phone-section-title button {
  min-height: 36px;
  padding: 6px 1px;
  border: 0;
  background: none;
  color: var(--ph-blue);
  font-size: 0.81rem;
}
#prototype .phone-doc {
  display: flex;
  position: relative;
  isolation: isolate;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  overflow: hidden;
  width: 100%;
  min-height: 143px;
  border: 1px solid #9db7d4;
  border-radius: 16px;
  padding: 15px 18px 13px;
  color: #103454;
  background: linear-gradient(122deg, #d3effb 0%, #c4dff7 45%, #e2ddf9 100%);
}
#prototype .phone-doc-top,
#prototype .phone-doc-bottom {
  display: flex;
  align-items: center;
  gap: 7px;
  position: relative;
}
#prototype .phone-doc-top {
  font-size: 0.74rem;
  font-weight: 640;
}
#prototype .phone-doc-top .p-icon {
  width: 23px;
  height: 23px;
}
#prototype .phone-doc strong {
  position: relative;
  display: block;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
  margin: 0.35rem 0 0.8rem;
}
#prototype .phone-doc-bottom {
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  font-size: 0.88rem;
  font-weight: 690;
}
#prototype .phone-doc-bottom small {
  border: 1px solid #839eb7;
  border-radius: 6px;
  font-size: 0.67rem;
  line-height: 1;
  padding: 4px 5px;
  color: #2c4862;
  background: #ffffff73;
}
#prototype .phone-doc-lines {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
#prototype .phone-doc-lines::before,
#prototype .phone-doc-lines::after {
  content: "";
  position: absolute;
  width: 210px;
  height: 290px;
  right: -52px;
  top: -84px;
  transform: rotate(28deg);
  border-radius: 48%;
  border: 11px solid #6d8bb72c;
  box-shadow:
    0 0 0 8px #dce9ff55,
    0 0 0 13px #678cbb38,
    0 0 0 19px #e0edff61,
    0 0 0 25px #7292bd4a,
    0 0 0 35px #dae5fb70,
    0 0 0 39px #84a6d04a,
    0 0 0 50px #e1efff55;
}
#prototype .phone-doc-lines::after {
  width: 160px;
  height: 240px;
  right: -37px;
  top: -67px;
  transform: rotate(42deg);
  opacity: 0.45;
}
#prototype .phone-app-list,
#prototype .phone-list {
  background: white;
  border: 1px solid var(--ph-rule);
  border-radius: 14px;
  overflow: hidden;
}
#prototype .phone-service {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border: 0;
  border-radius: 0;
  text-decoration: none;
  text-align: left;
  box-shadow: none;
  background: white;
  color: var(--ph-ink);
  line-height: 1.32;
}
#prototype .phone-service:hover {
  background: #edf4ff;
}
#prototype .phone-icon-tile {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  color: var(--ph-blue);
  background: #e5effd;
}
#prototype .phone-icon-tile .p-icon {
  width: 22px;
  height: 22px;
}
#prototype .phone-service-copy {
  display: block;
  min-width: 0;
  max-width: 100%;
  flex: 1 1 0%;
}
#prototype .phone-service-copy strong {
  display: block;
  color: var(--ph-ink);
  font-size: 0.95rem;
  font-weight: 680;
}
#prototype .phone-service-copy small {
  display: block;
  color: var(--ph-muted);
  font-size: 0.76rem;
  font-weight: 440;
  margin-top: 2px;
}
#prototype .phone-chevron {
  color: var(--ph-muted);
  width: 15px;
  height: 15px;
}
#prototype .phone-service + .phone-service {
  border-top: 1px solid var(--ph-rule);
}
#prototype .phone-heading {
  padding: 19px 18px 12px;
}
#prototype .phone-heading h3 {
  font-size: 1.8rem;
  font-weight: 740;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
#prototype .phone-heading p,
#prototype .phone-empty {
  font-size: 0.93rem;
  color: var(--ph-muted);
  line-height: 1.45;
  margin-top: 0.35rem;
}
#prototype .phone-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid #b8c8dc;
  border-radius: 13px;
  padding: 0 12px;
  margin: 3px 18px 0;
  color: var(--ph-blue);
}
#prototype .phone-search input {
  min-width: 0;
  width: 100%;
  height: 46px;
  background: none;
  border: 0;
  color: var(--ph-ink);
  font: inherit;
  font-size: 0.97rem;
}
#prototype .phone-search:focus-within {
  outline: 2px solid var(--ph-blue);
}
#prototype .phone-count {
  font-size: 0.75rem;
  color: var(--ph-muted);
  padding: 7px 20px 3px;
}
#prototype .phone-group {
  padding: 12px 18px 0;
}
#prototype .phone-group h4 {
  margin: 0 0 8px;
}
#prototype .phone-empty {
  padding: 12px 18px;
}
#prototype .phone-case-bar {
  padding: 2px 16px 6px;
  min-height: 44px;
}
#prototype .phone-case-bar > span {
  font-size: 0.98rem;
  font-weight: 710;
  letter-spacing: -0.035em;
  color: var(--ph-ink);
  margin-right: auto;
}
#prototype button.phone-back {
  margin-left: -8px;
  background: transparent;
  border: 0;
  padding: 9px;
  display: grid;
  place-items: center;
  min-width: 40px;
  min-height: 40px;
  color: var(--ph-blue);
}
#prototype .phone-case-bar small {
  white-space: normal;
  text-align: right;
}
@media (max-width: 400px) {
  #prototype .phone-case-bar { flex-wrap: wrap; }
  #prototype .phone-case-bar small {
    margin-left: auto;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}
#prototype .ex-app-head {
  padding: 4px 16px;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 8px;
}
#prototype .phone-service-symbol {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: var(--ph-blue);
  background: #e2edfd;
}
#prototype .phone-service-symbol .p-icon {
  width: 18px;
  height: 18px;
}
#prototype .ex-subject {
  flex: 1 1 0;
  min-width: 0;
  color: #284566;
  font-size: 0.875rem;
  font-weight: 640;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
#prototype .phone-switch-role {
  position: relative;
  display: block;
  flex: 0 1 auto;
  margin-left: auto;
  max-width: 48%;
  min-width: 6rem;
  border: 1px solid #a6bdd8;
  border-radius: 12px;
  min-height: 44px;
  padding: 5px 26px 5px 9px;
  background: white;
}
#prototype .phone-role-name {
  display: block;
  min-width: 0;
  text-align: left;
  line-height: 1.22;
}
#prototype .phone-role-name small {
  display: block;
  color: var(--ph-muted);
  font-size: 0.75rem;
  font-weight: 500;
}
#prototype .phone-switch-role .ex-role-label {
  display: block;
  color: var(--ph-deep);
  font-size: 0.875rem;
  font-weight: 680;
  overflow-wrap: break-word;
}
#prototype .phone-switch-role > .p-icon {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  color: var(--ph-blue);
}
#prototype .phone-switch-role select {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}
#prototype .phone-switch-role:focus-within {
  outline: 2px solid var(--ph-blue);
}
#prototype .ex-screen {
  padding: 10px 16px 16px;
}
#prototype .ex-screen h3 {
  color: var(--ph-ink);
  font-size: 1.52rem;
  line-height: 1.12;
  letter-spacing: -0.045em;
  font-weight: 730;
}
#prototype .ex-screen .ex-lead {
  color: var(--ph-muted);
  font-size: 0.91rem;
  line-height: 1.4;
  margin: 0.45rem 0 0.8rem;
}
#prototype .ex-screen dl {
  border: 1px solid var(--ph-rule);
  background: white;
  border-radius: 14px;
  padding: 0 12px;
}
#prototype .ex-screen dl > div {
  font-size: 0.875rem;
  padding: 0.5rem 0;
  border-color: var(--ph-rule);
}
#prototype .ex-screen dl > div:last-child {
  border: 0;
}
#prototype .ex-screen dt {
  color: var(--ph-muted);
}
#prototype .ex-screen dd {
  color: var(--ph-ink);
  font-weight: 670;
}
#prototype .ex-actions {
  margin-top: 0.66rem;
  gap: 0.38rem;
}
#prototype .ex-actions button,
#prototype button.ex-handoff {
  color: var(--ph-blue);
  border: 1px solid #c8d9ef;
  background: #fff;
  font-size: 0.9rem;
  min-height: 44px;
  border-radius: 11px;
  padding: 0.55rem 0.65rem;
}
#prototype .ex-actions button[aria-pressed="true"]:not(.ex-primary) {
  color: #0b468b;
  background: #e1eeff;
  box-shadow: inset 0 0 0 1px #819dc8;
  border-color: #819dc8;
}
#prototype .ex-actions .ex-primary,
#prototype button.ex-handoff.ex-primary {
  color: #fff;
  border-color: var(--ph-blue);
  background: var(--ph-blue);
  box-shadow: none;
}
#prototype .ex-actions .ex-primary:hover,
#prototype button.ex-handoff.ex-primary:hover {
  background: #033679;
}
#prototype .ex-notice {
  font-size: 0.94rem;
  margin: 0 0 10px;
  padding: 0.65rem 0.8rem;
  line-height: 1.45;
  color: #183f66;
  background: #e7f2ff;
  border: 0;
  border-left: 3px solid #337ac2;
  border-radius: 6px;
}
#prototype .ex-notice.ex-warning {
  color: #702e29;
  background: #fff0ed;
  border-left-color: #af4036;
}
#prototype .phone-wallet-card {
  margin: 0 18px;
}
#prototype .phone-wallet-data {
  margin: 12px 18px;
  background: #fff;
  border: 1px solid var(--ph-rule);
  border-radius: 12px;
  padding: 0 12px;
}
#prototype .phone-wallet-data > div {
  padding: 10px 0;
  border-bottom: 1px solid var(--ph-rule);
}
#prototype .phone-wallet-data > div:last-child {
  border: 0;
}
#prototype .phone-wallet-data dt {
  font-size: 0.76rem;
  color: var(--ph-muted);
}
#prototype .phone-wallet-data dd {
  font-weight: 650;
}
#prototype .phone-cases .phone-service {
  border: 1px solid var(--ph-rule);
  border-radius: 13px;
}
#prototype .phone-timeline {
  padding: 0 12px;
  list-style: none;
  background: white;
  border: 1px solid var(--ph-rule);
  border-radius: 13px;
}
#prototype .phone-timeline li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  border-bottom: 1px solid var(--ph-rule);
  padding: 10px 0;
  font-size: 0.89rem;
  color: var(--ph-muted);
  line-height: 1.4;
}
#prototype .phone-timeline li:last-child {
  border: 0;
}
#prototype .phone-history-dot {
  border-radius: 50%;
  width: 7px;
  height: 7px;
  background: #3976ba;
  flex: none;
}
#prototype .ex-app :is(button, a, input, select):focus-visible {
  outline-color: var(--ph-blue);
}
#prototype .ex-app .phone-page [hidden] {
  display: none !important;
}
@media (max-width: 760px) {
  #prototype .ex-app {
    width: 100%;
    max-width: 440px;
    height: min(780px, calc(100svh - 90px));
    min-height: min(535px, 83svh);
    border-width: 2px;
    border-radius: 25px;
    box-shadow:
      0 0 0 1px #8794a4,
      0 11px 26px -18px #263e58aa;
  }
  #prototype .phone-speaker {
    display: none;
  }
  #prototype .phone-system {
    height: 29px;
    padding: 3px 18px 0;
  }
  #prototype .ex-mobile-player {
    top: 0;
  }
}
@media (max-width: 360px) {
  #prototype .phone-dash {
    padding-inline: 11px;
  }
  #prototype .phone-brand-row {
    padding-inline: 13px;
  }
  #prototype .ex-app-head,
  #prototype .ex-screen {
    padding-inline: 11px;
  }
}
#prototype .phone-find {
  margin: 3px 0 12px;
}
#prototype .phone-find > label {
  display: block;
  margin: 0 0 6px;
  color: var(--ph-ink);
  font-size: 1.03rem;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.03em;
}
#prototype .phone-find > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  min-height: 45px;
  background: white;
  border: 1px solid #c2d3e7;
  border-radius: 14px;
  padding: 3px 3px 3px 11px;
}
#prototype .phone-find input {
  min-width: 0;
  min-height: 44px;
  flex: 1;
  background: transparent;
  border: 0;
  padding: 4px 0;
  font: inherit;
  font-size: 0.85rem;
  color: var(--ph-ink);
}
#prototype .phone-find input:focus {
  outline: none;
}
#prototype .phone-find > div:focus-within {
  outline: 2px solid var(--ph-blue);
}
#prototype .phone-find button {
  min-height: 37px;
  min-width: 37px;
  display: grid;
  place-items: center;
  background: var(--ph-blue);
  color: white;
  border: 0;
  border-radius: 11px;
  padding: 7px 12px;
  font-size: 0.88rem;
}
#prototype .phone-home-results {
  border: 1px solid var(--ph-rule);
  border-radius: 13px;
  overflow: hidden;
  margin: -4px 0 12px;
}
#prototype .phone-choices {
  display: grid;
  gap: 8px;
}
#prototype .phone-choices:empty,
#prototype .phone-primary:empty {
  display: none;
}
#prototype .phone-options {
  min-width: 0;
  margin: 2px 0 0;
}
#prototype .phone-options legend {
  margin: 0 0 5px;
  color: var(--ph-muted);
  font-size: 0.76rem;
  font-weight: 630;
}
#prototype .phone-options > div {
  display: flex;
  align-items: stretch;
  gap: 4px;
  background: #e9edf4;
  border-radius: 13px;
  padding: 3px;
}
#prototype .phone-options button {
  display: flex;
  flex: 1;
  min-width: 0;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 5px 4px;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 10px;
  box-shadow: none;
  font-size: 0.77rem;
  line-height: 1.22;
  font-weight: 600;
  color: #3f536a;
  background: none;
}
#prototype .phone-options button[aria-pressed="true"] {
  background: white;
  color: var(--ph-blue);
  border-color: #b8cde8;
  box-shadow: 0 1px 2px #2644681c;
}
#prototype .phone-options button .p-icon {
  width: 14px;
  height: 14px;
  stroke-width: 2.5;
}
#prototype .phone-options button.ex-primary:not([aria-pressed="true"]) {
  background: var(--ph-blue);
  color: white;
}
#prototype .phone-consent {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  text-align: left;
  padding: 7px 10px;
  min-height: 48px;
  background: white;
  border: 1px solid var(--ph-rule);
  border-radius: 12px;
  color: var(--ph-ink);
}
#prototype .phone-consent.ex-primary {
  border-color: var(--ph-blue);
  background: var(--ph-pale);
  color: var(--ph-ink);
}
#prototype .phone-consent > span {
  text-align: left;
}
#prototype .phone-consent b,
#prototype .phone-consent small {
  display: block;
}
#prototype .phone-consent b {
  font-size: 0.85rem;
  line-height: 1.3;
}
#prototype .phone-consent small {
  font-size: 0.72rem;
  color: var(--ph-muted);
  font-weight: 500;
}
#prototype .phone-consent i {
  display: block;
  position: relative;
  width: 37px;
  height: 23px;
  flex: none;
  background: #69798e;
  border-radius: 20px;
}
#prototype .phone-consent i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 17px;
  height: 17px;
  background: white;
  border-radius: 50%;
}
#prototype .phone-consent[aria-pressed="true"] {
  color: var(--ph-ink);
  border-color: #b8cde8;
  background: white;
  box-shadow: none;
}
#prototype .phone-consent[aria-pressed="true"] i {
  background: var(--ph-blue);
}
#prototype .phone-consent[aria-pressed="true"] i::after {
  left: 17px;
}
#prototype .phone-choice-note {
  font-size: 0.78rem;
  color: var(--ph-muted);
  line-height: 1.35;
}
#prototype .phone-primary {
  margin: 8px 0 0;
}
#prototype .phone-primary button {
  width: 100%;
  min-height: 46px;
  text-align: center;
  justify-content: center;
  margin: 0;
  color: white;
  background: var(--ph-blue);
  border: 1px solid var(--ph-blue);
  border-radius: 12px;
  font-size: 0.93rem;
  font-weight: 670;
}
#prototype .phone-primary .ex-handoff {
  display: flex;
  justify-content: space-between;
  text-align: left;
}
#prototype .phone-primary button:hover {
  background: #05377e;
}
#prototype .ex-notice {
  margin: 8px 0 0;
}
#prototype .phone-facts {
  border: 0;
  border-top: 1px solid var(--ph-rule);
  margin-top: 11px;
}
#prototype .phone-facts summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 44px;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 660;
  color: #324d6c;
}
#prototype .phone-facts summary::-webkit-details-marker {
  display: none;
}
#prototype .phone-facts summary .p-icon {
  width: 16px;
  height: 16px;
}
#prototype .phone-facts[open] summary .p-icon {
  transform: rotate(180deg);
}
#prototype .phone-facts > p {
  font-size: 0.85rem;
  line-height: 1.42;
  color: var(--ph-muted);
  margin: 1px 0 9px;
}
#prototype .phone-facts [data-connection-test] {
  background: white;
  color: var(--ph-blue);
  border: 1px solid var(--ph-rule);
  margin-top: 8px;
  font-size: 0.8rem;
}
#prototype .ex-app :is(button, .phone-service, .phone-switch-role),
#prototype .phone-section-title button,
#prototype .phone-case-bar button.phone-back {
  min-height: 44px;
}
#prototype .phone-case-bar button.phone-back,
#prototype .phone-find button {
  min-width: 44px;
}
#prototype .phone-find input,
#prototype .phone-search input,
#prototype .phone-switch-role select {
  font-size: max(16px, 1rem);
}
#prototype[data-connection="offline"] .phone-switch-role {
  border-color: #b36a63;
  background: #fff5f3;
}
@media (max-width: 760px) {
  #prototype[data-standalone="true"] .phone-foot {
    height: max(14px, env(safe-area-inset-bottom));
  }
}
#prototype .phone-switch-role > .p-icon:first-child {
  width: 15px;
  height: 15px;
}
#prototype .phone-cases .phone-list .phone-service {
  border: 0;
  border-radius: 0;
}
#prototype .phone-cases .phone-list .phone-service + .phone-service {
  border-top: 1px solid var(--ph-rule);
}

/* v2.1: WCAG 1.4.11 boundaries and the demo-scenario block inside case details. */
#prototype .phone-find > div,
#prototype .phone-search,
#prototype .ex-actions button {
  border-color: #788ba3;
}
#prototype .phone-sim {
  margin: 0.6rem 0 0.2rem;
  padding: 0.6rem 0.7rem;
  border: 1px dashed #788ba3;
  border-radius: 10px;
  display: grid;
  gap: 0.4rem;
}
#prototype .phone-sim p {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ph-muted);
}

/* v2.2: institution panel, full-width secondary actions, destructive and risky actions. */
#prototype[data-actor="institution"] .phone-case[data-page="case"] .phone-case-bar {
  background: #1f2933;
  color: #fff;
  margin: 0;
  padding-block: 10px;
}
#prototype[data-actor="institution"] .phone-case[data-page="case"] .phone-case-bar :is(span, small, .phone-back) {
  color: #fff;
}
#prototype[data-actor="institution"] .ex-app button.ex-primary {
  background: #0f4c5c;
  border-color: #0f4c5c;
  color: #fff;
}
#prototype .ex-actions button {
  width: 100%;
  justify-content: center;
  text-align: center;
}
#prototype .ex-app [data-action="revoke"] {
  color: #b42318;
  border-color: #b42318;
}
#prototype .ex-app button.ex-primary[data-action="revoke"] {
  background: #b42318;
  border-color: #b42318;
  color: #fff;
}
#prototype .ex-app button.ex-primary.ex-risky,
#prototype[data-actor="institution"] .ex-app button.ex-primary.ex-risky {
  background: #fff;
  color: #b42318;
  border-color: #b42318;
}
