:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: #202329;
  background: #f6f7f9;
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: 0;
  --muted: #777e89;
  --line: #e4e7ec;
  --red: #e34840;
  --paper: #fff;
  --ink: #202329;
  --green: #187548;
  --blue: #2754b5;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
  letter-spacing: 0;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #83a7ed;
  outline-offset: 3px;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  color: inherit;
}
svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
img {
  display: block;
  max-width: 100%;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 30px;
  line-height: 1.2;
  font-weight: 650;
}
h2 {
  font-size: 21px;
  line-height: 1.3;
  font-weight: 650;
}
h3 {
  font-size: 16px;
  line-height: 1.4;
}
small {
  font-size: 12px;
}
.muted {
  color: var(--muted);
}
.text-small {
  font-size: 13px;
}
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.brand {
  display: inline-flex;
  align-items: center;
  font-size: 25px;
  font-weight: 800;
  color: #202329;
  line-height: 1;
}
.brand span {
  color: var(--red);
  font-size: 34px;
}
.app-header {
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.header-inner {
  max-width: 1100px;
  height: 88px;
  padding: 0 32px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.top-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-button {
  background: none;
  border: 0;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  font-size: 14px;
  color: #707783;
  border-radius: 6px;
  white-space: nowrap;
}
.nav-button.active {
  background: #f2f3f6;
  color: #202329;
  font-weight: 600;
}
.nav-button:hover {
  color: #202329;
  background: #f2f3f6;
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e9ecf2;
  font-weight: 600;
  font-size: 13px;
}
.account {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
}
.main {
  max-width: 1100px;
  margin: auto;
  padding: 40px 32px 72px;
  min-height: calc(100dvh - 150px);
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
}
.page-head p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}
.count-label {
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 4px 9px;
  border-radius: 5px;
  white-space: nowrap;
}
.catalog-controls {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
  justify-content: space-between;
}
.segments {
  display: flex;
  gap: 4px;
  align-items: center;
  max-width: 100%;
  background: #eceedf00;
  border-bottom: 1px solid var(--line);
}
.segment {
  background: none;
  border: 0;
  padding: 11px 14px;
  min-height: 44px;
  font-size: 14px;
  white-space: nowrap;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.segment.active {
  border-bottom-color: var(--ink);
  color: var(--ink);
  font-weight: 600;
}
.search {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  background: white;
  border-radius: 6px;
  height: 44px;
  gap: 10px;
  padding: 0 12px;
  color: var(--muted);
  width: 280px;
  flex-shrink: 0;
}
.search input {
  border: 0;
  outline: 0;
  width: 100%;
  background: transparent;
  font-size: 14px;
  color: var(--ink);
  min-width: 0;
}
.search:focus-within {
  border-color: #738bb2;
}
.products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.product-card {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.15s;
}
.product-card:hover {
  border-color: #a9afba;
}
.product-media {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.product-body {
  padding: 22px 24px 24px;
}
.product-meta {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.available {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--green);
  font-size: 12px;
}
.available:before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
}
.product-body h2 {
  font-size: 22px;
  margin-bottom: 5px;
}
.product-subtitle {
  color: var(--muted);
  font-size: 14px;
}
.product-bottom {
  margin-top: 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.price {
  font-size: 24px;
  font-weight: 650;
  white-space: nowrap;
}
.price-prefix {
  font-size: 13px;
  color: var(--muted);
  font-weight: 400;
}
.btn {
  border: 1px solid var(--line);
  background: white;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 17px;
  min-height: 44px;
  font-size: 14px;
  font-weight: 550;
  transition: background 0.15s;
}
.btn:hover {
  background: #f4f5f7;
}
.btn.primary {
  color: white;
  background: var(--ink);
  border-color: var(--ink);
}
.btn.primary:hover {
  background: #3b414a;
}
.btn.danger {
  color: #bc3029;
  border-color: #f0c6c3;
  background: #fff6f5;
}
.btn.full {
  width: 100%;
}
.btn.subtle {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}
.icon-btn {
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  border-radius: 5px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  flex-shrink: 0;
  color: var(--muted);
}
.icon-btn:hover {
  background: #edf0f4;
  color: var(--ink);
}
.back {
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 0 24px;
  color: var(--muted);
  font-size: 13px;
}
.back:hover {
  color: var(--ink);
}
.catalog-foot {
  margin-top: 28px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  font-size: 12px;
  color: var(--muted);
}
.catalog-foot span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.catalog-foot svg {
  width: 15px;
  height: 15px;
}
.footer {
  border-top: 1px solid var(--line);
  max-width: 1036px;
  margin: 0 auto;
  padding: 20px 0 24px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}
.demo-bar {
  background: #fff4ce;
  color: #68511f;
  text-align: center;
  padding: 7px 16px;
  font-size: 12px;
}
.demo-bar a {
  text-decoration: underline;
  margin-left: 10px;
}
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.detail-media {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: 20px;
}
.detail-description {
  color: var(--muted);
  font-size: 14px;
  max-width: 470px;
}
.detail-info {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 20px;
  font-size: 13px;
  color: var(--muted);
}
.detail-info svg {
  width: 17px;
  height: 17px;
  margin-top: 2px;
}
.detail-title {
  margin-bottom: 8px;
}
.detail-meta {
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 13px;
}
.field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 9px;
}
.variants {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
}
.variant {
  padding: 16px;
  min-height: 65px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.variant.active {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}
.variant strong {
  font-weight: 600;
  font-size: 16px;
  white-space: nowrap;
}
.radio {
  width: 17px;
  height: 17px;
  border: 1px solid #bbc0c8;
  border-radius: 50%;
  margin-right: 10px;
  display: inline-block;
  vertical-align: -3px;
}
.variant.active .radio {
  border: 5px solid var(--ink);
}
.variant-note {
  display: block;
  text-align: left;
  font-size: 12px;
  margin: 4px 0 0 28px;
  color: var(--muted);
}
.stepper {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  width: 142px;
  height: 44px;
  justify-content: space-between;
}
.stepper .icon-btn {
  width: 42px;
  height: 42px;
}
.stepper output {
  font-weight: 600;
  width: 40px;
  text-align: center;
}
.quantity-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  margin-top: 10px;
  gap: 16px;
}
.total-row strong {
  font-size: 24px;
  white-space: nowrap;
}
.safe-note {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--muted);
  margin-top: 14px;
}
.safe-note svg {
  width: 14px;
  height: 14px;
}
.narrow {
  max-width: 620px;
  margin: 0 auto;
}
.checkout-title {
  margin-bottom: 26px;
}
.summary-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 22px 0;
}
.summary-row img {
  width: 82px;
  height: 62px;
  object-fit: cover;
  border-radius: 5px;
}
.summary-row .grow {
  flex: 1;
  min-width: 0;
}
.summary-row strong {
  font-size: 15px;
  display: block;
}
.summary-row p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 3px;
}
.summary-row .summary-price {
  white-space: nowrap;
  font-size: 16px;
}
.notice {
  font-size: 13px;
  line-height: 1.6;
  color: #606873;
  background: #eceff3;
  padding: 14px 16px;
  border-radius: 5px;
  margin: 20px 0;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.notice svg {
  width: 17px;
  height: 17px;
  margin-top: 2px;
}
.notice p {
  flex: 1;
}
.notice.warning {
  background: #fff4dc;
  color: #80612e;
}
.steps {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  font-size: 12px;
  color: var(--muted);
}
.steps b {
  width: 22px;
  height: 22px;
  background: #e6e9ee;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-size: 11px;
  margin-right: 5px;
}
.steps .current {
  color: var(--ink);
}
.steps .current b {
  background: var(--ink);
  color: white;
}
.steps .step-line {
  height: 1px;
  min-width: 10px;
  flex: 1;
  background: var(--line);
}
.order-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.order-heading h1 {
  font-size: 24px;
}
.order-number {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  color: var(--muted);
  margin-top: 7px;
  overflow-wrap: anywhere;
}
.payment-amount {
  font-size: 36px;
  font-weight: 650;
  margin: 8px 0 22px;
}
.bank-tabs {
  margin-bottom: 20px;
}
.bank-tabs .segment {
  flex: 1;
}
.payment-instructions {
  font-size: 14px;
  margin-bottom: 12px;
}
.pay-field {
  border-bottom: 1px solid var(--line);
  padding: 15px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.pay-field .value {
  font-size: 20px;
  font-weight: 600;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.4;
}
.pay-field .label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 5px;
}
.recipient {
  font-size: 13px;
  color: var(--muted);
  margin: 12px 0 24px;
}
.bank-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.bank-mark {
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  border-radius: 4px;
  color: white;
  background: #26925b;
}
.bank-mark.tbank {
  background: #ffda3a;
  color: #252525;
}
.cancel-link {
  display: block;
  margin: 14px auto 0;
  border: 0;
  background: none;
  font-size: 13px;
  color: var(--muted);
  text-decoration: underline;
}
.form-field {
  margin: 18px 0;
}
.input {
  width: 100%;
  border: 1px solid #d8dde5;
  background: white;
  border-radius: 6px;
  min-height: 46px;
  padding: 11px 13px;
  outline: 0;
  color: var(--ink);
}
.input:focus {
  border-color: #657996;
}
.input-area {
  min-height: 110px;
  resize: vertical;
}
.input-wrap {
  position: relative;
}
.input-wrap .input {
  padding-right: 50px;
}
.input-wrap .icon-btn {
  position: absolute;
  right: 3px;
  top: 3px;
}
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  color: #67707b;
  margin: 22px 0;
}
.check-row input {
  margin: 3px 0 0;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--ink);
}
.mode-switch {
  display: flex;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px;
  margin: 20px 0;
  background: #eeeef2;
}
.mode-switch button {
  background: none;
  border: 0;
  padding: 9px;
  font-size: 13px;
  flex: 1;
  border-radius: 4px;
  min-height: 40px;
}
.mode-switch button.active {
  background: white;
  box-shadow: 0 1px 3px #18213512;
  font-weight: 600;
}
.waiting {
  text-align: center;
  padding: 12px 0 18px;
}
.state-icon {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  background: #e8edf8;
  color: var(--blue);
  border-radius: 50%;
  margin: 8px auto 20px;
}
.state-icon svg {
  width: 29px;
  height: 29px;
}
.state-icon.success {
  background: #e3f4e9;
  color: var(--green);
}
.waiting h2 {
  font-size: 24px;
  margin-bottom: 12px;
}
.waiting p {
  max-width: 440px;
  margin: auto;
  color: var(--muted);
  font-size: 14px;
}
.code-block {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 20px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 20px;
  margin: 20px 0;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 4px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  color: #75674e;
  background: #f3edde;
}
.status-payment_review {
  background: #fff0d5;
  color: #966322;
}
.status-processing {
  background: #e7edfb;
  color: #315fae;
}
.status-completed {
  background: #e1f2e8;
  color: #25724c;
}
.status-cancelled {
  background: #eceef1;
  color: #7a828d;
}
.status-awaiting_details {
  background: #f1eafa;
  color: #7956a4;
}
.orders-list {
  border-top: 1px solid var(--line);
}
.order-item {
  width: 100%;
  background: transparent;
  text-align: left;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  display: flex;
  align-items: center;
  gap: 16px;
}
.order-item:hover {
  background: #eff1f5;
}
.order-item img {
  width: 76px;
  height: 58px;
  object-fit: cover;
  border-radius: 5px;
}
.order-item .grow {
  flex: 1;
  min-width: 0;
}
.order-item h3 {
  margin-bottom: 5px;
}
.order-item .right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.empty {
  padding: 60px 18px;
  text-align: center;
  color: var(--muted);
}
.empty svg {
  width: 36px;
  height: 36px;
  margin-bottom: 16px;
}
.empty h2 {
  color: var(--ink);
  font-size: 20px;
  margin-bottom: 9px;
}
.empty p {
  font-size: 14px;
  max-width: 430px;
  margin: 0 auto 20px;
}
.help-row {
  display: flex;
  gap: 14px;
  align-items: start;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.help-row svg {
  margin-top: 3px;
  color: var(--muted);
}
.help-row p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 6px;
}
.bottom-nav {
  display: none;
}
.initial-loading {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-size: 30px;
  font-weight: 700;
  gap: 12px;
}
.initial-loading span {
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
}
#toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translate(-50%, 20px);
  background: #202329;
  color: white;
  font-size: 13px;
  padding: 12px 18px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  z-index: 100;
  max-width: calc(100% - 32px);
  width: max-content;
  transition:
    opacity 0.15s,
    transform 0.15s;
}
#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.admin-shell {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  min-height: 100dvh;
}
.admin-sidebar {
  padding: 28px 20px;
  border-right: 1px solid var(--line);
  background: white;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.admin-sidebar .brand {
  padding: 0 10px;
}
.admin-sidebar nav {
  display: grid;
  gap: 4px;
}
.admin-sidebar .nav-button {
  width: 100%;
  justify-content: flex-start;
}
.admin-sidebar .bottom {
  margin-top: auto;
  padding: 10px;
}
.admin-main {
  padding: 34px;
  max-width: 1440px;
  width: 100%;
  margin: auto;
  align-self: start;
  min-width: 0;
}
.admin-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  gap: 16px;
}
.admin-top h1 {
  font-size: 25px;
}
.admin-top .eyebrow {
  margin-bottom: 6px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}
.stat {
  padding: 20px 0;
}
.stat + .stat {
  border-left: 1px solid var(--line);
  padding-left: 24px;
}
.stat b {
  display: block;
  font-size: 27px;
  font-weight: 600;
  margin-top: 4px;
}
.admin-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.admin-controls .segments {
  overflow: auto;
}
.table-wrap {
  overflow: auto;
  border-top: 1px solid var(--line);
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
  text-align: left;
  min-width: 690px;
}
th {
  font-weight: 500;
  color: var(--muted);
  font-size: 11px;
  padding: 12px;
  background: #f0f2f5;
  white-space: nowrap;
}
td {
  padding: 17px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
tr.order-table-row {
  cursor: pointer;
}
tr.order-table-row:hover {
  background: #edf0f5;
}
td strong {
  font-size: 13px;
  font-weight: 600;
}
td small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}
td:first-child {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 11px;
}
.table-right {
  text-align: right;
  white-space: nowrap;
}
.settings-section {
  padding: 24px 0;
  border-top: 1px solid var(--line);
  max-width: 700px;
}
.settings-section h2 {
  font-size: 18px;
  margin-bottom: 18px;
}
.settings-section .form-field:first-of-type {
  margin-top: 0;
}
.catalog-editor {
  border-top: 1px solid var(--line);
  padding: 24px 0;
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 24px;
}
.catalog-editor img {
  border-radius: 6px;
}
.variant-editor {
  display: grid;
  grid-template-columns: 1fr 140px 80px;
  gap: 12px;
  margin: 12px 0;
  align-items: end;
}
.variant-editor label {
  font-size: 12px;
  color: var(--muted);
  display: block;
}
.variant-editor .input {
  margin-top: 5px;
}
.variant-editor .icon-btn {
  margin-bottom: 3px;
}
.editor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.editor-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}
.error-page {
  max-width: 520px;
  margin: 80px auto;
  text-align: center;
  padding: 0 24px;
}
.error-page h1 {
  font-size: 24px;
  margin: 16px 0;
}
.error-page p {
  color: var(--muted);
  font-size: 14px;
}
.error-page .btn {
  margin-top: 20px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  width: 640px;
  max-width: calc(100% - 28px);
  max-height: 90dvh;
  color: var(--ink);
  background: #f9fafb;
}
dialog::backdrop {
  background: #161d2b66;
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: white;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 1;
}
.dialog-head h2 {
  font-size: 18px;
}
.dialog-body {
  padding: 24px;
}
.key-value {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 13px;
  margin: 14px 0;
}
.key-value span:first-child {
  color: var(--muted);
}
.key-value span:last-child {
  text-align: right;
  overflow-wrap: anywhere;
  min-width: 0;
}
.dialog-actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}
.dialog-actions .btn {
  flex: 1;
}
.credentials {
  background: #eef2f6;
  padding: 16px;
  margin: 20px 0;
  border-radius: 5px;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.credentials .key-value {
  margin: 8px 0;
}
.credentials pre {
  white-space: pre-wrap;
  font: inherit;
  margin: 10px 0;
}
.history {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 12px;
}
.history p {
  margin: 7px 0;
}
.admin-mobile-nav {
  display: none;
}
@media (min-width: 1400px) {
  .main {
    padding-top: 48px;
  }
  .products {
    gap: 28px;
  }
}
@media (max-width: 900px) {
  .header-inner {
    padding: 0 24px;
    gap: 16px;
  }
  .account .name {
    display: none;
  }
  .main {
    padding: 30px 24px 60px;
  }
  .product-body {
    padding: 18px;
  }
  .product-body h2 {
    font-size: 20px;
  }
  .detail-layout {
    gap: 28px;
  }
  .admin-shell {
    grid-template-columns: 170px minmax(0, 1fr);
  }
  .admin-sidebar {
    padding: 26px 12px;
  }
  .admin-main {
    padding: 26px 20px;
  }
  .admin-controls {
    align-items: stretch;
    flex-direction: column;
  }
  .admin-controls .search {
    width: 100%;
  }
  .variant-editor {
    grid-template-columns: 1fr 110px 40px;
  }
  .catalog-editor {
    grid-template-columns: 100px minmax(0, 1fr);
  }
  .footer {
    margin: 0 24px;
  }
  .top-nav .nav-button {
    padding: 9px;
  }
  .stats .stat b {
    font-size: 24px;
  }
}
@media (max-width: 600px) {
  :root {
    font-size: 14px;
  }
  .header-inner {
    height: 72px;
    padding: 0 20px;
  }
  .brand {
    font-size: 24px;
  }
  .top-nav {
    display: none;
  }
  .account .name {
    display: block;
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .main {
    padding: 26px 20px 104px;
    min-height: calc(100dvh - 74px);
  }
  h1 {
    font-size: 26px;
  }
  .page-head {
    margin-bottom: 22px;
  }
  .catalog-controls {
    display: flex;
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 15px;
    margin-bottom: 20px;
  }
  .search {
    width: 100%;
    height: 45px;
  }
  .segments {
    gap: 0;
    justify-content: space-between;
  }
  .segment {
    padding: 10px 12px;
    font-size: 13px;
  }
  .products {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .product-body {
    padding: 18px 20px 20px;
  }
  .product-body h2 {
    font-size: 22px;
  }
  .product-bottom {
    margin-top: 22px;
  }
  .price {
    font-size: 25px;
  }
  .product-card .btn {
    min-width: 120px;
  }
  .catalog-foot {
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
  }
  .footer {
    display: none;
  }
  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    border-top: 1px solid var(--line);
    background: #ffffffee;
    backdrop-filter: blur(10px);
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    justify-content: space-around;
  }
  .bottom-nav button {
    border: 0;
    background: none;
    color: #8a919c;
    font-size: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    width: 84px;
    min-height: 44px;
  }
  .bottom-nav button.active {
    color: var(--ink);
    font-weight: 600;
  }
  .bottom-nav svg {
    width: 21px;
    height: 21px;
  }
  .demo-bar {
    font-size: 11px;
    padding: 6px 10px;
  }
  .detail-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  .detail-media {
    margin-bottom: 12px;
  }
  .detail-description {
    font-size: 13px;
  }
  .detail-info {
    display: none;
  }
  .back {
    padding-bottom: 20px;
  }
  .detail-title {
    font-size: 26px;
  }
  .detail-meta {
    margin-bottom: 20px;
  }
  .detail-media img {
    aspect-ratio: 2.1;
    object-fit: cover;
  }
  .variant {
    padding: 14px;
  }
  .order-heading h1 {
    font-size: 22px;
  }
  .steps {
    font-size: 11px;
    gap: 5px;
  }
  .steps b {
    width: 19px;
    height: 19px;
    margin-right: 3px;
  }
  .summary-row {
    gap: 12px;
  }
  .summary-row img {
    width: 65px;
    height: 54px;
  }
  .summary-row strong {
    font-size: 14px;
  }
  .summary-row .summary-price {
    font-size: 14px;
  }
  .payment-amount {
    font-size: 32px;
  }
  .pay-field .value {
    font-size: 20px;
  }
  .waiting {
    padding-top: 15px;
  }
  .waiting h2 {
    font-size: 23px;
  }
  .order-item {
    gap: 12px;
    padding: 18px 0;
    align-items: flex-start;
  }
  .order-item img {
    width: 52px;
    height: 46px;
  }
  .order-item h3 {
    font-size: 14px;
  }
  .order-item .right {
    gap: 6px;
  }
  .order-item .right strong {
    font-size: 13px;
  }
  .order-item .right .status {
    font-size: 10px;
    max-width: 132px;
    white-space: normal;
    text-align: right;
  }
  .order-item .grow small {
    font-size: 11px;
  }
  .code-block {
    font-size: 17px;
  }
  .admin-shell {
    display: block;
  }
  .admin-sidebar {
    display: none;
  }
  .admin-main {
    padding: 24px 16px 100px;
  }
  .admin-mobile-nav {
    display: flex;
    gap: 7px;
    align-items: center;
    border-bottom: 1px solid var(--line);
    margin-bottom: 24px;
    padding-bottom: 12px;
    overflow: auto;
  }
  .admin-mobile-nav .brand {
    font-size: 20px;
    margin-right: auto;
  }
  .admin-mobile-nav .nav-button {
    padding: 8px;
    font-size: 12px;
  }
  .admin-mobile-nav .nav-button svg {
    width: 17px;
    height: 17px;
  }
  .admin-top {
    margin-bottom: 22px;
  }
  .admin-top h1 {
    font-size: 24px;
  }
  .admin-top .btn {
    padding: 10px;
  }
  .admin-top .btn .label {
    display: none;
  }
  .stats {
    margin-bottom: 20px;
  }
  .stat {
    padding: 15px 0;
    font-size: 11px;
  }
  .stat + .stat {
    padding-left: 12px;
  }
  .stats .stat b {
    font-size: 21px;
  }
  .admin-controls .segments {
    justify-content: flex-start;
  }
  .admin-controls .segment {
    padding: 10px;
  }
  .catalog-editor {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .catalog-editor > img {
    width: 130px;
  }
  .editor-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .variant-editor {
    grid-template-columns: 1fr 100px 32px;
    gap: 8px;
  }
  .variant-editor .input {
    font-size: 13px;
    padding: 10px;
  }
  .dialog-head {
    padding: 14px 16px;
  }
  .dialog-head h2 {
    font-size: 16px;
  }
  .dialog-body {
    padding: 16px;
  }
  .dialog-actions {
    flex-direction: column;
  }
  .key-value {
    gap: 14px;
  }
  .key-value span:last-child {
    max-width: 65%;
  }
  #toast {
    bottom: 90px;
  }
  .error-page {
    margin: 50px auto;
  }
  .notice {
    font-size: 12px;
  }
  .empty {
    padding: 44px 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
