.account-page, .admin-page, .admin-order-page { padding-top: 76px; padding-bottom: 100px; }
.account-page__intro, .admin-page__intro { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 42px; }
.account-page__intro h1, .admin-page__intro h1, .admin-order-header h1 { margin-top: 13px; font-size: clamp(42px, 5.5vw, 68px); font-weight: 520; letter-spacing: -.07em; line-height: .98; }
.account-page__intro h1 > span, .admin-page__intro h1 > span, .admin-order-header h1 > span { color: var(--ab-blue); }
.account-page__intro > p, .account-page__intro > :last-child, .admin-page__intro > div:first-child > p:last-child { max-width: 540px; margin-top: 14px; color: var(--ab-muted); font-size: 12px; line-height: 1.75; }
.account-alert, .account-success { margin: 0 0 24px; padding: 14px 16px; border: 1px solid #e8c9c4; background: #fff8f6; color: #7c3026; font-size: 12px; line-height: 1.55; }
.account-success { border-color: #cfdccf; background: #f7faf6; color: #31543d; }
.account-auth-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.account-auth-card, .admin-order-card { padding: clamp(22px, 3vw, 34px); border: 1px solid var(--ab-line); background: #fff; }
.account-auth-card h2, .account-orders__heading h2, .account-track h2, .admin-orders__heading h2, .admin-order-card h2 { margin-top: 9px; font-size: 24px; font-weight: 560; letter-spacing: -.05em; }
.account-form { display: grid; gap: 15px; margin-top: 25px; }
.account-form > label, .account-track__form > label, .admin-update-form > label { display: grid; gap: 7px; color: #454641; font-size: 10px; font-weight: 620; }
.account-form input, .account-track__form input, .admin-filters input, .admin-filters select, .admin-update-form select, .admin-update-form textarea { width: 100%; min-height: 44px; padding: 11px 12px; border: 1px solid #dedfdb; border-radius: 2px; outline: none; background: #fff; color: var(--ab-ink); font: inherit; font-size: 11px; }
.account-form input:focus, .account-track__form input:focus, .admin-filters input:focus, .admin-filters select:focus, .admin-update-form select:focus, .admin-update-form textarea:focus { border-color: #dedfdb; border-bottom-color: #777a74; box-shadow: none; outline: none; }
.account-form input:focus-visible, .account-track__form input:focus-visible { outline: none; outline-offset: 0; }
.account-form input::placeholder, .account-track__form input::placeholder, .admin-filters input::placeholder, .admin-update-form textarea::placeholder { color: #a0a19b; }
.account-form .ab-button { display: inline-flex; min-height: 46px; width: max-content; align-items: center; justify-content: space-between; gap: 24px; margin-top: 2px; padding-inline: 16px; }
.account-auth-card__note { margin-top: 17px; color: var(--ab-muted); font-size: 10px; line-height: 1.7; }
.account-summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 46px; padding: 20px 0; border-top: 1px solid var(--ab-line); border-bottom: 1px solid var(--ab-line); }
.account-summary > div:first-child { display: grid; gap: 5px; }
.account-summary > div:first-child > span, .admin-page__user > span { color: var(--ab-muted); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.account-summary > div:first-child > strong, .admin-page__user > strong { font-size: 14px; font-weight: 600; }
.account-summary > div:first-child > small { color: var(--ab-muted); font-size: 11px; }
.account-summary__actions { display: flex; align-items: center; gap: 22px; }
.account-summary__actions .ab-button { min-height: 40px; padding: 0 14px; font-size: 10px; }
.account-quiet-button, .admin-export { border: 0; background: none; color: #575853; cursor: pointer; font: inherit; font-size: 10px; text-decoration: underline; text-underline-offset: 3px; }
.account-orders__heading, .admin-orders__heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.account-orders__heading h2, .admin-orders__heading h2 { display: flex; align-items: center; gap: 10px; }
.account-orders__heading h2 > span, .admin-orders__heading h2 > span { display: inline-grid; min-width: 22px; height: 22px; place-items: center; border-radius: 50%; background: #f0f0ee; color: #60615c; font-size: 10px; font-weight: 500; }
.account-order-list { display: grid; gap: 12px; }
.account-order-card { padding: 21px 23px; border: 1px solid var(--ab-line); background: #fff; }
.account-order-card__top, .account-order-card__detail { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.account-order-card__top > div { display: grid; gap: 5px; }
.account-order-card__top > div > span { color: var(--ab-muted); font-size: 8px; letter-spacing: .12em; }
.account-order-card__top > div > strong { font-size: 13px; letter-spacing: .015em; }
.account-order-card__detail { margin-top: 15px; padding-top: 13px; border-top: 1px solid #efefed; color: var(--ab-muted); font-size: 10px; }
.account-order-card__detail > strong, .account-order-card__detail > span:last-child { color: var(--ab-ink); font-weight: 620; }
.account-order-card > ul { display: grid; gap: 5px; margin: 14px 0 0; padding: 0; list-style: none; color: #4c4d48; font-size: 10px; }
.account-order-card > ul > li { display: flex; justify-content: space-between; gap: 16px; }
.account-order-card > ul > li > span { color: var(--ab-muted); white-space: nowrap; }
.account-order-card__hint { margin-top: 13px !important; color: #696a64; font-size: 10px; line-height: 1.6; }
.account-empty { padding: 50px 20px; border: 1px solid var(--ab-line); text-align: center; }
.account-empty h3 { font-size: 18px; font-weight: 560; letter-spacing: -.04em; }
.account-empty p { max-width: 430px; margin: 9px auto 0 !important; color: var(--ab-muted); font-size: 11px; line-height: 1.7; }
.account-empty .ab-button { margin-top: 19px; }
.account-track { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 20px 42px; align-items: end; margin-top: 50px; padding: 28px 0 0; border-top: 1px solid var(--ab-line); }
.account-track > div:first-child > p:last-child { max-width: 390px; margin-top: 8px; color: var(--ab-muted); font-size: 10px; line-height: 1.6; }
.account-track h2 { font-size: 21px; }
.account-track__form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.account-track__form > label { font-size: 9px; }
.account-track__form input { min-width: 0; }
.account-track__form > button { min-height: 44px; padding: 0 15px; border: 1px solid var(--ab-ink); background: var(--ab-ink); color: #fff; cursor: pointer; font: inherit; font-size: 10px; font-weight: 600; white-space: nowrap; }
.account-track__form > button > span { margin-left: 10px; font-size: 14px; }
.account-track-result { grid-column: 1 / -1; padding: 20px 22px; border: 1px solid var(--ab-line); background: #fafaf8; }
.account-status { display: inline-flex; align-items: center; min-height: 24px; padding: 0 9px; border: 1px solid #e3e4df; border-radius: 99px; background: #f7f7f4; color: #575852; font-size: 8px; font-weight: 600; line-height: 1.25; }
.account-status--awaiting_whatsapp { border-color: #eadfc5; background: #fcf8ee; color: #76602d; }
.account-status--confirmed, .account-status--preparing { border-color: #d4dff0; background: #f3f7fc; color: #405978; }
.account-status--shipped { border-color: #cde2e0; background: #f1f8f7; color: #35625d; }
.account-status--delivered { border-color: #cfe0d1; background: #f2f8f2; color: #3f6643; }
.account-status--cancelled { border-color: #e8d1d1; background: #fcf5f5; color: #804444; }
.admin-page__user { display: grid; gap: 4px; justify-items: end; text-align: right; }
.admin-page__user > a { margin-top: 4px; color: #666761; font-size: 10px; text-decoration: underline; text-underline-offset: 2px; }
.admin-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 49px; }
.admin-metric { display: grid; min-height: 120px; align-content: space-between; gap: 10px; padding: 17px 19px; border: 1px solid var(--ab-line); background: #fff; transition: border-color .18s, transform .18s; }
.admin-metric:hover { border-color: #b9bbb4; transform: translateY(-2px); }
.admin-metric > span { color: #666761; font-size: 10px; }
.admin-metric > strong { font-size: 30px; font-weight: 550; letter-spacing: -.06em; line-height: 1; }
.admin-metric > small { color: var(--ab-muted); font-size: 9px; }
.admin-export { display: inline-flex; align-items: center; gap: 8px; padding: 10px 0; text-decoration: none; }
.admin-export > span { font-size: 14px; }
.admin-filters { display: grid; grid-template-columns: minmax(0, 1fr) 220px auto; gap: 10px; margin-bottom: 17px; }
.admin-filters > button { min-height: 44px; padding: 0 15px; border: 1px solid #171817; background: #171817; color: #fff; cursor: pointer; font: inherit; font-size: 10px; font-weight: 600; white-space: nowrap; }
.admin-filters > button > span { margin-left: 9px; font-size: 14px; }
.admin-table-wrap { overflow-x: auto; border: 1px solid var(--ab-line); }
.admin-table { width: 100%; min-width: 850px; border-collapse: collapse; background: #fff; text-align: left; }
.admin-table th { padding: 12px 14px; background: #f7f7f5; color: #73746e; font-size: 8px; font-weight: 650; letter-spacing: .11em; text-transform: uppercase; }
.admin-table td { padding: 15px 14px; border-top: 1px solid #eeeeeb; color: #41423e; font-size: 10px; vertical-align: middle; }
.admin-table td:first-child { white-space: nowrap; }
.admin-table td > small { display: block; margin-top: 5px; color: var(--ab-muted); font-size: 9px; }
.admin-table td > small > a { color: inherit; }
.admin-order-ref { color: var(--ab-ink); font-weight: 650; }
.admin-open-order { display: inline-grid; width: 29px; height: 29px; place-items: center; border: 1px solid var(--ab-line); border-radius: 50%; color: #343530; font-size: 14px; }
.admin-open-order:hover { border-color: #aeb0a8; background: #f7f7f5; }
.admin-footnote { margin-top: 12px !important; color: var(--ab-muted); font-size: 9px; line-height: 1.6; }
.admin-back-link { display: inline-flex; margin-bottom: 28px; color: #5e5f59; font-size: 10px; }
.admin-back-link:hover { color: var(--ab-blue); }
.admin-order-header { display: flex; align-items: end; justify-content: space-between; gap: 22px; margin-bottom: 31px; }
.admin-order-header > div > .account-status { margin-top: 14px; }
.admin-order-header h1 { font-size: clamp(35px, 5vw, 55px); }
.admin-order-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.admin-order-card h2 { margin-bottom: 17px; }
.admin-order-card--wide { grid-column: 1 / -1; }
.admin-details-list { display: grid; gap: 14px; margin: 0; }
.admin-details-list > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; padding-bottom: 12px; border-bottom: 1px solid #efefed; }
.admin-details-list dt { color: var(--ab-muted); font-size: 9px; }
.admin-details-list dd { overflow-wrap: anywhere; margin: 0; color: #3d3e3a; font-size: 10px; line-height: 1.65; }
.admin-details-list dd > a { text-decoration: underline; text-underline-offset: 2px; }
.admin-line-items { display: grid; gap: 13px; }
.admin-line-items > div { display: flex; align-items: start; justify-content: space-between; gap: 20px; padding-bottom: 13px; border-bottom: 1px solid #efefed; font-size: 10px; }
.admin-line-items > div > span { display: grid; gap: 5px; }
.admin-line-items small { color: var(--ab-muted); font-size: 9px; }
.admin-line-items__total { padding-top: 3px; border-bottom: 0 !important; font-weight: 650; }
.admin-update-form { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr) auto; gap: 12px; align-items: end; }
.admin-update-form textarea { min-height: 44px; resize: vertical; }
.admin-update-form .ab-button { min-height: 44px; padding: 0 15px; white-space: nowrap; }
.admin-timeline { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.admin-timeline > li { position: relative; display: grid; grid-template-columns: 14px 1fr; gap: 12px; padding: 0 0 19px; }
.admin-timeline > li:not(:last-child)::before { position: absolute; top: 11px; bottom: 0; left: 5px; width: 1px; background: #e7e8e3; content: ""; }
.admin-timeline__dot { position: relative; z-index: 1; width: 11px; height: 11px; border: 2px solid #fff; border-radius: 50%; background: #22231f; box-shadow: 0 0 0 1px #22231f; }
.admin-timeline > li > div { display: grid; gap: 5px; }
.admin-timeline strong { font-size: 10px; font-weight: 620; }
.admin-timeline small, .admin-timeline p { color: var(--ab-muted); font-size: 9px; line-height: 1.6; }
.admin-timeline p { margin: 0 !important; }
.account-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
@media (max-width: 900px) {
  .admin-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .account-track { grid-template-columns: 1fr; gap: 18px; }
}

.admin-whatsapp-panel { margin-top: 16px; }
.admin-whatsapp-list { display: grid; gap: 12px; }
.admin-whatsapp-card { padding: clamp(16px, 2vw, 24px); border: 1px solid #e6e7e2; background: #fff; }
.admin-whatsapp-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.admin-whatsapp-card__head .ab-kicker { margin: 0; }
.admin-whatsapp-card__head h3 { margin: 8px 0 4px; color: #191a17; font-size: clamp(19px, 2vw, 24px); font-weight: 600; letter-spacing: -.045em; }
.admin-whatsapp-card__head .ab-kicker span { margin-left: 8px; color: #989991; }
.admin-whatsapp-card__meta { margin: 0; color: #74756f; font-size: 12px; }
.admin-whatsapp-card__meta a { color: inherit; text-decoration: none; }
.admin-whatsapp-card__details { display: grid; grid-template-columns: minmax(170px, .75fr) minmax(0, 1.5fr); gap: 12px; margin: 18px 0; }
.admin-whatsapp-card__details > div { min-width: 0; padding: 13px 15px; background: #f7f7f5; }
.admin-whatsapp-card__details dt { margin-bottom: 6px; color: #888a84; font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.admin-whatsapp-card__details dd { margin: 0; color: #292a26; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.admin-whatsapp-card__actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.admin-whatsapp-card__actions form { margin: 0; }
.admin-whatsapp-card__actions form button { min-height: 42px; padding: 0 16px; border: 1px solid #d8d9d4; background: #fff; color: #252621; font: inherit; font-size: 12px; cursor: pointer; }
.admin-whatsapp-card__actions form button:hover { border-color: #23241f; }
@media (max-width: 640px) {
  .admin-whatsapp-card__head { flex-direction: column; }
  .admin-whatsapp-card__details { grid-template-columns: 1fr; }
  .admin-whatsapp-card__actions { align-items: stretch; flex-direction: column; }
  .admin-whatsapp-card__actions > a, .admin-whatsapp-card__actions form button { width: 100%; justify-content: center; }
}
@media (max-width: 767px) {
  .account-page, .admin-page, .admin-order-page { padding-top: 48px; padding-bottom: 68px; }
  .account-page__intro, .admin-page__intro { align-items: start; flex-direction: column; gap: 17px; margin-bottom: 29px; }
  .account-auth-grid, .admin-order-grid { grid-template-columns: 1fr; gap: 11px; }
  .account-summary, .account-orders__heading, .admin-orders__heading, .admin-order-header { align-items: start; flex-direction: column; }
  .account-summary__actions { width: 100%; justify-content: space-between; }
  .account-order-card { padding: 16px 14px; }
  .account-order-card__top { align-items: start; flex-direction: column; }
  .account-track__form { grid-template-columns: 1fr; }
  .account-track__form > button { width: 100%; }
  .admin-page__user { justify-items: start; text-align: left; }
  .admin-metrics { gap: 8px; margin-bottom: 34px; }
  .admin-metric { min-height: 104px; padding: 14px 13px; }
  .admin-filters { grid-template-columns: 1fr; }
  .admin-filters > button { width: 100%; }
  .admin-table-wrap { margin-right: -15px; }
  .admin-order-card { padding: 20px 15px; }
  .admin-order-card--wide { grid-column: auto; }
  .admin-details-list > div { grid-template-columns: 82px minmax(0, 1fr); }
  .admin-update-form { grid-template-columns: 1fr; }
  .admin-update-form .ab-button { width: 100%; justify-content: space-between; }
}

/* Private ANYBOX operations workspace */
.ab-admin-body { min-height: 100vh; overflow-x: hidden; background: #f5f5f3; color: #171816; }
.ab-admin-body .admin-layout { display: grid; min-height: 100vh; grid-template-columns: 248px minmax(0, 1fr); }
.admin-sidebar { position: sticky; top: 0; display: flex; height: 100vh; min-height: 620px; flex-direction: column; padding: 26px 17px 18px; border-right: 1px solid #e8e8e4; background: #fff; }
.admin-brand { display: grid; width: max-content; gap: 10px; margin: 4px 0 45px 9px; text-decoration: none; }
.admin-brand img { width: 132px; height: auto; }
.admin-brand > span, .admin-sidebar__label { color: #999a94; font-size: 8px; font-weight: 650; letter-spacing: .15em; }
.admin-brand > span { padding-left: 1px; }
.admin-sidebar__label { margin: 0 10px 12px; }
.admin-nav { display: grid; gap: 4px; }
.ab-admin-body .admin-nav > a { display: flex; min-height: 43px; align-items: center; gap: 11px; padding: 0 10px; color: #696a64; font-size: 11px; font-weight: 540; text-decoration: none; transition: color .16s, background .16s; }
.admin-nav > a:hover { background: #f7f7f5; color: #171816; }
.admin-nav > a[aria-current="page"] { background: #f0f1ee; color: #171816; font-weight: 650; }
.admin-nav svg { width: 17px; height: 17px; flex: 0 0 17px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5; }
.admin-nav__arrow { margin-left: auto; color: #969791; font-size: 12px; }
.admin-sidebar__bottom { display: grid; gap: 15px; margin-top: auto; }
.admin-store-link { display: flex; min-height: 42px; align-items: center; gap: 10px; padding: 0 10px; border: 1px solid #e7e8e3; color: #44453f; font-size: 10px; text-decoration: none; }
.admin-store-link:hover { border-color: #bfc0b9; }
.admin-store-link__icon { display: grid; width: 20px; height: 20px; place-items: center; border: 1px solid #e4e5e0; border-radius: 50%; font-size: 11px; }
.admin-profile { display: flex; min-width: 0; align-items: center; gap: 10px; padding: 14px 3px 0; border-top: 1px solid #ededeb; }
.admin-profile__avatar { display: grid; width: 31px; height: 31px; flex: 0 0 31px; place-items: center; border-radius: 50%; background: #eff0ed; color: #343530; font-size: 12px; font-weight: 650; }
.admin-profile__identity { display: grid; min-width: 0; gap: 4px; }
.admin-profile__identity strong, .admin-profile__identity small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-profile__identity strong { font-size: 10px; font-weight: 620; }
.admin-profile__identity small { color: #858680; font-size: 9px; }
.admin-logout { margin-left: auto; }
.admin-logout button { border: 0; background: transparent; color: #777872; cursor: pointer; font: inherit; font-size: 9px; white-space: nowrap; }
.admin-logout button span { margin-right: 3px; }
.admin-logout button:hover { color: #161714; }
.admin-workspace { min-width: 0; }
.admin-topbar { position: sticky; z-index: 10; top: 0; display: flex; min-height: 66px; align-items: center; justify-content: space-between; gap: 20px; padding: 0 clamp(22px, 4vw, 58px); border-bottom: 1px solid #e8e8e4; background: rgba(255,255,255,.94); backdrop-filter: blur(12px); }
.admin-topbar > div { display: grid; gap: 5px; }
.admin-topbar__crumb { color: #92938d; font-size: 8px; font-weight: 650; letter-spacing: .12em; }
.admin-topbar__crumb i { padding: 0 4px; color: #c1c2bc; font-style: normal; }
.admin-topbar > div > strong { font-size: 11px; font-weight: 600; }
.admin-topbar__status { display: flex; align-items: center; gap: 7px; color: #666760; font-size: 8px; font-weight: 650; letter-spacing: .09em; }
.admin-topbar__status i, .admin-range-badge i { width: 6px; height: 6px; border-radius: 50%; background: #6e9a74; }
.admin-workspace__content { width: 100%; max-width: 1680px; margin: 0 auto; padding: 38px clamp(22px, 4vw, 58px) 72px; }
.admin-skip { position: fixed; z-index: 100; top: 8px; left: 8px; transform: translateY(-160%); padding: 10px 13px; background: #111; color: #fff; }
.admin-skip:focus { transform: translateY(0); }
.admin-page { padding-top: 5px; padding-bottom: 0; }
.admin-page__intro--console { align-items: center; margin-bottom: 28px; }
.admin-page__intro--console h1 { font-size: clamp(36px, 4.3vw, 56px); }
.admin-page__intro--console h1 > span { color: #858780; }
.admin-page__intro--console > div > .ab-kicker { margin: 0; }
.admin-page__intro--console > div > p:last-child { max-width: 600px; }
.admin-page__intro--console .ab-kicker > span { margin-left: 10px; color: #a0a19b; }
.ab-admin-body .admin-primary-action { display: inline-flex; min-height: 44px; align-items: center; gap: 15px; padding: 0 16px; background: #171816; color: #fff; font-size: 10px; font-weight: 600; text-decoration: none; transition: background .18s; }
.admin-primary-action:hover { background: #383a35; }
.admin-primary-action > span { font-size: 14px; }
.admin-range-badge { display: inline-flex; align-items: center; gap: 8px; padding: 9px 11px; border: 1px solid #e3e4df; background: #fff; color: #5d5e58; font-size: 9px; }
.admin-metrics--console { gap: 10px; margin-bottom: 24px; }
.admin-metrics--console .admin-metric { min-height: 135px; padding: 18px; text-decoration: none; }
.admin-metrics--console .admin-metric > span { display: flex; justify-content: space-between; gap: 9px; }
.admin-metrics--console .admin-metric > span i { color: #a1a29c; font-size: 12px; font-style: normal; }
.admin-metrics--console .admin-metric > strong { font-size: 34px; }
.admin-metric--warm { background: #fffdf8; }
.admin-metric--cool { background: #f9fbfc; }
.admin-panel { padding: clamp(17px, 2.2vw, 27px); border: 1px solid #e7e8e3; background: #fff; }
.admin-panel--overview { margin-top: 0; }
.admin-orders__heading { margin-bottom: 20px; }
.admin-orders__heading .ab-kicker { margin: 0; }
.admin-orders__heading h2 { margin-bottom: 0; color: #191a17; }
.admin-orders__heading h2 > span { border-radius: 99px; }
.ab-admin-body .admin-export { color: #575853; font-weight: 580; }
.admin-table--console { min-width: 860px; }
.admin-table--console th { background: #fafaf8; }
.admin-table--console td { height: 73px; }
.admin-table--console td > strong { font-weight: 620; }
.admin-table--console .admin-order-ref { text-decoration: none; }
.admin-table--console .admin-order-ref:hover { text-decoration: underline; text-underline-offset: 3px; }
.admin-table--console td:nth-child(4) { white-space: nowrap; }
.admin-table--console td:nth-child(4) > small { color: #83847e; }
.admin-table--console .account-status { max-width: 190px; }
.ab-admin-body .admin-open-order { color: #343530; text-decoration: none; }
.admin-footnote { font-size: 9px; }
.admin-quick-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 13px; }
.admin-quick-links > a { display: grid; grid-template-columns: 1fr auto; gap: 13px 20px; padding: 17px 19px; border: 1px solid #e7e8e3; background: #fff; text-decoration: none; transition: border-color .18s, transform .18s; }
.admin-quick-links > a:hover { transform: translateY(-2px); border-color: #bcbdb7; }
.admin-quick-links > a > span { grid-column: 1 / -1; color: #969791; font-size: 8px; font-weight: 650; letter-spacing: .12em; }
.admin-quick-links > a > strong { font-size: 11px; font-weight: 600; }
.admin-quick-links > a > i { color: #686963; font-size: 14px; font-style: normal; }
.admin-filters { grid-template-columns: minmax(0, 1fr) 220px auto; }
.admin-filters--search-only { grid-template-columns: minmax(0, 1fr) auto; }
.ab-admin-body .admin-filters > button { min-width: 130px; color: #fff; }
.admin-customer-type { display: inline-flex; padding: 4px 7px; border: 1px solid #e7e8e3; background: #f9f9f7; color: #666760; font-size: 8px; letter-spacing: .04em; }
.admin-table-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 14px; color: #858680; font-size: 9px; }
.admin-pagination { display: inline-flex; align-items: center; gap: 11px; }
.admin-pagination > a { display: grid; width: 29px; height: 29px; place-items: center; border: 1px solid #e5e6e1; color: #30312d; font-size: 13px; text-decoration: none; }
.admin-pagination > a:hover { border-color: #b4b5af; background: #f7f7f5; }
.admin-products-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.admin-product-card { min-width: 0; padding: 18px; border: 1px solid #e7e8e3; background: #fff; }
.admin-product-card__head { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.admin-product-card__head .ab-kicker { margin: 0 0 7px; }
.admin-product-card__head .ab-kicker > span { margin-left: 8px; color: #a0a19b; }
.admin-product-card__head h2 { font-size: 17px; font-weight: 600; letter-spacing: -.04em; }
.ab-admin-body .admin-product-card__head a { display: inline-flex; gap: 5px; margin-top: 7px; color: #71726b; font-size: 9px; text-decoration: none; }
.admin-product-card__head a:hover { color: #111; }
.admin-product-card__head > strong { padding-top: 2px; font-size: 12px; font-weight: 650; white-space: nowrap; }
.admin-product-card__photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.admin-product-photo { overflow: hidden; min-width: 0; margin: 0; border: 1px solid #e9eae6; background: #f7f7f5; }
.admin-product-photo > img { display: block; width: 100%; aspect-ratio: 1.45 / 1; object-fit: cover; }
.admin-product-photo > figcaption { display: flex; min-height: 34px; align-items: center; justify-content: space-between; gap: 7px; padding: 7px 8px; background: #fff; }
.admin-product-photo > figcaption > span { color: #555650; font-size: 8px; }
.admin-product-photo > figcaption > b { color: #858680; font-size: 7px; letter-spacing: .06em; white-space: nowrap; }
.admin-photo-form { display: grid; gap: 10px; margin-top: 15px; }
.admin-photo-form > label { display: grid; gap: 6px; color: #555650; font-size: 9px; font-weight: 600; }
.admin-photo-form input:not([type="file"]), .admin-photo-form select { min-width: 0; width: 100%; min-height: 38px; padding: 9px 10px; border: 1px solid #e0e1dc; border-radius: 0; background: #fff; color: #292a26; font: inherit; font-size: 10px; }
.admin-photo-form input:focus-visible, .admin-photo-form select:focus-visible, .admin-photo-form button:focus-visible, .admin-nav a:focus-visible, .admin-topbar a:focus-visible { outline: 2px solid #636761; outline-offset: 2px; }
.admin-upload-field { padding: 11px; border: 1px dashed #d5d6d0; background: #fafaf8; }
.admin-upload-field input[type="file"] { width: 100%; color: #666760; font: inherit; font-size: 9px; }
.admin-upload-field input[type="file"]::file-selector-button { min-height: 30px; margin-right: 9px; padding: 0 9px; border: 1px solid #dedfda; background: #fff; color: #252622; cursor: pointer; font: inherit; font-size: 9px; }
.admin-upload-field small { color: #898a84; font-size: 8px; font-weight: 400; }
.admin-photo-form > button { display: flex; min-height: 40px; align-items: center; justify-content: space-between; padding: 0 12px; border: 0; background: #171816; color: #fff; cursor: pointer; font: inherit; font-size: 10px; font-weight: 600; }
.admin-photo-form > button:hover { background: #3b3d38; }
.admin-media-note { margin-top: 14px !important; }
.ab-admin-body .account-alert, .ab-admin-body .account-success { margin-bottom: 16px; }
.admin-home-intro { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 0 0 16px; padding: 18px 20px; border: 1px solid #e7e8e3; background: #f9f9f7; }
.admin-home-intro > div { display: grid; gap: 6px; }
.admin-home-intro__index { color: #858680; font-size: 8px; font-weight: 650; letter-spacing: .13em; }
.admin-home-intro strong { color: #242520; font-size: 14px; font-weight: 620; letter-spacing: -.03em; }
.admin-home-intro p { max-width: 650px; margin: 0 !important; color: #74756f; font-size: 10px; line-height: 1.6; }
.admin-home-media-grid { margin-top: 14px; }
.admin-home-media-card__description { max-width: 340px; margin: 6px 0 0 !important; color: #777871; font-size: 9px; line-height: 1.5; }
.admin-home-media-card .admin-home-photo > img { aspect-ratio: 16 / 9; object-fit: cover; }
.admin-home-media-card .admin-photo-form { margin-top: 12px; }
.admin-home-media-card .admin-home-reset-form { margin-top: 8px; text-align: right; }
.admin-home-reset-form > button { padding: 6px 0; border: 0; background: transparent; color: #6d6e68; cursor: pointer; font: inherit; font-size: 9px; text-decoration: underline; text-underline-offset: 3px; }
.admin-home-reset-form > button:hover { color: #171816; }
.admin-home-reset-form > button:focus-visible { outline: 2px solid #636761; outline-offset: 3px; }
.admin-home-gallery { display: grid; gap: 15px; margin-top: 58px; }
.admin-home-gallery__heading { align-items: center; margin-bottom: 0; }
.admin-home-gallery__heading h2 { display: flex; align-items: center; gap: 9px; margin-top: 8px; font-size: 24px; font-weight: 570; letter-spacing: -.05em; }
.admin-home-gallery__heading h2 > span { display: inline-grid; min-width: 22px; height: 22px; place-items: center; border-radius: 50%; background: #f0f0ee; color: #60615c; font-size: 9px; font-weight: 500; }
.admin-home-gallery__heading > div > p:last-child { max-width: 610px; margin: 8px 0 0 !important; color: #777871; font-size: 10px; line-height: 1.65; }
.admin-home-gallery__new { padding: clamp(16px, 2.4vw, 26px); }
.admin-home-gallery__new-heading { display: flex; align-items: center; gap: 13px; margin-bottom: 19px; }
.admin-home-gallery__plus { display: grid; width: 39px; height: 39px; flex: 0 0 39px; place-items: center; border: 1px solid #e6e7e2; background: #fafaf8; color: #252622; font-size: 23px; font-weight: 300; }
.admin-home-gallery__new-heading h3 { font-size: 15px; font-weight: 620; letter-spacing: -.03em; }
.admin-home-gallery__new-heading p { margin: 4px 0 0 !important; color: #777871; font-size: 9px; line-height: 1.55; }
.admin-home-gallery-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; margin-top: 0; }
.admin-home-gallery-form > label:not(.admin-catalog-check) { display: grid; min-width: 0; gap: 6px; color: #555650; font-size: 9px; font-weight: 600; }
.admin-home-gallery-form input:not([type="file"]):not([type="hidden"]), .admin-home-gallery-form textarea { width: 100%; min-width: 0; min-height: 40px; padding: 10px 11px; border: 1px solid #e0e1dc; border-radius: 0; background: #fff; color: #292a26; font: inherit; font-size: 10px; }
.admin-home-gallery-form textarea { min-height: 78px; resize: vertical; line-height: 1.5; }
.admin-home-gallery-form input:focus-visible, .admin-home-gallery-form textarea:focus-visible { outline: 2px solid #777a74; outline-offset: 1px; }
.admin-home-gallery-form > label > small { color: #898a84; font-size: 8px; font-weight: 400; line-height: 1.5; }
.admin-home-gallery-form__wide { grid-column: 1 / -1; }
.admin-home-gallery-form__upload { grid-column: 1 / -1; }
.admin-home-gallery-form__publish { align-self: stretch; }
.admin-home-gallery-form > button { display: flex; min-height: 42px; align-items: center; justify-content: space-between; gap: 18px; padding: 0 13px; border: 0; background: #171816; color: #fff; cursor: pointer; font: inherit; font-size: 9px; font-weight: 600; }
.admin-home-gallery-form > button:hover { background: #3b3d38; }
.admin-home-gallery__grid { margin-top: 0; }
.admin-home-gallery-card { transition: opacity .2s, border-color .2s; }
.admin-home-gallery-card.is-hidden { border-color: #e3e3df; }
.admin-home-gallery__order { display: grid; width: 31px; height: 31px; flex: 0 0 31px; place-items: center; border: 1px solid #e7e8e3; color: #555650; font-size: 9px; }
.admin-home-gallery__photo > img { aspect-ratio: 1.72 / 1; object-fit: cover; }
.admin-home-gallery-visibility { margin-top: 8px; text-align: right; }
.admin-home-gallery-visibility > button { padding: 6px 0; border: 0; background: transparent; color: #6d6e68; cursor: pointer; font: inherit; font-size: 9px; text-decoration: underline; text-underline-offset: 3px; }
.admin-home-gallery-visibility > button:hover { color: #171816; }
.admin-home-gallery-visibility > button:focus-visible { outline: 2px solid #636761; outline-offset: 3px; }
.admin-home-gallery__empty { display: flex; align-items: start; gap: 16px; padding: 20px 22px; border: 1px dashed #d9dad4; background: #fafaf8; }
.admin-home-gallery__empty > span { color: #a0a19b; font-size: 8px; font-weight: 650; letter-spacing: .1em; white-space: nowrap; }
.admin-home-gallery__empty strong { font-size: 12px; font-weight: 620; }
.admin-home-gallery__empty p { max-width: 620px; margin: 5px 0 0 !important; color: #777871; font-size: 9px; line-height: 1.6; }
.admin-catalog-intro { margin-top: 0; }
.admin-catalog-list { display: grid; gap: 13px; margin-top: 14px; }
.admin-catalog-item { padding: clamp(16px, 2.4vw, 27px); }
.admin-catalog-item__head { display: flex; align-items: start; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.admin-catalog-item__head .ab-kicker { margin: 0 0 6px; }
.admin-catalog-item__head .ab-kicker > span { margin-left: 8px; color: #999a94; }
.admin-catalog-item__head h2 { margin: 0; font-size: clamp(17px, 2vw, 22px); font-weight: 590; letter-spacing: -.04em; }
.admin-customer-type--live { border-color: #d4e2d3; background: #f4f9f3; color: #496d48; }
.admin-catalog-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; align-items: start; }
.admin-catalog-form > label:not(.admin-catalog-check) { display: grid; min-width: 0; gap: 6px; color: #555650; font-size: 9px; font-weight: 600; }
.admin-catalog-form input:not([type="checkbox"]), .admin-catalog-form select, .admin-catalog-form textarea { width: 100%; min-width: 0; min-height: 40px; padding: 10px 11px; border: 1px solid #e0e1dc; border-radius: 0; background: #fff; color: #292a26; font: inherit; font-size: 10px; }
.admin-catalog-form textarea { min-height: 84px; resize: vertical; line-height: 1.5; }
.admin-catalog-form input:focus-visible, .admin-catalog-form select:focus-visible, .admin-catalog-form textarea:focus-visible { outline: 2px solid #777a74; outline-offset: 1px; }
.admin-catalog-form > label > small { color: #898a84; font-size: 8px; font-weight: 400; line-height: 1.5; }
.admin-catalog-form__wide { grid-column: 1 / -1; }
.admin-catalog-check { display: flex; min-height: 54px; align-items: start; gap: 9px; padding: 10px; border: 1px solid #e8e9e5; background: #fafaf8; color: #343530; cursor: pointer; }
.admin-catalog-check > input { width: 15px; height: 15px; flex: 0 0 15px; margin: 1px 0 0; accent-color: #22231f; }
.admin-catalog-check > span { display: grid; gap: 3px; }
.admin-catalog-check b { font-size: 9px; font-weight: 620; }
.admin-catalog-check small { color: #858680; font-size: 8px; font-weight: 400; line-height: 1.45; }
.admin-catalog-form > button, .admin-catalog-form__actions > button { display: flex; min-height: 42px; align-items: center; justify-content: space-between; gap: 18px; padding: 0 13px; border: 0; background: #171816; color: #fff; cursor: pointer; font: inherit; font-size: 9px; font-weight: 600; }
.admin-catalog-form > button:hover, .admin-catalog-form__actions > button:hover { background: #3b3d38; }
.admin-catalog-form--edit { padding-top: 17px; border-top: 1px solid #ededeb; }
.admin-catalog-form__actions { display: flex; grid-column: 1 / -1; align-items: center; justify-content: flex-end; gap: 17px; }
.admin-catalog-form__actions > a { color: #5f605a; font-size: 9px; text-decoration: none; }
.admin-catalog-form__actions > a:hover { color: #171816; text-decoration: underline; text-underline-offset: 3px; }
.admin-catalog-form__actions > button { min-width: 145px; }
.admin-catalog-item .admin-catalog-form__actions { margin-top: 2px; }
.admin-catalog-item .admin-catalog-form__actions > button { flex: 0 0 auto; }
.admin-catalog-add { margin-bottom: 14px; }
.ab-admin-body .admin-catalog-form input:disabled, .ab-admin-body .admin-catalog-form button:disabled { cursor: not-allowed; opacity: .55; }
.ab-admin-body .shop-product-card__basket:disabled, .ab-admin-body .product-commercial__basket:disabled { cursor: not-allowed; opacity: .55; }

/* Dynamic product category manager */
.admin-category-panel { margin: 0 0 14px; }
.admin-category-panel .admin-orders__heading { margin-bottom: 17px; }
.admin-category-panel .admin-orders__heading h2 { margin-top: 6px; font-size: clamp(20px, 2.7vw, 27px); letter-spacing: -.05em; }
.admin-category-panel .admin-orders__heading h2 > span { display: inline-grid; min-width: 22px; height: 22px; place-items: center; border-radius: 50%; background: #f0f0ee; color: #60615c; font-size: 9px; font-weight: 500; vertical-align: 4px; }
.admin-category-panel .admin-orders__heading p:last-child { max-width: 650px; margin-top: 7px !important; color: var(--ab-muted); font-size: 9px; line-height: 1.6; }
.admin-category-add-form { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(140px, .65fr) auto; gap: 10px; align-items: end; padding: 15px; border: 1px solid #e9eae6; background: #fafaf8; }
.admin-category-add-form > label { display: grid; min-width: 0; gap: 6px; color: #555650; font-size: 9px; font-weight: 600; }
.admin-category-add-form input, .admin-category-row > input { width: 100%; min-width: 0; min-height: 38px; padding: 9px 10px; border: 1px solid #e0e1dc; background: #fff; color: #292a26; font: inherit; font-size: 10px; }
.admin-category-add-form small { color: #898a84; font-size: 8px; font-weight: 400; }
.admin-category-add-form > button, .admin-category-row > button { display: flex; min-height: 38px; align-items: center; justify-content: space-between; gap: 13px; padding: 0 12px; border: 0; background: #171816; color: #fff; cursor: pointer; font: inherit; font-size: 9px; font-weight: 600; }
.admin-category-add-form > button:hover, .admin-category-row > button:hover { background: #3b3d38; }
.admin-category-list { display: grid; gap: 7px; margin-top: 10px; }
.admin-category-row { display: grid; grid-template-columns: minmax(120px, .75fr) minmax(130px, 1.5fr) 94px minmax(105px, auto) auto; gap: 9px; align-items: center; padding: 9px; border: 1px solid #e9eae6; background: #fff; }
.admin-category-row.is-archived { background: #f8f8f6; }
.admin-category-row__identity { display: grid; min-width: 0; gap: 3px; padding-left: 5px; }
.admin-category-row__identity > span { overflow: hidden; color: #383934; font-size: 9px; font-weight: 620; text-overflow: ellipsis; }
.admin-category-row__identity > small { color: #898a84; font-size: 8px; }
.admin-category-row__active { display: flex; align-items: center; gap: 6px; color: #5b5c56; font-size: 8px; cursor: pointer; }
.admin-category-row__active input { width: 14px; height: 14px; margin: 0; accent-color: #22231f; }
.admin-category-row > button { min-height: 35px; }
.admin-category-add-form input:focus-visible, .admin-category-row > input:focus-visible, .admin-category-row > button:focus-visible, .admin-category-add-form > button:focus-visible { outline: 2px solid #777a74; outline-offset: 1px; }

/* Product gallery controls in Products & photos */
.admin-product-gallery { display: grid; gap: 13px; margin-top: 18px; padding-top: 17px; border-top: 1px solid #e8e9e5; }
.admin-product-gallery__heading { display: flex; align-items: start; justify-content: space-between; gap: 14px; }
.admin-product-gallery__heading .ab-kicker { margin: 0 0 6px; }
.admin-product-gallery__heading h3 { margin: 0; color: #252622; font-size: 15px; font-weight: 620; letter-spacing: -.04em; }
.admin-product-gallery__heading p:not(.ab-kicker) { max-width: 580px; margin: 5px 0 0; color: #777871; font-size: 9px; line-height: 1.5; }
.admin-product-gallery__heading > span { flex: 0 0 auto; padding: 6px 8px; border: 1px solid #e5e6e1; color: #5c5d57; font-size: 8px; font-weight: 600; }
.admin-product-gallery__add { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: end; padding: 13px; border: 1px solid #e9eae6; background: #fafaf8; }
.admin-product-gallery__add > label:not(.admin-catalog-check), .admin-product-gallery__edit > label { display: grid; min-width: 0; gap: 6px; color: #555650; font-size: 9px; font-weight: 600; }
.admin-product-gallery__add input:not([type="file"]), .admin-product-gallery__edit input:not([type="file"]), .admin-product-gallery__add input[type="file"], .admin-product-gallery__edit input[type="file"] { width: 100%; min-width: 0; min-height: 37px; padding: 8px 9px; border: 1px solid #e0e1dc; background: #fff; color: #292a26; font: inherit; font-size: 9px; }
.admin-product-gallery__add input[type="file"], .admin-product-gallery__edit input[type="file"] { padding: 6px; }
.admin-product-gallery__add small, .admin-product-gallery__edit small { color: #898a84; font-size: 8px; font-weight: 400; }
.admin-product-gallery__upload { grid-column: 1 / -1; }
.admin-product-gallery__add > button, .admin-product-gallery__edit > button { display: flex; min-height: 39px; align-items: center; justify-content: space-between; gap: 12px; padding: 0 12px; border: 0; background: #171816; color: #fff; cursor: pointer; font: inherit; font-size: 9px; font-weight: 600; }
.admin-product-gallery__add > button:hover, .admin-product-gallery__edit > button:hover { background: #3b3d38; }
.admin-product-gallery__add > button:disabled { cursor: not-allowed; opacity: .5; }
.admin-product-gallery__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.admin-product-gallery__item { min-width: 0; padding: 8px; border: 1px solid #e8e9e5; background: #fff; }
.admin-product-gallery__item.is-hidden { background: #f8f8f6; opacity: .78; }
.admin-product-gallery__item > img { display: block; width: 100%; aspect-ratio: 1.45; object-fit: cover; background: #f2f2ef; }
.admin-product-gallery__edit { display: grid; gap: 8px; margin-top: 9px; }
.admin-product-gallery__edit-row { display: grid; grid-template-columns: minmax(72px, .5fr) minmax(0, 1fr); gap: 7px; align-items: end; }
.admin-product-gallery__edit-row > label:not(.admin-catalog-check) { display: grid; gap: 5px; color: #555650; font-size: 8px; }
.admin-product-gallery__edit-row .admin-catalog-check { min-height: 37px; padding: 6px; }
.admin-product-gallery__edit-row .admin-catalog-check b { font-size: 8px; }
.admin-product-gallery__edit-row .admin-catalog-check small { font-size: 7px; }
.admin-product-gallery__toggle { margin-top: 3px; text-align: right; }
.admin-product-gallery__toggle > button { padding: 4px 0; border: 0; background: none; color: #696a64; cursor: pointer; font: inherit; font-size: 8px; text-decoration: underline; text-underline-offset: 3px; }
.admin-product-gallery__empty { padding: 12px; border: 1px dashed #d9dad4; color: #777871; font-size: 9px; }
/* The global storefront reset makes buttons inherit text color; restore legible
   white labels on the admin's dark primary actions. */
.ab-admin-body .admin-photo-form > button,
.ab-admin-body .admin-home-gallery-form > button,
.ab-admin-body .admin-catalog-form > button,
.ab-admin-body .admin-catalog-form__actions > button,
.ab-admin-body .admin-category-add-form > button,
.ab-admin-body .admin-category-row > button,
.ab-admin-body .admin-product-gallery__add > button,
.ab-admin-body .admin-product-gallery__edit > button,
.ab-admin-body .admin-reseller-review-form button,
.ab-admin-body .admin-reseller-price-form > button,
.ab-admin-body .admin-copy-form__actions > button { color: #fff; }
@media (max-width: 1050px) {
  .ab-admin-body .admin-layout { grid-template-columns: 208px minmax(0, 1fr); }
  .admin-sidebar { padding-inline: 12px; }
  .admin-products-grid { grid-template-columns: 1fr; }
  .admin-quick-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-filters { grid-template-columns: minmax(0, 1fr) 180px; }
  .admin-filters > button { grid-column: 1 / -1; }
  .admin-filters--search-only { grid-template-columns: minmax(0, 1fr); }
  .admin-category-row { grid-template-columns: minmax(0, 1fr) 88px auto; gap: 7px; }
  .admin-category-row__identity { grid-column: 1 / -1; grid-row: 1; padding: 0 0 4px; }
  .admin-category-row > input[name="category_name"] { grid-column: 1 / 3; }
  .admin-category-row > input[name="sort_order"] { grid-column: 1; }
  .admin-category-row__active { grid-column: 2; grid-row: 3; }
  .admin-category-row > button { grid-column: 3; grid-row: 2 / 4; align-self: stretch; }
}
@media (max-width: 760px) {
  .ab-admin-body .admin-layout { display: block; }
  .admin-sidebar { position: relative; height: auto; min-height: 0; padding: 13px 16px 10px; border-right: 0; border-bottom: 1px solid #e8e8e4; }
  .admin-brand { display: flex; align-items: center; gap: 10px; margin: 0 0 13px; }
  .admin-brand img { width: 106px; }
  .admin-brand > span { padding: 5px 0 0; }
  .admin-sidebar__label, .admin-sidebar__bottom { display: none; }
  .admin-nav { display: flex; gap: 5px; overflow-x: auto; margin: 0 -16px; padding: 0 16px 2px; scrollbar-width: thin; }
  .admin-nav > a { min-height: 37px; flex: 0 0 auto; gap: 7px; padding: 0 9px; border: 1px solid transparent; font-size: 9px; }
  .admin-nav > a[aria-current="page"] { border-color: #e6e7e2; background: #f5f5f3; }
  .admin-nav svg { width: 15px; height: 15px; flex-basis: 15px; }
  .admin-catalog-form { grid-template-columns: 1fr; gap: 11px; }
  .admin-catalog-form__wide, .admin-catalog-form__actions { grid-column: auto; }
  .admin-catalog-form__actions { align-items: stretch; flex-direction: column; gap: 12px; }
  .admin-catalog-form__actions > button { width: 100%; }
  .admin-catalog-item__head { align-items: start; flex-direction: column; }
  .admin-catalog-intro { align-items: start; flex-direction: column; }
  .admin-category-add-form { grid-template-columns: 1fr; }
  .admin-category-row { grid-template-columns: minmax(0, 1fr) 90px auto; gap: 7px; }
  .admin-category-row__identity { grid-column: 1 / -1; grid-row: 1; padding: 0 0 5px; }
  .admin-category-row > input[name="category_name"] { grid-column: 1 / 3; }
  .admin-category-row > input[name="sort_order"] { grid-column: 1; }
  .admin-category-row__active { grid-column: 2; grid-row: 3; }
  .admin-category-row > button { grid-column: 3; grid-row: 2 / 4; align-self: stretch; }
  .admin-product-gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-product-gallery__heading { align-items: flex-start; }
  .admin-product-gallery__add { grid-template-columns: 1fr; }
  .admin-product-gallery__upload { grid-column: auto; }
  .admin-topbar { position: relative; min-height: 54px; padding-inline: 17px; }
  .admin-topbar__status { font-size: 7px; }
  .admin-workspace__content { padding: 28px 16px 52px; }
  .admin-page { padding-top: 0; }
  .admin-page__intro--console { align-items: flex-start; margin-bottom: 22px; }
  .admin-page__intro--console h1 { font-size: clamp(34px, 10vw, 46px); }
  .admin-primary-action { width: 100%; justify-content: space-between; }
  .admin-metrics--console { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; margin-bottom: 12px; }
  .admin-metrics--console .admin-metric { min-height: 113px; padding: 12px; }
  .admin-metrics--console .admin-metric > span { font-size: 9px; }
  .admin-metrics--console .admin-metric > strong { font-size: 28px; }
  .admin-metrics--console .admin-metric > small { font-size: 8px; line-height: 1.35; }
  .admin-panel { padding: 15px 12px; }
  .admin-orders__heading { gap: 9px; }
  .admin-orders__heading h2 { font-size: 20px; }
  .admin-table-wrap { margin-right: -12px; }
  .admin-table-footer { align-items: flex-start; flex-direction: column; }
  .admin-quick-links { grid-template-columns: 1fr; gap: 7px; }
  .admin-filters, .admin-filters--search-only { grid-template-columns: 1fr; }
  .admin-filters > button { width: 100%; }
  .admin-products-grid { grid-template-columns: 1fr; gap: 9px; }
  .admin-product-card { padding: 13px; }
  .admin-product-card__head h2 { font-size: 15px; }
  .admin-product-photo > img { aspect-ratio: 1.25 / 1; }
  .admin-home-intro { align-items: flex-start; flex-direction: column; gap: 12px; padding: 14px; }
  .admin-home-gallery { margin-top: 43px; }
  .admin-home-gallery__heading { align-items: flex-start; }
  .admin-home-gallery__heading h2 { font-size: 20px; }
  .admin-home-gallery-form { grid-template-columns: 1fr; gap: 10px; }
  .admin-home-gallery-form__wide, .admin-home-gallery-form__upload { grid-column: auto; }
  .admin-home-gallery-form > button { width: 100%; }
  .admin-home-gallery__empty { padding: 15px; }
  .admin-home-media-card .admin-home-photo > img { aspect-ratio: 16 / 9; }
}

/* Reseller account and private catalog */
.account-reseller { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, .9fr); gap: 18px 36px; align-items: start; margin: 0 0 42px; padding: 22px 0 28px; border-top: 1px solid var(--ab-line); border-bottom: 1px solid var(--ab-line); }
.account-reseller > div:first-child > .ab-kicker { margin: 0 0 8px; }
.account-reseller h2 { font-size: 21px; font-weight: 560; letter-spacing: -.05em; }
.account-reseller > div:first-child > p:last-child { max-width: 480px; margin-top: 8px; color: var(--ab-muted); font-size: 10px; line-height: 1.65; }
.account-reseller__status { display: grid; justify-items: start; gap: 11px; padding: 17px; border: 1px solid var(--ab-line); background: #fafaf8; }
.account-reseller__status > p { color: #696a64; font-size: 10px; line-height: 1.6; }
.account-reseller__status .ab-button { min-height: 40px; padding-inline: 13px; font-size: 9px; }
.account-reseller__form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 0; }
.account-reseller__form > label:first-of-type { grid-column: 1 / -1; }
.account-reseller__form > label > span { color: #858680; font-weight: 400; }
.account-reseller__form input { min-width: 0; width: 100%; }
.account-reseller__form .ab-button { grid-column: 1 / -1; width: 100%; }
.account-reseller .account-success, .account-reseller .account-alert { grid-column: 1 / -1; margin: 0; }
.reseller-page__intro { display: grid; grid-template-columns: 1fr minmax(220px, .48fr); align-items: end; gap: 10px 28px; }
.reseller-page__intro > .ab-kicker { grid-column: 1 / -1; }
.reseller-page__intro > h1 { margin: 0; }
.reseller-page__intro > p:last-child { margin: 0 0 5px; color: var(--ab-muted); font-size: 11px; line-height: 1.65; }
.reseller-page__notice { display: grid; justify-items: start; gap: 12px; max-width: 660px; padding: clamp(22px, 4vw, 40px); border: 1px solid var(--ab-line); background: #fff; }
.reseller-page__notice h2 { font-size: 24px; font-weight: 560; letter-spacing: -.05em; }
.reseller-page__notice p { max-width: 480px; color: var(--ab-muted); font-size: 11px; line-height: 1.65; }
.reseller-page__welcome { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 15px; padding: 15px 18px; border: 1px solid var(--ab-line); background: #fff; }
.reseller-page__welcome > div { display: grid; gap: 5px; }
.reseller-page__welcome > div > span { color: #777871; font-size: 8px; font-weight: 650; letter-spacing: .11em; }
.reseller-page__welcome > div > strong { font-size: 13px; font-weight: 620; }
.reseller-page__welcome > p { max-width: 560px; color: var(--ab-muted); font-size: 9px; line-height: 1.6; }
.reseller-catalog { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.reseller-card { display: flex; min-width: 0; flex-direction: column; border: 1px solid var(--ab-line); background: #fff; }
.reseller-card__image { position: relative; display: block; overflow: hidden; background: #f5f5f2; }
.reseller-card__image > img { display: block; width: 100%; aspect-ratio: 1.35 / 1; object-fit: cover; transition: transform .3s ease; }
.reseller-card__image:hover > img { transform: scale(1.025); }
.reseller-card__image > span { position: absolute; right: 10px; bottom: 10px; padding: 5px 7px; background: rgba(255,255,255,.92); color: #555650; font-size: 7px; letter-spacing: .08em; }
.reseller-card__body { display: flex; flex: 1; flex-direction: column; align-items: start; padding: 15px; }
.reseller-card__body h2 { font-size: 16px; font-weight: 600; letter-spacing: -.04em; }
.reseller-card__body h2 > a { text-decoration: none; }
.reseller-card__body > p:not(.reseller-card__availability) { min-height: 34px; margin-top: 6px; color: var(--ab-muted); font-size: 9px; line-height: 1.55; }
.reseller-card__price { display: flex; width: 100%; align-items: end; justify-content: space-between; gap: 10px; margin-top: 16px; padding-top: 12px; border-top: 1px solid #eeeeeb; }
.reseller-card__price > span { max-width: 180px; color: #858680; font-size: 8px; line-height: 1.45; }
.reseller-card__price > strong { color: #171816; font-size: 18px; font-weight: 620; white-space: nowrap; }
.reseller-card__availability { margin-top: 9px; color: #64655f; font-size: 8px; }
.reseller-card__body > button { display: flex; width: 100%; min-height: 40px; align-items: center; justify-content: space-between; margin-top: 13px; padding: 0 12px; border: 0; background: #171816; color: #fff; cursor: pointer; font: inherit; font-size: 9px; font-weight: 600; }
.reseller-card__body > button:disabled { cursor: not-allowed; opacity: .55; }
.reseller-page__footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 19px; padding-top: 15px; border-top: 1px solid var(--ab-line); }
.reseller-page__footer > p { color: var(--ab-muted); font-size: 9px; }

/* Admin reseller review and per-account pricing */
.admin-reseller-panel, .admin-reseller-prices { margin-top: 14px; }
.admin-reseller-filter { max-width: 460px; margin-bottom: 14px; }
.admin-reseller-filter select { min-width: 0; width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #dedfdb; background: #fff; color: #252622; font: inherit; font-size: 10px; }
.admin-reseller-list { display: grid; gap: 10px; }
.admin-reseller-card { padding: 17px; border: 1px solid #e8e9e5; background: #fff; }
.admin-reseller-card--selected { border-color: #b9bbb4; }
.admin-reseller-card__summary { display: flex; align-items: start; justify-content: space-between; gap: 15px; }
.admin-reseller-card__summary .ab-kicker { margin: 0 0 7px; color: #74756f; }
.admin-reseller-card__summary .ab-kicker > span { margin-left: 7px; color: #a0a19b; }
.admin-reseller-card__summary h3 { font-size: 15px; font-weight: 620; letter-spacing: -.035em; }
.admin-reseller-card__summary p:not(.ab-kicker) { margin-top: 5px; color: #696a64; font-size: 9px; line-height: 1.6; }
.admin-reseller-card__summary a, .admin-reseller-website { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.admin-reseller-website { display: inline-flex; margin-top: 5px; color: #696a64 !important; font-size: 9px; }
.admin-reseller-card__actions { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-top: 14px; padding-top: 13px; border-top: 1px solid #efefed; }
.admin-reseller-review-form { display: grid; flex: 1; grid-template-columns: minmax(130px, .7fr) minmax(180px, 1.3fr) auto; gap: 9px; align-items: end; }
.admin-reseller-review-form > label { display: grid; min-width: 0; gap: 5px; color: #666760; font-size: 8px; font-weight: 600; }
.admin-reseller-review-form select, .admin-reseller-review-form textarea, .admin-reseller-price-input input { width: 100%; min-width: 0; min-height: 37px; padding: 8px 9px; border: 1px solid #e0e1dc; background: #fff; color: #292a26; font: inherit; font-size: 9px; }
.admin-reseller-review-form textarea { resize: vertical; line-height: 1.45; }
.admin-reseller-review-form button, .admin-reseller-price-form > button { min-height: 38px; padding: 0 12px; border: 0; background: #171816; color: #fff; cursor: pointer; font: inherit; font-size: 9px; font-weight: 600; white-space: nowrap; }
.admin-reseller-review-form button:hover, .admin-reseller-price-form > button:hover { background: #383a35; }
.admin-reseller-price-link { flex: 0 0 auto; color: #4d4e48; font-size: 9px; text-decoration: underline; text-underline-offset: 3px; }
.admin-reseller-prices .admin-orders__heading { align-items: start; }
.admin-reseller-prices__hint { margin-top: 7px; color: var(--ab-muted); font-size: 9px; line-height: 1.5; }
.admin-reseller-price-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 22px; }
.admin-reseller-price-row { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-top: 1px solid #efefed; }
.admin-reseller-price-row > span:first-child { display: grid; min-width: 0; gap: 4px; }
.admin-reseller-price-row strong { overflow: hidden; font-size: 9px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.admin-reseller-price-row small { color: var(--ab-muted); font-size: 8px; }
.admin-reseller-price-input { position: relative; display: flex; width: 126px; flex: 0 0 126px; align-items: center; }
.admin-reseller-price-input input { padding-right: 29px; }
.admin-reseller-price-input b { position: absolute; right: 9px; color: #777871; font-size: 8px; font-weight: 500; }
.admin-reseller-price-form > button { grid-column: 1 / -1; min-height: 42px; margin-top: 12px; text-align: center; }
.admin-copy-intro { margin-bottom: 18px; }
.admin-copy-pages { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 15px; }
.admin-copy-pages > a { display: inline-flex; min-height: 38px; align-items: center; gap: 18px; padding: 0 12px; border: 1px solid #e3e4df; background: #fff; color: #555650; font-size: 9px; text-decoration: none; }
.admin-copy-pages > a[aria-current="page"] { border-color: #171816; background: #171816; color: #fff; }
.admin-copy-pages > a > span { font-size: 12px; }
.admin-copy-panel { margin-top: 0; }
.admin-copy-panel .admin-orders__heading { align-items: start; margin-bottom: 14px; }
.admin-copy-help { margin-top: 6px; color: var(--ab-muted); font-size: 9px; line-height: 1.6; }
.admin-copy-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.admin-copy-field { display: grid; min-width: 0; gap: 6px; }
.admin-copy-field--wide { grid-column: 1 / -1; }
.admin-copy-field > span { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; color: #595a54; font-size: 9px; font-weight: 620; }
.admin-copy-field > span > small { color: #969791; font-size: 8px; font-weight: 450; white-space: nowrap; }
.admin-copy-field__help { color: #85867f; font-size: 8px; line-height: 1.45; }
.admin-copy-field input, .admin-copy-field textarea { width: 100%; min-width: 0; min-height: 40px; padding: 9px 10px; border: 1px solid #dedfdb; border-radius: 2px; background: #fff; color: #252622; font: inherit; font-size: 10px; line-height: 1.55; }
.admin-copy-field textarea { min-height: 74px; resize: vertical; }
.admin-copy-field input:focus, .admin-copy-field textarea:focus { border-color: #9a9b95; outline: 2px solid rgb(23 24 22 / 8%); outline-offset: 1px; }
.admin-copy-form__actions { display: flex; grid-column: 1 / -1; align-items: center; gap: 14px; margin-top: 5px; padding-top: 12px; border-top: 1px solid #efefed; }
.admin-copy-form__actions > button { min-height: 42px; padding: 0 15px; border: 1px solid #171816; background: #171816; color: #fff; cursor: pointer; font: inherit; font-size: 9px; font-weight: 620; }
.admin-copy-form__actions > button:hover { background: #383a35; }
.admin-copy-form__actions > button > span { margin-left: 9px; font-size: 13px; }
.admin-copy-form__actions > p { color: var(--ab-muted); font-size: 8px; }
.admin-copy-reset { margin-top: 11px; }
.admin-copy-reset > button { border: 0; background: none; color: #686963; cursor: pointer; font: inherit; font-size: 8px; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) {
  .account-reseller { grid-template-columns: 1fr; gap: 15px; margin-bottom: 30px; }
  .account-reseller__form { grid-template-columns: 1fr; }
  .account-reseller__form > label:first-of-type, .account-reseller__form .ab-button { grid-column: auto; }
  .reseller-page__intro { grid-template-columns: 1fr; }
  .reseller-page__intro > .ab-kicker { grid-column: auto; }
  .reseller-page__intro > p:last-child { max-width: 440px; }
  .reseller-page__welcome, .reseller-page__footer { align-items: start; flex-direction: column; }
  .reseller-catalog { grid-template-columns: 1fr; gap: 9px; }
  .reseller-card { display: grid; grid-template-columns: minmax(110px, .8fr) minmax(0, 1.2fr); }
  .reseller-card__image > img { height: 100%; min-height: 185px; aspect-ratio: auto; }
  .reseller-card__body { padding: 12px; }
  .reseller-card__body h2 { font-size: 14px; }
  .reseller-card__body > p:not(.reseller-card__availability) { min-height: 0; }
  .admin-reseller-card__summary { align-items: start; }
  .admin-reseller-card__actions { align-items: stretch; flex-direction: column; }
  .admin-reseller-review-form { grid-template-columns: 1fr; }
  .admin-reseller-review-form button { width: 100%; }
  .admin-reseller-price-form { grid-template-columns: 1fr; }
  .admin-reseller-price-form > button { grid-column: auto; }
  .admin-copy-form { grid-template-columns: 1fr; }
  .admin-copy-field--wide, .admin-copy-form__actions { grid-column: auto; }
  .admin-copy-form__actions { align-items: flex-start; flex-direction: column; }
  .admin-copy-pages { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-copy-pages > a { justify-content: space-between; gap: 5px; padding: 0 9px; }
}
