/* Additions for the isolated presentation. approved.css is copied unchanged. */
#broker-demo .demo-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 1240px;
  flex: 0 0 auto;
  min-height: 32px;
  padding: 6px 0;
  font-size: 10px;
  line-height: 1.4;
  color: #fefacd;
  border-bottom: 1px solid #fefacd30;
}
#broker-demo a {
  color: inherit;
  text-underline-offset: 3px;
}
#broker-demo .demo-mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex: 0 0 44px;
  font-size: 12px;
}
#broker-demo .demo-mobile-header strong {
  font-size: 24px;
  letter-spacing: -1px;
}
#broker-demo .demo-mobile-header .demo-link {
  min-height: 40px;
}
#broker-demo .demo-notice {
  position: fixed;
  bottom: 104px;
  left: 50%;
  transform: translateX(-50%);
  width: min(92%, 620px);
  z-index: 40;
  padding: 14px 18px;
  border-radius: 18px;
  background: #fefacd;
  color: #30263f;
  box-shadow: 0 8px 28px #30263f55;
  font-size: 13px;
}
#broker-demo .demo-notice.is-error {
  border: 2px solid #9b2929;
}
#broker-demo .demo-accounts {
  display: flex;
  gap: 6px;
  margin: 20px 0 8px;
  flex-wrap: wrap;
}
#broker-demo .demo-accounts button {
  flex: 1;
  border-radius: 18px;
  background: #735d9d;
  color: #fefacd;
  padding: 9px;
  font-size: 12px;
}
#broker-demo .demo-accounts button[aria-pressed='true'] {
  background: #fefacd;
  color: #5f4a8b;
}
#broker-demo .demo-check {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
}
#broker-demo .demo-check input {
  width: 20px;
  height: 20px;
  padding: 0;
}
#broker-demo .demo-login-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 20px 0;
  font-size: 12px;
}
#broker-demo details {
  font-size: 12px;
  margin: 12px 0;
  line-height: 1.6;
}
#broker-demo summary {
  cursor: pointer;
  min-height: 30px;
}
#broker-demo .demo-link {
  display: inline-block;
  background: transparent;
  color: #fefacd;
  padding: 8px 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
  border-radius: 12px;
}
#broker-demo .sheet .demo-link {
  color: #5f4a8b;
}
#broker-demo .demo-inline {
  display: inline;
  background: transparent;
  text-decoration: underline;
  color: inherit;
  padding: 0 4px;
  min-height: 22px;
  font-size: inherit;
}
#broker-demo .guidance-slot .demo-inline {
  pointer-events: auto;
}
#broker-demo .demo-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  left: 0;
  top: 0;
}
#broker-demo .demo-gallery-controls {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
#broker-demo .photo .demo-gallery-controls button {
  position: static;
  display: grid;
  place-items: center;
  background: #fefacd;
  color: #5f4a8b;
  width: 44px;
  height: 44px;
  min-width: 44px;
  padding: 0;
  border-radius: 50%;
}
#broker-demo .demo-gallery-controls > span:first-child,
#broker-demo .demo-gallery-controls > span:last-child {
  width: 44px;
}
#broker-demo .demo-photo-count {
  background: #fefacd;
  color: #5f4a8b;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 11px;
}
#broker-demo .demo-card {
  touch-action: pan-y;
  user-select: none;
}
#broker-demo .demo-detail .photo {
  height: 310px;
  aspect-ratio: auto;
}
#broker-demo .demo-row {
  /* Real reference photos and fictional drafts share the same approved cards. */
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
#broker-demo .demo-reference-note {
  padding: 14px;
  margin: 14px 0;
  background: #eae3ca;
  border-radius: 16px;
  color: #5f4a8b;
  font-size: 12px;
}
#broker-demo .demo-row > img {
  width: 88px;
  height: 96px;
  border-radius: 18px;
  object-fit: cover;
  flex-shrink: 0;
}
#broker-demo .demo-row > div {
  min-width: 0;
  flex: 1;
}
#broker-demo .demo-row h2 {
  font-size: 19px;
  margin: 2px 0 8px;
}
#broker-demo .demo-row p {
  overflow-wrap: anywhere;
}
#broker-demo .demo-status-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
#broker-demo .demo-status-buttons .pill {
  font-size: 11px;
  padding: 8px 12px;
}
#broker-demo .demo-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
  margin: 20px 0;
}
#broker-demo .demo-metrics article {
  padding: 22px 18px;
  margin: 0;
}
#broker-demo .demo-metrics strong {
  font-size: 34px;
}
#broker-demo .demo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin: 20px 0;
}
#broker-demo .demo-grid .primary {
  margin: 0;
  text-align: left;
  min-height: 54px;
}
#broker-demo .demo-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 20px 0;
}
#broker-demo .demo-tabs button {
  max-width: 100%;
  overflow-wrap: anywhere;
}
#broker-demo .demo-messages {
  max-height: 370px;
  overflow-y: auto;
  padding: 4px;
  overscroll-behavior: contain;
}
#broker-demo .demo-messages .bubble p {
  color: inherit;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
#broker-demo .demo-messages small {
  font-size: 10px;
}
#broker-demo .demo-grow {
  flex: 1;
  min-width: 0;
  display: block;
  font-size: 12px;
}
#broker-demo .demo-conversation form {
  align-items: flex-end;
}
#broker-demo .demo-conversation form button {
  width: auto;
  margin: 0;
  border-radius: 18px;
}
#broker-demo .demo-conversation textarea {
  margin-top: 8px;
  resize: vertical;
}
#broker-demo .demo-report-link {
  display: block;
  margin: 20px 0;
  padding: 12px 0;
}
#broker-demo .demo-dialog {
  width: min(92vw, 540px);
  max-height: 88dvh;
  overflow-y: auto;
  border: 1px solid #fefacd70;
  border-radius: 26px;
  background: #5f4a8b;
  color: #fefacd;
  padding: 24px;
  font-family: Arial, Helvetica, sans-serif;
}
#broker-demo .demo-dialog::backdrop {
  background: #30263faa;
}
#broker-demo .demo-dialog h2 {
  margin-top: 0;
}
#broker-demo .demo-dialog form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
#broker-demo .demo-dialog input,
#broker-demo .demo-dialog textarea,
#broker-demo .demo-dialog select {
  margin-top: 8px;
}
#broker-demo .demo-dialog .primary {
  border-radius: 18px;
}
#broker-demo .publish-form {
  max-width: 680px;
  padding-bottom: 20px;
}
#broker-demo .publish-form p {
  margin: 0;
}
#broker-demo .view:not([data-page='explore']) .sheet {
  margin-top: 16px;
}
#broker-demo .view:not([data-page='explore']) > h1 {
  margin-top: 16px;
}
#broker-demo .demo-intro {
  max-width: 680px;
}
#broker-demo .login-panel code {
  white-space: nowrap;
}
#broker-demo .login-panel input {
  min-width: 0;
}
@media (min-width: 1024px) {
  #broker-demo .demo-mobile-header {
    display: none;
  }
  #broker-demo .desktop-header {
    flex-basis: 76px;
    min-height: 76px;
    margin-bottom: 18px;
  }
  #broker-demo .demo-banner {
    min-height: 30px;
    font-size: 11px;
  }
  #broker-demo .filters .pill:last-child {
    width: auto;
    min-width: 84px;
    padding: 0 14px;
  }
  #broker-demo
    .view[data-page='explore']
    > .sheet
    .demo-gallery-controls
    > button {
    display: grid;
  }
  #broker-demo .view[data-page='explore'] > .sheet .demo-gallery-controls {
    z-index: 2;
  }
  #broker-demo .demo-detail .photo {
    height: 430px;
  }
}
@media (max-width: 699px) {
  /* Keep the bar geometry stable between explore and the other sections. */
  #broker-demo .phone:has(> .view[data-page]) {
    padding-left: max(10px, env(safe-area-inset-left));
    padding-right: max(10px, env(safe-area-inset-right));
  }
  #broker-demo .view[data-page='explore'] .demo-photo > .label {
    top: 66px;
    left: 12px;
    font-size: 10px;
    padding: 6px 10px;
  }
  #broker-demo .demo-row {
    flex-direction: column;
  }
  #broker-demo .demo-row > img {
    width: 100%;
    height: 150px;
  }
  #broker-demo .demo-row > div {
    width: 100%;
  }
  #broker-demo .demo-card .address {
    font-size: 12px;
    margin-bottom: 4px;
  }
  #broker-demo .demo-card .meta {
    padding-bottom: 6px;
  }
  #broker-demo .demo-card .price {
    font-size: 22px;
    margin-top: 8px;
  }
  #broker-demo .demo-card .tags span {
    padding: 5px 7px;
    font-size: 10px;
  }
  #broker-demo .demo-banner {
    font-size: 9px;
  }
  #broker-demo .demo-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-height: 650px) {
  #broker-demo .demo-mobile-header {
    flex-basis: 34px;
  }
  #broker-demo .demo-card .meta {
    display: none;
  }
  #broker-demo .demo-banner {
    padding: 3px 0;
    min-height: 25px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  #broker-demo nav .nav-orb,
  #broker-demo nav .nav-surface {
    transition: transform 220ms cubic-bezier(0.22, 0.61, 0.36, 1);
  }
}
