/* Keep every selector local: the host owns its theme and studio layout. */
.ortak-preview {
  width: 100%; min-width: 0; max-width: 420px; margin-inline: auto;
  display: grid; gap: 12px; color: var(--ink, #e7edf4);
  font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-variant-numeric: tabular-nums;
}
.ortak-preview, .ortak-preview * { box-sizing: border-box; }
.ortak-preview [hidden] { display: none !important; }
.ortak-preview p, .ortak-preview h3 { margin: 0; }
.ortak-preview__tools { display: flex; align-items: end; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ortak-preview__format { display: grid; gap: 4px; color: var(--muted, #a5b3c2); font-size: 12px; }
.ortak-preview__format select {
  width: auto; max-width: 100%; min-height: 44px; padding: 8px 28px 8px 10px;
  background: var(--paper, #121a23); color: var(--ink, #e7edf4); border: 1px solid var(--control-line, #64798a); border-radius: 8px; font: inherit; font-size: 16px;
}
.ortak-preview__button {
  min-width: 44px; min-height: 44px; padding: 9px 12px; border-radius: 9px;
  border: 1px solid var(--line, #2b3948); background: var(--paper, #121a23);
  color: var(--ink, #e7edf4); font: inherit; font-weight: 600; cursor: pointer; touch-action: manipulation;
}
.ortak-preview__button:hover { background: var(--hover, #1e2b37); }
.ortak-preview__button:disabled { cursor: default; opacity: .65; }
.ortak-preview__button:focus-visible, .ortak-preview__format select:focus-visible { outline: 3px solid var(--teal, #73d2bc); outline-offset: 2px; }
.ortak-preview__caption, .ortak-preview__disclaimer { color: var(--muted, #a5b3c2); font-size: 12px; overflow-wrap: anywhere; }
.ortak-preview__phone {
  width: 100%; max-width: 360px; margin-inline: auto; position: relative;
  display: flex; flex-direction: column; height: 640px; height: clamp(440px, 72svh, 680px);
  overflow: hidden; isolation: isolate; border: 5px solid var(--line, #2b3948); border-radius: 28px;
  background: var(--ground, #0b1016); box-shadow: 0 14px 30px rgb(0 0 0 / 12%);
}
.ortak-preview__header {
  display: flex; align-items: center; gap: 8px; padding: 12px 10px; flex: 0 0 auto;
  background: var(--paper, #121a23); border-bottom: 1px solid var(--line, #2b3948);
}
.ortak-preview__heading { display: grid; gap: 2px; min-width: 0; flex: 1; }
.ortak-preview__eyebrow { font-size: 10px; letter-spacing: .09em; font-weight: 650; color: var(--muted, #a5b3c2); }
.ortak-preview__title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.ortak-preview__icon, .ortak-preview__gate { flex: 0 0 44px; padding: 7px; font-size: 22px; line-height: 1; }
.ortak-preview__icon svg { display: block; width: 24px; height: 24px; margin: auto; fill: currentColor; }
.ortak-preview__gate { background: var(--subtle, #17212c); }
.ortak-preview__screen { position: relative; flex: 1; min-height: 0; background: var(--subtle, #17212c); }
.ortak-preview__creative { display: block; width: 100%; height: 100%; border: 0; background: var(--subtle, #17212c); }
.ortak-preview__card, .ortak-preview__closed {
  height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 20px; padding: 24px; text-align: center; overflow: auto; overflow-wrap: anywhere;
}
.ortak-preview__card-title { font-size: 24px; line-height: 1.25; letter-spacing: -.5px; overflow-wrap: anywhere; }
.ortak-preview__primary { background: var(--teal, #73d2bc); color: var(--accent-ink, #09241d); border-color: var(--teal, #73d2bc); }
.ortak-preview__primary:hover { background: var(--accent-hover, #92dfcc); }
.ortak-preview__status { display: grid; gap: 4px; padding: 11px 12px 15px; min-height: 52px; background: var(--paper, #121a23); color: var(--muted, #a5b3c2); font-size: 11px; border-top: 1px solid var(--line, #2b3948); }
.ortak-preview__reward { color: var(--teal, #73d2bc); font-size: 12px; }
.ortak-preview__store { position: absolute; inset: 0; z-index: 2; display: flex; align-items: end; background: var(--backdrop, rgb(0 0 0 / 65%)); }
.ortak-preview__sheet {
  display: grid; gap: 18px; width: 100%; max-height: 100%; overflow: auto; padding: 28px 22px 24px;
  border-top: 1px solid var(--control-line, #64798a); border-radius: 24px 24px 0 0;
  background: var(--paper, #121a23); color: var(--ink, #e7edf4);
}
.ortak-preview__store-note { color: var(--muted, #a5b3c2); font-size: 12px; }
