/* The glass summary uses the existing verdicts, portraits and controls. */
html.result-mode-open:has(#protocolBody[data-glass-results]:not([hidden])) {
  --rg-wall: url('/brand/backgrounds/dark-01-desktop-v1.webp');
  --rg-phone: url('/brand/backgrounds/dark-01-mobile-v1.webp');
  --rg-veil: radial-gradient(ellipse at 50% 33%,#190a14bc 7%,#200a1374 58%,#18090c23 89%);
  --rg-ink: #fff0e5;
  --rg-muted: #e6c7b9;
  --rg-brass: #efbb91;
  --rg-line: #bb86688c;
  --rg-rim: #ffdfbd63;
  --rg-edge: #d59d7f9c;
  --rg-shadow: #15060e9e;
  --rg-panel: radial-gradient(ellipse at 20% -10%,#b96d815c,transparent 65%),linear-gradient(141deg,#42222dea 8%,#341829ed 57%,#211019f5);
  --rg-button: radial-gradient(ellipse at 20% -40%,#f2a3b937,transparent 65%),linear-gradient(148deg,#e099b024,#5b354a58 66%,#bd756c12);
  --rg-photo: #e8bc9980;
  --rg-pearl: linear-gradient(158deg,#ffe7d9,#f6c5c7 30%,#dda0ab 69%,#fabdae);
  --rg-pearl-ink: #421f2d;
  --rg-pearl-rim: #ffe3d6;
  --rg-jewel: url('/brand/pearl-switch-demon-v1.webp');
  --rg-serif: 'Cormorant Garamond',Georgia,serif;
  --rg-font: Manrope,system-ui,sans-serif;
}
html[data-brand=clean].result-mode-open:has(#protocolBody[data-glass-results]:not([hidden])) {
  --rg-wall: url('/brand/club-palace-v3.webp');
  --rg-phone: url('/brand/club-palace-mobile-v3.webp');
  --rg-veil: radial-gradient(ellipse at 50% 36%,#fce0bb95 6%,#f7d7b932 62%,#c9905d16 95%);
  --rg-ink: #43232e;
  --rg-muted: #6e4944;
  --rg-brass: #905234;
  --rg-line: #a57557a4;
  --rg-rim: #fffdf2e0;
  --rg-edge: #c18b68b2;
  --rg-shadow: #66342352;
  --rg-panel: radial-gradient(ellipse at 20% -16%,#fffaf2ef,transparent 65%),linear-gradient(136deg,#fff4e6e9,#fae2d2ef 56%,#edc8b5ef);
  --rg-button: radial-gradient(ellipse at 20% -40%,#fffaf8ef,transparent 69%),linear-gradient(148deg,#fff9eea8,#ead0bb46 75%,#fff3dbaa);
  --rg-photo: #9d65599e;
  --rg-pearl: linear-gradient(157deg,#fff6e6,#ffd7cc 32%,#e5a8b0 64%,#f7c2b7);
  --rg-pearl-ink: #4e2731;
  --rg-pearl-rim: #fff6e5;
  --rg-jewel: url('/brand/pearl-switch-angel-v1.webp');
}
html[data-brand].result-mode-open:has(#protocolBody[data-glass-results]:not([hidden])),
html[data-brand].result-mode-open:has(#protocolBody[data-glass-results]:not([hidden])) body {
  height: auto;
  min-height: 100%;
  overflow: visible !important;
  overscroll-behavior: auto;
}
html[data-brand].result-mode-open:has(#protocolBody[data-glass-results]:not([hidden])) #sceneBackdrop {
  background-image: var(--rg-wall) !important;
}
html[data-brand].result-mode-open:has(#protocolBody[data-glass-results]:not([hidden])) #sceneBackdrop::after {
  background: var(--rg-veil) !important;
}
html[data-brand] body .app.results-mode:has(#protocolBody[data-glass-results]:not([hidden])) {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  height: auto !important;
  min-height: 100dvh !important;
  overflow: visible !important;
  padding: max(calc(60px + env(safe-area-inset-top)),7vh) 0 max(28px,env(safe-area-inset-bottom)) !important;
}
html[data-brand] body .app.results-mode:has(#protocolBody[data-glass-results]:not([hidden])) > main,
html[data-brand] body #endScreen.atelier-results:has(#protocolBody[data-glass-results]:not([hidden])),
html[data-brand] #endScreen.atelier-results:has(#protocolBody[data-glass-results]:not([hidden])) .c-dossier,
html[data-brand] #endScreen.atelier-results #protocolBody[data-glass-results]:not([hidden]) {
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
}
#protocolBody[data-glass-results] > [hidden],
#protocolBody[data-glass-results] .rg-shell [hidden],
.app.results-mode:has(#protocolBody[data-glass-results]:not([hidden])) .closing-quotes {
  display: none !important;
}
html[data-brand].result-mode-open:has(#protocolBody[data-glass-results]:not([hidden])) :is(.commercial-entry,.scene-control-cluster) {
  background: var(--rg-panel) !important;
  border-color: var(--rg-edge) !important;
  color: var(--rg-ink) !important;
  box-shadow: inset 0 1px 0 var(--rg-rim),0 4px 14px #160b102b !important;
}
html[data-brand].result-mode-open:has(#protocolBody[data-glass-results]:not([hidden])) .commercial-entry {
  top: calc(15px + env(safe-area-inset-top));
  left: clamp(10px,1.8vw,26px);
  min-height: 44px;
  border-radius: 16px;
  font-weight: 730;
}
html[data-brand].result-mode-open:has(#protocolBody[data-glass-results]:not([hidden])) .scene-control-cluster {
  top: calc(15px + env(safe-area-inset-top));
  border-radius: 17px;
}
body.result-mode-open:has(#protocolBody[data-glass-results]:not([hidden])) .scene-control-cluster .brand-switch::before {
  content: '';
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  background: var(--rg-jewel) center / contain no-repeat;
}
body.result-mode-open:has(#protocolBody[data-glass-results]:not([hidden])) .scene-control-cluster .brand-switch > .jewel {
  visibility: hidden;
}
.rg-shell {
  box-sizing: border-box;
  width: min(1076px,calc(100% - 52px));
  margin-inline: auto;
  color: var(--rg-ink);
}
.rg-heading {
  display: grid;
  justify-items: center;
  text-align: center;
  color: var(--rg-ink);
}
.rg-crest {
  width: auto;
  height: 68px;
  max-width: 152px;
  object-fit: contain;
  margin-bottom: 9px;
  filter: drop-shadow(0 3px 8px var(--rg-shadow));
}
#protocolBody .rg-heading #caseMeta,
#protocolBody .rg-heading #brideMark {
  color: var(--rg-muted);
  font: 750 11px/1.25 var(--rg-font);
  letter-spacing: .12em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}
#protocolBody .rg-heading #brideMark { margin-top: 5px; }
#protocolBody .rg-heading #protocolHeading {
  margin: 7px 0 0;
  color: var(--rg-ink);
  font: 600 66px/.95 var(--rg-serif);
  letter-spacing: -.038em;
}
.rg-heading-rule,.rg-card-rule {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--rg-brass);
}
.rg-heading-rule { margin: 13px auto 19px; }
.rg-heading-rule span,.rg-card-rule span {
  width: 72px;
  height: 1px;
  background: linear-gradient(90deg,transparent,currentColor);
  opacity: .74;
}
.rg-heading-rule span:last-child,.rg-card-rule span:last-child { transform: rotate(180deg); }
.rg-shell svg { flex: none; display: block; }
.rg-heading-rule svg,.rg-card-rule svg { width: 15px; height: 15px; fill: currentColor; }
.rg-list {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 17px;
}
.rg-list:has(.rg-card:only-child) { grid-template-columns: minmax(0,529px); justify-content: center; }
.rg-card,.rg-shelf {
  min-width: 0;
  border: 1px solid var(--rg-edge);
  background: var(--rg-panel);
  box-shadow: inset 0 1px 0 var(--rg-rim),inset 0 0 0 1px #f9dbd922,0 13px 33px var(--rg-shadow);
  backdrop-filter: blur(14px) saturate(110%);
}
.rg-card {
  padding: 14px;
  border-radius: 24px;
  display: grid;
  align-content: space-between;
  gap: 12px;
}
.rg-card-main {
  display: grid;
  grid-template-columns: minmax(102px,.89fr) minmax(0,1.1fr);
  gap: clamp(12px,2vw,28px);
  align-items: center;
}
.rg-photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  padding: 3px;
  border: 1px solid var(--rg-photo);
  border-radius: 15px;
  overflow: hidden;
  background: var(--rg-button);
  box-shadow: inset 0 1px 0 var(--rg-rim),0 9px 18px var(--rg-shadow);
}
#protocolBody .rg-photo .participant-portrait {
  display: block;
  border: 0 !important;
  box-shadow: none !important;
  height: 100% !important;
  width: 100%;
  border-radius: 11px;
  overflow: hidden;
}
#protocolBody .rg-photo .portrait-viewport {
  inset: 0 !important;
  border: 0 !important;
  border-radius: inherit;
}
#protocolBody .rg-photo [data-glass-default-crop] .portrait-image {
  position: static !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center 4% !important;
  transform: none !important;
}
#protocolBody .rg-photo .portrait-monogram {
  justify-content: center;
  padding-top: 0;
  color: var(--rg-ink);
}
.rg-card-copy { min-width: 0; padding-right: 6px; overflow-wrap: anywhere; }
#protocolBody .rg-card-copy h3 {
  margin: 0;
  color: var(--rg-ink);
  font: 650 clamp(25px,2.43vw,36px)/.99 var(--rg-serif);
  letter-spacing: -.018em;
  text-transform: none;
  white-space: normal;
  word-break: normal;
  text-wrap: balance;
}
.rg-card-sign {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 7px;
  color: var(--rg-muted);
  font: 670 12px/1.2 var(--rg-font);
}
.rg-card-sign small { font: inherit; }
.rg-card-sign .z-emblem { width: 16px; height: 16px; color: var(--rg-brass); filter: none; }
.rg-card-bride { color: var(--rg-muted); font: 700 10px/1.2 var(--rg-font); }
.rg-card-rule { margin: 11px 0 10px; }
.rg-card-rule span { width: 22px; }
.rg-card-rule span:last-child { width: 41px; }
.rg-card-rule svg { width: 9px; height: 9px; }
#protocolBody .rg-card-copy h4 {
  margin: 0;
  color: var(--rg-ink);
  font: italic 600 clamp(26px,2.8vw,43px)/.97 var(--rg-serif);
  letter-spacing: -.014em;
  text-transform: none;
  text-wrap: pretty;
}
.rg-card-actions { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); gap: 8px; }
#protocolBody .rg-shell button {
  display: flex !important;
  min-width: 0;
  width: 100%;
  min-height: 46px !important;
  height: auto;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 0 !important;
  padding: 7px 12px !important;
  border: 1px solid var(--rg-edge) !important;
  border-radius: 15px !important;
  color: var(--rg-ink) !important;
  background: var(--rg-button) !important;
  box-shadow: inset 0 1px 0 var(--rg-rim),0 4px 14px #160b101b !important;
  cursor: pointer;
  text-align: center;
  text-shadow: none !important;
  font: 700 13px/1.2 var(--rg-font) !important;
  white-space: normal;
  overflow-wrap: anywhere;
}
#protocolBody .rg-shell button[hidden] { display: none !important; }
#protocolBody .rg-shell button:hover { filter: brightness(1.1); }
#protocolBody .rg-shell button:focus-visible { outline: 2px solid var(--rg-brass); outline-offset: 2px; }
.rg-shell button svg {
  width: 15px !important;
  height: 15px !important;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.rg-card-actions button[data-person] svg:last-child { margin-left: auto; }
.rg-shelf { margin-top: 13px; padding: 9px 12px 12px; border-radius: 21px; }
#protocolBody .rg-shelf #atelierEveningDetails {
  min-height: 41px !important;
  margin-bottom: 10px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--rg-line) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: none !important;
  font: 650 21px/1 var(--rg-serif) !important;
}
#protocolBody .rg-shelf #atelierEveningDetails svg { color: var(--rg-brass); }
#protocolBody .rg-shelf .c-actions {
  display: grid !important;
  grid-template-columns: minmax(0,1fr) minmax(0,1.55fr) minmax(0,1.14fr) minmax(0,1fr) !important;
  gap: 8px !important;
}
#protocolBody .rg-shelf #openCompanyPoster,
#protocolBody .rg-shelf #resultsPremium {
  background: var(--rg-pearl) !important;
  color: var(--rg-pearl-ink) !important;
  border-color: var(--rg-pearl-rim) !important;
  box-shadow: inset 0 1px 1px #fff5ef,inset 0 -2px 0 #ca745527,0 5px 20px #6c23342e !important;
}
#protocolBody .rg-shelf #resultsPremium { grid-column: 1/-1; }
@media (max-width: 700px) {
  html[data-brand].result-mode-open:has(#protocolBody[data-glass-results]:not([hidden])) #sceneBackdrop {
    background-image: var(--rg-phone) !important;
  }
  html[data-brand] body .app.results-mode:has(#protocolBody[data-glass-results]:not([hidden])) {
    padding: calc(58px + env(safe-area-inset-top)) 0 max(16px,env(safe-area-inset-bottom)) !important;
  }
  html[data-brand].result-mode-open:has(#protocolBody[data-glass-results]:not([hidden])) :is(.scene-control-cluster,.commercial-entry) {
    top: calc(9px + env(safe-area-inset-top));
  }
  html[data-brand].result-mode-open:has(#protocolBody[data-glass-results]:not([hidden])) .commercial-entry {
    min-height: 41px;
    max-width: calc(100% - 164px);
    padding-inline: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .rg-shell { width: calc(100% - 20px); }
  .rg-crest { height: 43px; max-width: 94px; margin-bottom: 4px; }
  #protocolBody .rg-heading #caseMeta,#protocolBody .rg-heading #brideMark {
    font-size: 9px;
    letter-spacing: .095em;
  }
  #protocolBody .rg-heading #protocolHeading { margin-top: 4px; font-size: 43px; }
  .rg-heading-rule { margin: 7px auto 8px; }
  .rg-heading-rule span { width: 51px; }
  .rg-heading-rule svg { width: 12px; height: 12px; }
  .rg-list,.rg-list:has(.rg-card:only-child) { grid-template-columns: minmax(0,1fr); gap: 8px; }
  .rg-card { padding: 8px; border-radius: 19px; gap: 6px; }
  .rg-card-main { grid-template-columns: minmax(76px,109px) minmax(0,1fr); gap: 13px; }
  .rg-photo { padding: 2px; border-radius: 11px; }
  #protocolBody .rg-photo .participant-portrait { border-radius: 8px; }
  #protocolBody .rg-card-copy h3 { font-size: clamp(23px,7.15vw,28px); text-wrap: pretty; }
  .rg-card-sign { margin-top: 4px; font-size: 10px; }
  .rg-card-rule { margin: 5px 0; }
  #protocolBody .rg-card-copy h4 { font-size: clamp(22px,6.45vw,25px); }
  .rg-card-actions { gap: 6px; }
  #protocolBody .rg-shell button {
    min-height: 43px !important;
    font-size: 11px !important;
    border-radius: 12px !important;
  }
  .rg-shell button svg { width: 14px !important; height: 14px !important; }
  .rg-shelf { margin-top: 8px; padding: 4px 7px 7px; border-radius: 17px; }
  #protocolBody .rg-shelf #atelierEveningDetails { min-height: 39px !important; margin-bottom: 6px !important; font-size: 19px !important; }
  #protocolBody .rg-shelf .c-actions {
    grid-template-columns: minmax(0,1.34fr) minmax(0,1fr) !important;
    gap: 5px !important;
  }
  #protocolBody .rg-shelf #openCompanyPoster { grid-column: 1; grid-row: 1; }
  #protocolBody .rg-shelf #rematchBtn { grid-column: 2; grid-row: 1; }
}
@media (max-width: 350px) {
  .rg-card-main { grid-template-columns: 82px minmax(0,1fr); gap: 10px; }
  .rg-card-copy { padding-right: 0; }
  #protocolBody .rg-shell button { gap: 6px; padding-inline: 5px !important; }
}
