:root {
  color-scheme: light;
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-2: #eef4f7;
  --line: #d9e1e7;
  --text: #1d2730;
  --muted: #687782;
  --accent: #0f8b8d;
  --accent-2: #e05263;
  --accent-3: #f2c14e;
  --success: #268453;
  --warning: #b7791f;
  --danger: #c43d4b;
  --shadow: 0 16px 40px rgba(36, 48, 60, 0.08);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  letter-spacing: 0;
}

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

button {
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.54;
}

a {
  color: var(--accent);
}

.hidden {
  display: none !important;
}

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  --auth-accent: var(--accent);
  background:
    linear-gradient(135deg, rgba(15, 139, 141, 0.12), transparent 38%),
    linear-gradient(315deg, rgba(224, 82, 99, 0.1), transparent 36%),
    var(--bg);
}

.auth-page.auth-buyer {
  --accent: #0f8b8d;
  --accent-2: #e05263;
  background:
    linear-gradient(135deg, rgba(15, 139, 141, 0.15), transparent 42%),
    linear-gradient(315deg, rgba(224, 82, 99, 0.11), transparent 38%),
    #f6f8fb;
}

.auth-page.auth-seller {
  --accent: #304f5a;
  --accent-2: #0f8b8d;
  background:
    linear-gradient(135deg, rgba(48, 79, 90, 0.14), transparent 46%),
    linear-gradient(315deg, rgba(242, 193, 78, 0.14), transparent 34%),
    #f7f9fb;
}

.auth-page.auth-admin {
  --accent: #1d2730;
  --accent-2: #c43d4b;
  background:
    linear-gradient(135deg, rgba(29, 39, 48, 0.16), transparent 44%),
    linear-gradient(315deg, rgba(196, 61, 75, 0.12), transparent 36%),
    #f5f7fa;
}

.catalog-page {
  min-height: 100vh;
  --deal-red: #d71920;
  --deal-red-dark: #b91018;
  --deal-orange: #ff7a00;
  --deal-orange-soft: #fff2e8;
  --deal-ink: #2b1b16;
  background: #fff6f1;
}

.catalog-header {
  position: sticky;
  top: 0;
  z-index: 8;
  min-height: 76px;
  padding: 14px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.catalog-page .catalog-header {
  display: none;
}

.catalog-hero {
  padding: 28px 30px;
  max-width: 1180px;
  margin: 18px auto 0;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 34%),
    linear-gradient(135deg, var(--deal-orange), var(--deal-red));
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(215, 25, 32, 0.18);
}

.catalog-hero h1 {
  margin: 8px 0 10px;
  max-width: 760px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.04;
  letter-spacing: 0;
}

.catalog-hero .muted {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 16px;
}

.catalog-hero .eyebrow {
  color: rgba(255, 255, 255, 0.82);
}

.browser-notice {
  display: inline-flex;
  align-items: center;
  margin: 16px 0 0;
  padding: 10px 12px;
  color: #5a2100;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 850;
}

.catalog-content {
  max-width: 1240px;
  margin: 0 auto;
  width: 100%;
}

.auth-panel {
  width: min(1080px, 100%);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  align-items: center;
}

.auth-seller .auth-panel {
  width: min(1120px, 100%);
  grid-template-columns: 0.95fr 1.05fr;
}

.auth-admin .auth-panel {
  width: min(980px, 100%);
  grid-template-columns: 0.95fr 0.76fr;
}

.auth-panel h1 {
  margin: 10px 0 14px;
  max-width: 620px;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.02;
  letter-spacing: 0;
}

.auth-panel .muted {
  max-width: 560px;
  font-size: 17px;
}

.auth-box,
.panel,
.list-card,
.table-wrap,
.modal-body {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.auth-box {
  padding: 24px;
}

.auth-buyer .auth-box {
  border-top: 4px solid #0f8b8d;
}

.auth-seller .auth-box {
  border-top: 4px solid #304f5a;
  box-shadow: 0 18px 42px rgba(48, 79, 90, 0.1);
}

.auth-admin .auth-box {
  border-top: 4px solid #c43d4b;
  box-shadow: 0 18px 44px rgba(29, 39, 48, 0.13);
}

.portal-label {
  width: fit-content;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  margin: 0 0 14px;
  border: 1px solid rgba(15, 139, 141, 0.22);
  border-radius: 999px;
  color: #0d4f51;
  background: rgba(15, 139, 141, 0.1);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
}

.auth-seller .portal-label {
  color: #304f5a;
  background: rgba(48, 79, 90, 0.1);
  border-color: rgba(48, 79, 90, 0.24);
}

.auth-admin .portal-label {
  color: #8f2631;
  background: rgba(196, 61, 75, 0.1);
  border-color: rgba(196, 61, 75, 0.24);
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  margin-bottom: 18px;
  background: var(--surface-2);
  border-radius: 8px;
}

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

.segmented button {
  min-height: 40px;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
}

.segmented button.active {
  color: var(--text);
  background: var(--surface);
  box-shadow: 0 4px 14px rgba(36, 48, 60, 0.1);
}

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

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

label small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  outline: none;
}

.language-select {
  display: inline-grid;
  gap: 6px;
  min-width: 132px;
}

.language-select label {
  color: var(--muted);
  font-size: 12px;
}

.language-select select {
  min-height: 36px;
  background: #fff;
}

.auth-language {
  margin-bottom: 26px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.compact-language {
  min-width: 118px;
}

input,
select {
  min-height: 42px;
  padding: 0 12px;
}

textarea {
  min-height: 92px;
  resize: vertical;
  padding: 12px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 139, 141, 0.14);
}

.primary,
.secondary,
.ghost,
.danger {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 6px;
  font-weight: 750;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.primary {
  color: #fff;
  background: var(--accent);
}

.secondary {
  color: #fff;
  background: #304f5a;
}

.ghost {
  color: var(--text);
  background: var(--surface-2);
}

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

.full {
  width: 100%;
}

.demo-line,
.muted {
  margin: 0;
  color: var(--muted);
}

.demo-line {
  font-size: 12px;
  line-height: 1.5;
}

.back-catalog {
  margin-top: 14px;
}

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

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  background: #ffffff;
  border-right: 1px solid var(--line);
}

.brand,
.user-badge {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 8px;
  font-weight: 900;
}

.seller-market-mark {
  width: auto;
  min-width: 58px;
  height: 32px;
  padding: 0 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--deal-orange, #ff7a00), var(--deal-red, #d71920));
  border-radius: 6px;
  font-size: 12px;
  letter-spacing: 0;
  box-shadow: 0 8px 18px rgba(215, 25, 32, 0.18);
}

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

.brand span,
.user-badge small {
  color: var(--muted);
  font-size: 12px;
}

.nav-list {
  display: grid;
  gap: 8px;
  flex: 1;
  align-content: start;
}

.nav-list button {
  min-height: 42px;
  padding: 0 12px;
  text-align: left;
  color: var(--muted);
  background: transparent;
  border-radius: 6px;
  font-weight: 750;
}

.nav-list button.active,
.nav-list button:hover {
  color: var(--text);
  background: var(--surface-2);
}

.workspace {
  min-width: 0;
}

.topbar {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 30px;
  background: rgba(246, 248, 251, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 5;
}

.topbar h2 {
  margin: 4px 0 0;
  font-size: 28px;
  letter-spacing: 0;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.user-badge {
  padding: 8px 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: #304f5a;
  font-weight: 850;
}

.content {
  padding: 30px;
  display: grid;
  gap: 22px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.metric {
  min-height: 104px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
}

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

.metric strong {
  display: block;
  margin-top: 10px;
  font-size: 30px;
}

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

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.panel {
  padding: 18px;
  box-shadow: none;
}

.panel h3,
.list-card h3 {
  margin: 0 0 14px;
  font-size: 18px;
}

.task-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(280px, 1fr));
  gap: 16px;
}

.flash-sale-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  color: #fff;
  background:
    linear-gradient(90deg, var(--deal-ink, #2b1b16), #451f15 56%, var(--deal-red, #d71920));
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(43, 27, 22, 0.16);
}

.flash-sale-strip div {
  display: grid;
  gap: 2px;
}

.flash-sale-strip span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 850;
}

.flash-sale-strip strong {
  font-size: 22px;
  line-height: 1.1;
}

.flash-sale-strip p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  text-align: right;
}

.flash-grid {
  gap: 16px;
}

.catalog-status-section {
  margin-top: 18px;
}

.catalog-section-head {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 10px;
}

.catalog-section-head h2 {
  margin: 0;
  font-size: 20px;
  color: #3f2115;
}

.catalog-section-head span {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  color: var(--deal-red, #d71920);
  background: rgba(215, 25, 32, 0.08);
  font-size: 12px;
  font-weight: 900;
}

.list-card {
  overflow: hidden;
  box-shadow: none;
}

.flash-card {
  border-color: rgba(215, 25, 32, 0.18);
  background: #fff;
  box-shadow: 0 14px 30px rgba(215, 25, 32, 0.08);
}

.cover {
  height: 150px;
  background: linear-gradient(135deg, rgba(15, 139, 141, 0.16), rgba(224, 82, 99, 0.16));
  overflow: hidden;
}

.flash-cover {
  position: relative;
  height: 164px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-bottom: 1px solid #f1d8cc;
}

.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.flash-cover img {
  object-fit: contain;
}

.flash-ribbon,
.stock-chip,
.flash-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.flash-ribbon {
  position: absolute;
  top: 12px;
  left: 12px;
  color: #fff;
  background: var(--deal-red, #d71920);
  box-shadow: 0 8px 18px rgba(215, 25, 32, 0.26);
}

.stock-chip {
  position: absolute;
  right: 12px;
  bottom: 12px;
  color: var(--deal-red, #d71920);
  background: rgba(255, 255, 255, 0.93);
  border: 1px solid rgba(215, 25, 32, 0.18);
}

.card-body {
  padding: 16px;
  display: grid;
  gap: 12px;
}

.flash-card .card-body {
  padding: 14px;
  gap: 10px;
}

.card-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.card-title h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.35;
}

.flash-card .card-title h3 {
  font-size: 16px;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.flash-status {
  color: var(--deal-red, #d71920);
  background: rgba(215, 25, 32, 0.1);
}

.flash-status.available {
  color: var(--deal-red, #d71920);
  background: rgba(215, 25, 32, 0.1);
}

.flash-status.upcoming {
  color: #7c4a03;
  background: rgba(242, 193, 78, 0.2);
}

.flash-status.soldout {
  color: #64717d;
  background: #eef2f5;
}

.flash-status.ended {
  color: var(--muted);
  background: #eef2f5;
}

.badge {
  flex: 0 0 auto;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
  color: #0d4f51;
  background: rgba(15, 139, 141, 0.12);
}

.badge.warn {
  color: #7c4a03;
  background: rgba(242, 193, 78, 0.2);
}

.badge.done {
  color: #17633d;
  background: rgba(38, 132, 83, 0.14);
}

.badge.danger {
  color: #8f2631;
  background: rgba(196, 61, 75, 0.13);
}

.rocket-badge {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0;
  color: transparent;
  background: transparent;
  border: 0;
}

.rocket-badge img {
  width: 108px;
  height: 30px;
  display: block;
}

.meta {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
}

.product-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.flash-card .product-price {
  align-items: center;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.product-price span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.flash-card .product-price > span {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  color: #fff;
  background: var(--deal-red, #d71920);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.price-stack {
  display: flex;
  align-items: baseline;
  gap: 8px;
  justify-content: flex-end;
  text-align: right;
}

.price-stack strong {
  color: #8b98a3;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  text-decoration-color: #7d8994;
}

.price-stack b {
  color: var(--deal-red, #d71920);
  font-size: 28px;
  font-weight: 900;
  line-height: 1.05;
}

.flash-card .price-stack b {
  font-size: 31px;
}

.flow-product .product-price {
  min-width: 178px;
  padding: 0;
  border: 0;
  background: transparent;
}

.deal-countdown {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 34px;
  padding: 0 12px;
  color: #fff;
  background: linear-gradient(90deg, #ff7a00, #d71920);
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(215, 25, 32, 0.16);
}

.deal-countdown.upcoming {
  color: #fff;
  background: linear-gradient(90deg, #ffb000, #ff7a00);
  border: 0;
}

.deal-countdown span {
  font-size: 12px;
  font-weight: 850;
}

.deal-countdown strong {
  font-size: 17px;
  letter-spacing: 0;
}

.flash-stock {
  display: grid;
  gap: 6px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.flash-stock div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.flash-stock span {
  color: #8b98a3;
  font-size: 11px;
  font-weight: 800;
}

.flash-stock strong {
  color: var(--deal-red, #d71920);
  font-size: 13px;
}

.stock-bar {
  height: 6px;
  overflow: hidden;
  background: #f0e4df;
  border-radius: 999px;
}

.stock-bar i {
  display: block;
  width: var(--stock-progress, 0%);
  height: 100%;
  background: linear-gradient(90deg, var(--deal-orange, #ff7a00), var(--deal-red, #d71920));
  border-radius: inherit;
}

.flash-product-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.flash-product-tags > span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.2;
}

.delivery-tag {
  min-height: 30px;
  padding: 0;
  background: transparent;
  border: 0;
}

.heat-tag {
  gap: 5px;
  padding: 0 10px;
  color: #6b3b04;
  background: #fff8e9;
  border: 1px solid rgba(255, 176, 0, 0.28);
}

.heat-tag small {
  color: #b46400;
  font-size: 11px;
  font-weight: 900;
}

.heat-tag b {
  color: var(--deal-red, #d71920);
  font-size: 12px;
  font-weight: 950;
}

.flash-mini-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.flash-mini-meta span {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  background: #f4f7f9;
  border-radius: 999px;
}

.flash-card .limit-note {
  border-color: rgba(215, 25, 32, 0.16);
  color: #7c313b;
  background: #fff8ea;
}

.flash-rule {
  padding: 7px 9px;
  font-size: 12px;
}

.flash-cta {
  min-height: 46px;
  background: var(--deal-red, #d71920);
  font-size: 16px;
}

.flash-cta:hover {
  background: var(--deal-red-dark, #b91018);
}

.limit-note {
  padding: 10px 12px;
  color: #6d4a06;
  background: rgba(242, 193, 78, 0.18);
  border: 1px solid rgba(242, 193, 78, 0.34);
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.45;
}

.flow-box {
  display: grid;
  gap: 16px;
}

.flow-product {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.flow-product > strong {
  font-size: 18px;
  line-height: 1.35;
}

.flow-box h4 {
  margin: 0 0 8px;
  font-size: 15px;
}

.flow-box p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.flow-steps {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.7;
}

.activity-rules {
  padding: 16px;
  background: #fffdf7;
  border: 1px solid rgba(255, 176, 0, 0.24);
  border-radius: 8px;
}

.rule-list {
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.6;
}

.rule-list li + li {
  margin-top: 7px;
}

.search-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  padding: 0 12px;
  color: #52616e;
  background: #f8fafb;
  border-radius: 8px;
}

.search-preview span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.search-preview strong {
  color: var(--text);
  font-size: 14px;
  text-align: right;
}

.kakao-rule-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
  align-items: center;
  padding: 18px;
  color: #191600;
  background: #fee500;
  border: 1px solid #f1d600;
  border-radius: 8px;
}

.kakao-rule-card span {
  color: rgba(25, 22, 0, 0.72);
  font-size: 12px;
  font-weight: 900;
}

.kakao-rule-card strong {
  display: block;
  margin: 4px 0 8px;
  color: #191600;
  font-size: 24px;
  font-weight: 950;
}

.kakao-rule-card p {
  color: rgba(25, 22, 0, 0.76);
}

.browser-flow-note,
.rule-link-row {
  margin-top: 10px;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 850;
}

.browser-flow-note {
  color: #6a3900;
  background: #fff7e8;
  border: 1px solid #f3d39d;
}

.rule-link-row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  color: #191600;
  background: #fffdf0;
  border: 1px solid #f1d600;
}

.rule-link-row span {
  color: rgba(25, 22, 0, 0.68);
  font-size: 12px;
  font-weight: 950;
}

.rule-link-row a,
.kakao-group-link {
  color: #0b4f8a;
  font-weight: 950;
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.kakao-group-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  margin-top: 12px;
  padding: 0 14px;
  color: #191600;
  background: #fff;
  border: 1px solid rgba(25, 22, 0, 0.18);
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 8px 16px rgba(25, 22, 0, 0.08);
}

.kakao-rule-card img {
  width: 300px;
  height: auto;
  display: block;
  object-fit: contain;
  background: #fff;
  border: 8px solid #fff;
  border-radius: 8px;
  box-shadow: 0 12px 24px rgba(25, 22, 0, 0.12);
}

.ack-check {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  color: #1d2730;
  background: #f8fafb;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 900;
}

.ack-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--deal-red, #d71920);
}

.meta div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 6px;
}

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

.order-deadline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 6px 0 10px;
  padding: 12px 14px;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  background: #fff7ed;
}

.order-deadline div {
  display: grid;
  gap: 4px;
}

.order-deadline strong {
  color: #9a3412;
  font-size: 13px;
}

.order-deadline span {
  color: #7c2d12;
  font-size: 12px;
  line-height: 1.45;
}

.order-deadline b {
  color: var(--deal-red, #d71920);
  font-size: 18px;
  white-space: nowrap;
}

.order-deadline.expired {
  border-color: #fecdd3;
  background: #fff1f2;
}

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

.buyer-stage {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.buyer-stage.current {
  border-color: rgba(15, 139, 141, 0.34);
  background: rgba(15, 139, 141, 0.05);
}

.buyer-stage.done {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.buyer-stage.waiting {
  border-color: #fed7aa;
  background: #fff7ed;
}

.buyer-stage.locked {
  color: #7b8794;
  background: #f8fafc;
}

.stage-index {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--accent);
  font-weight: 900;
}

.buyer-stage.done .stage-index {
  background: #16a34a;
}

.buyer-stage.waiting .stage-index {
  background: #f97316;
}

.buyer-stage.locked .stage-index {
  background: #94a3b8;
}

.consult-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 2px;
}

.consult-strip > span,
.compact-note {
  max-width: 100%;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.message-count {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  margin-left: 5px;
  padding: 0 6px;
  border-radius: 999px;
  color: #0f766e;
  background: #ccfbf1;
  font-size: 11px;
  font-weight: 900;
}

.stage-copy {
  display: grid;
  gap: 7px;
  min-width: 0;
}

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

.stage-head strong {
  font-size: 14px;
}

.stage-head em {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.stage-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.stage-review-guide {
  padding: 10px;
  background: rgba(255, 255, 255, 0.72);
}

.table-wrap {
  overflow: auto;
  box-shadow: none;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}

th {
  color: var(--muted);
  background: #fbfcfd;
  font-size: 12px;
}

tr:last-child td {
  border-bottom: 0;
}

.empty {
  padding: 28px;
  text-align: center;
  color: var(--muted);
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: 8px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(29, 39, 48, 0.42);
}

.modal-body {
  width: min(760px, 100%);
  max-height: min(820px, 92vh);
  overflow: auto;
  padding: 20px;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.modal-head h3 {
  margin: 0;
  font-size: 21px;
}

.close-btn {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: var(--surface-2);
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  max-width: 380px;
  padding: 12px 14px;
  color: #fff;
  background: #1d2730;
  border-radius: 8px;
  opacity: 0;
  transform: translateY(8px);
  transition: 180ms ease;
  pointer-events: none;
}

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

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

.verify-box {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
}

.verify-head {
  display: grid;
  gap: 4px;
}

.verify-head strong {
  color: #1d4ed8;
  font-size: 13px;
}

.verify-head span {
  color: #475569;
  font-size: 12px;
  line-height: 1.5;
}

.verify-row {
  display: grid;
  gap: 4px;
}

.verify-row span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.verify-row code {
  display: block;
  max-width: 100%;
  padding: 8px 9px;
  overflow-wrap: anywhere;
  white-space: normal;
  color: #1e293b;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(147, 197, 253, 0.72);
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  line-height: 1.45;
}

.publish-lookup-actions {
  margin-top: -4px;
}

.lookup-preview {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.lookup-thumb {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--muted);
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 750;
}

.lookup-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lookup-main,
.lookup-stats {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.lookup-main strong {
  line-height: 1.35;
}

.lookup-main span,
.lookup-stats span {
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.lookup-stats {
  min-width: 148px;
  justify-items: end;
}

.schedule-editor {
  display: grid;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.schedule-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.schedule-editor-head strong,
.schedule-editor-head span {
  display: block;
}

.schedule-editor-head span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.schedule-table-wrap {
  overflow-x: auto;
}

.schedule-table {
  min-width: 620px;
}

.schedule-table th,
.schedule-table td {
  padding: 8px;
}

.schedule-table input {
  min-height: 38px;
}

.schedule-table td:last-child {
  width: 88px;
}

.schedule-remove {
  width: 100%;
}

.schedule-total {
  margin: 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 850;
}

.review-requirement {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.review-requirement-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.review-requirement-head strong {
  color: var(--text);
  font-size: 15px;
}

.review-requirement-head span,
.review-guidance span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.review-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 10px;
}

label.review-option {
  position: relative;
  min-height: 46px;
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  background: #fbfcfd;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

label.review-option:hover {
  border-color: rgba(15, 139, 141, 0.42);
  background: rgba(15, 139, 141, 0.05);
}

label.review-option:has(input[type="radio"]:checked) {
  color: #0d4f51;
  border-color: var(--accent);
  background: rgba(15, 139, 141, 0.09);
  box-shadow: 0 0 0 3px rgba(15, 139, 141, 0.08);
}

label.review-option input[type="radio"] {
  width: 17px !important;
  height: 17px;
  min-width: 17px;
  min-height: 17px;
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
  appearance: none;
  border: 2px solid #9aa9b4;
  border-radius: 999px;
  background: #fff;
  accent-color: var(--accent);
}

label.review-option input[type="radio"]:checked {
  border-color: var(--accent);
  background: radial-gradient(circle at center, var(--accent) 0 43%, #fff 47% 100%);
}

label.review-option span {
  min-width: 0;
  line-height: 1.35;
}

.review-requirement > .limit-note {
  width: fit-content;
  margin: -2px 0 0;
  padding: 7px 10px;
  border-radius: 999px;
}

.custom-review-fields {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(220px, 0.7fr);
  gap: 14px;
}

.review-guidance {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(15, 139, 141, 0.22);
  border-radius: 8px;
  background: linear-gradient(180deg, #f0fdfa 0%, #fbfcfd 100%);
}

.review-guidance strong {
  font-size: 14px;
}

.review-guidance p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.review-guidance b {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
}

.guide-kicker {
  width: fit-content;
  padding: 4px 8px;
  color: #0f766e !important;
  background: #ccfbf1;
  border-radius: 999px;
  font-weight: 900;
}

.review-guide-steps {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0 0 0 18px;
  color: #334155;
  font-size: 13px;
  line-height: 1.5;
}

.seller-review-note {
  padding: 9px 10px;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  background: #fff7ed;
}

.payout-section {
  display: grid;
  gap: 10px;
  padding: 13px;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  background: #f0fdf4;
}

.profile-panel {
  max-width: 920px;
}

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

.profile-head span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.profile-head h3 {
  margin: 4px 0 0;
}

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

.payout-head strong {
  color: #166534;
  font-size: 14px;
}

.payout-head span {
  padding: 3px 8px;
  color: #15803d;
  background: #dcfce7;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.payout-section p {
  margin: 0;
  color: #3f5f4a;
  font-size: 12px;
  line-height: 1.45;
}

.payout-warning {
  width: fit-content;
  padding: 7px 9px;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  color: #9a3412 !important;
  background: #fff7ed;
  font-weight: 800;
}

.payout-preview {
  display: grid;
  gap: 4px;
  margin-top: 9px;
  padding: 9px;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  background: #f0fdf4;
}

.payout-preview strong {
  color: #166534;
  font-size: 12px;
}

.payout-preview span,
.payout-preview small {
  color: #475569;
  font-size: 12px;
}

.payout-preview code {
  width: fit-content;
  max-width: 100%;
  padding: 4px 7px;
  overflow-wrap: anywhere;
  color: #1e293b;
  background: #fff;
  border: 1px solid #dcfce7;
  border-radius: 6px;
  font-size: 12px;
}

.chat-panel {
  display: grid;
  gap: 12px;
}

.chat-thread {
  display: grid;
  align-content: start;
  gap: 10px;
  max-height: min(52vh, 420px);
  overflow: auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.chat-message {
  max-width: 82%;
  display: grid;
  gap: 5px;
  justify-self: start;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.chat-message.mine {
  justify-self: end;
  border-color: rgba(15, 139, 141, 0.24);
  background: #ecfeff;
}

.chat-message.system {
  max-width: 100%;
  justify-self: center;
  border-color: #fed7aa;
  background: #fff7ed;
}

.chat-message div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.chat-message strong {
  color: var(--text);
  font-size: 12px;
}

.chat-message time {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.chat-message p {
  margin: 0;
  white-space: pre-wrap;
  color: #334155;
  font-size: 13px;
  line-height: 1.55;
}

.chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
}

.chat-form textarea {
  min-height: 52px;
  resize: vertical;
}

.schedule-list {
  display: grid;
  gap: 7px;
  padding: 10px 12px;
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.schedule-list span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.schedule-list strong {
  color: var(--text);
}

.schedule-list b {
  color: var(--accent);
}

.small-link {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  text-decoration: none;
  background: #fff;
}

@media (max-width: 1120px) {
  .task-grid,
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .review-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .auth-panel,
  .app-shell,
  .grid-2,
  .grid-3,
  .task-grid,
  .metrics {
    grid-template-columns: 1fr;
  }

  .auth-seller .auth-panel,
  .auth-admin .auth-panel {
    grid-template-columns: 1fr;
  }

  .auth-page {
    padding: 18px;
  }

  .auth-panel h1 {
    font-size: 40px;
  }

  .sidebar {
    position: static;
    height: auto;
    padding: 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-list {
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .nav-list button {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .topbar {
    position: static;
    padding: 18px;
    align-items: flex-start;
    flex-direction: column;
  }

  .catalog-header {
    position: static;
    padding: 16px;
    align-items: flex-start;
    flex-direction: column;
  }

  .catalog-hero {
    margin: 14px 16px 0;
    padding: 22px 18px;
  }

  .catalog-hero h1 {
    font-size: 36px;
  }

  .flash-sale-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .flash-sale-strip p {
    text-align: left;
  }

  .flash-cover {
    height: 156px;
  }

  .flash-product-tags > span {
    min-height: 26px;
    font-size: 11px;
  }

  .kakao-rule-card {
    grid-template-columns: 1fr;
  }

  .kakao-rule-card img {
    width: min(280px, 100%);
    height: auto;
    justify-self: center;
  }

  .rule-link-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .search-preview {
    align-items: flex-start;
    flex-direction: column;
    padding: 10px 12px;
  }

  .search-preview strong {
    text-align: left;
  }

  .order-deadline {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .buyer-stage {
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: flex-start;
  }

  .buyer-stage button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .chat-message {
    max-width: 94%;
  }

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

  .stage-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .top-actions {
    width: 100%;
    justify-content: space-between;
  }

  .content {
    padding: 18px;
  }

  .lookup-preview {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .lookup-thumb {
    width: 64px;
    height: 64px;
  }

  .lookup-stats {
    grid-column: 1 / -1;
    justify-items: start;
  }

  .schedule-editor-head {
    align-items: stretch;
    flex-direction: column;
  }

  .review-options,
  .custom-review-fields {
    grid-template-columns: 1fr;
  }
}
