:root {
  --yellow: #ffd83d;
  --yellow-soft: #fff8d7;
  --ink: #171717;
  --muted: #6b7280;
  --line: #eceff3;
  --surface: #ffffff;
  --cyan: #53c6d8;
  --pink: #ef6ba9;
  --danger: #ef4444;
  --shadow: 0 18px 48px rgba(17, 24, 39, 0.12);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f7f8fb;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px clamp(14px, 4vw, 42px);
  background: rgba(255, 216, 61, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}

.brand strong {
  display: block;
  font-size: clamp(16px, 3.8vw, 20px);
  line-height: 1.1;
  white-space: nowrap;
}

.brand small,
.admin-sidebar small {
  display: block;
  color: rgba(23, 23, 23, 0.68);
  font-size: 12px;
  margin-top: 2px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(17, 24, 39, 0.08);
}

.brand-mark img {
  width: 35px;
  height: 35px;
  object-fit: contain;
}

.top-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.ghost-button,
.filter-chip,
.secondary-button,
.primary-button,
.danger-button {
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  padding: 0 15px;
  font-weight: 800;
}

.ghost-button,
.secondary-button {
  background: rgba(255, 255, 255, 0.66);
  color: var(--ink);
}

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

.ghost-button.is-active,
.primary-button {
  background: var(--ink);
  color: var(--yellow);
}

.view {
  display: none;
}

.toast {
  position: fixed;
  left: 50%;
  top: 84px;
  z-index: 50;
  max-width: min(360px, calc(100vw - 28px));
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--yellow);
  box-shadow: var(--shadow);
  font-weight: 800;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.view.is-active {
  display: block;
}

.floating-service {
  position: fixed;
  right: 18px;
  bottom: 24px;
  z-index: 30;
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  background: var(--ink);
  color: var(--yellow);
  box-shadow: var(--shadow);
  font-weight: 900;
}

.admin-only.is-hidden {
  display: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: clamp(20px, 5vw, 48px);
  align-items: center;
  padding: clamp(24px, 6vw, 72px) clamp(16px, 5vw, 64px);
  background:
    radial-gradient(circle at 88% 24%, rgba(83, 198, 216, 0.22), transparent 28%),
    linear-gradient(135deg, var(--yellow) 0%, #ffe985 48%, #fffdf1 100%);
}

.hero h1 {
  display: none;
}

.hero p {
  max-width: 560px;
  margin: 10px 0 0;
  color: #3d3d3d;
  font-size: clamp(15px, 2.8vw, 19px);
  line-height: 1.45;
}

.hero-tags,
.filter-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.hero-tags {
  flex-wrap: wrap;
  margin-top: 20px;
}

.hero-tags span,
.filter-chip {
  flex: 0 0 auto;
  background: #fff;
  border-radius: 999px;
  padding: 9px 12px;
  font-weight: 800;
}

.hero-bike {
  display: none;
}

.hero-bike img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 24px solid #fff;
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.store-toolbar {
  display: grid;
  gap: 14px;
  padding: 18px clamp(16px, 5vw, 64px);
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.search-field {
  display: grid;
  gap: 8px;
  font-weight: 800;
}

.search-field input,
.admin-search,
.product-form input,
.product-form select,
.product-form textarea,
.order-form input,
.order-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: #fff;
  outline: none;
}

.filter-chip {
  background: #f3f4f6;
}

.filter-chip.is-active {
  background: var(--ink);
  color: var(--yellow);
}

.catalog {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 342px));
  gap: 16px;
  padding: clamp(16px, 5vw, 64px);
  align-items: start;
}

.product-card {
  display: grid;
  gap: 12px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.06);
}

.product-image,
.detail-image,
.lightbox-image {
  min-height: 170px;
  border-radius: 16px;
  background: var(--yellow-soft);
}

.product-image {
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 0;
  border: 0;
  aspect-ratio: 4 / 3;
}

.has-photo {
  background-image: var(--image-url);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.product-image img,
.detail-image img,
.thumb img,
.mini-image img,
.lightbox-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lightbox-image img {
  object-fit: contain;
}

.product-image::after {
  content: "点击看大图";
  position: absolute;
  right: 10px;
  bottom: 10px;
  border-radius: 999px;
  padding: 6px 9px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 12px;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-meta h3 {
  margin: 0;
  font-size: 19px;
}

.price {
  color: var(--danger);
  font-weight: 900;
  font-size: 20px;
}

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

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.product-dialog,
.login-dialog {
  width: min(920px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  border: 0;
  border-radius: 24px;
  padding: 0;
  overflow: auto;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.32);
}

.product-dialog::backdrop,
.login-dialog::backdrop,
.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.62);
}

.login-dialog,
.contact-dialog,
.order-success-dialog {
  width: min(440px, calc(100vw - 24px));
}

.order-success-dialog {
  border-radius: 22px;
  outline: 0;
}

.login-panel,
.contact-panel,
.order-success-panel {
  display: grid;
  gap: 14px;
  padding: 26px;
}

.login-panel {
  gap: 16px;
  padding: 32px;
  background: #f8fcfb;
}

.login-brand {
  display: grid;
  gap: 14px;
  justify-items: start;
  margin-bottom: 2px;
}

.login-brand-logo {
  width: 48px;
  height: 48px;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.1);
}

.login-brand strong {
  color: #050505;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 900;
}

.contact-panel,
.order-success-panel {
  text-align: center;
}

.order-success-panel {
  gap: 18px;
  padding: 34px;
}

.success-mark {
  display: grid;
  place-items: center;
  justify-self: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #14b8a6;
  color: #fff;
  font-size: 30px;
  font-weight: 900;
  box-shadow: 0 16px 30px rgba(20, 184, 166, 0.22);
}

.order-success-panel h2 {
  margin: 0;
  font-size: 26px;
}

.order-success-panel > .muted {
  margin: 0;
  line-height: 1.7;
}

.contact-panel .contact-qr {
  justify-self: center;
  width: 190px;
  height: 190px;
}

.call-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  text-decoration: none;
}

.order-summary {
  display: grid;
  gap: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #f8fafc;
  padding: 16px;
  text-align: left;
}

.order-summary-title {
  color: #111827;
  font-size: 16px;
  font-weight: 900;
}

.order-summary div:not(.order-summary-title) {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 10px;
  color: #111827;
}

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

.order-summary strong {
  font-weight: 800;
}

.order-success-confirm {
  width: 100%;
}

.login-logo {
  width: 62px;
  height: 62px;
}

.login-panel h2 {
  margin: 0;
  text-align: center;
  color: #111827;
  font-size: 28px;
}

.login-subtitle {
  margin: 0;
  line-height: 1.6;
  text-align: center;
}

.login-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  border-radius: 999px;
  padding: 4px;
  background: #f3f4f6;
}

.login-tabs button {
  min-height: 36px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-weight: 900;
}

.login-tabs button.is-active {
  background: #fff;
  box-shadow: 0 2px 8px rgba(17, 24, 39, 0.08);
}

.is-hidden {
  display: none !important;
}

.login-form {
  display: grid;
  gap: 16px;
}

.login-mode-panel {
  display: none;
  gap: 12px;
}

.login-mode-panel.is-active {
  display: grid;
}

.login-form label {
  display: grid;
  gap: 8px;
  color: #1f2937;
  font-weight: 800;
}

.login-form .remember-login {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
}

.login-link-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 24px;
}

.login-link-spacer {
  flex: 1 1 auto;
}

.text-button {
  border: 0;
  padding: 0;
  background: transparent;
  color: #0891b2;
  font-weight: 800;
  cursor: pointer;
}

.back-login {
  justify-self: start;
}

.login-form .remember-login input {
  width: 16px;
  height: 16px;
  padding: 0;
  margin: 0;
  flex: 0 0 auto;
}

.login-form input {
  width: 100%;
  border: 1px solid #d7dde7;
  border-radius: 14px;
  padding: 13px 14px;
  background: #eef5ff;
}

.login-form input:focus {
  outline: 2px solid rgba(20, 184, 166, 0.24);
  border-color: #14b8a6;
}

.login-form input.is-invalid {
  border-color: #dc2626;
  background: #fff1f2;
}

.field-status {
  display: none;
  margin: 7px 0 0;
  color: #dc2626;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 800;
}

.field-status.is-visible {
  display: block;
}

.code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 128px;
  gap: 10px;
  align-items: stretch;
}

.code-row .secondary-button {
  width: 100%;
  border-radius: 14px;
  white-space: nowrap;
  background: #f8fafc;
  border: 1px solid #e7edf5;
  color: #171717;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.code-row .secondary-button:disabled {
  cursor: not-allowed;
}

.code-row .secondary-button.is-counting {
  background: #eef2f7;
  border-color: #d8e0eb;
  color: #667085;
}

.code-status {
  display: none;
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 800;
}

.code-status.is-visible {
  display: block;
}

.code-status.is-info {
  color: #2563eb;
}

.code-status.is-success {
  color: #059669;
}

.code-status.is-error {
  color: #dc2626;
}

.wechat-button {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: #16a34a;
  color: #fff;
  font-weight: 900;
}

.close-button {
  position: sticky;
  top: 12px;
  left: calc(100% - 54px);
  z-index: 4;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 24px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: 22px;
  padding: 0 22px 22px;
}

.detail-image {
  min-height: 330px;
  cursor: zoom-in;
  width: 100%;
  padding: 0;
  border: 0;
  overflow: hidden;
}

.thumb-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
}

.thumb {
  width: 68px;
  height: 58px;
  flex: 0 0 auto;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 12px;
}

.thumb.is-active {
  border-color: var(--ink);
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.spec {
  border-radius: 14px;
  padding: 12px;
  background: var(--yellow-soft);
}

.qr-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
}

.qr-code {
  width: 82px;
  height: 82px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, #111 10px, transparent 10px 18px, #111 18px 28px, transparent 28px),
    linear-gradient(#111 10px, transparent 10px 18px, #111 18px 28px, transparent 28px),
    #fff;
  box-shadow: inset 0 0 0 8px #fff, inset 0 0 0 9px #ddd;
}

.qr-code img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.order-form {
  display: grid;
  gap: 10px;
}

.lightbox {
  width: min(960px, calc(100vw - 24px));
  height: min(760px, calc(100dvh - 24px));
  max-width: none;
  max-height: none;
  border: 0;
  padding: 0;
  border-radius: 24px;
  background: #070707;
  color: #fff;
  overflow: hidden;
}

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  left: auto;
}

.lightbox-stage {
  height: 100%;
  display: grid;
  place-items: center;
  padding: 76px 64px 64px;
  overflow: hidden;
  touch-action: none;
}

.lightbox-image {
  width: min(780px, calc(100vw - 144px));
  height: min(560px, calc(100dvh - 180px));
  min-height: 0;
  box-shadow: 0 20px 80px rgba(255, 216, 61, 0.18);
  overflow: hidden;
  transform-origin: center;
  transition: transform 0.12s ease;
  will-change: transform;
}

.gallery-button {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 216, 61, 0.96);
  color: #111;
  font-size: 32px;
  transform: translateY(-50%);
  z-index: 8;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}

.gallery-button.prev {
  left: 14px;
}

.gallery-button.next {
  right: 14px;
}

.gallery-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 54px;
}

.gallery-dots button {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 99px;
  background: #777;
}

.gallery-dots button.is-active {
  width: 22px;
  background: var(--yellow);
}

.admin-view.is-active {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
}

.admin-sidebar,
.admin-panel {
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 34px rgba(17, 24, 39, 0.07);
}

.admin-sidebar {
  position: sticky;
  top: 90px;
  align-self: start;
  display: grid;
  gap: 10px;
  padding: 18px;
  background: var(--ink);
  color: var(--yellow);
}

.admin-logo {
  width: 58px;
  height: 58px;
}

.admin-sidebar small {
  color: #fff;
}

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

.admin-panel {
  padding: 18px;
}

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

.panel-heading h2 {
  margin: 0;
}

.product-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fbfcfe;
  margin-bottom: 14px;
}

.product-form.is-collapsed {
  display: none;
}

.product-form label {
  display: grid;
  gap: 6px;
  font-weight: 800;
}

.is-hidden-field {
  display: none !important;
}

.product-image-manager {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 12px;
}

.product-image-manager::before {
  content: "已有商品图片";
  grid-column: 1 / -1;
  font-weight: 800;
}

.managed-image {
  position: relative;
  overflow: hidden;
  min-height: 104px;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--yellow-soft);
}

.managed-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-delete-button {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: rgba(17, 17, 17, 0.86);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.image-manager-empty {
  grid-column: 1 / -1;
  padding: 14px;
  border: 1px dashed #c9cdd4;
  border-radius: 14px;
  color: var(--muted);
  background: #fff;
}

.wide-field,
.form-actions {
  grid-column: 1 / -1;
}

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

.order-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 128px;
  gap: 10px;
  flex: 1 1 auto;
  align-items: center;
}

.admin-list {
  display: grid;
  gap: 10px;
}

.admin-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px;
}

.mini-image {
  height: 72px;
  border-radius: 12px;
  overflow: hidden;
}

.row-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.order-row {
  grid-template-columns: minmax(0, 1fr) 180px;
}

.order-tools {
  display: grid;
  gap: 8px;
}

.order-tools select,
.order-tools input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 9px;
}

.empty-state {
  padding: 28px;
  text-align: center;
  border: 1px dashed #c9cdd4;
  border-radius: 18px;
  color: var(--muted);
}

.load-more {
  justify-self: center;
  min-width: 160px;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-bike img {
    border-width: 14px;
  }

  .detail-grid,
  .admin-view.is-active {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
  }

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

@media (max-width: 760px) {
  .topbar {
    align-items: center;
    padding: 10px 12px;
    gap: 10px;
  }

  .brand {
    flex: 1 1 auto;
    min-width: 0;
  }

  .brand strong {
    white-space: nowrap;
    font-size: 15px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .brand small {
    font-size: 11px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .top-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex: 0 0 auto;
    max-width: 60%;
  }

  .top-actions .ghost-button {
    min-height: 34px;
    padding: 6px 8px;
    font-size: 12px;
    white-space: nowrap;
  }

  .hero {
    padding: 18px 14px;
  }

  .hero h1 {
    font-size: 30px !important;
    line-height: 1.16 !important;
  }

  .hero p {
    margin-top: 8px;
    font-size: 15px;
    line-height: 1.35;
  }

  .hero-bike {
    display: none;
  }

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

  .product-card {
    gap: 8px;
    padding: 8px;
    border-radius: 14px;
  }

  .product-image {
    min-height: 0;
    border-radius: 12px;
  }

  .product-image::after {
    display: none;
  }

  .product-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .product-meta h3 {
    font-size: 15px;
  }

  .price {
    font-size: 16px;
  }

  .product-card .muted {
    font-size: 12px;
  }

  .product-card p.muted {
    display: -webkit-box;
    min-height: 34px;
    margin: 0;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .card-actions {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .card-actions button {
    min-height: 38px;
    padding: 8px;
    font-size: 13px;
  }

  .contact-panel {
    gap: 10px;
    padding: 24px 20px;
  }

  .contact-panel h2 {
    margin: 0 0 4px;
    font-size: 25px;
  }

  .contact-panel .contact-qr {
    width: min(64vw, 230px);
    height: min(64vw, 230px);
  }

  .contact-panel p {
    margin: 2px 0 6px;
    line-height: 1.45;
  }

  .detail-grid,
  .product-form {
    grid-template-columns: 1fr;
  }

  .detail-image {
    min-height: 240px;
  }

  .lightbox {
    width: 100vw;
    height: 100dvh;
    border-radius: 0;
  }

  .lightbox-stage {
    padding: 84px 18px 112px;
  }

  .lightbox-image {
    width: calc(100vw - 36px);
    height: calc(100dvh - 176px);
    border-radius: 14px;
  }

  .gallery-button {
    top: 50%;
    width: 42px;
    height: 42px;
    font-size: 30px;
    transform: translateY(-50%);
    z-index: 8;
  }

  .gallery-button.prev {
    left: 22px;
  }

  .gallery-button.next {
    right: 22px;
  }

  .admin-view.is-active {
    padding: 12px;
  }

  .admin-sidebar {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "logo title"
      "logo subtitle";
    align-items: center;
    column-gap: 14px;
    row-gap: 6px;
    padding: 16px 18px;
  }

  .admin-sidebar strong {
    grid-area: title;
    font-size: 18px;
    line-height: 1.15;
    margin: 0;
  }

  .admin-sidebar small {
    grid-area: subtitle;
    font-size: 11px;
    line-height: 1.3;
    margin: 0;
  }

  .admin-sidebar .brand-mark {
    grid-area: logo;
    align-self: start;
  }

  .admin-panel {
    padding: 14px;
  }

  .panel-heading {
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
  }

  .panel-heading h2 {
    font-size: 18px;
  }

  .order-panel-title {
    width: 2em;
    line-height: 1.05;
    word-break: break-all;
  }

  .order-panel-heading {
    align-items: start;
  }

  .order-toolbar {
    grid-template-columns: minmax(0, 1fr) 112px;
    gap: 8px;
  }

  .order-filter {
    min-height: 44px;
    padding: 10px 12px;
    font-size: 14px;
  }

  #newProductButton {
    min-height: 38px;
    padding: 0 14px;
    font-size: 14px;
  }

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

  .admin-row {
    gap: 10px;
    padding: 12px;
  }

  .mini-image {
    height: 196px;
    border-radius: 16px;
  }

  .admin-row .muted {
    font-size: 13px;
    line-height: 1.35;
  }

  .row-actions {
    justify-content: stretch;
  }

  .row-actions button {
    flex: 1;
  }

  .admin-sidebar .brand-mark {
    width: 50px;
    height: 50px;
  }
}
