: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-agency {
  --accent: #16615f;
  --accent-2: #d97706;
  background:
    linear-gradient(135deg, rgba(22, 97, 95, 0.14), transparent 44%),
    linear-gradient(315deg, rgba(217, 119, 6, 0.13), transparent 36%),
    #f7f9f8;
}

.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;
  display: grid;
  justify-items: center;
  padding: 18px 0 34px;
  background: #eef1f5;
}

.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-page .catalog-hero {
  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);
}

.catalog-content {
  width: min(454px, 100%);
  max-width: 454px;
  margin: 0 auto;
  padding: 0 10px;
  display: block;
}

.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-agency .auth-panel {
  width: min(1080px, 100%);
  grid-template-columns: 0.9fr 0.82fr;
}

.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-agency .auth-box {
  border-top: 4px solid #16615f;
  box-shadow: 0 18px 42px rgba(22, 97, 95, 0.11);
}

.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-agency .portal-label {
  color: #155e5b;
  background: rgba(22, 97, 95, 0.1);
  border-color: rgba(22, 97, 95, 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;
}

.auth-message {
  margin: 0;
  padding: 10px 12px;
  color: #8f2631;
  background: rgba(196, 61, 75, 0.1);
  border: 1px solid rgba(196, 61, 75, 0.22);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

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

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

.app-shell.agency-share-shell {
  display: block;
  min-height: 100dvh;
  background: #f4f7f9;
}

.agency-share-shell .sidebar,
.agency-share-shell .topbar {
  display: none;
}

.agency-share-shell .workspace {
  display: block;
}

.agency-share-shell .content {
  width: min(760px, 100%);
  max-width: none;
  margin: 0 auto;
  padding: 28px 18px 42px;
}

.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;
}

.admin-metrics {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.admin-control-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.admin-control-panel p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.admin-user-create form {
  align-items: end;
}

.admin-user-create button {
  min-height: 42px;
}

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

.assignment-grid {
  grid-template-columns: repeat(auto-fit, minmax(560px, 1fr));
  align-items: start;
}

@supports (grid-template-columns: repeat(auto-fit, minmax(min(100%, 560px), 1fr))) {
  .assignment-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 560px), 1fr));
  }
}

.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;
}

.activity-group-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  color: #191600;
  background: #ffe500;
  border: 1px solid #f1d600;
  border-radius: 8px;
  box-shadow: 0 12px 24px rgba(255, 184, 0, 0.18);
}

.activity-group-copy {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.activity-group-copy > span {
  color: rgba(25, 22, 0, 0.64);
  font-size: 12px;
  font-weight: 950;
}

.activity-group-copy > strong {
  font-size: 22px;
  line-height: 1.15;
}

.activity-group-copy p {
  margin: 0;
  color: rgba(25, 22, 0, 0.76);
  font-size: 14px;
  font-weight: 750;
}

.activity-group-url {
  width: fit-content;
  max-width: 100%;
  color: #111827;
  font-size: 14px;
  font-weight: 900;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.activity-group-button {
  flex: 0 0 auto;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  color: #ffe500;
  background: #191600;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 950;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(25, 22, 0, 0.18);
}

.sale-app-frame {
  overflow: hidden;
  width: min(780px, 100%);
  min-height: calc(100vh - 52px);
  margin: 0 auto;
  background: #d90429;
  border: 1px solid rgba(151, 0, 24, 0.16);
  border-radius: 0;
  box-shadow: 0 20px 44px rgba(28, 35, 42, 0.16);
}

.catalog-page .catalog-content {
  display: block;
  gap: 0;
  padding: 0 10px;
}

.catalog-page .empty {
  width: min(430px, 100%);
  margin: 0 auto;
  background: #fff;
}

.sale-app-status {
  height: 54px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 54px;
  align-items: center;
  padding: 0 12px;
  color: #161b22;
  background: #fff;
  border-bottom: 1px solid #f1f3f5;
  font-size: 13px;
  font-weight: 850;
}

.sale-app-status strong {
  text-align: center;
  font-size: 16px;
}

.sale-app-status span:last-child {
  text-align: right;
  font-size: 20px;
}

.sale-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  color: rgba(255, 255, 255, 0.86);
  background: #b80025;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.sale-tabs span {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  font-size: 12px;
  font-weight: 850;
  text-align: center;
}

.sale-poster {
  margin: 0;
  padding: 22px 22px 18px;
  color: #fff;
  text-align: center;
  background:
    linear-gradient(180deg, #f00634 0%, #d90429 62%, #bd0024 100%);
}

.sale-poster span {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 10px;
  color: #d90429;
  background: #fff3de;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
}

.sale-poster h2 {
  margin: 10px 0 7px;
  font-size: 28px;
  line-height: 1.08;
  letter-spacing: 0;
}

.sale-poster p {
  max-width: 330px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  line-height: 1.5;
  font-weight: 750;
}

.sale-poster strong {
  width: fit-content;
  max-width: 100%;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  padding: 0 12px;
  color: #511400;
  background: #ffe7bb;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
}

.sale-kakao-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin: 0 12px 12px;
  padding: 14px;
  color: #171500;
  background: #fee500;
  border: 1px solid #f1d600;
  border-radius: 8px;
}

.sale-kakao-card div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.sale-kakao-card span {
  color: rgba(23, 21, 0, 0.62);
  font-size: 11px;
  font-weight: 950;
}

.sale-kakao-card strong {
  font-size: 17px;
  line-height: 1.18;
}

.sale-kakao-card p {
  margin: 0;
  color: rgba(23, 21, 0, 0.76);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 750;
}

.sale-kakao-card a {
  max-width: 100%;
  color: #0b4f8a;
  font-size: 12px;
  font-weight: 900;
  overflow-wrap: anywhere;
  text-underline-offset: 3px;
}

.sale-kakao-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 13px;
  color: #fee500 !important;
  background: #171500;
  border-radius: 6px;
  font-size: 13px !important;
  text-decoration: none;
  white-space: nowrap;
}

.sale-section {
  display: grid;
  gap: 10px;
  padding: 0 12px 12px;
}

.sale-section-head {
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #fff;
}

.sale-section-head h2 {
  margin: 0;
  font-size: 16px;
  line-height: 1.2;
}

.sale-section-head span {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  color: #d90429;
  background: #fff;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 950;
}

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

.sale-product-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 114px minmax(0, 1fr);
  gap: 10px;
  padding: 9px;
  color: #18212b;
  background: #fff;
  border: 1px solid rgba(255, 204, 204, 0.92);
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(85, 0, 16, 0.12);
}

.sale-product-card.soldout,
.sale-product-card.ended {
  opacity: 0.72;
}

.sale-product-media {
  position: relative;
  min-height: 118px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #fff;
  border: 1px solid #f2f4f6;
  border-radius: 6px;
}

.sale-product-media img {
  width: 100%;
  height: 100%;
  max-height: 130px;
  object-fit: contain;
  display: block;
}

.sale-image-placeholder {
  width: 100%;
  height: 100%;
  min-height: 116px;
  display: grid;
  place-items: center;
  padding: 18px;
  color: #d90429;
  background: #fff7f7;
  font-size: 12px;
  font-weight: 950;
  text-align: center;
}

.sale-product-media span {
  position: absolute;
  top: 6px;
  left: 6px;
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  padding: 0 7px;
  color: #fff;
  background: #ff6a00;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 950;
  box-shadow: 0 5px 12px rgba(255, 106, 0, 0.2);
}

.sale-product-info {
  min-width: 0;
  display: grid;
  gap: 7px;
  align-content: start;
}

.sale-product-kicker {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
}

.sale-product-kicker span {
  color: #ff6a00;
  font-size: 10px;
  font-weight: 950;
}

.sale-product-kicker em {
  flex: 0 0 auto;
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  color: #d90429;
  background: #fff1f3;
  border-radius: 999px;
  font-size: 10px;
  font-style: normal;
  font-weight: 950;
}

.sale-product-kicker em.upcoming {
  color: #8a4b00;
  background: #fff4d9;
}

.sale-product-kicker em.soldout,
.sale-product-kicker em.ended {
  color: #66737f;
  background: #eef2f5;
}

.sale-product-title h3 {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #151d26;
  font-size: 14px;
  line-height: 1.34;
  font-weight: 950;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.sale-product-row .rocket-badge {
  height: 24px;
}

.sale-product-row .rocket-badge img {
  width: 86px;
  height: 24px;
}

.sale-product-row .heat-tag {
  min-height: 24px;
  padding: 0 8px;
  font-size: 11px;
}

.sale-product-row .heat-tag small {
  display: none;
}

.sale-product-row .heat-tag.activity-stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #6b3b04;
  background: #fff8e9;
  border: 1px solid rgba(255, 176, 0, 0.28);
}

.sale-product-row .heat-tag.activity-stat small {
  display: inline;
  color: #9a5a08;
  font-size: 10px;
  font-weight: 850;
}

.sale-product-buyline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 78px;
  gap: 7px;
  align-items: stretch;
}

.agency-share-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.agency-share-button {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 800;
}

.sale-product-card .product-price {
  min-width: 0;
  display: grid;
  gap: 3px;
  justify-content: start;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.sale-product-card .product-price > span {
  width: fit-content;
  min-height: 19px;
  display: inline-flex;
  align-items: center;
  padding: 0 7px;
  color: #fff;
  background: #d90429;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 950;
}

.sale-product-card .price-stack {
  justify-content: start;
  gap: 5px;
  text-align: left;
}

.sale-product-card .price-stack strong {
  font-size: 12px;
  line-height: 1.2;
}

.sale-product-card .activity-price .price-stack strong {
  color: #8b98a3;
  font-size: 12px;
  font-weight: 800;
  text-decoration: line-through;
}

.sale-product-card .price-stack b {
  color: #d90429;
  font-size: 28px;
  line-height: 0.95;
}

.sale-buy-button {
  min-height: 42px;
  align-self: end;
  color: #fff;
  background: #171717;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 950;
}

.sale-buy-button:hover {
  background: #000;
}

.sale-buy-button:disabled {
  color: #fff;
  background: #ef8b8f;
  opacity: 1;
}

.sale-product-card.lead-card .sale-product-buyline {
  grid-template-columns: 1fr;
}

.sale-product-card.lead-card .sale-buy-button {
  width: 100%;
  min-height: 38px;
}

.sale-stock {
  display: grid;
  gap: 5px;
}

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

.sale-stock span {
  color: #7a8793;
  font-size: 11px;
  font-weight: 850;
}

.sale-stock strong {
  color: #d90429;
  font-size: 11px;
  font-weight: 950;
}

.sale-product-card .stock-bar {
  height: 5px;
  background: #f0e3df;
}

.sale-product-card .deal-countdown {
  min-height: 28px;
  padding: 0 9px;
  color: #6c3900;
  background: #fff5dc;
  border: 1px solid #ffe2a4;
  border-radius: 6px;
  box-shadow: none;
}

.sale-product-card .deal-countdown.upcoming {
  color: #6c3900;
  background: #fff5dc;
  border: 1px solid #ffe2a4;
}

.sale-product-card .deal-countdown span {
  font-size: 10px;
}

.sale-product-card .deal-countdown strong {
  font-size: 13px;
}

.sale-bottom-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 12px 16px 16px;
  color: #fff;
  background: #fff;
}

.sale-bottom-nav span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #d90429;
  background: #fff1f3;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 950;
}

.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;
}

.compact-task-card {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  min-width: 0;
  min-height: 190px;
  overflow: hidden;
}

.compact-task-cover {
  height: 100%;
  min-height: 190px;
  background: #fff;
  border-right: 1px solid var(--line);
}

.compact-task-cover img {
  object-fit: contain;
  padding: 8px;
  background: #fff;
}

.compact-image-placeholder {
  width: 100%;
  height: 100%;
  min-height: 180px;
  display: grid;
  place-items: center;
  color: var(--muted);
  background: #f8fafb;
  font-size: 13px;
  font-weight: 850;
}

.compact-task-body {
  min-width: 0;
  align-content: start;
}

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

.compact-task-head > div {
  min-width: 0;
}

.compact-task-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.compact-task-head h3 {
  margin: 3px 0 0;
  color: var(--text);
  font-size: 16px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

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

.search-term-list span,
.search-term-list a {
  max-width: 100%;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 11px;
  color: #0d4f51;
  background: rgba(15, 139, 141, 0.1);
  border: 1px solid rgba(15, 139, 141, 0.18);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.search-term-list a:hover {
  background: rgba(15, 139, 141, 0.16);
}

.quick-search-btn {
  min-height: 40px;
}

.buyer-spec-check {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 36px;
  padding: 0 11px;
  color: #52616e;
  background: #f8fafb;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
}

.buyer-spec-check span {
  color: var(--muted);
  font-weight: 850;
}

.buyer-spec-check strong {
  color: var(--text);
  text-align: right;
  overflow-wrap: anywhere;
}

.buyer-order-check {
  display: grid;
  gap: 8px;
  padding: 12px;
  color: #1f2a37;
  background: #f8fbfc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.agency-share-task {
  width: 100%;
}

.agency-share-task-card {
  display: grid;
  grid-template-columns: minmax(190px, 240px) minmax(0, 1fr);
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #d5dfe5;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(28, 41, 50, 0.08);
}

.agency-share-media {
  min-height: 240px;
  padding: 14px;
  background: #fff;
  border-right: 1px solid #e1e8ec;
}

.agency-share-media img {
  width: 100%;
  height: 100%;
  min-height: 212px;
  display: block;
  object-fit: contain;
}

.agency-share-content {
  min-width: 0;
  padding: 20px;
  display: grid;
  align-content: start;
  gap: 14px;
}

.agency-share-content h1 {
  margin: 0;
  color: var(--text);
  font-size: 21px;
  line-height: 1.38;
  overflow-wrap: anywhere;
}

.agency-share-stage-list .buyer-stage {
  grid-template-columns: 34px minmax(0, 1fr) auto;
}

.agency-share-stage-list .buyer-stage button {
  min-width: 132px;
}

.buyer-check-line {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 34px;
}

.buyer-check-line > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.buyer-check-line > strong {
  min-width: 0;
  justify-self: end;
  color: var(--text);
  font-size: 14px;
  line-height: 1.35;
  text-align: right;
  overflow-wrap: anywhere;
}

.buyer-check-line .search-term-list {
  justify-content: flex-end;
}

.buyer-check-line .search-term-list a,
.buyer-check-line .search-term-list span {
  min-height: 28px;
  padding: 0 10px;
  font-size: 12px;
}

.buyer-check-line.delivery-line strong {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.buyer-check-line.delivery-line em {
  color: #f05a1a;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.buyer-order-notice {
  margin: 0;
  padding: 11px 12px;
  color: #7c2d12;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.55;
}

.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);
}

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

.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;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

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

.assignment-grid .buyer-stage button {
  grid-column: 2;
  justify-self: start;
  min-width: 150px;
  max-width: 100%;
  min-height: 38px;
  padding: 8px 14px;
  line-height: 1.25;
  white-space: normal;
}

.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;
}

.agency-progress-block {
  display: grid;
  gap: 7px;
  padding: 11px 12px;
  background: #f8fbfc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.agency-progress-block > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.agency-progress-block strong {
  color: #0f766e;
  font-size: 12px;
}

.agency-progress-block .stock-bar {
  height: 7px;
}

.agency-managed-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.agency-batch-deadline,
.agency-review-requirement {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfc;
}

.agency-batch-deadline span,
.agency-review-requirement span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.agency-batch-deadline strong {
  color: #b45309;
  font-variant-numeric: tabular-nums;
}

.agency-batch-deadline.expired {
  border-color: #fecaca;
  background: #fff7f7;
}

.agency-batch-deadline.expired strong {
  color: #b91c1c;
}

.agency-review-requirement strong {
  color: var(--text);
  font-size: 13px;
  text-align: right;
}

.agency-participant-list {
  display: grid;
  gap: 8px;
  padding-top: 4px;
}

.agency-participant-list h4 {
  margin: 0;
  color: var(--text);
  font-size: 14px;
}

.agency-link-list {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfc;
}

.agency-link-list summary {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  cursor: pointer;
  color: var(--text);
  font-size: 13px;
  font-weight: 850;
}

.agency-link-list > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 12px 12px;
}

.agency-link-list button {
  min-height: 34px;
  padding: 0 10px;
  font-size: 12px;
}

.agency-participant-record {
  display: grid;
  gap: 8px;
  padding: 11px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.agency-participant-head,
.agency-participant-meta,
.agency-participant-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.agency-participant-head {
  justify-content: space-between;
}

.agency-participant-head strong {
  color: var(--text);
  font-size: 13px;
}

.agency-participant-meta {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.agency-participant-meta b {
  color: var(--text);
  font-weight: 850;
}

.agency-managed-table-list {
  display: grid;
  gap: 14px;
}

.agency-task-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.agency-task-summary {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) minmax(210px, 0.34fr);
  gap: 16px;
  align-items: stretch;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  background: #fbfdfe;
}

.agency-task-image {
  display: grid;
  min-width: 0;
  min-height: 104px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.agency-task-image img {
  width: 100%;
  height: 104px;
  object-fit: contain;
  padding: 6px;
}

.agency-task-image .compact-image-placeholder {
  min-height: 104px;
  font-size: 12px;
}

.agency-task-overview {
  display: grid;
  min-width: 0;
  gap: 12px;
}

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

.agency-task-title > div {
  min-width: 0;
}

.agency-task-title span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.agency-task-title h3 {
  margin: 3px 0 0;
  color: var(--text);
  font-size: 17px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.agency-task-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.agency-task-facts > div {
  display: grid;
  min-width: 0;
  gap: 4px;
  padding: 8px 9px;
  border: 1px solid #e2eaf0;
  border-radius: 6px;
  background: #fff;
}

.agency-task-facts > div.wide {
  grid-column: span 2;
}

.agency-task-facts dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.agency-task-facts dd {
  min-width: 0;
  margin: 0;
  color: var(--text);
  font-size: 12px;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.agency-task-facts dd em {
  margin-left: 4px;
  color: #e85a17;
  font-style: normal;
}

.agency-task-facts dd code {
  display: block;
  font-size: 11px;
  font-weight: 700;
  white-space: normal;
}

.agency-task-facts .small-link {
  display: block;
  overflow-wrap: anywhere;
}

.agency-task-progress {
  display: grid;
  align-content: center;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  border: 1px solid #d8e7e7;
  border-radius: 6px;
  background: #f2fafa;
}

.agency-progress-label {
  display: grid;
  gap: 4px;
}

.agency-progress-label span,
.agency-table-deadline span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.agency-progress-label strong {
  color: #0f766e;
  font-size: 14px;
}

.agency-task-progress .stock-bar {
  height: 7px;
}

.agency-table-deadline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid #d7e6e6;
}

.agency-table-deadline strong {
  color: #b45309;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.agency-table-deadline small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  line-height: 1.35;
}

.agency-table-deadline.expired strong {
  color: #b91c1c;
}

.agency-share-details {
  border-top: 1px solid var(--line);
  background: #fff;
}

.agency-share-details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 10px 16px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.agency-share-details > summary::-webkit-details-marker {
  display: none;
}

.agency-share-details > summary > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}

.agency-share-details > summary > span::before {
  width: 16px;
  height: 16px;
  content: "+";
  display: inline-grid;
  place-items: center;
  border-radius: 3px;
  color: #fff;
  background: var(--accent);
  font-size: 14px;
  line-height: 1;
}

.agency-share-details[open] > summary > span::before {
  content: "-";
}

.agency-share-details > summary > small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.agency-share-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.agency-share-toolbar label,
.agency-share-toolbar > div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.agency-share-toolbar label,
.agency-share-toolbar span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.agency-share-toolbar input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
}

.agency-share-toolbar button {
  min-height: 34px;
  padding: 0 11px;
  font-size: 12px;
}

.agency-share-table-wrap {
  width: 100%;
  overflow-x: auto;
}

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

.agency-share-table th,
.agency-share-table td {
  padding: 11px 12px;
  border-bottom: 1px solid #e7edf1;
  text-align: left;
  vertical-align: middle;
}

.agency-share-table th {
  color: #627482;
  background: #f6f9fa;
  font-size: 11px;
  font-weight: 900;
}

.agency-share-table td {
  color: var(--text);
  font-size: 12px;
}

.agency-share-table tbody tr:last-child td {
  border-bottom: 0;
}

.agency-link-select-cell {
  width: 42px;
  text-align: center !important;
}

.agency-link-select-cell input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--accent);
}

.agency-link-number {
  width: 54px;
  color: var(--muted) !important;
  font-variant-numeric: tabular-nums;
}

.agency-link-search {
  min-width: 180px;
}

.agency-link-search strong {
  display: block;
  overflow-wrap: anywhere;
}

.agency-link-state {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.agency-link-state.ready {
  color: #0f766e;
  background: #dff5f3;
}

.agency-link-state.expired {
  color: #b91c1c;
  background: #feecec;
}

.agency-link-order {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  min-width: 145px;
}

.agency-link-order strong {
  color: var(--text);
  font-size: 12px;
}

.agency-link-order span,
.agency-link-empty {
  color: var(--muted);
  font-size: 11px;
}

.agency-share-table .small-link {
  margin-top: 5px;
  font-size: 11px;
}

.agency-link-action {
  width: 134px;
  text-align: right !important;
}

.agency-link-action button {
  min-height: 32px;
  padding: 0 9px;
  font-size: 11px;
}

.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;
  min-width: 0;
  flex-wrap: wrap;
}

.stage-head strong {
  min-width: 0;
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: break-word;
}

.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;
  overflow-wrap: break-word;
  word-break: normal;
}

.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;
}

.publish-hidden-notice {
  display: grid;
  gap: 6px;
  padding: 14px;
  color: #0d4f51;
  background: rgba(15, 139, 141, 0.08);
  border: 1px solid rgba(15, 139, 141, 0.18);
  border-radius: 8px;
}

.publish-hidden-notice strong {
  font-size: 15px;
}

.publish-hidden-notice p {
  margin: 0;
  color: #52616e;
  font-size: 13px;
  line-height: 1.55;
}

.product-link-step {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.product-link-step > div:first-child {
  display: grid;
  gap: 4px;
}

.product-link-step strong {
  font-size: 15px;
}

.product-link-step span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.product-link-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.product-link-row .secondary {
  min-height: 42px;
  white-space: nowrap;
}

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

.lookup-notice {
  grid-column: 1 / -1;
  display: grid;
  gap: 5px;
  padding: 10px 12px;
  border: 1px solid rgba(15, 139, 141, 0.18);
  border-radius: 8px;
  background: rgba(15, 139, 141, 0.07);
}

.lookup-notice strong {
  color: var(--text);
  font-size: 13px;
}

.lookup-notice span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.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-field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 6px;
  margin-top: 2px;
}

.lookup-field-grid span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.lookup-field-grid b {
  min-width: 0;
  color: var(--text);
  font-size: 12px;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.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,
.search-term-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

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

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

.search-term-editor {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

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

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

.search-term-table {
  min-width: 520px;
}

.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%;
}

.search-term-table td:nth-child(2) {
  width: 140px;
}

.search-term-table td:last-child {
  width: 96px;
}

.search-term-remove {
  width: 100%;
}

.channel-selector {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

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

.channel-selector-head strong,
.channel-selector-head span {
  display: block;
}

.channel-selector-head span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

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

label.channel-option {
  position: relative;
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  min-height: 78px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

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

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

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

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

label.channel-option span {
  display: grid;
  gap: 5px;
  min-width: 0;
}

label.channel-option strong {
  color: var(--text);
  font-size: 14px;
}

label.channel-option small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
}

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

.schedule-total.invalid {
  color: #b91c1c;
}

.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;
}

.review-cell-stack {
  display: grid;
  gap: 8px;
  min-width: 150px;
}

.review-shot {
  width: 156px;
  max-width: 100%;
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  background: #fbfcfd;
}

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

.review-shot img {
  width: 100%;
  height: 106px;
  display: block;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.review-shot:hover {
  border-color: rgba(15, 139, 141, 0.32);
  box-shadow: 0 10px 22px rgba(15, 139, 141, 0.08);
}

.review-shot.missing {
  color: var(--muted);
}

.review-shot.missing strong {
  color: var(--muted);
  font-size: 13px;
}

.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;
}

.seller-task-list {
  display: grid;
  gap: 16px;
}

.seller-product-card {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.seller-product-image {
  min-height: 220px;
  display: grid;
  place-items: center;
  padding: 14px;
  border-right: 1px solid var(--line);
  background: #fbfcfd;
}

.seller-product-image img {
  width: 100%;
  height: 100%;
  max-height: 240px;
  object-fit: contain;
  display: block;
}

.seller-product-content {
  min-width: 0;
  display: grid;
  gap: 12px;
  padding: 16px;
}

.seller-product-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

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

.seller-product-head h3 {
  margin: 3px 0 0;
  font-size: 18px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.seller-progress-box {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid rgba(15, 139, 141, 0.16);
  border-radius: 8px;
  background: rgba(15, 139, 141, 0.05);
}

.seller-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

.seller-progress-head span {
  color: var(--muted);
  font-weight: 800;
  text-align: right;
}

.seller-progress-bar {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eef2;
}

.seller-progress-bar i {
  width: var(--seller-progress, 0%);
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, #0f8b8d, #e05263);
}

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

.seller-detail-grid div {
  min-width: 0;
  display: grid;
  gap: 5px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.seller-detail-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.seller-detail-grid strong {
  min-width: 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.seller-detail-grid .rocket-badge {
  margin-right: 6px;
  vertical-align: middle;
}

.seller-detail-grid em {
  color: #c2410c;
  font-style: normal;
}

.seller-search-block {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(15, 139, 141, 0.18);
  border-radius: 8px;
  background: rgba(15, 139, 141, 0.06);
}

.seller-search-block > strong {
  color: var(--text);
  font-size: 13px;
}

.seller-share-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(15, 139, 141, 0.18);
  border-radius: 8px;
  background: rgba(15, 139, 141, 0.05);
}

.seller-share-block div {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.seller-share-block strong {
  color: var(--text);
  font-size: 13px;
}

.seller-share-block span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.seller-share-block code {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: var(--accent-dark);
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seller-share-block button {
  min-height: 36px;
  white-space: nowrap;
}

.seller-buyer-share-details {
  border: 1px solid rgba(15, 139, 141, 0.18);
  border-radius: 8px;
  background: #fff;
}

.seller-buyer-share-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 48px;
  padding: 12px 14px;
  cursor: pointer;
  color: var(--text);
}

.seller-buyer-share-details summary span {
  font-weight: 700;
}

.seller-buyer-share-details summary small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.seller-buyer-share-list {
  display: grid;
  gap: 8px;
  padding: 0 12px 12px;
  border-top: 1px solid var(--line);
}

.seller-buyer-share-row {
  display: grid;
  grid-template-columns: minmax(90px, auto) minmax(0, 1fr) minmax(0, 2fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfdfe;
  font-size: 12px;
}

.seller-buyer-share-row strong {
  color: var(--text);
}

.seller-buyer-share-row span,
.seller-buyer-share-row code {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seller-buyer-share-row code {
  color: var(--accent-dark);
}

.seller-buyer-share-row.used {
  opacity: 0.62;
}

.seller-card-actions {
  padding-top: 2px;
}

.seller-card-actions button,
.seller-card-actions .small-link {
  min-height: 36px;
}

.publish-mode-notice {
  display: grid;
  gap: 5px;
  padding: 12px 14px;
  border: 1px solid rgba(15, 139, 141, 0.2);
  border-radius: 8px;
  background: rgba(15, 139, 141, 0.07);
}

.publish-mode-notice strong {
  color: var(--accent);
  font-size: 13px;
}

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

.publish-submit-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.publish-submit-row .primary {
  min-width: 190px;
}

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

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

  .sidebar .brand {
    align-items: center;
  }

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

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

  .sidebar > .ghost {
    width: fit-content;
  }

  .topbar {
    position: static;
    min-height: 82px;
    padding: 18px 22px;
  }

  .content {
    padding: 22px;
  }

  .compact-task-card {
    grid-template-columns: 190px minmax(0, 1fr);
  }

  .compact-task-cover {
    min-height: 220px;
  }

  .seller-product-card {
    grid-template-columns: 180px minmax(0, 1fr);
  }

  .seller-product-image {
    min-height: 200px;
  }

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

  .flash-grid {
    grid-template-columns: 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-agency .auth-panel,
  .auth-admin .auth-panel {
    grid-template-columns: 1fr;
  }

  .auth-page {
    padding: 18px;
  }

  body {
    overflow-x: hidden;
  }

  .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;
  }

  .topbar h2 {
    font-size: 26px;
    line-height: 1.16;
  }

  .user-badge {
    width: 100%;
    min-width: 0;
  }

  .user-badge div {
    min-width: 0;
  }

  .user-badge strong,
  .user-badge small {
    overflow-wrap: anywhere;
  }

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

  .catalog-page {
    padding: 0;
    background: #d90429;
  }

  .catalog-page .catalog-content {
    width: 100%;
    max-width: none;
    padding: 0;
  }

  .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;
  }

  .activity-group-strip {
    align-items: stretch;
    flex-direction: column;
    padding: 16px;
  }

  .activity-group-button {
    width: 100%;
  }

  .sale-app-frame {
    min-height: 100vh;
    border: 0;
    box-shadow: none;
  }

  .sale-kakao-card {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .sale-kakao-button {
    width: 100%;
  }

  .sale-product-card {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .sale-product-buyline {
    grid-template-columns: minmax(0, 1fr) 74px;
  }

  .sale-product-title h3 {
    font-size: 13px;
  }

  .sale-product-card .price-stack b {
    font-size: 25px;
  }

  .flash-cover {
    height: 156px;
  }

  .compact-task-card {
    grid-template-columns: 1fr;
  }

  .compact-task-cover {
    height: 180px;
    min-height: 180px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .compact-task-body {
    padding: 14px;
  }

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

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

  .seller-product-image {
    min-height: 180px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .seller-product-head,
  .seller-progress-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .seller-progress-head span {
    text-align: left;
  }

  .seller-detail-grid {
    grid-template-columns: 1fr;
  }

  .seller-card-actions > * {
    flex: 1 1 132px;
    justify-content: center;
  }

  .publish-submit-row {
    align-items: stretch;
    flex-direction: column;
  }

  .publish-submit-row .primary,
  .publish-submit-row .ghost {
    width: 100%;
  }

  .card-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .admin-control-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-control-panel .actions > * {
    flex: 1 1 160px;
    justify-content: center;
  }

  .meta div,
  .schedule-list span,
  .buyer-spec-check {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .meta div strong,
  .schedule-list strong,
  .buyer-spec-check strong {
    width: 100%;
    text-align: left;
  }

  .buyer-check-line {
    grid-template-columns: 1fr;
    align-items: flex-start;
    gap: 5px;
  }

  .buyer-check-line > strong {
    width: 100%;
    justify-self: start;
    text-align: left;
  }

  .buyer-check-line .search-term-list {
    justify-content: flex-start;
  }

  .buyer-check-line.delivery-line strong {
    justify-content: flex-start;
  }

  .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;
  }

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

  .product-link-row .secondary {
    width: 100%;
  }

  .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%;
  }

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

  .stage-copy {
    min-width: 0;
  }

  .stage-copy p,
  .stage-review-guide,
  .compact-note {
    overflow-wrap: anywhere;
  }

  .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;
  }
}

/* Final UI pass: Korean-first typography, predictable controls, and contained layouts. */
html {
  min-width: 0;
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 0;
  font-family:
    Pretendard,
    "Apple SD Gothic Neo",
    "Noto Sans KR",
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  font-size: 15px;
  line-height: 1.5;
  word-break: keep-all;
  overflow-wrap: break-word;
}

body.modal-open {
  overflow: hidden;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

button,
.small-link,
.activity-group-button,
.sale-kakao-button {
  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    color 150ms ease,
    box-shadow 150ms ease;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(15, 139, 141, 0.22);
  outline-offset: 2px;
}

.primary:hover:not(:disabled) {
  background: #0b7779;
}

.secondary:hover:not(:disabled) {
  background: #243f49;
}

.ghost:hover:not(:disabled) {
  background: #e5edf1;
}

.danger:hover:not(:disabled) {
  background: #a93341;
}

input,
select {
  min-height: 44px;
}

input[type="file"] {
  min-height: 46px;
  padding: 8px;
}

.auth-page,
.auth-page.auth-buyer,
.auth-page.auth-seller,
.auth-page.auth-agency,
.auth-page.auth-admin {
  padding: 40px 32px;
  background: #f3f6f8;
}

.auth-seller {
  background: #f2f5f6 !important;
}

.auth-agency {
  background: #f2f7f5 !important;
}

.auth-admin {
  background: #f4f5f7 !important;
}

.auth-panel,
.auth-seller .auth-panel,
.auth-agency .auth-panel,
.auth-admin .auth-panel {
  width: min(1120px, 100%);
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
  gap: 64px;
}

.auth-panel > div {
  min-width: 0;
}

.auth-panel h1 {
  max-width: 680px;
  margin: 12px 0 18px;
  font-size: 52px;
  line-height: 1.08;
}

.auth-panel .muted {
  max-width: 620px;
  color: #5d6d78;
  font-size: 16px;
  line-height: 1.7;
}

.auth-box {
  width: 100%;
  padding: 28px;
  border-color: #d3dde3;
  box-shadow: 0 18px 44px rgba(36, 48, 60, 0.09);
}

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

.segmented {
  margin-bottom: 20px;
}

.segmented button {
  min-height: 42px;
}

.form-grid {
  gap: 16px;
}

.app-shell {
  grid-template-columns: 240px minmax(0, 1fr);
  min-width: 0;
}

.sidebar {
  width: 240px;
  min-width: 0;
  padding: 20px 18px;
  gap: 18px;
}

.sidebar .brand {
  min-height: 48px;
}

.nav-list {
  gap: 6px;
}

.nav-list button {
  min-height: 44px;
  padding: 0 13px;
}

.nav-list button.active {
  box-shadow: inset 3px 0 var(--accent);
}

.workspace,
.content,
.content > *,
.panel,
.list-card,
.table-wrap,
.task-grid,
.assignment-grid,
.seller-task-list,
.seller-product-card,
.seller-product-content {
  min-width: 0;
  max-width: 100%;
}

.topbar {
  min-height: 88px;
  padding: 18px 28px;
}

.topbar h2 {
  font-size: 27px;
  line-height: 1.2;
}

.content {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 26px 28px 40px;
  gap: 20px;
}

.panel,
.list-card,
.seller-product-card,
.metric {
  border-color: #d5dfe5;
}

.panel {
  min-width: 0;
}

.metric {
  min-width: 0;
  min-height: 98px;
  padding: 16px;
}

.metric strong {
  margin-top: 7px;
  font-size: 28px;
}

.table-wrap {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

.panel > .table-wrap {
  border: 1px solid var(--line);
  border-radius: 7px;
}

table {
  min-width: 680px;
}

th {
  white-space: nowrap;
}

.admin-control-panel .actions {
  justify-content: flex-end;
}

.seller-card-actions {
  row-gap: 9px;
}

.seller-card-actions > * {
  min-width: 92px;
}

.seller-detail-grid div,
.seller-progress-box,
.seller-search-block,
.seller-share-block,
.buyer-order-check,
.buyer-stage,
.channel-selector,
.search-term-editor,
.schedule-editor,
.review-requirement {
  border-color: #d8e1e7;
}

.buyer-stage {
  min-width: 0;
}

.stage-copy,
.stage-copy p,
.buyer-check-line,
.buyer-check-line strong,
.buyer-order-notice,
.lookup-main,
.lookup-field-grid,
.lookup-field-grid span,
.lookup-field-grid b {
  min-width: 0;
  overflow-wrap: anywhere;
}

.modal {
  padding: 24px;
  background: rgba(20, 29, 36, 0.56);
  backdrop-filter: blur(3px);
}

.modal-body {
  width: min(720px, 100%);
  max-height: min(820px, 92dvh);
  padding: 22px;
  overscroll-behavior: contain;
  box-shadow: 0 24px 70px rgba(20, 29, 36, 0.22);
}

.modal-head {
  position: sticky;
  top: -22px;
  z-index: 2;
  margin: -22px -22px 18px;
  padding: 18px 22px 14px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #e4eaee;
  backdrop-filter: blur(10px);
}

.modal-head h3 {
  font-size: 20px;
  line-height: 1.3;
}

.close-btn {
  flex: 0 0 auto;
  font-size: 22px;
  line-height: 1;
}

.toast {
  max-width: min(420px, calc(100vw - 32px));
  box-shadow: 0 14px 36px rgba(20, 29, 36, 0.2);
}

.sale-app-frame {
  border-color: rgba(135, 0, 20, 0.2);
  box-shadow: 0 20px 48px rgba(28, 35, 42, 0.13);
}

.sale-poster {
  background: #d71920;
}

.sale-product-card {
  border-color: rgba(170, 25, 32, 0.16);
  box-shadow: 0 7px 16px rgba(85, 0, 16, 0.1);
}

.sale-product-media {
  aspect-ratio: 1 / 1.08;
  min-height: 0;
}

.sale-product-media img {
  max-height: none;
}

.catalog-list-footer {
  display: grid;
  gap: 9px;
  padding: 4px 0 8px;
  text-align: center;
}

.catalog-list-footer span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 800;
}

.catalog-more-button {
  min-height: 46px;
  width: 100%;
  color: #9d0d18;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 7px;
  font-weight: 900;
}

.catalog-more-button:hover {
  color: #fff;
  background: #3a1717;
}

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

  .sidebar {
    width: 100%;
  }

  .content {
    max-width: none;
  }

  .panel,
  .grid-2,
  .grid-3 {
    min-width: 0;
  }
}

@media (max-width: 760px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .auth-page,
  .auth-page.auth-buyer,
  .auth-page.auth-seller,
  .auth-page.auth-agency,
  .auth-page.auth-admin {
    min-height: 100dvh;
    place-items: start center;
    padding: 22px 16px 40px;
  }

  .auth-panel,
  .auth-seller .auth-panel,
  .auth-agency .auth-panel,
  .auth-admin .auth-panel {
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .auth-panel h1 {
    margin: 9px 0 12px;
    font-size: 34px;
    line-height: 1.13;
  }

  .auth-panel .muted {
    font-size: 14px;
    line-height: 1.65;
  }

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

  .portal-label {
    margin-bottom: 8px;
  }

  .auth-box {
    padding: 20px;
  }

  .app-shell,
  .workspace,
  .topbar,
  .content,
  .sidebar {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .sidebar {
    gap: 12px;
    padding: 14px 16px 12px;
  }

  .sidebar .brand {
    min-height: 42px;
  }

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

  .nav-list {
    width: 100%;
    gap: 6px;
    padding: 2px 0 5px;
    scrollbar-width: none;
  }

  .nav-list::-webkit-scrollbar {
    display: none;
  }

  .nav-list button {
    min-height: 40px;
    padding: 0 12px;
  }

  .nav-list button.active {
    box-shadow: inset 0 -3px var(--accent);
  }

  .sidebar > .ghost {
    min-height: 38px;
  }

  .topbar {
    gap: 14px;
    padding: 15px 16px;
  }

  .topbar h2 {
    font-size: 24px;
  }

  .topbar .top-actions {
    display: grid;
    grid-template-columns: minmax(104px, 0.38fr) minmax(0, 1fr);
    align-items: end;
    gap: 10px;
  }

  .compact-language {
    width: 100%;
    min-width: 0;
  }

  .user-badge {
    min-height: 52px;
    padding: 7px 9px;
  }

  .avatar {
    width: 34px;
    height: 34px;
  }

  .content {
    padding: 14px 12px 32px;
    gap: 14px;
  }

  .agency-share-shell .content {
    padding: 18px 14px calc(28px + env(safe-area-inset-bottom));
  }

  .agency-share-task-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .agency-share-media {
    min-height: 184px;
    padding: 12px;
    border-right: 0;
    border-bottom: 1px solid #e1e8ec;
  }

  .agency-share-media img {
    height: 176px;
    min-height: 0;
  }

  .agency-share-content {
    padding: 16px;
    gap: 12px;
  }

  .agency-share-content h1 {
    font-size: 18px;
  }

  .agency-share-stage-list .buyer-stage {
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: start;
  }

  .agency-share-stage-list .buyer-stage button {
    grid-column: 2;
    width: 100%;
    min-width: 0;
  }

  .content > *,
  .grid-2,
  .grid-3,
  .task-grid,
  .assignment-grid,
  .metrics,
  .admin-metrics {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

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

  .metric {
    min-height: 82px;
    padding: 13px 12px;
  }

  .metric span {
    font-size: 11px;
  }

  .metric strong {
    margin-top: 5px;
    font-size: 24px;
  }

  .panel {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 14px;
    overflow: hidden;
  }

  .panel h3,
  .list-card h3 {
    font-size: 17px;
  }

  .table-wrap,
  .panel > .table-wrap {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  table {
    min-width: 640px;
  }

  th,
  td {
    padding: 11px 12px;
  }

  .admin-control-panel {
    gap: 14px;
  }

  .admin-control-panel .actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .admin-control-panel .actions > * {
    width: 100%;
    min-width: 0;
  }

  .seller-product-card {
    width: 100%;
    overflow: hidden;
  }

  .seller-product-image {
    min-height: 164px;
    padding: 12px;
  }

  .seller-product-image img {
    max-height: 190px;
  }

  .seller-product-content {
    padding: 14px;
  }

  .seller-detail-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .seller-card-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .seller-card-actions > * {
    width: 100%;
    min-width: 0;
  }

  .seller-share-block {
    grid-template-columns: minmax(0, 1fr);
  }

  .seller-share-block button {
    width: 100%;
    min-width: 0;
  }

  .seller-buyer-share-details summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .seller-buyer-share-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .seller-buyer-share-row button {
    width: 100%;
  }

  .compact-task-cover {
    height: 164px;
    min-height: 164px;
  }

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

  .buyer-stage {
    padding: 12px;
  }

  .buyer-stage button,
  .assignment-grid .buyer-stage button {
    min-height: 42px;
  }

  .buyer-order-check,
  .buyer-order-notice,
  .order-deadline,
  .consult-strip {
    width: 100%;
    min-width: 0;
  }

  .lookup-preview {
    width: 100%;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px;
  }

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

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

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

  .schedule-editor,
  .search-term-editor,
  .channel-selector,
  .review-requirement {
    padding: 12px;
  }

  .schedule-table-wrap {
    width: 100%;
    overflow: visible;
  }

  .schedule-table,
  .search-term-table,
  .schedule-table tbody,
  .search-term-table tbody {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .schedule-table thead,
  .search-term-table thead {
    display: none;
  }

  .schedule-table tbody,
  .search-term-table tbody {
    display: grid;
    gap: 10px;
  }

  .schedule-table tr,
  .search-term-table tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    width: 100%;
    padding: 11px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fff;
  }

  .search-term-table tr {
    grid-template-columns: minmax(0, 1fr) 96px;
  }

  .schedule-table td,
  .search-term-table td,
  .schedule-table td:last-child,
  .search-term-table td:last-child,
  .search-term-table td:nth-child(2) {
    display: grid;
    width: auto;
    min-width: 0;
    gap: 5px;
    padding: 0;
    border: 0;
  }

  .schedule-table td[data-mobile-label]::before,
  .search-term-table td[data-mobile-label]::before {
    content: attr(data-mobile-label);
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
  }

  .schedule-table td:last-child,
  .search-term-table td:last-child {
    grid-column: 1 / -1;
  }

  .schedule-table input,
  .search-term-table input {
    width: 100%;
    min-width: 0;
  }

  .agency-task-summary {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .agency-task-image,
  .agency-task-image .compact-image-placeholder {
    min-height: 78px;
  }

  .agency-task-image img {
    height: 78px;
    padding: 4px;
  }

  .agency-task-progress {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) minmax(92px, auto);
    align-items: center;
    padding: 10px;
  }

  .agency-task-progress .stock-bar {
    grid-column: 1 / -1;
  }

  .agency-table-deadline {
    display: grid;
    justify-content: end;
    gap: 3px;
    padding-top: 0;
    border-top: 0;
    text-align: right;
  }

  .agency-task-title {
    align-items: flex-start;
  }

  .agency-task-title h3 {
    font-size: 15px;
  }

  .agency-task-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .agency-task-facts > div.wide {
    grid-column: 1 / -1;
  }

  .agency-share-toolbar {
    align-items: flex-start;
    flex-direction: column;
    min-height: 0;
    padding: 11px 12px;
  }

  .agency-share-details > summary {
    min-height: 50px;
    padding: 10px 12px;
  }

  .agency-share-toolbar > div {
    width: 100%;
    justify-content: space-between;
  }

  .agency-share-table-wrap {
    overflow: visible;
    padding: 10px 12px 12px;
  }

  .agency-share-table,
  .agency-share-table tbody {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .agency-share-table thead {
    display: none;
  }

  .agency-share-table tbody {
    display: grid;
    gap: 9px;
  }

  .agency-share-table tr {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) auto;
    grid-template-rows: auto auto auto;
    gap: 5px 8px;
    width: 100%;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #fff;
  }

  .agency-share-table td,
  .agency-share-table tbody tr:last-child td {
    display: block;
    min-width: 0;
    padding: 0;
    border: 0;
  }

  .agency-share-table td:nth-child(1) {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .agency-share-table td:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
  }

  .agency-share-table td:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
  }

  .agency-share-table td:nth-child(4) {
    grid-column: 3;
    grid-row: 1;
    text-align: right;
  }

  .agency-share-table td:nth-child(5) {
    grid-column: 2 / 4;
    grid-row: 3;
  }

  .agency-share-table td:nth-child(6) {
    grid-column: 3;
    grid-row: 2;
    align-self: center;
  }

  .agency-share-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 3px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 850;
  }

  .agency-share-table td:nth-child(2)::before,
  .agency-share-table td:nth-child(3)::before,
  .agency-share-table td:nth-child(4)::before,
  .agency-share-table td:nth-child(6)::before {
    display: none;
  }

  .agency-link-select-cell {
    width: auto;
    padding-top: 4px !important;
  }

  .agency-link-number {
    width: auto;
    font-size: 11px !important;
  }

  .agency-link-search {
    min-width: 0;
  }

  .agency-link-order {
    min-width: 0;
  }

  .agency-link-action {
    width: auto;
    text-align: right !important;
  }

  .agency-link-action button {
    min-height: 30px;
  }

  .modal {
    place-items: end center;
    padding: 0;
  }

  .modal-body {
    width: 100%;
    max-height: 94dvh;
    padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 8px 8px 0 0;
  }

  .modal-head {
    top: -18px;
    margin: -18px -16px 16px;
    padding: 15px 16px 12px;
  }

  .modal-head h3 {
    font-size: 18px;
  }

  .toast {
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    left: 12px;
    width: auto;
    max-width: none;
  }

  .sale-app-status {
    position: sticky;
    top: 0;
    z-index: 4;
  }

  .sale-product-card {
    grid-template-columns: 116px minmax(0, 1fr);
    gap: 9px;
  }

  .sale-product-title h3 {
    font-size: 13px;
    line-height: 1.4;
  }

  .sale-product-buyline {
    grid-template-columns: minmax(0, 1fr) 78px;
  }

  .agency-share-row {
    justify-content: stretch;
  }

  .agency-share-button {
    width: 100%;
  }

  .sale-buy-button {
    min-width: 0;
    padding: 0 7px;
  }
}

@media (max-width: 380px) {
  .metrics,
  .admin-metrics {
    grid-template-columns: minmax(0, 1fr);
  }

  .topbar .top-actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .sale-product-card {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .sale-product-buyline {
    grid-template-columns: minmax(0, 1fr) 72px;
  }

  .seller-card-actions,
  .admin-control-panel .actions {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
