.admin-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 12%, #f0dfd3 0, transparent 30%),
    radial-gradient(circle at 92% 78%, #e8dfce 0, transparent 27%),
    #f6f1e8;
}
.admin-header {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px max(4%, calc((100% - 1280px) / 2));
  border-bottom: 1px solid #d5cec2;
  background: #fbf8f2e8;
  backdrop-filter: blur(10px);
}
.admin-brand img { display: block; width: min(174px, 42vw); height: auto; }
.admin-header__right { display: flex; align-items: center; gap: 18px; }
.admin-header__home, .admin-identity { color: #675c52; font-size: 11px; }
.admin-header__home:hover { text-decoration: underline; text-underline-offset: 4px; }
.admin-identity { color: #70463f; font-weight: 700; }
.admin-text-button {
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: #70463f;
  font-size: 11px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.admin-gate {
  width: min(1140px, calc(100% - 48px));
  min-height: calc(100vh - 76px);
  margin: 0 auto;
  padding: 70px 0;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(390px, 1fr);
  align-items: center;
  gap: clamp(45px, 8vw, 110px);
}
.admin-gate__welcome { position: relative; padding: 10px 0 42px; }
.admin-gate__welcome h1, .admin-dashboard__intro h1, .admin-dashboard__intro h2 { margin: 27px 0 22px; font-size: clamp(54px, 7vw, 88px); line-height: .96; }
.admin-gate__welcome h1 em, .admin-dashboard__intro h1 em, .admin-dashboard__intro h2 em { color: #8d5d50; }
.admin-gate__welcome > p:last-of-type { max-width: 430px; color: #554e48; font-size: 15px; line-height: 1.8; }
.admin-gate__mark { display: block; margin-top: 40px; color: #9c5260; font-size: 40px; }
.admin-card {
  position: relative;
  padding: clamp(26px, 4vw, 46px);
  border: 1px solid #d7cdbf;
  border-radius: 5px;
  background: #fcfaf6;
  box-shadow: 9px 9px 0 #e6ddd0;
}
.admin-card h2 { margin: 10px 0 12px; font-size: clamp(32px, 4vw, 43px); letter-spacing: -.035em; }
.admin-card__intro { margin: 0 0 25px; color: #655d55; font-size: 13px; line-height: 1.65; }
.admin-notice {
  margin-bottom: 22px;
  padding: 14px 15px;
  border-left: 3px solid #9c5260;
  background: #f5e9e3;
  font-size: 12px;
  line-height: 1.6;
}
.admin-notice p { margin: 5px 0 0; }
.admin-notice--warning { border-left-color: #b38326; background: #f8f0df; }
.admin-label, .admin-filter-label {
  display: block;
  margin: 18px 0 8px;
  font: 9px "DM Mono", monospace;
  letter-spacing: .1em;
}
.admin-input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #b9afa2;
  border-radius: 3px;
  outline: none;
  background: #fffdfa;
  color: #24211e;
  font: 13px "DM Sans", sans-serif;
}
.admin-input:focus { border-color: #70463f; box-shadow: 0 0 0 3px #70463f1c; }
.admin-input::placeholder { color: #9a9188; }
select.admin-input { cursor: pointer; }
.admin-textarea { min-height: 110px; resize: vertical; line-height: 1.55; }
.admin-submit { width: 100%; margin-top: 22px; border-color: #70463f; border-radius: 3px; background: #70463f; color: #fffaf3; }
.admin-submit:hover { background: #583732; }
.admin-status { min-height: 18px; margin: 14px 0 0; color: #70463f; font-size: 12px; line-height: 1.5; }
.admin-status--error, .admin-editor__message--error { color: #9c2f35; }
.admin-live-alert {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 24px;
  padding: 13px 15px;
  border: 1px solid #d8c4ad;
  border-left: 4px solid #b38326;
  border-radius: 4px;
  background: #fff8e9;
  color: #554e48;
  box-shadow: 3px 3px 0 #e6ddd0;
}
.admin-live-alert__dot {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #b38326;
  box-shadow: 0 0 0 4px #b3832624;
}
.admin-live-alert__copy { min-width: 0; flex: 1; }
.admin-live-alert__copy strong { display: block; color: #38251f; font-size: 12px; }
.admin-live-alert__copy p { margin: 3px 0 0; color: #71695f; font-size: 11px; line-height: 1.45; }
.admin-live-alert__actions { display: flex; align-items: center; gap: 13px; flex: 0 0 auto; }
.admin-live-alert__dismiss { color: #8a8177; }
.admin-dashboard {
  width: min(1280px, calc(100% - 48px));
  margin: 0 auto;
  padding: 60px 0 90px;
}
.admin-dashboard__intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 35px;
  margin-bottom: 42px;
}
.admin-dashboard__intro h1, .admin-dashboard__intro h2 { margin-bottom: 0; }
.admin-dashboard__intro > p { max-width: 355px; margin: 0 0 5px; color: #655d55; font-size: 13px; line-height: 1.7; }
.admin-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 26px;
  padding-bottom: 10px;
  border-bottom: 1px solid #d5cec2;
}
.admin-tab {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid #b9a998;
  border-radius: 999px;
  background: transparent;
  color: #514842;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.admin-tab--active { border-color: #70463f; background: #70463f; color: #fffaf3; }
.admin-tab__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 17px;
  height: 17px;
  margin-left: 6px;
  padding: 0 4px;
  border-radius: 99px;
  background: #f3eadf;
  color: #70463f;
  font: 9px "DM Mono", monospace;
}
.admin-tab--active .admin-tab__badge { background: #fffaf3; }
.admin-panel {
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid #d7cdbf;
  border-radius: 5px;
  background: #fcfaf6e8;
  box-shadow: 6px 6px 0 #e6ddd0;
}
.admin-panel__heading, .admin-editor__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}
.admin-panel__heading h2, .admin-editor__heading h3 { margin: 6px 0 0; font: 600 clamp(24px, 3vw, 34px) "Playfair Display", serif; letter-spacing: -.02em; }
.admin-panel__actions { display: flex; align-items: center; gap: 12px; }
.admin-panel__count { color: #746b61; font: 9px "DM Mono", monospace; white-space: nowrap; }
.admin-small-button { min-height: 39px; padding: 0 14px; border-radius: 3px; font-size: 10px; white-space: nowrap; }
.admin-filter-label { margin: 0; color: #746b61; }
.admin-filter { min-width: 150px; width: auto; min-height: 39px; font-size: 11px; }
.admin-editor {
  margin: 28px 0;
  padding: 22px;
  border: 1px solid #d8c4ad;
  border-radius: 4px;
  background: #f8efe4;
}
.admin-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.admin-form-field--wide { grid-column: 1 / -1; }
.admin-label-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.admin-label-row .admin-label { margin-bottom: 0; }
.admin-textarea--compact { min-height: 90px; }
.admin-field-hint { margin: 7px 0 0; color: #8a8177; font-size: 10px; line-height: 1.5; }
.admin-product-images { display: grid; gap: 10px; margin-top: 8px; }
.admin-product-image {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 84px auto;
  align-items: end;
  gap: 10px;
  padding: 10px;
  border: 1px solid #d8c4ad;
  border-radius: 3px;
  background: #fffaf3;
}
.admin-product-image__field { min-width: 0; }
.admin-product-image__label {
  display: block;
  margin-bottom: 5px;
  color: #746b61;
  font: 8px "DM Mono", monospace;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.admin-product-image__preview-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 58px;
  overflow: hidden;
  border: 1px solid #d8c4ad;
  border-radius: 3px;
  background: #f4e7db;
}
.admin-product-image__preview {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.admin-product-image__remove {
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid #b9a998;
  border-radius: 3px;
  background: transparent;
  color: #70463f;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}
.admin-product-image__remove:hover { background: #f4e7db; }
.admin-color-options { display: grid; gap: 10px; margin-top: 8px; }
.admin-color-option {
  display: grid;
  grid-template-columns: minmax(120px, 1.2fr) 54px 54px 80px auto;
  align-items: end;
  gap: 8px;
  padding: 10px;
  border: 1px solid #d8c4ad;
  border-radius: 3px;
  background: #fffaf3;
}
.admin-color-option__field { min-width: 0; }
.admin-color-option__field label {
  display: block;
  margin-bottom: 5px;
  color: #746b61;
  font: 8px "DM Mono", monospace;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.admin-color-option input[type="text"],
.admin-color-option input[type="number"] {
  width: 100%;
  min-height: 36px;
  padding: 7px 8px;
  border: 1px solid #b9afa2;
  border-radius: 3px;
  background: #fffdfa;
  color: #24211e;
  font: 12px "DM Sans", sans-serif;
}
.admin-color-option input[type="color"] {
  width: 100%;
  height: 36px;
  padding: 3px;
  border: 1px solid #b9afa2;
  border-radius: 3px;
  background: #fffdfa;
  cursor: pointer;
}
.admin-color-option__preview {
  display: block;
  width: 100%;
  height: 36px;
  margin-bottom: 6px;
  border: 1px solid #b9afa2;
  border-radius: 3px;
}
.admin-color-option__remove {
  min-height: 36px;
  padding: 0 8px;
  border: 1px solid #b9a998;
  border-radius: 3px;
  background: transparent;
  color: #70463f;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}
.admin-color-option__remove:hover { background: #f4e7db; }
.admin-checkbox-field { display: flex; align-items: end; padding-bottom: 9px; }
.admin-checkbox-field label { display: flex; align-items: center; gap: 8px; color: #554e48; font-size: 12px; font-weight: 600; }
.admin-checkbox-field input { width: 16px; height: 16px; accent-color: #70463f; }
.admin-editor__footer { display: flex; align-items: center; gap: 10px; margin-top: 20px; }
.admin-editor__message { min-height: 18px; margin: 15px 0 0; color: #496143; font-size: 12px; }
.admin-list { display: grid; gap: 10px; margin-top: 24px; }
.admin-empty {
  padding: 24px;
  border: 1px dashed #cbbdaf;
  color: #71695f;
  font-size: 12px;
  line-height: 1.6;
}
.admin-list-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 16px;
  padding: 15px;
  border: 1px solid #e1d9cf;
  border-radius: 3px;
  background: #fffdfa;
}
.admin-list-row__main { min-width: 0; }
.admin-list-row__title { overflow: hidden; margin: 0; color: #38251f; font: 600 18px "Playfair Display", serif; text-overflow: ellipsis; white-space: nowrap; }
.admin-list-row__meta { margin: 5px 0 0; color: #71695f; font-size: 10px; line-height: 1.5; }
.admin-list-row__description { max-width: 680px; margin: 7px 0 0; color: #554e48; font-size: 11px; line-height: 1.5; }
.admin-list-row__state { padding: 4px 7px; border-radius: 99px; background: #edf2e8; color: #496143; font: 8px "DM Mono", monospace; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.admin-list-row__state--off { background: #f2e5e2; color: #8a3b45; }
.admin-list-row__action { min-height: 34px; padding: 0 10px; border: 1px solid #b9a998; border-radius: 3px; background: transparent; color: #70463f; font-size: 10px; font-weight: 700; cursor: pointer; }
.admin-list-row__action:hover { background: #f4e7db; }
.admin-orders-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, .9fr); align-items: start; gap: 22px; }
.admin-orders-layout .admin-list { margin-top: 24px; }
.admin-order-row { display: grid; gap: 7px; padding: 16px; border: 1px solid #e1d9cf; border-radius: 3px; background: #fffdfa; }
.admin-order-row__top { display: flex; justify-content: space-between; gap: 12px; }
.admin-order-row__number { color: #38251f; font: 600 15px "DM Mono", monospace; }
.admin-order-row__amount { color: #8a3b45; font-weight: 700; }
.admin-order-row__meta, .admin-order-row__items { margin: 0; color: #71695f; font-size: 10px; line-height: 1.5; }
.admin-order-row__items { color: #554e48; }
.admin-order-row__payment { margin: 0; color: #70463f; font-size: 10px; line-height: 1.5; }
.admin-status-pill { display: inline-block; width: max-content; padding: 4px 7px; border-radius: 99px; background: #f3eadf; color: #70463f; font: 8px "DM Mono", monospace; letter-spacing: .05em; text-transform: uppercase; }
.admin-order-row__note { margin: 0; padding: 8px; border-left: 2px solid #b38326; background: #fbf4e5; color: #655d55; font-size: 10px; line-height: 1.5; }
.admin-order-customer {
  margin: 18px 0 4px;
  padding: 13px;
  border: 1px solid #e1d9cf;
  border-radius: 3px;
  background: #fffdfa;
  color: #554e48;
  font-size: 11px;
  line-height: 1.65;
}
.admin-order-customer strong { color: #38251f; }
.admin-order-note { margin: 18px 0 0; padding: 11px; border-left: 3px solid #b38326; background: #fbf4e5; color: #655d55; font-size: 11px; line-height: 1.55; }
.admin-payment-review {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 18px 0 4px;
  padding: 13px;
  border: 1px solid #d8c4ad;
  border-left: 3px solid #b38326;
  border-radius: 3px;
  background: #fbf4e5;
}
.admin-payment-review__label {
  display: block;
  color: #746b61;
  font: 8px "DM Mono", monospace;
  letter-spacing: .06em;
}
.admin-payment-review strong { display: block; margin-top: 5px; color: #38251f; font-size: 13px; }
.admin-payment-review p { margin: 4px 0 0; color: #655d55; font-size: 11px; line-height: 1.45; }
.admin-notification-list { display: grid; gap: 10px; max-width: 860px; }
.admin-notification { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; padding: 14px; border: 1px solid #ded5c9; border-radius: 6px; background: #fffdfa; }
.admin-notification--unread { border-color: #b38326; background: #fffaf3; }
.admin-notification__icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #70463f; color: #fffdfa; font: 600 15px "DM Mono", monospace; }
.admin-notification__body strong { color: #38251f; font-size: 13px; }
.admin-notification__body p { margin: 4px 0; color: #655d55; font-size: 11px; line-height: 1.45; }
.admin-notification__body small { color: #8d8377; font: 9px "DM Mono", monospace; letter-spacing: .04em; }
.admin-order-total-box { display: flex; flex-direction: column; justify-content: end; min-height: 44px; padding: 8px 11px; border: 1px solid #d8c4ad; border-radius: 3px; background: #fffdfa; }
.admin-order-total-box span { color: #746b61; font: 8px "DM Mono", monospace; letter-spacing: .06em; }
.admin-order-total-box strong { margin-top: 3px; color: #8a3b45; font-size: 19px; }
.admin-editor--order { position: sticky; top: 20px; margin-top: 24px; }
@media (max-width: 900px) {
  .admin-gate { grid-template-columns: 1fr; gap: 24px; padding: 48px 0 60px; }
  .admin-gate__welcome { padding-bottom: 0; }
  .admin-dashboard__intro { display: block; }
  .admin-dashboard__intro > p { margin-top: 24px; }
  .admin-live-alert { align-items: flex-start; }
  .admin-orders-layout { grid-template-columns: 1fr; }
  .admin-editor--order { position: static; }
}
@media (max-width: 620px) {
  .admin-header { min-height: 68px; padding: 8px 18px; }
  .admin-header__right { gap: 9px; }
  .admin-header__home { display: none; }
  .admin-identity { max-width: 145px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .admin-gate, .admin-dashboard { width: min(100% - 32px, 520px); }
  .admin-gate__welcome h1, .admin-dashboard__intro h1, .admin-dashboard__intro h2 { font-size: clamp(50px, 14vw, 70px); }
  .admin-card { padding: 24px 20px; box-shadow: 5px 5px 0 #e6ddd0; }
  .admin-dashboard { padding: 36px 0 60px; }
  .admin-panel { padding: 18px 14px; }
  .admin-panel__heading { display: block; }
  .admin-panel__actions { flex-wrap: wrap; margin-top: 16px; }
  .admin-live-alert { display: grid; grid-template-columns: auto minmax(0, 1fr); }
  .admin-live-alert__actions { grid-column: 2; justify-content: flex-start; }
  .admin-payment-review { align-items: flex-start; flex-direction: column; }
  .admin-tabs { overflow-x: auto; }
  .admin-form-grid { grid-template-columns: 1fr; }
  .admin-form-field--wide { grid-column: auto; }
  .admin-product-image { grid-template-columns: minmax(0, 1fr) 72px; }
  .admin-product-image__field { grid-column: 1 / -1; }
  .admin-product-image__remove { grid-column: 1 / -1; width: 100%; min-height: 38px; }
  .admin-color-option { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-color-option > div:last-child { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; }
  .admin-color-option__preview { flex: 1; margin-bottom: 0; }
  .admin-color-option__remove { flex: 0 0 auto; }
  .admin-list-row { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
  .admin-list-row__state { grid-column: 1; grid-row: 2; width: max-content; }
  .admin-list-row__action { grid-column: 2; grid-row: 1 / span 2; }
  .admin-orders-layout .admin-list { margin-top: 18px; }
}
