/* Exact production translation of the approved easymotion-dark mockup values.
   Loaded after creative.css and guest-flow.css to resolve local cascade conflicts. */

/* Catalog page header: the approved .em-page-head and .em-search-row geometry. */
/* Independent columns, not grid rows: one shorter card must offset every card
   below it instead of leaving a hole and resetting the next row. */
body:has(.hk-catalog.hk-page) .hk-catalog-grid {
  display: block !important;
  columns: 4;
  column-gap: 14px !important;
}
body:has(.hk-catalog.hk-page) .hk-catalog-grid .hk-catalog-card {
  display: inline-block !important;
  width: 100%;
  break-inside: avoid;
  vertical-align: top;
  margin: 0 0 14px !important;
}
body:has(.hk-catalog.hk-page) .hk-catalog-grid .hk-catalog-card[hidden] { display: none !important; }
@media(max-width:1100px) {
  body:has(.hk-catalog.hk-page) .hk-catalog-grid { columns: 3; }
}
@media(max-width:767px) {
  body:has(.hk-catalog.hk-page) .hk-catalog-grid { columns: 2; column-gap: 10px !important; }
  body:has(.hk-catalog.hk-page) .hk-catalog-grid .hk-catalog-card { margin-bottom: 10px !important; }
}
body .hk-catalog-head { display:flex;align-items:flex-end;justify-content:space-between;gap:25px;margin-bottom:28px; }
body .hk-catalog-head h1 { font:700 clamp(30px,4vw,47px)/1.05 Manrope,sans-serif;letter-spacing:-.045em;margin:0; }
body .hk-catalog-head .hk-kicker { font-size:10px;letter-spacing:.17em;margin:0 0 12px; }
body .hk-catalog-head .hk-lead { max-width:580px;font-size:14px;line-height:1.6;margin:13px 0 0; }
body .hk-catalog-tools { margin:30px 0 20px; }
body .hk-sort-note { font-size:12px;line-height:1.5;color:#a39cab;margin:-8px 0 16px; }
@media(max-width:767px) {
 body .hk-catalog-head { align-items:flex-start;flex-direction:column;gap:18px; }
 body .hk-catalog-head [data-open-ideas] { align-self:flex-end; }
}

/* Studio heading and submit action values from _dark.css / Studio.css. */
.em-studio-page .em-studio-page-head h1 { font-size: 40px; }

.em-studio-page .em-settings-row .em-submit {
  width: auto;
  min-width: 152px;
  min-height: 39px;
  flex: 0 0 auto;
  margin: 0 0 0 auto;
  padding: 0 17px;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(112deg, #fff0fb 0%, #f8b2ed 52%, #ee77df 100%);
  box-shadow: 0 5px 16px rgba(198, 130, 175, .12);
  color: #111 !important;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.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-settings-row .em-price-in-action {
  margin-left: auto;
  padding-left: 8px;
  border-left: 1px solid rgba(0, 0, 0, .18);
  color: #111;
  font: 700 11px/1 'DM Sans', sans-serif;
}

/* Full-screen Hook catalog preview. These are the approved Catalog.tsx classes
   on a portal dialog, so selectors do not depend on its former DOM wrappers. */
.em-hook-preview.em-detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #09080e;
  color: #f4f1fb;
}

.em-hook-preview.em-detail-overlay[hidden],
.em-hook-preview.em-detail-overlay:not([open]) { display: none; }

.em-hook-preview .em-detail-top {
  position: absolute;
  z-index: 6;
  inset: 16px 18px auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.em-hook-preview .em-detail-top > * { pointer-events: auto; }

.em-hook-preview .em-catalog-back,
.em-hook-preview .em-create-close {
  display: inline-flex;
  min-height: 39px;
  align-items: center;
  gap: 7px;
  padding: 0 13px;
  border: 1px solid rgba(225, 220, 255, .13);
  border-radius: 10px;
  background: rgba(15, 13, 22, .83);
  color: #eee9fa;
  font: 600 12px/1 'DM Sans', sans-serif;
  text-decoration: none;
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.em-hook-preview .em-catalog-back svg,
.em-hook-preview .em-create-close svg { width: 15px; height: 15px; }

.em-hook-preview .em-detail-media {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 0;
  place-items: center;
  background: radial-gradient(ellipse at 50% 45%, rgba(84, 63, 139, .16), transparent 60%);
}

.em-hook-preview .em-detail-media > :is(video, img) {
  display: block;
  max-width: 100%;
  max-height: 100dvh;
  object-fit: contain;
}

.em-hook-preview .em-detail-side {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: auto;
  padding: 28px 22px;
  border-left: 1px solid rgba(225, 220, 255, .09);
  background: #100e17;
}

.em-hook-preview .em-demo-stamp {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .07);
  color: #d6d0e2;
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.em-hook-preview .em-demo-stamp::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #a98cff;
  content: "";
}

.em-hook-preview .em-detail-side h2 {
  margin: 24px 0 8px;
  color: #f4f1fb;
  font: 700 27px/1.15 Manrope, sans-serif;
  letter-spacing: -.04em;
}

.em-hook-preview .em-detail-side p {
  margin: 0 0 22px;
  color: #a29caf;
  font-size: 12px;
  line-height: 1.55;
}

.em-hook-preview .em-related-title {
  margin: 15px 0 12px;
  color: #777282;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.em-hook-preview .em-related {
  display: flex;
  width: 100%;
  min-height: 72px;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 8px;
  padding: 8px;
  border: 1px solid rgba(225, 220, 255, .09);
  border-radius: 12px;
  background: rgba(255, 255, 255, .02);
  color: #f4f1fb;
  text-align: left;
  cursor: pointer;
}

.em-hook-preview .em-related:hover { border-color: rgba(194, 174, 255, .35); }

.em-hook-preview .em-related img {
  width: 44px;
  height: 58px;
  flex: 0 0 auto;
  border-radius: 7px;
  object-fit: cover;
}

.em-hook-preview .em-related > span {
  display: grid;
  min-width: 0;
  gap: 4px;
  color: #f4f1fb;
}

.em-hook-preview .em-related > div {
  display: grid;
  min-width: 0;
  gap: 4px;
  color: #f4f1fb;
}

.em-hook-preview .em-related strong { display: block; color: #f4f1fb; font-size: 11px; }
.em-hook-preview .em-related :is(small, div > span) {
  display: -webkit-box;
  overflow: hidden;
  color: #a29caf;
  font-size: 10px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.em-hook-preview .em-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 17px;
  border: 1px solid rgba(225, 220, 255, .16);
  border-radius: 12px;
  background: rgba(255, 255, 255, .055);
  color: #f4f1fb;
  font: 600 13px/1.2 'DM Sans', sans-serif;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.em-hook-preview .em-button:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, .09);
  border-color: rgba(210, 198, 255, .3);
}

.em-hook-preview .em-button svg { width: 16px; height: 16px; }

.em-hook-preview .em-button-primary {
  border-color: transparent;
  background: linear-gradient(112deg, #fff0fb 0%, #f8b2ed 52%, #ee77df 100%);
  box-shadow: 0 5px 17px rgba(198, 130, 175, .12);
  color: #111 !important;
}

.em-hook-preview .em-button-primary:hover {
  background: linear-gradient(112deg, #fff5fd 0%, #ffc4f3 52%, #f78ce9 100%);
  color: #111 !important;
}

.em-hook-preview .em-button-primary :is(span, small, svg, .em-token-amount),
.em-hook-preview .em-button-primary:hover :is(span, small, svg, .em-token-amount) { color: inherit; }

.em-hook-preview .em-icon-button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #a29caf;
  cursor: pointer;
}

.em-hook-preview .em-icon-button:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.em-hook-preview .em-icon-button svg { width: 17px; height: 17px; }
.em-hook-preview .em-detail-top .em-icon-button { background: rgba(15, 13, 22, .83); border: 1px solid rgba(225, 220, 255, .13); }
.em-hook-preview .em-preview-menu {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid rgba(225, 220, 255, .13);
  border-radius: 10px;
  background: rgba(15, 13, 22, .88);
  color: #eee9fa;
  font: 600 12px/1 'DM Sans', sans-serif;
  cursor: pointer;
  backdrop-filter: blur(12px);
}
.em-hook-preview .em-preview-menu:hover { background: rgba(35, 29, 47, .96); }
.em-hook-preview .em-preview-menu :is(svg, img) { width: 17px; height: 17px; }

.em-hook-preview .em-detail-mobile-action { display: none; }
.em-hook-preview .em-detail-media { touch-action: none; }
.em-hook-preview .em-hook-swipe-hint {
  position: absolute; top: 66px; left: 50%; transform: translateX(-50%);
  padding: 5px 9px; border-radius: 20px; background: rgba(10,8,16,.55);
  color: #eee9fa; font-size: 10px; white-space: nowrap; pointer-events: none;
}

.em-hook-preview .em-token-amount {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #e8e1ff;
  font: 700 12px/1.1 Manrope, sans-serif;
  white-space: nowrap;
}

.em-hook-preview .em-token-amount svg {
  display: block;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .86;
}

.em-hook-preview .em-button .em-token-amount { color: inherit; }
.em-hook-preview .em-button .em-token-amount svg { width: 14px; height: 14px; }

/* Hook create screen: source geometry, translated to the live form's controls. */
.hk-page.em-hook-create,
.hk-detail.em-hook-create {
  width: 100%;
  max-width: none;
  color-scheme: dark;
  color: #f2eff7;
}

.em-hook-create .em-create-top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin: 0 calc(-1 * clamp(16px, 3vw, 40px));
  padding: 18px clamp(18px, 5vw, 64px);
  border-bottom: 1px solid rgba(225, 220, 255, .09);
  background: rgba(13, 12, 20, .88);
  backdrop-filter: blur(18px);
}

.em-hook-create .em-create-top .em-back,
.em-hook-create .em-create-close {
  display: inline-flex;
  min-height: 39px;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 0 13px;
  border: 1px solid rgba(225, 220, 255, .13);
  border-radius: 10px;
  background: rgba(15, 13, 22, .83);
  color: #eee9fa;
  font: 600 12px/1 'DM Sans', sans-serif;
  text-decoration: none;
  backdrop-filter: blur(12px);
}

.em-hook-create .em-create-top .em-back svg,
.em-hook-create .em-create-close svg {
  width: 15px;
  height: 15px;
}
.em-hook-create .em-create-top .em-back > span {
  font-size: 20px;
  line-height: .8;
}

.em-hook-create .em-create-body {
  width: min(990px, 100%);
  margin: 36px auto 60px;
}

.em-hook-create .em-create-head {
  max-width: 690px;
  margin: 0;
}

.em-hook-create .em-create-head h1 {
  margin: 13px 0 8px;
  color: #f4f1fb;
  font: 700 38px/1.1 Manrope, sans-serif;
  letter-spacing: -.045em;
}

.em-hook-create .em-create-head .hk-lead {
  margin: 0;
  color: #a29caf;
  font-size: 13px;
  line-height: 1.6;
}

.em-hook-create .em-hook-workspace {
  display: grid;
  grid-template-columns: minmax(0, 780px);
  justify-content: start;
  align-items: start;
  gap: 18px;
  margin-top: 26px;
}

.em-hook-create .em-hook-workspace > .em-form-card {
  min-width: 0;
  padding: 21px;
  border: 1px solid rgba(225, 220, 255, .09);
  border-radius: 19px;
  background: linear-gradient(145deg, rgba(30, 27, 42, .92), rgba(19, 17, 25, .9));
  box-shadow: none;
}

.em-hook-create .em-step-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 17px;
}

.em-hook-create .em-step-head h2 {
  margin: 0;
  color: #f4f1fb;
  font: 600 17px/1.25 Manrope, sans-serif;
  letter-spacing: -.02em;
}

.em-hook-create .em-step-head p {
  margin: 4px 0 0;
  color: #777282;
  font-size: 10px;
}

.em-hook-create .hk-upload-zone {
  min-height: 188px;
  border: 1px dashed rgba(199, 185, 255, .27);
  border-radius: 16px;
  background: #171421;
}

.em-hook-create .hk-upload-zone::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  background: linear-gradient(90deg, rgba(13, 11, 18, .75), rgba(13, 11, 18, .23)), linear-gradient(0deg, rgba(13, 11, 18, .62), transparent), var(--em-upload-cover, none) center / cover no-repeat;
  content: "";
  opacity: .72;
  filter: blur(9px);
  transform: scale(1.08);
  pointer-events: none;
}

.em-hook-create .hk-upload-empty {
  position: relative;
  z-index: 1;
  padding: 18px;
}

.em-hook-create .hk-upload-icon {
  width: 37px;
  height: 37px;
  margin: 0 auto 10px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 12px;
  background: rgba(255, 255, 255, .08);
  color: #e6ddff;
}

.em-hook-create .hk-upload-icon svg { width: 18px; height: 18px; }
.em-hook-create .hk-upload-empty strong { color: #fff; font-size: 20px; font-weight: 800; line-height: 1.2; text-shadow: 0 1px 12px rgba(0,0,0,.45); }
.em-hook-create .hk-upload-drag-copy { color: #b0aabb; font-size: 10px; }
.em-hook-create .hk-upload-empty > span:last-child { color: #b0aabb; font-size: 10px; }

.em-hook-create .hk-upload-preview { z-index: 1; }
.em-hook-create .hk-upload-zone.has-file::before { content: none; }
.em-hook-create .hk-upload-zone [hidden] { display: none !important; }
.em-hook-create .hk-upload-preview :is(video,img) { background: #100e17; }
.hk-frame-probe { position: fixed; left: -10000px; top: 0; width: 2px; height: 2px; pointer-events: none; }
.em-hook-create .hk-timeline-frame-status { margin: 6px 0 0; color: #a29caf; font-size: 11px; }
.em-hook-create .hk-timeline-frame-status[hidden] { display: none; }
.em-hook-create .hk-video-upload-zone.has-file { min-height: 188px; padding: 8px; }
.em-hook-create .hk-video-upload-zone.has-file .hk-upload-preview video {
  max-height: min(58vh, 520px);
}

.em-hook-create .hk-form-footnote,
.em-hook-create .hk-clip-note {
  color: #777282;
}

.em-hook-create .hk-control-block {
  padding: 15px 0 12px;
  border-color: rgba(225, 220, 255, .09);
}

.em-hook-create .hk-control-top label,
.em-hook-create .hk-quality-block legend,
.em-hook-create .hk-gender-block legend,
.em-hook-create .hk-extra-photo > label {
  color: #eae6f3;
  font-size: 11px;
  font-weight: 700;
}

.em-hook-create .hk-control-top output { color: #d0c1ff; }
.em-hook-create #hk-duration { accent-color: #a98cff; }

.em-hook-create .hk-timeline,
.em-hook-create .hk-appearance-panel {
  border-color: rgba(225, 220, 255, .12);
  border-radius: 12px;
  background: rgba(255, 255, 255, .025);
}

.em-hook-create .hk-timeline-track {
  height: 58px;
  background: #191722;
}

.em-hook-create .hk-timeline-frames { border-radius: inherit; }
.em-hook-create .hk-timeline-frame { border-right-color: rgba(255, 255, 255, .09); }

.em-hook-create .hk-timeline-generated-segment {
  border-color: rgba(169, 140, 255, .35);
  background: rgba(169, 140, 255, .19);
  color: #d8caff;
}

.em-hook-create .hk-timeline-original-segment { background: rgba(255, 255, 255, .045); }
.em-hook-create .hk-timeline-segment-label { background: rgba(20, 18, 27, .85); }
.em-hook-create .hk-timeline-selection { border-color: #a98cff; background: rgba(169, 140, 255, .16); }
.em-hook-create .hk-timeline-handle::before,
.em-hook-create .hk-timeline-handle::after { background: #8d71d6; }
.em-hook-create .hk-timeline-ticks,
.em-hook-create .hk-timeline-source-caption { color: #827d8f; }
.em-hook-create .hk-timeline-range-caption { color: #d8caff; }

.em-hook-create .hk-timeline-preview {
  min-height: 34px;
  border-color: rgba(225, 220, 255, .13);
  border-radius: 8px;
  background: rgba(255, 255, 255, .045);
  color: #d8caff;
}

.em-hook-create .hk-quality-block,
.em-hook-create .hk-gender-block {
  border-color: rgba(225, 220, 255, .09);
}

.em-hook-create .hk-quality-option,
.em-hook-create .hk-gender-options span {
  min-height: 48px;
  padding: 7px 9px;
  border-color: rgba(225, 220, 255, .13);
  border-radius: 10px;
  background: rgba(255, 255, 255, .025);
  color: #c4bdcf;
}

.em-hook-create .hk-quality-option.is-selected,
.em-hook-create .hk-gender-options input:checked + span {
  border-color: rgba(194, 174, 255, .5);
  background: rgba(150, 123, 222, .12);
  color: #e9ddff;
}

.em-hook-create .hk-price-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 23px;
  padding: 17px 0 0;
  border: 0;
  border-top: 1px solid rgba(225, 220, 255, .09);
  border-radius: 0;
  background: transparent;
}

.em-hook-create .hk-price-strip small,
.em-hook-create .hk-balance { color: #a29caf; }
.em-hook-create .hk-price-strip strong { color: #f4f1fb; }

.em-hook-create .hk-submit {
  min-height: 44px;
  justify-content: space-between;
  margin-top: 14px;
  padding: 0 17px;
  border-radius: 12px;
  background: linear-gradient(112deg, #fff0fb 0%, #f8b2ed 52%, #ee77df 100%);
  box-shadow: 0 5px 17px rgba(198, 130, 175, .12);
  color: #111 !important;
  font-size: 13px;
}

.em-hook-create .hk-submit:not(:disabled):hover {
  background: linear-gradient(112deg, #fff5fd 0%, #ffc4f3 52%, #f78ce9 100%);
  color: #111 !important;
}

.em-hook-create .hk-submit :is(span, small) { color: #111 !important; }
.em-hook-create .hk-submit-cost { background: rgba(0, 0, 0, .08); }

/* The real balance replaces the mockup's unavailable-price sample section;
   keep its account-specific content and use the approved hero geometry. */
.em-balance-page .em-balance-head { margin-bottom: 21px; }
.em-balance-page .em-balance-total::after { display: none; }
.em-balance-page .em-balance-total {
  padding: 21px 23px 18px;
  border-radius: 17px;
}
.em-balance-page .em-balance-total-value { margin-top: 9px; }
.em-balance-page .em-balance-total-value strong { font-size: 47px; }
.em-balance-page .em-balance-uses { margin-top: 17px; }
.em-balance-page .em-balance-uses > div { padding: 11px 12px; }

@media (max-width: 767px) {
  .em-studio-page .em-studio-page-head h1 { font-size: 33px; }

  .em-hook-create .em-create-top {
    margin-inline: -16px;
    padding: 10px 16px;
  }

  .em-hook-create .em-create-top .em-back,
  .em-hook-create .em-create-close {
    min-height: 36px;
    padding: 0 10px;
    font-size: 11px;
  }

  .em-hook-create .em-create-body { margin: 24px auto 42px; }
  .em-hook-create .em-create-head h1 { font-size: 32px; }
  .em-hook-create .em-hook-workspace { grid-template-columns: minmax(0, 1fr); margin-top: 22px; }
  .em-hook-create .em-hook-workspace > .em-form-card { padding: 16px; }
  .em-hook-create .hk-timeline-track { height: 58px; }
}

@media (max-width: 600px) {
  .em-balance-page .em-balance-total { padding: 17px 15px 14px; border-radius: 14px; }
  .em-balance-page .em-balance-total-value strong { font-size: 42px; }
  .em-balance-page .em-balance-uses { grid-template-columns: 1fr; gap: 6px; margin-top: 12px; }
  .em-balance-page .em-balance-uses > div { align-items: flex-start; gap: 6px; padding: 9px 7px; }
  .em-balance-page .em-balance-uses svg { width: 14px; height: 14px; }
  .em-balance-page .em-balance-uses strong { font-size: 14px; }
  .em-balance-page .em-balance-uses small { font-size: 7px; }
  .em-balance-page .em-balance-or { justify-self: center; }
}

@media (max-width: 400px) {
  .em-hook-create .em-create-top .em-back,
  .em-hook-create .em-create-close { gap: 5px; padding-inline: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .em-hook-preview *,
  .em-hook-preview *::before,
  .em-hook-preview *::after,
  .em-hook-create *,
  .em-hook-create *::before,
  .em-hook-create *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

/* Resolve the older hk-page dark-theme selectors without changing shared CSS. */
body:has(.hk-page.em-hook-create) .hk-detail.em-hook-create .em-hook-workspace {
  grid-template-columns: minmax(0, 780px);
  justify-content: start;
  margin-top: 26px;
}

body:has(.hk-page.em-hook-create) .hk-detail.em-hook-create .hk-upload-zone {
  min-height: 188px;
  border-color: rgba(199, 185, 255, .27);
  background: #171421;
}

body:has(.hk-page.em-hook-create) .hk-detail.em-hook-create .hk-upload-zone::before {
  background: linear-gradient(90deg, rgba(13, 11, 18, .75), rgba(13, 11, 18, .23)), linear-gradient(0deg, rgba(13, 11, 18, .62), transparent), var(--em-upload-cover, none) center / cover no-repeat;
  opacity: .72;
  filter: blur(9px);
  transform: scale(1.08);
}

body:has(.hk-page.em-hook-create) .hk-detail.em-hook-create .hk-upload-icon {
  width: 37px;
  height: 37px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 12px;
  background: rgba(255, 255, 255, .08);
  color: #e6ddff;
}

body:has(.hk-page.em-hook-create) .hk-detail.em-hook-create .hk-upload-icon svg { width: 18px; height: 18px; }
body:has(.hk-page.em-hook-create) .hk-detail.em-hook-create .hk-upload-empty strong { color: #fff; font-size: 20px; font-weight: 800; line-height: 1.2; text-shadow: 0 1px 12px rgba(0,0,0,.45); }
body:has(.hk-page.em-hook-create) .hk-detail.em-hook-create .hk-upload-drag-copy { color: #b0aabb; }
body:has(.hk-page.em-hook-create) .hk-detail.em-hook-create .hk-upload-empty > span:last-child { color: #b0aabb; }

body:has(.hk-page.em-hook-create) .hk-detail.em-hook-create .hk-timeline {
  border-color: rgba(225, 220, 255, .12);
  background: rgba(255, 255, 255, .025);
}

body:has(.hk-page.em-hook-create) .hk-detail.em-hook-create .hk-timeline-track { height: var(--hk-loaded-timeline-height, 58px); background: #191722; }
body:has(.hk-page.em-hook-create) .hk-detail.em-hook-create .hk-timeline-generated-segment { background: rgba(169, 140, 255, .19); color: #d8caff; }
body:has(.hk-page.em-hook-create) .hk-detail.em-hook-create .hk-timeline-original-segment { background: rgba(255, 255, 255, .045); }

body:has(.hk-page.em-hook-create) .hk-detail.em-hook-create .hk-quality-option,
body:has(.hk-page.em-hook-create) .hk-detail.em-hook-create .hk-gender-options span {
  min-height: 48px;
  padding: 7px 9px;
  border-color: rgba(225, 220, 255, .13);
  border-radius: 10px;
  background: rgba(255, 255, 255, .025);
  color: #c4bdcf;
}

body:has(.hk-page.em-hook-create) .hk-detail.em-hook-create .hk-quality-option.is-selected,
body:has(.hk-page.em-hook-create) .hk-detail.em-hook-create .hk-gender-options input:checked + span {
  border-color: rgba(194, 174, 255, .5);
  background: rgba(150, 123, 222, .12);
  color: #e9ddff;
}

body:has(.hk-page.em-hook-create) .hk-detail.em-hook-create .hk-price-strip {
  margin-top: 23px;
  padding: 17px 0 0;
  border: 0;
  border-top: 1px solid rgba(225, 220, 255, .09);
  border-radius: 0;
  background: transparent;
}

body:has(.hk-page.em-hook-create) .hk-detail.em-hook-create .hk-submit {
  min-height: 44px;
  margin-top: 14px;
  padding: 0 17px;
  border-radius: 12px;
  background: linear-gradient(112deg, #fff0fb 0%, #f8b2ed 52%, #ee77df 100%);
  color: #111 !important;
  font-size: 13px;
}

body:has(.hk-page.em-hook-create) .hk-detail.em-hook-create .hk-submit:not(:disabled):hover {
  background: linear-gradient(112deg, #fff5fd 0%, #ffc4f3 52%, #f78ce9 100%);
  color: #111 !important;
}

@media (max-width: 767px) {
  body:has(.hk-page.em-hook-create) .hk-detail.em-hook-create .em-hook-workspace {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 767px) {
  .em-studio-page .em-settings-row .em-submit {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 43px;
    margin: 1px 0 0;
    font-size: 13px;
  }
}

@media (max-width: 760px) {
  .em-balance-page .em-balance-head { align-items: flex-start; gap: 10px; }
  .em-balance-page .em-balance-total { padding: 17px 15px 14px; border-radius: 14px; }
  .em-balance-page .em-balance-total-value strong { font-size: 42px; }
  .em-balance-page .em-balance-uses { grid-template-columns: 1fr; gap: 6px; margin-top: 12px; }
  .em-balance-page .em-balance-uses > div { align-items: flex-start; gap: 6px; padding: 9px 7px; }
  .em-balance-page .em-balance-uses svg { width: 14px; height: 14px; }
  .em-balance-page .em-balance-uses strong { font-size: 14px; }
  .em-balance-page .em-balance-uses small { font-size: 7px; }
  .em-balance-page .em-balance-or { justify-self: center; }
}

@media (max-width: 400px) {
  .em-balance-page .em-balance-uses > div { align-items: center; }
}

@media (max-width: 767px) {
  .em-resume { width: auto; }
}

@media (max-width: 767px) {
  .em-hook-preview.em-detail-overlay {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr);
  }

  .em-hook-preview .em-detail-side { display: none; }
  .em-hook-preview .em-detail-top { inset: 10px 10px auto; }
  .em-hook-preview .em-catalog-back { min-height: 36px; padding: 0 10px; font-size: 11px; }
  .em-hook-preview .em-preview-menu { min-height: 40px; padding: 0 10px; font-size: 11px; }
  .em-hook-preview .em-detail-media { min-height: 0; }
  .em-hook-preview .em-detail-media > :is(video, img) {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .em-hook-preview .em-detail-media .em-detail-mobile-action {
    position: absolute;
    z-index: 2;
    right: 16px;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    left: 16px;
    display: flex;
    width: auto;
    min-height: 46px;
    justify-content: center;
  }
}

/* Creation uses the regular Studio shell and its desktop sidebar / mobile drawer. */
body:has(.hk-page.em-hook-create) .hk-detail.em-hook-create { width:100%;max-width:none;padding:0; }
body:has(.hk-page.em-hook-create) .hk-detail.em-hook-create .em-hook-workspace { background:none!important;border:0!important;box-shadow:none!important; }

/* Draft resume is a wrapper now; reserve a separate hit area for its close control. */
.em-resume {
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  max-width: min(480px, calc(100vw - 36px));
}
.em-resume > a { min-width: 0; color: inherit; text-decoration: none; }
.em-resume .em-resume-close {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(225, 220, 255, .16);
  border-radius: 10px;
  background: rgba(255, 255, 255, .06);
  color: #f4f1fb;
  font: 400 26px/1 'DM Sans', sans-serif;
  cursor: pointer;
}
.em-resume .em-resume-close:hover { background: rgba(255, 255, 255, .12); }

/* The shared signed-in header must not inherit the legacy white surface. */
body:has(.em-navigation) .s-wrap:not(.ld-page):has(>nav.s-nav) .s-header {
  background:#100d16!important;border-color:rgba(225,216,245,.1)!important;color:#f4eff9!important;
}
body:has(.em-navigation) .s-header-name { color:#c7bbd0!important; }
.em-hook-preview .em-button .em-token-amount svg { fill:currentColor!important;stroke:none!important; }
.em-studio-page .em-results-head .em-kicker { font-size:10px;letter-spacing:.17em;color:#b7a2d1; }
