* {
  box-sizing: border-box;
}

:root {
  --bg: #efe7db;
  --bg-accent: #f7f1e8;
  --panel: rgba(255, 251, 247, 0.88);
  --panel-border: rgba(71, 55, 37, 0.08);
  --text: #201812;
  --muted: #7a6c5d;
  --brand: #c56e2a;
  --brand-deep: #4b2d1b;
  --line: rgba(71, 55, 37, 0.08);
  --shadow: 0 24px 48px rgba(76, 52, 24, 0.08);
}

body {
  margin: 0;
  font-family: "PingFang SC", "Helvetica Neue", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.7), transparent 32%),
    linear-gradient(180deg, #f6efe5 0%, var(--bg) 100%);
  color: var(--text);
}

.login-page {
  min-height: 100vh;
  padding: 28px;
}

.login-page__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(380px, 0.8fr);
  gap: 24px;
  min-height: calc(100vh - 56px);
}

.login-page__intro,
.login-page__panel {
  border-radius: 32px;
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
}

.login-page__intro {
  padding: 40px;
  background:
    radial-gradient(circle at top right, rgba(244, 188, 114, 0.24), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(246, 236, 223, 0.96));
}

.login-page__intro h1 {
  max-width: 560px;
}

.login-page__tips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.login-page__tip-card {
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(94, 68, 37, 0.08);
}

.login-page__tip-title {
  font-size: 15px;
  font-weight: 700;
  color: #4f3724;
}

.login-page__tip-text {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.7;
  color: #6b5c4c;
}

.login-page__panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px;
  background: rgba(255, 251, 247, 0.94);
}

.login-page__panel-head {
  margin-bottom: 24px;
}

.login-page__form {
  display: grid;
  gap: 14px;
}

.login-page__submit {
  margin-top: 4px;
}

.app-shell {
  display: grid;
  grid-template-columns: 296px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  min-height: 100vh;
  padding: 28px 24px;
  background:
    linear-gradient(180deg, rgba(76, 44, 24, 0.96), rgba(33, 22, 14, 0.96)),
    rgba(255, 255, 255, 0.72);
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
  color: #fffaf4;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f4bc72, #d96f1f 58%, #8f4012 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.brand-title {
  font-size: 18px;
  font-weight: 700;
}

.brand-subtitle {
  margin-top: 4px;
  font-size: 13px;
  color: rgba(255, 244, 233, 0.72);
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 34px;
}

.nav-item {
  padding: 14px 16px;
  border-radius: 16px;
  color: rgba(255, 244, 233, 0.78);
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.nav-item--active,
.nav-item:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.08);
  transform: translateX(2px);
}

.main {
  min-width: 0;
  padding: 28px 30px 40px;
}

.page-header {
  margin-bottom: 20px;
  padding: 28px 30px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(250, 243, 234, 0.94)),
    var(--panel);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
}

.page-header h2 {
  margin: 10px 0 0;
  font-size: 30px;
  line-height: 1.2;
}

.page-desc {
  margin: 14px 0 0;
}

.login-strip {
  display: grid;
  grid-template-columns: 220px 220px 160px 120px 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 251, 247, 0.84);
  border: 1px solid var(--panel-border);
  box-shadow: 0 14px 28px rgba(76, 52, 24, 0.06);
}

.ghost-button {
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(31, 37, 32, 0.12);
  background: rgba(255, 255, 255, 0.72);
  color: #3a342d;
}

.login-input {
  height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(31, 37, 32, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.login-input:focus {
  outline: none;
  border-color: rgba(197, 110, 42, 0.42);
  box-shadow: 0 0 0 4px rgba(197, 110, 42, 0.1);
  background: #ffffff;
}

.login-status {
  font-size: 14px;
  color: #73695c;
  font-weight: 600;
}

.hero {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 20px;
  padding: 28px;
  border-radius: 28px;
  background: linear-gradient(135deg, #ffffff, #f6ecdf);
  box-shadow: 0 20px 40px rgba(77, 58, 31, 0.08);
}

.eyebrow {
  font-size: 13px;
  color: #8b7a62;
  letter-spacing: 1px;
}

h1 {
  margin: 12px 0 0;
  font-size: 40px;
  line-height: 1.1;
}

p {
  margin: 18px 0 0;
  font-size: 16px;
  line-height: 1.7;
  color: #685f55;
  max-width: 720px;
}

.hero-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.metric {
  padding: 20px;
  border-radius: 20px;
  background: #1f2520;
  color: #ffffff;
}

.metric-num {
  display: block;
  font-size: 28px;
  font-weight: 700;
}

.metric-label {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
}

.grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

.panel {
  display: block;
  padding: 24px;
  border-radius: 28px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow);
}

.shortcut-card {
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.shortcut-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 42px rgba(77, 58, 31, 0.12);
}

.shortcut-copy {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.7;
  color: #685f55;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.panel-head h2 {
  margin: 0;
  font-size: 22px;
}

.panel-head span {
  font-size: 13px;
  color: #7e7467;
}

.queue-item,
.admin-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.queue-main {
  min-width: 0;
  flex: 1;
}

.queue-identity {
  display: block;
}

.admin-create {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.2fr 140px;
  gap: 10px;
  margin-bottom: 18px;
}

.area-create {
  display: grid;
  grid-template-columns: 1fr 140px;
  gap: 10px;
  margin-bottom: 18px;
}

.content-create {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.2fr 140px;
  gap: 10px;
  margin-bottom: 18px;
}

.banner-editor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.merchant-content-tools {
  display: grid;
  grid-template-columns: 260px 1fr 220px;
  gap: 10px;
  margin-bottom: 14px;
}

.merchant-profile-form {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.merchant-profile-shell {
  margin-bottom: 14px;
  padding: 16px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 251, 247, 0.94), rgba(246, 238, 227, 0.94));
  border: 1px solid rgba(197, 110, 42, 0.12);
}

.merchant-profile-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.merchant-profile-form__desc {
  grid-column: span 3;
}

.merchant-content-tools--product {
  grid-template-columns: 180px 1fr 120px 110px 140px 140px 140px 1.2fr 1.2fr 180px;
}

.content-create--notice {
  grid-template-columns: 1fr 140px;
  margin-top: 20px;
}

.editor-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(244, 237, 227, 0.78);
  border: 1px solid rgba(197, 110, 42, 0.12);
}

.editor-toolbar--category {
  margin-top: -2px;
  margin-bottom: 14px;
}

.editor-toolbar__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.editor-status {
  min-width: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #6f5d49;
}

.editor-status strong {
  color: #4f3724;
}

.content-stack {
  display: flex;
  flex-direction: column;
}

.queue-item:first-of-type,
.admin-card:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.queue-title,
.admin-title {
  font-size: 16px;
  font-weight: 700;
}

.queue-meta,
.admin-meta {
  margin-top: 6px;
  font-size: 14px;
  color: #746b60;
}

.queue-note {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.6;
  color: #5d544a;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.status-chip--enabled {
  background: #e7f6ef;
  color: #177b4d;
}

.status-chip--disabled {
  background: #f5e7e7;
  color: #9d4949;
}

.status-chip--pending {
  background: #f8ead8;
  color: #9a5f1f;
}

.status-chip--processing {
  background: #e6f4f1;
  color: #176f67;
}

.status-chip--success {
  background: #e7f6ef;
  color: #177b4d;
}

.status-chip--muted {
  background: #efebe6;
  color: #6d6256;
}

.asset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.asset-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.asset-thumb {
  display: flex;
  flex-direction: column;
  padding: 10px;
  border-radius: 18px;
  background: var(--bg-accent);
  color: inherit;
  border: 1px solid rgba(197, 110, 42, 0.1);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.asset-thumb:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(76, 52, 24, 0.08);
}

.asset-thumb__button {
  display: block;
  width: 100%;
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.asset-thumb__button:hover {
  transform: none;
}

.asset-thumb__image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 14px;
  background: #fff;
}

.asset-thumb__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
}

.asset-thumb__label {
  font-size: 12px;
  font-weight: 700;
  color: #6b523a;
}

.asset-thumb__link {
  font-size: 12px;
  font-weight: 700;
  color: #9a5f1f;
  text-decoration: none;
}

.merchant-upload-preview {
  margin: 0 0 16px;
}

.merchant-upload-preview__card {
  width: 180px;
  padding: 10px;
  border-radius: 18px;
  background: #f7f1e8;
  border: 1px solid rgba(197, 110, 42, 0.1);
}

.merchant-upload-preview__image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

.merchant-upload-preview__card--banner {
  width: min(100%, 360px);
}

.merchant-upload-preview__image--banner {
  aspect-ratio: 2.68 / 1;
}

.merchant-upload-preview__meta {
  margin-top: 8px;
  font-size: 12px;
  color: #746b60;
}

.asset-link {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f4ede3;
  color: #6d5130;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
}

.content-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.content-card:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.content-card--active {
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 248, 239, 0.98), rgba(248, 239, 226, 0.98));
  border: 1px solid rgba(197, 110, 42, 0.16);
}

.content-title {
  font-size: 15px;
  font-weight: 700;
}

.content-meta {
  margin-top: 6px;
  font-size: 13px;
  color: #746b60;
}

.content-desc {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.7;
  color: #5d544a;
}

.merchant-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.merchant-summary span {
  font-size: 12px;
  color: #746b60;
}

.merchant-summary span:last-child {
  color: #5f574d;
  font-weight: 700;
}

.merchant-overview-card {
  margin: 0 0 16px;
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(135deg, #fffaf3, #f5eadc);
  border: 1px solid rgba(197, 110, 42, 0.12);
  box-shadow: 0 16px 32px rgba(76, 52, 24, 0.08);
}

.merchant-overview-card__hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) 300px;
  gap: 18px;
  align-items: stretch;
}

.merchant-overview-card__eyebrow {
  font-size: 12px;
  letter-spacing: 1px;
  color: #8c7357;
}

.merchant-overview-card__title {
  margin-top: 8px;
  font-size: 26px;
  font-weight: 700;
  color: #2b1f16;
}

.merchant-overview-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  font-size: 13px;
  color: #6b5b4c;
}

.merchant-overview-card__desc {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.8;
  color: #5d544a;
}

.merchant-overview-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.merchant-overview-stat {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(197, 110, 42, 0.08);
}

.merchant-overview-stat__label {
  display: block;
  font-size: 12px;
  color: #8a7a69;
}

.merchant-overview-stat__value {
  display: block;
  margin-top: 8px;
  font-size: 18px;
  color: #3a281b;
}

.merchant-overview-card__visual,
.merchant-overview-card__empty {
  min-height: 220px;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(197, 110, 42, 0.1);
}

.merchant-overview-card__empty {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: #8c7b6a;
  font-size: 14px;
}

.merchant-overview-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.merchant-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.merchant-overview-item {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(197, 110, 42, 0.08);
}

.merchant-overview-item__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: #7a6957;
}

.merchant-overview-item__value {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.7;
  color: #3f3024;
  word-break: break-all;
}

.merchant-overview-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.menu-admin-card {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.menu-admin-card:first-of-type {
  border-top: 0;
}

.menu-admin-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.menu-admin-title {
  font-size: 15px;
  font-weight: 700;
}

.menu-admin-head .content-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.menu-admin-products {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.menu-admin-product {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #f7f1e8;
}

.menu-admin-product-title {
  font-size: 14px;
  font-weight: 700;
}

.menu-admin-product-meta {
  margin-top: 6px;
  font-size: 12px;
  color: #746b60;
}

.merchant-order-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.merchant-order-item-list {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #f7f1e8;
}

.merchant-order-item-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: #5f5448;
}

.merchant-order-item-line + .merchant-order-item-line {
  margin-top: 8px;
}

.merchant-order-summary span {
  font-size: 12px;
  color: #746b60;
}

.merchant-order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.history-item {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.history-summary,
.history-end {
  font-size: 13px;
  color: #7d7266;
}

.history-summary {
  margin-bottom: 6px;
}

.history-item:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.history-badge {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f4ede3;
  color: #6d5130;
  font-size: 12px;
  font-weight: 700;
}

.history-time {
  font-size: 12px;
  color: #8a7e70;
}

.history-title {
  margin-top: 10px;
  font-size: 15px;
  font-weight: 700;
  color: #1f2520;
}

.history-meta,
.history-note {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.7;
  color: #6d6256;
}

.history-more {
  width: 100%;
  margin-top: 14px;
  background: #ece4d9;
  color: #5f574d;
}

.history-end {
  margin-top: 14px;
  text-align: center;
}

.queue-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.queue-actions--column {
  flex-direction: column;
  align-items: stretch;
  min-width: 140px;
}

button,
.wide-button {
  height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-deep), #2c2017);
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 18px rgba(44, 32, 23, 0.16);
  transition: transform 160ms ease, opacity 160ms ease;
}

button:hover,
.wide-button:hover {
  transform: translateY(-1px);
}

button:disabled,
.wide-button:disabled,
.ghost-button:disabled,
.login-input:disabled {
  cursor: not-allowed;
  opacity: 0.62;
  transform: none;
  box-shadow: none;
}

.ghost {
  background: #ece4d9;
  color: #5f574d;
  box-shadow: none;
}

.danger-button {
  background: #c95f4a;
  color: #ffffff;
}

.wide-button {
  width: 100%;
  margin-top: 16px;
}

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

.tag-chip {
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(31, 37, 32, 0.08);
  font-size: 14px;
  font-weight: 700;
  color: #5f574d;
}

.ops-tip-card {
  margin-bottom: 18px;
  padding: 18px 18px 16px;
  border-radius: 22px;
  background: linear-gradient(135deg, #fff7ea, #f7ebdb);
  border: 1px solid rgba(197, 110, 42, 0.16);
}

.ops-tip-card__title {
  font-size: 15px;
  font-weight: 700;
  color: #5a381f;
}

.ops-tip-card__desc,
.ops-tip-card__meta {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.7;
  color: #6f5d49;
}

.platform-overview-card {
  margin-bottom: 14px;
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(135deg, #fff8ef, #f4e8d9);
  border: 1px solid rgba(197, 110, 42, 0.12);
  box-shadow: 0 16px 30px rgba(76, 52, 24, 0.08);
}

.platform-overview-card__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.platform-overview-card__eyebrow {
  font-size: 12px;
  letter-spacing: 1px;
  color: #8d765b;
}

.platform-overview-card__title {
  margin-top: 8px;
  font-size: 24px;
  font-weight: 700;
  color: #2b1f16;
}

.platform-overview-card__desc {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.7;
  color: #65584b;
}

.platform-overview-card__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.platform-overview-card + .platform-overview-card {
  margin-top: 14px;
}

.platform-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.platform-overview-item {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(197, 110, 42, 0.08);
}

.platform-overview-item__label {
  font-size: 12px;
  color: #8a7866;
}

.platform-overview-item__value {
  margin-top: 10px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  color: #35251a;
}

.platform-overview-item__meta {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.6;
  color: #736454;
}

.platform-notice-shell {
  margin-top: 18px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(250, 245, 238, 0.92);
  border: 1px solid rgba(197, 110, 42, 0.1);
}

.platform-notice-shell__head {
  margin-bottom: 12px;
}

.platform-notice-shell__meta {
  margin-top: 8px;
  font-size: 12px;
  color: #7a6957;
}

.content-card .asset-link {
  align-self: flex-start;
}

.asset-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
}

.asset-preview-modal--visible {
  display: block;
}

.asset-preview-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 18, 13, 0.68);
  backdrop-filter: blur(8px);
}

.asset-preview-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(92vw, 980px);
  max-height: 88vh;
  margin: 5vh auto 0;
  padding: 22px;
  border-radius: 28px;
  background: rgba(255, 251, 247, 0.98);
  box-shadow: 0 28px 56px rgba(33, 22, 14, 0.22);
  overflow: auto;
}

.asset-preview-modal__close {
  position: sticky;
  top: 0;
  margin-left: auto;
  display: flex;
}

.asset-preview-modal__label {
  margin-top: 10px;
  font-size: 15px;
  font-weight: 700;
  color: #4f3724;
}

.asset-preview-modal__image {
  display: block;
  width: 100%;
  max-height: 68vh;
  margin-top: 14px;
  object-fit: contain;
  border-radius: 22px;
  background: #f7f1e8;
}

.asset-preview-modal__link {
  display: inline-flex;
  margin-top: 14px;
  color: #9a5f1f;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.action-note-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
}

.action-note-modal--visible {
  display: block;
}

.action-note-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 18, 13, 0.48);
  backdrop-filter: blur(8px);
}

.action-note-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(92vw, 560px);
  margin: 9vh auto 0;
  padding: 24px;
  border-radius: 28px;
  background: rgba(255, 251, 247, 0.98);
  box-shadow: 0 28px 56px rgba(33, 22, 14, 0.2);
}

.action-note-modal__eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #a2703e;
}

.action-note-modal__title {
  margin-top: 10px;
  font-size: 24px;
  font-weight: 700;
  color: #201812;
}

.action-note-modal__hint {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.7;
  color: #6f6252;
}

.action-note-modal__presets {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.action-note-modal__preset {
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(94, 68, 37, 0.12);
  background: rgba(255, 255, 255, 0.96);
  color: #604834;
  box-shadow: none;
}

.action-note-modal__textarea {
  width: 100%;
  min-height: 140px;
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(94, 68, 37, 0.12);
  background: rgba(255, 255, 255, 0.98);
  font: inherit;
  line-height: 1.7;
  color: #201812;
  resize: vertical;
}

.action-note-modal__textarea:focus {
  outline: none;
  border-color: rgba(197, 110, 42, 0.42);
  box-shadow: 0 0 0 4px rgba(197, 110, 42, 0.1);
}

.action-note-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 18px;
}

@media (max-width: 1360px) {
  .login-page__grid {
    grid-template-columns: 1fr;
  }

  .login-strip {
    grid-template-columns: 1fr 1fr 150px 110px;
  }

  .login-status {
    grid-column: 1 / -1;
  }

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

  .merchant-profile-form__desc {
    grid-column: span 2;
  }

  .banner-editor-grid {
    grid-template-columns: 1fr 1fr;
  }

  .merchant-content-tools--product {
    grid-template-columns: 1fr 1fr;
  }

  .merchant-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .merchant-overview-card__hero {
    grid-template-columns: 1fr;
  }

  .merchant-overview-stats,
  .merchant-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .platform-overview-grid {
    grid-template-columns: 1fr;
  }

  .editor-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .editor-toolbar__actions {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 1024px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(31, 37, 32, 0.08);
  }

  .nav {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .nav-item {
    white-space: nowrap;
  }

  .content-card--active {
    padding: 16px;
  }

  .platform-overview-card__head {
    flex-direction: column;
  }

  .platform-overview-card__chips {
    justify-content: flex-start;
  }

  .hero,
  .grid-two,
  .login-strip,
  .admin-create,
  .area-create,
  .content-create,
  .banner-editor-grid,
  .merchant-content-tools,
  .merchant-content-tools--product,
  .merchant-profile-form {
    grid-template-columns: 1fr;
  }

  .merchant-profile-topbar {
    flex-direction: column;
    align-items: stretch;
  }

  .merchant-profile-form__desc {
    grid-column: span 1;
  }

  .main {
    padding: 22px;
  }

  .hero {
    padding: 24px;
  }

  .page-header h2 {
    font-size: 26px;
  }

  .merchant-overview-stats,
  .merchant-overview-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 32px;
  }

  .queue-item,
  .admin-card,
  .content-card,
  .menu-admin-head,
  .menu-admin-product,
  .history-head,
  .editor-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .merchant-order-actions,
  .queue-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .merchant-order-item-line {
    flex-direction: column;
    align-items: flex-start;
  }

  .merchant-summary {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  body {
    background: #f3ebde;
  }

  .login-page {
    padding: 14px;
  }

  .login-page__intro,
  .login-page__panel {
    padding: 22px;
    border-radius: 24px;
  }

  .login-page__tips {
    grid-template-columns: 1fr;
  }

  .sidebar,
  .main {
    padding: 16px;
  }

  .brand {
    align-items: flex-start;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .login-strip {
    gap: 10px;
  }

  .hero,
  .page-header,
  .panel {
    padding: 18px;
    border-radius: 20px;
  }

  h1 {
    font-size: 26px;
  }

  .page-header h2,
  .panel-head h2 {
    font-size: 22px;
  }

  .panel-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .merchant-summary {
    grid-template-columns: 1fr;
  }

  .asset-preview-modal__dialog {
    width: calc(100vw - 24px);
    margin-top: 12px;
    max-height: calc(100vh - 24px);
    padding: 16px;
    border-radius: 22px;
  }

  .action-note-modal__dialog {
    width: calc(100vw - 24px);
    margin-top: 12px;
    padding: 18px;
    border-radius: 22px;
  }

  .action-note-modal__footer {
    flex-direction: column-reverse;
  }

  button,
  .wide-button,
  .ghost-button,
  .login-input {
    width: 100%;
  }
}
