:root {
  --accent: #f05a3c;
  --accent-soft: #ffe8df;
  --amber: #c47a14;
  --amber-soft: #fff2d8;
  --bg: #f7f5f1;
  --border: #e4dfd7;
  --ink: #191919;
  --muted: #6f6b64;
  --panel: #ffffff;
  --teal: #16827a;
  --teal-soft: #e1f4f1;
  --shadow: 0 18px 40px rgba(25, 25, 25, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.sidebar {
  background: var(--panel);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 28px 18px;
}

.brand {
  align-items: baseline;
  display: flex;
  font-size: 29px;
  font-weight: 850;
  gap: 4px;
  letter-spacing: 0;
  padding: 0 10px 4px;
}

.brand-accent {
  color: var(--accent);
}

.side-nav {
  display: grid;
  gap: 8px;
}

.nav-item {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: #4b4741;
  display: flex;
  gap: 12px;
  min-height: 48px;
  padding: 0 12px;
  text-align: left;
}

.nav-item.active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
}

.nav-icon {
  display: inline-flex;
  font-size: 16px;
  width: 18px;
}

.nav-count {
  background: var(--accent);
  border-radius: 999px;
  color: white;
  font-size: 12px;
  font-weight: 800;
  margin-left: auto;
  padding: 3px 8px;
}

.privacy-callout,
.notice-box {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
}

.privacy-callout {
  background: #f8fbfa;
  margin-top: auto;
}

.privacy-callout strong,
.notice-box strong {
  display: block;
  font-size: 14px;
  margin-bottom: 8px;
}

.privacy-callout p,
.notice-box p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  margin: 6px 0;
}

.privacy-callout a {
  color: var(--teal);
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  margin-top: 6px;
  text-decoration: none;
}

.main {
  min-width: 0;
}

.topbar {
  align-items: center;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  min-height: 80px;
  padding: 0 28px;
}

.store-select {
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  gap: 8px;
  height: 42px;
  padding: 0 12px;
}

.store-select select {
  background: transparent;
  border: 0;
  color: var(--ink);
  font-weight: 750;
  min-width: 210px;
  outline: 0;
}

.top-actions {
  align-items: center;
  display: flex;
  gap: 10px;
}

.session-label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  max-width: 190px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ghost-button,
.primary-button,
.secondary-action,
.product-row button {
  border-radius: 7px;
  font-size: 14px;
  font-weight: 800;
  min-height: 40px;
  padding: 0 14px;
}

.ghost-button {
  background: white;
  border: 1px solid var(--border);
  color: var(--muted);
}

.primary-button {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: white;
}

.secondary-action {
  background: white;
  border: 1px solid var(--border);
  color: var(--ink);
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  min-height: calc(100vh - 80px);
}

.content-panel {
  min-width: 0;
  padding: 28px;
}

.detail-panel {
  background: var(--panel);
  border-left: 1px solid var(--border);
  padding: 28px 24px;
}

.page-title-row,
.detail-header {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 30px;
  letter-spacing: 0;
  line-height: 1.2;
}

h2 {
  font-size: 17px;
}

.page-title-row p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  margin-top: 8px;
}

.stats-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 24px 0;
}

.stats-grid article {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  min-height: 88px;
  padding: 16px;
}

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

.stats-grid strong {
  display: block;
  font-size: 28px;
  margin-top: 8px;
}

.filters {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.filter {
  background: white;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  min-height: 38px;
  padding: 0 16px;
}

.filter.active {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}

.table-wrap {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: auto;
}

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

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

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

tbody tr {
  transition: background 160ms ease;
}

tbody tr:hover,
tbody tr.selected {
  background: #fff8f4;
}

.product-cell {
  align-items: center;
  display: flex;
  gap: 12px;
  min-width: 240px;
}

.product-cell strong {
  display: block;
  font-size: 14px;
}

.product-cell span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  margin-top: 3px;
}

.product-thumb {
  border: 1px solid var(--border);
  border-radius: 8px;
  display: inline-flex;
  flex: 0 0 auto;
  height: 52px;
  overflow: hidden;
  position: relative;
  width: 62px;
}

.product-thumb::before,
.product-thumb::after {
  border-radius: 999px;
  content: "";
  position: absolute;
}

.product-thumb.flower {
  background: linear-gradient(135deg, #ffe6ec, #fff8f0);
}

.product-thumb.flower::before {
  background: #f06a94;
  box-shadow:
    12px -4px 0 #ff9bb5,
    24px 1px 0 #e94877,
    9px 12px 0 #f7b2c3;
  height: 18px;
  left: 13px;
  top: 11px;
  width: 18px;
}

.product-thumb.flower::after {
  background: #b9823d;
  border-radius: 4px;
  bottom: 6px;
  height: 18px;
  left: 23px;
  width: 18px;
}

.product-thumb.cake {
  background: linear-gradient(135deg, #f6dfc7, #fff5e8);
}

.product-thumb.cake::before {
  background: #7a4125;
  border-radius: 6px;
  bottom: 9px;
  height: 22px;
  left: 12px;
  width: 38px;
}

.product-thumb.cake::after {
  background: #ef5b46;
  height: 8px;
  left: 27px;
  top: 10px;
  width: 8px;
}

.product-thumb.gift {
  background: linear-gradient(135deg, #fff1c8, #e6f5f2);
}

.product-thumb.gift::before {
  background: #d9a33a;
  border-radius: 6px;
  bottom: 10px;
  height: 24px;
  left: 13px;
  width: 36px;
}

.product-thumb.gift::after {
  background: var(--teal);
  border-radius: 0;
  bottom: 10px;
  height: 24px;
  left: 28px;
  width: 5px;
}

.product-thumb.large {
  height: 72px;
  width: 86px;
}

.status {
  border-radius: 999px;
  display: inline-block;
  font-size: 12px;
  font-weight: 850;
  padding: 6px 10px;
  white-space: nowrap;
}

.status.new {
  background: var(--accent-soft);
  color: var(--accent);
}

.status.pickup {
  background: var(--teal-soft);
  color: var(--teal);
}

.status.reserve {
  background: var(--amber-soft);
  color: var(--amber);
}

.commerce-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  margin-top: 18px;
}

.operations-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px;
}

.product-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.product-row {
  align-items: center;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 12px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding-top: 12px;
}

.product-row p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.product-row button {
  background: white;
  border: 1px solid var(--border);
  color: var(--ink);
  min-height: 34px;
}

.settlement-row {
  align-items: center;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  padding: 16px 0;
}

.settlement-row span {
  color: var(--muted);
  font-size: 14px;
}

.settlement-row strong {
  font-size: 16px;
}

.detail-header {
  margin-bottom: 22px;
}

.detail-header p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 5px;
}

.icon-button {
  background: transparent;
  border: 0;
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
}

.detail-product {
  align-items: center;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 14px;
  padding-bottom: 22px;
}

.detail-product p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.privacy-detail {
  background: #f8fbfa;
  border: 1px solid #cde8e3;
  border-radius: 8px;
  margin: 22px 0;
  padding: 16px;
}

.privacy-detail strong {
  color: var(--teal);
  display: block;
  font-size: 14px;
}

.privacy-detail p,
.detail-warning {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  margin-top: 6px;
}

.detail-list {
  display: grid;
  gap: 16px;
  margin: 0;
}

.detail-list div {
  display: grid;
  gap: 10px;
  grid-template-columns: 92px minmax(0, 1fr);
}

.detail-list dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.detail-list dd {
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

.detail-warning {
  background: #f7f7f5;
  border-radius: 8px;
  margin-top: 26px;
  padding: 14px;
}

.detail-actions {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
  margin-top: 22px;
}

.toast {
  background: var(--ink);
  border-radius: 8px;
  bottom: 24px;
  color: white;
  font-size: 14px;
  font-weight: 800;
  left: 50%;
  opacity: 0;
  padding: 12px 16px;
  pointer-events: none;
  position: fixed;
  transform: translate(-50%, 12px);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 1180px) {
  .seller-shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }

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

  .detail-panel {
    border-left: 0;
    border-top: 1px solid var(--border);
  }
}

@media (max-width: 760px) {
  .seller-shell {
    display: block;
  }

  .sidebar {
    border-bottom: 1px solid var(--border);
    border-right: 0;
  }

  .topbar,
  .page-title-row,
  .detail-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .workspace {
    display: block;
  }

  .content-panel,
  .detail-panel {
    padding: 22px 16px;
  }

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

  .detail-actions {
    display: flex;
  }
}
