.admin-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(23, 63, 50, 0.08), transparent 30%),
    var(--paper);
}

.login-shell {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-card {
  width: min(440px, 100%);
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--shadow);
}

.login-card h1 {
  margin-bottom: 8px;
  font-size: 2.45rem;
}

.login-card > p {
  margin-bottom: 28px;
  color: var(--muted);
}

.admin-header {
  position: sticky;
  z-index: 30;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
}

.admin-header-inner {
  width: min(1120px, calc(100% - 36px));
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 auto;
}

.admin-brand {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
}

.admin-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.session-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border-radius: 999px;
  color: #7b541b;
  background: #fff1d7;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.session-badge::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c78c2d;
  content: "";
}

.session-badge.active {
  color: #1f6549;
  background: #e6f3eb;
}

.session-badge.active::before {
  background: #2e9467;
}

.text-button {
  padding: 7px 0;
  border: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.text-button:hover {
  color: var(--ink);
}

.admin-shell {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 42px 0 80px;
}

.admin-title-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.admin-title-row h1 {
  margin-bottom: 4px;
  font-size: 2.65rem;
}

.admin-title-row p {
  margin-bottom: 0;
  color: var(--muted);
}

.admin-quick-nav {
  position: sticky;
  z-index: 22;
  top: 84px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 22px;
  padding: 10px;
  border: 1px solid rgba(23, 63, 50, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 12px 32px rgba(24, 39, 31, 0.045);
  backdrop-filter: blur(14px);
}

.admin-tab-button {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--green);
  background: #fff;
  font-size: 0.84rem;
  font-weight: 900;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.admin-tab-button:hover {
  border-color: rgba(23, 63, 50, 0.18);
  background: var(--green-soft);
}

.admin-tab-button.is-active {
  color: #fff;
  border-color: var(--green);
  background: var(--green);
  box-shadow: 0 12px 28px rgba(23, 63, 50, 0.22);
}

.admin-tab-button:focus-visible {
  outline: 3px solid rgba(23, 63, 50, 0.22);
  outline-offset: 2px;
}

.admin-tab-panel {
  display: grid;
  gap: 18px;
}

.admin-tab-panel[hidden] {
  display: none !important;
}

.admin-tab-panel > .admin-panel:first-of-type,
.admin-tab-panel > .editor-card:first-of-type {
  margin-top: 0;
}

.editor-card {
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 14px 45px rgba(24, 39, 31, 0.06);
}

.admin-section-group {
  margin-bottom: 22px;
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid rgba(222, 223, 216, 0.95);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 14px 45px rgba(24, 39, 31, 0.045);
}

details.admin-section-group > summary {
  cursor: pointer;
  list-style-position: outside;
  color: var(--ink);
}

details.admin-section-group > summary span {
  display: inline-grid;
  gap: 3px;
}

details.admin-section-group > summary strong,
.group-heading h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
}

.admin-section-group > .admin-panel:first-of-type,
.admin-section-group > .editor-card:first-of-type {
  margin-top: 18px;
}

.common-operations {
  display: grid;
  gap: 18px;
}

.common-operations .admin-panel,
.common-operations .editor-card,
.common-operations .batch-import-panel,
.admin-section-group .admin-panel {
  margin-bottom: 0;
}

.group-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.group-heading h2 {
  margin: 0;
}

.group-heading > span {
  max-width: 420px;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: right;
}

.admin-panel {
  margin-bottom: 22px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 38px rgba(24, 39, 31, 0.055);
}

.admin-panel-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.admin-panel-heading.compact {
  margin-bottom: 14px;
}

.admin-panel-heading h2,
.management-panel > summary {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  font-size: 1.6rem;
  font-weight: 400;
}

.admin-panel-heading p {
  max-width: 680px;
  margin: 4px 0 0;
  color: var(--muted);
}

.quick-summary-panel {
  margin-bottom: 16px;
}

.quick-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.quick-summary-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid #dce2dc;
  border-radius: 16px;
  background: linear-gradient(135deg, #fff, #f8faf8);
}

.quick-summary-card span {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.quick-summary-card strong {
  display: block;
  margin-top: 8px;
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.4rem, 2.7vw, 2rem);
  font-weight: 400;
  line-height: 1;
}

.quick-summary-card.warning strong {
  color: #8a5b21;
}

.quick-summary-card.danger strong {
  color: var(--danger);
}

.analytics-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.analytics-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid #dce2dc;
  border-radius: 16px;
  background: #f8faf8;
}

.analytics-card span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.analytics-card strong {
  display: block;
  margin-top: 8px;
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 400;
  line-height: 1;
}

.analytics-rankings {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.analytics-rankings section {
  min-width: 0;
  padding: 14px;
  border: 1px solid #dce2dc;
  border-radius: 16px;
  background: #fff;
}

.analytics-rankings h3 {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 0.94rem;
}

.analytics-list {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.86rem;
}

.analytics-list-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid #eef1ed;
}

.analytics-list-row:first-child {
  border-top: 0;
}

.analytics-list-row strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analytics-list-row span {
  color: var(--green);
  font-weight: 900;
}

.analytics-advanced {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.86rem;
}

.analytics-advanced summary,
.management-panel > summary {
  cursor: pointer;
}

.analytics-advanced .button {
  margin-top: 12px;
}

.management-panel {
  overflow: hidden;
}

.management-panel > summary {
  list-style-position: outside;
}

.management-body {
  padding-top: 18px;
}

.management-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1.3fr) repeat(2, minmax(150px, 0.7fr));
  gap: 14px;
}

.bulk-toolbar {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid #dce2dc;
  border-radius: 16px;
  background: #fbfcfa;
}

.bulk-selection {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.88rem;
}

.bulk-selection label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
}

.bulk-actions-grid {
  display: grid;
  grid-template-columns: repeat(2, auto) minmax(240px, 1fr) minmax(220px, 0.85fr);
  gap: 10px;
  align-items: center;
}

.bulk-inline {
  display: flex;
  gap: 8px;
  min-width: 0;
}

.bulk-inline input,
.bulk-inline select {
  min-width: 0;
  flex: 1 1 auto;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid #ced2cd;
  border-radius: 999px;
  color: var(--ink);
  background: #fff;
}

.category-management-panel {
  margin-bottom: 18px;
}

.category-management-grid {
  display: grid;
  grid-template-columns: minmax(230px, 0.42fr) minmax(0, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.category-form-card {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 14px;
  border: 1px solid #dce2dc;
  border-radius: 16px;
  background: #fbfcfa;
}

.category-visible-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
}

.category-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-management-list {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.category-management-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.category-management-table th,
.category-management-table td {
  padding: 10px 9px;
  border-bottom: 1px solid #e5e9e5;
  text-align: left;
  vertical-align: middle;
}

.category-management-table th {
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.category-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.danger-text {
  color: #9f2f2f;
  border-color: #e3c5c5;
}

.product-management-list {
  margin-top: 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.management-page-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.management-page-toolbar .button {
  min-height: 34px;
  padding: 7px 11px;
}

.inline-select,
.inline-jump {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.inline-select select,
.inline-jump input {
  min-height: 34px;
  width: auto;
  min-width: 72px;
  padding: 6px 8px;
}

.inline-jump input {
  max-width: 80px;
}

.management-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.management-table th,
.management-table td {
  padding: 10px 9px;
  border-bottom: 1px solid #e5e9e5;
  text-align: left;
  vertical-align: middle;
}

.management-table th {
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.management-product {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.management-product img {
  width: 48px;
  height: 58px;
  flex: 0 0 auto;
  border-radius: 10px;
  object-fit: cover;
  background: #ecefe9;
}

.management-product strong,
.management-slug {
  display: block;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.management-product small {
  display: block;
  max-width: 220px;
  margin-top: 2px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.76rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.management-status {
  display: inline-flex;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  color: #1f6549;
  background: #e6f3eb;
  font-size: 0.74rem;
  font-weight: 900;
}

.management-status.inactive {
  color: #8a5b21;
  background: #fff1d7;
}

.management-status.out_of_stock {
  color: #8a5b21;
  background: #fff1d7;
}

.management-status.hidden {
  color: #5b6570;
  background: #eef1f2;
}

.quick-edit {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #cdd6cf;
  border-radius: 999px;
  color: var(--green);
  background: #fff;
  cursor: pointer;
  font-weight: 800;
}

.settings-grid,
.utm-builder-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.generated-url-row {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-top: 16px;
}

.generated-url-row input {
  min-width: 0;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid #ced2cd;
  border-radius: 999px;
  background: #fcfcfa;
}

.inquiry-admin-filters {
  display: grid;
  grid-template-columns: minmax(170px, 0.35fr) minmax(240px, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}

.inquiries-list {
  display: grid;
  gap: 12px;
}

.inquiry-record-card {
  min-width: 0;
  padding: 16px;
  border: 1px solid #dce2dc;
  border-radius: 18px;
  background: #fbfcfa;
}

.inquiry-record-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.inquiry-record-title {
  min-width: 0;
}

.inquiry-status-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #1f6549;
  background: #e6f3eb;
  font-size: 0.78rem;
  font-weight: 900;
}

.inquiry-status-badge.contacted {
  color: #275f84;
  background: #e5f0f8;
}

.inquiry-status-badge.quoted {
  color: #7a5520;
  background: #fff1d7;
}

.inquiry-status-badge.won {
  color: #fff;
  background: var(--green);
}

.inquiry-status-badge.lost,
.inquiry-status-badge.archived {
  color: #5b6570;
  background: #eef1f2;
}

.inquiry-record-main {
  display: grid;
  grid-template-columns: 0.8fr 0.9fr 1fr minmax(140px, 0.7fr);
  gap: 12px;
  align-items: start;
}

.inquiry-record-main > div,
.compact-field {
  min-width: 0;
}

.record-label,
.compact-field span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.inquiry-record-card strong,
.inquiry-record-card small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inquiry-record-card small {
  color: var(--muted);
  font-size: 0.78rem;
}

.compact-field select {
  min-height: 40px;
  padding: 0 10px;
}

.inquiry-record-products {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e8ece8;
}

.inquiry-product-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, auto) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #eef1ed;
  border-radius: 14px;
  background: #fff;
  color: var(--muted);
  font-size: 0.84rem;
}

.inquiry-product-line strong {
  color: var(--ink);
}

.inquiry-product-line a {
  color: var(--green);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.inquiry-record-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}

.inquiry-status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.inquiry-status-actions button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #cdd6cf;
  border-radius: 999px;
  color: var(--green);
  background: #fff;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
}

.inquiry-status-actions button:hover:not(:disabled) {
  background: var(--green-soft);
}

.inquiry-status-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.utm-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 5px;
}

.utm-chip {
  max-width: 160px;
  overflow: hidden;
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--green);
  background: #eef5f0;
  font-size: 0.72rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.export-body {
  display: grid;
  gap: 14px;
  padding-top: 16px;
}

.export-body p {
  margin: 0;
  color: var(--muted);
}

.export-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.backup-note {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 14px 14px 14px 30px;
  border: 1px solid #dce2dc;
  border-radius: 16px;
  color: var(--muted);
  background: #fbfcfa;
}

.backup-note code {
  color: var(--green);
  font-weight: 800;
}

.picker-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: end;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 21px;
  margin-top: 28px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label,
.field-label {
  color: #39443e;
  font-size: 0.86rem;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #ced2cd;
  border-radius: 13px;
  outline: none;
  color: var(--ink);
  background: #fcfcfa;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.flag-field {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
  padding-bottom: 4px;
}

.flag-field label {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid #d9dfda;
  border-radius: 999px;
  background: #fff;
  color: var(--green);
  font-weight: 800;
}

.flag-field input {
  width: auto;
  min-height: auto;
}

.field input,
.field select {
  min-height: 48px;
  padding: 0 14px;
}

.field textarea {
  min-height: 145px;
  padding: 13px 14px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(23, 63, 50, 0.09);
}

.field-hint {
  color: var(--muted);
  font-size: 0.78rem;
}

.template-link {
  color: var(--green);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.button.secondary {
  border-color: #bdc8c1;
  color: var(--green);
  background: #fff;
}

.button.danger {
  border-color: #9f2f2f;
  color: #fff;
  background: #9f2f2f;
}

.button.danger:hover:not(:disabled) {
  background: #842626;
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.upload-panel,
.sort-panel {
  margin-top: 30px;
  padding-top: 27px;
  border-top: 1px solid var(--line);
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.panel-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  font-weight: 400;
}

.panel-heading span {
  color: var(--muted);
  font-size: 0.8rem;
}

.upload-controls {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.file-input {
  min-height: 48px;
  padding: 10px;
  border: 1px dashed #b7c0ba;
  border-radius: 13px;
  background: #f8faf8;
}

.thumbnail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.image-card {
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 16px;
  background: #eef0ec;
  cursor: grab;
  touch-action: manipulation;
  user-select: none;
}

.image-card.main {
  border-color: var(--green);
}

.image-card.dragging {
  opacity: 0.35;
}

.image-card.drag-over {
  box-shadow: 0 0 0 3px rgba(166, 131, 78, 0.45);
}

.image-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.image-order {
  position: absolute;
  top: 8px;
  left: 8px;
  min-width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: rgba(23, 33, 28, 0.82);
  font-size: 0.76rem;
  font-weight: 800;
}

.main-label {
  position: absolute;
  top: 8px;
  right: 44px;
  padding: 5px 8px;
  border-radius: 999px;
  color: #fff;
  background: var(--green);
  font-size: 0.7rem;
  font-weight: 700;
}

.remove-image {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(159, 63, 55, 0.88);
  cursor: pointer;
}

.image-move-controls {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  padding: 8px;
  background: #fff;
}

.move-image {
  min-height: 38px;
  border: 1px solid #cdd6cf;
  border-radius: 999px;
  color: var(--green);
  background: #f7faf8;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 700;
}

.move-image:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.sort-empty {
  grid-column: 1 / -1;
  padding: 34px;
  border: 1px dashed #c8cdc8;
  border-radius: 15px;
  color: var(--muted);
  text-align: center;
}

.save-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 30px;
}

.message {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.message.success {
  color: #26714f;
}

.message.error {
  color: var(--danger);
}

.login-message {
  margin: 15px 0 0;
}

details.advanced {
  margin-top: 24px;
  color: var(--muted);
  font-size: 0.86rem;
}

details.advanced summary {
  cursor: pointer;
}

.batch-import-panel {
  margin-top: 28px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fbfcfa;
}

.batch-import-panel summary {
  cursor: pointer;
  color: var(--green);
  font-weight: 800;
}

.batch-import-body {
  padding-top: 18px;
}

.folder-picker-card {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid #d8ded7;
  border-radius: 16px;
  background: #fff;
}

.folder-picker-card .file-input {
  background: #f6faf7;
}

.folder-selection-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.folder-selection-note.active {
  color: #26714f;
  font-weight: 700;
}

.advanced-path-import {
  grid-column: 1 / -1;
  margin-top: 16px;
  padding: 13px 14px;
  border: 1px dashed #ccd4cf;
  border-radius: 14px;
  background: #fff;
}

.advanced-path-import summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.advanced-path-import .field {
  margin-top: 12px;
}

.batch-import-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.batch-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.batch-message {
  margin-top: 14px;
}

.batch-preview {
  margin-top: 14px;
}

.import-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 1px solid #d9ded8;
  border-radius: 14px;
  background: #fff;
  color: var(--muted);
}

.import-summary strong {
  color: var(--ink);
}

.import-warning-list {
  margin: 8px 0 12px;
  padding-left: 19px;
  color: #8a5b21;
  font-size: 0.82rem;
}

.import-warning-list.compact {
  margin-bottom: 0;
}

.import-preview-list {
  display: grid;
  gap: 12px;
}

.import-preview-card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 14px;
  padding: 12px;
  border: 1px solid #d9ded8;
  border-radius: 16px;
  background: #fff;
}

.import-preview-card.skipped {
  opacity: 0.72;
}

.import-preview-image {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 13px;
  color: var(--muted);
  background: #ecefe9;
  font-size: 0.72rem;
  text-align: center;
}

.import-preview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.import-preview-copy {
  min-width: 0;
}

.import-preview-copy h3 {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 1rem;
}

.import-preview-copy p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.82rem;
}

.import-preview-copy dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 12px;
  margin: 0;
}

.import-preview-copy dl div {
  min-width: 0;
}

.import-preview-copy dt {
  color: var(--muted);
  font-size: 0.72rem;
}

.import-preview-copy dd {
  margin: 0;
  color: var(--ink);
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.wgstores-bulk-toolbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid #cfd8d2;
  border-radius: 14px;
  background: #f8faf7;
  box-shadow: 0 10px 24px rgba(35, 44, 38, 0.08);
}

.wgstores-toolbar-heading,
.wgstores-toolbar-row,
.wgstores-toolbar-actions,
.wgstores-inline-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.wgstores-toolbar-heading {
  justify-content: space-between;
}

.wgstores-toolbar-heading strong {
  display: block;
  color: var(--ink);
  font-size: 1rem;
}

.wgstores-toolbar-heading span,
.wgstores-row-meta {
  color: var(--muted);
  font-size: 0.8rem;
}

.wgstores-toolbar-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(128px, 1fr));
  gap: 10px;
  align-items: end;
}

.field.compact {
  margin: 0;
}

.field.compact label {
  margin-bottom: 4px;
  font-size: 0.72rem;
}

.field.compact input,
.field.compact select,
.field.compact textarea {
  min-height: 36px;
  padding: 8px 9px;
}

.field.compact textarea {
  min-height: 72px;
}

.wgstores-preview-list {
  display: grid;
  gap: 8px;
}

.wgstores-preview-row {
  display: grid;
  grid-template-columns: 28px 64px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px;
  border: 1px solid #d9ded8;
  border-radius: 12px;
  background: #fff;
}

.wgstores-preview-row.skipped {
  opacity: 0.72;
}

.wgstores-row-check {
  display: grid;
  place-items: center;
  min-height: 64px;
}

.wgstores-row-image {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 10px;
  background: #ecefe9;
  color: var(--muted);
  font-size: 0.7rem;
  text-align: center;
}

.wgstores-row-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wgstores-row-main {
  min-width: 0;
}

.wgstores-row-fields {
  display: grid;
  grid-template-columns: minmax(110px, 0.7fr) minmax(180px, 1.4fr) minmax(100px, 0.6fr) minmax(130px, 0.8fr);
  gap: 8px;
  align-items: end;
}

.wgstores-row-fields .title-field {
  min-width: 0;
}

.wgstores-row-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.wgstores-row-details {
  margin-top: 6px;
  color: var(--muted);
}

.wgstores-row-details summary {
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
}

.wgstores-details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.wgstores-details-grid .full {
  grid-column: 1 / -1;
}

.wgstores-details-grid strong {
  display: block;
  color: var(--ink);
  font-size: 0.72rem;
}

.wgstores-details-grid span {
  display: block;
  overflow-wrap: anywhere;
  font-size: 0.78rem;
}

.wgstores-v2-marker {
  display: inline-flex;
  align-items: center;
  margin: 0 0 10px;
  padding: 5px 9px;
  border: 1px solid #b9c9bf;
  border-radius: 999px;
  background: #eef6f0;
  color: #26714f;
  font-size: 0.78rem;
  font-weight: 900;
}

.wgstores-source-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0 12px;
}

.wgstores-source-summary span {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  padding: 8px;
  border: 1px solid #d9ded8;
  border-radius: 8px;
  background: #f8faf7;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.wgstores-source-summary strong {
  color: var(--ink);
  font-size: 0.74rem;
}

.wgstores-table-wrap {
  overflow-x: auto;
  border: 1px solid #d9ded8;
  border-radius: 12px;
  background: #fff;
}

.wgstores-job-progress {
  display: grid;
  gap: 8px;
  margin: 10px 0 12px;
  padding: 12px;
  border: 1px solid #d9ded8;
  border-radius: 12px;
  background: #fff;
  color: var(--muted);
  font-size: 0.82rem;
}

.wgstores-job-progress.is-running {
  border-color: #9fb9ab;
  background: #f6fbf7;
}

.wgstores-job-progress.is-empty {
  display: none;
}

.wgstores-job-progress-head,
.wgstores-job-metrics {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.wgstores-job-progress-head {
  justify-content: space-between;
}

.wgstores-job-progress-head strong {
  color: var(--ink);
}

.wgstores-job-progress p,
.wgstores-job-progress ul {
  margin: 0;
}

.wgstores-progress-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e4eae4;
}

.wgstores-progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #26714f;
  transition: width 0.25s ease;
}

.wgstores-edit-table {
  width: 100%;
  min-width: 1120px;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.8rem;
}

.wgstores-edit-table th,
.wgstores-edit-table td {
  padding: 7px 8px;
  border-bottom: 1px solid #edf0ec;
  vertical-align: middle;
  text-align: left;
}

.wgstores-edit-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f8faf7;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.wgstores-edit-table tr:last-child td {
  border-bottom: 0;
}

.wgstores-edit-table tr.skipped {
  opacity: 0.7;
}

.wgstores-edit-table th:nth-child(1),
.wgstores-edit-table td:nth-child(1) {
  width: 44px;
  text-align: center;
}

.wgstores-edit-table th:nth-child(2),
.wgstores-edit-table td:nth-child(2) {
  width: 62px;
}

.wgstores-edit-table th:nth-child(3),
.wgstores-edit-table td:nth-child(3) {
  width: 130px;
}

.wgstores-edit-table th:nth-child(4),
.wgstores-edit-table td:nth-child(4) {
  width: 280px;
}

.wgstores-edit-table th:nth-child(5),
.wgstores-edit-table td:nth-child(5) {
  width: 110px;
}

.wgstores-edit-table th:nth-child(6),
.wgstores-edit-table td:nth-child(6) {
  width: 140px;
}

.wgstores-edit-table th:nth-child(7),
.wgstores-edit-table td:nth-child(7),
.wgstores-edit-table th:nth-child(8),
.wgstores-edit-table td:nth-child(8),
.wgstores-edit-table th:nth-child(9),
.wgstores-edit-table td:nth-child(9) {
  width: 78px;
}

.wgstores-edit-table th:nth-child(10),
.wgstores-edit-table td:nth-child(10) {
  width: 118px;
}

.wgstores-edit-table input,
.wgstores-edit-table select {
  width: 100%;
  min-height: 32px;
  padding: 6px 8px;
  border-radius: 8px;
  font-size: 0.78rem;
}

.wgstores-table-thumb {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 8px;
  background: #ecefe9;
  color: var(--muted);
  font-size: 0.68rem;
  text-align: center;
}

.wgstores-table-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wgstores-select-cell input {
  width: 17px;
  height: 17px;
}

.wgstores-table-details summary {
  cursor: pointer;
  color: #26714f;
  font-size: 0.76rem;
  font-weight: 900;
  white-space: nowrap;
}

.wgstores-table-details[open] {
  min-width: 460px;
}

.wgstores-table-details .wgstores-details-grid {
  min-width: 440px;
  padding: 9px;
  border: 1px solid #e2e7e1;
  border-radius: 10px;
  background: #fbfcfa;
}

.batch-import-grid.nested {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #e4e9e2;
}

.wgstores-advanced-options {
  padding: 8px 10px;
  border: 1px solid #d9ded8;
  border-radius: 8px;
  background: #fbfcfa;
}

.wgstores-advanced-options summary,
.wgstores-debug-details summary {
  cursor: pointer;
  color: #26714f;
  font-size: 0.8rem;
  font-weight: 900;
}

.wgstores-flow-steps {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 6px 0 10px;
}

.wgstores-flow-steps span {
  padding: 5px 8px;
  border: 1px solid #d8dfd7;
  border-radius: 999px;
  background: #f8faf7;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.wgstores-flow-steps .active {
  border-color: #26714f;
  background: #eef6f0;
  color: #26714f;
}

.wgstores-flow-steps .done {
  color: var(--ink);
}

.wgstores-step-card,
.wgstores-list-head,
.wgstores-drafts-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0;
}

.wgstores-step-card,
.wgstores-drafts-panel {
  padding: 12px;
  border: 1px solid #d9ded8;
  border-radius: 8px;
  background: #fff;
}

.wgstores-list-head strong,
.wgstores-drafts-head strong,
.wgstores-step-card strong {
  display: block;
  color: var(--ink);
}

.wgstores-list-head span,
.wgstores-drafts-head span,
.wgstores-step-card span {
  color: var(--muted);
  font-size: 0.8rem;
}

.wgstores-debug-details {
  margin: 6px 0 10px;
}

.wgstores-debug-details .wgstores-source-summary {
  margin-top: 8px;
}

.wgstores-bulk-toolbar {
  position: static;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px;
  border-radius: 8px;
  box-shadow: none;
}

.wgstores-page-size {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.wgstores-page-size select {
  min-height: 32px;
  padding: 5px 7px;
}

.wgstores-bulk-panel {
  position: fixed;
  top: 88px;
  right: 18px;
  z-index: 80;
  width: min(520px, calc(100vw - 36px));
  max-height: calc(100vh - 112px);
  overflow: auto;
  padding: 14px;
  border: 1px solid #b9c9bf;
  border-radius: 8px;
  background: #f8fbf8;
  box-shadow: 0 22px 58px rgba(34, 48, 38, 0.22);
}

.wgstores-bulk-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.wgstores-bulk-panel-head strong {
  display: block;
  color: var(--ink);
}

.wgstores-bulk-panel-head span {
  color: var(--muted);
  font-size: 0.8rem;
}

.wgstores-bulk-panel-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: start;
}

.wgstores-bulk-panel-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.wgstores-edit-table.compact {
  min-width: 980px;
  font-size: 0.76rem;
}

.wgstores-edit-table.compact th,
.wgstores-edit-table.compact td {
  padding: 5px 7px;
}

.wgstores-edit-table.compact input,
.wgstores-edit-table.compact select {
  min-height: 28px;
  padding: 4px 6px;
}

.wgstores-edit-table.compact .wgstores-table-thumb {
  width: 42px;
  height: 42px;
}

.wgstores-edit-table.compact th:nth-child(1),
.wgstores-edit-table.compact td:nth-child(1) {
  width: 40px;
}

.wgstores-edit-table.compact th:nth-child(2),
.wgstores-edit-table.compact td:nth-child(2) {
  width: 54px;
}

.wgstores-edit-table.compact th:nth-child(3),
.wgstores-edit-table.compact td:nth-child(3) {
  width: 125px;
}

.wgstores-edit-table.compact th:nth-child(4),
.wgstores-edit-table.compact td:nth-child(4) {
  width: 300px;
}

.wgstores-edit-table.compact th:nth-child(5),
.wgstores-edit-table.compact td:nth-child(5) {
  width: 105px;
}

.wgstores-edit-table.compact th:nth-child(6),
.wgstores-edit-table.compact td:nth-child(6) {
  width: 130px;
}

.wgstores-edit-table.compact th:nth-child(7),
.wgstores-edit-table.compact td:nth-child(7),
.wgstores-edit-table.compact th:nth-child(8),
.wgstores-edit-table.compact td:nth-child(8) {
  width: 80px;
}

.wgstores-edit-table.compact th:nth-child(9),
.wgstores-edit-table.compact td:nth-child(9) {
  width: 92px;
}

.wgstores-draft-box {
  margin-top: 14px;
}

.wgstores-drafts-panel .wgstores-table-wrap {
  margin-top: 10px;
}

.wgstores-drafts-table strong {
  display: block;
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1024px) {
  .admin-header-inner,
  .admin-shell {
    width: min(100% - 32px, 980px);
  }

  .analytics-cards,
  .quick-summary-grid,
  .analytics-rankings {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .wgstores-toolbar-grid,
  .wgstores-source-summary,
  .wgstores-row-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bulk-inline {
    grid-column: 1 / -1;
  }

  .inquiry-record-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inquiry-product-line {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .inquiry-product-line a {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .admin-header-inner,
  .admin-shell {
    width: min(100% - 24px, 980px);
  }

  .admin-header-inner {
    min-height: 66px;
    gap: 10px;
  }

  .admin-brand {
    font-size: 1.12rem;
  }

  .admin-actions {
    gap: 9px;
  }

  .session-badge {
    max-width: none;
    padding: 7px 10px;
  }

  .admin-shell {
    padding: 32px 0 64px;
  }

  .admin-title-row {
    align-items: start;
    flex-direction: column;
    gap: 14px;
  }

  .admin-title-row h1 {
    font-size: clamp(2.1rem, 10.5vw, 2.65rem);
    line-height: 1.05;
  }

  .admin-title-row .button {
    width: 100%;
  }

  .editor-card {
    padding: 21px;
    border-radius: 22px;
  }

  .admin-panel {
    padding: 20px;
    border-radius: 21px;
  }

  .admin-panel-heading {
    flex-direction: column;
  }

  .admin-panel-heading .button {
    width: 100%;
  }

  .analytics-cards,
  .quick-summary-grid,
  .analytics-rankings,
  .category-management-grid,
  .management-filters,
  .bulk-actions-grid,
  .settings-grid,
  .utm-builder-grid,
  .inquiry-admin-filters,
  .inquiry-record-main,
  .generated-url-row {
    grid-template-columns: 1fr;
  }

  .bulk-selection {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-quick-nav {
    top: 74px;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
    border-radius: 22px;
  }

  .admin-tab-button {
    flex: 0 0 auto;
    min-width: max-content;
  }

  .group-heading,
  .inquiry-record-topline {
    align-items: flex-start;
    flex-direction: column;
  }

  .group-heading > span {
    text-align: left;
  }

  .bulk-inline {
    flex-direction: column;
  }

  .bulk-actions-grid .button,
  .bulk-inline .button,
  .generated-url-row .button,
  .export-actions .button,
  .inquiry-record-actions .button {
    width: 100%;
  }

  .inquiry-product-line {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .inquiry-record-actions {
    justify-content: stretch;
  }

  .inquiry-status-actions,
  .inquiry-record-actions {
    flex-direction: column;
  }

  .inquiry-status-actions button {
    width: 100%;
  }

  .export-actions {
    flex-direction: column;
  }

  .picker-row,
  .upload-controls {
    grid-template-columns: 1fr;
  }

  .picker-row {
    padding-bottom: 24px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 24px;
  }

  .field.full {
    grid-column: auto;
  }

  .thumbnail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .panel-heading {
    align-items: start;
    flex-direction: column;
    gap: 6px;
  }

  .panel-heading h2 {
    font-size: 1.36rem;
  }

  .field input,
  .field select {
    min-height: 50px;
  }

  .field textarea {
    min-height: 132px;
  }

  .file-input,
  .upload-controls .button {
    width: 100%;
  }

  .image-move-controls {
    display: grid;
  }

  .save-row {
    position: sticky;
    z-index: 20;
    bottom: 0;
    align-items: stretch;
    flex-direction: column;
    margin: 28px -21px -21px;
    padding: 14px 21px calc(14px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    border-radius: 0 0 22px 22px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
  }

  .save-row .button {
    width: 100%;
  }

  .message {
    font-size: 0.82rem;
  }

  .batch-import-grid,
  .wgstores-source-summary,
  .import-preview-copy dl {
    grid-template-columns: 1fr;
  }

  .batch-actions {
    flex-direction: column;
  }

  .batch-actions .button {
    width: 100%;
  }

  .management-table {
    min-width: 690px;
  }

  .category-management-table {
    min-width: 680px;
  }
}

@media (max-width: 480px) {
  .login-shell {
    padding: 16px;
    place-items: center;
  }

  .login-card {
    padding: 32px 28px;
    border-radius: 24px;
  }

  .login-card h1 {
    font-size: clamp(2rem, 11vw, 2.45rem);
  }

  .admin-header-inner,
  .admin-shell {
    width: min(100% - 24px, 980px);
  }

  .admin-brand {
    font-size: 1.04rem;
  }

  .admin-actions {
    gap: 8px;
  }

  .session-badge {
    font-size: 0.72rem;
  }

  .text-button {
    font-size: 0.88rem;
    white-space: nowrap;
  }

  .editor-card {
    padding: 20px;
  }

  .admin-panel {
    padding: 18px;
  }

  .batch-import-panel {
    padding: 16px;
  }

  .thumbnail-grid {
    gap: 10px;
  }

  .image-order {
    min-width: 26px;
    height: 26px;
    font-size: 0.72rem;
  }

  .main-label {
    right: 40px;
    font-size: 0.66rem;
  }

  .remove-image {
    width: 27px;
    height: 27px;
  }
}

@media (max-width: 360px) {
  .login-shell {
    padding: 10px;
  }

  .login-card {
    padding: 26px 22px;
  }

  .admin-header-inner,
  .admin-shell {
    width: min(100% - 18px, 980px);
  }

  .admin-header-inner {
    min-height: 60px;
  }

  .admin-brand {
    font-size: 0.96rem;
  }

  .session-badge {
    padding: 6px 8px;
    font-size: 0.66rem;
  }

  .text-button {
    font-size: 0.8rem;
  }

  .editor-card {
    padding: 16px;
  }

  .thumbnail-grid {
    grid-template-columns: 1fr;
  }

  .image-card {
    width: 100%;
    max-width: 240px;
    justify-self: center;
  }

  .save-row {
    margin: 24px -16px -16px;
    padding-inline: 16px;
  }

  .import-summary,
  .import-preview-card {
    grid-template-columns: 1fr;
  }

  .import-preview-image {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
  }
}
