
body { background: hsl(var(--background)); color: hsl(var(--foreground)); }
#gm-internal { position: relative; z-index: 99999; background: #18122b; color: #fff; padding: 8px 16px;
  font: 12px/1.5 system-ui, sans-serif; display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; }
#gm-internal b { letter-spacing: .02em; }
#gm-internal a { color: #edcaff; }
html[data-gm-mode="internal"] [data-slot] { position: relative; outline: 2px dashed rgba(124, 58, 237, .55); outline-offset: 2px; }
html[data-gm-mode="internal"] [data-slot]::after { content: "REF " attr(data-slot-kind); position: absolute; top: 4px; left: 4px;
  z-index: 40; background: #7c3aed; color: #fff; font: 600 10px/1 system-ui; padding: 3px 5px; border-radius: 4px; pointer-events: none; }
html[data-gm-mode="internal"] video[data-slot]::after, html[data-gm-mode="internal"] img[data-slot]::after { content: none; }
html[data-gm-mode="public-preview"] [data-slot-kind="claim"]:not([data-public-text]) { display: none !important; }
.gm-media-empty { display: flex; align-items: center; justify-content: center; min-height: 160px; width: 100%;
  background: repeating-linear-gradient(45deg, hsl(var(--secondary)), hsl(var(--secondary)) 10px, hsl(var(--muted)) 10px, hsl(var(--muted)) 20px);
  color: hsl(var(--muted-foreground)); font: 600 12px system-ui; border-radius: 12px; }


.gm-sel > .relative > div, .gm-choice.gm-sel { box-shadow: 0 0 0 3px hsl(var(--primary)) !important; }
.gm-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.gm-chip { border: 1px solid hsl(var(--border)); background: hsl(var(--secondary)); color: hsl(var(--foreground));
  border-radius: 999px; padding: 10px 16px; font-size: 14px; font-weight: 600; cursor: pointer; min-height: 44px; }
.gm-chip[aria-pressed="true"] { background: hsl(var(--primary)); border-color: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
.gm-field-label { display: block; font-size: 14px; font-weight: 600; margin: 0 0 6px; text-align: left; color: hsl(var(--foreground)); }
.gm-error { color: hsl(var(--destructive)); font-size: 13px; font-weight: 600; margin-top: 6px; }
.gm-error:empty { display: none; }
.gm-hint { color: hsl(var(--muted-foreground)); font-size: 12px; margin-top: 4px; }
.gm-check { display: flex; gap: 10px; align-items: flex-start; text-align: left; font-size: 13px; line-height: 1.45; }
.gm-check input { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; accent-color: hsl(var(--primary)); }
.gm-check a, .gm-legal a, .gm-link { text-decoration: underline; color: hsl(var(--gold-dark)); }
.gm-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gm-thumb { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: hsl(var(--secondary)); }
.gm-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gm-thumb button { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border-radius: 999px;
  background: rgba(0,0,0,.65); color: #fff; font-size: 16px; line-height: 28px; text-align: center; }
.gm-upload-zone { padding: 16px; border-radius: 16px; background: hsl(var(--card)); border: 1px solid hsl(var(--border)); }
.gm-portraits { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gm-portrait { border-radius: 16px; overflow: hidden; background: hsl(var(--secondary)); aspect-ratio: 3/4; display: flex;
  align-items: center; justify-content: center; position: relative; }
.gm-portrait img { width: 100%; height: 100%; object-fit: cover; }
.gm-portrait figcaption { position: absolute; left: 8px; bottom: 8px; background: rgba(255,255,255,.85); border-radius: 999px;
  padding: 2px 10px; font-size: 12px; font-weight: 700; }
.gm-spinner { width: 28px; height: 28px; border-radius: 999px; border: 3px solid hsl(var(--border));
  border-top-color: hsl(var(--primary)); animation: gm-spin 1s linear infinite; }
@keyframes gm-spin { to { transform: rotate(360deg); } }
.gm-notice { border-radius: 12px; padding: 12px 14px; font-size: 14px; text-align: left; }
.gm-notice--error { background: hsl(0 84% 60% / .1); border: 1px solid hsl(0 84% 60% / .4); color: hsl(0 70% 35%); }
.gm-notice--info { background: hsl(var(--primary) / .08); border: 1px solid hsl(var(--primary) / .35); }
.gm-notice--ok { background: hsl(142 70% 45% / .1); border: 1px solid hsl(142 70% 45% / .4); color: hsl(142 60% 25%); }
.gm-notice--test { background: #fff7d6; border: 1px dashed #b7791f; color: #6b4a0b; }
.gm-secondary-btn { width: 100%; min-height: 44px; border-radius: 10px; border: 1px solid hsl(var(--border)); background: hsl(var(--card));
  font-weight: 600; font-size: 15px; padding: 10px 14px; cursor: pointer; }
.gm-secondary-btn:disabled, .gm-chip:disabled { opacity: .5; cursor: default; }
.gm-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid hsl(var(--border)); font-size: 14px; }
.gm-row:last-child { border-bottom: 0; }
.gm-row--total { font-weight: 800; font-size: 16px; }
.gm-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; text-align: left; }
.gm-steps li { display: flex; gap: 10px; align-items: center; font-size: 14px; color: hsl(var(--muted-foreground)); }
.gm-steps li::before { content: ""; width: 14px; height: 14px; border-radius: 999px; border: 2px solid hsl(var(--border)); flex-shrink: 0; }
.gm-steps li[data-state="done"] { color: hsl(var(--foreground)); }
.gm-steps li[data-state="done"]::before { background: hsl(142 70% 45%); border-color: hsl(142 70% 45%); }
.gm-steps li[data-state="now"] { color: hsl(var(--foreground)); font-weight: 700; }
.gm-steps li[data-state="now"]::before { background: hsl(var(--primary)); border-color: hsl(var(--primary)); }
.gm-offer-ladder { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.gm-offer-ladder span { font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 999px; background: hsl(var(--secondary)); }
.gm-offer-ladder span[data-state="paid"] { background: hsl(142 70% 45%); color: #fff; }
.gm-offer-ladder span[data-state="skipped"], .gm-offer-ladder span[data-state="unavailable"] { opacity: .45; text-decoration: line-through; }
.gm-offer-ladder span[data-current="1"] { background: hsl(var(--primary)); color: #fff; }
.gm-video { width: 100%; border-radius: 16px; background: #000; aspect-ratio: 16/9; }
textarea.gm-textarea { min-height: 96px; padding: 12px; line-height: 1.4; }
[hidden] { display: none !important; }
a.gm-plain { color: inherit; }
@media (max-width: 420px) { .gm-portraits { gap: 8px; } }


.gm-styles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.gm-style-card { display: flex; flex-direction: column; gap: 6px; padding: 8px; border-radius: 16px; text-align: left;
  border: 2px solid hsl(var(--border)); background: hsl(var(--card)); cursor: pointer; min-width: 0; }
.gm-style-card img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 10px; background: hsl(var(--secondary)); }
.gm-style-card.gm-sel { border-color: hsl(var(--primary)); box-shadow: 0 0 0 3px hsl(var(--primary) / .25); }
.gm-style-card:disabled { cursor: default; opacity: .75; }
.gm-style-title { font-weight: 800; font-size: 15px; }
.gm-style-desc { font-size: 12px; color: hsl(var(--muted-foreground)); line-height: 1.35; }
.gm-share-box { display: flex; gap: 8px; flex-wrap: wrap; }
.gm-share-box input { flex: 1 1 200px; min-width: 0; height: 44px; border-radius: 8px; border: 1px solid hsl(var(--border));
  padding: 0 10px; font-size: 13px; background: hsl(var(--secondary)); color: hsl(var(--foreground)); }
.gm-share-box button { flex: 0 0 auto; min-height: 44px; }
.gm-film-card { display: grid; gap: 8px; text-align: left; }
.gm-film-card h3 { font-family: var(--font-serif, Georgia), serif; font-size: 18px; font-weight: 700; }
.gm-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.gm-actions > * { flex: 1 1 140px; }
.gm-danger { border: 1px solid hsl(0 84% 60% / .4); border-radius: 12px; padding: 12px; text-align: left; }
.gm-danger summary { cursor: pointer; font-weight: 700; font-size: 14px; }
.gm-danger-btn { width: 100%; min-height: 44px; border-radius: 10px; border: 0; background: hsl(0 70% 45%); color: #fff; font-weight: 700; }
.gm-preview-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
#gm-coupon-status:empty { display: none; }  


#gm-toaster { position: fixed; z-index: 2147483000; right: 32px; bottom: 32px; width: 356px; max-width: calc(100vw - 32px); margin: 0; padding: 0;
  list-style: none; display: flex; flex-direction: column; gap: 14px; pointer-events: none; outline: none; box-sizing: border-box; }
.gm-toast { pointer-events: auto; box-sizing: border-box; width: 100%; display: flex; align-items: center; gap: 6px; padding: 16px;
  border-radius: 8px; border: 1px solid hsl(var(--border)); background: hsl(var(--background)); color: hsl(var(--foreground));
  box-shadow: 0 4px 12px rgba(0,0,0,.1), 0 10px 15px -3px rgba(0,0,0,.1); font: 400 13px/1.5 Inter, ui-sans-serif, system-ui, sans-serif;
  animation: gm-toast-in .4s ease both; cursor: default; }
.gm-toast[data-leaving] { animation: gm-toast-out .25s ease both; }
.gm-toast__icon { display: flex; flex: 0 0 auto; width: 16px; height: 16px; margin: 0 4px 0 -3px; align-items: center; justify-content: center; }
.gm-toast__icon svg { width: 20px; height: 20px; flex: 0 0 auto; margin-left: -1px; }
.gm-toast__msg { font-weight: 500; }
@keyframes gm-toast-in { from { opacity: 0; transform: translateY(100%); } to { opacity: 1; transform: none; } }
@keyframes gm-toast-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(8px); } }
@media (max-width: 600px) { #gm-toaster { left: 16px; right: 16px; bottom: 16px; width: auto; max-width: none; } }
@media (prefers-reduced-motion: reduce) { .gm-toast, .gm-toast[data-leaving] { animation: none; } }

html[data-gm-mode="internal"] [data-slot].fixed { position: fixed; }


.gm-consent { position: fixed; z-index: 2147482000; left: 16px; right: 16px; bottom: 16px; max-width: 640px; margin: 0 auto;
  box-sizing: border-box; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px;
  background: #1c1a17; color: #f5efe6; box-shadow: 0 10px 30px rgba(0,0,0,.35); font: 400 14px/1.45 Inter, ui-sans-serif, system-ui, sans-serif; }
.gm-consent__text { flex: 1 1 260px; margin: 0; }
.gm-consent__text a { color: #f1c27d; text-decoration: underline; }
.gm-consent__actions { display: flex; gap: 8px; flex: 0 0 auto; }
.gm-consent__btn { min-height: 44px; min-width: 104px; padding: 0 16px; border-radius: 10px; border: 1px solid #f1c27d;
  background: transparent; color: #f5efe6; font: 700 14px/1 Inter, ui-sans-serif, system-ui, sans-serif; cursor: pointer; }
.gm-consent__btn:focus-visible { outline: 2px solid #f1c27d; outline-offset: 2px; }
@media (max-width: 600px) { .gm-consent { left: 8px; right: 8px; bottom: 8px; } .gm-consent__actions { width: 100%; } .gm-consent__btn { flex: 1 1 0; } }
