.vione-main {
  margin-left: 255px;
  padding: 30px;
}

.vione-json-editor-panel { padding: 22px; }
.vione-json-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.vione-json-actions { display: flex; align-items: center; gap: 10px; }
.vione-json-status { min-height: 20px; margin: 0; color: #64748b; font-size: 13px; }
.vione-json-status.is-error { color: #dc2626; }
.vione-json-form { display: grid; gap: 14px; }
.vione-json-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.vione-json-field { display: flex; flex-direction: column; gap: 7px; padding: 14px; border: 1px solid #e2e8f0; border-radius: 10px; background: #fff; }
.vione-json-field label, .vione-json-array-heading strong { color: #334155; font-size: 13px; }
.vione-json-field small, .vione-json-group summary small, .vione-json-array-heading small { display: block; margin-top: 3px; color: #94a3b8; font: 10px/1.3 ui-monospace, monospace; }
.vione-json-input { box-sizing: border-box; width: 100%; min-height: 40px; padding: 9px 11px; border: 1px solid #cbd5e1; border-radius: 7px; background: #fff; color: #1e293b; font-size: 13px; }
textarea.vione-json-input { min-height: 120px; resize: vertical; font-family: ui-monospace, monospace; line-height: 1.5; }
.vione-json-input:focus { border-color: #6366f1; outline: 3px solid rgba(99, 102, 241, .12); }
.vione-json-group, .vione-json-array { grid-column: 1 / -1; padding: 14px; border: 1px solid #dbe3ef; border-radius: 11px; background: #f8fafc; }
.vione-json-group summary { cursor: pointer; color: #1e293b; font-size: 15px; font-weight: 800; }
.vione-json-group > .vione-json-fields { margin-top: 14px; }
.vione-json-array-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.vione-json-array-item { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.vione-json-array-item > .vione-json-fields { flex: 1; }
.vione-json-remove { flex: 0 0 auto; padding: 8px 10px; border: 1px solid #fecaca; border-radius: 7px; background: #fff; color: #dc2626; cursor: pointer; }
@media (max-width: 900px) { .vione-json-fields { grid-template-columns: 1fr; } }

.vione-main .control-panel {
  margin: 0;
}

.vione-registration-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.vione-registration-header h1 {
  margin: 0 0 8px;
  color: #111827;
  font-size: 26px;
}

.vione-registration-header p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
}

.vione-registration-badge {
  flex: 0 0 auto;
  padding: 7px 11px;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  font-size: 12px;
  font-weight: 700;
}

.vione-registration-upload-action {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
}

.vione-registration-action-status {
  color: #475569;
  font-size: 13px;
}

.vione-registration-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border: 1px solid #2563eb;
  border-radius: 7px;
  color: #2563eb;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.vione-registration-download[hidden] {
  display: none;
}

.vione-registration-job-error {
  color: #b91c1c !important;
}

.vione-upcoming-table {
  width: 100%;
  border-collapse: collapse;
}

.vione-upcoming-table th,
.vione-upcoming-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #e5e7eb;
  color: #475569;
  font-size: 13px;
  text-align: left;
}

.vione-upcoming-table th {
  background: #f8fafc;
  color: #111827;
}

.vione-upcoming-table .empty-message {
  padding: 64px 20px;
  color: #64748b;
  text-align: center;
}

.vione-registration-products-table {
  width: 100%;
  min-width: 3740px;
  border-collapse: collapse;
  table-layout: fixed;
}

.vione-registration-products-table th,
.vione-registration-products-table td {
  padding: 13px 12px;
  border-bottom: 1px solid #e5e7eb;
  overflow: hidden;
  color: #475569;
  font-size: 13px;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vione-registration-products-table th {
  position: sticky;
  top: 0;
  background: #f8fafc;
  color: #111827;
  text-align: center;
  z-index: 1;
}

.vione-registration-products-table td.cell-center {
  text-align: center;
}

.vione-registration-products-table td.cell-right {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.vione-registration-products-table tbody td:nth-child(n + 5) {
  text-align: center;
}

.vione-registration-products-table .col-code { width: 90px; }
.vione-registration-products-table .col-date { width: 100px; }
.vione-registration-products-table .col-status { width: 80px; }
.vione-registration-products-table .col-name { width: 310px; }
.vione-registration-products-table .col-model { width: 150px; }
.vione-registration-products-table .col-type { width: 60px; }
.vione-registration-products-table .col-category { width: 330px; }
.vione-registration-products-table .col-price { width: 90px; }
.vione-registration-products-table .col-count { width: 85px; }
.vione-registration-products-table .col-sum-image { width: 110px; }
.vione-registration-products-table .col-option-name { width: 90px; }
.vione-registration-products-table .col-option-value { width: 240px; }
.vione-registration-products-table .col-option-price { width: 150px; }
.vione-registration-products-table .col-html { width: 260px; }
.vione-registration-products-table .col-register { width: 170px; }
.vione-registration-products-table .col-error { width: 180px; }
.vione-registration-products-table .col-updated { width: 135px; }

.vione-category-select {
  width: 100%;
  min-width: 0;
  padding: 7px 28px 7px 9px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  background: #fff;
  color: #334155;
  font: inherit;
}

.vione-category-selects {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 6px;
}

.vione-category-primary {
  width: 100%;
  min-width: 0;
  padding: 7px 28px 7px 9px;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  background: #fff;
  color: #334155;
  font: inherit;
}

.vione-category-select.is-dirty {
  border-color: #2563eb;
  background: #eff6ff;
}

.vione-register-product-button {
  padding: 7px 10px;
  border: 1px solid #2563eb;
  border-radius: 7px;
  background: #2563eb;
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.vione-register-product-button:disabled {
  border-color: #cbd5e1;
  background: #e2e8f0;
  color: #64748b;
  cursor: default;
}

.vione-bulk-register-button {
  padding: 8px 13px;
  border: 1px solid #166534;
  border-radius: 7px;
  background: #15803d;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.vione-bulk-register-button:disabled {
  border-color: #cbd5e1;
  background: #e2e8f0;
  color: #64748b;
  cursor: default;
}

.vione-bulk-progress {
  margin: -4px 0 18px;
  padding: 14px 16px;
  border: 1px solid #bbf7d0;
  border-radius: 9px;
  background: #f0fdf4;
}

.vione-bulk-progress-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
  color: #166534;
  font-size: 13px;
}

.vione-bulk-progress progress {
  display: block;
  width: 100%;
  height: 13px;
  accent-color: #16a34a;
}

.vione-bulk-progress-current {
  display: block;
  margin-top: 7px;
  overflow: hidden;
  color: #475569;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vione-naver-registration-result {
  display: grid;
  justify-items: center;
  gap: 5px;
}

.vione-naver-registration-result small {
  color: #64748b;
  font-size: 11px;
}

.vione-registration-products-table tbody tr:hover {
  background: #f8fafc;
}

.vione-registration-products-table tbody tr:last-child td {
  border-bottom: 0;
}

.vione-registration-products-table .empty-message {
  padding: 64px 20px;
  color: #64748b;
  text-align: center;
}

.vione-registration-products-panel {
  overflow: hidden;
}

.vione-registration-table-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vione-registration-count {
  padding: 6px 10px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
}

.vione-registration-code {
  color: #1d4ed8 !important;
  font-weight: 700;
}

.vione-html-preview-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #1d4ed8;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.vione-html-preview-dialog {
  width: min(1040px, calc(100% - 40px));
  height: min(860px, calc(100vh - 40px));
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
}

.vione-html-preview-dialog::backdrop {
  background: rgba(15, 23, 42, 0.55);
}

.vione-html-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #e2e8f0;
}

.vione-html-preview-header h2 { margin: 0; color: #111827; font-size: 18px; }
.vione-html-preview-header p { margin: 5px 0 0; color: #64748b; font-size: 12px; }

#vioneHtmlPreviewFrame {
  display: block;
  width: 100%;
  height: calc(100% - 76px);
  border: 0;
  background: #fff;
}

.vione-registration-work,
.vione-registration-product,
.vione-registration-option {
  display: grid;
  gap: 5px;
}

.vione-registration-work small,
.vione-registration-product span,
.vione-registration-option small {
  color: #94a3b8;
  font-size: 11px;
}

.vione-registration-product strong,
.vione-registration-product span,
.vione-registration-option span,
.vione-registration-option small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vione-registration-product strong {
  color: #111827;
}

.vione-registration-option strong {
  color: #334155;
  font-size: 12px;
}

.vione-registration-state,
.vione-registration-type {
  justify-self: start;
  padding: 4px 8px;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  font-size: 11px;
  font-weight: 700;
}

.vione-registration-state.is-error {
  background: #fee2e2;
  color: #b91c1c;
}

.vione-registration-type {
  background: #f1f5f9;
  color: #475569;
  text-transform: uppercase;
}

.vione-registration-price {
  color: #1d4ed8 !important;
  font-weight: 700;
}

.vione-registration-updated,
.vione-registration-empty {
  color: #94a3b8 !important;
  font-size: 12px;
}

.vione-sum-image-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
}

.vione-sum-image-status i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #94a3b8;
  box-shadow: 0 0 0 3px #e2e8f0;
}

.vione-sum-image-status a,
.vione-sum-image-status span {
  color: #64748b;
  text-decoration: none;
}

.vione-sum-image-status.is-found i { background: #22c55e; box-shadow: 0 0 0 3px #dcfce7; }
.vione-sum-image-status.is-found a { color: #15803d; }
.vione-sum-image-status.is-missing i { background: #ef4444; box-shadow: 0 0 0 3px #fee2e2; }
.vione-sum-image-status.is-missing a { color: #b91c1c; }

.vione-search-form {
  display: grid;
  grid-template-columns: minmax(260px, 520px) max-content;
  align-items: center;
  gap: 10px;
}

.vione-keyword {
  width: 100%;
  max-width: 520px;
}

.vione-reset-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  text-decoration: none;
}

.vione-main button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.vione-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.vione-summary-grid article {
  display: grid;
  gap: 7px;
  min-height: 88px;
  padding: 16px 18px;
  box-sizing: border-box;
  border: 1px solid #d7dde5;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
}

.vione-summary-grid span {
  color: #64748b;
  font-size: 12px;
}

.vione-summary-grid strong {
  color: #111827;
  font-size: 24px;
}

.vione-panel {
  max-width: 100%;
  min-width: 0;
  margin-top: 22px;
  padding: 24px;
  box-sizing: border-box;
  border: 1px solid #d7dde5;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.vione-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.vione-toolbar h2 {
  margin: 0 0 8px;
  color: #111827;
}

.vione-meta {
  margin: 0;
  color: #475569;
  font-size: 14px;
}

.vione-table-scroll {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-color: #94a3b8 #e2e8f0;
  scrollbar-width: auto;
}

.vione-table-scroll::-webkit-scrollbar {
  height: 14px;
}

.vione-table-scroll::-webkit-scrollbar-track {
  background: #e2e8f0;
  border-radius: 999px;
}

.vione-table-scroll::-webkit-scrollbar-thumb {
  border: 3px solid #e2e8f0;
  border-radius: 999px;
  background: #94a3b8;
}

.vione-table {
  width: 100%;
  min-width: 1380px;
  border-collapse: collapse;
  table-layout: fixed;
}

.vione-table thead {
  background: #e5e7eb;
}

.vione-table th,
.vione-table td {
  padding: 10px;
  border-bottom: 1px solid #ddd;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vione-table th {
  color: #111827;
  font-size: 13px;
  text-align: center;
}

.vione-table td {
  color: #334155;
  font-size: 13px;
}

.vione-table tbody tr:hover {
  background: #f8fafc;
}

.vione-table .col-image { width: 140px; }
.vione-table .col-channel { width: 125px; }
.vione-table .col-code { width: 95px; }
.vione-table .col-name { width: 300px; }
.vione-table .col-category { width: 230px; }
.vione-table .col-status { width: 80px; }
.vione-table .col-price { width: 90px; }
.vione-table .col-option { width: 75px; }

.vione-table .image-cell,
.vione-table .cell-center {
  text-align: center;
}

.vione-table .cell-right {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.vione-product-thumb {
  display: block;
  width: 120px;
  height: 120px;
  margin: 0 auto;
  object-fit: cover;
  border: 1px solid #d7dde5;
  border-radius: 8px;
  background: #f8fafc;
}

.vione-name-cell {
  color: #111827 !important;
  font-weight: 700;
}

.vione-category-cell {
  color: #64748b !important;
}

.vione-discount-price {
  color: #2563eb !important;
  font-weight: 700;
}

.vione-status {
  display: inline-block;
  padding: 5px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 11px;
  font-weight: 700;
}

.vione-status--sale {
  background: #dcfce7;
  color: #166534;
}

.vione-option-button {
  min-width: 54px;
  padding: 7px 9px;
  cursor: pointer;
}

.vione-table .empty-message {
  padding: 80px 20px;
  color: #64748b;
  text-align: center;
}

.vione-option-dialog {
  width: min(1080px, calc(100% - 40px));
  max-height: 85vh;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.22);
}

.vione-option-dialog::backdrop {
  background: rgba(15, 23, 42, 0.45);
}

.vione-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid #d7dde5;
}

.vione-dialog-header h2 {
  margin: 0;
  color: #111827;
  font-size: 20px;
}

.vione-dialog-header p {
  margin: 7px 0 0;
  color: #64748b;
  font-size: 13px;
}

#vioneOptionContent {
  padding: 20px 24px 26px;
}

.vione-dialog-table-wrap {
  max-height: 58vh;
  overflow: auto;
}

.vione-dialog-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.vione-dialog-table-wrap thead {
  position: sticky;
  top: 0;
  background: #e5e7eb;
}

.vione-dialog-table-wrap th,
.vione-dialog-table-wrap td {
  padding: 10px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .vione-main {
    margin-left: 235px;
    padding: 20px 16px;
  }

  .vione-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .vione-search-form {
    grid-template-columns: 1fr;
  }

}
