@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300..800;1,9..40,300..800&family=Outfit:wght@300..800&display=swap');

:root {
  --bg: #eef6ff;
  --bg-elev: #f7fbff;
  --bg-soft: #dfefff;
  --card: #ffffff;
  --line: rgba(80, 140, 255, 0.12);
  --text: #1d2b45;
  --muted: #6f86a8;
  --accent: #466079;
  --accent-2: #7cc8ff;
  --danger: #ff6b81;
  --ok: #46c78b;
  --radius: 16px;
  --shadow: 0 12px 40px rgba(80, 140, 255, 0.12);
  --max: 1320px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
font-family:'Pretendard',sans-serif;
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none !important;
}

a:hover {
  text-decoration: underline;
}

.muted {
  color: var(--muted);
}

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px 1fr;
}

.sidebar {
    background: linear-gradient(180deg, rgb(0 0 0 / 96%), rgba(22, 38, 70, 0.96));
    border-right: 1px solid rgba(124, 200, 255, 0.12);
    padding: 28px 22px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: auto;
    backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 30px rgba(110, 231, 216, 0.25);
}

.brand-title {
  font-weight: 700;
  letter-spacing: -0.02em;
  color:#fff
}

.nav a {
  display: block;
  padding: 11px 12px;
  border-radius: 12px;
  color: var(--muted);
  font-weight: 500;
}

.nav a:hover,
.nav a.active {
  background: rgba(110, 231, 216, 0.08);
  color: var(--text);
  text-decoration: none;
}

.main {
  padding: 34px clamp(18px, 3vw, 40px);
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.h1 {
  font-size: clamp(1.55rem, 2.2vw, 2rem);
  margin: 0;
  letter-spacing: -0.03em;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid.kpi {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(240, 247, 255, 0.96));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}
.card h3 {
  margin: 0 0 6px;
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 600;
}

.card .val {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.card .sub {
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--muted);
}

/* 관리자 목록: 회원 검색 등 한 줄 필터 */
.admin-filter-one-line {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px 12px;
  width: 100%;
}

.admin-filter-one-line__field,
.admin-filter-one-line__grow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  min-width: 0;
}

.admin-filter-one-line__grow {
  flex: 1 1 160px;
}

.admin-filter-one-line__field select {
  width: auto;
  min-width: 112px;
  max-width: 156px;
}

.admin-filter-one-line__grow input[type='search'],
.admin-filter-one-line__grow input[type='text'] {
  flex: 1 1 auto;
  min-width: 140px;
  width: 100%;
}

.admin-filter-one-line > .btn {
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .admin-filter-one-line {
    flex-wrap: wrap;
  }
}

/* 바이어 상품 탐색: 한 줄 검색 */
.buyer-catalog-filter {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px 12px;
  width: 100%;
}

.buyer-catalog-filter__grow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 160px;
  min-width: 0;
  margin: 0;
}

.buyer-catalog-filter__grow input[type='search'],
.buyer-catalog-filter__grow input[type='text'] {
  flex: 1 1 auto;
  min-width: 140px;
  width: 100%;
}

.buyer-catalog-filter__sort {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  flex-shrink: 0;
}

.buyer-catalog-filter__sort select {
  min-width: 112px;
  max-width: 160px;
}

.buyer-catalog-filter > .btn {
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .buyer-catalog-filter {
    flex-wrap: wrap;
  }
}

textarea,
select,
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="hidden"]):not([type="file"]):not([type="range"]):not([type="color"]):not([type="image"]){
    box-sizing: border-box;
    max-width: 100%;
    padding: 5px 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.92);
    color: var(--text);
    font: inherit;
    font-size: 0.95rem;
    line-height: 1.35;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    backdrop-filter: blur(8px);
}

textarea {
  min-height: 7rem;
  resize: vertical;
}

select {
  cursor: pointer;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 13px) calc(50% - 3px);
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 32px;
}

textarea::placeholder,
input::placeholder {
  color: var(--muted);
  opacity: 0.85;
}

textarea:hover,
select:hover,
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="hidden"]):not([type="file"]):not([type="range"]):not([type="color"]):not([type="image"]):hover {
  border-color: rgba(77, 163, 255, 0.35);
  background: rgba(245, 250, 255, 0.96);
}

textarea:focus-visible,
select:focus-visible,
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="hidden"]):not([type="file"]):not([type="range"]):not([type="color"]):not([type="image"]):focus-visible {
  outline: none;
  border-color: rgba(77, 163, 255, 0.5);
  box-shadow:
    0 0 0 3px rgba(124, 200, 255, 0.18),
    0 0 0 1px rgba(77, 163, 255, 0.2) inset;
  background: rgba(255, 255, 255, 1);
}

textarea:disabled,
select:disabled,
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="hidden"]):not([type="file"]):not([type="range"]):not([type="color"]):not([type="image"]):disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-text-fill-color: var(--text);
  transition: background-color 9999s ease-out;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(124, 156, 255, 0.12);
    border: 1px solid rgba(124, 156, 255, 0.22);
    color: #183393;
    font-size: 0.85rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  padding: 5px 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  font-weight: 600;
}

.btn.primary {
    border: none;
    background: #08296d;
    color: #fff;
}

.btn.danger {
    border-color: rgba(255, 107, 122, 0.35);
    background: rgba(255, 107, 122, 0.12);
    color: #b12c3c;
}
.btn.full {
  width: 100%;
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

table.data th,
table.data td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

table.data th {
  color: var(--muted);
  font-weight: 600;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid var(--line);
}

.badge.ok {
    border-color: rgb(211 93 93 / 35%);
    background: rgb(255 255 255 / 12%);
    color: #ed3b03;
}
.badge.warn {
    border-color: rgba(255, 196, 86, 0.35);
    background: rgba(255, 196, 86, 0.12);
    color: #9f6e0d;
}

.badge.bad {
  border-color: rgba(255, 107, 122, 0.35);
  background: rgba(255, 107, 122, 0.12);
  color: #ffd6db;
}

/* Buyer portal lighter shell */
.buyer-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1100px 600px at 10% -10%, rgba(124, 156, 255, 0.16), transparent 60%),
    radial-gradient(900px 500px at 92% -6%, rgba(110, 231, 216, 0.1), transparent 55%),
    #090b10;
}

.buyer-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(14px);
  background: rgba(9, 11, 16, 0.7);
  border-bottom: 1px solid var(--line);
}

.buyer-nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px clamp(18px, 3vw, 34px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.buyer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.buyer-links .buyer-nav-account {
  display: flex;
  align-items: center;
}

.buyer-main {
  width: 100%;
  margin: 0 auto;
  max-width: var(--max);
  flex: 1;
}

.hero {
  border-radius: 22px;
  padding: clamp(22px, 4vw, 44px);
  border: 1px solid var(--line);
  background: linear-gradient(120deg, rgba(124, 156, 255, 0.15), rgba(110, 231, 216, 0.12));
}

.hero h2 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  letter-spacing: -0.035em;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

.pcard {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.pcard-img {
  height: 295px;
  background: radial-gradient(circle at 40% 20%, rgba(110, 231, 216, 0.18), transparent 70%),
    linear-gradient(180deg, #1a2233, #111622);
}

.pcard-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.auth-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 16px;
}

.auth-card {
    width: min(520px, 100%);
    padding: 28px;
    border-radius: 22px;
    border: 1px solid rgba(124, 200, 255, 0.18);
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.88),
      rgba(225, 240, 255, 0.92)
    );
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.auth-card label {
  display: block;
  margin-top: 12px;
  margin-bottom: 6px;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
}

.auth-card input,
.auth-card textarea,
.auth-card select {
  width: 100%;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(10, 12, 18, 0.9);
  color: var(--text);
}

/* 로그인 랜딩: 서비스 소개 + 폼 (BuyList B2B) */
.auth-body.auth-body--login-landing {
  display: block;
  padding: 0;
  min-height: 100vh;
}

.auth-landing {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, 440px);
  max-width: 1180px;
  margin: 0 auto;
  align-items: stretch;
}

.auth-landing__hero {
  position: relative;
  display: flex;
  align-items: center;
  padding: clamp(36px, 6vw, 72px) clamp(28px, 5vw, 56px);
  border-right: 1px solid var(--line);
  background:
    radial-gradient(880px 520px at 12% -8%, rgba(124, 156, 255, 0.24), transparent 58%),
    radial-gradient(720px 420px at 92% 35%, rgba(110, 231, 216, 0.16), transparent 52%),
    linear-gradient(168deg, rgba(15, 18, 28, 0.99), rgba(9, 11, 17, 0.94));
  overflow: hidden;
}

.auth-landing__hero::after {
  content: '';
  position: absolute;
  right: -18%;
  bottom: -42%;
  width: min(520px, 95vw);
  height: min(520px, 95vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 156, 255, 0.08), transparent 68%);
  pointer-events: none;
}

.auth-landing__hero-inner {
  position: relative;
  z-index: 1;
  max-width: 36rem;
}

.auth-landing__brand-mark {
  display: inline-block;
  margin-bottom: 26px;
  line-height: 0;
}

.auth-landing__logo {
  display: block;
  max-width: min(220px, 56vw);
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 14px 36px rgba(0, 0, 0, 0.4));
}

.auth-landing__eyebrow {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(110, 231, 216, 0.85);
}

.auth-landing__headline {
  margin: 0 0 16px;
  font-size: clamp(1.85rem, 3.2vw, 2.45rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
  color: var(--text);
}

.auth-landing__lede {
  margin: 0 0 28px;
  font-size: clamp(0.95rem, 1.35vw, 1.05rem);
  line-height: 1.65;
  color: #b4bdd1;
}

.auth-landing__lede strong {
  color: #dde4f2;
  font-weight: 700;
}

.auth-landing__highlights {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.auth-landing__highlights li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.94rem;
  line-height: 1.55;
  color: #c5cedf;
}

.auth-landing__highlights strong {
  color: var(--text);
  font-weight: 600;
}

.auth-landing__dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin-top: 0.42em;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 3px rgba(110, 231, 216, 0.12);
}

.auth-landing__aside {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(28px, 4.5vw, 52px) clamp(20px, 3vw, 36px);
  background:
    radial-gradient(500px 280px at 50% 0%, rgba(124, 156, 255, 0.07), transparent 65%),
    rgba(8, 10, 15, 0.35);
}

.auth-card.auth-card--login {
  width: 100%;
  max-width: 420px;
  padding: clamp(26px, 4vw, 34px);
  border-radius: 22px;
  backdrop-filter: blur(10px);
  background: rgba(17, 20, 31, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    var(--shadow),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

.auth-card__title {
  margin: 0 0 6px;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.auth-card__subtitle {
  margin: 0 0 22px;
  font-size: 0.92rem;
  line-height: 1.5;
}

.auth-landing__links {
  margin-top: 18px;
  font-size: 0.9rem;
  line-height: 1.55;
}

.auth-landing__links--admin {
  margin-top: 10px;
  font-size: 0.84rem;
  opacity: 0.95;
}

@media (max-width: 900px) {
  .auth-landing {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .auth-landing__hero {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding-bottom: clamp(32px, 8vw, 48px);
  }

  .auth-landing__aside {
    padding-top: clamp(28px, 6vw, 40px);
    padding-bottom: clamp(40px, 8vw, 56px);
  }
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.install-log {
  margin-top: 16px;
  white-space: pre-wrap;
  color: var(--muted);
}

@media (max-width: 960px) {
  .shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    height: auto;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .shell--admin {
    grid-template-columns: 1fr !important;
  }

  .shell--admin.is-sidebar-mini {
    grid-template-columns: 1fr !important;
  }

  .shell--admin .sidebar--admin {
    width: 100% !important;
    height: auto;
    position: relative;
  }

  .shell--admin .main--admin {
    padding: 20px 16px !important;
  }

  .shell--admin.is-sidebar-mini .brand-text-block,
  .shell--admin.is-sidebar-mini .nav-item__text,
  .shell--admin.is-sidebar-mini .sidebar__toggle-text {
    display: revert;
    visibility: revert;
    position: revert;
    width: revert;
    height: revert;
    overflow: revert;
    clip: revert;
  }

  .shell--seller {
    grid-template-columns: 1fr !important;
  }

  .shell--seller.is-sidebar-mini {
    grid-template-columns: 1fr !important;
  }

  .shell--seller .sidebar--seller {
    width: 100% !important;
    height: auto;
    position: relative;
    min-height: 0;
  }

  .shell--seller .main--seller {
    padding: 20px 16px !important;
  }

  .shell--seller.is-sidebar-mini .brand-text-block,
  .shell--seller.is-sidebar-mini .nav-item__text,
  .shell--seller.is-sidebar-mini .sidebar__toggle-text {
    display: revert;
    visibility: revert;
    position: revert;
    width: revert;
    height: revert;
    overflow: revert;
    clip: revert;
  }
}

/* —— 관리자(/admin) 전용: 컨텐츠 폭 확장 · 아이콘 네비 · 사이드바 미니모드 */

body.b2b-admin-app {
  overflow-x: hidden;
}

.shell.shell--admin {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  align-items: start;
  min-height: 100vh;
  transition: grid-template-columns 0.22s ease;
}

.shell.shell--admin.is-sidebar-mini {
  grid-template-columns: minmax(0, 72px) minmax(0, 1fr);
}

.sidebar.sidebar--admin {
  position: sticky;
  top: 0;
  align-self: start;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 22px 16px;
  transition: padding 0.22s ease;
}

.shell--admin.is-sidebar-mini .sidebar--admin {
  padding: 20px 10px;
}

.shell--admin .sidebar__brand {
  margin-bottom: 20px;
}

.shell--admin .brand-mark {
  flex-shrink: 0;
}

.shell--admin .brand-sub {
  font-size: 0.82rem;
}

.nav.nav--admin {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.shell--admin .nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 12px;
  border-radius: 12px;
  color: var(--muted);
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
  font-size:10pt;
}

.shell--admin .nav-item:hover,
.shell--admin .nav-item.active {
  background: rgba(110, 231, 216, 0.1);
  color: #fff;
  text-decoration: none;
}

.shell--admin .nav-item.active {
  box-shadow: inset 0 0 0 1px rgba(110, 231, 216, 0.22);
}

.shell--admin .nav-item__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.92;
  color: var(--muted);
}

.shell--admin .nav-item.active .nav-item__icon {
  color: var(--accent);
}

.shell--admin .nav-item__text {
  white-space: nowrap;
  overflow: hidden;
  transition: opacity 0.18s ease, width 0.18s ease;
}

.shell--admin.is-sidebar-mini .brand-text-block {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.shell--admin.is-sidebar-mini .sidebar__brand {
  justify-content: center;
}

.shell--admin.is-sidebar-mini .nav-item {
  justify-content: center;
  padding-inline: 8px;
}

.shell--admin.is-sidebar-mini .nav-item__text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.shell--admin.is-sidebar-mini .sidebar__meta-line {
  display: none;
}

.shell--admin.is-sidebar-mini .sidebar__meta {
  text-align: center;
}

.shell--admin.is-sidebar-mini .sidebar__meta a {
  font-size: 0.82rem;
  display: inline-block;
  padding: 6px;
}

.shell--admin .sidebar__footer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.shell--admin .sidebar__toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  justify-content: flex-start;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.shell--admin .sidebar__toggle:hover {
  background: rgba(124, 156, 255, 0.12);
}

.shell--admin .sidebar__toggle-icon {
  display: flex;
  color: var(--accent);
}

.shell--admin .sidebar__toggle-icon--expand {
  display: none;
}

.shell--admin.is-sidebar-mini .sidebar__toggle {
  justify-content: center;
  padding: 10px 8px;
}

.shell--admin.is-sidebar-mini .sidebar__toggle-text {
  display: none;
}

.shell--admin.is-sidebar-mini .sidebar__toggle-icon--collapse {
  display: none;
}

.shell--admin.is-sidebar-mini .sidebar__toggle-icon--expand {
  display: flex;
}

.main.main--admin {
  max-width: none;
  margin: 0;
  width: 100%;
  min-width: 0;
  padding: 26px clamp(16px, 2vw, 32px) 40px;
  box-sizing: border-box;
}

.topbar.topbar--admin {
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

/* —— 셀러(/seller): 아이콘 네비 · 사이드바 미니모드 —— */

body.b2b-seller-app {
  overflow-x: hidden;
}

.shell.shell--seller {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  align-items: start;
  min-height: 100vh;
  transition: grid-template-columns 0.22s ease;
}

.shell.shell--seller.is-sidebar-mini {
  grid-template-columns: minmax(0, 72px) minmax(0, 1fr);
}

.sidebar.sidebar--seller {
  position: sticky;
  top: 0;
  align-self: start;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 22px 16px;
  transition: padding 0.22s ease;
  height: auto;
}

.shell--seller.is-sidebar-mini .sidebar--seller {
  padding: 20px 10px;
}

.seller-brand-mark {
  background: linear-gradient(135deg, #ffd38a, #7c9cff);
  flex-shrink: 0;
}

.seller-brand-sub {
  font-size: 0.82rem;
}

.shell--seller .sidebar__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.shell--seller .sidebar__brand .brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.nav.nav--seller {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.shell--seller .nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 12px;
    color: #ffffff;
    font-weight: 500;
    transition: background 0.15s ease, color 0.15s ease;
    text-decoration: none;
}

.shell--seller .nav-item:hover,
.shell--seller .nav-item.active {
  background: rgba(255, 211, 138, 0.11);
  color:#fff;
  text-decoration: none;
}

.shell--seller .nav-item.active {
  box-shadow: inset 0 0 0 1px rgba(255, 211, 138, 0.28);
}

.shell--seller .nav-item__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.92;
  color: var(--muted);
}

.shell--seller .nav-item.active .nav-item__icon {
  color: #ffd38a;
}

.shell--seller .nav-item__text {
  white-space: nowrap;
  overflow: hidden;
  transition: opacity 0.18s ease, width 0.18s ease;
}

.shell--seller.is-sidebar-mini .brand-text-block {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.shell--seller.is-sidebar-mini .sidebar__brand {
  justify-content: center;
}

.shell--seller.is-sidebar-mini .nav-item {
  justify-content: center;
  padding-inline: 8px;
}

.shell--seller.is-sidebar-mini .nav-item__text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.shell--seller.is-sidebar-mini .sidebar__meta-line {
  display: none;
}

.shell--seller.is-sidebar-mini .sidebar__meta {
  text-align: center;
}

.shell--seller.is-sidebar-mini .sidebar__meta a {
  font-size: 0.82rem;
  display: inline-block;
  padding: 6px;
}

.shell--seller .sidebar__footer {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.portal-switch-form {
  margin: 0;
  width: 100%;
}

.portal-switch-btn {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 211, 138, 0.35);
  background: rgba(255, 211, 138, 0.1);
  color: #ffd38a;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  transition: background 0.15s ease;
}

.portal-switch-btn:hover {
  background: rgba(255, 211, 138, 0.2);
}

.portal-switch-form--buyer {
  display: inline-flex;
  width: auto;
}

.portal-switch-form--buyer .portal-switch-btn {
  width: auto;
  padding: 8px 14px;
  font-size: 0.85rem;
  border-color: rgba(255, 211, 138, 0.45);
}

.buyer-links .portal-switch-form--buyer {
  align-self: center;
}

.shell--seller.is-sidebar-mini .portal-switch-btn {
  font-size: 0;
  padding: 10px;
  position: relative;
}

.shell--seller.is-sidebar-mini .portal-switch-btn::after {
  content: "구매";
  font-size: 0.72rem;
}

.shell--seller .sidebar__toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  justify-content: flex-start;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.shell--seller .sidebar__toggle:hover {
  background: rgba(255, 211, 138, 0.12);
}

.shell--seller .sidebar__toggle-icon {
  display: flex;
  color: #ffd38a;
}

.shell--seller .sidebar__toggle-icon--expand {
  display: none;
}

.shell--seller.is-sidebar-mini .sidebar__toggle {
  justify-content: center;
  padding: 10px 8px;
}

.shell--seller.is-sidebar-mini .sidebar__toggle-text {
  display: none;
}

.shell--seller.is-sidebar-mini .sidebar__toggle-icon--collapse {
  display: none;
}

.shell--seller.is-sidebar-mini .sidebar__toggle-icon--expand {
  display: flex;
}

/* —— Portal header: 전체화면 · 알림 · 시계 · 계정 (admin/seller 공통) —— */
.topbar.topbar--portal {
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 14px 16px;
}

.topbar.topbar--portal .topbar__lead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  min-width: 0;
}

.topbar.topbar--seller {
  gap: 12px;
  margin-bottom: 24px;
}

.pill.pill--seller {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 211, 138, 0.35);
  color: #ffd38a;
  background: rgba(255, 211, 138, 0.08);
  white-space: nowrap;
}

.main.main--seller {
  max-width: none;
  margin: 0;
  width: 100%;
  min-width: 0;
  padding: 26px clamp(16px, 2vw, 32px) 40px;
  box-sizing: border-box;
}

.portal-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 10px;
  margin-left: auto;
  position: relative;
  z-index: 30;
}

.portal-toolbtn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  line-height: 1.2;
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}

.portal-toolbtn:hover {
  background: rgba(124, 156, 255, 0.1);
  border-color: rgba(124, 156, 255, 0.28);
}

.portal-toolbtn svg {
  flex-shrink: 0;
  opacity: 0.92;
}

.portal-toolbtn-label {
  white-space: nowrap;
}

@media (max-width: 720px) {
  .portal-toolbtn-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .portal-toolbtn {
    padding: 9px 10px;
  }
}

.portal-toolbtn--bell {
  padding-inline: 11px;
}

.portal-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--danger), #ff8a94);
  color: #1a0510;
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.portal-clock-wrap {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgb(255 255 255 / 55%);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--muted);
    white-space: nowrap;
}

.portal-clock {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: var(--text);
}

.portal-dropdown-wrap {
  position: relative;
}

.portal-dropdown-wrap.is-open > .portal-toolbtn,
.portal-dropdown-wrap.is-open > .portal-account-trigger {
  border-color: rgba(110, 231, 216, 0.45);
  background: rgba(110, 231, 216, 0.08);
}

.portal-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 272px;
  max-width: min(380px, 94vw);
  padding: 8px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(24, 28, 40, 0.98), rgba(16, 19, 28, 0.98));
  box-shadow:
    var(--shadow),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  z-index: 50;
}

.portal-dropdown__title {
  padding: 8px 10px 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.portal-dropdown__empty {
  padding: 16px 12px;
  font-size: 0.88rem;
  text-align: center;
}

.portal-notify-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 11px;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
}

.portal-notify-row:hover {
  background: rgba(124, 156, 255, 0.1);
  text-decoration: none;
}

.portal-notify-row.is-unread {
  border-left: 3px solid var(--accent);
  padding-left: 8px;
  background: rgba(110, 231, 216, 0.06);
}

.portal-notify-title {
  font-size: 0.88rem;
  font-weight: 600;
}

.portal-notify-time {
  font-size: 0.75rem;
}

.portal-dropdown__all {
  display: block;
  margin-top: 4px;
  padding: 10px 11px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  border: 1px dashed rgba(124, 156, 255, 0.35);
  color: var(--accent);
}

.portal-dropdown__all:hover {
  background: rgba(124, 156, 255, 0.08);
  text-decoration: none;
}

.portal-account-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px 6px 8px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  max-width: min(280px, 46vw);
  text-align: left;
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}

.portal-account-trigger:hover {
  background: rgba(124, 156, 255, 0.08);
}

.portal-account-trigger svg {
  flex-shrink: 0;
  opacity: 0.9;
}

.portal-account-trigger__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.portal-account-trigger__name {
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.portal-account-trigger__mail {
  font-size: 0.74rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.portal-chevron {
  margin-left: 2px;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--muted);
  flex-shrink: 0;
}

.portal-dropdown--account .portal-account-meta {
    padding: 10px 12px 12px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 4px;
    color: #fff;
}

.portal-dropdown-link {
    display: block;
    padding: 11px 12px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #f7f7f7;
    text-decoration: none;
}

.portal-dropdown-link:hover {
  background: rgba(124, 156, 255, 0.1);
  text-decoration: none;
}

.portal-dropdown-link--danger {
  color: #ffbfc6;
}

.portal-dropdown-link--danger:hover {
  background: rgba(255, 107, 122, 0.12);
}

.product-desc-html {
  line-height: 1.65;
  overflow-wrap: break-word;
}

.product-desc-html img {
  max-width: 100%;
  height: auto;
}

.small {
  font-size: 0.8rem;
}

/* 셀러 상품 편집 */
.seller-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

@media (max-width: 640px) {
  .seller-form-grid {
    grid-template-columns: 1fr;
  }
}

.seller-form-grid label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.82rem;
}

.seller-form-grid input,
.seller-form-grid select,
.seller-form-grid textarea {
  width: 100%;
}

.seller-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.seller-image-tile {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: rgba(17, 20, 31, 0.5);
}

.seller-image-tile__thumb {
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 8px;
  aspect-ratio: 1;
  background: var(--bg-soft);
}

.seller-image-tile__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.seller-image-tile__primary {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 0.85rem;
}

.seller-product-table__th-thumb {
  width: 64px;
}

.seller-product-table__thumb {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-soft);
}

.seller-product-table__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 바이어 상품 카드 썸네일 */
.pcard-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pcard-img--cover {
  padding: 0;
}

/* 셀러·관리자 Summernote 에디터 */
.seller-summernote-wrap .note-editor.note-frame,
.admin-summernote-wrap .note-editor.note-frame {
  border-radius: 12px;
  border-color: var(--line);
  overflow: visible;
}

.seller-summernote-wrap .note-toolbar,
.admin-summernote-wrap .note-toolbar {
  background: var(--bg-soft);
  border-bottom-color: var(--line);
}

.seller-summernote-wrap .note-editor .note-toolbar .note-btn,
.admin-summernote-wrap .note-editor .note-toolbar .note-btn {
  border-color: transparent;
  background: transparent;
}

.seller-summernote-wrap .note-editor .note-toolbar .note-btn:hover,
.admin-summernote-wrap .note-editor .note-toolbar .note-btn:hover {
  background: rgba(124, 156, 255, 0.14);
}

.seller-summernote-wrap .note-editable,
.admin-summernote-wrap .note-editable {
  background: var(--bg-elev);
  color: var(--text);
}

.seller-summernote-wrap .dropdown-menu.note-dropdown-menu,
.admin-summernote-wrap .dropdown-menu.note-dropdown-menu {
  background: var(--card);
  border-color: var(--line);
}

.seller-summernote-wrap .note-dropdown-menu .dropdown-item,
.admin-summernote-wrap .note-dropdown-menu .dropdown-item {
  color: var(--text);
}

.seller-summernote-wrap .note-dropdown-menu .dropdown-item:hover,
.admin-summernote-wrap .note-dropdown-menu .dropdown-item:hover {
  background: rgba(124, 156, 255, 0.12);
}

.seller-summernote-wrap .note-modal-content,
.admin-summernote-wrap .note-modal-content,
body > .note-modal .note-modal-content {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  box-shadow: var(--shadow);
}

.seller-summernote-wrap .note-modal-header,
.admin-summernote-wrap .note-modal-header,
body > .note-modal .note-modal-header {
  border-bottom-color: var(--line);
}

.seller-summernote-wrap .note-input,
.admin-summernote-wrap .note-input,
body > .note-modal .note-input {
  background: var(--bg-elev);
  border-color: var(--line);
  color: var(--text);
}

/* Summernote 이미지/링크 팝업 — body에 띄울 때 셀러 레이아웃·backdrop-filter 위에 표시 */
body > .note-modal-backdrop {
  z-index: 20000 !important;
  background: rgba(9, 11, 16, 0.72);
}

body > .note-modal {
  z-index: 20010 !important;
}

body > .note-modal.open {
  display: flex !important;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px;
  overflow-y: auto;
}

body > .note-modal .note-modal-content {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  max-width: 600px;
  width: 100%;
  pointer-events: auto;
}

body > .note-modal .note-modal-title,
body > .note-modal .note-form-label {
  color: var(--text);
}

body > .note-modal .close {
  color: var(--muted);
  opacity: 1;
}

.prod-detail-gallery {
  display: grid;
  gap: 12px;
}

.prod-detail-gallery__main {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  aspect-ratio: 4/3;
  max-height: 420px;
}

.prod-detail-gallery__main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.prod-detail-gallery__thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.prod-detail-gallery__thumbs button {
  border: 2px solid transparent;
  padding: 0;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  width: 64px;
  height: 64px;
  background: var(--bg-soft);
}

.prod-detail-gallery__thumbs button.is-current {
  border-color: var(--accent);
}

.prod-detail-gallery__thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.status-ready {
    background: #fff3cd;
    color: #856404;
    white-space: nowrap;
}
.quote-status-requested {
    background: #fff3cd;
    color: #856404;
	    white-space: nowrap;

}
