:root {
  --admin-bg: #f7f3f7;
  --admin-surface: #fff;
  --admin-border: #eee5ee;
  --admin-muted: #978294;
  --admin-ink: #4b2c43;
  --admin-accent: #773a61;
  --admin-pink: #f4deec;
}
body.admin-body {
  background: var(--admin-bg);
  color: var(--admin-ink);
  font-size: 13px;
  line-height: 1.6;
}
body.admin-body svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.5;
}
.admin-body button {
  font-size: inherit;
}
.admin-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 240px;
  background: #fff;
  border-right: 1px solid var(--admin-border);
  z-index: 30;
  padding: 34px 22px 22px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.admin-sidebar > .wordmark {
  font-size: 36px;
  align-self: flex-start;
  margin-left: 10px;
}
.admin-sidebar > .wordmark span {
  font-size: 8px;
  letter-spacing: 0.1em;
}
.admin-store-switch {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 10px;
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  margin-top: 37px;
  background: #fbf8fb;
}
.store-avatar {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 9px;
  background: linear-gradient(130deg, #edb1d2, #f1d1b6);
  font: 500 25px/1 var(--serif);
}
.admin-store-switch strong {
  display: block;
  font-size: 10px;
  font-weight: 550;
}
.admin-store-switch small {
  font-size: 9px;
  display: block;
  color: var(--admin-muted);
}
.online-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #83a98a;
  display: block;
  margin-left: auto;
}
.sidebar-label {
  font-size: 9px;
  color: var(--admin-muted);
  margin: 31px 12px 12px;
}
.admin-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.admin-sidebar nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 10px;
  padding: 12px 13px;
  color: #8c7387;
  font-size: 11px;
  position: relative;
}
.admin-sidebar nav svg {
  width: 18px;
  height: 18px;
}
.admin-sidebar nav [aria-current="page"] {
  background: #f2e4ed;
  color: var(--admin-accent);
  font-weight: 600;
}
.admin-sidebar nav small {
  margin-left: auto;
  min-width: 19px;
  height: 19px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: #e2c7d9;
  font-size: 9px;
  color: #773a61;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 25px;
}
.sidebar-bottom > a,
.sidebar-bottom > button {
  display: flex;
  gap: 11px;
  align-items: center;
  font-size: 10px;
  padding: 10px 13px;
  background: none;
  color: #8d7388;
}
.sidebar-bottom svg {
  width: 17px;
  height: 17px;
}
.local-mode {
  margin-top: 19px;
  padding: 13px;
  background: #fbf4f9;
  border: 1px dashed #e5cfde;
  border-radius: 10px;
  font-size: 9px;
  color: #a08097;
  line-height: 1.8;
}
.local-mode strong {
  display: block;
  font-size: 9px;
  font-weight: 500;
  color: #886078;
}
.admin-workspace {
  margin-left: 240px;
  min-height: 100vh;
}
.admin-topbar {
  height: 80px;
  border-bottom: 1px solid var(--admin-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 20px 37px;
  background: #ffffffb5;
}
.admin-topbar > span {
  font-size: 10px;
  color: var(--admin-muted);
}
.admin-topbar > div {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
}
.admin-topbar > div > a {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-right: 15px;
  color: #8b6b83;
  font-size: 10px;
}
.admin-topbar > div > a svg {
  width: 15px;
  height: 15px;
}
.admin-user-avatar {
  width: 33px;
  height: 33px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #eddae6;
  font-size: 11px;
  font-weight: 550;
}
.admin-topbar > div > span:last-child {
  font-size: 10px;
  line-height: 1.6;
}
.admin-topbar small {
  display: block;
  font-size: 8px;
  color: var(--admin-muted);
}
.admin-menu {
  display: none;
}
#admin-main {
  padding: 34px 37px 45px;
  max-width: 1640px;
  margin-inline: auto;
  min-height: calc(100vh - 145px);
}
.admin-page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 29px;
}
.admin-page-heading p {
  font-size: 9px;
  color: var(--admin-muted);
  margin-bottom: 14px;
}
.admin-page-heading h1 {
  font-size: 35px;
  line-height: 1.1;
  letter-spacing: -1.3px;
  font-weight: 500;
  max-width: 600px;
}
.admin-page-heading > div > span {
  display: block;
  font-size: 11px;
  color: #9a8092;
  margin-top: 11px;
  line-height: 1.8;
}
.admin-page-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 2px;
  flex-shrink: 0;
}
.admin-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 11px 16px;
  font-size: 10px;
  line-height: 1.4;
  font-weight: 500;
  min-height: 40px;
  transition: transform 160ms var(--ease-out);
  white-space: nowrap;
}
.admin-button svg {
  width: 15px;
  height: 15px;
}
.admin-button.primary {
  background: var(--admin-accent);
  color: #fff;
  box-shadow: 0 3px 8px #773a6114;
  border-color: var(--admin-accent);
}
.admin-button.secondary {
  background: #fff;
  border-color: #dfcfdb;
  color: #79576e;
  box-shadow: none;
}
.admin-button.small {
  font-size: 9px;
  min-height: 34px;
  padding: 8px 10px;
}
.admin-button.wide {
  width: 100%;
}
.period-select {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 9px;
  color: #9a8092;
}
.period-select select {
  background: #fff;
  border: 1px solid #e5d8e2;
  padding: 10px 30px 10px 11px;
  border-radius: 9px;
  font-size: 10px;
  color: #70546a;
  min-height: 40px;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
  margin-bottom: 25px;
}
.metric-card {
  padding: 21px 21px 19px;
  background: #fff;
  border: 1px solid var(--admin-border);
  border-radius: 14px;
  box-shadow: 0 3px 10px #4b2c4303;
}
.metric-card > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 10px;
  color: #9c8096;
}
.metric-card > div svg {
  width: 17px;
  height: 17px;
  color: #ba94ad;
}
.metric-card > strong {
  display: block;
  font: 500 29px/1.1 var(--display);
  letter-spacing: -1.2px;
  margin-top: 21px;
  white-space: nowrap;
}
.metric-card > small {
  font-size: 8px;
  color: #a28b9c;
  display: block;
  margin-top: 12px;
  line-height: 1.6;
}
.dashboard-middle {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
.admin-panel {
  background: white;
  border: 1px solid var(--admin-border);
  border-radius: 15px;
  padding: 23px;
  box-shadow: 0 2px 8px #4b2c4303;
  min-width: 0;
}
.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.panel-heading h2 {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0;
  font-weight: 550;
  line-height: 1.5;
}
.panel-heading p {
  font-size: 9px;
  color: var(--admin-muted);
  margin-top: 5px;
  line-height: 1.8;
}
.panel-heading > a {
  font-size: 9px;
  color: #99718b;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.panel-heading > a svg {
  width: 13px;
  height: 13px;
}
.panel-heading > svg {
  width: 17px;
  height: 17px;
  color: #b189a4;
}
.sales-chart {
  height: 235px;
  display: flex;
  gap: 15px;
  padding-top: 18px;
}
.chart-scale {
  font-size: 7px;
  color: #b39aaa;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-bottom: 29px;
  min-width: 55px;
  text-align: right;
}
.chart-plot {
  flex: 1;
  position: relative;
  min-width: 0;
}
.chart-grid-lines {
  position: absolute;
  inset: 0 0 27px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.chart-grid-lines i {
  border-top: 1px dashed #f0e5ed;
  width: 100%;
}
.chart-columns {
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  gap: 12px;
  padding-bottom: 27px;
}
.chart-column {
  height: 100%;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-direction: column;
  position: relative;
  max-width: 42px;
}
.chart-bar {
  min-height: 2px;
  width: 100%;
  border-radius: 7px 7px 2px 2px;
  background: linear-gradient(#c583af, #7b3d66);
}
.chart-column:nth-child(odd) .chart-bar {
  background: linear-gradient(#ead4e3, #cd9dbd);
}
.chart-column > small {
  position: absolute;
  bottom: -25px;
  font-size: 7px;
  color: #a58b9c;
  white-space: nowrap;
}
.chart-amount {
  font-size: 6px;
  color: #a78b9e;
  margin-bottom: 7px;
  white-space: nowrap;
}
.top-product {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 0;
  border-bottom: 1px solid #f3ebf1;
}
.top-product:last-child {
  border: 0;
}
.top-product > span {
  font-size: 8px;
  color: #b49bad;
  width: 9px;
  flex-shrink: 0;
}
.top-product img {
  width: 38px;
  height: 46px;
  object-fit: cover;
  border-radius: 7px;
}
.top-product > div {
  flex: 1;
  min-width: 0;
}
.top-product strong {
  font-size: 9px;
  font-weight: 550;
  display: block;
  line-height: 1.5;
}
.top-product small {
  font-size: 8px;
  color: #a58b9c;
  display: block;
  margin-top: 5px;
}
.top-product b {
  font-size: 9px;
  white-space: nowrap;
  font-weight: 500;
}
.stock-alert {
  display: flex;
  align-items: center;
  gap: 13px;
  background: #f9efe4;
  border: 1px solid #edddcb;
  border-radius: 11px;
  padding: 15px 20px;
  font-size: 10px;
  color: #a17f55;
  margin-bottom: 24px;
}
.stock-alert > svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.stock-alert strong {
  font-weight: 600;
}
.stock-alert > a {
  margin-left: auto;
  font-size: 9px;
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.stock-alert > a svg {
  width: 14px;
  height: 14px;
}
.table-scroll {
  overflow: auto;
  max-width: 100%;
}
.admin-panel table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 10px;
  white-space: nowrap;
}
.admin-panel th {
  font-size: 8px;
  font-weight: 500;
  color: #a68b9e;
  padding: 12px 13px;
  border-bottom: 1px solid var(--admin-border);
  background: #fcfafc;
}
.admin-panel td {
  padding: 16px 13px;
  border-bottom: 1px solid #f2eaf0;
  color: #8a6c80;
}
.admin-panel tbody > tr:last-child td {
  border: 0;
}
.recent-orders {
  padding-bottom: 10px;
}
.recent-orders .panel-heading {
  margin-bottom: 13px;
}
.order-number {
  background: none;
  padding: 0;
  color: #80516e;
  font-size: 11px;
  font-weight: 600;
}
.table-sub {
  display: block;
  font-size: 8px;
  color: #af96a6;
  margin-top: 5px;
}
.customer-name {
  font-size: 10px;
  font-weight: 500;
  color: #745569;
}
.table-money {
  font-weight: 550;
  letter-spacing: -0.1px;
  color: #65435c !important;
}
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 8px;
  line-height: 1.4;
  padding: 5px 8px;
  border-radius: 6px;
  background: #f3e8ef;
  color: #976a85;
  white-space: nowrap;
}
.status-badge i {
  display: block;
  width: 4px;
  height: 4px;
  background: currentColor;
  border-radius: 50%;
}
.status-badge.processing {
  background: #f6e7ce;
  color: #ad8243;
}
.status-badge.pending {
  background: #f4ebdf;
  color: #a2835b;
}
.status-badge.shipped {
  background: #e9e7f5;
  color: #8b7ab3;
}
.status-badge.completed,
.status-badge.published {
  background: #e6f0e9;
  color: #6d957b;
}
.status-badge.cancelled,
.status-badge.archived {
  background: #f5e5e9;
  color: #b77a8a;
}
.status-badge.draft {
  background: #f2edf3;
  color: #aa8fa5;
}
.table-icon {
  width: 31px;
  height: 33px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #ece1e9;
  border-radius: 8px;
  background: #fff;
  color: #a7839b;
}
.table-icon svg {
  width: 14px;
  height: 14px;
}
.admin-filters {
  display: flex;
  gap: 14px;
  align-items: center;
  padding-bottom: 22px;
  flex-wrap: wrap;
}
.admin-search {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid #e6d9e2;
  border-radius: 9px;
  padding: 9px 12px;
  max-width: 400px;
  flex: 1;
  min-width: 200px;
}
.admin-search svg {
  width: 16px;
  height: 16px;
  color: #b192a6;
}
.admin-search input {
  border: 0;
  outline: none;
  min-width: 0;
  flex: 1;
  font-size: 10px;
  background: none;
  padding: 3px 0;
}
.admin-filters > select {
  min-height: 39px;
  border: 1px solid #e6d9e2;
  background: white;
  border-radius: 9px;
  font-size: 9px;
  padding: 9px 27px 9px 11px;
  color: #91728a;
}
.low-stock-filter {
  font-size: 9px;
  color: #a08298;
  display: flex;
  align-items: center;
  gap: 7px;
}
.low-stock-filter input {
  accent-color: var(--admin-accent);
  width: 13px;
  height: 13px;
}
.admin-list-tabs {
  display: flex;
  gap: 24px;
  align-items: center;
  font-size: 9px;
  color: #a88a9d;
  margin-bottom: 22px;
}
.admin-list-tabs b {
  font-weight: 500;
  color: #735369;
}
.list-panel {
  padding: 22px;
}
.product-table-name {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 180px;
}
.product-table-name > img {
  width: 39px;
  height: 49px;
  object-fit: cover;
  border-radius: 7px;
  flex-shrink: 0;
}
.product-table-name strong {
  display: block;
  font-size: 10px;
  font-weight: 500;
  color: #745369;
}
.product-table-name small {
  display: block;
  font-size: 8px;
  color: #b398a9;
  margin-top: 5px;
}
.stock-value {
  font-size: 9px;
  color: #839782;
}
.stock-value.low {
  color: #b78b59;
}
.table-muted {
  font-size: 9px;
  color: #b094a8 !important;
}
.table-footer {
  padding: 20px 13px 2px;
  font-size: 8px;
  color: #ac91a3;
}
.empty-table {
  text-align: center;
  padding: 45px 20px !important;
  font-size: 11px;
  color: #ac91a3;
}
.admin-footer {
  padding: 19px 37px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--admin-border);
  font-size: 8px;
  color: #b39aac;
}
.editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 24px;
  align-items: start;
}
.editor-panel {
  margin-bottom: 23px;
  padding: 25px;
}
.editor-panel > h2,
.editor-panel .panel-heading h2 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 550;
  letter-spacing: 0;
  margin-bottom: 23px;
}
.editor-panel .panel-heading {
  align-items: center;
}
.editor-panel .panel-heading h2 {
  margin-bottom: 0;
}
.admin-field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 21px 18px;
}
.admin-field-grid .full-field {
  grid-column: 1/-1;
}
.admin-body
  label:not(.period-select):not(.admin-search):not(.low-stock-filter):not(
    .upload-button
  ) {
  font-size: 10px;
  color: #8e6c84;
}
.admin-field-grid label,
.editor-panel > label,
.settings-form label,
#coupon-editor > label,
#order-update-form > label,
#admin-login-form > label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.admin-body input:not([type="checkbox"]):not([type="color"]),
.admin-body select,
.admin-body textarea {
  border: 1px solid #deceda;
  border-radius: 8px;
  padding: 11px 12px;
  background: #fff;
  font-size: 11px;
  width: 100%;
  min-width: 0;
  outline-offset: 3px;
}
.admin-search input:not([type="checkbox"]) {
  border: 0;
  padding: 3px 0;
  border-radius: 0;
}
.admin-body textarea {
  resize: vertical;
  min-height: 70px;
  line-height: 1.8;
}
.admin-help {
  font-size: 9px;
  color: #af91a4;
  line-height: 1.9;
  margin-top: 16px;
}
.variant-table th,
.variant-table td {
  padding: 10px 6px;
}
.variant-table input:not([type="color"]) {
  padding: 9px;
  font-size: 10px;
  max-width: 140px;
  min-width: 60px;
}
.variant-table td:first-child input {
  max-width: 70px;
}
.variant-table td:nth-child(4) input {
  max-width: 80px;
}
.variant-table input[type="color"] {
  width: 32px;
  height: 32px;
  border: 1px solid #e8dbe4;
  padding: 3px;
  border-radius: 6px;
  background: white;
}
.variant-table .table-icon {
  width: 28px;
  height: 30px;
}
.editor-panel > .admin-checkbox {
  display: flex;
  flex-direction: row !important;
  align-items: center;
  gap: 8px;
  margin-block: 20px;
  font-size: 9px !important;
}
.admin-checkbox input {
  accent-color: var(--admin-accent);
  width: 13px;
  height: 13px;
  margin: 0;
  flex-shrink: 0;
}
.admin-error {
  font-size: 10px;
  line-height: 1.8;
  color: #b34168;
}
.admin-error:not(:empty) {
  padding-block: 12px;
}
.editor-preview {
  font-size: 9px;
  display: block;
  text-align: center;
  margin-top: 15px;
  color: #9b718b;
}
.archive-button {
  display: block;
  background: none;
  color: #b47c92;
  font-size: 9px !important;
  text-decoration: underline;
  text-underline-offset: 3px;
  margin: 18px auto 0;
}
.product-image-editor > img {
  display: block;
  width: 100%;
  aspect-ratio: 0.85;
  object-fit: cover;
  border-radius: 11px;
  background: #f3e8ef;
  margin-bottom: 21px;
}
.product-image-editor > label {
  font-size: 9px;
}
.product-image-editor select {
  font-size: 9px;
}
.upload-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px dashed #d6bace;
  border-radius: 8px;
  padding: 12px;
  font-size: 9px;
  color: #a17d95;
  cursor: pointer;
  margin-top: 17px;
}
.upload-button svg {
  width: 14px;
  height: 14px;
}
.admin-inline-summary {
  display: flex;
  gap: 25px;
  font-size: 10px;
  color: #9b7e93;
  margin-bottom: 23px;
}
.coupon-code {
  font-size: 11px;
  font-weight: 550;
  letter-spacing: 0.04em;
  color: #865472;
}
.page-note {
  margin-top: 24px;
}
.category-revenue {
  padding-block: 16px;
}
.category-revenue > div {
  margin-bottom: 29px;
}
.category-revenue > div > span {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: #97748c;
  margin-bottom: 12px;
}
.category-revenue b {
  font-size: 10px;
  font-weight: 500;
  color: #78566d;
}
.category-revenue i {
  display: block;
  height: 8px;
  border-radius: 5px;
  background: #f6ecf3;
  overflow: hidden;
}
.category-revenue em {
  display: block;
  height: 100%;
  border-radius: 5px;
  background: linear-gradient(90deg, #e6b8d5, #aa6e94);
}
.settings-form {
  max-width: 900px;
}
.settings-form > .admin-button {
  margin-top: 3px;
}
.admin-toast {
  position: fixed;
  bottom: 24px;
  left: calc(50% + 120px);
  transform: translate(-50%, 15px);
  z-index: 70;
  padding: 13px 20px;
  background: #6b3b59;
  color: white;
  border-radius: 11px;
  box-shadow: 0 8px 25px #5b304927;
  font-size: 11px;
  opacity: 0;
  pointer-events: none;
  transition:
    transform 160ms var(--ease-out),
    opacity 160ms ease;
}
.admin-toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
#admin-dialog {
  max-width: 600px;
  width: calc(100% - 35px);
  max-height: 90dvh;
  overflow: auto;
  border: 1px solid #fff;
  background: #fff;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 35px 100px #48213830;
}
#admin-dialog::backdrop {
  background: #48213866;
  backdrop-filter: blur(5px);
}
.admin-dialog-heading {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  align-items: center;
  margin-bottom: 22px;
}
.admin-dialog-heading p {
  font-size: 9px;
  color: #ac8da1;
  margin-bottom: 5px;
}
.admin-dialog-heading h2 {
  font: 500 29px/1.1 var(--display);
  letter-spacing: -1px;
}
.admin-dialog-heading .table-icon {
  width: 35px;
  height: 35px;
}
.order-detail-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  border-block: 1px solid var(--admin-border);
  padding-block: 17px;
}
.order-detail-header > span:last-child {
  font-size: 9px;
  color: #aa8b9e;
}
.order-customer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  padding-block: 25px;
}
.order-customer h3,
#order-update-form h3,
.order-notes h3 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 550;
  letter-spacing: 0;
  margin-bottom: 12px;
}
.order-customer strong {
  font-size: 11px;
  font-weight: 500;
  display: block;
  color: #826178;
}
.order-customer span {
  font-size: 10px;
  line-height: 1.8;
  color: #a38199;
  display: block;
  overflow-wrap: anywhere;
}
.order-modal-items {
  border-block: 1px solid var(--admin-border);
  padding-block: 4px;
}
.order-modal-items article {
  display: flex;
  gap: 13px;
  align-items: center;
  margin-block: 14px;
}
.order-modal-items img {
  width: 44px;
  height: 58px;
  object-fit: cover;
  border-radius: 7px;
}
.order-modal-items article > div {
  flex: 1;
}
.order-modal-items strong {
  display: block;
  font-size: 11px;
  font-weight: 500;
}
.order-modal-items span {
  display: block;
  font-size: 9px;
  color: #ad8da2;
  margin-top: 5px;
}
.order-modal-items b {
  font-size: 10px;
  font-weight: 500;
}
.order-totals {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 11px;
  margin: 22px 0 27px;
  padding-left: 45%;
}
.order-totals > span,
.order-totals > strong {
  display: flex;
  justify-content: space-between;
  gap: 25px;
  font-size: 10px;
  color: #9c7890;
}
.order-totals b {
  font-weight: 500;
  color: #79536c;
}
.order-totals > strong {
  border-top: 1px solid var(--admin-border);
  padding-top: 13px;
  font-weight: 500;
  font-size: 12px;
  color: var(--admin-ink);
}
#order-update-form {
  border-top: 1px solid var(--admin-border);
  padding-top: 23px;
}
#order-update-form > label {
  margin-bottom: 17px;
}
#order-update-form > .admin-button {
  margin-top: 18px;
}
.order-notes {
  border-top: 1px solid var(--admin-border);
  margin-top: 25px;
  padding-top: 23px;
}
.order-notes p {
  font-size: 10px;
  color: #9b7b92;
  padding: 12px 15px;
  background: #faf5f9;
  border-radius: 8px;
  margin-bottom: 10px;
  line-height: 1.8;
}
.order-notes small {
  display: block;
  color: #bda1b3;
  font-size: 8px;
  margin-top: 7px;
}
#coupon-editor > label {
  margin-block: 18px;
}
#coupon-editor > .admin-field-grid {
  margin-top: 21px;
}
#coupon-editor > .admin-checkbox {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  margin-block: 25px;
}
.admin-empty-note {
  font-size: 11px;
  line-height: 1.8;
  text-align: center;
  color: var(--admin-muted);
  padding: 50px 20px;
}
.admin-loading {
  padding: 130px 30px;
  text-align: center;
  font-size: 13px;
  color: var(--admin-muted);
}
.admin-loading h1 {
  font-size: 28px;
  line-height: 1.3;
  letter-spacing: -1px;
}
.admin-loading p {
  margin-block: 25px;
}
.admin-login {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
}
.login-back {
  position: absolute;
  top: 25px;
  right: 35px;
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 1;
}
.login-back svg {
  width: 15px;
  height: 15px;
  transform: rotate(180deg);
}
.login-brand {
  background:
    radial-gradient(ellipse at 10% 20%, #f2a0cd, transparent 65%),
    linear-gradient(135deg, #edb6d4, #f4c9bd 65%, #f4d897);
  padding: 70px 70px 45px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.login-brand > .wordmark {
  font-size: 43px;
}
.login-brand > .wordmark span {
  font-size: 9px;
}
.login-brand h1 {
  font-size: 69px;
  line-height: 0.98;
  letter-spacing: -3.7px;
  margin-top: auto;
  padding-top: 75px;
}
.login-brand > p {
  font-size: 12px;
  max-width: 330px;
  line-height: 1.9;
  margin-top: 25px;
}
.login-brand > span {
  font-size: 9px;
  margin-top: auto;
  padding-top: 75px;
  opacity: 0.65;
}
.login-form-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 55px;
}
.login-form-wrap > form {
  width: 100%;
  max-width: 360px;
}
.login-icon {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #eedce8;
  color: #986283;
  margin-bottom: 24px;
}
.login-icon svg {
  width: 21px;
  height: 21px;
}
.login-form-wrap h2 {
  font-size: 31px;
  letter-spacing: -1.3px;
  line-height: 1.1;
}
.login-form-wrap h2 + p {
  font-size: 11px;
  color: #a18499;
  margin-top: 13px;
  margin-bottom: 32px;
}
.login-form-wrap label {
  margin-top: 21px;
}
.login-form-wrap input {
  font-size: 12px !important;
  padding: 14px !important;
}
.login-form-wrap > .admin-button {
  margin-top: 20px;
}
.login-form-wrap .wide {
  margin-top: 25px;
  font-size: 11px;
  padding: 14px;
}
.demo-credentials {
  border: 1px dashed #dbc6d6;
  border-radius: 12px;
  margin-top: 28px;
  padding: 17px 19px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: 10px;
  color: #a07c94;
}
.demo-credentials strong {
  font-size: 9px;
  font-weight: 550;
  color: #926580;
  margin-bottom: 10px;
}
.demo-credentials code {
  font: 10px var(--sans);
  margin-top: 5px;
  color: #ad89a0;
}
.demo-credentials > button {
  background: none;
  padding: 0;
  margin-top: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: 9px;
  color: #8b5a7a;
}
.admin-body button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.admin-body .admin-button:active {
  transform: scale(0.98);
}
@media (hover: hover) and (pointer: fine) {
  .admin-sidebar nav a:hover:not([aria-current="page"]) {
    background: #faf3f8;
    color: #8c5a79;
  }
  .admin-button:hover {
    transform: translateY(-1px);
  }
  .admin-button.primary:hover {
    background: #8d4d74;
  }
  .admin-button.secondary:hover {
    background: #fcf6fa;
  }
  .table-icon:hover {
    background: #f6eaf2;
    border-color: #dbbdd0;
  }
  .admin-panel tbody tr:hover {
    background: #fdf9fc;
  }
  .order-number:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
  }
  .product-table-name:hover strong {
    color: #9c5b84;
  }
  .sidebar-bottom > a:hover,
  .sidebar-bottom > button:hover {
    color: #773a61;
  }
  .upload-button:hover {
    background: #fcf7fb;
  }
}
@media (max-width: 1200px) {
  .admin-sidebar {
    width: 215px;
    padding-inline: 17px;
  }
  .admin-workspace {
    margin-left: 215px;
  }
  .admin-topbar {
    padding-inline: 28px;
  }
  #admin-main {
    padding: 29px 28px 38px;
  }
  .admin-page-heading h1 {
    font-size: 30px;
  }
  .admin-page-heading > div > span {
    font-size: 10px;
  }
  .metric-grid {
    gap: 12px;
  }
  .metric-card {
    padding: 18px 16px;
  }
  .metric-card > strong {
    font-size: 25px;
  }
  .metric-card > div {
    font-size: 9px;
  }
  .metric-card > small {
    font-size: 7px;
  }
  .dashboard-middle {
    gap: 18px;
    grid-template-columns: 1.3fr 1fr;
  }
  .admin-panel {
    padding: 20px;
  }
  .top-product {
    gap: 8px;
  }
  .top-product > span {
    display: none;
  }
  .top-product strong {
    font-size: 8px;
  }
  .top-product b {
    font-size: 8px;
  }
  .top-product img {
    width: 33px;
    height: 43px;
  }
  .stock-alert {
    font-size: 9px;
    gap: 10px;
  }
  .stock-alert > a {
    font-size: 8px;
  }
  .admin-footer {
    padding-inline: 28px;
  }
  .admin-toast {
    left: calc(50% + 107px);
  }
  .editor-grid {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 18px;
  }
  .editor-panel {
    padding: 21px;
  }
  .admin-page-actions {
    gap: 10px;
  }
  .period-select {
    gap: 7px;
    font-size: 8px;
  }
  .admin-button {
    font-size: 9px;
    padding-inline: 13px;
  }
  .period-select select {
    font-size: 9px;
    padding-right: 25px;
  }
  .chart-columns {
    gap: 10px;
  }
  .chart-amount {
    font-size: 5px;
  }
  .login-brand {
    padding: 60px 50px 40px;
  }
  .login-brand h1 {
    font-size: 61px;
  }
  .login-form-wrap {
    padding-inline: 45px;
  }
}
@media (max-width: 980px) {
  .admin-sidebar {
    width: 190px;
    padding-inline: 13px;
  }
  .admin-sidebar > .wordmark {
    font-size: 32px;
  }
  .admin-sidebar nav a {
    font-size: 10px;
    gap: 9px;
    padding: 11px 10px;
  }
  .admin-workspace {
    margin-left: 190px;
  }
  .admin-store-switch {
    padding: 11px 8px;
    gap: 8px;
  }
  .admin-store-switch strong {
    font-size: 9px;
  }
  .admin-store-switch small {
    font-size: 8px;
  }
  .store-avatar {
    width: 27px;
    height: 29px;
    font-size: 23px;
  }
  .local-mode {
    font-size: 8px;
    padding: 11px;
  }
  .local-mode strong {
    font-size: 8px;
  }
  .sidebar-bottom > a,
  .sidebar-bottom > button {
    font-size: 9px;
    padding-inline: 10px;
  }
  .admin-topbar {
    padding-inline: 23px;
  }
  .admin-topbar > span {
    display: none;
  }
  .admin-topbar > div {
    margin-left: auto;
  }
  #admin-main {
    padding: 27px 23px 35px;
  }
  .admin-page-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 22px;
    margin-bottom: 25px;
  }
  .admin-page-heading h1 {
    font-size: 32px;
  }
  .admin-page-actions {
    align-self: flex-end;
  }
  .admin-page-heading p {
    margin-bottom: 12px;
  }
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
  }
  .metric-card {
    padding: 20px;
  }
  .metric-card > div {
    font-size: 10px;
  }
  .metric-card > strong {
    font-size: 30px;
  }
  .metric-card > small {
    font-size: 8px;
  }
  .dashboard-middle {
    grid-template-columns: 1fr;
  }
  .top-product strong {
    font-size: 10px;
  }
  .top-product b {
    font-size: 10px;
  }
  .top-product img {
    width: 38px;
    height: 48px;
  }
  .top-product > span {
    display: block;
  }
  .stock-alert {
    flex-wrap: wrap;
    gap: 10px;
  }
  .stock-alert > span {
    flex: 1;
  }
  .stock-alert > a {
    margin-left: 29px;
    flex-basis: 100%;
    font-size: 9px;
  }
  .admin-footer {
    padding-inline: 23px;
    font-size: 7px;
  }
  .admin-toast {
    left: calc(50% + 95px);
  }
  .editor-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .editor-grid > aside {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 20px;
  }
  .product-image-editor > img {
    aspect-ratio: 0.95;
  }
  .admin-filters {
    gap: 12px;
  }
  .admin-search {
    max-width: none;
    flex-basis: 100%;
  }
  .chart-amount {
    font-size: 6px;
  }
  .admin-list-tabs {
    gap: 17px;
    font-size: 8px;
  }
  .login-brand {
    padding: 50px 35px 35px;
  }
  .login-brand h1 {
    font-size: 52px;
  }
  .login-brand > p {
    font-size: 11px;
  }
  .login-form-wrap {
    padding-inline: 30px;
  }
  .login-form-wrap h2 {
    font-size: 28px;
  }
}
@media (max-width: 700px) {
  .admin-sidebar {
    visibility: hidden;
    transform: translateX(-100%);
    width: min(230px, calc(100vw - 44px));
    transition: transform 200ms var(--ease-out), visibility 0s 200ms;
    box-shadow: 15px 0 45px #58223f15;
  }
  .admin-menu-open .admin-sidebar {
    visibility: visible;
    transform: translateX(0);
    transition-delay: 0s;
  }
  .admin-sidebar > .wordmark {
    font-size: 35px;
  }
  .admin-sidebar nav a {
    font-size: 12px;
    padding: 12px;
  }
  .admin-sidebar nav {
    gap: 7px;
  }
  .admin-sidebar .sidebar-label {
    font-size: 10px;
  }
  .admin-sidebar .admin-store-switch strong {
    font-size: 11px;
  }
  .admin-sidebar .admin-store-switch small {
    font-size: 9px;
  }
  .admin-workspace {
    margin-left: 0;
  }
  .admin-topbar {
    height: 68px;
    padding: 14px 20px;
    position: sticky;
    top: 0;
    z-index: 20;
    background: #fff9fcf2;
    backdrop-filter: blur(14px);
  }
  .admin-menu {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 9px;
    border: 1px solid #e6d5e1;
    background: #fff;
    color: #9c7891;
  }
  .admin-topbar > div {
    gap: 10px;
  }
  .admin-topbar > div > a {
    font-size: 9px;
    margin-right: 7px;
  }
  .admin-topbar > div > span:last-child {
    font-size: 9px;
  }
  .admin-topbar small {
    font-size: 7px;
  }
  .admin-user-avatar {
    width: 30px;
    height: 30px;
    font-size: 10px;
  }
  .admin-topbar > div > a svg {
    width: 14px;
    height: 14px;
  }
  #admin-main {
    padding: 23px 19px 35px;
  }
  .admin-page-heading {
    gap: 21px;
    margin-bottom: 23px;
  }
  .admin-page-heading h1 {
    font-size: 30px;
  }
  .admin-page-heading p {
    font-size: 8px;
    margin-bottom: 13px;
  }
  .admin-page-heading > div > span {
    font-size: 11px;
    max-width: 380px;
    margin-top: 12px;
  }
  .admin-page-actions {
    align-self: stretch;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
  }
  .period-select {
    font-size: 9px;
  }
  .period-select select {
    font-size: 10px;
    min-height: 40px;
  }
  .admin-button {
    font-size: 10px;
    min-height: 41px;
    padding: 11px 14px;
  }
  .metric-grid {
    gap: 12px;
    margin-bottom: 20px;
  }
  .metric-card {
    padding: 18px 16px;
    border-radius: 12px;
  }
  .metric-card > div {
    font-size: 9px;
    gap: 8px;
  }
  .metric-card > div svg {
    width: 15px;
    height: 15px;
  }
  .metric-card > strong {
    font-size: 28px;
    letter-spacing: -1px;
    margin-top: 18px;
  }
  .metric-card > small {
    font-size: 7px;
    margin-top: 11px;
    line-height: 1.7;
  }
  .admin-panel {
    padding: 20px;
    border-radius: 13px;
  }
  .dashboard-middle {
    gap: 20px;
    margin-bottom: 20px;
  }
  .panel-heading h2 {
    font-size: 12px;
  }
  .panel-heading p {
    font-size: 9px;
  }
  .panel-heading > a {
    font-size: 8px;
  }
  .sales-chart {
    height: 220px;
    gap: 9px;
    padding-top: 15px;
  }
  .chart-scale {
    min-width: 44px;
    font-size: 6px;
  }
  .chart-columns {
    min-width: 0;
    flex: 1;
    gap: clamp(4px, 1.1vw, 11px);
  }
  .chart-column {
    min-width: 0;
  }
  .chart-amount {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 6px;
  }
  .chart-column > small {
    font-size: 7px;
  }
  .top-product {
    gap: 11px;
    padding-block: 14px;
  }
  .top-product > span {
    font-size: 9px;
  }
  .top-product img {
    width: 39px;
    height: 49px;
  }
  .top-product strong {
    font-size: 10px;
  }
  .top-product small {
    font-size: 8px;
  }
  .top-product b {
    font-size: 10px;
  }
  .stock-alert {
    padding: 15px 17px;
    font-size: 10px;
    align-items: flex-start;
    margin-bottom: 20px;
  }
  .stock-alert > a {
    font-size: 9px;
  }
  .admin-panel table {
    font-size: 10px;
  }
  .admin-panel th {
    font-size: 8px;
    padding: 12px;
  }
  .admin-panel td {
    padding: 15px 12px;
  }
  .recent-orders {
    padding-bottom: 7px;
  }
  .admin-list-tabs {
    font-size: 8px;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
  }
  .list-panel {
    padding: 17px;
  }
  .admin-search {
    padding: 10px 11px;
    min-width: 0;
  }
  .admin-search input:not([type="checkbox"]) {
    font-size: 16px;
  }
  .admin-filters {
    gap: 10px;
    padding-bottom: 20px;
  }
  .admin-filters > select {
    font-size: 10px;
    min-height: 40px;
    flex: 1;
    padding: 9px 22px 9px 10px;
    min-width: 110px;
  }
  .low-stock-filter {
    font-size: 10px;
    margin-top: 3px;
  }
  .low-stock-filter input {
    width: 14px;
    height: 14px;
  }
  .product-table-name {
    min-width: 190px;
  }
  .table-footer {
    font-size: 9px;
    padding-top: 18px;
  }
  .table-icon {
    width: 35px;
    height: 35px;
  }
  .status-badge {
    font-size: 8px;
  }
  .editor-grid > aside {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .editor-panel {
    padding: 22px;
    margin-bottom: 20px;
  }
  .editor-panel > h2 {
    font-size: 13px;
  }
  .admin-field-grid {
    gap: 22px 15px;
  }
  .admin-body input:not([type="checkbox"]):not([type="color"]),
  .admin-body select,
  .admin-body textarea {
    font-size: 16px;
    min-height: 44px;
    padding: 11px;
  }
  .admin-body
    label:not(.period-select):not(.admin-search):not(.low-stock-filter):not(
      .upload-button
    ) {
    font-size: 11px;
  }
  .admin-body .period-select select {
    font-size: 10px;
    padding: 10px 23px 10px 11px;
  }
  .admin-body .admin-filters > select {
    font-size: 10px;
    min-height: 40px;
  }
  .editor-panel > .admin-checkbox {
    font-size: 11px !important;
  }
  .admin-checkbox input {
    width: 15px;
    height: 15px;
  }
  .admin-help {
    font-size: 10px;
    line-height: 1.8;
  }
  .editor-preview {
    font-size: 11px;
  }
  .archive-button {
    font-size: 10px !important;
    padding: 8px;
  }
  .product-image-editor > img {
    aspect-ratio: 1;
    max-height: 400px;
  }
  .product-image-editor select {
    font-size: 12px;
  }
  .upload-button {
    font-size: 11px;
    min-height: 44px;
    padding: 13px;
  }
  .variant-table input:not([type="color"]) {
    font-size: 16px !important;
    padding: 9px;
    min-width: 60px;
    max-width: 130px;
  }
  .variant-table input[type="color"] {
    min-width: 30px;
  }
  .variant-table th {
    font-size: 9px;
  }
  .variant-table td {
    padding: 11px 4px;
  }
  .variant-table td:first-child input {
    max-width: 65px;
  }
  .variant-table td:nth-child(4) input {
    max-width: 65px;
  }
  .variant-table .table-icon {
    width: 32px;
    height: 35px;
  }
  .admin-inline-summary {
    font-size: 9px;
    gap: 12px;
    flex-direction: column;
    margin-bottom: 20px;
  }
  .category-revenue > div > span {
    font-size: 11px;
  }
  .admin-footer {
    padding: 18px 20px;
    gap: 12px;
    font-size: 8px;
    flex-wrap: wrap;
  }
  .admin-footer > span {
    font-size: 7px;
  }
  .admin-toast {
    left: 50%;
    bottom: 18px;
    font-size: 11px;
    max-width: calc(100% - 35px);
    width: max-content;
  }
  #admin-dialog {
    padding: 24px;
    max-height: 92dvh;
    border-radius: 17px;
  }
  .admin-dialog-heading h2 {
    font-size: 29px;
  }
  .order-detail-header {
    gap: 13px;
    flex-wrap: wrap;
  }
  .order-detail-header > span:last-child {
    font-size: 9px;
  }
  .order-customer {
    gap: 22px;
    grid-template-columns: 1fr 1fr;
    padding-block: 23px;
  }
  .order-customer strong {
    font-size: 11px;
  }
  .order-customer span {
    font-size: 10px;
  }
  .order-modal-items img {
    width: 42px;
    height: 57px;
  }
  .order-modal-items strong {
    font-size: 10px;
  }
  .order-modal-items article {
    gap: 11px;
  }
  .order-modal-items span {
    font-size: 9px;
  }
  .order-modal-items b {
    font-size: 10px;
  }
  .order-totals {
    padding-left: 25%;
    gap: 13px;
  }
  .order-totals > span {
    font-size: 11px;
  }
  .order-totals > strong {
    font-size: 13px;
  }
  #order-update-form > label {
    font-size: 11px;
  }
  #order-update-form .admin-button {
    width: 100%;
    margin-top: 20px;
  }
  .admin-error {
    font-size: 11px;
  }
  .admin-login {
    grid-template-columns: 1fr;
    min-height: 100dvh;
  }
  .login-back {
    top: 25px;
    right: 25px;
    font-size: 9px;
  }
  .login-brand {
    padding: 32px 27px 35px;
    min-height: 300px;
  }
  .login-brand > .wordmark {
    font-size: 35px;
  }
  .login-brand > .wordmark span {
    font-size: 8px;
  }
  .login-brand h1 {
    font-size: 43px;
    line-height: 1.01;
    letter-spacing: -2px;
    padding: 0;
    margin-top: 36px;
  }
  .login-brand h1 br:last-child {
    display: none;
  }
  .login-brand > p {
    display: none;
  }
  .login-brand > span {
    padding-top: 25px;
    margin-top: 0;
    font-size: 8px;
  }
  .login-form-wrap {
    padding: 36px 25px 40px;
  }
  .login-form-wrap > form {
    max-width: none;
  }
  .login-icon {
    display: none;
  }
  .login-form-wrap h2 {
    font-size: 30px;
  }
  .login-form-wrap h2 + p {
    font-size: 12px;
    margin-top: 13px;
    margin-bottom: 26px;
  }
  .login-form-wrap label {
    margin-top: 22px;
  }
  .login-form-wrap input {
    font-size: 16px !important;
    padding: 13px !important;
  }
  .login-form-wrap .wide {
    font-size: 12px;
    padding: 14px;
  }
  .demo-credentials {
    font-size: 11px;
    padding: 18px;
    margin-top: 27px;
  }
  .demo-credentials strong {
    font-size: 10px;
  }
  .demo-credentials code {
    font-size: 11px;
  }
  .demo-credentials > button {
    font-size: 10px;
    min-height: 35px;
  }
  .page-note {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .admin-sidebar,
  .admin-toast,
  .admin-button {
    transition: none;
  }
  .admin-button:hover,
  .admin-button:active {
    transform: none;
  }
}
/* Keep management screens comfortably readable and filters in one row. */
.admin-body .admin-filters > select {
  width: auto;
  flex: 0 1 auto;
  min-width: 145px;
  font-size: 11px;
}
.admin-body .admin-search input:not([type="checkbox"]):not([type="color"]) {
  width: 100%;
  border: 0;
  padding: 2px 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  font-size: 12px;
}
.admin-search {
  min-height: 42px;
}
.admin-panel td {
  font-size: 11px;
}
.admin-panel th {
  font-size: 10px;
  color: #8e6f84;
}
.product-table-name strong,
.customer-name {
  font-size: 12px;
}
.product-table-name small,
.table-sub {
  font-size: 9px;
  color: #94758a;
}
.status-badge {
  font-size: 9px;
}
.panel-heading h2 {
  font-size: 14px;
}
.panel-heading p {
  font-size: 10px;
  color: #94748a;
}
.metric-card > div {
  font-size: 11px;
  color: #89697f;
}
.metric-card > small {
  font-size: 9px;
  color: #94788b;
}
.top-product strong {
  font-size: 11px;
}
.top-product small {
  font-size: 9px;
}
.top-product b {
  font-size: 10px;
}
.admin-page-heading > div > span {
  color: #8a6c80;
}
.admin-body .editor-panel select {
  font-size: 12px;
}
@media (max-width: 700px) {
  .admin-body .admin-search input:not([type="checkbox"]):not([type="color"]) {
    font-size: 16px;
  }
  .admin-body .admin-filters > select {
    flex: 1;
    min-width: 110px;
    font-size: 10px;
  }
  .admin-panel td {
    font-size: 11px;
  }
  .admin-panel th {
    font-size: 9px;
  }
  .metric-card > div {
    font-size: 9px;
  }
  .metric-card > small {
    font-size: 8px;
  }
  .admin-body .editor-panel select {
    font-size: 16px;
  }
}
.admin-nav-scrim {
  display: none;
}
@media (max-width: 700px) {
  .admin-menu-open .admin-nav-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 25;
    border: 0;
    border-radius: 0;
    background: #48213840;
    backdrop-filter: blur(3px);
  }
}

@media (pointer: coarse), (max-width: 700px) {
  .admin-body .admin-filters > select,
  .admin-body .period-select select,
  .admin-body #admin-dialog select,
  .admin-body #admin-dialog textarea,
  .admin-body #admin-dialog input:not([type="checkbox"]) {
    min-height: 44px;
    font-size: 16px;
  }
  .admin-body .admin-filters > select {
    min-width: 0;
    max-width: 100%;
  }
  .admin-body .archive-button,
  .admin-body .demo-credentials > button {
    min-height: 44px;
  }
}

.growth-layout {
  display: grid;
  min-width: 0;
  gap: 24px;
}
.growth-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 16px;
}
.growth-stat {
  display: grid;
  gap: 8px;
  align-content: start;
  padding: 20px;
}
.growth-stat strong {
  font-size: 1.5rem;
  font-variant-numeric: tabular-nums;
}
.growth-panel {
  min-width: 0;
}
.growth-form {
  display: grid;
  gap: 16px;
}
.growth-actions, .growth-action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.growth-action-bar {
  padding: 0 20px 12px;
}
.growth-message {
  min-width: 160px;
  max-width: 360px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.admin-mfa-panel {
  max-width: 42rem;
}

.admin-mfa-panel form {
  display: grid;
  gap: 0.8rem;
  max-width: 32rem;
}

.admin-mfa-panel label,
#admin-mfa-verify label {
  display: grid;
  gap: 0.4rem;
  font-weight: 600;
}

.admin-mfa-panel input[data-mfa-chave] {
  font-family: monospace;
  letter-spacing: 0.06em;
}

.admin-mfa-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-block: 0.65rem;
}

.admin-mfa-codes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 0.45rem;
  padding: 0;
  list-style: none;
}

.admin-mfa-codes li {
  border: 1px solid currentColor;
  border-radius: 0.4rem;
  padding: 0.45rem 0.65rem;
  font-family: monospace;
  overflow-wrap: anywhere;
}

.admin-mfa-panel p, #admin-mfa-verify p { line-height: 1.6; }
.admin-mfa-panel :is(.admin-button, input),
#admin-mfa-verify :is(.admin-button, input) {
  min-height: 44px;
}
.admin-body .admin-mfa-panel label > input:not([type="checkbox"]),
.admin-body #admin-mfa-verify label > input:not([type="checkbox"]) {
  font-size: 16px;
}
.admin-body :is(.admin-mfa-panel, #admin-mfa-verify) label:has(input) {
  font-size: 14px;
}
.admin-mfa-actions [role="status"] { margin: 0; }
.admin-mfa-actions [role="status"]:empty { display: none; }

@media (max-width: 440px) {
  .admin-mfa-actions, .admin-mfa-codes { grid-template-columns: minmax(0, 1fr); }
  .admin-mfa-actions { display: grid; }
  .admin-mfa-panel form > .admin-button, #admin-mfa-verify .admin-button {
    width: 100%;
    white-space: normal;
  }
}

.financeiro-admin {
  padding: clamp(16px, 3vw, 24px);
  margin-bottom: 24px;
}
.financeiro-admin h2 {
  margin: 0 0 8px;
}
.financeiro-admin p {
  color: #70546a;
  font-size: 13px;
  margin: 10px 0 0;
}
.financeiro-valores {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 145px), 1fr));
  gap: 10px;
  margin: 16px 0;
}
.financeiro-valores > div {
  min-width: 0;
  border: 1px solid var(--admin-border);
  border-radius: 12px;
  padding: 14px;
}
.financeiro-valores > div:last-child {
  background: #f8eff5;
}
.financeiro-valores dt {
  font-weight: 600;
}
.financeiro-valores dd {
  font: 500 clamp(22px, 3vw, 32px)/1.2 var(--display);
  overflow-wrap: anywhere;
  margin: 8px 0;
}
.financeiro-valores small {
  display: block;
  margin-top: 6px;
  color: #70546a;
  font-family: system-ui, sans-serif;
  font-size: 12px;
  line-height: 1.5;
}

/* Keep metrics, forms and scrollable tables within the admin content column. */
.admin-page-heading > div,
.admin-page-actions,
.admin-filters > *,
.admin-field-grid > *,
.order-customer > *,
.order-modal-items article > div,
.metric-card {
  min-inline-size: 0;
}
.admin-page-actions,
.admin-filters > *,
.table-scroll {
  max-inline-size: 100%;
}
.admin-page-heading :is(h1, p, span),
.admin-mfa-panel :is(h2, h3, p, label),
#clube-historico h2,
.top-product strong,
.order-modal-items strong {
  overflow-wrap: anywhere;
}
.metric-card > strong {
  white-space: normal;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
.dashboard-middle {
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
}
.admin-field-grid,
.order-customer {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.table-scroll {
  min-inline-size: 0;
  overscroll-behavior-inline: contain;
}
.table-scroll :focus-visible {
  outline-offset: -2px;
}
.admin-search:focus-within {
  outline: 2px solid var(--admin-accent);
  outline-offset: 2px;
}
#admin-dialog {
  max-height: min(90dvh, calc(100dvh - 24px));
  overscroll-behavior: contain;
}
@media (max-width: 980px) {
  .dashboard-middle {
    grid-template-columns: minmax(0, 1fr);
  }
  .admin-page-actions {
    flex-wrap: wrap;
  }
}
@media (pointer: coarse), (max-width: 700px) {
  .admin-body :is(input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="file"]), select, textarea),
  .admin-body .admin-search input:not([type="checkbox"]):not([type="color"]),
  .admin-body .editor-panel select {
    min-block-size: 44px;
    font-size: 16px;
  }
  .admin-body .admin-search input:not([type="checkbox"]):not([type="color"]) {
    min-block-size: 24px;
  }
  .admin-search,
  .admin-body .admin-button,
  .admin-body .table-icon,
  .admin-body .admin-dialog-heading .table-icon {
    min-block-size: 44px;
  }
  .admin-body .table-icon,
  .admin-body .admin-dialog-heading .table-icon {
    min-inline-size: 44px;
  }
}
@media (max-width: 700px) {
  .admin-menu-open {
    overflow: hidden;
  }
  .admin-sidebar {
    max-block-size: 100dvh;
  }
  .admin-sidebar nav a,
  .sidebar-bottom > :is(a, button),
  .admin-topbar > div > a {
    min-block-size: 44px;
  }
  .admin-topbar > .admin-menu,
  .admin-user-avatar {
    flex-shrink: 0;
  }
  .admin-topbar > div {
    min-inline-size: 0;
  }
  .admin-topbar > div > span:last-child {
    min-inline-size: 0;
    overflow-wrap: anywhere;
  }
  .admin-topbar > div > a {
    flex-shrink: 0;
  }
  .admin-body .admin-button {
    max-inline-size: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
  }
  .admin-dialog-heading,
  .panel-heading {
    gap: 12px;
  }
  .admin-dialog-heading > div,
  .panel-heading > div {
    min-inline-size: 0;
    overflow-wrap: anywhere;
  }
  .admin-dialog-heading .table-icon {
    flex: none;
  }
  .metric-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.25rem), 1fr));
  }
  .metric-card > strong {
    font-size: clamp(1.2rem, 4.5vw, 1.75rem);
  }
  .financeiro-valores {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 10.5rem), 1fr));
  }
  .growth-stats {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 10.5rem), 1fr));
  }
  .growth-stat strong {
    overflow-wrap: anywhere;
  }
  .admin-filters > label:not(.admin-search):has(input[type="date"]) {
    display: grid;
    gap: 4px;
    flex: 1 1 9.5rem;
  }
  .admin-body .admin-filters > select {
    flex: 1 1 9rem;
  }
  .category-revenue > div > span {
    flex-wrap: wrap;
    gap: 3px 12px;
  }
}
@media (max-width: 440px) {
  .admin-field-grid,
  .order-customer {
    grid-template-columns: minmax(0, 1fr);
  }
  .admin-topbar {
    gap: 12px;
    padding-inline: 16px;
  }
  .admin-dialog-heading h2 {
    font-size: clamp(20px, 6vw, 26px);
  }
  #admin-dialog {
    padding: clamp(16px, 5vw, 24px);
  }
}

.clube-admin {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  min-width: 0;
}
.clube-admin > :empty { display: none; }
.clube-admin :is(#clube-assinaturas, #clube-cobrancas, #clube-historico) { scroll-margin-top: 84px; }
.clube-resumo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 16px;
}
.clube-painel {
  padding: clamp(16px, 2.5vw, 28px);
}
.clube-painel-cabecalho { margin-bottom: 16px; }
.clube-painel-cabecalho h2 {
  font: 550 clamp(19px, 2vw, 24px)/1.2 var(--sans);
  letter-spacing: -.02em;
}
.clube-painel-cabecalho p, .clube-tabela-grupo > p, .clube-metodo p,
.clube-lista-rodape p, .admin-page-heading .clube-sincronizacao {
  color: #70576a;
  font-size: 13px;
  line-height: 1.5;
}
.clube-painel-cabecalho p, .clube-tabela-grupo > p { margin-top: 4px; }
.admin-page-heading .clube-sincronizacao { margin: 0; }
.clube-status-lista, .clube-lista-planos {
  list-style: none;
  padding: 0;
  margin: 0;
}
.clube-status-lista {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 168px), 1fr));
  gap: 8px;
}
.clube-status-lista a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  min-height: 44px;
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  text-decoration: none;
}
.clube-status-lista a:is(:hover, [aria-current]) { background: #f8eff5; border-color: #c8a2bb; }
.clube-status-lista strong, .clube-lista-planos strong, .clube-receita { font-variant-numeric: tabular-nums; }
.clube-status-lista strong, .clube-lista-planos strong { font-size: 15px; }
.clube-lista-planos li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 8px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--admin-border);
}
.clube-lista-planos li:last-child { border: 0; }
.clube-status {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 6px;
  padding: 4px 7px;
  border-radius: 5px;
  font: 600 12px/1.25 var(--sans);
  color: #554451;
  background: #f3eef2;
}
.clube-status.active { color: #23523e; background: #e8f4ec; }
.clube-status.overdue { color: #854041; background: #fbefee; }
.clube-status.processing { color: #654a24; background: #fbf3e5; }

.clube-filtros {
  display: grid;
  align-items: end;
  gap: 12px;
  margin-bottom: 20px;
}
.clube-busca { grid-template-columns: minmax(170px, 1.5fr) minmax(136px, 1fr) auto; }
.clube-periodo { grid-template-columns: minmax(160px, 1fr) repeat(2, minmax(120px, .85fr)) auto; }
.clube-periodo:not(:has(input[type="date"]:enabled)) { grid-template-columns: minmax(160px, 260px) auto; }
.admin-body .clube-filtros label:not(.period-select) {
  display: grid;
  gap: 5px;
  min-width: 0;
  font: 550 13px/1.3 var(--sans);
  color: #61495a;
}
.admin-body .clube-filtros label[hidden] { display: none; }
.admin-body .clube-filtros :is(input:not([type="hidden"]), select) {
  font-size: 16px;
  min-height: 44px;
  padding: 8px 10px;
  box-sizing: border-box;
}
.clube-acoes, .clube-historico-acoes, .clube-lista-rodape, .clube-lista-rodape nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.clube-lista-rodape { justify-content: space-between; margin-top: 12px; }
.clube-acoes .admin-button, .clube-historico-acoes .admin-button, .clube-lista-rodape .admin-button {
  min-height: 44px;
  font-size: 13px;
  padding-inline: 12px;
}
.clube-tabela {
  border: 1px solid var(--admin-border);
  border-radius: 10px;
}
.clube-tabela table { white-space: normal; }
.clube-tabela :is(th, td) { font-size: 13px; color: #574351; }
.clube-tabela th { font-weight: 600; }
.clube-tabela td { overflow-wrap: anywhere; }
.clube-tabela-grupo .clube-tabela td:not(:first-child) { font-variant-numeric: tabular-nums; }
.clube-tabela a { text-decoration: underline; text-underline-offset: 3px; }
.clube-nome { color: #65304f; font-size: 14px; font-weight: 600; }
.clube-email { display: block; margin-top: 3px; font-size: 12px; color: #70576a; }
.clube-vazio {
  padding: 16px;
  background: #faf7f9;
  border-radius: 8px;
  color: #70576a;
  font-size: 14px;
}
.clube-receita {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 2fr;
  gap: 16px;
  padding: clamp(16px, 2vw, 24px);
  border: 1px solid #e9d9e4;
  border-radius: 12px;
  background: #fcf6fa;
}
.clube-receita > div { display: grid; align-content: center; gap: 3px; }
.clube-receita > div strong { font: 500 clamp(24px, 4vw, 34px)/1.15 var(--display); overflow-wrap: anywhere; }
.clube-receita > div :is(p,span), .clube-receita dt { color: #70576a; font-size: 13px; }
.clube-receita dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 96px), 1fr));
  gap: 12px;
  align-content: center;
  margin: 0;
}
.clube-receita dd { font-weight: 600; margin: 2px 0 0; }
.clube-tabela-grupo { margin-top: 20px; }
.clube-tabela-grupo h3 { font: 600 16px/1.35 var(--sans); }
.clube-tabela-grupo :is(.clube-tabela, .clube-vazio) { margin-top: 8px; }
.clube-metodo { margin-top: 16px; font-size: 13px; }
.clube-metodo summary { cursor: pointer; width: fit-content; color: #65304f; }
.clube-metodo p { margin-top: 5px; max-width: 72ch; }
.clube-historico-acoes { margin-bottom: 12px; justify-content: space-between; }

@media (max-width: 1100px) {
  .clube-busca, .clube-periodo { grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
  .clube-filtros .clube-acoes { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .clube-admin { gap: 16px; }
  .clube-busca, .clube-periodo:not(:has(input[type="date"]:enabled)) { grid-template-columns: minmax(0, 1fr); }
  .clube-periodo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .clube-periodo > label:first-of-type { grid-column: 1 / -1; }
  .clube-periodo .clube-acoes > *, .clube-busca .clube-acoes > * { flex: 1 1 auto; }
  .clube-receita { grid-template-columns: minmax(0, 1fr); }
  .clube-tabela-assinantes {
    border: 0;
    overflow: visible;
  }
  .clube-tabela-assinantes :is(table, tbody) { display: block; }
  .clube-tabela-assinantes thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .clube-tabela-assinantes tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
    padding: 12px;
    border: 1px solid var(--admin-border);
    border-radius: 10px;
    margin-bottom: 8px;
  }
  .clube-tabela-assinantes tr td { padding: 0; border: 0; }
  .clube-tabela-assinantes td:first-child { grid-column: 1 / -1; }
  .clube-tabela-assinantes td[data-rotulo]::before {
    content: attr(data-rotulo);
    display: block;
    color: #70576a;
    font-size: 11px;
    margin-bottom: 3px;
  }
}

.clube-atalho {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
}
.clube-atalho h2 { font: 550 16px/1.35 var(--sans); }
.clube-atalho strong {
  display: block;
  margin-top: 4px;
  font: 500 28px/1.2 var(--display);
  font-variant-numeric: tabular-nums;
}
.clube-atalho .admin-button { font-size: 13px; min-height: 44px; }

.clube-status-cliente { margin-top: 6px; white-space: normal; }
.clube-status.active::before {
  content: "";
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.email-flow-tabs,.email-flow-steps {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:.75rem;
}
.email-flow-tabs > button {
  flex:1 1 13rem;
  display:grid;
  align-content:center;
  justify-items:start;
  gap:.25rem;
  min-height:3.5rem;
}
.email-flow-tabs > button[aria-pressed="true"] {
  outline:2px solid #8f4c6c;
  outline-offset:-2px;
  background:#f9e7ef;
}
.email-flow-tabs small,.email-flow-steps small { font-size:.78rem; }
.email-flow-steps { margin:1rem 0 1.5rem; }
.email-flow-steps > :is(a,div) {
  display:grid;
  flex:1 1 9rem;
  gap:.25rem;
  padding:.85rem 1rem;
  border:1px solid #e8d5df;
  border-radius:.7rem;
  color:#53283e;
  background:#fdf4f8;
}
.email-flow-editor {
  display:grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap:1.25rem;
}
.email-flow-editor iframe {
  width:100%;
  min-height:28rem;
  border:1px solid #e8d5df;
  border-radius:.7rem;
  background:#fbf2f6;
}
@media(max-width:780px) {
  .email-flow-editor { grid-template-columns:minmax(0,1fr); }
  .email-flow-steps > span { display:none; }
  .email-flow-steps > :is(a,div) { flex-basis:100%; }
}

.clube-box-status:empty { display: none; }
.clube-box-status { color: #63495c; margin: 0 0 12px; }
.clube-box-resumo {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
}
.clube-box-resumo a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  gap: 10px;
  padding: 6px 12px;
  border: 1px solid #e5d9e2;
  border-radius: 9px;
  text-decoration: none;
  color: #5a3d50;
  background: #fff;
}
.clube-box-resumo a:is(:hover, [aria-current]) {
  border-color: #a87397;
  background: #f8eff5;
}
.clube-box-resumo a b { font-variant-numeric: tabular-nums; }
.clube-box-filtros { grid-template-columns: minmax(135px, 1fr) minmax(175px, 1.6fr) minmax(135px, 1fr) auto; }
.clube-box-lista { display: grid; gap: 8px; }
.clube-box-card {
  display: grid;
  gap: 12px 18px;
  grid-template-columns: minmax(0, 1fr) minmax(150px, .8fr) minmax(160px, .8fr);
  align-items: start;
  background: #fff;
  border: 1px solid #e8dde6;
  border-radius: 12px;
  padding: 14px;
}
.clube-box-pessoa, .clube-box-progresso, .clube-box-acoes { display: grid; min-width: 0; gap: 5px; justify-items: start; }
.clube-box-pessoa h3 { font: 650 16px/1.3 var(--sans); margin: 0; overflow-wrap: anywhere; }
.clube-box-pessoa > span:not(.clube-status), .clube-box-sem-registro, .clube-box-progresso time {
  font-size: 13px;
  color: #684e61;
  overflow-wrap: anywhere;
}
.clube-box-progresso summary { min-height: 30px; padding: 5px 0; cursor: pointer; font-size: 13px; color: #573246; }
.clube-box-progresso ol { margin: 0; padding-left: 18px; font-size: 13px; }
.clube-box-progresso li { margin-bottom: 4px; }
.clube-box-progresso time { display: block; }
.clube-box-acoes { justify-items: end; }
.clube-box-acoes .admin-button { min-height: 44px; text-align: center; }
.clube-status.montada { color: #673753; background: #f7eaf2; }
.clube-status.enviada { color: #244a66; background: #eaf3fb; }
@media (max-width: 930px) {
  .clube-box-filtros { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .clube-box-card { grid-template-columns: 1fr; }
  .clube-box-acoes { display: flex; flex-wrap: wrap; }
}
@media (max-width: 420px) {
  .clube-box-filtros { grid-template-columns: 1fr; }
  .clube-box-acoes .admin-button { flex: 1 1 130px; }
}
