:root {
  --navy: #1d3560;
  --deep: #102743;
  --blue: #245fd9;
  --ink: #182944;
  --muted: #5d697c;
  --line: #dfe5ee;
  --wash: #f3f6fa;
  --mint: #c5eddd;
  --white: #fff;
  --red: #ad2531;
  --radius: 16px;
  font-family: Inter, "Avenir Next", Avenir, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--wash);
}

[hidden] {
  display: none !important;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: wait;
  opacity: .55;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #8baef1;
  outline-offset: 3px;
}

h1,
h2,
h3,
p {
  margin: 0 0 16px;
}

h1 {
  font-size: 36px;
  line-height: 1.15;
  letter-spacing: -1px;
}

h2 {
  font-size: 27px;
  line-height: 1.2;
  letter-spacing: -.5px;
}

h3 {
  font-size: 18px;
}

small,
.small {
  font-size: 13px;
}

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

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

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.8px;
  font-size: 11px;
  font-weight: 750;
  color: var(--blue);
  margin-bottom: 10px;
}

.brand-logo {
  display: block;
  width: 155px;
  height: 48px;
  object-fit: contain;
}

.button {
  border: 1px solid transparent;
  background: var(--blue);
  color: white;
  min-height: 43px;
  border-radius: 10px;
  padding: 10px 17px;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.button:hover {
  filter: brightness(.94);
}

.button.secondary {
  background: white;
  border-color: var(--line);
  color: var(--ink);
}

.button.danger {
  background: #fbe9ec;
  color: var(--red);
}

.button.ghost {
  color: inherit;
  border-color: currentColor;
  background: transparent;
}

.button.small {
  padding: 6px 10px;
  min-height: 34px;
}

.full {
  width: 100%;
}

.icon-button {
  background: var(--wash);
  border: 0;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 24px;
}

.text-link {
  color: var(--blue);
  display: inline-block;
  margin-top: 14px;
  font-weight: 600;
}

.row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.row.between {
  justify-content: space-between;
}

.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.notice {
  padding: 14px 18px;
  border-radius: 10px;
  background: #e9f2fd;
  margin: 12px 0;
}

.notice.error {
  background: #fff0f2;
}

.empty {
  text-align: center;
  grid-column: 1/-1;
  padding: 50px 22px;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

label {
  display: block;
  font-size: 13px;
  font-weight: 650;
  margin-bottom: 14px;
}

input,
select,
textarea {
  display: block;
  width: 100%;
  margin-top: 6px;
  border: 1px solid #cdd7e4;
  border-radius: 9px;
  background: white;
  color: var(--ink);
  min-height: 43px;
  padding: 10px 12px;
}

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

input[type=checkbox] {
  display: inline-block;
  width: 18px;
  min-height: 18px;
  margin: 0;
  vertical-align: middle;
}

.check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}

.span-all {
  grid-column: 1/-1;
}

.actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 18px;
}

.status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 30px;
  background: #edf2f8;
  color: var(--navy);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.status.good {
  background: #e0f3e9;
  color: #216142;
}

.status.warn {
  background: #fff2d7;
  color: #82550c;
}

.status.bad {
  background: #fde5e8;
  color: #a12b3c;
}

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

table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
}

th,
td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

th {
  background: #f9fbfd;
  font-size: 11px;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: var(--muted);
}

td {
  font-size: 13px;
}

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

td.number {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.shop-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px max(5%, calc((100vw - 1250px)/2));
  background: white;
  border-bottom: 1px solid var(--line);
  gap: 15px;
}

.shop-header nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 13px;
}

.hero {
  max-width: 1250px;
  margin: 0 auto;
  padding: 65px 0 55px;
  display: grid;
  grid-template-columns: 1.4fr .6fr;
  align-items: center;
  gap: 50px;
}

.hero h1 {
  font-size: 46px;
  max-width: 780px;
}

.hero h1 span {
  color: var(--blue);
}

.hero p:not(.eyebrow) {
  max-width: 600px;
  color: var(--muted);
  font-size: 17px;
}

.hero-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 25px;
}

.hero-tags span {
  font-size: 12px;
  border: 1px solid var(--line);
  background: white;
  padding: 7px 12px;
  border-radius: 30px;
}

.hero-mark {
  background: var(--navy);
  border-radius: 30px;
  color: white;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transform: rotate(-3deg);
  box-shadow: 14px 14px 0 #dae5f6;
}

.hero-mark>span {
  font-size: 87px;
  font-weight: 800;
  letter-spacing: -8px;
}

.hero-mark small {
  color: #c5dbff;
}

.catalog-section {
  max-width: 1250px;
  margin: 0 auto 60px;
}

.section-head {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-head h2 {
  margin-bottom: 0;
}

.search {
  min-width: 320px;
  margin: 0;
}

.chips {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.chip {
  border: 1px solid var(--line);
  background: white;
  border-radius: 30px;
  padding: 9px 16px;
  color: var(--ink);
}

.chip.active {
  background: var(--navy);
  color: white;
  border-color: var(--navy);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.product-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-photo {
  background: #f7f9fc;
  aspect-ratio: 1.1;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.product-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-placeholder {
  font-size: 48px;
  color: #b6c4d9;
  font-weight: 800;
}

.product-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-body h3 {
  margin: 0 0 8px;
}

.product-body .description {
  color: var(--muted);
  font-size: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.price {
  font-size: 25px;
  letter-spacing: -1px;
  font-weight: 750;
  margin: 9px 0;
}

.price s {
  font-size: 13px;
  color: var(--muted);
  margin-left: 8px;
  font-weight: 400;
}

.product-body .button {
  margin-top: auto;
}

.stock-label {
  font-size: 12px;
  color: #256b4e;
  margin: 7px 0 14px;
}

.shop-footer {
  background: white;
  border-top: 1px solid var(--line);
  padding: 30px 6%;
  display: flex;
  gap: 25px;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}

.shop-footer p {
  margin: 0;
}

dialog {
  border: 0;
  padding: 26px;
  width: min(820px, 94vw);
  max-height: 90vh;
  border-radius: 20px;
  box-shadow: 0 20px 80px #10274340;
  color: var(--ink);
}

dialog::backdrop {
  background: #10274380;
}

.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 22px;
}

.dialog-head h2 {
  margin: 0;
}

.cart-line {
  display: grid;
  grid-template-columns: 1fr 80px 95px 35px;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.cart-line p {
  margin: 0;
}

.cart-line input {
  margin: 0;
}

.cart-totals {
  margin: 20px 0;
  background: var(--wash);
  padding: 18px;
  border-radius: 12px;
}

.total-line {
  display: flex;
  justify-content: space-between;
  margin: 7px 0;
}

.total-line.large {
  font-size: 22px;
  font-weight: 750;
}

.auth-wrap {
  max-width: 500px;
  margin: 70px auto;
  padding: 0 20px;
}

.auth-wrap>.brand-logo {
  margin: 0 auto 24px;
}

.auth-wrap h1 {
  font-size: 30px;
}

.auth-wrap .card {
  padding: 32px;
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 245px 1fr;
}

.sidebar {
  background: var(--deep);
  color: white;
  padding: 27px 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  min-height: 100vh;
}

.sidebar .brand-logo {
  margin: 0 auto 14px;
}

.sidebar-label {
  text-transform: uppercase;
  color: #96abc8;
  font-size: 10px;
  letter-spacing: 1.7px;
  margin: 15px 12px 5px;
}

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

.sidebar nav a {
  padding: 12px 15px;
  border-radius: 9px;
  color: #cfdaeb;
  font-size: 14px;
}

.sidebar nav a:hover,
.sidebar nav a.active {
  background: #254674;
  color: white;
}

.sidebar-bottom {
  margin-top: auto;
  padding-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 12px;
}

.sidebar-bottom .ghost {
  border-color: #39506f;
  color: #cfdaeb;
  min-height: 35px;
}

.admin-main {
  min-width: 0;
}

.admin-top {
  height: 84px;
  background: white;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 38px;
  gap: 15px;
}

.admin-top>span {
  color: var(--muted);
  font-size: 13px;
}

.admin-page {
  padding: 35px 38px 60px;
  max-width: 1500px;
  margin: auto;
}

.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}

.page-heading h1 {
  font-size: 31px;
  margin-bottom: 7px;
}

.page-heading p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 26px;
}

.metric {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
}

.metric .value {
  font-size: 30px;
  letter-spacing: -1px;
  font-weight: 750;
  margin: 8px 0 0;
}

.metric p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

.panel-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 20px;
}

.variant-row {
  border: 1px solid var(--line);
  background: var(--wash);
  border-radius: 12px;
  padding: 18px;
  margin: 14px 0;
}

.variant-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 12px;
}

.variant-grid label {
  font-size: 12px;
}

.mini-images {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 15px 0;
}

.mini-images img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.thumb {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.pill-grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pill-grid .check {
  border: 1px solid var(--line);
  padding: 8px 12px;
  border-radius: 20px;
  margin: 0;
}

.order-public {
  max-width: 900px;
  margin: 35px auto;
  padding: 0 20px;
}

.ticket {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px;
  margin-bottom: 20px;
}

.ticket-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
  margin-bottom: 22px;
}

.ticket-header h1 {
  font-size: 26px;
  margin: 6px 0;
}

.ticket-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 20px 0;
}

.ticket-info p {
  margin-bottom: 7px;
  font-size: 13px;
}

.order-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.order-actions .card {
  padding: 20px;
}

.attachment-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.attachment-list li {
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.attachment-list a {
  color: var(--blue);
  font-size: 13px;
}

.permission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px 18px;
}

.permission-grid label {
  font-size: 12px;
}

.file-label {
  border: 1px dashed #9cb4d9;
  padding: 20px;
  border-radius: 12px;
  background: #f7faff;
}

.file-label input {
  border: 0;
  background: transparent;
  padding-left: 0;
  font-size: 12px;
}

.timeline {
  border-left: 2px solid var(--line);
  padding-left: 18px;
  margin-top: 20px;
}

.timeline p {
  font-size: 13px;
}

.sr-only,
.skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--deep);
  color: white;
  padding: 14px 22px;
  border-radius: 12px;
  box-shadow: 0 5px 25px #10274333;
  z-index: 1000;
  max-width: 92vw;
  font-size: 14px;
}

.loading {
  opacity: .6;
  pointer-events: none;
}

@media (max-width: 1300px) {
  .hero,
  .catalog-section {
    margin-left: 5%;
    margin-right: 5%;
  }

  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1000px) {
  .admin-shell {
    grid-template-columns: 190px 1fr;
  }

  .sidebar {
    padding: 22px 12px;
  }

  .admin-page {
    padding: 26px 22px;
  }

  .admin-top {
    padding: 0 22px;
  }

  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .hero h1 {
    font-size: 37px;
  }

  .hero {
    gap: 30px;
  }

  .hero-mark {
    min-height: 230px;
  }

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

@media (max-width: 700px) {
  input,
  select,
  textarea {
    font-size: 16px;
  }

  .shop-header {
    padding: 13px 5%;
  }

  .shop-header .brand-logo {
    width: 125px;
    height: 40px;
  }

  .shop-header nav {
    gap: 10px;
  }

  .shop-header nav>a {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 35px 0 28px;
  }

  .hero h1 {
    font-size: 33px;
  }

  .hero p:not(.eyebrow) {
    font-size: 15px;
  }

  .hero-mark {
    display: none;
  }

  .hero-tags {
    gap: 6px;
  }

  .hero-tags span {
    font-size: 10px;
    padding: 6px 9px;
  }

  .section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .search {
    min-width: 0;
    width: 100%;
  }

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

  .product-body {
    padding: 13px;
  }

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

  .price {
    font-size: 22px;
  }

  .product-body .button {
    font-size: 12px;
    padding: 9px 8px;
  }

  .product-body select {
    padding: 8px;
    font-size: 14px;
  }

  .shop-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
  }

  .admin-shell {
    display: block;
  }

  .sidebar {
    min-height: auto;
    padding: 15px 18px;
  }

  .sidebar>.sidebar-label {
    display: none;
  }

  .sidebar .brand-logo {
    width: 115px;
    margin: 0;
  }

  .sidebar nav {
    flex-direction: row;
    overflow-x: auto;
    gap: 4px;
    margin-top: 5px;
    padding-bottom: 5px;
  }

  .sidebar nav a {
    white-space: nowrap;
    font-size: 12px;
    padding: 8px 11px;
  }

  .sidebar-bottom {
    margin: 0;
    padding: 0;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
  }

  .sidebar-bottom>span {
    margin-right: auto;
  }

  .sidebar-bottom .button {
    font-size: 10px;
    padding: 5px 8px;
    min-height: 30px;
  }

  .admin-top {
    height: 65px;
    padding: 0 18px;
  }

  .admin-page {
    padding: 25px 15px;
  }

  .page-heading {
    align-items: flex-start;
  }

  .page-heading h1 {
    font-size: 27px;
  }

  .page-heading>.button {
    font-size: 12px;
  }

  .metric {
    padding: 16px;
  }

  .metric .value {
    font-size: 26px;
  }

  .metrics {
    gap: 10px;
  }

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

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

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

  .ticket {
    padding: 20px;
  }

  .ticket-info {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .ticket-header {
    flex-direction: column;
  }

  .ticket th,
  .ticket td {
    padding: 9px 6px;
    font-size: 11px;
  }

  .cart-line {
    grid-template-columns: 1fr 65px 80px 28px;
    gap: 6px;
  }

  .cart-line strong {
    font-size: 13px;
  }

  dialog {
    padding: 20px;
  }

  .card {
    padding: 20px;
  }
}

@media print {
  @page {
    size: A4;
    margin: 14mm;
  }

  body {
    background: white;
    font-size: 11px;
  }

  .no-print,
  header.shop-header,
  .sidebar,
  .admin-top,
  .order-actions,
  #toast,
  dialog {
    display: none !important;
  }

  .admin-shell {
    display: block;
  }

  .admin-page,
  .order-public {
    padding: 0;
    margin: 0;
    max-width: none;
  }

  .ticket {
    border: 0;
    border-radius: 0;
    margin: 0;
    padding: 0;
  }

  .ticket table {
    break-inside: auto;
  }

  .ticket tr {
    break-inside: avoid;
  }

  .ticket .button {
    display: none;
  }

  .ticket-info {
    grid-template-columns: 1fr 1fr;
  }

  .ticket-header {
    flex-direction: row;
  }

  .ticket th {
    background: white;
  }

  a {
    color: inherit;
  }

  .ticket-header img {
    width: 135px;
  }
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.stat strong {
  display: block;
  font-size: 29px;
  letter-spacing: -1px;
  margin-top: 12px;
}

.stat span {
  font-size: 12px;
}

.admin-page>section {
  margin-bottom: 22px;
}

.toolbar {
  display: flex;
  gap: 14px;
  margin: 18px 0;
}

.toolbar input {
  max-width: 440px;
}

.toolbar select {
  max-width: 200px;
}

.product-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.product-cell img,
.thumb-placeholder {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 9px;
  background: var(--wash);
}

.thumb-placeholder {
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #91a7c8;
}

.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}

.list-row:last-child {
  border: 0;
}

.list-row p {
  margin: 4px 0 0;
}

.list-row .actions {
  margin: 0;
}

.check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px 20px;
  margin: 15px 0;
}

.variant-editor {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  background: var(--wash);
  margin: 18px 0;
}

.variant-editor legend {
  font-weight: 700;
  padding: 0 8px;
}

.photo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin: 15px 0;
}

.photo-grid>div {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 150px;
}

.photo-grid img {
  width: 130px;
  height: 130px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.photo-grid button {
  font-size: 11px;
  min-height: 32px;
  padding: 7px;
}

.form-footer {
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.narrow {
  max-width: 750px;
}

details {
  padding: 12px 0;
}

summary {
  cursor: pointer;
  font-weight: 600;
}

pre {
  max-width: 450px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
}

select[multiple] {
  min-height: 140px;
}

.page-heading .actions {
  margin: 0;
}

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

  .page-heading {
    flex-wrap: wrap;
  }

  .toolbar {
    flex-direction: column;
  }

  .toolbar select {
    max-width: none;
  }

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

  .stat strong {
    font-size: 24px;
  }

  .stat {
    padding: 15px;
  }

  .list-row {
    gap: 10px;
    flex-wrap: wrap;
  }
}

@media print {
  .admin-page>.page-heading,
  .admin-page>.card,
  .admin-page>section {
    display: none !important;
  }
}

.detail-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 22px;
}

.detail-gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  background: var(--wash);
  border-radius: 12px;
}

.full-description {
  white-space: pre-wrap;
}

.product-body [data-detail] {
  margin: 0 0 9px;
  font-size: 12px;
  min-height: 35px;
  padding: 7px;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 26px 0;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}

.health-list {
  list-style: none;
  padding: 0;
}

.health-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.installer {
  max-width: 760px;
}

.installer .card {
  padding: 28px;
}

.health-list .status {
  white-space: normal;
}

@media print {
  .pagination {
    display: none;
  }
}

.photo-uploader {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(135px, 1fr));
  gap: 14px;
}

.photo-uploader>.photo-tile {
  position: relative;
  display: flex;
  max-width: none;
  min-width: 0;
  gap: 6px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
}

.photo-uploader img {
  width: 100%;
  height: 135px;
  border: 0;
  border-radius: 9px;
  background: var(--wash);
}

.photo-uploader .photo-remove {
  position: absolute;
  right: 5px;
  top: 5px;
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  color: var(--red);
  box-shadow: 0 2px 8px #10274320;
  font-size: 25px;
  line-height: 1;
}

.photo-uploader .photo-remove:hover {
  background: #fff0f2;
}

.photo-name {
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.photo-uploader small {
  font-size: 11px;
  overflow-wrap: anywhere;
}

.notice.small p {
  margin: 6px 0 0;
}

.variant-editor {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  margin: 14px 0;
}

.variant-editor legend {
  font-weight: 650;
  padding: 0 6px;
}

.variant-actions {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 14px;
}

.variant-editor label small {
  display: block;
  font-weight: 400;
  line-height: 1.4;
  margin-top: 6px;
}

@media (max-width: 480px) {
  .photo-uploader {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .photo-uploader .photo-remove {
    width: 40px;
    height: 40px;
  }

  .photo-uploader img {
    height: 125px;
  }
}

.order-contact,.order-guide,.bank-accounts,.order-files{margin:24px 0;padding-top:20px;border-top:1px solid #dce4ef}
.order-file-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:20px}
.order-file{padding:18px;border:1px solid #dce4ef;border-radius:16px;min-width:0}
.order-file-image{display:block;width:100%;height:320px;object-fit:contain;background:#f4f6fa;border-radius:10px}
.file-name{overflow-wrap:anywhere}.attachment-zoom{width:min(1100px,95vw);max-width:95vw;max-height:94vh;padding:20px}
.zoom-header{display:flex;align-items:center;justify-content:space-between;gap:20px}
.zoom-viewport{overflow:auto;max-height:70vh;background:#eff3f8;margin-top:18px;padding:12px}
.zoom-viewport img{display:block;height:auto;max-width:none;margin:auto}.zoom-1{width:100%}.zoom-2{width:175%}.zoom-3{width:250%}
#mail-configuration .actions{margin-top:20px}#mail-status{margin-top:20px}
@media print{.order-file{break-inside:avoid}.order-file-image{max-height:360px}.order-file-grid{display:block}.attachment-zoom{display:none}}
