/* ============================================================
   SOLEVA — Admin Panel (demo)
   Chỉ tải trên trang /Admin. Dùng lại token màu từ style.css.
   ============================================================ */

.admin-page {
  background: #f3f2ed;
}

.admin-page .newsletter,
.admin-page .site-footer {
  display: none;
}

.admin-page main {
  padding-bottom: 8px;
}

/* ------------------------------------------------------------
   Bố cục chung
   ------------------------------------------------------------ */
.admin {
  padding: 28px 0 64px;
}

.admin__shell {
  display: grid;
  grid-template-columns: 258px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.admin__side {
  position: sticky;
  top: 18px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 20px 16px;
  border-radius: 22px;
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.admin__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 6px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
}

.admin__brand:hover {
  color: #fff;
}

.admin__logo {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
}

.admin__brand b {
  display: block;
  font-family: var(--font-display);
  font-size: 17px;
  letter-spacing: 0.04em;
}

.admin__brand small {
  display: block;
  margin-top: 1px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.admin-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.admin-nav__item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 11px 12px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 13.5px;
  font-weight: 600;
  text-align: left;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.admin-nav__item svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.admin-nav__item span {
  flex: 1;
}

.admin-nav__item em {
  min-width: 22px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  text-align: center;
  color: rgba(255, 255, 255, 0.75);
}

.admin-nav__item:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.admin-nav__item.is-active {
  background: var(--lime);
  color: var(--ink);
}

.admin-nav__item.is-active em {
  background: rgba(11, 11, 14, 0.12);
  color: var(--ink);
}

.admin__side-foot {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.admin__side-foot a,
.admin__side-foot button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12.5px;
  font-weight: 600;
  text-align: left;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.admin__side-foot svg {
  width: 17px;
  height: 17px;
}

.admin__side-foot a:hover,
.admin__side-foot button:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

/* ------------------------------------------------------------
   Header trang quản trị
   ------------------------------------------------------------ */
.admin__main {
  min-width: 0;
}

.admin__top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.admin__top .eyebrow {
  margin-bottom: 7px;
}

.admin__top h1 {
  font-size: clamp(26px, 3.2vw, 38px);
  letter-spacing: -0.035em;
}

.admin__top p {
  margin-top: 6px;
  max-width: 560px;
  color: var(--muted);
  font-size: 13.5px;
}

.admin__user {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none
}

.admin__user b {
  display: block;
  font-size: 13.5px;
  line-height: 1.3;
}

.admin__user small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11.5px;
}

.admin__avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--lime);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.admin-avatar--sm {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  font-size: 12px;
}

/* ------------------------------------------------------------
   Thông báo
   ------------------------------------------------------------ */
.admin-flash {
  margin-bottom: 16px;
  padding: 11px 15px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--ink);
  border-radius: 12px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.admin-flash--success {
  border-left-color: var(--green);
  background: #f2fbf6;
  color: #146b41;
}

.admin-flash--error {
  border-left-color: var(--accent);
  background: #fff3ef;
  color: #a52f0e;
}

/* ------------------------------------------------------------
   Thống kê
   ------------------------------------------------------------ */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.admin-stat {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 144px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.admin-stat:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.admin-stat__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 9px;
  border-radius: 11px;
}

.admin-stat__icon svg {
  width: 19px;
  height: 19px;
}

.admin-stat__icon--accent {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.admin-stat__icon--lime {
  background: #efffc2;
  color: #5a6d0c;
}

.admin-stat__icon--blue {
  background: #e7efff;
  color: #2858bd;
}

.admin-stat__icon--green {
  background: #e2f7eb;
  color: var(--green);
}

.admin-stat__label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.admin-stat b {
  font-family: var(--font-display);
  font-size: clamp(25px, 2.8vw, 33px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.admin-stat small {
  margin-top: auto;
  padding-top: 8px;
  color: var(--muted-light);
  font-size: 11px;
}

.admin-stat small span {
  color: var(--accent-dark);
  font-weight: 700;
}

/* ------------------------------------------------------------
   Card / bảng
   ------------------------------------------------------------ */
.admin-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.admin-card + .admin-card {
  margin-top: 16px;
}

.admin-card--flush {
  padding: 0;
  overflow: hidden;
}

.admin-card__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.admin-card__head h2 {
  font-size: 18px;
}

.admin-card__head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12.5px;
}

.admin-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 13px;
}

.admin-table th {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  background: #faf9f6;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.admin-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #f0efea;
  vertical-align: middle;
}

.admin-table tbody tr:last-child td {
  border-bottom: 0;
}

.admin-table tbody tr:hover {
  background: #fcfbf8;
}

.admin-table td > small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.admin-table .is-right {
  text-align: right;
}

.admin-code {
  font-family: var(--font-display);
  font-size: 12.5px;
  letter-spacing: 0.01em;
}

.admin-muted {
  color: var(--muted-light);
}

.admin-strike {
  display: block;
  color: var(--muted-light);
  font-size: 11px;
  text-decoration: line-through;
}

.admin-empty {
  padding: 34px 20px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.admin-result-count {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

/* ------------------------------------------------------------
   Sản phẩm trong bảng
   ------------------------------------------------------------ */
.admin-product {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 220px;
}

.admin-product img {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 10px;
  object-fit: cover;
  background: var(--bone);
}

.admin-product b {
  display: block;
  font-size: 13px;
  line-height: 1.35;
}

.admin-product small {
  display: block;
  margin-top: 2px;
  color: var(--muted-light);
  font-size: 10.5px;
}

/* ------------------------------------------------------------
   Badge / trạng thái
   ------------------------------------------------------------ */
.admin-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.admin-badge--warning {
  background: #fef3c7;
  color: #926200;
}

.admin-badge--info {
  background: #dbeafe;
  color: #1d4ed8;
}

.admin-badge--success {
  background: #dcfce7;
  color: #15803d;
}

.admin-badge--danger {
  background: #fee2e2;
  color: #b91c1c;
}

.admin-badge--new {
  background: #e0e7ff;
  color: #3730a3;
}

.admin-badge--hot {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.admin-badge--sale {
  background: var(--ink);
  color: var(--lime);
}

/* ------------------------------------------------------------
   Toolbar / bộ lọc
   ------------------------------------------------------------ */
.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.admin-toolbar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.admin-toolbar__actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.admin-toolbar__actions svg {
  width: 15px;
  height: 15px;
}

.admin-search {
  position: relative;
  display: block;
  flex: 1;
  max-width: 420px;
}

.admin-search svg {
  position: absolute;
  top: 50%;
  left: 14px;
  width: 17px;
  height: 17px;
  color: var(--muted-light);
  transform: translateY(-50%);
  pointer-events: none;
}

.admin-search .input {
  padding-left: 42px;
}

.admin-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.admin-filter > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.admin-filter .select {
  width: 168px;
}

/* ------------------------------------------------------------
   Nút thao tác nhỏ
   ------------------------------------------------------------ */
.admin-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.admin-icon-btn {
  display: inline-grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--muted);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.admin-icon-btn svg {
  width: 16px;
  height: 16px;
}

.admin-icon-btn:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.admin-icon-btn--danger:hover {
  border-color: #b91c1c;
  background: #b91c1c;
  color: #fff;
}

.admin-icon-btn:disabled {
  opacity: 0.35;
  pointer-events: none;
}

/* ------------------------------------------------------------
   Select trạng thái / vai trò
   ------------------------------------------------------------ */
.admin-status-select,
.admin-role-select {
  width: 100%;
  min-width: 132px;
  height: 34px;
  padding: 0 28px 0 10px;
  font-size: 11.5px;
  font-weight: 600;
}

.admin-status-select--warning {
  border-color: #f0d48a;
  background-color: #fffaeb;
}

.admin-status-select--info {
  border-color: #bfdbfe;
  background-color: #eff6ff;
}

.admin-status-select--success {
  border-color: #bbf7d0;
  background-color: #f0fdf4;
}

.admin-status-select--danger {
  border-color: #fecaca;
  background-color: #fef2f2;
}

.admin-role-select {
  min-width: 118px;
}

.admin-role-select:disabled {
  border-color: var(--line);
  background: var(--bone);
  color: var(--muted);
  opacity: 1;
}

/* ------------------------------------------------------------
   Người dùng
   ------------------------------------------------------------ */
.admin-user {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 190px;
}

.admin-user b {
  display: block;
  font-size: 13px;
  line-height: 1.3;
}

.admin-user small {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 10.5px;
}

/* ------------------------------------------------------------
   Ghi chú
   ------------------------------------------------------------ */
.admin-note {
  margin-top: 16px;
  padding: 13px 16px;
  border: 1px dashed #d9d7ce;
  border-radius: 13px;
  background: #faf9f5;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.admin-note strong {
  color: var(--ink);
}

.admin-note code {
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--bone-deep);
  color: var(--ink);
  font-size: 11px;
}

/* ------------------------------------------------------------
   Modal quản trị
   ------------------------------------------------------------ */
body.admin-modal-open {
  overflow: hidden;
}

.admin-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.admin-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 11, 14, 0.55);
  backdrop-filter: blur(3px);
}

.admin-modal__card {
  position: relative;
  z-index: 1;
  width: min(780px, 100%);
  max-height: 90vh;
  overflow: auto;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  animation: adminModalIn 0.28s var(--ease-out) both;
}

.admin-modal__card--sm {
  width: min(620px, 100%);
}

@keyframes adminModalIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.admin-modal__head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px 16px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.admin-modal__head .eyebrow {
  margin-bottom: 5px;
}

.admin-modal__head h2 {
  font-size: 23px;
}

.admin-modal__close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--muted);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.admin-modal__close svg {
  width: 17px;
  height: 17px;
}

.admin-modal__close:hover {
  background: var(--ink);
  color: #fff;
}

.admin-form {
  padding: 20px 22px 0;
}

.admin-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px 14px;
}

.admin-form .field > label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.admin-field--wide {
  grid-column: 1 / -1;
}

.admin-image-preview {
  width: 100%;
  max-width: 220px;
  height: 120px;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  object-fit: cover;
  background: var(--bone);
}

.admin-upload-row {
  display: flex;
  align-items: center;
  gap: 9px;
}

.admin-upload-row .input,
.admin-upload-row .textarea {
  flex: 1;
  min-width: 0;
}

.admin-upload-row--end {
  justify-content: flex-end;
  margin-top: 8px;
}

.admin-upload-button {
  flex: 0 0 auto;
  white-space: nowrap;
}

.admin-upload-hint {
  margin-right: auto;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.45;
}

.admin-gallery-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
  gap: 9px;
  margin-top: 10px;
}

.admin-gallery-preview[hidden] {
  display: none;
}

.admin-gallery-item {
  position: relative;
  margin: 0;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bone);
}

.admin-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-gallery-remove {
  position: absolute;
  top: 5px;
  right: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(20, 20, 20, 0.72);
  color: #fff;
  cursor: pointer;
  transition: background 0.18s ease;
}

.admin-gallery-remove:hover {
  background: #e2482f;
}

.admin-gallery-remove svg {
  width: 12px;
  height: 12px;
}

.admin-form__actions {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 20px;
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  background: #fff;
}

/* ------------------------------------------------------------
   Chi tiết đơn hàng
   ------------------------------------------------------------ */
.admin-order-detail {
  padding: 18px 22px 4px;
}

.admin-order-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.admin-order-status-row small {
  color: var(--muted);
  font-size: 11.5px;
}

.admin-order-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
  padding: 14px;
  border-radius: 13px;
  background: #faf9f6;
}

.admin-order-meta > div {
  min-width: 0;
}

.admin-order-meta span {
  display: block;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-order-meta b {
  display: block;
  margin-top: 2px;
  font-size: 12.5px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.admin-order-meta__wide {
  grid-column: 1 / -1;
}

.admin-order-items {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}

.admin-order-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 11px;
}

.admin-order-item img,
.admin-order-item__ph {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 9px;
  background: var(--bone);
  object-fit: cover;
  color: var(--muted);
  font-family: var(--font-display);
  font-weight: 800;
}

.admin-order-item > div {
  flex: 1;
  min-width: 0;
}

.admin-order-item b {
  display: block;
  font-size: 12.5px;
  line-height: 1.35;
}

.admin-order-item small {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 11px;
}

.admin-order-item > span {
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
}

.admin-order-totals {
  display: grid;
  gap: 5px;
  padding: 13px 14px;
  border-radius: 13px;
  background: #faf9f6;
}

.admin-order-totals > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
}

.admin-order-totals span {
  color: var(--muted);
}

.admin-order-totals .is-total {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px dashed #d9d7ce;
}

.admin-order-totals .is-total b {
  font-family: var(--font-display);
  font-size: 18px;
}

/* ------------------------------------------------------------
   Trang từ chối truy cập
   ------------------------------------------------------------ */
.admin-denied {
  display: grid;
  place-items: center;
  min-height: calc(100vh - var(--header-h) - var(--topbar-h) - 80px);
  padding: 48px 24px 72px;
}

.admin-denied__card {
  width: min(520px, 100%);
  padding: 38px 32px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  text-align: center;
  box-shadow: var(--shadow);
}

.admin-denied__icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin: 0 auto 18px;
  border-radius: 18px;
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.admin-denied__icon svg {
  width: 29px;
  height: 29px;
}

.admin-denied__card .eyebrow {
  margin-bottom: 8px;
}

.admin-denied__card h1 {
  font-size: clamp(25px, 3.6vw, 34px);
}

.admin-denied__card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13.5px;
}

.admin-denied__actions {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-top: 22px;
}

.admin-denied__note {
  margin-top: 20px !important;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted-light) !important;
  font-size: 11.5px !important;
}

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 1120px) {
  .admin__shell {
    grid-template-columns: 224px minmax(0, 1fr);
  }

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

@media (max-width: 900px) {
  .admin {
    padding-top: 18px;
  }

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

  .admin__side {
    position: static;
    gap: 14px;
    padding: 14px;
  }

  .admin__brand {
    padding-bottom: 10px;
  }

  .admin-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }

  .admin-nav__item {
    width: auto;
    flex: 1 1 auto;
    justify-content: center;
    padding: 9px 11px;
  }

  .admin-nav__item em {
    display: none;
  }

  .admin__side-foot {
    flex-direction: row;
    justify-content: space-between;
    padding-top: 10px;
  }

  .admin__top {
    align-items: flex-start;
  }
}

@media (max-width: 700px) {
  .admin {
    padding-bottom: 40px;
  }

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

  .admin__user {
    width: 100%;
    padding-top: 10px;
    border-top: 1px solid var(--line);
  }

  .admin-stats {
    grid-template-columns: 1fr;
  }

  .admin-stat {
    min-height: 128px;
  }

  .admin-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-search {
    max-width: none;
  }

  .admin-toolbar__actions {
    justify-content: flex-end;
  }

  .admin-filter {
    justify-content: space-between;
  }

  .admin-filter .select {
    flex: 1;
    width: auto;
  }

  .admin-form__grid {
    grid-template-columns: 1fr;
  }

  .admin-field--wide {
    grid-column: auto;
  }

  .admin-upload-row {
    flex-wrap: wrap;
  }

  .admin-upload-row .input,
  .admin-upload-row .textarea {
    flex-basis: 100%;
  }

  .admin-upload-row--end {
    justify-content: stretch;
  }

  .admin-upload-hint {
    flex-basis: 100%;
    margin-right: 0;
  }

  .admin-upload-button {
    width: 100%;
  }

  .admin-modal {
    padding: 12px;
  }

  .admin-modal__card {
    max-height: 94vh;
  }

  .admin-order-meta {
    grid-template-columns: 1fr;
  }

  .admin-order-meta__wide {
    grid-column: auto;
  }

  .admin-denied {
    padding: 28px 16px 48px;
  }

  .admin-denied__card {
    padding: 30px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .admin-modal__card {
    animation: none;
  }

  .admin-stat {
    transition: none;
  }
}
