@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #0d0c14;
  --bg-1: #0d0c14;
  --bg-2: #16131f;
  --card-bg: #191622;
  --text: #f4f1fb;
  --text-1: #f4f1fb;
  --text-2: #ada5ba;
  --text-3: #8e859d;
  --border: rgba(225,220,255,.12);
  --accent: #b396f2;
  --accent-dark: #d0b9ff;
  --em-action: linear-gradient(112deg,#fff0fb,#f8b2ed 52%,#ee77df);
  --card: #191622;
  --accent-light: #31263f;
  --hk-ink: #f4f1fb;
  --hk-muted: #ada5ba;
  --hk-violet: #bd9af0;
  --hk-violet-deep: #d1b6fa;
  --hk-lilac: #282033;
  --hk-line: rgba(225,220,255,.12);
  --hk-paper: #191622;
}
[hidden] { display: none!important; }
body:has(.em-navigation) {
  background: radial-gradient(ellipse at 70% 0,rgba(71,45,120,.12),transparent 45%),#0d0c14!important;
  color: var(--text);
  font-family: 'DM Sans',sans-serif;
}
html:has(.em-navigation) { background: #0d0c14; }
body:has(.em-navigation) .s-wrap { width: auto; max-width: none; min-height: 100dvh; margin-left: 236px; background: transparent; }
body:has(.em-navigation) .s-wrap:not(.ld-page) { background: transparent; }
body:has(.em-navigation) .s-header { max-width: none; padding: 18px 32px; border-color: var(--border); background: transparent; }
body:has(.em-navigation) .s-header-logo { display: none; }
body:has(.em-navigation) .s-body { max-width: 1500px; margin: auto; padding: 30px 40px; }
body:has(.em-navigation) .s-nav { display: none!important; }
body:has(.em-navigation) :is(.s-card,.s-form-card,.s-input,.s-textarea,.s-select,.studio-job-card,.studio-workstation,.studio-result-pane) { border-color: var(--border); background: var(--card-bg); color: var(--text); }
body:has(.em-navigation) :is(input,textarea,select) { color-scheme: dark; }
body:has(.em-navigation) :is(.s-btn-primary,.em-action) { border: 0; border-radius: 11px; background: var(--em-action); color: #111!important; font-weight: 700; box-shadow: none; }
body:has(.em-navigation) :is(.s-btn-primary,.em-action) :is(span,small,svg) { color: #111!important; }
body:has(.em-navigation) .s-btn-ghost { border-color: var(--border); color: var(--text); }
body:has(.em-navigation) .s-header-balance {
  padding: 0;
  background: transparent;
  color: var(--text);
}
body:has(.em-navigation) :is(.hk-workspace,.hk-form-panel,.hk-result-panel,.hk-panel,.hk-parameter-card) { border-color: var(--border); background: var(--card-bg); color: var(--text); }

.em-navigation { position: fixed; z-index: 50; inset: 0 auto 0 0; display: flex; width: 236px; flex-direction: column; gap: 38px; padding: 30px 16px 22px; border-right: 1px solid var(--border); background: #0e0c16; }
.em-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.em-logo img:first-child { width: 27px; height: 32px; object-fit: contain; }
.em-logo img:last-child { width: 141px; height: auto; }
.em-navigation nav { display: grid; gap: 8px; }
.em-navigation a { color: var(--text-2); text-decoration: none; font-size: 13px; }
.em-navigation nav a { display: flex; align-items: center; gap: 13px; padding: 13px; border: 1px solid transparent; border-radius: 12px; }
.em-navigation nav a[aria-current="page"] { border-color: #3d304d; background: linear-gradient(110deg,#2c213f,#181420); color: #fff; }
.em-navigation nav a:hover,.em-navigation-bottom a:hover { color: #fff; }
.em-navigation nav svg { width: 17px; height: 17px; color: #a99ab8; stroke-width: 1.65; }
.em-navigation-bottom { display: grid; gap: 8px; margin-top: auto; padding: 8px; }
.em-navigation-bottom a { display: flex; align-items: center; gap: 11px; padding: 11px 9px; border: 1px solid transparent; border-radius: 10px; color: #a9a2b2; font-size: 12px; }
.em-navigation-bottom a:first-child { border-color: var(--border); color: #e1d7ed; }
.em-navigation-bottom svg { width: 16px; height: 16px; color: #c3aee1; }
.em-menu-toggle,.em-menu-close { display: none; }
.em-menu-scrim { display: none; }
.em-menu-scrim:not([hidden]) { display: block; }

.em-studio-page { width: min(1120px,100%); margin: 0 auto; color: var(--text); }
.em-studio-page h1,.em-studio-page h2,.em-studio-page h3 { color: var(--text); }
.em-studio-page .em-studio-page-head { margin-bottom: 19px; }
.em-studio-page .em-studio-page-head h1 { margin: 0; font: 700 clamp(29px,3vw,38px)/1.1 Manrope,sans-serif; letter-spacing: -.045em; }
.em-studio-page .em-media-mode { display: flex; gap: 6px; margin: 0 0 13px; }
.em-studio-page .em-mode { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--border); border-radius: 10px; background: rgba(255,255,255,.025); color: var(--text-2); cursor: pointer; font-size: 12px; }
.em-studio-page .em-mode svg { width: 16px; height: 16px; }
.em-studio-page .em-mode[aria-selected="true"] { border-color: rgba(194,174,255,.42); background: rgba(150,123,222,.14); color: #fff; }
.em-studio-page .em-studio-form { display: grid; gap: 12px; padding: 15px; border: 1px solid var(--border); border-radius: 16px; background: radial-gradient(ellipse at 70% 0,rgba(115,88,165,.1),transparent 44%),linear-gradient(135deg,rgba(32,28,44,.96),rgba(20,18,27,.97)); }
.em-studio-page .em-composer-main { display: grid; grid-template-columns: minmax(250px,.85fr) minmax(0,1.35fr); align-items: stretch; gap: 14px; }
.em-studio-page .em-reference-panel,.em-studio-page .em-prompt-panel { min-width: 0; border: 1px solid var(--border); border-radius: 12px; background: rgba(11,10,17,.26); }
.em-studio-page .em-reference-panel { padding: 11px; }
.em-studio-page .em-panel-heading { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin: 0 1px 10px; color: #ddd7e9; font-size: 12px; font-weight: 600; }
.em-studio-page .em-reference-count { color: #d0c1ff; font: 600 11px/1 'DM Sans',sans-serif; font-variant-numeric: tabular-nums; }
.em-studio-page .em-reference-count i { color: #777282; font-style: normal; }
.em-studio-page .em-reference-grid,.em-studio-page .em-refs { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); align-content: start; gap: 7px; }
.em-studio-page .em-refs-count { grid-column: 1/-1; margin: 0 0 3px auto; color: #d0c1ff; font: 600 11px/1 'DM Sans',sans-serif; font-variant-numeric: tabular-nums; }
.em-studio-page .em-ref,.em-studio-page .em-reference,.em-studio-page .em-add-ref,.em-studio-page .em-add-reference { position: relative; display: grid; width: 100%; min-width: 0; height: auto; aspect-ratio: 1; place-items: center; overflow: hidden; border-radius: 8px; }
.em-studio-page .em-ref { border: 1px solid rgba(255,255,255,.12); cursor: grab; }
.em-studio-page .em-ref img { display: block; width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.em-studio-page .em-ref button { position: absolute; top: 3px; right: 3px; z-index: 2; display: grid; width: 20px; height: 20px; place-items: center; padding: 0; border: 0; border-radius: 6px; background: rgba(9,8,13,.82); color: #fff; font-size: 14px; cursor: pointer; }
.em-studio-page .em-ref .em-ref-move { top: auto; right: auto; bottom: 3px; left: 3px; width: 23px; height: 20px; border-radius: 6px; font-size: 12px; }
.em-studio-page .em-add-ref { border: 1px dashed rgba(205,192,255,.25); background: rgba(255,255,255,.025); color: #c4b9d5; font-size: 22px; cursor: pointer; }
.em-studio-page .em-add-ref:hover { border-color: rgba(205,192,255,.54); background: rgba(150,123,222,.1); }
.em-studio-page .em-add-ref::after { content: "Добавить"; font-size: 9px; }
.em-studio-page #em-references:has(.em-ref) .em-add-ref::after { content: "Ещё"; }
.em-studio-page .em-reference > .em-reference-preview { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 0; background: transparent; cursor: zoom-in; }
.em-studio-page .em-reference.is-video-active { box-shadow: 0 0 0 2px rgba(184,158,255,.76); }
.em-studio-page .em-reference-order { position: absolute; top: 4px; left: 4px; display: grid; min-width: 17px; height: 17px; place-items: center; border-radius: 5px; background: rgba(8,7,11,.76); color: #fff; font-size: 10px; pointer-events: none; }
.em-studio-page .em-reference-remove { position: absolute; top: 3px; right: 3px; display: grid; width: 20px; height: 20px; place-items: center; border: 0; border-radius: 6px; background: rgba(9,8,13,.82); color: #fff; cursor: pointer; }
.em-studio-page .em-reference-remove svg { width: 12px; height: 12px; }
.em-studio-page .em-reference-arrows { position: absolute; right: 3px; bottom: 3px; left: 3px; display: flex; justify-content: space-between; pointer-events: none; }
.em-studio-page .em-reference-arrows button { display: grid; width: 21px; height: 20px; place-items: center; border: 0; border-radius: 6px; background: rgba(9,8,13,.82); color: #fff; cursor: pointer; pointer-events: auto; }
.em-studio-page .em-reference-arrows button:disabled { opacity: .35; cursor: default; }
.em-studio-page .em-reference-arrows svg { width: 12px; height: 12px; }
.em-studio-page .em-reference.is-dragging { opacity: .42; }
.em-studio-page .em-video-selected { position: absolute; right: 4px; bottom: 4px; display: grid; width: 19px; height: 19px; place-items: center; border-radius: 50%; background: #c3adff; color: #211833; pointer-events: none; }
.em-studio-page .em-video-selected svg { width: 12px; height: 12px; stroke-width: 2.5; }
.em-studio-page .em-add-reference { border: 1px dashed rgba(205,192,255,.25); background: rgba(255,255,255,.025); color: #c4b9d5; cursor: pointer; }
.em-studio-page .em-add-reference:hover { border-color: rgba(205,192,255,.54); background: rgba(150,123,222,.1); }
.em-studio-page .em-prompt-panel { display: flex; min-height: 177px; flex-direction: column; padding: 12px 14px 9px; background: linear-gradient(145deg,rgba(42,36,57,.54),rgba(23,20,31,.65)); }
.em-studio-page .em-prompt-label { display: block; margin-bottom: 8px; color: #e5dff0; font-size: 12px; font-weight: 600; }
.em-studio-page .em-prompt-panel textarea { display: block; width: 100%; min-height: 89px; flex: 1; padding: 1px 0; resize: vertical; border: 0; outline: 0; background: transparent; color: var(--text); font: 13px/1.55 'DM Sans',sans-serif; }
.em-studio-page .em-prompt-panel textarea::placeholder { color: #8b8498; opacity: .9; }
.em-studio-page .em-settings-row { display: flex; align-items: end; gap: 10px; flex-wrap: wrap; margin-top: 0; }
.em-studio-page .em-setting-control { display: grid; min-width: 110px; gap: 5px; margin: 0; }
.em-studio-page .em-setting-control > span { display: block; color: #9e97aa; font-size: 10px; line-height: 1.2; }
.em-studio-page .em-setting-control select { width: 100%; min-height: 39px; padding: 0 31px 0 11px; border: 1px solid rgba(225,220,255,.16); border-radius: 9px; background-color: #201c29; color: #eeeaf5; font: 12px 'DM Sans',sans-serif; }
.em-studio-page .em-setting-control select:focus-visible { outline: 2px solid #a88bdc; outline-offset: 2px; }
.em-studio-page .em-image-model-note { align-self: center; margin-left: auto; padding: 5px 8px; border: 1px solid rgba(196,178,255,.16); border-radius: 999px; background: rgba(154,126,212,.08); color: #c7b8e9; font-size: 9px; white-space: nowrap; }
.em-studio-page .em-settings-row .em-submit { display: inline-flex; width: auto; min-width: 152px; min-height: 39px; flex: 0 0 auto; align-items: center; justify-content: center; gap: 9px; margin: 0 0 0 auto; padding: 0 17px; border: 0; border-radius: 9px; background: var(--em-action); color: #111!important; box-shadow: 0 5px 16px rgba(198,130,175,.12); font-size: 12px; font-weight: 700; cursor: pointer; }
.em-studio-page .em-settings-row .em-submit:hover { background: linear-gradient(112deg,#fff5fd 0%,#ffc4f3 52%,#f78ce9 100%); color: #111!important; }
.em-studio-page .em-settings-row .em-submit :is(span,svg,i) { color: #111!important; }
.em-studio-page .em-settings-row .em-submit svg { width: 15px; height: 15px; }
.em-studio-page .em-price-in-action { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; padding: 0 0 0 8px; border-left: 1px solid rgba(0,0,0,.18); color: #111; font: 700 11px/1 'DM Sans',sans-serif; }
.em-studio-page .em-price-in-action .em-gem { width: 11px; height: 10px; background: #111; }
.em-gem { display: inline-block; width: 12px; height: 11px; flex-shrink: 0; background: currentColor; clip-path: polygon(22% 0,78% 0,100% 30%,50% 100%,0 30%); }
.studio-submit-label small { display: inline-flex; align-items: center; gap: 5px; }
.em-studio-page .em-settings-row .em-submit .em-gem { background: #111; }
.em-studio-page .em-error { min-height: 0; margin: 14px 0; color: #ffb3c9; font-size: 13px; line-height: 1.5; }
.em-studio-page .em-error:empty { display: none; }
.em-reference-status { display:block; min-height:0; margin-top:6px; color:#aaa0b7; font-size:11px; line-height:1.4; }
.em-reference-status:empty { display:none; }
.em-studio-page .em-results-title { margin: 29px 0 12px; font: 600 21px Manrope,sans-serif; letter-spacing: -.03em; }
.em-studio-page .em-results { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.em-studio-page .em-results-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.em-studio-page .em-results-density { display: inline-flex; gap: 3px; padding: 3px; border: 1px solid var(--border); border-radius: 10px; background: rgba(255,255,255,.025); }
.em-studio-page .em-results-density button { min-height: 31px; padding: 0 10px; border: 0; border-radius: 7px; background: transparent; color: var(--text-3); font: 600 11px 'DM Sans',sans-serif; cursor: pointer; }
.em-studio-page .em-results-density button[aria-pressed="true"] { background: rgba(193,155,236,.18); color: var(--text); }
.em-studio-page .em-results-density button:focus-visible { outline: 2px solid #c49bfa; outline-offset: 2px; }
.em-studio-page .em-results.is-compact { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; }
.em-studio-page .em-results.is-compact .em-output { min-height: 90px; border-radius: 10px; }
.em-studio-page .em-results.is-compact .em-output>img,
.em-studio-page .em-results.is-compact .em-output>video { width: 100%; height: 220px; max-height: none; object-fit: cover; cursor: zoom-in; }
.em-studio-page .em-results.is-compact .em-output .em-result-buttons { top: 5px; right: 5px; }
.em-studio-page .em-results.is-compact .em-result-buttons :is(a,button) { min-width: 28px; min-height: 28px; }
.em-studio-page .em-gallery-empty { grid-column: 1/-1; display: flex; min-height: 88px; align-items: center; margin: 0; padding: 20px; border: 1px dashed var(--border); border-radius: 14px; background: rgba(255,255,255,.015); color: var(--text-3); font-size: 12px; }
.em-studio-page .em-output { position: relative; min-width: 0; min-height: 100px; overflow: hidden; border: 1px solid var(--border); border-radius: 14px; background: var(--card-bg); }
.em-studio-page .em-output>img,.em-studio-page .em-output>video { display: block; width: 100%; max-height: 550px; object-fit: contain; background: #121018; }
.em-studio-page .em-output .em-result-open { display: block; width: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.em-studio-page .em-output .em-result-open :is(img,video) { display: block; width: 100%; max-height: 550px; object-fit: contain; background: #121018; }
.em-studio-page .em-output .em-result-video-badge { position: absolute; top: 9px; left: 9px; display: grid; width: 29px; height: 29px; place-items: center; border-radius: 50%; background: #17121dcc; color: #fff; font-size: 11px; pointer-events: none; }
.em-studio-page .em-results.is-compact .em-output .em-result-open :is(img,video) { height: 220px; max-height: none; object-fit: cover; }
.em-studio-page .em-output .em-result-buttons { position: absolute; top: 8px; right: 8px; display: flex; gap: 5px; }
.em-studio-page .em-result-buttons a,.em-studio-page .em-result-buttons button { display: grid; min-width: 31px; min-height: 31px; place-items: center; padding: 7px; border: 0; border-radius: 7px; background: #17121dcc; color: #fff; cursor: pointer; text-decoration: none; line-height: 1; }
.em-studio-page .em-output-status { margin: 0; padding: 20px; color: var(--text-2); font-size: 12px; line-height: 1.7; }
.em-studio-page .em-retention-note { margin: 14px 0 0; color: var(--text-3)!important; font-size: 10px!important; line-height: 1.5; }
.em-studio-page .em-token-amount { display: inline-flex; align-items: center; gap: 5px; color: inherit; font: 700 12px/1.1 Manrope,sans-serif; white-space: nowrap; }
.em-studio-page .em-token-amount svg { width: 14px; height: 14px; fill: #111; stroke: none; }
.em-dialog { width: min(680px,calc(100vw - 26px)); max-height: 90dvh; overflow: auto; padding: 28px; border: 1px solid #58416b; border-radius: 20px; background: #1b1525; color: var(--text); box-shadow: 0 35px 100px #0009; }
.em-dialog::backdrop { background: #08050ccc; backdrop-filter: blur(9px); }
.em-dialog h2 { font: 700 26px Manrope,sans-serif; letter-spacing: -.03em; }
.em-dialog p { color: var(--text-2); font-size: 13px; line-height: 1.6; }
.em-dialog-close { float: right; border: 0; background: transparent; color: var(--text-2); font-size: 25px; cursor: pointer; }
.em-dialog textarea { width: 100%; min-height: 100px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: #282031; color: var(--text); font: 13px/1.6 'DM Sans',sans-serif; }
.em-idea-list { display: grid; gap: 12px; margin: 18px 0; }
.em-idea { display: grid; grid-template-columns: 80px minmax(0,1fr); gap: 16px; padding: 15px; border: 1px solid var(--border); border-radius: 14px; background: #1c1726; }
.em-idea :is(video,img) { width: 80px; height: 142px; border-radius: 9px; object-fit: cover; }
.em-idea h3 { margin: 0 0 9px; font-size: 16px; }
.em-idea p { margin: 5px 0; color: var(--text-2); font-size: 12px; line-height: 1.6; white-space: pre-wrap; }
.em-idea .em-action { min-height: 35px; margin-top: 10px; padding: 8px 13px; font-size: 11px; }
.em-resume { position: fixed; z-index: 40; right: 18px; bottom: 20px; padding: 14px; border: 1px solid #74528e; border-radius: 14px; background: #2b203c; color: #fff; text-decoration: none; font-size: 12px; box-shadow: 0 12px 40px #0005; }
.em-resume strong { display: block; margin-top: 4px; color: #c6b5dc; font-size: 11px; }
.em-hook-preview { position: fixed; z-index: 200; inset: 0; display: grid; width: 100vw; height: 100dvh; max-width: none; max-height: none; grid-template-columns: minmax(0,1fr) 290px; margin: 0; padding: 0; border: 0; background: #09080f; color: var(--text); }
.em-hook-preview[hidden],.em-hook-preview:not([open]) { display: none; }
.em-preview-media { position: relative; display: grid; min-width: 0; min-height: 0; place-items: center; }
.em-preview-media video { width: 100%; height: 100dvh; object-fit: contain; }
.em-preview-media .em-action { display: none; }
.em-preview-side { overflow: auto; padding: 72px 22px 24px; background: #14101b; }
.em-preview-side h2 { font: 700 25px Manrope,sans-serif; }
.em-preview-side p { color: var(--text-2); font-size: 13px; line-height: 1.6; }
.em-preview-side>a:not(.em-action) { display: flex; align-items: center; gap: 10px; margin: 15px 0; color: var(--text); text-decoration: none; font-size: 12px; }
.em-preview-side img { width: 50px; height: 80px; border-radius: 6px; object-fit: cover; }
.em-preview-close { position: absolute; z-index: 2; top: 15px; right: 16px; padding: 10px; border: 1px solid #ffffff26; border-radius: 10px; background: #15101bbd; color: #fff; cursor: pointer; }
body.em-menu-open { overflow: hidden; }
body .hk-catalog [data-open-ideas] { display:inline-flex; align-items:center; justify-content:center; gap:7px; min-height:40px; padding:0 16px; border:0; border-radius:11px; background:var(--em-action); color:#16111b!important; font:750 13px/1.3 Manrope,sans-serif; text-decoration:none; white-space:nowrap; cursor:pointer; }

body:has(.hk-page) .hk-page { color-scheme: dark; --hk-ink:#f2eff7; --hk-muted:#a39cab; --hk-violet:#b59bea; --hk-violet-deep:#d1b6fa; --hk-lilac:#282033; --hk-line:rgba(225,216,245,.12); --hk-paper:#17141e; --hk-coral:#efb9d8; }
body:has(.hk-page) .hk-detail { max-width: 1160px; color: var(--hk-ink); }
body:has(.hk-page) .hk-back { color: #c6b0eb; }
body:has(.hk-page) .hk-detail-head h1,.hk-page .hk-form-heading h2,.hk-page .hk-example-heading h2 { color: #f2eff7; }
body:has(.hk-page) .hk-lead,.hk-page .hk-form-heading p,.hk-page .hk-form-footnote,.hk-page .hk-preview-caption { color: #a39cab; }
body:has(.hk-page) .hk-workspace { display: grid; grid-template-columns: minmax(0,860px); grid-template-areas: "form"; justify-content: center; align-items: start; gap: 16px; }
body:has(.hk-page) .hk-form-card { grid-area: form; min-width: 0; padding: clamp(17px,2vw,24px); border: 1px solid rgba(225,216,245,.12); border-radius: 17px; background: linear-gradient(145deg,#191622,#14121a); box-shadow: 0 16px 46px rgba(0,0,0,.2); }
body:has(.hk-page) .hk-preview-pane { display: none; min-width: 0; grid-area: auto; }
body:has(.hk-page) .hk-workspace:is(.has-pending-generation,.has-accepted-generation) .hk-preview-pane { display: block; grid-column: 1; }
body:has(.hk-page) .hk-workspace:is(.has-pending-generation,.has-accepted-generation) { grid-template-columns: minmax(0,860px); grid-template-areas: "form"; }
body:has(.hk-page) .hk-example-card { border-color: var(--hk-line); background: #191622; box-shadow: none; }
body:has(.hk-page) .hk-upload-zone { min-height: 142px; border-color: rgba(201,188,227,.26); background: #17141e; }
body:has(.hk-page) .hk-upload-zone:hover,body:has(.hk-page) .hk-upload-zone.is-dragging { border-color: #b59bea; background: #1d1928; }
body:has(.hk-page) .hk-upload-icon { background: #292236; color: #c8b1e2; }
body:has(.hk-page) .hk-upload-empty strong,body:has(.hk-page) .hk-extra-photo>label,body:has(.hk-page) .hk-control-top label,body:has(.hk-page) .hk-quality-block legend,body:has(.hk-page) .hk-gender-block legend { color: #eae6f3; }
body:has(.hk-page) .hk-upload-empty > span:last-child,body:has(.hk-page) .hk-upload-drag-copy { color: #a39cab; }
body:has(.hk-page) .hk-upload-preview video,body:has(.hk-page) .hk-upload-preview img { background: #100e16; }
body:has(.hk-page) .hk-upload-fileline { border-color: rgba(255,255,255,.12); background: rgba(21,18,29,.88); }
body:has(.hk-page) .hk-extra-photo summary { color: #d1b6fa; }
body:has(.hk-page) .hk-extra-photo>label { color: #eae6f3; }
body:has(.hk-page) .hk-extra-photo>label span { color: #a39cab; }
body:has(.hk-page) .hk-extra-pick,body:has(.hk-page) .hk-extra-remove { border-color: var(--hk-line); background: #211d2a; color: #d1b6fa; }
body:has(.hk-page) .hk-extra-remove { color: #a39cab; }
body:has(.hk-page) .hk-control-block,body:has(.hk-page) .hk-quality-block,body:has(.hk-page) .hk-gender-block { border-color: var(--hk-line); }
body:has(.hk-page) .hk-headline-block input,body:has(.hk-page) .hk-appearance-panel textarea,body:has(.hk-page) .hk-cms-field select,body:has(.hk-page) .hk-cms-field>input:not([type=checkbox]):not([type=radio]),body:has(.hk-page) .hk-trim-fields input { border-color: rgba(225,216,245,.15); background: #211d2a; color: #f2eff7; }
body:has(.hk-page) .hk-duration-help { border-color: #665b71; background: #211d2a; color: #d2c9dc; }
body:has(.hk-page) .hk-duration-help-popover { border-color: var(--hk-line); background: #211d2a; color: #eae6f3; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
body:has(.hk-page) #hk-duration::-webkit-slider-runnable-track { background: linear-gradient(to right,#b59bea 0%,#b59bea var(--hk-range,11%),#393344 var(--hk-range,11%),#393344 100%); }
body:has(.hk-page) #hk-duration::-moz-range-track { background: #393344; }
body:has(.hk-page) #hk-duration::-moz-range-progress { background: #b59bea; }
body:has(.hk-page) #hk-duration::-webkit-slider-thumb,body:has(.hk-page) #hk-duration::-moz-range-thumb { background: #b59bea; }
body:has(.hk-page) .hk-range-labels { color: #8e8799; }
body:has(.hk-page) .hk-control-top output { color: #d1b6fa; }
body:has(.hk-page) .hk-timeline,body:has(.hk-page) .hk-appearance-panel { border-color: var(--hk-line); background: #17141e; }
body:has(.hk-page) .hk-timeline-track { background: #24212d; }
body:has(.hk-page) .hk-timeline-segment { color: #d8caff; }
body:has(.hk-page) .hk-timeline-generated-segment { border-color: rgba(181,155,234,.35); background: #30273d; color: #e0d4f0; }
body:has(.hk-page) .hk-timeline-original-segment { background: #282532; }
body:has(.hk-page) .hk-timeline-segment-label { background: rgba(20,18,27,.85); }
body:has(.hk-page) .hk-timeline-ticks,body:has(.hk-page) .hk-timeline-source-caption { color: #888191; }
body:has(.hk-page) .hk-timeline-range-caption { color: #d1b6fa; }
body:has(.hk-page) .hk-quality-option,body:has(.hk-page) .hk-gender-options span { border-color: var(--hk-line); background: #1d1a25; color: #c4bdcf; }
body:has(.hk-page) .hk-quality-label { color: #f2eff7; }
body:has(.hk-page) .hk-quality-rate { color: #a39cab; }
body:has(.hk-page) .hk-quality-option.is-selected,body:has(.hk-page) .hk-gender-options input:checked+span { border-color: rgba(194,174,255,.5); background: rgba(150,123,222,.14); color: #e9ddff; }
body:has(.hk-page) .hk-source-duration-toggle { color: #d8d2e0; }
body:has(.hk-page) .hk-source-duration-toggle input { accent-color: #b59bea; }
body:has(.hk-page) .hk-price-strip { border-color: rgba(225,216,245,.13); background: rgba(255,255,255,.035); }
body:has(.hk-page) .hk-price-strip small,body:has(.hk-page) .hk-balance { color: #a39cab; }
body:has(.hk-page) .hk-price-strip strong { color: #e7d7ff; }
body:has(.hk-page) .hk-balance b { color: #f2eff7; }
body:has(.hk-page) .hk-submit { background: var(--em-action); color: #111!important; }
body:has(.hk-page) .hk-submit :is(span,small) { color: #111!important; }
body:has(.hk-page) .hk-submit-cost { background: rgba(0,0,0,.08); }
body:has(.hk-page) .hk-form-message { color: #ffb3c9; }
body:has(.hk-page) .hk-draft-status { color: #c6b0eb; }
body:has(.hk-page) .hk-example-media { background: #121018; }
body:has(.hk-page) .hk-example-media video,body:has(.hk-page) .hk-example-media img { background: #121018; }
body:has(.hk-page) .hk-purchase-backdrop { background: rgba(5,4,9,.78); backdrop-filter: blur(10px); }
body:has(.hk-page) .hk-purchase-dialog { border-color: rgba(225,216,245,.16); background: linear-gradient(145deg,#201b2b,#15121c); color: #f2eff7; box-shadow: 0 30px 90px rgba(0,0,0,.45); }
body:has(.hk-page) .hk-purchase-dialog :is(h2,strong) { color: #f2eff7; }
body:has(.hk-page) .hk-purchase-dialog :is(p,small,.hk-purchase-footer) { color: #a39cab; }
body:has(.hk-page) .hk-purchase-close { border-color: var(--hk-line); background: #292335; color: #d5ccdf; }
body:has(.hk-page) .hk-purchase-eyebrow { color: #cbb6eb; }
body:has(.hk-page) .hk-purchase-special-price { border-color: rgba(225,216,245,.14); background: rgba(239,185,216,.12); color: #eec7df; }
body:has(.hk-page) .hk-purchase-context { border-color: var(--hk-line); background: #1d1a25; color: #c9c1d1; }
body:has(.hk-page) .hk-purchase-confirmation { border-color: rgba(155,206,179,.2); background: rgba(155,206,179,.08); color: #c5e3d0; }
body:has(.hk-page) .hk-purchase-error { color: #f0a8ae; }
body:has(.hk-page) .hk-purchase-loading span { background: linear-gradient(90deg,#211d29,#2a2535,#211d29); }
body:has(.hk-page) .hk-purchase-pack { border-color: var(--hk-line); background: #211d2a; color: #f2eff7; }
body:has(.hk-page) .hk-purchase-pack-title { color: #f2eff7; }
body:has(.hk-page) .hk-purchase-pack-meta { color: #a39cab; }
body:has(.hk-page) .hk-purchase-buy { border: 0; background: var(--em-action); color: #111; }
body:has(.hk-page) .hk-purchase-buy:hover { background: linear-gradient(112deg,#fff5fd 0%,#ffc4f3 52%,#f78ce9 100%); color: #111; }
body:has(.hk-page) .hk-purchase-price,body:has(.hk-page) .hk-purchase-normal { color: #111; }
body:has(.hk-page) .hk-purchase-old-price { color: rgba(17,17,17,.65); }
body:has(.hk-page) .hk-purchase-discount,body:has(.hk-page) .hk-purchase-clock { border-color: rgba(225,216,245,.13); background: rgba(239,185,216,.12); color: #eec7df; }

@media (min-width:768px) {
  body:has(.hk-page) .hk-catalog-grid { display: block; columns: 4; column-gap: 15px; clear: both; }
  body:has(.hk-page) .hk-catalog-card { position: relative; break-inside: avoid; aspect-ratio: 9/16; margin: 0 0 15px; overflow: hidden; border: 0; border-radius: 15px; background: transparent; }
  body:has(.hk-page) .hk-catalog-card:nth-child(3n+2) { aspect-ratio: 9/14; }
  body:has(.hk-page) .hk-catalog-card:nth-child(7n) { aspect-ratio: 9/13; }
  body:has(.hk-page) .hk-catalog-card .hk-catalog-media { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
  body:has(.hk-page) .hk-catalog-media :is(video,img) { width: 100%; height: 100%; object-fit: cover; }
  body:has(.hk-page) .hk-catalog-card-copy { position: absolute; inset: auto 0 0; padding: 40px 14px 14px; background: linear-gradient(transparent,#08060ce0); color: #fff; pointer-events: none; }
  body:has(.hk-page) .hk-catalog-card-copy h2 { color: #fff; font-size: 14px; }
  body:has(.hk-page) .hk-catalog-card-copy p { color: #d0c7db; font-size: 11px; }
  body:has(.hk-page) .hk-catalog-card-foot { color: #e0c9f5; }
  body:has(.hk-page) .hk-catalog-card-copy p,body:has(.hk-page) .hk-catalog-card-foot { max-height: 0; overflow: hidden; opacity: 0; transition: opacity .2s ease; }
  body:has(.hk-page) .hk-catalog-card:hover :is(p,.hk-catalog-card-foot),body:has(.hk-page) .hk-catalog-card:focus-within :is(p,.hk-catalog-card-foot) { max-height: 90px; opacity: 1; }
}
body:has(.hk-page) .hk-preview-toggle,body:has(.hk-page) .hk-example-card { display: none; }
body:has(.hk-page) .hk-catalog-search,body:has(.hk-page) .hk-catalog-tools select { border-color: #44334f; background: #211a2c; color: #f4f1fb; }
body:has(.hk-page) .hk-empty { border-color: var(--hk-line); background: rgba(255,255,255,.025); color: #f2eff7; }
body:has(.hk-page) .hk-empty p { color: #a39cab; }
body:has(.hk-page) .hk-catalog-cta { background: #c09edf; color: #17131f; }

@media (max-width:1100px) {
  .em-navigation { width: 210px; }
  body:has(.em-navigation) .s-wrap { margin-left: 210px; }
  body:has(.em-navigation) .s-body { padding-right: 30px; padding-left: 30px; }
  body:has(.hk-page) .hk-catalog-grid { columns: 3; }
}
@media (max-width:767px) {
  body:has(.em-navigation) .s-wrap { margin-left: 0; }
  body:has(.em-navigation) .s-header { min-height: 64px; padding: 13px 16px 13px 65px; }
  body:has(.em-navigation) .s-body { padding: 24px 16px; }
  body:has(.em-navigation) .s-header-name { display: none; }
  .em-menu-toggle { position: fixed; z-index: 55; top: 16px; left: 16px; display: block; padding: 8px 12px; border: 1px solid var(--border); border-radius: 9px; background: #1e1728; color: white; cursor: pointer; }
  .em-navigation { z-index: 100; width: min(300px,84vw); gap: 32px; transform: translateX(-105%); transition: transform .25s ease; background: rgba(15,13,22,.98); }
  .em-menu-open .em-navigation { transform: translateX(0); }
  .em-menu-close { position: absolute; top: 22px; right: 12px; display: block; border: 0; background: transparent; color: white; font-size: 24px; cursor: pointer; }
  .em-menu-scrim:not([hidden]) { position: fixed; z-index: 90; inset: 0; display: block; background: #0009; backdrop-filter: blur(5px); }
  .em-studio-page .em-composer-main { grid-template-columns: 1fr; gap: 9px; }
  .em-studio-page .em-reference-panel { padding: 9px; }
  .em-studio-page .em-reference-grid,.em-studio-page .em-refs { grid-template-columns: repeat(5,minmax(0,1fr)); gap: 6px; }
  .em-studio-page .em-ref,.em-studio-page .em-reference,.em-studio-page .em-add-ref,.em-studio-page .em-add-reference { max-width: 58px; }
  .em-studio-page .em-prompt-panel { min-height: 210px; padding: 11px 12px 8px; }
  .em-studio-page .em-prompt-panel textarea { min-height: 135px; font-size: 16px; line-height: 1.5; }
  .em-studio-page .em-settings-row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .em-studio-page .em-setting-control { min-width: 0; }
  .em-studio-page .em-setting-control select { min-height: 44px; font-size: 16px; }
  .em-studio-page .em-settings-row .em-submit { grid-column: 1/-1; width: 100%; min-height: 43px; margin: 1px 0 0; font-size: 13px; }
  .em-studio-page .em-results { grid-template-columns: 1fr; gap: 10px; }
  .em-studio-page .em-results.is-compact { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .em-studio-page .em-results.is-compact .em-output>img,
  .em-studio-page .em-results.is-compact .em-output>video { height: 170px; }
  .em-studio-page .em-results.is-compact .em-output .em-result-open :is(img,video) { height: 170px; }
  .em-studio-page .em-results-head { align-items: center; }
  .em-studio-page .em-results-density button { min-height: 30px; padding: 0 8px; font-size: 10px; }
  .em-resume { right: 12px; bottom: 12px; left: 12px; }
  .em-hook-preview { grid-template-columns: 1fr; }
  .em-preview-side { display: none; }
  .em-preview-media .em-action { position: absolute; right: 16px; bottom: calc(20px + env(safe-area-inset-bottom,0px)); left: 16px; display: flex; }
  body:has(.hk-page) .hk-detail { width: 100%; }
  body:has(.hk-page) .hk-workspace,body:has(.hk-page) .hk-workspace:is(.has-pending-generation,.has-accepted-generation) { grid-template-columns: minmax(0,1fr); }
  body:has(.hk-page) .hk-form-card { padding: 16px; }
  body:has(.hk-page) .hk-quality-options { gap: 7px; }
  body:has(.hk-page) .hk-quality-option { padding: 9px; }
  body:has(.hk-page) .hk-gender-options { gap: 7px; }
  body:has(.hk-page) .hk-purchase-dialog { max-height: 92dvh; overflow: auto; }
}
@media (max-width:420px) {
  .em-studio-page .em-settings-row { grid-template-columns: 1fr 1fr; }
  .em-studio-page .em-image-model-note { grid-column: 1/-1; justify-self: start; margin-left: 0; }
}
@media (prefers-reduced-motion:reduce) {
  .em-navigation *,body:has(.hk-page) * { scroll-behavior: auto!important; transition-duration: .01ms!important; animation-duration: .01ms!important; }
}

/* Approved Easy Motion balance screen */
.em-balance-page {
  width: min(990px,100%);
  margin: 0 auto;
  padding: 0 0 44px;
  color: #f2eff7;
  font-family: 'DM Sans',sans-serif;
}
.em-balance-page * { box-sizing: border-box; }
.em-balance-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 20px;
}
.em-balance-head .em-kicker,
.em-balance-section-title .em-kicker {
  display: block;
  margin: 0 0 8px;
  color: #c6b0e5;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .16em;
}
.em-balance-head h1 {
  margin: 0;
  color: #f2eff7;
  font: 700 clamp(29px,3vw,39px)/1.05 Manrope,sans-serif;
  letter-spacing: -.05em;
}
.em-balance-page .limited-offer-banner { margin-bottom: 15px; }
.em-balance-total {
  position: relative;
  overflow: hidden;
  padding: 20px 22px 17px;
  border: 1px solid rgba(230,220,248,.13);
  border-radius: 16px;
  background: radial-gradient(ellipse at 83% 8%,rgba(118,89,155,.15),transparent 43%),linear-gradient(140deg,#1e1a28,#15131c);
}
.em-balance-total::after {
  position: absolute;
  top: -75px;
  right: 16%;
  width: 230px;
  height: 170px;
  border: 1px solid rgba(214,195,238,.055);
  border-radius: 50%;
  content: "";
  pointer-events: none;
  transform: rotate(-18deg);
}
.em-balance-total-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #9c92aa;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .15em;
}
.em-balance-token-mark {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1px solid rgba(198,173,226,.15);
  border-radius: 8px;
  background: rgba(174,148,204,.08);
}
.em-balance-token-mark i {
  display: block;
  width: 11px;
  height: 12px;
  background: #d9c1ed;
  clip-path: polygon(22% 0,78% 0,100% 30%,50% 100%,0 30%);
}
.em-balance-total-value {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 7px;
}
.em-balance-total-value strong {
  color: #f4effb;
  font: 700 46px/1 Manrope,sans-serif;
  letter-spacing: -.06em;
  font-variant-numeric: tabular-nums;
}
.em-balance-total-value span { color: #beb5c8; font-size: 12px; }
.em-balance-uses {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto minmax(0,1.2fr) auto minmax(0,1.2fr);
  align-items: center;
  gap: 9px;
  margin-top: 16px;
}
.em-balance-uses > div {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(230,220,248,.08);
  border-radius: 10px;
  background: rgba(255,255,255,.018);
}
.em-balance-uses svg { width: 17px; height: 17px; flex: none; color: #c5addd; }
.em-balance-uses strong,.em-balance-uses small { display: block; }
.em-balance-uses strong { color: #f1ecf7; font: 600 17px/1.1 Manrope,sans-serif; font-variant-numeric: tabular-nums; }
.em-balance-uses small { margin-top: 3px; color: #9a92a1; font-size: 8px; line-height: 1.3; }
.em-balance-or { color: #726c79; font-size: 8px; font-weight: 600; text-transform: uppercase; }
.em-balance-expiry {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 12px 2px 0;
  color: #a9a0b2;
  font-size: 10px;
  line-height: 1.45;
}
.em-balance-expiry svg { width: 13px; height: 13px; flex: none; color: #bba4d5; }
.em-balance-expiry .is-urgent { color: #e8a4ad; }
.em-subscription-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 11px;
  padding: 12px 15px;
  border: 1px solid rgba(230,220,248,.1);
  border-radius: 12px;
  background: linear-gradient(110deg,rgba(37,31,48,.86),rgba(24,21,31,.88));
}
.em-subscription-icon {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
  border: 1px solid rgba(195,169,222,.16);
  border-radius: 9px;
  background: rgba(174,148,204,.08);
  color: #c7b0e1;
}
.em-subscription-icon svg { width: 17px; height: 17px; }
.em-subscription-copy { display: grid; min-width: 0; gap: 3px; }
.em-subscription-copy strong { color: #ece6f1; font-size: 11px; font-weight: 650; }
.em-subscription-copy span { color: #918a99; font-size: 9px; line-height: 1.4; }
.em-subscription-copy b { color: #c4d7c9; font-weight: 600; }
.em-subscription-cancel {
  flex: 0 0 auto;
  margin-left: auto;
  padding: 7px 10px;
  border: 1px solid rgba(225,216,245,.13);
  border-radius: 8px;
  color: #a9a1b0;
  font-size: 9px;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color .18s ease,color .18s ease;
}
.em-subscription-cancel:hover { border-color: rgba(239,185,216,.35); color: #efc8de; }
.em-balance-package-section { margin-top: 29px; }
.em-balance-section-head {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 13px;
}
.em-balance-section-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border: 1px solid rgba(198,173,226,.13);
  border-radius: 10px;
  background: rgba(174,148,204,.08);
  color: #c6addd;
}
.em-balance-section-icon svg { width: 17px; height: 17px; }
.em-balance-section-title { min-width: 0; }
.em-balance-section-title .em-kicker { margin-bottom: 3px; font-size: 7px; }
.em-balance-section-title h2 {
  margin: 0;
  color: #f2eff7;
  font: 600 15px/1.15 Manrope,sans-serif;
  letter-spacing: -.02em;
}
.em-balance-studio-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  color: #cbb8df;
  font-size: 10px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.em-balance-studio-link svg { width: 13px; height: 13px; }
.em-balance-page .cc-info {
  position: relative;
  display: inline-flex;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #92899d;
  cursor: help;
  outline: none;
}
.em-balance-page .cc-info:hover,.em-balance-page .cc-info:focus { color: #d2b9ed; }
.em-balance-page .cc-info-pop {
  position: absolute;
  z-index: 1000;
  top: calc(100% + 8px);
  right: 0;
  width: min(340px,86vw);
  padding: 12px 14px;
  border: 1px solid rgba(225,216,245,.14);
  border-radius: 12px;
  background: #1a1722;
  color: rgba(255,255,255,.82);
  box-shadow: 0 10px 32px rgba(0,0,0,.55);
  font-size: 11px;
  line-height: 1.55;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-3px);
  transition: opacity .18s ease,visibility .18s ease,transform .18s ease;
}
.em-balance-page .cc-info-pop b { display: block; margin-bottom: 6px; color: #eee7f5; font-size: 11px; }
.em-balance-page .cc-info:hover .cc-info-pop,.em-balance-page .cc-info:focus .cc-info-pop { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.em-balance-page .balance-package-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 12px;
  margin: 0;
}
.em-balance-page .balance-package-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  justify-content: flex-start;
  gap: 12px;
  padding: 16px 15px 13px;
  overflow: hidden;
  border: 1px solid rgba(225,216,245,.11);
  border-radius: 14px;
  background: linear-gradient(145deg,rgba(30,27,41,.96),rgba(20,18,27,.98));
  color: #f2eff7;
  box-shadow: none;
  text-align: left;
  text-decoration: none;
  transition: transform .18s ease,border-color .18s ease,background .18s ease;
}
.em-balance-page .balance-package-card:not(.balance-package-discounted) { min-height: 0; padding-bottom: 13px; }
.em-balance-page .balance-package-card:hover { transform: translateY(-2px); border-color: rgba(199,174,226,.31); box-shadow: 0 10px 26px rgba(0,0,0,.18); }
.em-balance-page .balance-package-card.popular { border-color: rgba(192,164,223,.35); background: linear-gradient(145deg,rgba(39,32,50,.97),rgba(22,19,30,.98)); }
.em-balance-page .balance-package-card.selected { border-color: #c7aee4; background: #251e30; box-shadow: 0 0 0 2px rgba(199,174,226,.12); }
.em-balance-page .balance-package-card.balance-package-discounted { padding-top: 40px; }
.em-balance-page .balance-package-card .pkg-popular-tag:not(.balance-discount-tag) {
  top: 0;
  right: 0;
  padding: 5px 9px;
  border-radius: 0 13px 0 10px;
  background: rgba(191,163,222,.16);
  color: #e1c9f1;
  font-size: 8px;
}
.em-balance-page .balance-package-card .balance-discount-tag {
  top: 10px;
  right: auto;
  left: 11px;
  z-index: 2;
  min-width: 0;
  padding: 4px 8px;
  border: 1px solid rgba(239,185,216,.18);
  border-radius: 999px;
  background: rgba(151,89,125,.45);
  color: #f4d6e7;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.2;
  text-align: center;
  box-shadow: none;
}
.em-balance-page .balance-package-content {
  display: flex;
  width: 100%;
  min-width: 0;
  height: auto;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.em-balance-page .balance-package-quantity { display: flex; min-width: 0; flex-direction: row; align-items: center; gap: 9px; }
.em-balance-page .balance-package-card .pkg-tokens {
  margin: 0;
  color: #f4f0f9;
  font: 700 clamp(25px,3vw,31px)/1 Manrope,sans-serif;
  letter-spacing: -.065em;
  font-variant-numeric: tabular-nums;
}
.em-balance-page .balance-package-meta { display: flex; min-width: 0; flex-direction: column; align-items: flex-start; }
.em-balance-page .balance-package-card .pkg-tokens-label { margin: 0 0 4px; color: #aaa1b2; font-size: 8px; font-weight: 650; letter-spacing: .08em; }
.em-balance-page .balance-package-card .balance-package-duration {
  display: inline-flex;
  min-height: 20px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(170,145,205,.12);
  color: #d0bce3;
  font-size: 8px;
  font-weight: 650;
  line-height: 1.2;
  white-space: nowrap;
}
.em-balance-page .balance-package-pricing { display: flex; min-width: 0; flex-wrap: wrap; align-items: baseline; justify-content: flex-end; gap: 3px 7px; margin: 0; }
.em-balance-page .balance-package-pricing .pkg-price-old,.em-balance-page .balance-package-pricing .limited-offer-old-price {
  display: inline-block;
  margin: 0;
  color: #857d8e;
  font-size: 9px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: line-through;
  white-space: nowrap;
}
.em-balance-page .balance-package-pricing .pkg-price {
  margin: 0;
  color: #f3edf7;
  font: 700 clamp(18px,2.3vw,22px)/1.1 Manrope,sans-serif;
  letter-spacing: -.04em;
  white-space: nowrap;
}
.em-balance-page .balance-price-usd { color: #a39baa; font: 500 9px 'DM Sans',sans-serif; letter-spacing: 0; }
.em-balance-page .balance-package-unit-price { flex-basis: 100%; color: #908798; font-size: 8px; font-weight: 600; text-align: right; white-space: nowrap; }
.em-balance-page .balance-package-wide {
  grid-column: 1/-1;
  min-height: 0;
  padding: 16px 15px 13px;
  text-align: left;
}
.em-balance-page .balance-package-wide:not(.balance-package-discounted) { min-height: 0; padding-bottom: 13px; }
.em-balance-page .balance-package-wide .balance-package-content { flex-direction: row; justify-content: space-between; gap: 10px; }
.em-balance-page .balance-package-wide .balance-package-quantity { flex-direction: row; align-items: center; gap: 9px; padding-left: 0; }
.em-balance-page .balance-package-wide .pkg-tokens { font-size: 31px; }
.em-balance-page .balance-package-wide .balance-package-meta { align-items: flex-start; }
.em-balance-page .balance-package-wide .pkg-tokens-label { margin: 0 0 4px; }
.em-balance-page .balance-package-wide .balance-package-pricing { flex: 0 1 auto; justify-content: flex-end; margin: 0; }
.em-balance-page .balance-package-wide .pkg-price { font-size: 22px; }
.em-balance-page .em-capacities {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 6px;
  width: 100%;
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid rgba(225,216,245,.08);
  text-align: left;
}
.em-balance-page .em-capacities span {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
  padding: 7px 8px;
  border: 1px solid rgba(225,216,245,.07);
  border-radius: 8px;
  background: rgba(255,255,255,.018);
  color: #8f8798;
  font-size: 8px;
  line-height: 1.3;
}
.em-balance-page .em-capacities strong { display: block; color: #e6d9ef; font: 650 14px/1 Manrope,sans-serif; font-variant-numeric: tabular-nums; }
.em-balance-page .em-transaction-section { margin-top: 29px; }
.em-balance-page .em-transaction-section h2 { margin: 0 0 11px; color: #eee8f4; font: 600 15px Manrope,sans-serif; }
.em-transaction-list { padding: 1px 14px; border: 1px solid rgba(225,216,245,.1); border-radius: 13px; background: rgba(255,255,255,.018); }
.em-balance-page .tx-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 2px; border-bottom: 1px solid rgba(225,216,245,.08); }
.em-balance-page .tx-item:last-child { border-bottom: 0; }
.em-balance-page .tx-desc { margin: 0; color: #ded7e5; font-size: 11px; font-weight: 550; }
.em-balance-page .tx-date { margin: 4px 0 0; color: #888191; font-size: 9px; }
.em-balance-page .tx-amount { font: 650 13px Manrope,sans-serif; font-variant-numeric: tabular-nums; white-space: nowrap; }
.em-balance-page .tx-amount.pos { color: #b9d5c4; }
.em-balance-page .tx-amount.neg { color: #d8a3ae; }
@media (max-width: 850px) {
  .em-balance-page .em-balance-uses { grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); }
  .em-balance-page .em-balance-uses > div:last-child { grid-column: 1/-1; }
  .em-balance-page .em-balance-uses > .em-balance-or:nth-of-type(2) { display: none; }
}
@media (max-width: 600px) {
  .em-balance-page { padding-bottom: 32px; }
  .em-balance-head { align-items: flex-start; margin-bottom: 16px; }
  .em-balance-page .em-balance-total { padding: 16px 14px 13px; border-radius: 14px; }
  .em-balance-page .em-balance-total-value strong { font-size: 40px; }
  .em-balance-page .em-balance-uses { grid-template-columns: 1fr; gap: 6px; margin-top: 12px; }
  .em-balance-page .em-balance-uses > div,.em-balance-page .em-balance-uses > div:last-child { grid-column: auto; align-items: center; gap: 8px; padding: 8px 9px; }
  .em-balance-page .em-balance-uses svg { width: 15px; height: 15px; }
  .em-balance-page .em-balance-uses strong { font-size: 14px; }
  .em-balance-page .em-balance-uses small { font-size: 8px; }
  .em-balance-page .em-balance-or { justify-self: center; }
  .em-subscription-row { gap: 8px; padding: 10px; }
  .em-subscription-icon { width: 29px; height: 29px; flex-basis: 29px; }
  .em-subscription-copy strong { font-size: 10px; }
  .em-subscription-copy span { font-size: 8px; }
  .em-subscription-cancel { padding: 6px 7px; font-size: 8px; }
  .em-balance-package-section,.em-transaction-section { margin-top: 24px; }
  .em-balance-section-head { gap: 9px; margin-bottom: 10px; }
  .em-balance-section-icon { width: 30px; height: 30px; flex-basis: 30px; }
  .em-balance-section-title .em-kicker { font-size: 6px; }
  .em-balance-section-title h2 { font-size: 14px; }
  .em-balance-studio-link { gap: 4px; font-size: 9px; }
  .em-balance-page .balance-package-grid { gap: 8px; }
  .em-balance-page .balance-package-card,.em-balance-page .balance-package-card:not(.balance-package-discounted) { gap: 9px; padding: 13px 10px 10px; border-radius: 12px; }
  .em-balance-page .balance-package-card.balance-package-discounted { padding-top: 36px; }
  .em-balance-page .balance-package-card .pkg-tokens { font-size: clamp(22px,6.2vw,28px); }
  .em-balance-page .balance-package-quantity { gap: 6px; }
  .em-balance-page .balance-package-card .pkg-tokens-label { font-size: 7px; }
  .em-balance-page .balance-package-card .balance-package-duration { min-height: 18px; padding: 2px 6px; font-size: 7px; }
  .em-balance-page .balance-package-pricing { gap: 2px 5px; }
  .em-balance-page .balance-package-pricing .pkg-price-old,.em-balance-page .balance-package-pricing .limited-offer-old-price { font-size: 8px; }
  .em-balance-page .balance-package-pricing .pkg-price { font-size: clamp(15px,4.6vw,19px); }
  .em-balance-page .balance-price-usd { font-size: 7px; }
  .em-balance-page .balance-package-wide,.em-balance-page .balance-package-wide:not(.balance-package-discounted) { padding: 13px 10px 10px; }
  .em-balance-page .balance-package-wide.balance-package-discounted { padding-top: 36px; }
  .em-balance-page .balance-package-wide .pkg-tokens { font-size: clamp(24px,6.5vw,30px); }
  .em-balance-page .balance-package-wide .pkg-price { font-size: clamp(16px,4.8vw,20px); }
  .em-balance-page .em-capacities { grid-template-columns: 1fr; gap: 4px; padding-top: 8px; }
  .em-balance-page .em-capacities span { flex-direction: row; align-items: center; justify-content: space-between; gap: 8px; padding: 5px 7px; font-size: 7px; }
  .em-balance-page .em-capacities strong { font-size: 11px; }
}
@media (max-width: 390px) {
  .em-balance-page .balance-package-content { align-items: flex-start; flex-direction: column; }
  .em-balance-page .balance-package-pricing { width: 100%; justify-content: flex-start; }
  .em-balance-page .balance-package-wide .balance-package-content { align-items: center; flex-direction: row; }
  .em-balance-page .balance-package-wide .balance-package-pricing { width: auto; justify-content: flex-end; }
}
@media (prefers-reduced-motion: reduce) {
  .em-balance-page *, .em-balance-page *::before, .em-balance-page *::after { transition-duration: .01ms!important; animation-duration: .01ms!important; }
}

/* Hook catalog cards: keep the real footage full-bleed and all copy on-frame. */
body:has(.hk-catalog.hk-page) .hk-catalog-grid .hk-catalog-card {
  position: relative!important;
  display: block!important;
  min-width: 0;
  min-height: 0!important;
  align-self: start;
  aspect-ratio: 9 / 16!important;
  margin: 0 0 14px!important;
  overflow: hidden!important;
  border: 1px solid rgba(225,220,255,.1)!important;
  border-radius: 15px!important;
  background: #15121c!important;
  box-shadow: 0 12px 32px rgba(0,0,0,.2)!important;
  isolation: isolate;
  transition: transform .2s ease,opacity .2s ease!important;
}
body:has(.hk-catalog.hk-page) .hk-catalog-grid .hk-catalog-card:nth-child(6n+2) { aspect-ratio: 9 / 14!important; }
body:has(.hk-catalog.hk-page) .hk-catalog-grid .hk-catalog-card:nth-child(7n) { aspect-ratio: 9 / 13!important; }
body:has(.hk-catalog.hk-page) .hk-catalog-card .hk-card-navigation { z-index: 1; }
body:has(.hk-catalog.hk-page) .hk-catalog-card .hk-catalog-media {
  position: absolute!important;
  inset: 0!important;
  display: block!important;
  width: auto!important;
  height: auto!important;
  min-height: 0!important;
  aspect-ratio: auto!important;
  overflow: hidden!important;
  background: #100e16!important;
}
body:has(.hk-catalog.hk-page) .hk-catalog-card .hk-catalog-media :is(video,img) {
  display: block!important;
  width: 100%!important;
  height: 100%!important;
  max-height: none!important;
  object-fit: cover!important;
  object-position: center!important;
  background: #100e16!important;
  transition: transform .3s ease,opacity .3s ease;
}
body:has(.hk-catalog.hk-page) .hk-catalog-card:hover .hk-catalog-media :is(video,img),
body:has(.hk-catalog.hk-page) .hk-catalog-card:focus-within .hk-catalog-media :is(video,img) { transform: scale(1.025); }
body:has(.hk-catalog.hk-page) .hk-catalog-card .hk-catalog-card-copy {
  position: absolute!important;
  z-index: 2;
  inset: auto 0 0!important;
  display: flex!important;
  min-width: 0;
  flex-direction: column!important;
  padding: 44px 13px 12px!important;
  background: linear-gradient(180deg,transparent 0%,rgba(9,7,14,.32) 21%,rgba(9,7,14,.9) 100%)!important;
  color: #f5f0fa!important;
  pointer-events: none;
}
body:has(.hk-catalog.hk-page) .hk-catalog-card .hk-catalog-title-row { display: block; min-width: 0; }
body:has(.hk-catalog.hk-page) .hk-catalog-card .hk-catalog-title-row h2 {
  overflow: hidden;
  margin: 0;
  color: #fff!important;
  font: 700 14px/1.2 Manrope,sans-serif!important;
  letter-spacing: -.025em;
  text-overflow: ellipsis;
  transform: translateY(10px);
  transition: transform .24s ease;
}
body:has(.hk-catalog.hk-page) .hk-catalog-card .hk-catalog-card-copy > p {
  display: -webkit-box;
  min-height: 0!important;
  max-height: 0;
  margin: 5px 0 0!important;
  overflow: hidden;
  color: rgba(244,238,250,.77)!important;
  font-size: 10px!important;
  line-height: 1.4!important;
  opacity: 0;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  transition: opacity .2s ease;
}
body:has(.hk-catalog.hk-page) .hk-catalog-card .hk-catalog-card-foot {
  display: flex!important;
  max-height: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 0;
  padding-top: 0;
  overflow: hidden;
  border: 0!important;
  color: #e5d3f4!important;
  opacity: 0;
  transition: opacity .2s ease;
}
body:has(.hk-catalog.hk-page) .hk-catalog-card .hk-catalog-price {
  color: #eee0fa!important;
  font-size: 10px!important;
  font-weight: 700!important;
  line-height: 1.2;
}
body:has(.hk-catalog.hk-page) .hk-catalog-card .hk-catalog-price small { color: #c4b6d0!important; font-size: 8px!important; }
body:has(.hk-catalog.hk-page) .hk-catalog-card .hk-card-open-hint {
  display: inline-flex;
  width: 23px;
  height: 23px;
  flex: 0 0 23px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(233,220,248,.22);
  border-radius: 50%;
  color: #f0d9ff!important;
  font-size: 16px!important;
  line-height: 1;
  transition: transform .2s ease,opacity .2s ease;
}
body:has(.hk-catalog.hk-page) .hk-catalog-card:hover .hk-catalog-title-row h2,
body:has(.hk-catalog.hk-page) .hk-catalog-card:focus-within .hk-catalog-title-row h2 { transform: translateY(0); }
body:has(.hk-catalog.hk-page) .hk-catalog-card:hover .hk-catalog-card-copy > p,
body:has(.hk-catalog.hk-page) .hk-catalog-card:focus-within .hk-catalog-card-copy > p { max-height: 34px; opacity: 1; }
body:has(.hk-catalog.hk-page) .hk-catalog-card:hover .hk-catalog-card-foot,
body:has(.hk-catalog.hk-page) .hk-catalog-card:focus-within .hk-catalog-card-foot { max-height: 30px; margin-top: 8px; padding-top: 8px; opacity: 1; }
body:has(.hk-catalog.hk-page) .hk-catalog-card:hover .hk-card-open-hint,
body:has(.hk-catalog.hk-page) .hk-catalog-card:focus-within .hk-card-open-hint { transform: translateX(2px); background: rgba(218,195,239,.1); }
body:has(.hk-catalog.hk-page) .hk-catalog-card .hk-preview-toggle {
  z-index: 3;
  width: 34px;
  height: 34px;
  border-color: rgba(255,255,255,.25);
  background: rgba(17,14,24,.62);
  box-shadow: 0 4px 14px rgba(0,0,0,.28);
  backdrop-filter: blur(10px);
}
body:has(.hk-catalog.hk-page) .hk-catalog-card .hk-media-fallback { background: radial-gradient(circle at 70% 15%,#30263b,transparent 38%),linear-gradient(145deg,#211b2b,#121018); }
body:has(.hk-catalog.hk-page) .hk-catalog-card .hk-media-fallback span {
  border-color: rgba(231,215,250,.18);
  background: rgba(190,165,220,.08);
  color: #dcc8ee;
}
body:has(.hk-catalog.hk-page) .hk-catalog-card:hover { border-color: rgba(199,174,226,.32)!important; box-shadow: 0 16px 40px rgba(0,0,0,.32)!important; }

/* The native phone layout has no hover: keep title, description and CTA legible on the footage. */
@media (max-width: 767px) {
  body:has(.hk-catalog.hk-page) .hk-catalog-grid { align-items: start; gap: 10px!important; }
  body:has(.hk-catalog.hk-page) .hk-catalog-grid .hk-catalog-card {
    grid-template-columns: minmax(0,1fr)!important;
    align-self: start;
    margin: 0!important;
    border-radius: 14px!important;
  }
  body:has(.hk-catalog.hk-page) .hk-catalog-card .hk-catalog-card-copy { padding: 48px 10px 10px!important; }
  body:has(.hk-catalog.hk-page) .hk-catalog-card .hk-catalog-title-row h2 { font-size: 13px!important; transform: none; }
  body:has(.hk-catalog.hk-page) .hk-catalog-card .hk-catalog-card-copy > p {
    max-height: 31px;
    margin-top: 4px!important;
    font-size: 9px!important;
    opacity: 1;
  }
  body:has(.hk-catalog.hk-page) .hk-catalog-card .hk-catalog-card-foot {
    max-height: 28px;
    margin-top: 7px;
    padding-top: 7px;
    border-top: 1px solid rgba(255,255,255,.15)!important;
    opacity: 1;
  }
  body:has(.hk-catalog.hk-page) .hk-catalog-card .hk-catalog-price { font-size: 9px!important; }
  body:has(.hk-catalog.hk-page) .hk-catalog-card .hk-card-open-hint { width: 20px; height: 20px; flex-basis: 20px; font-size: 14px!important; }
}

/* Override legacy light studio-shell and timeline rules on Hook detail. */
body:has(.hk-detail.hk-page) .s-wrap:not(.ld-page):has(> nav.s-nav) .s-header,
body:has(.hk-catalog.hk-page) .s-wrap:not(.ld-page):has(> nav.s-nav) .s-header {
  border-bottom-color: rgba(225,216,245,.12)!important;
  background: rgba(19,16,25,.96)!important;
  color: #f2eff7!important;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
body:has(.hk-detail.hk-page) .s-wrap .s-header-balance,
body:has(.hk-catalog.hk-page) .s-wrap .s-header-balance {
  padding: 0!important;
  border: 0!important;
  background: transparent!important;
  color: #f2eff7!important;
}
body:has(.hk-detail.hk-page) .hk-timeline,
body:has(.hk-detail.hk-page) .hk-timeline.is-generated {
  border-color: rgba(225,216,245,.12)!important;
  background: #17141e!important;
}
body:has(.hk-detail.hk-page) .hk-timeline.is-generated .hk-timeline-track,
body:has(.hk-detail.hk-page) .hk-timeline .hk-timeline-track {
  border: 1px solid rgba(225,216,245,.08)!important;
  background: #24212d!important;
}
body:has(.hk-detail.hk-page) .hk-timeline .hk-timeline-generated-segment {
  border-color: rgba(181,155,234,.4)!important;
  background: #392e49!important;
  color: #e0d4f0!important;
}
body:has(.hk-detail.hk-page) .hk-timeline .hk-timeline-original-segment {
  background: #2a2633!important;
  color: #d8d0e0!important;
}
body:has(.hk-detail.hk-page) .hk-timeline .hk-timeline-segment-label {
  background: rgba(20,18,27,.84)!important;
  color: #e5dced!important;
}
body:has(.hk-detail.hk-page) .hk-timeline .hk-timeline-ticks,
body:has(.hk-detail.hk-page) .hk-timeline .hk-timeline-source-caption { color: #8e8799!important; }
body:has(.hk-detail.hk-page) .hk-timeline .hk-timeline-range-caption { color: #d1b6fa!important; }
body:has(.hk-detail.hk-page) .hk-timeline .hk-timeline-handle::before,
body:has(.hk-detail.hk-page) .hk-timeline .hk-timeline-handle::after { border-color: #f4effa!important; background: #b59bea!important; }
body:has(.hk-detail.hk-page) .hk-timeline.is-source-bound .hk-timeline-selection {
  border-color: #d0b2ff!important;
  background: rgba(181,155,234,.18)!important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14), 0 0 11px rgba(181,155,234,.18);
}

.em-studio-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.em-studio-heading h1 { margin:0; }
.em-tutorial-trigger {
  display:inline-flex; min-height:38px; align-items:center; gap:8px; padding:0 12px;
  border:1px solid rgba(225,220,255,.14); border-radius:10px;
  background:rgba(255,255,255,.035); color:#c7bfd3;
  font:600 12px/1 'DM Sans',sans-serif; cursor:pointer;
  transition:border-color .18s ease,background .18s ease,color .18s ease;
}
.em-tutorial-trigger:hover { border-color:rgba(190,165,226,.36); background:rgba(150,123,222,.09); color:#eee7f7; }
.em-tutorial-trigger:focus-visible,.em-studio-tutorial-close:focus-visible { outline:2px solid #b99bdd; outline-offset:3px; }
.em-tutorial-trigger svg { width:16px; height:16px; color:#b8a6cf; }
.em-studio-tutorial {
  position:fixed; inset:0; margin:auto;
  width:min(1000px,calc(100vw - 32px)); max-width:none; max-height:calc(100dvh - 32px);
  overflow:hidden; padding:0; border:1px solid rgba(225,220,255,.16); border-radius:17px;
  background:#15121c; color:#f4f1fb; box-shadow:0 28px 90px rgba(0,0,0,.62);
}
.em-studio-tutorial[open] { display:flex; flex-direction:column; }
.em-studio-tutorial::backdrop { background:rgba(7,5,12,.82); backdrop-filter:blur(7px); }
.em-studio-tutorial-head { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:17px 20px; }
.em-studio-tutorial-kicker { color:#a79bb3; font-size:9px; font-weight:700; letter-spacing:.12em; }
.em-studio-tutorial-head h2 { margin:4px 0 0; color:#f4f1fb; font:700 19px/1.2 Manrope,sans-serif; letter-spacing:-.025em; }
.em-studio-tutorial-close { display:grid; width:38px; height:38px; flex:0 0 38px; place-items:center; border:1px solid rgba(225,220,255,.15); border-radius:10px; background:rgba(255,255,255,.045); color:#d1c8dc; font:300 26px/1 Manrope,sans-serif; cursor:pointer; }
.em-studio-tutorial-close:hover { background:rgba(255,255,255,.09); color:#fff; }
.em-studio-tutorial-video { display:block; width:100%; max-height:calc(100dvh - 120px); aspect-ratio:16/9; background:#08070c; object-fit:contain; }
@media (max-width:767px) {
  .em-studio-heading { align-items:flex-start; }
  .em-tutorial-trigger { min-height:35px; gap:6px; padding:0 9px; font-size:11px; white-space:nowrap; }
  .em-tutorial-trigger svg { width:15px; height:15px; }
  .em-studio-tutorial { width:calc(100vw - 20px); max-height:calc(100dvh - 24px); border-radius:14px; }
  .em-studio-tutorial-head { padding:13px 14px; }
  .em-studio-tutorial-head h2 { font-size:16px; }
  .em-studio-tutorial-video { max-height:calc(100dvh - 90px); }
}
