/* KisanHub admin — same green system as the storefront, laid out as a dashboard shell */
body.admin { background: #f3f5f1; padding-bottom: 0; }
.admin-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 120; width: 248px; display: flex; flex-direction: column; background: #10261a; color: #c9d6cd; }
.admin-brand { display: flex; align-items: center; gap: 10px; padding: 18px 18px 14px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.admin-brand strong { display: block; color: #fff; font-size: 17px; }
.admin-brand small { color: #8fa596; font-size: 11.5px; }
.admin-nav { flex: 1; overflow-y: auto; padding: 8px 10px 16px; }
.admin-nav__group { margin: 14px 10px 6px; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #6f8a78; }
.admin-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px; font-size: 13.5px; font-weight: 500; color: #c9d6cd; }
.admin-nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.admin-nav a.is-active { background: var(--green); color: #fff; font-weight: 600; }
.admin-nav__badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--orange); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.admin-nav__store { display: flex; align-items: center; gap: 8px; margin: 10px; padding: 10px 12px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .14); color: #fff; font-size: 13px; font-weight: 600; }
.admin-nav__store:hover { background: rgba(255, 255, 255, .06); }
.admin-backdrop { display: none; }
.admin-main { margin-left: 248px; min-height: 100vh; display: flex; flex-direction: column; }
.admin-topbar { position: sticky; top: 0; z-index: 100; display: flex; align-items: center; gap: 14px; height: 64px; padding: 0 24px; background: #fff; border-bottom: 1px solid var(--border); }
.admin-topbar__title { font-size: 19px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-topbar__actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.admin-menu-btn { display: none; }
.admin-user { position: relative; }
.admin-user summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 4px 8px 4px 4px; border-radius: 999px; font-weight: 600; font-size: 13.5px; }
.admin-user summary::-webkit-details-marker { display: none; }
.admin-user summary:hover { background: #f3f4f6; }
.admin-user__avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--green-dark); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.admin-user__menu { position: absolute; right: 0; top: calc(100% + 6px); width: 220px; background: #fff; border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-lg); padding: 6px; z-index: 130; }
.admin-user__menu a { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 6px; font-size: 13.5px; }
.admin-user__menu a:hover { background: var(--green-50); }
.admin-content { padding: 24px; flex: 1; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.stat { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
.stat__icon { width: 42px; height: 42px; border-radius: 12px; background: var(--green-50); color: var(--green-dark); display: grid; place-items: center; flex-shrink: 0; }
.stat__icon--warn { background: var(--orange-50); color: #e65100; }
.stat__icon--red { background: var(--red-50); color: #c62828; }
.stat__icon--blue { background: #e3f2fd; color: #1565c0; }
.stat__label { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.stat__value { font-size: 24px; font-weight: 700; line-height: 1.2; margin-top: 2px; font-variant-numeric: tabular-nums; }
.stat__sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.stat:hover { border-color: #cfe5c2; }
.dash-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; margin-top: 16px; }

.chart { position: relative; }
.chart svg { width: 100%; height: 240px; display: block; overflow: visible; }
.chart__grid { stroke: #eef0ec; stroke-width: 1; }
.chart__axis { fill: var(--muted); font-size: 11px; font-family: inherit; }
.chart__bar { fill: #2e7d32; transition: opacity .15s; }
.chart__bar:hover, .chart__bar.is-hover { fill: #1b5e20; }
.chart__hit { fill: transparent; cursor: pointer; }
.chart__tip { position: absolute; z-index: 5; pointer-events: none; background: #1f2937; color: #fff; border-radius: 8px; padding: 8px 10px; font-size: 12px; line-height: 1.45; white-space: nowrap; transform: translate(-50%, -100%); box-shadow: var(--shadow); }
.chart__tip strong { display: block; font-size: 13px; }

.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.toolbar .form-input, .toolbar .form-select { height: 40px; width: auto; min-width: 160px; }
.toolbar__search { flex: 1; min-width: 220px; max-width: 360px; }
.toolbar__right { margin-left: auto; display: flex; gap: 8px; }
.data-table { width: 100%; border-collapse: collapse; background: #fff; font-size: 13.5px; }
.data-table th { text-align: left; padding: 11px 14px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: #fafbf9; border-bottom: 1px solid var(--border); white-space: nowrap; }
.data-table td { padding: 11px 14px; border-bottom: 1px solid #f0f1ee; vertical-align: middle; }
.data-table tr:hover td { background: #fbfcfa; }
.data-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.data-table .actions { text-align: right; white-space: nowrap; }
.data-table .actions .btn + .btn { margin-left: 4px; }
.table-wrap { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow-x: auto; }
.table-empty { padding: 40px; text-align: center; color: var(--muted); }
.thumb { width: 44px; height: 44px; border-radius: 8px; border: 1px solid var(--border); background: #fafbf9; object-fit: contain; flex-shrink: 0; }
.cell-main { display: flex; align-items: center; gap: 10px; min-width: 220px; }
.cell-main strong { display: block; font-weight: 600; }
.cell-main small { color: var(--muted); font-size: 12px; }
.new-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); margin-right: 6px; }
.pagination-shell { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; font-size: 13px; color: var(--muted); }
.pagination-shell__buttons { display: flex; gap: 6px; }

.panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.panel__title { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.panel__body { padding: 18px; }
.panel + .panel { margin-top: 16px; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.list-row { display: flex; align-items: center; gap: 10px; padding: 10px 18px; border-bottom: 1px solid #f0f1ee; font-size: 13.5px; }
.list-row:last-child { border-bottom: 0; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 16px 22px; font-size: 13px; }
.timeline li::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: -4px; width: 2px; background: var(--border); }
.timeline li:last-child::before { display: none; }
.timeline li::after { content: ""; position: absolute; left: 0; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 3px solid var(--green); }
.timeline strong { display: block; }
.timeline small { color: var(--muted); }

.variant-table { width: 100%; min-width: 880px; border-collapse: collapse; font-size: 13px; }
.variant-table th { text-align: left; font-size: 11px; text-transform: uppercase; color: var(--muted); padding: 6px; }
.variant-table td { padding: 4px; vertical-align: top; }
.variant-table .form-input, .variant-table .form-select { height: 38px; padding: 0 8px; font-size: 13px; }
.variant-table .field-error { font-size: 11px; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px 14px; max-height: 220px; overflow-y: auto; padding: 10px; border: 1px solid var(--border); border-radius: 8px; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13.5px; font-weight: 500; }
.switch input { appearance: none; width: 40px; height: 22px; border-radius: 999px; background: #d1d5db; position: relative; cursor: pointer; transition: background .2s; flex-shrink: 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.switch input:checked { background: var(--green); }
.switch input:checked::after { transform: translateX(18px); }
.image-drop { display: flex; align-items: center; gap: 14px; }
.image-drop img { width: 96px; height: 96px; object-fit: contain; border: 1px solid var(--border); border-radius: 10px; background: #fafbf9; }
.gallery-admin { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.gallery-admin div { position: relative; }
.gallery-admin img { width: 80px; height: 80px; object-fit: contain; border: 1px solid var(--border); border-radius: 8px; background: #fafbf9; }
.gallery-admin button { position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: var(--red); color: #fff; display: grid; place-items: center; font-size: 13px; }
.sticky-actions { position: sticky; bottom: 0; z-index: 20; display: flex; gap: 10px; justify-content: flex-end; padding: 12px 18px; background: rgba(255, 255, 255, .96); border-top: 1px solid var(--border); margin: 16px -24px -24px; backdrop-filter: blur(4px); }
.settings-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.hide-sm { display: inline; }

@media (max-width: 1100px) {
  .dash-grid, .two-col { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .admin-sidebar { transform: translateX(-100%); transition: transform .25s; }
  .admin-sidebar.is-open { transform: none; box-shadow: var(--shadow-lg); }
  .admin-backdrop.is-open { display: block; position: fixed; inset: 0; z-index: 110; background: rgba(17, 24, 39, .45); }
  .admin-main { margin-left: 0; }
  .admin-menu-btn { display: inline-flex; }
  .admin-content { padding: 16px; }
  .admin-topbar { padding: 0 14px; }
  .sticky-actions { margin: 16px -16px -16px; }
}

@media (max-width: 640px) {
  .hide-sm { display: none; }
  .toolbar .form-input, .toolbar .form-select { min-width: 0; flex: 1; }
  .toolbar__right { margin-left: 0; width: 100%; }
}

/* Delivery slabs editor (Settings → Delivery charges) */
.slab-editor { display: grid; gap: 8px; max-width: 520px; }
.slab-editor__head, .slab-editor__row { display: grid; grid-template-columns: 1fr 1fr 40px; gap: 8px; align-items: center; }
.slab-editor__head { font-size: 12px; font-weight: 600; color: var(--muted, #6b7280); }
.slab-editor [data-slab-add] { justify-self: start; }

/* ---------- Admin sign-in ---------- */
.login-body { margin: 0; background: #f4f6f3; }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.login-art { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: 44px 56px; color: #e8f5e9; overflow: hidden;
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, .14), transparent 40%),
    radial-gradient(circle at 10% 90%, rgba(99, 172, 57, .45), transparent 45%),
    linear-gradient(150deg, #0f2a1a 0%, #1b5e20 55%, #2e7d32 100%); }
.login-art::after { content: ""; position: absolute; right: -80px; bottom: -80px; width: 420px; height: 420px; opacity: .08; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 20h10'/%3E%3Cpath d='M12 20V10'/%3E%3Cpath d='M12 10c0-3.5 2.5-6 6.5-6 0 3.5-2.5 6-6.5 6Z'/%3E%3Cpath d='M12 13c0-3-2-5.5-6-5.5 0 3 2 5.5 6 5.5Z'/%3E%3C/svg%3E") center / contain no-repeat; }
.login-art__brand, .login-card__brand { display: flex; align-items: center; gap: 12px; }
.login-art__brand strong, .login-card__brand strong { display: block; font-size: 20px; color: #fff; line-height: 1.2; }
.login-art__brand small, .login-card__brand small { font-size: 12.5px; opacity: .8; }
.login-art__mark { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: #63ac39; color: #fff; flex-shrink: 0; overflow: hidden; }
.login-art__mark svg { width: 26px; height: 26px; }
.login-art__mark img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.login-art__body { position: relative; z-index: 1; max-width: 460px; }
.login-art__body h2 { margin: 0 0 12px; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.2; color: #fff; letter-spacing: -.01em; }
.login-art__body > p { margin: 0 0 28px; font-size: 15.5px; opacity: .88; }
.login-art__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.login-art__list li { display: flex; gap: 14px; align-items: flex-start; font-size: 13.5px; opacity: .92; }
.login-art__list li > span { width: 40px; height: 40px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18); }
.login-art__list li > span svg { width: 20px; height: 20px; }
.login-art__list strong { display: block; color: #fff; font-size: 14.5px; }
.login-art__foot { position: relative; z-index: 1; display: flex; align-items: center; gap: 6px; margin: 0; font-size: 12.5px; opacity: .75; }
.login-art__foot svg { width: 15px; height: 15px; }
.login-panel { display: grid; place-items: center; padding: 40px 24px; }
.login-card { width: 100%; max-width: 410px; }
.login-card__brand { display: none; margin-bottom: 24px; }
.login-card__brand strong { color: var(--text); }
.login-card__brand small { color: var(--muted); opacity: 1; }
.login-card h1 { margin: 0; font-size: 28px; color: var(--text); }
.login-card__sub { margin: 6px 0 24px; color: var(--text-2); }
.login-alert { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 18px; padding: 12px 14px; border-radius: 10px; font-size: 13.5px; line-height: 1.45; }
.login-alert svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.login-alert--error { background: #fef3f2; color: #b42318; border: 1px solid #fecdca; }
.login-alert--success { background: var(--green-50); color: var(--green-deep); border: 1px solid #cfe5c2; }
.login-form { display: grid; gap: 18px; }
.login-field { position: relative; }
.login-field > svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.login-field .form-input { height: 50px; padding-left: 44px; font-size: 15px; background: #fff; }
.login-field .form-input#admin-password { padding-right: 48px; }
.login-field .form-input.is-invalid { border-color: #f04438; box-shadow: 0 0 0 3px rgba(240, 68, 56, .12); }
.login-field:focus-within > svg { color: var(--green-dark); }
.login-field__toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.login-field__toggle:hover { background: #f2f4f1; color: var(--text); }
.login-field__toggle svg { width: 18px; height: 18px; }
.login-caps { display: flex; align-items: center; gap: 6px; margin: 8px 0 0; font-size: 12.5px; font-weight: 600; color: #b54708; }
.login-caps svg { width: 14px; height: 14px; }
.login-form .btn-lg { height: 52px; margin-top: 4px; font-size: 15.5px; }
.login-form .btn-lg svg { width: 18px; height: 18px; }
.login-card__foot { display: grid; gap: 10px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.login-card__foot a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.login-card__foot span { display: flex; align-items: center; gap: 6px; }
.login-card__foot svg { width: 15px; height: 15px; flex-shrink: 0; }
@media (max-width: 900px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-art { display: none; }
  .login-panel { align-items: start; padding: 0; background: linear-gradient(180deg, #1b5e20 0, #2e7d32 190px, #f4f6f3 190px); min-height: 100vh; }
  .login-card { max-width: 440px; margin: 32px 16px 24px; padding: 26px 22px; border-radius: 18px; background: #fff; box-shadow: 0 18px 40px rgba(16, 24, 40, .12); }
  .login-card__brand { display: flex; }
  .login-card h1 { font-size: 24px; }
}

/* WhatsApp message menu (order detail) */
.wa-menu { position: relative; }
.wa-menu summary { list-style: none; cursor: pointer; }
.wa-menu summary::-webkit-details-marker { display: none; }
.wa-menu summary svg.lucide-chevron-down { width: 14px; height: 14px; }
.wa-menu__panel { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; width: 340px; padding: 6px; border-radius: 12px; background: #fff; border: 1px solid var(--border); box-shadow: 0 18px 40px rgba(16, 24, 40, .16); }
.wa-menu__head { padding: 8px 10px 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.wa-menu__item { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border-radius: 8px; color: var(--text); }
.wa-menu__item:hover { background: #e7f9ee; }
.wa-menu__item > svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; color: #128c4b; }
.wa-menu__item strong { display: block; font-size: 13.5px; }
.wa-menu__item small { display: block; font-size: 12px; color: var(--muted); line-height: 1.4; }
.wa-menu__foot { display: flex; gap: 6px; align-items: flex-start; margin-top: 4px; padding: 8px 10px; border-top: 1px solid var(--border); font-size: 11.5px; color: var(--muted); }
.wa-menu__foot svg { width: 13px; height: 13px; flex-shrink: 0; margin-top: 1px; }

/* TEMPORARY: email previews (Admin → Settings → Email notifications → Preview all emails) */
.mail-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; }
.mail-preview { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; align-items: start; }
.mail-preview__list { position: sticky; top: 80px; padding: 8px; max-height: calc(100vh - 100px); overflow: auto; }
.mail-preview__group { display: flex; align-items: center; gap: 6px; padding: 12px 10px 6px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.mail-preview__group svg { width: 14px; height: 14px; }
.mail-preview__item { display: block; width: 100%; text-align: left; padding: 10px 12px; border: 0; border-left: 3px solid transparent; border-radius: 8px; background: transparent; cursor: pointer; font: inherit; }
.mail-preview__item strong { display: block; font-size: 13.5px; color: var(--text); }
.mail-preview__item small { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mail-preview__item:hover { background: #f5f7f4; }
.mail-preview__item.is-active { background: var(--green-50, #eef6e9); border-left-color: var(--green, #63ac39); }
.mail-preview__meta { display: grid; grid-template-columns: 90px 1fr; gap: 6px 12px; margin: 0 0 14px; font-size: 13.5px; }
.mail-preview__meta dt { color: var(--muted); font-weight: 600; }
.mail-preview__meta dd { margin: 0; word-break: break-word; }
.mail-preview__toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.mail-preview__sizes { display: flex; gap: 6px; }
.mail-preview__sizes .is-active { background: var(--green-50, #eef6e9); border-color: var(--green, #63ac39); color: var(--green-deep, #1b5e20); }
.mail-preview__frame-wrap { display: flex; justify-content: center; padding: 16px; border-radius: 12px; background: repeating-conic-gradient(#f3f4f6 0% 25%, #fafafa 0% 50%) 50% / 20px 20px; overflow: auto; }
.mail-preview__frame { width: 680px; max-width: 100%; height: 900px; border: 1px solid var(--border); border-radius: 10px; background: #fff; box-shadow: 0 10px 30px rgba(16, 24, 40, .1); transition: width .2s; }
@media (max-width: 1100px) {
  .mail-preview { grid-template-columns: 1fr; }
  .mail-preview__list { position: static; max-height: none; }
}

/* GST breakup under prices (product form) */
.gst-breakup { display: block; margin: 4px 0 0; font-size: 11.5px; line-height: 1.35; color: #0d47a1; white-space: normal; min-width: 120px; }

/* Upload box: every admin file input (admin.js enhanceUploads). */
.upload { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 72px; padding: 12px 14px; border: 1.5px dashed #c9d6c0; border-radius: var(--radius); background: #fafcf8; cursor: pointer; transition: border-color .15s, background .15s; }
.upload:hover, .upload:focus-within, .upload.is-dragging { border-color: var(--green); background: var(--green-50); }
.upload.is-dragging { border-style: solid; box-shadow: 0 0 0 3px var(--green-100); }
.upload.has-files { border-style: solid; border-color: var(--green-100); background: #fff; }
.upload__input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.upload__icon { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; background: #fff; border: 1px solid var(--border); color: var(--green-dark); }
.upload__icon i[data-lucide], .upload__icon svg.lucide { width: 21px; height: 21px; }
.upload__text { font-size: 13px; color: var(--muted); line-height: 1.4; }
.upload__text strong { color: var(--green-dark); }
.upload__text small { display: block; font-size: 11.5px; color: var(--faint, #9aa5a0); }
.upload__files { display: grid; gap: 8px; flex: 1; min-width: 0; }
.upload__file { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 13px; }
.upload__file img, .upload__file > i[data-lucide], .upload__file > svg.lucide { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; flex-shrink: 0; border: 1px solid var(--border); background: #fafbf9; }
.upload__file > i[data-lucide], .upload__file > svg.lucide { padding: 9px; color: var(--muted); }
.upload__file > span { min-width: 0; }
.upload__file strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: var(--text); }
.upload__file small { font-size: 11.5px; color: var(--muted); }
.upload.has-files .upload__icon { display: none; }
.upload__change { display: inline-flex; align-items: center; gap: 5px; justify-self: start; padding: 4px 10px; border-radius: 999px; background: var(--green-50); color: var(--green-dark); font-style: normal; font-size: 12px; font-weight: 600; white-space: nowrap; }
.upload__change i[data-lucide], .upload__change svg.lucide { width: 13px; height: 13px; }
.upload + .form-help, .upload ~ .form-help { margin-top: 6px; }
.image-drop { align-items: stretch; }
.image-drop > div { flex: 1; min-width: 0; }
.gallery-admin:not(:empty) { margin-top: 10px; }

/* Product description (Quill): Quill's height:100% overflowed the grid row into the next panel. */
#description-editor.ql-container { height: auto; min-height: 220px; border-radius: 0 0 10px 10px; font-family: inherit; font-size: 14px; }
#description-editor .ql-editor { min-height: 220px; }
.ql-toolbar.ql-snow { border-radius: 10px 10px 0 0; background: #fafbf9; }
.ql-toolbar.ql-snow, #description-editor.ql-container.ql-snow { border-color: var(--border); }
