.classowl-modal-form.fullscreen {
  --bg-page:           #fafafa;
  --bg-surface:        #ffffff;
  --bg-hover:          #fafafa;
  --border-subtle:     #f5f5f5;
  --border-default:    #e9eaeb;
  --border-strong:     #d5d7da;
  --text-primary:      #282828;
  --text-body:         #414651;
  --text-secondary:    #535862;
  --text-muted:        #717680;
  --text-disabled:     #a4a7ae;
  --color-accent:      #228dcf;
  --color-accent-bg:   #eff4ff;
  --color-success-bg:  #dcfae6;
  --color-success:     #079455;
  --shadow-sm:         0 1px 2px rgba(10,13,18,0.05);
  --radius-sm:  3px;
  --radius-md:  3px;
  --radius-lg:  5px;
  --radius-xl:  3px;
  --radius-2xl: 5px;
  --radius-3xl: 5px;
}

.classowl-modal-form.fullscreen {
  display: none;
  flex-direction: column;
  position: fixed;
  inset: 0;
  width: 100vw !important;
  height: 100vh !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  border-radius: 0 !important;
}

.classowl-modal-form.fullscreen.modal-open,
.classowl-modal-form.fullscreen[style*="display: block"],
.classowl-modal-form.fullscreen[style*="display:block"] {
  display: flex;
}

.classowl-modal-form.fullscreen > .container {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  max-width: none !important;
  max-height: none !important;
  border-radius: 0 !important;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.classowl-modal-form.fullscreen .form-close {
  flex-shrink: 0;
  position: absolute;
  top: 32px;
}

.classowl-modal-form.fullscreen .form-title {
  flex-shrink: 0;
  padding: 12px 12px 10px;
}

.classowl-modal-form.fullscreen .form-inner {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin: 0;
}

.modal-overlay:has(.classowl-modal-form.fullscreen) {
  padding: 0 !important;
  align-items: stretch !important;
  justify-content: stretch !important;
}

.wizard-body {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 400px 1fr;
  align-items: stretch;
  overflow: hidden;
}

.wizard-body__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wizard-body__title span {
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  color: var(--text-primary);
}

.wizard-steps {
  min-height: 0;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-page);
  border-right: 1px solid var(--border-subtle);
  height: 100%;
  overflow-y: auto;
}

.wizard-acc {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-3xl);
  padding: 8px;
  transition: box-shadow .2s, border-color .2s, background .2s;
}

.wizard-acc[data-open="true"] {
  background: var(--bg-surface);
  border-color: var(--border-default);
  box-shadow: var(--shadow-sm);
}

.wizard-acc[data-open="false"] {
  border-color: var(--border-strong);
}

.wizard-acc[data-disabled="true"] .wizard-acc-header { cursor: not-allowed; }
.wizard-acc[data-disabled="true"] .wizard-acc-header:hover { background: transparent; }
.wizard-acc[data-disabled="true"] .wizard-step-title,
.wizard-acc[data-disabled="true"] .wizard-step-desc { color: var(--text-disabled); }
.wizard-acc[data-disabled="true"] .wizard-step-dot { opacity: .35; }
.wizard-acc[data-disabled="true"] .wizard-acc-chev { color: var(--text-disabled); }

.wizard-acc-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border-radius: var(--radius-xl);
  width: 100%;
  text-align: left;
  border: none;
  background: var(--bg-page);
  transition: background .15s;
}

.wizard-step-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  background: var(--border-subtle);
  border: 1px solid var(--border-strong);
  color: var(--text-disabled);
}

.wizard-step-dot .dot-done { display: none; }

.wizard-acc[data-status="done"] .wizard-step-dot {
  background: var(--color-success-bg);
  border-color: var(--color-success-bg);
  color: var(--color-success);
}

.wizard-acc[data-status="done"] .wizard-step-dot .dot-pending { display: none; }
.wizard-acc[data-status="done"] .wizard-step-dot .dot-done    { display: block; }

.wizard-step-text {
  flex: 1;
  min-width: 0;
}

.wizard-step-title {
  display: block;
  font-size: 20px;
  line-height: 30px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.wizard-step-desc {
  display: block;
  font-size: 14px;
  line-height: 20px;
  color: var(--text-secondary);
  margin-top: 2px;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wizard-acc[data-open="false"][data-status="done"] .wizard-step-desc {
  color: var(--text-body);
}

.wizard-acc-chev {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: transform .25s;
  flex-shrink: 0;
}

.wizard-acc[data-open="true"] .wizard-acc-chev { transform: rotate(180deg); }

.wizard-acc-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height .3s ease;
}

.wizard-acc[data-open="true"] .wizard-acc-body { max-height: 2000px; }

.wizard-acc-body-inner {
  padding: 24px 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.wizard-step-next,
.wizard-submit { align-self: flex-start; }

.wizard-step-next[disabled] { opacity: .5; cursor: default; }

.wizard-preview {
  min-height: 0;
  height: calc(100vh - 120px);
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg-page);
}

.wizard-preview__frame {
  display: block;
  width: max-content;
  min-width: 100%;
  height: calc(100vh - 120px);
  border: none;
  flex-shrink: 0;
  background: #fff;
  box-shadow: 0 1px 2px rgba(10,13,18,0.04), 0 16px 40px -16px rgba(10,13,18,0.08);
}

.wizard-preview--loading {
  opacity: .4;
  pointer-events: none;
}

.wizard-preview-count {
  flex-shrink: 0;
  align-self: flex-start;
  margin-bottom: 12px;
  padding: 4px 10px;
  border-radius: 5px;
  background: #fff;
  border: 1px solid #e9eaeb;
  font-size: 12px;
  color: #535862;
}

.wizard-preview-count[hidden] {
  display: none;
}

.wizard-preview__excel {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--text-disabled);
}

.wizard-preview__excel-icon svg {
  width: 48px;
  height: 48px;
  color: #079455;
}

.wizard-preview__excel-text {
  font-size: 14px;
  color: var(--text-secondary);
  text-align: center;
}

.wizard-preview__empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text-disabled);
}

.wizard-preview-placeholder {
  height: 100%;
  width: 100%;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;

  padding-bottom: 10%;

  position: relative;
  z-index: 1;
}

@media (max-width: 1100px) {
  .wizard-body { grid-template-columns: 360px 1fr; }
}

.wizard-preview-placeholder[hidden] {
  display: none;
}


.wizard-preview-placeholder:after {
  content: '';
  background: var(--background);

  display: flex;
  width: 480px;
  height: 480px;

  position: absolute;
  z-index: -1;
  top: 45%;
}

.wizard-preview-placeholder img {
  width: 220px;
  height: 160px;
}

.wizard-preview-placeholder__title {
  font-weight: 600;
  font-size: 20px;
  line-height: 30px;
  text-align: center;

  color: #181D27;

  padding-top: 16px;
}

.wizard-preview-placeholder__description {
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  text-align: center;

  color: #535862;
}

@media (max-width: 1100px) {
  .wizard-body { grid-template-columns: 360px 1fr; }
}

@media (max-width: 640px) {
  .wizard-body { grid-template-columns: 1fr; overflow-y: auto; }
  .wizard-steps { border-right: 0; border-bottom: 1px solid var(--border-subtle); }
  .wizard-preview { display: none; }
}
