:root {
  --blue: #f13f75;
  --blue-deep: #2b1720;
  --blue-soft: #fff1f5;
  --gold: #e8a52b;
  --gold-soft: #fff6df;
  --ink: #2d2529;
  --muted: #6f7787;
  --line: #e7ebf2;
  --bg: #f7f4f5;
  --card: #ffffff;
  --danger: #d92d20;
  --success: #14804a;
  --shadow: 0 18px 48px rgba(69, 35, 48, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

.hidden {
  display: none !important;
}

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

button {
  min-height: 40px;
  border: 0;
  border-radius: 14px;
  padding: 0 18px;
  color: #fff;
  background: var(--blue);
  font-weight: 700;
  cursor: pointer;
}

button:hover {
  filter: brightness(0.96);
}

button:active {
  transform: translateY(1px);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
  transform: none;
}

button.ghost {
  color: var(--blue);
  background: #fff;
  border: 1px solid var(--line);
}

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

button.danger-confirm {
  background: var(--danger);
  color: #fff;
}

button.gold {
  background: var(--gold-soft);
  color: var(--blue-deep);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 11px 13px;
  background: #fff;
  color: var(--ink);
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(0, 63, 158, 0.45);
  box-shadow: 0 0 0 4px rgba(0, 63, 158, 0.08);
}

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

.login-screen {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 28px;
}

.login-card {
  width: min(430px, 100%);
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.login-card h1 {
  margin: 24px 0 8px;
  color: var(--blue-deep);
}

.login-card p {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.7;
}

.login-card label {
  margin-bottom: 14px;
}

.login-card button {
  width: 100%;
  margin-top: 4px;
}

.login-card small {
  display: block;
  min-height: 22px;
  margin-top: 12px;
  color: var(--danger);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px 20px;
  background: #321923;
  color: #fff;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.brand.compact {
  margin-bottom: 0;
  color: var(--blue-deep);
}

.brand.compact span {
  color: var(--muted);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: var(--blue-deep);
  background: #fff5f8;
  font-weight: 900;
}

.brand strong,
.brand span {
  display: block;
}

.brand span {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
}

.nav {
  display: block;
  width: 100%;
  margin: 8px 0;
  text-align: left;
  color: rgba(255, 255, 255, 0.72);
  background: transparent;
  border: 1px solid transparent;
}

.nav.active,
.nav:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.1);
}

.notice {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 22px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  line-height: 1.6;
}

.notice strong,
.notice span {
  display: block;
}

.main {
  padding: 28px 34px 54px;
}

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

.topbar h1,
.section-head h2 {
  margin: 0;
  color: var(--blue-deep);
  font-size: 30px;
  letter-spacing: 0;
}

.section-head h2 {
  font-size: 25px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.topbar-actions,
.filters,
.button-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filters {
  width: min(520px, 100%);
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--success);
  background: #ecfff5;
  font-weight: 700;
}

.session {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--blue-deep);
  background: #fff;
  border: 1px solid var(--line);
  font-weight: 800;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.dashboard-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin: 8px 0 24px;
  padding: 20px 0 6px;
}

.dashboard-intro h2 {
  margin: 0;
  color: var(--blue-deep);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.dashboard-intro p:last-child {
  max-width: 720px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
  text-wrap: pretty;
}

.role-badge {
  flex: none;
  padding: 9px 12px;
  border: 1px solid #f0d7df;
  border-radius: 10px;
  color: #8e3652;
  background: #fff8fa;
  font-size: 13px;
  font-weight: 800;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.metric {
  padding: 20px;
  border: 1px solid rgba(231, 235, 242, 0.88);
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 10px 30px rgba(69, 35, 48, 0.045);
}

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

.metric strong {
  display: block;
  margin-top: 8px;
  color: var(--blue);
  font-size: 32px;
  font-variant-numeric: tabular-nums;
}

.metric small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
}

.dashboard-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.dashboard-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 42px rgba(69, 35, 48, 0.055);
}

.dashboard-panel:only-child {
  grid-column: 1 / -1;
}

.dashboard-panel > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--line);
}

.dashboard-panel.emphasis > header {
  background: linear-gradient(100deg, #fff8fa, rgba(255, 255, 255, 0.94));
}

.dashboard-panel header p {
  margin: 0 0 5px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.dashboard-panel header h3 {
  margin: 0;
  color: var(--blue-deep);
  font-size: 21px;
  letter-spacing: -0.02em;
}

.dashboard-panel header > span {
  max-width: 220px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  text-align: right;
}

.dashboard-rows {
  padding: 0 24px;
}

.dashboard-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 84px;
  border-bottom: 1px solid var(--line);
}

.dashboard-row:last-child {
  border-bottom: 0;
}

.dashboard-row-copy strong,
.dashboard-row-copy span {
  display: block;
}

.dashboard-row-copy strong {
  color: var(--blue-deep);
  font-size: 15px;
}

.dashboard-row-copy span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.dashboard-row-side {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.dashboard-row-side b {
  min-width: 28px;
  color: var(--blue);
  font-size: 24px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.dashboard-row-action {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #f1d5de;
  border-radius: 10px;
  color: #a62d53;
  background: #fff8fa;
  font-size: 12px;
}

.dashboard-shortcuts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 18px 24px 24px;
}

.dashboard-shortcut {
  min-height: 82px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--blue-deep);
  background: #fff;
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.dashboard-shortcut:hover {
  border-color: #eab5c5;
  box-shadow: 0 10px 24px rgba(69, 35, 48, 0.07);
  transform: translateY(-2px);
}

.dashboard-shortcut strong,
.dashboard-shortcut span {
  display: block;
}

.dashboard-shortcut span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
}

.grid {
  display: grid;
  gap: 18px;
}

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

.card {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.card h2,
.card h3 {
  margin: 0 0 16px;
  color: var(--blue-deep);
}

.steps,
.plain-list {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.8;
}

.link-list {
  display: grid;
  gap: 10px;
}

.link-list a {
  display: block;
  padding: 13px 14px;
  border-radius: 14px;
  color: var(--blue);
  background: var(--blue-soft);
  text-decoration: none;
  font-weight: 700;
}

.form-card {
  display: grid;
  gap: 12px;
}

.product-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 22px;
  align-items: start;
}

.product-editor {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.editor-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.editor-toolbar h3,
.editor-section h4 {
  margin: 0;
  color: var(--blue-deep);
}

.editor-kicker {
  margin: 0 0 4px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.editor-save-note {
  max-width: 360px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  text-align: right;
}

.editor-section {
  padding: 28px;
  border-bottom: 1px solid var(--line);
}

.editor-section-title {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}

.editor-section-title > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 11px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.editor-section-title h4 {
  font-size: 17px;
}

.editor-section-title p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.field-grid {
  display: grid;
  gap: 14px;
}

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

.field-wide {
  grid-column: 1 / -1;
}

.media-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(340px, 1.15fr);
  gap: 22px;
}

.media-group {
  min-width: 0;
}

.media-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.media-heading strong {
  color: var(--ink);
  font-size: 13px;
}

.media-heading span {
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}

.main-media-box {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 12px;
}

.main-media-preview {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: 18px;
  color: var(--muted);
  background: #f5f1f2;
  font-size: 12px;
}

.main-media-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.main-media-preview button {
  position: absolute;
  right: 8px;
  bottom: 8px;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 9px;
  color: #fff;
  background: rgba(43, 23, 32, 0.78);
  font-size: 11px;
}

.media-dropzone {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 150px;
  padding: 18px;
  border: 1.5px dashed #d9bcc6;
  border-radius: 18px;
  color: var(--blue-deep);
  background: #fff9fb;
  text-align: center;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.media-dropzone:hover,
.media-dropzone.is-dragging {
  border-color: var(--blue);
  background: var(--blue-soft);
  transform: translateY(-1px);
}

.media-dropzone:focus-visible {
  outline: 3px solid rgba(241, 63, 117, 0.2);
  outline-offset: 3px;
}

.media-dropzone input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.media-dropzone strong,
.media-dropzone small {
  display: block;
}

.media-dropzone small {
  margin-top: 5px;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.5;
}

.drop-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 8px;
  border-radius: 11px;
  color: #fff;
  background: var(--blue);
  font-size: 22px;
  line-height: 1;
}

.detail-dropzone {
  min-height: 104px;
}

.compact-field {
  margin-top: 12px;
}

.detail-media-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin-top: 10px;
}

.detail-media-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #f4f1f2;
  cursor: grab;
  transition: opacity 160ms ease, transform 160ms ease;
}

.detail-media-item.is-dragging {
  opacity: 0.45;
  transform: scale(0.97);
}

.detail-media-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-media-item > span {
  position: absolute;
  left: 6px;
  bottom: 6px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  color: #fff;
  background: rgba(43, 23, 32, 0.75);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.detail-media-item button {
  position: absolute;
  top: 5px;
  right: 5px;
  min-width: 24px;
  min-height: 24px;
  padding: 0;
  border-radius: 8px;
  color: #fff;
  background: rgba(43, 23, 32, 0.78);
}

.media-empty,
.sku-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 14px;
  border-radius: 12px;
  color: var(--muted);
  background: #f8f6f7;
  font-size: 12px;
  text-align: center;
}

.upload-status {
  min-height: 0;
  color: var(--success);
  font-size: 12px;
}

.upload-status.active {
  margin-top: 12px;
  min-height: 18px;
}

.sku-row-head,
.sku-edit-row {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) minmax(150px, 1.4fr) minmax(100px, 0.8fr) minmax(80px, 0.65fr) 38px;
  gap: 9px;
  align-items: center;
}

.sku-row-head {
  padding: 0 3px 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.sku-rows {
  display: grid;
  gap: 9px;
}

.sku-edit-row input {
  min-width: 0;
}

.sku-remove {
  min-height: 38px;
  padding: 0;
  border-radius: 11px;
  color: var(--danger);
  background: #fff0ef;
  font-size: 18px;
}

.add-row-button {
  margin-top: 12px;
  color: var(--blue);
  background: var(--blue-soft);
}

.editor-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 28px 24px;
  background: #fff;
}

.editor-actions button[type="submit"] {
  min-width: 220px;
}

button.text-button {
  color: var(--muted);
  background: transparent;
  font-weight: 600;
}

.product-editor-aside {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 16px;
}

.product-preview-panel {
  padding: 20px;
}

.preview-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.preview-heading p,
.preview-heading h3 {
  margin: 0;
}

.preview-heading p {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
}

.preview-heading h3 {
  font-size: 18px;
}

.preview-heading > span {
  padding: 5px 8px;
  border-radius: 8px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 11px;
  font-weight: 800;
}

.mini-product-card {
  overflow: hidden;
  border: 1px solid #edf0f4;
  border-radius: 20px;
  background: #fff;
}

.mini-product-card.cash {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
}

.mini-product-cover {
  display: grid;
  place-items: center;
  min-height: 150px;
  color: #174160;
  background: #f0f7ff;
  font-weight: 900;
  text-align: center;
}

.mini-product-cover img {
  width: 100%;
  height: 100%;
  min-height: 150px;
  object-fit: cover;
}

.mini-product-copy {
  display: grid;
  align-content: center;
  gap: 9px;
  padding: 16px;
  min-width: 0;
}

.mini-product-copy small {
  overflow: hidden;
  color: #8a8f98;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-product-copy strong {
  overflow: hidden;
  color: #242126;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-product-copy > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mini-product-copy b {
  color: var(--blue);
  font-size: 18px;
}

.mini-product-copy em {
  padding: 5px 9px;
  border-radius: 999px;
  color: #fff;
  background: var(--blue);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.mini-product-card.points .mini-product-cover,
.mini-product-card.points .mini-product-cover img {
  min-height: 220px;
}

.preview-note {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.compact-guidance {
  box-shadow: none;
}

.compact-guidance h3 {
  font-size: 16px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.product-editor-grid .form-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.table-card {
  margin-top: 18px;
  overflow: auto;
}

.table {
  min-width: 760px;
}

.row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.7fr 0.8fr 1fr 1.2fr;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.row.header {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.row strong {
  color: var(--ink);
}

.tag {
  display: inline-flex;
  justify-content: center;
  min-width: 68px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.tag.gold {
  background: var(--gold-soft);
  color: #8b6900;
}

.tag.gray {
  background: #eef1f5;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.actions button {
  min-height: 32px;
  border-radius: 11px;
  padding: 0 11px;
  font-size: 12px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
}

.product-cover {
  display: grid;
  place-items: center;
  min-height: 140px;
  color: var(--blue);
  background: #fff2f6;
  font-weight: 900;
}

.product-cover img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.product-title-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.product-title-line h3 {
  min-width: 0;
}

.guidance {
  align-self: start;
  position: sticky;
  top: 24px;
}

.empty-row,
.empty-state {
  padding: 36px 16px;
  color: var(--muted);
  text-align: center;
}

.positive {
  color: var(--success);
}

.negative {
  color: var(--danger);
}

.action-dialog {
  width: min(520px, calc(100vw - 32px));
  border: 0;
  border-radius: 24px;
  padding: 26px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 30px 90px rgba(45, 22, 31, 0.24);
}

.order-point-review-dialog {
  width: min(1040px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
}

.review-dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.order-point-review-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(360px, 1.1fr);
  gap: 24px;
  margin-top: 18px;
}

.proof-preview {
  min-height: 440px;
  max-height: 70vh;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f7f7f7;
}

.proof-preview img {
  display: block;
  width: 100%;
  height: auto;
}

.review-fields {
  display: grid;
  align-content: start;
  gap: 14px;
}

.checkbox-label {
  display: flex;
  min-height: 48px;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding-top: 22px;
}

.checkbox-label input {
  width: 18px;
  min-height: 18px;
}

.action-dialog::backdrop {
  background: rgba(38, 20, 27, 0.5);
  backdrop-filter: blur(3px);
}

.action-dialog h3 {
  margin: 0 0 8px;
}

.action-dialog .button-row button {
  flex: 1;
}

.dialog-label {
  margin: 0 0 8px;
  color: var(--danger);
  font-size: 13px;
  font-weight: 800;
}

.dialog-summary {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.65;
}

.danger-notice {
  margin: 0 0 20px;
  border: 1px solid #fac5c0;
  border-radius: 14px;
  padding: 14px 16px;
  color: #8a1c14;
  background: #fff7f6;
  line-height: 1.65;
}

.product-body {
  padding: 18px;
}

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

.product-meta {
  display: flex;
  justify-content: space-between;
  margin: 12px 0;
  color: var(--muted);
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  transform: translateY(120px);
  max-width: 360px;
  padding: 14px 18px;
  border-radius: 16px;
  color: #fff;
  background: var(--blue-deep);
  box-shadow: var(--shadow);
  transition: transform 0.24s ease;
  z-index: 20;
}

.toast.show {
  transform: translateY(0);
}

.settings-summary {
  margin-bottom: 18px;
  border-radius: 12px;
  box-shadow: none;
}

.settings-summary strong,
.settings-summary span {
  display: block;
}

.settings-summary span,
.form-heading p,
.settings-item span,
.muted,
.empty-note {
  color: var(--muted);
  line-height: 1.6;
}

.settings-summary span {
  margin-top: 5px;
}

.order-point-layout > .card {
  border: 1px solid #eaeaea;
  border-radius: 12px;
  box-shadow: none;
  animation: quiet-entry 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.order-point-layout > .card:nth-child(2) {
  animation-delay: 80ms;
}

.order-point-layout .form-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.order-point-layout button {
  border-radius: 6px;
}

.form-heading h3,
.form-heading p,
.secondary-head p {
  margin: 0;
}

.form-heading p {
  margin-top: 5px;
  font-size: 13px;
}

.settings-list,
.rule-current {
  display: grid;
  gap: 0;
  margin-top: 8px;
  border-top: 1px solid #eaeaea;
}

.settings-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #eaeaea;
}

.settings-item div,
.settings-item strong,
.settings-item span {
  display: block;
}

.settings-item span {
  margin-top: 3px;
  font-size: 12px;
}

.settings-item button {
  flex: 0 0 auto;
}

.settings-item .settings-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.settings-item.rule {
  align-items: flex-start;
}

.empty-note {
  padding: 18px 0;
  font-size: 13px;
}

.secondary-head {
  margin-top: 34px;
}

.status.warning {
  color: #956400;
  background: #fbf3db;
}

@keyframes quiet-entry {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 820px) {
  .order-point-review-grid {
    grid-template-columns: 1fr;
  }

  .proof-preview {
    min-height: 280px;
    max-height: 52vh;
  }
}

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

  .sidebar {
    position: relative;
    height: auto;
  }

  .notice {
    position: static;
    margin-top: 20px;
  }

  .metrics,
  .grid.two,
  .product-grid,
  .dashboard-content {
    grid-template-columns: 1fr;
  }

  .dashboard-intro,
  .dashboard-panel > header {
    align-items: flex-start;
    flex-direction: column;
  }

  .dashboard-panel header > span {
    text-align: left;
  }

  .dashboard-shortcuts {
    grid-template-columns: 1fr;
  }

  .dashboard-row {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 16px 0;
  }

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

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

  .order-point-layout .form-row,
  .product-editor-grid .form-row,
  .field-grid.two,
  .media-layout {
    grid-template-columns: 1fr;
  }

  .product-workspace {
    grid-template-columns: 1fr;
  }

  .product-editor-aside {
    position: static;
  }

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

  .editor-save-note,
  .media-heading span {
    text-align: left;
  }

  .sku-row-head {
    display: none;
  }

  .sku-edit-row {
    grid-template-columns: 1fr 1fr;
    padding: 12px;
    border-radius: 14px;
    background: #f8f6f7;
  }

  .sku-remove {
    grid-column: 1 / -1;
  }
}

@media (min-width: 981px) and (max-width: 1280px) {
  .product-workspace {
    grid-template-columns: 1fr;
  }

  .product-editor-aside {
    position: static;
    grid-template-columns: 1fr 1fr;
  }
}
