:root {
  color-scheme: light;
  --navy: #0a1d33;
  --slate: #3d5079;
  --blue: #6185b5;
  --pale: #c2d2eb;
  --line: #cbd6e5;
  --wash: #eef4fb;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--navy); background: #f7f9fc; font-family: Pretendard Variable, Pretendard, sans-serif; }
button, input, textarea { font: inherit; }
button { color: inherit; }
[hidden] { display: none !important; }
.ef-loading, .ef-error-screen { min-height: 100vh; display: grid; place-content: center; gap: 8px; text-align: center; }
.ef-app { width: min(1240px, calc(100% - 32px)); min-height: calc(100vh - 32px); margin: 16px auto; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 16px 50px rgba(10, 29, 51, .08); }
.ef-header { height: 74px; display: flex; align-items: center; gap: 24px; padding: 0 30px; background: linear-gradient(90deg, #fff, #edf4fb); border-bottom: 1px solid var(--line); }
.ef-brand { width: 255px; height: 34px; object-fit: contain; object-position: left center; }
.ef-header-divider { width: 1px; height: 28px; background: var(--slate); }
.ef-exhibition-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ef-autosave { margin-left: auto; display: flex; gap: 8px; align-items: center; font-weight: 650; color: var(--slate); white-space: nowrap; }
.ef-autosave span { display: grid; width: 22px; height: 22px; place-content: center; color: #fff; background: var(--blue); border-radius: 50%; }
.ef-menu-button { display: none; margin-left: auto; border: 0; background: transparent; font-size: 26px; }
.ef-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: calc(100vh - 124px); }
.ef-sidebar { padding-top: 20px; background: linear-gradient(90deg, #f8fbff, #edf4fb); border-right: 1px solid var(--line); }
.ef-sidebar button { width: 100%; display: grid; grid-template-columns: 52px 1fr; gap: 10px; align-items: center; padding: 18px 22px; border: 0; background: transparent; text-align: left; font-size: 18px; font-weight: 650; cursor: pointer; }
.ef-sidebar button.active { background: linear-gradient(90deg, #d7e5f6, #bfd3ed); }
.ef-content { min-width: 0; display: flex; flex-direction: column; padding: 34px 42px 0; }
.ef-step { flex: 1; }
.ef-step-number { margin: 0 0 5px; color: var(--slate); }
.ef-step-number strong { color: #245a9a; }
.ef-step h1 { margin: 0; font-size: 32px; }
.ef-step h2 { margin: 0 0 14px; font-size: 20px; }
.ef-subtitle { margin: 8px 0 30px; color: #25364e; }
.ef-mobile-progress { display: none; }
.ef-exhibition-card, .ef-info-banner, .ef-material-card, .ef-promo-list, .ef-original-card, .ef-direct-files, .ef-review-card, .ef-work-list, .ef-work-editor-card { border: 1px solid var(--line); border-radius: 12px; }
.ef-exhibition-card { max-width: 900px; margin: 30px 0 34px; overflow: hidden; background: var(--wash); }
.ef-exhibition-card dl { margin: 0; }
.ef-exhibition-card dl div { display: grid; grid-template-columns: 190px 1fr; padding: 15px 24px; border-bottom: 1px solid var(--line); }
.ef-exhibition-card dt { font-weight: 700; }
.ef-exhibition-card dd { margin: 0; }
.ef-exhibition-card p, .ef-info-banner { margin: 0; padding: 14px 24px; color: #315d92; background: #dceafb; }
.ef-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 44px; max-width: 900px; }
.ef-field-grid label, .ef-work-fields label { display: grid; gap: 8px; font-weight: 700; }
input, textarea { width: 100%; color: var(--navy); background: #fff; border: 1px solid #9eb0c8; border-radius: 8px; outline: none; }
input { height: 46px; padding: 0 14px; }
textarea { min-height: 130px; padding: 14px; resize: vertical; }
input:focus, textarea:focus { border-color: #3d6fa7; box-shadow: 0 0 0 3px rgba(97, 133, 181, .15); }
.ef-info-banner { margin: 24px 0; border-radius: 9px; }
.ef-material-card { margin-bottom: 18px; padding: 18px; }
.ef-upload-line { display: flex; gap: 18px; align-items: center; margin-top: 14px; color: #52657d; }
.ef-upload-button, .ef-secondary, .ef-primary, .ef-add-work { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; padding: 0 24px; border: 1px solid #9eb0c8; border-radius: 8px; background: #fff; font-weight: 700; cursor: pointer; }
.ef-file-status { min-height: 0; margin-top: 10px; }
.ef-file-status:not(:empty), [data-file-status]:not(:empty) { color: #315d92; font-size: 14px; }
.ef-file-status-item { display: flex; align-items: center; gap: 5px; padding: 3px 0; overflow-wrap: anywhere; }
.ef-file-status button, [data-file-status] button { margin-left: 8px; border: 0; color: #7d2633; background: none; cursor: pointer; }
.ef-promo-list { margin-top: 22px; overflow: hidden; }
.ef-promo-row { display: grid; grid-template-columns: 210px 1fr 220px; gap: 14px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.ef-promo-row:last-child { border-bottom: 0; }
.ef-promo-row > div { grid-column: 2 / -1; margin-top: -6px; }
.ef-original-card { display: grid; grid-template-columns: 120px minmax(230px, 1fr) auto 34px minmax(180px, 1fr); gap: 12px; align-items: center; margin-top: 22px; padding: 18px; }
.ef-original-card p { margin: 0; font-size: 14px; }
.ef-original-card small { grid-column: 3 / -1; }
.ef-original-card > div { grid-column: 2 / -1; }
.ef-direct-toggle { display: flex; gap: 10px; align-items: center; margin: 22px 0 12px; font-weight: 700; }
.ef-direct-toggle input { width: 22px; height: 22px; }
.ef-direct-files { padding: 18px; background: var(--wash); }
.ef-direct-files > div { display: grid; grid-template-columns: 140px 230px 1fr; gap: 16px; align-items: center; padding: 6px 0; }
.ef-work-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 20px; margin-top: 24px; }
.ef-work-list { padding: 14px; }
.ef-work-list > div:first-child { display: flex; justify-content: space-between; margin-bottom: 12px; }
.ef-work-list-item { width: 100%; display: flex; justify-content: space-between; padding: 13px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; }
.ef-work-list-item.active { background: #dceafb; }
.ef-work-list-item .remove { border: 0; background: transparent; }
.ef-add-work { width: 100%; }
.ef-add-work-wide { margin: 18px 0; }
.ef-work-editor-card { padding: 18px; }
.ef-work-editor-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 46px; margin-bottom: 18px; }
.ef-work-editor-heading h2 { margin: 0; }
.ef-work-navigation { display: flex; flex: 0 0 auto; gap: 8px; }
.ef-work-navigation .ef-secondary { min-width: 42px; width: 42px; padding: 0; }
.ef-work-editor-body { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; }
.ef-work-image { min-height: 260px; display: grid; place-content: center; gap: 12px; padding: 18px; text-align: center; background: var(--wash); border-radius: 10px; }
.ef-work-image img { width: 100%; max-height: 220px; object-fit: contain; }
.ef-work-fields { display: grid; gap: 12px; }
.ef-work-fields label { grid-template-columns: 100px minmax(0, 1fr); align-items: center; }
.ef-price-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; }
.ef-price-row label { display: flex; grid-template-columns: none; gap: 6px; white-space: nowrap; }
.ef-price-row input[type=checkbox] { width: 20px; height: 20px; }
.ef-review-card { margin: 18px 0; overflow: hidden; }
.ef-review-card header { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: #dceafb; }
.ef-review-card header h2 { margin: 0; }
.ef-review-card header button { border: 0; color: #245a9a; background: transparent; font-weight: 700; cursor: pointer; }
.ef-review-card dl { margin: 0; padding: 8px 16px; }
.ef-review-card dl div { display: grid; grid-template-columns: 170px 1fr; padding: 7px; border-bottom: 1px solid #e4e9f0; }
.ef-review-card dt { font-weight: 700; }
.ef-review-card dd { margin: 0; word-break: break-word; }
.ef-review-status { color: #245a9a; font-weight: 700; }
.ef-review-works { width: calc(100% - 32px); margin: 10px 16px 16px; border-collapse: collapse; }
.ef-review-works th, .ef-review-works td { padding: 10px; border: 1px solid var(--line); text-align: left; }
.ef-review-works button { border: 1px solid #9eb0c8; border-radius: 6px; background: #fff; cursor: pointer; }
.ef-step-error { min-height: 22px; color: #aa2638; }
.ef-footer { position: sticky; bottom: 0; display: flex; gap: 14px; padding: 18px 0; margin-top: 20px; background: rgba(255,255,255,.96); border-top: 1px solid var(--line); }
.ef-footer-spacer { flex: 1; }
.ef-primary { min-width: 160px; color: #fff; background: var(--navy); border-color: var(--navy); }
.ef-secondary { min-width: 150px; }
.ef-complete { min-height: 100vh; display: grid; place-content: center; padding: 20px; text-align: center; background: #f7f9fc; }
.ef-complete > div { min-width: min(520px, calc(100vw - 40px)); padding: 60px 30px; background: #fff; border: 1px solid var(--line); border-radius: 18px; }
.ef-complete span { display: grid; width: 70px; height: 70px; place-content: center; margin: 0 auto 20px; color: #fff; background: linear-gradient(135deg, #78b4ef, #2366ad); border-radius: 50%; font-size: 40px; }
.ef-modal { position: fixed; inset: 0; z-index: 20; display: grid; place-content: center; padding: 20px; background: rgba(10, 29, 51, .5); }
.ef-modal-panel { position: relative; width: min(600px, calc(100vw - 40px)); max-height: 85vh; overflow: auto; padding: 26px; background: #fff; border-radius: 14px; }
.ef-modal-close { position: absolute; top: 10px; right: 12px; border: 0; background: transparent; font-size: 28px; cursor: pointer; }
.ef-confirm-panel { width: min(440px, calc(100vw - 40px)); text-align: center; }
.ef-confirm-panel h2 { margin: 0 0 12px; font-size: 22px; line-height: 1.35; }
.ef-confirm-panel p { margin: 0 0 22px; line-height: 1.6; }
.ef-confirm-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.ef-confirm-actions .ef-secondary, .ef-confirm-actions .ef-primary { min-width: 130px; }
.ef-work-modal-heading { padding-right: 36px; margin-bottom: 20px; }
.ef-work-modal-heading span { display: block; margin-bottom: 5px; color: #4278b5; font-size: 14px; font-weight: 700; }
.ef-work-modal-heading h2 { margin: 0; font-size: 25px; line-height: 1.3; }
.ef-work-modal-details { margin: 20px 0 0; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; }
.ef-work-modal-details div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 12px 14px; border-bottom: 1px solid #e4e9f0; }
.ef-work-modal-details div:last-child { border-bottom: 0; }
.ef-work-modal-details dt { font-weight: 700; }
.ef-work-modal-details dd { min-width: 0; margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }

@media (max-width: 760px) {
  .ef-app { width: 100%; min-height: 100vh; margin: 0; border: 0; border-radius: 0; }
  .ef-header { height: 58px; gap: 12px; padding: 0 14px; }
  .ef-brand { width: 160px; height: 25px; }
  .ef-header-divider { height: 22px; }
  .ef-autosave { display: none; }
  .ef-menu-button { display: block; }
  .ef-layout { display: block; min-height: auto; }
  .ef-sidebar { position: absolute; z-index: 10; top: 58px; left: 0; right: 0; display: none; padding: 8px 0; border-bottom: 1px solid var(--line); box-shadow: 0 12px 20px rgba(10,29,51,.12); }
  .ef-sidebar.open { display: block; }
  .ef-sidebar button { padding: 12px 20px; font-size: 16px; }
  .ef-content { padding: 16px 14px 0; }
  .ef-mobile-progress { display: block; margin-bottom: 20px; }
  .ef-mobile-progress > div:first-child { display: flex; justify-content: space-between; }
  .ef-progress-bars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-top: 10px; }
  .ef-progress-bars i { height: 7px; background: #d7e1ed; border-radius: 6px; }
  .ef-progress-bars i.done { background: #4278b5; }
  .ef-step-number { display: none; }
  .ef-step h1 { font-size: 27px; }
  .ef-subtitle { margin-bottom: 20px; }
  .ef-exhibition-card { margin: 20px 0; }
  .ef-exhibition-card dl div { grid-template-columns: 110px 1fr; padding: 12px; }
  .ef-exhibition-card p { padding: 12px; }
  .ef-field-grid { grid-template-columns: 1fr; gap: 14px; }
  .ef-upload-line { align-items: stretch; flex-direction: column; }
  .ef-promo-row { grid-template-columns: 1fr auto; gap: 4px 10px; }
  .ef-promo-row > span { grid-column: 1; }
  .ef-promo-row > label { grid-column: 2; grid-row: 1 / 3; }
  .ef-promo-row > div { grid-column: 1 / -1; margin: 3px 0 0; }
  .ef-original-card { grid-template-columns: 1fr 1fr; }
  .ef-original-card p, .ef-original-card input, .ef-original-card small, .ef-original-card > div { grid-column: 1 / -1; }
  .ef-original-card > span { text-align: center; }
  .ef-direct-files > div { grid-template-columns: 80px 1fr; }
  .ef-direct-files > div > span { grid-column: 1 / -1; }
  .ef-work-layout { display: block; }
  .ef-work-list { margin-bottom: 14px; }
  .ef-work-list #ef-work-list { display: none; }
  .ef-work-list .ef-add-work { display: none; }
  .ef-work-editor-body { grid-template-columns: 1fr; }
  .ef-work-editor-heading { align-items: flex-start; }
  .ef-work-fields label { grid-template-columns: 1fr; gap: 6px; }
  .ef-review-card dl div { grid-template-columns: 110px 1fr; }
  .ef-review-works th:nth-child(3), .ef-review-works td:nth-child(3) { display: none; }
  .ef-footer { gap: 8px; }
  .ef-footer button { flex: 1; min-width: 0; padding: 0 10px; }
}
