/* The entry surface stays inside Epic's existing navigation and upload flow. */
.epic-workspace.epic-entry {
  padding: 0; height: var(--entry-height, 100dvh); min-height: var(--entry-height, 100dvh);
  background: radial-gradient(76% 46% at 62% 36%, rgb(72 134 232 / 22%), transparent 74%), radial-gradient(60% 40% at 8% 94%, rgb(255 45 85 / 10%), transparent 72%), linear-gradient(160deg, #f8fbff, #edf6ff);
}
.epic-entry-layout { display: flex; flex-direction: column; width: min(100%, 1200px); height: 100%; min-height: 0; margin: 0 auto; padding: 20px 8px max(8px, env(safe-area-inset-bottom)); }
.epic-entry-heading { flex: none; padding: 0 21px 8px; }
.epic-entry-heading h1 { margin: 0; font-size: clamp(20px, 5.8vw, 30px); line-height: 1.24; font-weight: 700; }
.epic-entry-air { position: relative; flex: 1 1 0; min-height: 120px; container-type: size; }
.epic-entry-being { position: absolute; width: min(90cqw, 340px); aspect-ratio: 1; left: 50%; bottom: 0; translate: -50% 0; scale: .5; transform-origin: 50% 86%; cursor: grab; touch-action: pan-y; user-select: none; }
.epic-entry-being canvas { width: 100%; height: 100%; display: block; pointer-events: none; }
.epic-entry-static { position: absolute; left: 15.5%; top: 21.8%; width: 69%; height: 64.2%; border-radius: 50% 50% 46% 46% / 54% 54% 44% 44%; border: 2px solid rgb(255 255 255 / 80%); background: radial-gradient(ellipse at 30% 20%, rgb(255 255 255 / 65%), transparent 65%), rgb(225 240 255 / 25%); box-shadow: inset 0 0 20px rgb(255 255 255 / 65%), 0 12px 18px -12px rgb(37 66 105 / 35%); }
.epic-entry-static::before, .epic-entry-static::after { content: ""; position: absolute; top: 36%; width: 10.5%; height: 16%; border-radius: 50%; background: #202431; box-shadow: inset 1px 2px 2px rgb(255 255 255 / 40%); }
.epic-entry-static::before { left: 35%; } .epic-entry-static::after { left: 58%; }
.epic-entry:not([data-character="css"]) .epic-entry-static { display: none; }
.epic-workspace.epic-entry .epic-entry-sheet { position: relative; overflow-y: auto; display: flex; flex-direction: column; flex: 0 0 auto; height: calc(var(--entry-height, 100dvh) * .70); min-height: 240px; margin: 0; padding: 18px 0 0; border: 1px solid rgb(255 255 255 / 80%); border-radius: 34px; background: rgb(255 255 255 / 74%); box-shadow: 0 18px 50px -18px rgb(44 84 150 / 28%), inset 0 1px 0 rgb(255 255 255 / 90%); }
.epic-entry .epic-form { position: relative; display: flex; flex-direction: column; flex: 1 1 0; min-height: 180px; margin: 0; }
.epic-entry .epic-field { display: flex; flex: 1 1 0; min-height: 0; margin: 0; }
.epic-workspace.epic-entry .epic-textarea { flex: 1 1 0; min-height: 72px; width: 100%; height: auto; padding: 8px 20px 72px; border: 0; border-radius: 0; background: transparent; color: var(--epic-ink); font-size: 17px; line-height: 1.6; resize: none; box-shadow: none; field-sizing: fixed; }
.epic-entry .epic-textarea::placeholder { color: var(--epic-muted); opacity: 1; }
.epic-entry .epic-actions { flex: none; justify-content: flex-end; margin: 0; padding: 8px 12px 12px; }
.epic-entry .epic-actions > input { min-width: 110px; min-height: 50px; border-radius: 999px; background: linear-gradient(160deg, rgb(255 255 255 / 86%), rgb(224 240 255 / 76%)); color: #005fcc; box-shadow: inset 0 1px 0 #fff, 0 6px 18px rgb(0 122 255 / 10%); }
.epic-workspace.epic-entry .epic-import-zone { position: static; margin: 0; padding: 0; border: 0; border-radius: 0 0 34px 34px; background: none; box-shadow: none; }
.epic-entry .epic-entry-upload { position: absolute; left: 20px; right: 20px; top: calc(50% - 56px); display: flex; justify-content: center; align-items: center; gap: 8px; width: calc(100% - 40px); min-height: 44px; padding: 8px 12px; border: 0; background: transparent; color: #005fcc; font-size: clamp(16px, 1.7vw, 19px) !important; font-weight: 650; }
.epic-entry-upload svg { width: 26px; height: 26px; flex: none; }
.epic-entry[data-has-text="true"] .epic-actions { justify-content: space-between; align-items: center; padding-left: 20px; }
.epic-entry[data-has-text="true"] .epic-entry-upload { position: static; top: auto; bottom: auto; left: auto; right: auto; width: fit-content; max-width: calc(100% - 130px); justify-content: flex-start; padding: 6px 0; font-size: 16px !important; line-height: 1.4; text-align: left; }
.epic-entry[data-has-text="true"] .epic-entry-upload svg { width: 22px; height: 22px; }
.epic-entry[data-has-text="true"] .epic-textarea { padding-bottom: 20px; }
@container epic (max-width: 799px) {
  .epic-entry[data-has-text="true"] .epic-entry-upload { font-size: 13px !important; gap: 6px; }
}
.epic-entry .epic-import-status, .epic-entry .epic-import-actions, .epic-entry .epic-import-progress { position: relative; margin: 0 18px 12px; width: auto; }
.epic-entry .epic-import-actions:not(:has(> :not([hidden]))) { display: none; }
.epic-entry .epic-import-status:empty { display: none; }
.epic-entry .epic-term-picker { margin: 0 20px 12px; }
.epic-entry .epic-term-picker-body { max-height: 140px; overflow-y: auto; }
.epic-entry.is-dragging .epic-entry-sheet { background: rgb(221 239 255 / 92%); }
.epic-entry :is(button, input, textarea):focus { outline: none; }
.epic-entry .epic-textarea:focus { border: 0; box-shadow: none; }
.epic-entry .epic-error { margin: 0 18px 12px; }
@container epic (min-width: 800px) {
  .epic-entry-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(230px, 28%); grid-template-rows: auto minmax(0, 1fr); padding: 28px 24px 24px; }
  .epic-entry-heading { grid-column: 1 / 3; padding: 0 30px 16px; }
  .epic-entry-heading h1 { font-size: 34px; }
  .epic-entry-air { grid-column: 2; grid-row: 2; min-height: 0; }
  .epic-workspace.epic-entry .epic-entry-sheet { grid-column: 1; grid-row: 2; height: auto; min-height: 0; }
  .epic-entry-being { width: min(118cqw, 96cqh); top: calc((100cqh - min(118cqw, 96cqh)) * .36); bottom: auto; }
}
.epic-entry[data-compact="true"] .epic-entry-layout { display: flex; padding-top: 12px; }
.epic-entry[data-compact="true"] .epic-entry-heading, .epic-entry[data-compact="true"] .epic-entry-air { display: none; }
.epic-entry[data-compact="true"] .epic-entry-sheet { flex: 1 1 0; height: auto; min-height: 240px; }

.epic-entry:has(.epic-import-input:disabled) .epic-entry-upload { visibility: hidden; }

@container epic (max-width: 359px) {
  .epic-entry .epic-entry-upload { left: 12px; right: 12px; width: calc(100% - 24px); padding-inline: 4px; gap: 6px; font-size: 15px !important; }
  .epic-entry-upload svg { width: 23px; height: 23px; }
}

@container epic (max-width: 359px) {
  .epic-entry[data-has-text="true"] .epic-entry-upload { padding: 6px 0; font-size: 13px !important; }
}
.epic-entry[data-has-text="true"] .epic-entry-upload span { text-wrap: balance; }
