/* Foundation */
:root {
  color-scheme: light;
  --bg: #fff6ce;
  --panel: #ffffff;
  --panel-soft: #fff3b0;
  --ink: #172033;
  --muted: #5d6980;
  --line: #d7ddeb;
  --line-strong: #b6c2d9;
  --teal: #2a75bb;
  --teal-soft: #e7f1ff;
  --blue: #2a75bb;
  --blue-soft: #e7f1ff;
  --amber: #b98300;
  --amber-soft: #fff2b8;
  --green: #198754;
  --green-soft: #e5f8ee;
  --red: #e3350d;
  --red-soft: #ffe7df;
  --yellow: #ffcb05;
  --navy: #21386d;
  --shadow: 0 16px 40px rgba(33, 56, 109, 0.12);
  --radius: 8px;
  --side-menu-width: 282px;
  --side-menu-collapsed-width: 86px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(227, 53, 13, 0.12), transparent 280px),
    linear-gradient(180deg, rgba(255, 203, 5, 0.38) 0, rgba(255, 255, 255, 0) 300px),
    var(--bg);
  color: var(--ink);
}

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

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto minmax(150px, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 68px;
  padding: 10px 22px;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 4px solid var(--yellow);
  backdrop-filter: blur(14px);
}

.topbar > * {
  min-width: 0;
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  width: fit-content;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--yellow);
  background:
    radial-gradient(circle at 50% 50%, #ffffff 0 6px, #172033 7px 10px, transparent 11px),
    linear-gradient(180deg, var(--red) 0 45%, #172033 45% 55%, #ffffff 55% 100%);
  border: 2px solid #172033;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(255, 203, 5, 0.32);
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: 0;
  font-weight: 1000;
  letter-spacing: 0;
  line-height: 1;
  text-shadow: none;
  transform: rotate(-4deg);
  transition: transform 140ms ease;
  user-select: none;
}

.brand-mark::after {
  content: "Z";
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  color: var(--yellow);
  background: #21386d;
  border: 2px solid #ffffff;
  border-radius: 50%;
  font-family: Impact, Haettenschweiler, "Arial Black", sans-serif;
  font-size: 20px;
  font-style: italic;
  font-weight: 1000;
  line-height: 1;
  text-shadow:
    1px 1px 0 #172033,
    -1px 1px 0 #172033,
    1px -1px 0 #172033,
    -1px -1px 0 #172033;
  transform: rotate(5deg);
}

.brand:hover .brand-mark {
  transform: rotate(0deg) scale(1.04);
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.menu-toggle {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 38px;
  padding: 0 11px;
  color: var(--navy);
  background: #fff9d8;
  border: 1px solid #d6aa00;
  border-radius: var(--radius);
  font-weight: 900;
  box-shadow: inset 0 -2px 0 rgba(255, 203, 5, 0.5);
}

.menu-toggle:hover {
  color: var(--blue);
  background: #ffffff;
}

.menu-toggle-icon {
  display: grid;
  flex: 0 0 auto;
  gap: 4px;
  width: 20px;
}

.menu-toggle-icon span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.menu-toggle-label {
  min-width: 0;
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.menu-collapsed .site-nav,
body.menu-collapsed .topbar-meta {
  display: none;
}

.cart-menu-link {
  position: relative;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  color: var(--navy);
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(33, 56, 109, 0.08);
}

.cart-menu-link svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.cart-menu-link:hover,
.cart-menu-link.has-items,
.cart-menu-link.is-active {
  color: var(--blue);
  background: #fff9d8;
  border-color: #d6aa00;
}

.cart-menu-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-count {
  display: inline-grid;
  min-width: 22px;
  min-height: 22px;
  place-items: center;
  padding: 0 6px;
  color: #ffffff;
  background: var(--red);
  border-radius: 999px;
  font-size: 12px;
  line-height: 1;
}

.social-menu {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}

.social-link {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 38px;
  padding: 0 10px;
  color: var(--navy);
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(33, 56, 109, 0.08);
}

.social-link svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: currentColor;
}

.social-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.social-link-facebook {
  color: #1877f2;
}

.social-link-instagram {
  color: #c13584;
}

.social-link-instagram svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.social-link-tiktok {
  color: #111827;
}

.social-link-youtube {
  color: #ff0000;
}

.social-link:hover {
  color: var(--blue);
  background: #fff9d8;
  border-color: #d6aa00;
}

.site-nav,
.segmented,
.tabs {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px;
  max-width: 100%;
  min-width: 0;
  padding: 4px;
  background:
    linear-gradient(180deg, #ffffff, #eef5ff);
  border: 1px solid #9db7dd;
  border-radius: var(--radius);
  box-shadow: inset 0 -2px 0 rgba(255, 203, 5, 0.5);
}

.nav-link,
.segment,
.tab-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  min-width: 0;
  padding: 0 13px;
  color: #405172;
  background: transparent;
  border: 0;
  border-radius: 6px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.nav-link.is-active,
.segment.is-active,
.tab-button.is-active {
  color: var(--ink);
  background: #ffffff;
  box-shadow:
    0 1px 2px rgba(33, 56, 109, 0.12),
    inset 0 -3px 0 var(--yellow);
}

.nav-link:hover,
.segment:hover,
.tab-button:hover {
  color: var(--blue);
  background: #fff9d8;
}

.topbar-meta {
  display: inline-flex;
  gap: 12px;
  justify-content: flex-end;
  align-items: center;
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
}

#catalogSource {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.state-dot {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  white-space: nowrap;
}

.state-dot::before {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
  content: "";
}

.state-dot.is-ready::before {
  background: var(--green);
}

main {
  padding: clamp(12px, 2vw, 22px);
}

@media (min-width: 981px) {
  body {
    padding-left: var(--side-menu-width);
  }

  body.menu-collapsed {
    padding-left: var(--side-menu-collapsed-width);
  }

  .topbar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 30;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto minmax(0, 1fr) auto;
    align-content: start;
    width: var(--side-menu-width);
    height: 100vh;
    min-height: 0;
    overflow-y: auto;
    padding: 18px 14px;
    border-right: 4px solid var(--yellow);
    border-bottom: 0;
  }

  .brand {
    width: 100%;
  }

  .menu-toggle {
    justify-content: flex-start;
  }

  .site-nav {
    display: grid;
    width: 100%;
    gap: 8px;
    align-items: stretch;
    padding: 8px;
  }

  .nav-link {
    justify-content: flex-start;
    width: 100%;
    min-height: 44px;
    padding: 0 12px;
    white-space: normal;
  }

  .topbar-meta {
    flex-direction: column;
    align-items: flex-start;
    justify-content: end;
    padding-top: 10px;
    font-size: 12px;
  }

  .social-menu {
    align-self: end;
    grid-template-columns: 1fr;
    padding-top: 16px;
  }

  .social-link {
    justify-content: flex-start;
    width: 100%;
  }

  .cart-menu-link {
    justify-content: flex-start;
    width: 100%;
  }

  body.menu-collapsed .topbar {
    width: var(--side-menu-collapsed-width);
    grid-template-rows: auto auto auto minmax(0, 1fr) auto;
    padding: 16px 9px;
  }

  body.menu-collapsed .brand {
    justify-content: center;
  }

  body.menu-collapsed .brand > span:last-child {
    display: none;
  }

  body.menu-collapsed .menu-toggle {
    justify-content: center;
    min-height: 42px;
    padding: 0;
  }

  body.menu-collapsed .menu-toggle-label {
    display: none;
  }

  body.menu-collapsed .cart-menu-link {
    justify-content: center;
    width: 44px;
    min-height: 44px;
    margin-top: 8px;
    padding: 0;
    justify-self: center;
  }

  body.menu-collapsed .cart-menu-label {
    display: none;
  }

  body.menu-collapsed .cart-count {
    position: absolute;
    top: -6px;
    right: -7px;
    min-width: 20px;
    min-height: 20px;
    padding: 0 5px;
    font-size: 11px;
  }

  body.menu-collapsed .social-menu {
    grid-template-columns: 1fr;
    align-self: end;
    padding-top: 0;
  }

  body.menu-collapsed .social-link {
    justify-content: center;
    width: 44px;
    min-height: 44px;
    padding: 0;
    justify-self: center;
  }

  body.menu-collapsed .social-label {
    display: none;
  }

}


/* Shared Page Layout */
.page-banner {
  max-width: 1540px;
  margin: 18px auto 0;
  padding: 0 22px;
}

.page-banner img {
  width: 100%;
  height: clamp(150px, 16vw, 230px);
  object-fit: cover;
  object-position: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.workspace {
  display: grid;
  gap: 18px;
  max-width: 1540px;
  margin: 0 auto;
}

.workspace > * {
  min-width: 0;
}

.catalog-panel,
.request-panel,
.queue-panel,
.admin-main,
.admin-gate-panel,
.upload-panel,
.password-panel,
.approval-panel,
.contact-main,
.archive-main,
.status-lookup-panel {
  background: var(--panel);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.catalog-panel,
.admin-main,
.admin-gate-panel,
.contact-main,
.archive-main,
.status-lookup-panel {
  min-height: calc(100vh - 112px);
  padding: 18px;
}

.admin-gate-panel {
  min-height: 0;
}

.request-panel,
.queue-panel {
  position: sticky;
  top: 88px;
  padding: 16px;
}

.upload-panel,
.password-panel {
  padding: 16px;
}

.approval-panel {
  padding: 16px;
}

/* Shared Forms And Controls */
.section-head {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.section-head.compact {
  align-items: center;
  margin-bottom: 12px;
}

.admin-controls {
  display: flex;
  gap: 12px;
  align-items: end;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--red);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 30px;
  line-height: 1.12;
}

h2 {
  margin-bottom: 0;
  font-size: 20px;
  line-height: 1.2;
}

h3 {
  margin-bottom: 6px;
  font-size: 17px;
  line-height: 1.25;
}

.search-field,
.pin-field,
.form-grid,
label {
  display: grid;
  gap: 6px;
}

.form-grid {
  gap: 12px;
}

.field-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}

.field-trio {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 84px 120px;
  gap: 10px;
}

.field-helper {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.admin-gate-panel.form-grid,
.archive-gate.form-grid {
  gap: 14px;
}

.search-field {
  width: min(310px, 42vw);
}

.search-field span,
.pin-field span,
label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 10px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
}

textarea {
  min-height: 108px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(42, 117, 187, 0.24);
  outline-offset: 2px;
}

.model-meta,
.admin-stats,
.queue-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.pill,
.meta-chip,
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.pill,
.meta-chip {
  color: var(--muted);
  background: #f5f8ff;
  border: 1px solid var(--line);
}

.status-pill {
  color: #334155;
  background: #eef2f6;
}

.status-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.status-ready {
  color: var(--green);
  background: var(--green-soft);
}

.status-printing,
.status-slicing {
  color: var(--blue);
  background: var(--blue-soft);
}

.status-review,
.status-quality {
  color: var(--amber);
  background: var(--amber-soft);
}

.status-hold {
  color: var(--red);
  background: #fff0ef;
}

.payment-paid {
  color: var(--green);
  background: var(--green-soft);
}

.payment-unpaid {
  color: var(--red);
  background: #fff0ef;
}

.price {
  color: var(--ink);
  font-weight: 900;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 7px;
  font-weight: 900;
  text-decoration: none;
}

.primary-action {
  color: white;
  background: var(--blue);
  border: 1px solid var(--blue);
}

.primary-action:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.secondary-action {
  color: var(--navy);
  background: var(--yellow);
  border: 1px solid #d6aa00;
}

.form-message {
  min-height: 20px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.form-message.is-error {
  color: var(--red);
}


/* Shared Tables And Feedback */
.empty-state {
  padding: 18px;
  color: var(--muted);
  background: var(--panel-soft);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  text-align: center;
}

.admin-stats {
  margin-bottom: 14px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
}

th,
td {
  padding: 11px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  background: var(--panel-soft);
  font-size: 12px;
  font-weight: 900;
}

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

td small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.admin-order-items {
  display: grid;
  gap: 5px;
  margin-top: 8px;
  padding: 8px;
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.admin-order-line {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 3px 7px;
  align-items: baseline;
}

.admin-order-line > span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
}

.admin-order-line strong {
  min-width: 0;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.admin-order-line small {
  grid-column: 2;
  margin-top: 0;
  overflow-wrap: anywhere;
}
.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 20;
  max-width: min(360px, calc(100vw - 40px));
  padding: 12px 14px;
  color: white;
  background: var(--navy);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Responsive And Print Shared Rules */
[hidden] {
  display: none !important;
}

@media (max-width: 1220px) {
  .request-workspace,
  .admin-workspace,
  .admin-gate-workspace,
  .admin-password-workspace,
  .catalog-admin-workspace,
  .blog-admin-workspace,
  .blog-workspace,
  .status-workspace,
  .contact-workspace,
  .archive-workspace {
    grid-template-columns: 1fr;
  }

  .request-panel,
  .queue-panel {
    position: static;
  }

  .catalog-panel,
  .admin-main,
  .archive-main,
  .status-lookup-panel {
    min-height: auto;
  }

  .approval-row {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 980px) {
  .topbar {
    position: static;
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: start;
    padding: 12px 16px;
  }

  .site-nav,
  .topbar-meta,
  .cart-menu-link {
    justify-self: stretch;
  }

  .site-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    width: 100%;
    overflow: visible;
  }

  .tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .nav-link,
  .tab-button {
    flex: 0 0 auto;
  }

  .nav-link {
    justify-content: flex-start;
    width: 100%;
    min-height: 42px;
    white-space: normal;
  }

  .topbar-meta {
    justify-content: space-between;
  }

  .social-menu {
    justify-self: stretch;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .social-link {
    min-height: 42px;
  }

  .cart-menu-link {
    min-height: 42px;
  }

  body.menu-collapsed .social-menu {
    display: none;
  }

  .catalog-panel,
  .admin-main,
  .admin-gate-panel,
  .contact-main,
  .blog-main,
  .archive-main,
  .status-lookup-panel,
  .request-panel,
  .queue-panel,
  .upload-panel,
  .password-panel,
  .approval-panel {
    padding: 16px;
  }
}

@media (max-width: 720px) {
  .topbar {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
  }

  .site-nav,
  .topbar-meta,
  .cart-menu-link {
    justify-self: stretch;
  }

  .site-nav {
    width: 100%;
  }

  .nav-link {
    min-width: 0;
    min-height: 40px;
  }

  .topbar-meta {
    flex-wrap: wrap;
    justify-content: flex-start;
    font-size: 12px;
  }

  .social-label {
    display: none;
  }

  main {
    padding: 12px;
  }

  .home-main {
    gap: 12px;
  }

  .intro-hero {
    min-height: 460px;
  }

  .intro-hero img {
    min-height: 460px;
  }

  .intro-copy {
    right: 20px;
    bottom: 24px;
    left: 20px;
  }

  .intro-copy h1 {
    font-size: 42px;
  }

  .intro-copy p:last-child {
    font-size: 18px;
  }

  .home-link-grid {
    grid-template-columns: 1fr;
  }

  .admin-controls,
  .payment-card {
    grid-template-columns: 1fr;
  }

  .admin-controls {
    display: grid;
    align-items: stretch;
  }

  .page-banner {
    margin-top: 12px;
    width: calc(100vw - 24px);
    max-width: none;
    margin-right: 12px;
    margin-left: 12px;
    padding: 0;
  }

  .page-banner img {
    height: 150px;
  }

  .section-head,
  .field-pair,
  .field-trio,
  .status-search {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: grid;
  }

  .search-field {
    width: 100%;
  }

  h1 {
    font-size: 25px;
  }

  input,
  select,
  textarea,
  .primary-action,
  .secondary-action {
    min-height: 44px;
  }

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

  .pokemon-custom-card {
    grid-template-columns: 1fr;
  }

  .custom-tab-card {
    grid-template-columns: 1fr;
  }

  .pokemon-custom-card .model-media {
    min-height: 190px;
    aspect-ratio: 16 / 10;
  }

  .pokemon-row {
    grid-template-columns: 72px 1fr;
  }

  .pokemon-row-repository,
  .pokemon-row-meta {
    grid-column: 2;
    justify-items: start;
  }

  .pokemon-modal-grid {
    grid-template-columns: 1fr;
  }

  .pokemon-art-panel {
    min-height: 260px;
  }

  .pokemon-info-panel {
    padding: 22px;
  }

  .pokemon-info-panel h2 {
    font-size: 24px;
  }

  .confirmation-actions {
    display: grid;
  }

  body[data-page="admin"] .table-wrap,
  body[data-page="archive"] .table-wrap {
    overflow: visible;
  }

  body[data-page="admin"] table,
  body[data-page="archive"] table,
  body[data-page="admin"] thead,
  body[data-page="archive"] thead,
  body[data-page="admin"] tbody,
  body[data-page="archive"] tbody,
  body[data-page="admin"] tr,
  body[data-page="archive"] tr,
  body[data-page="admin"] td,
  body[data-page="archive"] td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  body[data-page="admin"] table,
  body[data-page="archive"] table {
    min-width: 0;
  }

  body[data-page="admin"] thead,
  body[data-page="archive"] thead {
    display: none;
  }

  body[data-page="admin"] tbody,
  body[data-page="archive"] tbody {
    display: grid;
    gap: 12px;
  }

  body[data-page="admin"] tr,
  body[data-page="archive"] tr {
    padding: 12px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }

  body[data-page="admin"] td,
  body[data-page="archive"] td {
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
  }

  body[data-page="admin"] td:last-child,
  body[data-page="archive"] td:last-child {
    border-bottom: 0;
  }

  body[data-page="admin"] td[data-label]::before,
  body[data-page="archive"] td[data-label]::before {
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    content: attr(data-label);
  }

  body[data-page="admin"] td input,
  body[data-page="admin"] td select,
  body[data-page="archive"] td input,
  body[data-page="archive"] td select {
    width: 100%;
  }

  .admin-order-items {
    padding: 10px;
  }

  .admin-order-line {
    grid-template-columns: auto minmax(0, 1fr);
  }
}

@media print {
  @page {
    margin: 0.5in;
  }

  html,
  body {
    width: auto;
    min-width: 0;
    margin: 0;
    background: #ffffff !important;
  }

  body > :not(#confirmationModal) {
    display: none !important;
  }

  #confirmationModal,
  #confirmationModal * {
    visibility: visible;
  }

  #confirmationModal {
    position: static;
    display: block !important;
    padding: 0;
    background: #ffffff;
  }

  .confirmation-modal {
    width: 100%;
    max-width: none;
    max-height: none;
    min-height: auto;
    overflow: visible;
    padding: 0;
    background: #ffffff;
    border: 0;
    box-shadow: none;
  }

  .confirmation-actions,
  .modal-close,
  .topbar,
  .page-banner,
  .toast {
    display: none !important;
  }
}

@media (max-width: 460px) {
  .brand {
    align-items: flex-start;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    font-size: 0;
  }

  .brand strong {
    font-size: 16px;
  }

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

  main {
    padding: 10px;
  }

  .site-nav,
  .tabs {
    width: 100%;
  }

  .site-nav {
    grid-template-columns: 1fr;
  }

  .topbar-meta {
    display: grid;
    gap: 6px;
  }

  .page-banner {
    width: calc(100vw - 20px);
    margin-right: 10px;
    margin-left: 10px;
    padding: 0;
  }

  .page-banner img {
    height: 128px;
  }

  .catalog-panel,
  .admin-main,
  .admin-gate-panel,
  .contact-main,
  .blog-main,
  .archive-main,
  .status-lookup-panel,
  .request-panel,
  .queue-panel,
  .upload-panel,
  .password-panel,
  .approval-panel {
    padding: 12px;
  }

  .section-head.compact {
    display: grid;
    gap: 10px;
  }
}

