@import url("../../admin/css/admin.css?v=20260916a");
@import url("../../admin/css/data-table.css?v=20260913pl");
@import url("../../mobile/css/smm-fonts.css?v=20260913pl");

:root {
  --primary: #af101a;
  --seller-rail: 15.5rem;
}

body.seller-app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-width: 0;
}

.seller-layout {
  display: flex;
  flex: 1;
  min-width: 0;
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
}

.seller-nav {
  flex: 0 0 var(--seller-rail);
  background: #fff;
  border-right: 1px solid #e4beba;
  padding: .75rem;
  min-width: 0;
}

.seller-nav a {
  display: flex;
  align-items: center;
  gap: .65rem;
  min-height: 44px;
  padding: .45rem .7rem;
  border-radius: 10px;
  color: #1b1c1c;
  text-decoration: none;
  font-weight: 600;
  font-size: .92rem;
}

.seller-nav a:hover,
.seller-nav a.is-on {
  background: rgba(175, 16, 26, .08);
  color: var(--primary);
}

.seller-nav a i,
.seller-nav a .material-symbols-outlined {
  flex: 0 0 1.35rem;
  width: 1.35rem;
  font-size: 1rem;
  line-height: 1;
  text-align: center;
}
.seller-nav a span {
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.3;
}

.seller-main {
  flex: 1;
  min-width: 0;
  padding: 1rem;
}

.seller-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: .75rem;
}

.seller-kpi {
  background: #fff;
  border-radius: 12px;
  padding: .85rem 1rem;
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
  min-width: 0;
}

.seller-kpi .seller-kpi-label {
  display: block;
  font-size: .8rem;
  color: #5d5f5f;
}

.seller-kpi .seller-kpi-value {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  overflow-wrap: anywhere;
}

.seller-form {
  display: grid;
  gap: .65rem;
  max-width: 40rem;
}

.seller-app .card h3 {
  margin: 1.35rem 0 .45rem;
  color: var(--primary);
  font-size: 1.05rem;
  font-weight: 700;
}

.seller-form label,
.card label {
  display: block;
  font-size: .875rem;
}

.seller-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.seller-form select,
.seller-form textarea,
.card input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.card select,
.card textarea {
  display: block;
  width: 100%;
  max-width: 28rem;
  margin-top: .25rem;
  padding: .5rem .65rem;
  border: 1px solid #e4beba;
  border-radius: 8px;
  font: inherit;
}

.seller-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
}

.seller-actions button,
.btn-primary,
.card button,
.seller-auth-submit {
  min-height: 44px;
  min-width: 44px;
  padding: .55rem 1rem;
  border: 0;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
}
.seller-actions button i,
.btn-primary i,
.card button i,
.seller-auth-submit i {
  flex: 0 0 1.15rem;
  width: 1.15rem;
  line-height: 1;
  text-align: center;
}

.btn-ghost {
  background: #fff !important;
  color: var(--primary) !important;
  border: 1px solid #e4beba !important;
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

.seller-shop-chip {
  margin-left: auto;
  background: rgba(255,255,255,.18);
  border-radius: 999px;
  padding: .4rem .85rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-weight: 700;
}

.seller-nav-toggle,
.seller-logout,
.seller-more-btn {
  min-height: 44px;
  min-width: 44px;
  display: none;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
}

.seller-logout {
  color: inherit;
  text-decoration: none;
  padding: 0 .6rem;
}

.seller-nav-overlay {
  display: none;
}

.seller-bottom-nav {
  display: none;
}

.seller-hours {
  border: 1px solid #e4beba;
  border-radius: 12px;
  padding: .75rem;
  min-width: 0;
}

.seller-hours-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}

.seller-hours input[type="time"] {
  width: 100%;
  max-width: none;
  min-height: 44px;
  padding-inline: .65rem 2.35rem;
}

.seller-hours-allday,
.seller-form label.seller-hours-allday,
.card label.seller-hours-allday {
  display: flex;
  align-items: center;
  gap: .55rem;
  min-height: 44px;
  margin: 0 0 .65rem;
  width: 100%;
  max-width: none;
}
.seller-hours-allday input[type="checkbox"] {
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem;
  min-width: 1.25rem;
  min-height: 1.25rem;
  max-width: 1.25rem;
  max-height: 1.25rem;
  flex: 0 0 1.25rem;
  margin: 0;
  accent-color: #af101a;
}
.seller-hours-allday span {
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.seller-auth {
  min-height: 100dvh;
  background: #fbf9f8;
  color: #1b1c1c;
}

.seller-auth-shell {
  width: min(100%, 28rem);
  margin: 0 auto;
  padding: 2rem 1rem 2.5rem;
  min-width: 0;
}

.seller-auth-wide {
  width: min(100%, 36rem);
}

.seller-auth-brand {
  text-align: center;
  margin-bottom: 1.25rem;
}

.seller-auth-brand h1 {
  color: #af101a;
  font-size: 1.35rem;
  font-weight: 800;
  margin: .75rem 0 .25rem;
}

.seller-auth-brand p,
.seller-auth-hint,
.seller-auth-privacy,
.seller-auth-switch,
.seller-auth-alt {
  color: #5d5f5f;
  line-height: 1.5;
}

.seller-auth-card {
  background: #fff;
  border: 1px solid #e4beba;
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 4px 16px rgba(0,0,0,.05);
}

.seller-auth-form,
.seller-auth-form fieldset {
  display: grid;
  gap: .85rem;
  min-width: 0;
  border: 0;
  padding: 0;
  margin: 0;
}

.seller-auth-form legend {
  font-weight: 800;
  color: #af101a;
  margin-bottom: .15rem;
}

.seller-field {
  position: relative;
  display: block;
}

.seller-field .material-symbols-outlined,
.seller-auth .material-symbols-outlined {
  font-family: "Material Symbols Outlined", sans-serif;
  font-size: 1.25rem;
  line-height: 1;
  font-weight: 400;
}

.seller-field > .material-symbols-outlined:first-child {
  position: absolute;
  left: .75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #8f6f6c;
  pointer-events: none;
  z-index: 1;
  width: 1.35rem;
  overflow: hidden;
  white-space: nowrap;
}

.seller-auth-form textarea,
.seller-auth-form input:not([type="checkbox"]):not([type="radio"]) {
  width: 100%;
  max-width: none;
  border: 1px solid #e4beba;
  border-radius: 10px;
  background: #f6f3f2;
  padding: .75rem;
}

.seller-field input,
.seller-auth-form .seller-field input:not([type="checkbox"]):not([type="radio"]) {
  width: 100%;
  padding: .75rem 1rem .75rem 2.85rem;
}

.seller-field:has(.pw-toggle) input,
.seller-auth-form .seller-field:has(.pw-toggle) input:not([type="checkbox"]):not([type="radio"]) {
  padding-right: 3rem;
}

.seller-auth-form .pw-toggle {
  position: absolute;
  right: .2rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  border: 0;
  background: transparent;
  color: #5d5f5f;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.seller-auth-forgot {
  text-align: right;
  margin: 0;
}

.seller-auth-forgot a,
.seller-auth-switch a,
.seller-auth-alt a,
.seller-auth-privacy a {
  color: #af101a;
  font-weight: 700;
}

.seller-auth-submit {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 10px;
  background: #af101a;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.seller-auth-actions {
  display: grid;
  gap: .55rem;
}

.seller-auth-register {
  width: 100%;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  box-sizing: border-box;
  border: 2px solid #af101a;
  border-radius: 10px;
  background: #fff;
  color: #af101a;
  font-weight: 700;
  text-decoration: none;
  padding: .55rem 1rem;
}

.seller-auth-register .material-symbols-outlined,
.seller-auth-register i {
  flex: 0 0 1.2rem;
  width: 1.2rem;
  font-size: 1.2rem;
  line-height: 1;
  text-align: center;
}

.seller-auth-register .smm-ib-text,
.seller-auth-register span:not(.material-symbols-outlined) {
  min-width: 0;
  line-height: 1.3;
}

.seller-auth-terms {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
}

.seller-auth-switch,
.seller-auth-alt {
  text-align: center;
  margin-top: 1rem;
}

@media (max-width: 1023px) {
  .seller-nav-toggle { display: inline-flex; }
  .seller-nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(27,28,28,.45);
    z-index: 40;
  }
  .seller-nav-overlay[hidden] { display: none; }
  .seller-layout { flex-direction: column; }
  .seller-nav {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(20rem, 86vw);
    z-index: 50;
    transform: translateX(-105%);
    transition: transform .2s ease;
    overflow-y: auto;
    border-right: 1px solid #e4beba;
    box-shadow: 8px 0 24px rgba(0,0,0,.12);
  }
  body.seller-nav-open .seller-nav { transform: none; }
}

@media (max-width: 767px) {
  body.seller-app { padding-bottom: 0; }
  .seller-bottom-nav {
    display: flex;
    position: sticky;
    bottom: 0;
    z-index: 30;
    background: #fff;
    border-top: 1px solid #e4beba;
    padding: .25rem .35rem calc(.35rem + env(safe-area-inset-bottom));
    gap: .25rem;
  }
  .seller-bottom-nav a,
  .seller-more-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .25rem;
    min-height: 52px;
    color: #1b1c1c;
    text-decoration: none;
    font-size: .72rem;
    font-weight: 700;
    border-radius: 10px;
    padding: .2rem .15rem;
    min-width: 0;
  }
  .seller-bottom-nav a i,
  .seller-more-btn i {
    flex: 0 0 auto;
    font-size: 1.05rem;
    line-height: 1;
  }
  .seller-bottom-nav a span,
  .seller-more-btn span {
    line-height: 1.15;
    text-align: center;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .seller-bottom-nav a.is-on,
  .seller-more-btn:focus {
    color: var(--primary);
    background: rgba(175, 16, 26, .08);
  }
  .seller-logout { display: inline-flex; }
  .seller-shop-chip { display: none; }
  .seller-main { padding: .75rem; padding-bottom: 1rem; }
  .seller-hours-row { grid-template-columns: 1fr; }
  header.top { gap: .5rem; }
  header.top h1 { font-size: 1.05rem; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .seller-nav { width: 14rem; }
  .seller-logout { display: inline-flex; }
}

@media (min-width: 1024px) {
  .seller-nav-toggle,
  .seller-bottom-nav,
  .seller-nav-overlay { display: none !important; }
  .seller-logout { display: inline-flex; }
}

@media (min-width: 1280px) {
  .seller-auth-shell { padding-top: 3.5rem; }
}

.seller-editor-card.card,
.seller-table-card.card {
  max-width: none;
}
.seller-product-form,
.seller-promo-form {
  max-width: none;
  gap: .85rem;
}
.seller-product-layout {
  display: grid;
  gap: 1rem;
  min-width: 0;
}
.seller-product-media,
.seller-product-fields {
  display: grid;
  gap: .75rem;
  min-width: 0;
  align-content: start;
}
.seller-field-block {
  display: grid;
  gap: .3rem;
  min-width: 0;
}
.seller-field-block label {
  margin: 0;
  font-weight: 600;
  color: #3d2a29;
  line-height: 1.35;
}
.seller-field-block--full { grid-column: 1 / -1; }
.seller-product-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.seller-product-form select,
.seller-product-form textarea,
.seller-promo-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.seller-promo-form select,
.seller-promo-form textarea {
  max-width: none;
  margin-top: 0;
}
.seller-product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  min-width: 0;
}
.seller-sale-window {
  margin: 0;
}
.seller-sale-window legend {
  font-weight: 700;
  color: #af101a;
  padding: 0 .35rem;
}
.seller-window-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .65rem;
  min-width: 0;
}
.seller-window-grid.is-disabled {
  opacity: .55;
}
.seller-window-grid input[type="date"],
.seller-window-grid input[type="time"] {
  width: 100%;
  max-width: none;
  min-height: 44px;
  padding-inline: .65rem 2.35rem;
}
.seller-form-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  margin-top: .15rem;
  padding-top: .85rem;
  border-top: 1px solid #e4beba;
}
.seller-form-toolbar button,
.seller-app .seller-form-toolbar button.smm-ib-labeled,
.seller-app .card .seller-form-toolbar button {
  margin: 0;
  width: auto;
  max-width: none;
  min-width: 0;
  white-space: nowrap;
}
.seller-photo-box { margin: 0; }
.seller-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 7.5rem;
  padding: .85rem 1rem;
  border: 2px dashed #e4beba;
  border-radius: 12px;
  background: #fff;
  text-align: center;
  cursor: pointer;
  color: #5d5f5f;
}
.seller-dropzone i {
  font-size: 1.35rem;
  color: #af101a;
}
.seller-dropzone span {
  line-height: 1.4;
  max-width: 22rem;
}
.seller-dropzone input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.seller-dropzone { position: relative; }
.seller-dropzone.is-dragover {
  border-color: #af101a;
  background: #fdecee;
  color: #af101a;
}
.seller-public-box { margin-top: 0; }
.seller-photo-preview {
  display: block;
  width: min(100%, 12rem);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
  background: #f6f3f2;
  margin-bottom: .65rem;
}
.seller-shop-cover-preview {
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  background: #f6f3f2;
  margin-bottom: .65rem;
}
.seller-theme-banner-preview {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 1;
  object-fit: cover;
  border-radius: 12px;
  background: #f6f3f2;
  margin-bottom: .65rem;
}
.seller-theme-logo-preview {
  display: block;
  width: min(100%, 8rem);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  background: #f6f3f2;
  margin-bottom: .65rem;
}
.seller-theme-bg-preview {
  display: block;
  width: min(100%, 9rem);
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 12px;
  background: #f6f3f2;
  margin-bottom: .65rem;
}
.seller-url-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: stretch;
}
.seller-url-row input {
  flex: 1 1 12rem;
  min-width: 0;
}
.seller-crop-open { overflow: hidden; }
.seller-crop-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(27, 28, 28, .55);
}
.seller-crop-modal[hidden] { display: none; }
.seller-crop-card {
  width: min(100%, 36rem);
  max-height: min(92vh, 52rem);
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  padding: 1rem 1.1rem 1.15rem;
  box-shadow: 0 16px 40px rgba(27, 28, 28, .2);
}
.seller-crop-card h3 {
  margin: 0 0 .35rem;
  color: #af101a;
  font-size: 1.15rem;
}
.seller-crop-viewport {
  position: relative;
  width: 100%;
  max-height: 50vh;
  overflow: hidden;
  border-radius: 12px;
  background: #1b1c1c;
  touch-action: none;
  cursor: grab;
  margin: .75rem 0;
}
.seller-crop-viewport[data-slot="logo"] { max-width: 18rem; margin-left: auto; margin-right: auto; }
.seller-crop-viewport[data-slot="background"] { max-width: 16rem; max-height: 55vh; margin-left: auto; margin-right: auto; }
.seller-crop-viewport img {
  position: absolute;
  left: 0;
  top: 0;
  max-width: none;
  user-select: none;
  pointer-events: none;
}
.seller-crop-zoom-label {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  color: #5d5f5f;
  font-size: .9rem;
}
.seller-crop-actions {
  margin-top: .85rem;
}
.seller-crop-actions button {
  min-height: 44px;
}
.seller-product-form .muted,
.seller-promo-form .muted,
.seller-photo-box .muted {
  color: #5d5f5f;
  font-size: .85rem;
  line-height: 1.45;
  margin: .35rem 0 0;
}

/* Table chrome: keep search/filters above a light header, not a solid red bar */
.seller-app .seller-table-card .dt-toolbar {
  margin: 0 0 .75rem;
  padding-bottom: .15rem;
}
.seller-app .seller-table-card .dt-search-input {
  max-width: none;
}
.seller-app .seller-table-card thead th,
.seller-app .seller-table-card thead th.dt-th-sortable {
  background: #fff8f8;
  color: #5a1218;
  font-weight: 700;
  border-bottom: 2px solid #af101a;
  vertical-align: middle;
}
.seller-app .seller-table-card button.dt-th-btn,
.seller-app .card button.dt-th-btn {
  background: transparent;
  color: inherit;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
  filter: none;
  min-width: 0;
}
.seller-app .seller-table-card button.dt-th-btn:hover,
.seller-app .card button.dt-th-btn:hover {
  background: rgba(175, 16, 26, .06);
  filter: none;
}
.seller-app .seller-table-card tr.dt-empty-row td {
  padding: 1.75rem 1rem;
  background: #fff;
  color: #5d5f5f;
}
.seller-app .table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 767px) {
  .seller-product-grid,
  .seller-window-grid { grid-template-columns: 1fr; }
  .seller-form-toolbar button { white-space: normal; }
}
@media (min-width: 768px) and (max-width: 1279px) {
  .seller-window-grid { grid-template-columns: 1fr 1fr; }
}
.seller-nav-group { display: grid; gap: .15rem; }
.seller-nav-parent {
  display: flex;
  align-items: center;
  gap: .65rem;
  width: 100%;
  min-height: 44px;
  padding: .45rem .7rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #1b1c1c;
  font: inherit;
  font-weight: 600;
  font-size: .92rem;
  text-align: left;
  cursor: pointer;
}
.seller-nav-parent:hover,
.seller-nav-parent.is-on,
.seller-nav-group.is-open > .seller-nav-parent {
  background: rgba(175, 16, 26, .08);
  color: var(--primary);
}
.seller-nav-parent i:first-child {
  flex: 0 0 1.35rem;
  width: 1.35rem;
  text-align: center;
}
.seller-nav-parent span { flex: 1 1 auto; min-width: 0; line-height: 1.3; overflow-wrap: anywhere; }
.seller-nav-caret { margin-left: auto; font-size: .75rem; transition: transform .15s ease; }
.seller-nav-group.is-open .seller-nav-caret { transform: rotate(180deg); }
.seller-nav-sub { display: grid; gap: .1rem; padding: 0 0 .25rem .55rem; }
.seller-nav-sub[hidden] { display: none; }
.seller-nav a.seller-nav-child { font-size: .88rem; min-height: 44px; }

[data-seller-panel][hidden] { display: none; }
.seller-panel-anchor[hidden] { display: none; }
.seller-panel-anchor:not([hidden]) { display: none; }
.seller-pending-list {
  display: grid;
  gap: .55rem;
  margin: 0 0 1rem;
}
.seller-pending-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  min-height: 44px;
  padding: .65rem .85rem;
  border: 1px solid #e4beba;
  border-radius: 10px;
  color: #1b1c1c;
  text-decoration: none;
  font-weight: 600;
}
.seller-pending-item:hover,
.seller-pending-item:focus {
  background: rgba(175, 16, 26, .08);
  color: var(--primary);
}
.seller-inline-label {
  display: block;
  min-width: 0;
}
.seller-form .seller-field {
  position: relative;
  display: block;
}
.seller-form .seller-field input {
  width: 100%;
  max-width: 28rem;
  padding-right: 3rem;
}
.seller-form .pw-toggle {
  position: absolute;
  right: .2rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  border: 0;
  background: transparent;
  color: #5d5f5f;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.seller-form .pw-toggle i {
  flex: 0 0 1.15rem;
  width: 1.15rem;
  text-align: center;
}

.seller-export-bar,
.seller-period-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: flex-end;
}
.seller-export-bar button,
.seller-period-bar button { margin: 0; }
.seller-chart {
  display: flex;
  align-items: flex-end;
  gap: .4rem;
  min-height: 9rem;
  padding: .75rem .25rem 0;
  overflow-x: auto;
}
.seller-chart-col {
  flex: 1 1 2.2rem;
  min-width: 2.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
}
.seller-chart-bar {
  width: 100%;
  max-width: 2rem;
  min-height: 4px;
  background: #af101a;
  border-radius: 6px 6px 0 0;
}
.seller-chart-lab {
  font-size: .72rem;
  color: #5d5f5f;
  text-align: center;
  line-height: 1.25;
}

.seller-cal-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .75rem;
}
.seller-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: .35rem;
}
.seller-cal-dow,
.seller-cal-day {
  min-height: 44px;
  border-radius: 10px;
  text-align: center;
  font-weight: 700;
}
.seller-cal-dow { color: #5d5f5f; font-size: .8rem; padding: .4rem 0; }
.seller-cal-day {
  border: 1px solid #e4beba;
  background: #fff;
  color: #1b1c1c;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: .2rem;
  padding: .4rem .2rem;
  min-height: 4.4rem;
}
.seller-cal-day.is-muted { opacity: .4; }
.seller-cal-day.is-on { border-color: #af101a; background: #fdecee; color: #af101a; }
.seller-cal-day.is-today { box-shadow: inset 0 0 0 2px #af101a; }
.seller-cal-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px; }
.seller-cal-dot {
  width: .45rem;
  height: .45rem;
  border-radius: 99px;
  background: #af101a;
}
.seller-cal-dot.kind-ad { background: #c46b16; }
.seller-cal-dot.kind-public { background: #2e7d32; }
.seller-cal-panel { display: grid; gap: .65rem; }

.seller-count-var.is-over { color: #2e7d32; font-weight: 700; }
.seller-count-var.is-under { color: #af101a; font-weight: 700; }

.seller-sop-editor {
  display: grid;
  gap: 1.25rem;
}
.seller-form.seller-sop-form {
  max-width: none;
}
.seller-sop-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.seller-sop-form select,
.seller-sop-form textarea {
  max-width: none;
}
.seller-sop-steps-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .65rem;
  margin-top: .35rem;
}
.seller-sop-steps-head h3 {
  margin: 0;
  font-size: 1.05rem;
  color: #af101a;
}
.seller-sop-steps {
  display: grid;
  gap: .85rem;
}
.seller-sop-step {
  display: grid;
  gap: .55rem;
  padding: .85rem;
  border: 1px solid #e4beba;
  border-radius: 12px;
  background: #fff;
}
.seller-sop-step-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
}
.seller-sop-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  min-height: 2rem;
  padding: 0 .45rem;
  border-radius: 999px;
  background: #af101a;
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
}
.seller-sop-step-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-left: auto;
}
.seller-sop-step-actions button {
  width: auto;
  max-width: none;
  margin: 0;
}
.seller-sop-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}
.seller-sop-thumb {
  position: relative;
  width: min(100%, 8.5rem);
}
.seller-sop-thumb img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  background: #f6f3f2;
}
.seller-sop-thumb button {
  position: absolute;
  top: .3rem;
  right: .3rem;
  width: auto;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: .4rem .55rem;
}
.seller-sop-preview-wrap h3 {
  margin: 0 0 .65rem;
  font-size: 1.05rem;
  color: #af101a;
}
.seller-sop-preview {
  padding: 1.1rem 1.15rem 1.35rem;
  border: 1px solid #e4beba;
  border-radius: 12px;
  background: #fffdfc;
  min-height: 12rem;
}
.seller-sop-preview h3 {
  margin: 0 0 .4rem;
  color: #1b1c1c;
  font-size: 1.35rem;
  line-height: 1.35;
}
.seller-sop-preview .seller-sop-meta {
  margin: 0 0 .85rem;
  color: #5d5f5f;
  font-size: .85rem;
}
.seller-sop-preview .seller-sop-intro {
  margin: 0 0 1rem;
  line-height: 1.55;
  white-space: pre-wrap;
}
.seller-sop-preview ol {
  margin: 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 1rem;
}
.seller-sop-preview li {
  padding-left: .15rem;
}
.seller-sop-preview li strong {
  display: block;
  margin-bottom: .25rem;
  color: #af101a;
}
.seller-sop-preview li p {
  margin: 0 0 .45rem;
  line-height: 1.55;
  white-space: pre-wrap;
}
.seller-sop-preview img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: .4rem 0;
  border-radius: 10px;
  background: #f6f3f2;
}
.seller-sop-empty {
  color: #5d5f5f;
  margin: 0;
}

@media (min-width: 768px) {
  .seller-sop-editor {
    grid-template-columns: minmax(0, 1fr) minmax(16rem, .9fr);
    align-items: start;
  }
}

.lpr-demo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
}
.lpr-demo-card {
  margin: 0;
  border: 1px solid #e4beba;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.lpr-demo-card img {
  display: block;
  width: 100%;
  height: 96px;
  object-fit: cover;
  background: #111;
}
.lpr-demo-card figcaption {
  padding: 0.4rem 0.5rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #1b1c1c;
}

@media (min-width: 1280px) {
  .seller-product-layout {
    grid-template-columns: minmax(16rem, 20rem) minmax(0, 1fr);
    align-items: start;
  }
  .seller-window-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .seller-app .seller-table-card .dt-toolbar {
    align-items: center;
  }
  .seller-app .seller-table-card .dt-filters {
    flex: 1 1 auto;
  }
}
