.pb-screen {
  --board-purple: #53276f;
  --board-edge: #79508f;
  min-height: 100%;
  height: var(--panel-height);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 12px 10px;
  box-sizing: border-box;
}
.pb-toolbar { display: flex; align-items: center; gap: 7px; flex: none; }
.pb-toolbar button, .pb-image-fields button {
  background: white; color: #194273; border: 1px solid #c4d4e9; border-radius: 8px;
  padding: 5px 13px; font-weight: 700; line-height: 1.5;
}
.pb-toolbar button:hover, .pb-image-fields button:hover { background: #f0f5fc; border-color: #91aad1; }
.pb-display {
  flex: 1; min-height: 0; display: flex; flex-direction: column;
  container-type: inline-size; overflow: hidden; border-radius: 12px;
  padding: 0 0.45% 6px;
  color: white; background: linear-gradient(115deg, #60347b, #50246f 52%, #633681);
}
.pb-display > h1, .pb-banner {
  margin: 0; flex: none; text-align: center; color: white;
  font-family: TAIF, Tahoma, sans-serif; font-weight: 700; overflow-wrap: anywhere;
}
.pb-display > h1 { font-size: clamp(25px, 3.05cqw, 60px); line-height: 1.24; padding: .18em .45em .1em; }
.pb-banner { font-size: clamp(19px, 2.05cqw, 40px); line-height: 1.24; padding: .16em .6em .02em; }
.pb-body {
  flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 19.2fr) minmax(0, 80.8fr);
  gap: 1.35%; padding: clamp(10px, 1.25cqw, 24px); border-radius: 10px;
  background: #fbfaf7; color: #151218;
}
.pb-rates {
  min-width: 0; min-height: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr));
  grid-auto-rows: minmax(0,1fr); gap: clamp(7px,.75cqw,14px) 1.35%;
}
.pb-quote {
  min-width: 0; min-height: 0; display: grid; grid-template-rows: 27% minmax(0,1fr); overflow: hidden;
  border: 1.5px solid var(--board-edge); border-radius: clamp(8px,.8cqw,15px);
  background: linear-gradient(#fff, #fbf9f3); box-shadow: 0 3px 12px #44245214;
}
.pb-quote:only-child { grid-column: 1/-1; }
.pb-quote h2 {
  min-width: 0; min-height: 0; margin: 0; padding-inline: .4em;
  display: flex; align-items: center; justify-content: center; gap: .38em;
  color: white; background: linear-gradient(110deg, #663987, #492163);
  font-size: clamp(16px, 1.85cqw, 37px); line-height: 1.15;
}
.pb-quote h2 span { min-width: 0; text-align: center; overflow-wrap: anywhere; }
.pb-quote h2 .master-flag {
  display: block; flex: none; width: 1.26em; height: 1.26em; border-radius: 50%;
  object-fit: contain; background: white; box-shadow: 0 0 0 1px #ffffff80;
}
.pb-values { min-width: 0; min-height: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
.pb-values > div {
  min-width: 0; display: flex; flex-direction: column; justify-content: center; align-items: center;
  gap: .1em; padding: 3px; color: #151016; font-weight: 700;
}
.pb-values > div + div { border-inline-start: 1px solid #cac5c9; }
.pb-values span { font-size: clamp(17px, 1.65cqw, 32px); line-height: 1.14; }
.pb-values bdi { max-width: 100%; text-align: center; overflow-wrap: anywhere; font-size: clamp(23px, 2.75cqw, 55px); line-height: 1.24; font-variant-numeric: tabular-nums; }
.pb-values .pb-long { font-size: clamp(13px, 1.35cqw, 27px); }
.pb-media {
  min-width: 0; min-height: 0; display: grid; grid-template-rows: repeat(2,minmax(0,1fr)); gap: 2.8%;
  padding: clamp(12px,1.55cqw,30px); border: clamp(4px,.55cqw,11px) solid white;
  border-radius: clamp(12px,1.25cqw,24px); outline: 1.5px solid #9b7aaa; outline-offset: -1px;
  background: linear-gradient(150deg,#72448f,#50266c); box-shadow: 0 3px 12px #44245214;
}
.pb-media > div {
  min-height: 0; min-width: 0; display: grid; place-items: center; overflow: hidden; background: white;
  border: clamp(7px,.9cqw,18px) solid #eeebf2; border-radius: clamp(10px,1.15cqw,22px);
}
.pb-media img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.pb-media > :first-child img { padding: 5%; }
.pb-empty { grid-column: 1/-1; grid-row: 1/-1; align-self: center; text-align: center; color: #57366c; }
.pb-dialog p { margin: 0 0 10px; }
.pb-banner-fields { display: grid; gap: 12px; }
.pb-banner-fields fieldset { min-width: 0; margin: 0; padding: 6px 12px 10px; border: 1px solid #cfdbef; border-radius: 8px; }
.pb-banner-fields legend { padding-inline: 5px; color: #194273; font-weight: 700; }
.pb-field { display: grid; gap: 4px; }
.pb-field textarea { width: 100%; box-sizing: border-box; resize: vertical; }
.pb-check { display: flex; align-items: center; gap: 7px; margin-block-start: 8px; }
.pb-dialog input[type="checkbox"] { width: 17px; height: 17px; accent-color: #255ee2; }
.pb-image-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.pb-image-fields section { min-width: 0; display: grid; gap: 8px; align-content: start; }
.pb-image-fields label { font-weight: 700; }
.pb-image-fields [data-board-preview] { display: grid; place-items: center; padding: 6px; border: 1px solid #d1def1; border-radius: 8px; background: white; }
.pb-image-fields img { width: 100%; height: 115px; object-fit: contain; }
.pb-image-fields input { width: 100%; }
.pb-dialog .pb-note { margin-block-start: 9px; color: #516a88; }
.pb-dialog .pb-error { margin-block-start: 8px; color: #ab263e; }
