/* 허브 styles.css 위에 얹는 온보딩·어드민 오버레이만. 셸/내비/KPI는 허브 토큰. */

.nav-brand__mark,
.admin-row__mark {
  display: none !important;
}

.sidebar-nav {
  gap: 8px;
  padding: 10px 8px 14px;
}

.brand-tree {
  gap: 2px;
}

.nav-branch {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin: 0 0 6px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(154, 171, 191, 0.18);
}

.nav-branch:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.nav-item--parent {
  font-size: 13px;
  font-weight: 700;
  padding: 8px 8px;
}

.nav-tree__chev {
  flex-shrink: 0;
  width: 0;
  height: 0;
  margin-right: 2px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.72;
  transform: rotate(-90deg);
  transition: transform 0.16s ease;
}

.nav-branch.is-open > .nav-item--parent .nav-tree__chev {
  transform: rotate(0deg);
}

.nav-tree__kids {
  display: none;
  flex-direction: column;
  gap: 1px;
  margin: 2px 0 4px 10px;
}

.nav-branch.is-open > .nav-tree__kids {
  display: flex;
}

.nav-item--child {
  font-size: 12.5px;
  font-weight: 500;
  padding: 6px 8px 6px 4px;
  color: rgba(226, 232, 240, 0.9);
}

.nav-tree__n {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  margin: 0 6px 4px 2px;
  border-left: 1px solid rgba(154, 171, 191, 0.55);
  border-bottom: 1px solid rgba(154, 171, 191, 0.55);
}

.nav-item.is-active .nav-tree__n {
  border-color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 960px) and (min-width: 769px) {
  .nav-tree__kids {
    margin-left: 0;
  }
}

.dev-pill {
  display: inline-flex;
  margin-top: 6px;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: #cbd5e1;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px 6px 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
}
.user-chip__avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--dark);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.user-chip__name {
  font-size: 13px;
  font-weight: 600;
}

.admin-view {
  z-index: 90;
}
.admin-bar {
  justify-content: flex-start;
  padding: 10px 20px;
  background: #fff;
}
.admin-bar-inner {
  width: min(920px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.admin-bar-lead {
  width: 100%;
  gap: 12px;
}
.admin-bar #adminBackBtn {
  height: 32px;
  padding: 0 12px;
  font-size: 12.5px;
  border-radius: 8px;
  flex-shrink: 0;
}
.admin-brand {
  font-size: 15px;
  line-height: 1.3;
  word-break: keep-all;
}
.admin-bar-sub {
  font-size: 12px;
  color: var(--muted);
  word-break: keep-all;
}

.admin-onboard {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 20px 96px;
  overflow: auto;
  background: var(--bg);
}
.admin-onboard .stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.admin-onboard > .stack {
  width: min(880px, 100%);
  margin: 0 auto;
}
.admin-onboard.is-split {
  padding: 12px 0 0;
  align-items: stretch;
  overflow: hidden;
}
.admin-onboard.is-split > .stack {
  width: 100%;
  max-width: none;
  height: 100%;
  min-height: 0;
  gap: 10px;
}
.admin-onboard.is-split .brand-toolbar,
.admin-onboard.is-split .steps {
  flex-shrink: 0;
  width: calc(100% - 40px);
  margin: 0 20px;
}
.admin-view.is-onboard-split .admin-bar-inner {
  width: calc(100% - 40px);
  max-width: none;
}

.onboard-split {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.onboard-split__ask {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 4px 20px 88px;
  overflow-anchor: none;
}
.onboard-split__ask > .panel {
  margin: 0;
}
.hub-live-cap {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #eef4ff;
  border: 1px solid rgba(37, 99, 235, 0.18);
  font-size: 13px;
  line-height: 1.45;
  color: #1e3a8a;
}
.hub-live-ledger {
  display: none;
  margin: 0 0 14px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px dashed rgba(37, 99, 235, 0.45);
  background: #eef4ff;
}
html.is-onboard-live #dashScroll.is-live-focus .hub-live-ledger.is-lit {
  display: block;
}
.hub-live-ledger strong { display: block; margin: 2px 0 6px; }
.hub-live-ledger p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.45; }

html.is-onboard-live .admin-view {
  right: auto;
  width: min(560px, 44vw);
  border-right: 1px solid var(--line);
  box-shadow: 8px 0 24px rgba(15, 23, 42, 0.08);
}
html.is-onboard-live .shell {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: min(560px, 44vw);
  width: auto;
  height: auto;
  grid-template-columns: minmax(0, 1fr);
}
html.is-onboard-live .sidebar {
  display: none;
}
html.is-onboard-live .main {
  pointer-events: auto;
}
html.is-onboard-live #dashScroll select,
html.is-onboard-live #dashScroll button,
html.is-onboard-live #dashScroll input {
  pointer-events: none;
}
html.is-onboard-live #dashScroll [data-live-snap] {
  position: relative;
  border-radius: 12px;
  transition: opacity 0.18s ease, box-shadow 0.18s ease;
}
html.is-onboard-live #dashScroll.is-live-focus [data-live-snap]:not(.is-lit):not(:has(.is-lit)) {
  opacity: 0.38;
}
html.is-onboard-live #dashScroll.is-live-focus [data-live-snap].is-lit,
html.is-onboard-live #dashScroll.is-live-focus [data-live-snap].is-lit [data-live-snap] {
  opacity: 1;
}
html.is-onboard-live #dashScroll.is-live-focus [data-live-snap].is-lit {
  outline: 2px solid #2563eb;
  outline-offset: 4px;
  box-shadow: 0 0 0 8px rgba(37, 99, 235, 0.14);
  z-index: 2;
}

[data-snap-target] {
  cursor: default;
}
.q-card[data-snap-target]:hover,
.map-row[data-snap-target]:hover,
.explain-row[data-snap-target]:hover,
.mkt-slot[data-snap-target]:hover {
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.28);
}

@media (max-width: 1100px) {
  html.is-onboard-live .admin-view {
    width: 100%;
    height: 46vh;
    bottom: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  html.is-onboard-live .shell {
    left: 0;
    top: 46vh;
  }
}
.admin-onboard form.stack {
  width: 100%;
  gap: 14px;
}
.admin-onboard .grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.admin-onboard.is-split .panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  padding: 28px 32px 24px;
}
.admin-onboard.is-split .panel > .eyebrow {
  margin: 0 0 6px;
}
.admin-onboard.is-split .panel > h2,
.admin-onboard.is-split .panel-head h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.28;
}
.admin-onboard.is-split .panel > .note,
.admin-onboard.is-split .panel-head .note,
.admin-onboard.is-split .note {
  max-width: none;
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}
.admin-onboard.is-split .panel-head {
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 16px;
}
.admin-onboard.is-split .panel-head .btn {
  height: 40px;
  padding: 0 16px;
  flex-shrink: 0;
}

.admin-onboard .field {
  width: 100%;
  font-size: 13px;
  font-family: var(--font);
  letter-spacing: 0;
  color: var(--ink);
  gap: 6px;
  font-weight: 650;
}
.admin-onboard .field input,
.admin-onboard .field select {
  width: 100%;
  min-width: 0;
  height: 46px;
  padding: 0 14px;
  font-size: 15px;
  border-radius: 10px;
}
.brand-pick {
  position: relative;
}
.brand-pick input {
  padding-right: 46px;
}
.brand-pick__chev {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #475569;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.brand-pick__menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 8;
  margin: 0;
  padding: 6px;
  list-style: none;
  max-height: 240px;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}
.brand-pick__opt {
  display: block;
  width: 100%;
  height: auto;
  min-height: 40px;
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
}
.brand-pick__opt:hover,
.brand-pick__opt:focus {
  background: var(--primary-soft);
  color: var(--primary-hover);
}
.brand-pick__empty {
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
  line-height: 1.45;
}
.admin-onboard.is-split .btn {
  height: 40px;
  padding: 0 16px;
  font-size: 13.5px;
  border-radius: 10px;
}
.admin-onboard.is-split .btn-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}
.admin-onboard.is-home .btn-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 8px;
  margin-top: 10px;
}

.admin-onboard.is-home {
  padding: 20px 20px 56px;
  align-items: stretch;
}
.admin-onboard.is-home > .stack {
  width: min(880px, 100%);
  gap: 14px;
}
.admin-onboard.is-raw > .stack {
  width: 100%;
  max-width: none;
  flex: 1;
  height: 100%;
  min-height: 0;
  gap: 0;
}
.admin-view.is-raw .admin-bar-inner {
  width: 100%;
  max-width: none;
}
.admin-onboard.is-raw {
  padding: 10px 14px 0;
  overflow: hidden;
}
.admin-onboard.is-raw .raw-view {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 12px 14px 0;
  overflow: hidden;
}
.admin-onboard.is-raw .panel-head {
  flex-shrink: 0;
  margin-bottom: 8px;
  padding-bottom: 8px;
}
.admin-onboard.is-raw .panel-head .note,
.admin-onboard.is-raw .note {
  white-space: normal;
  max-width: none;
}
.admin-onboard.is-home .panel {
  padding: 16px 18px 16px;
  border-radius: 14px;
}
.admin-onboard.is-home .panel-head {
  align-items: flex-start;
  margin-bottom: 12px;
  padding-bottom: 12px;
}
.admin-onboard.is-home .panel-head h2 {
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  word-break: keep-all;
}
.admin-onboard.is-home .note,
.admin-row {
  word-break: keep-all;
}
.admin-onboard.is-home .panel-head .note {
  margin-top: 6px;
  font-size: 13.5px;
  line-height: 1.45;
  max-width: none;
  white-space: normal;
}
.sheet-guide__title {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 650;
}

.admin-onboard.is-match {
  padding: 16px 18px 40px;
  align-items: stretch;
  overflow: auto;
}
.admin-onboard.is-match > .stack {
  width: min(1080px, 100%);
  max-width: none;
  height: auto;
  min-height: 0;
  gap: 12px;
}
.xl-book-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.xl-book-head h2 {
  margin: 2px 0 0;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}
.xl-book__note {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}
.xl-book {
  background: #fff;
  border: 1px solid #c5cdd6;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.xl-formula {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-bottom: 1px solid #d0d7de;
  background: #f6f8fa;
  font-size: 12.5px;
  min-width: 0;
}
.xl-formula__fx {
  flex-shrink: 0;
  width: 28px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid #d0d7de;
  border-radius: 4px;
  background: #fff;
  font-weight: 700;
  font-style: italic;
  color: #64748b;
}
.xl-formula__bar {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.xl-formula__bar a {
  color: #1d4ed8;
  font-weight: 650;
}
.xl-grid a.xl-open {
  color: #1d4ed8;
  font-weight: 700;
  text-decoration: underline;
  white-space: nowrap;
}
.xl-grid-wrap {
  overflow: auto;
  max-height: min(62vh, 640px);
  background: #fff;
}
.xl-grid {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  table-layout: auto;
  font-size: 13px;
}
.xl-grid th,
.xl-grid td {
  border: 1px solid #d0d7de;
  padding: 7px 10px;
  vertical-align: top;
  line-height: 1.4;
}
.xl-grid thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #eef2f6;
  font-weight: 650;
  text-align: left;
  white-space: nowrap;
}
.xl-grid .num,
.xl-grid th.num {
  width: 2.4rem;
  text-align: right;
  color: #64748b;
  background: #f8fafc;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.xl-grid thead th.num {
  background: #e8edf2;
}
.xl-grid tbody th.num {
  position: sticky;
  left: 0;
  z-index: 1;
}
.xl-grid tbody tr:nth-child(even) td {
  background: #fafbfc;
}
.xl-grid .xl-gid code,
.xl-grid code {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
  background: transparent;
}
.xl-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 2px;
  overflow-x: auto;
  padding: 6px 8px 0;
  background: #e8edf2;
  border-top: 1px solid #d0d7de;
  min-height: 36px;
}
.xl-tab {
  appearance: none;
  border: 1px solid transparent;
  border-bottom: 0;
  background: transparent;
  color: #334155;
  padding: 7px 14px 8px;
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 6px 6px 0 0;
  cursor: pointer;
  white-space: nowrap;
}
.xl-tab:hover {
  background: rgba(255, 255, 255, 0.55);
}
.xl-tab.is-on {
  background: #fff;
  border-color: #c5cdd6;
  color: #0f172a;
}

.admin-rows {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.admin-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  width: 100%;
  margin: 0;
  padding: 14px 16px;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  background: #fff;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: default;
  -webkit-appearance: none;
  appearance: none;
}
.admin-row:last-child { border-bottom: 0; }
.admin-row:hover {
  background: #f8fafc;
}
.admin-row__copy {
  flex: 1 1 160px;
  min-width: 0;
}
.admin-row__copy strong {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.admin-row__copy p {
  margin: 3px 0 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
}
.admin-row__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  margin-left: auto;
}
.admin-row__actions .btn {
  height: 32px;
  padding: 0 11px;
  font-size: 12.5px;
  border-radius: 8px;
}
.admin-empty {
  padding: 36px 20px;
  text-align: center;
  border: 1px dashed #d5dee8;
  border-radius: 12px;
  background: #f8fafc;
}
.admin-empty strong {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  color: var(--ink);
}
.admin-empty p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  word-break: keep-all;
}

.brand-card,
.add-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 188px;
  padding: 16px 16px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.brand-card:hover,
.add-card:hover {
  border-color: rgba(46, 172, 57, 0.35);
  box-shadow: 0 0 0 3px rgba(46, 172, 57, 0.07);
}
.add-card {
  display: grid;
  place-items: center;
  border-style: dashed;
  background: #fbfcfe;
  color: var(--muted);
  font-weight: 700;
  font-size: 15px;
}
.brand-card.is-locked {
  cursor: default;
  background: #fbfcfe;
  min-height: 140px;
}
.brand-card__name { font-size: 16px; font-weight: 750; letter-spacing: -0.02em; }
.brand-card__meta {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  background: var(--primary-soft);
  color: var(--primary-hover);
  width: fit-content;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}
.badge-mute {
  background: #eef2f6;
  color: #64748b;
}
.admin-row .badge,
.admin-row .badge-mute {
  flex-shrink: 0;
  -webkit-text-stroke: 0;
  text-shadow: none;
  font-synthesis: none;
}

.btmall-page .panel-head .note {
  white-space: normal !important;
  max-width: 42rem;
}
.btmall-log {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0f172a;
  color: #e2e8f0;
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow: auto;
  max-height: 220px;
}

.steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 4px;
  margin: 0;
  padding: 6px 8px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
}
.step-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  color: #94a3b8;
  background: transparent;
}
.step-chip.is-active {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary-hover);
  font-weight: 700;
}
.step-chip.is-done { color: #334155; }
.step-chip.is-active {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary-hover);
  font-weight: 700;
}
.step-chip.is-done { color: var(--ink); }

.dropzone {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 168px;
  padding: 28px 20px;
  border-radius: 14px;
  border: 1.5px dashed #cbd5e1;
  background: #f8fafc;
  text-align: center;
  cursor: pointer;
}
.dropzone.is-over {
  border-color: var(--primary);
  background: var(--primary-soft);
}
.dropzone strong { display: block; margin-bottom: 6px; font-size: 15px; word-break: keep-all; }
.dropzone span { font-size: 13px; color: var(--muted); word-break: keep-all; }

.compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: stretch;
}
.compare-card {
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fbfcfe;
}
.compare-card .k {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted-2);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.compare-card .v {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  word-break: break-all;
}
.compare-arrow {
  display: grid;
  place-items: center;
  color: var(--muted-2);
  font-size: 20px;
}
.issue-box {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--warn-bg);
  border: 1px solid var(--warn-line);
  font-size: 13px;
  line-height: 1.45;
}
.issue-box.ok {
  background: var(--primary-soft);
  border-color: rgba(46, 172, 57, 0.25);
}

.q-card {
  padding: 14px 16px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  margin-bottom: 10px;
}
.q-card.is-yes { border-color: rgba(46, 172, 57, 0.45); background: #f6fbf6; }
.q-card.is-sheet { border-color: rgba(37, 99, 235, 0.3); background: #f7f9fd; }
.q-card.is-no { border-color: var(--line); background: #f8fafc; }
.q-card__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin-bottom: 2px;
}
.q-card__panel {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--muted-2);
  word-break: keep-all;
}
.q-card h3 {
  margin: 6px 0 6px;
  font-size: 15.5px;
  letter-spacing: -0.02em;
  line-height: 1.4;
  word-break: keep-all;
}
.q-card p {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  word-break: keep-all;
}
.q-card .kid-where {
  margin: 4px 0 0;
  color: var(--primary-hover);
}
.q-card .q-card__q {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.55;
}
.q-card .q-card__hint {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.5;
}
.q-card__sheets {
  margin: 4px 0 8px;
  padding: 0 0 0 1.15em;
  display: grid;
  gap: 2px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink);
  word-break: keep-all;
}
.yn {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.yn.yn-3 {
  grid-template-columns: 1fr;
}
.yn .btn {
  width: 100%;
  height: auto;
  min-height: 40px;
  padding: 9px 12px;
  white-space: normal;
  line-height: 1.4;
  text-align: center;
  word-break: keep-all;
  border-radius: 10px;
}
.yn button.is-on,
.q-card .btn.is-on,
.data-edit .btn.is-on {
  background: var(--primary);
  color: #fff;
  border-color: transparent;
}

.col-chip {
  display: inline-flex;
  align-items: center;
  margin: 0 8px 8px 0;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-hover);
  font-size: 13px;
  font-weight: 700;
  font-family: var(--mono);
}

.btn-accent {
  border-color: transparent;
  background: var(--primary);
  color: #fff;
}
.btn-accent:hover { background: var(--primary-hover); color: #fff; }
.btn-ghost { background: transparent; }

.toast {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: 96px;
  z-index: 120;
  transform: translateX(-50%);
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--dark);
  color: #fff;
  font-size: 13px;
  box-shadow: var(--shadow-md);
}
.toast[hidden] { display: none !important; }

#adminView:not([hidden]) ~ .space-launcher-stack,
#adminView:not([hidden]) ~ .sidebar-expand-chip {
  display: none !important;
}

.env-chip[hidden] {
  display: none !important;
}
.env-chip.is-mock {
  background: #fef3c7;
  color: #92400e;
  border-color: #f59e0b;
}

.rank-list .mix-row,
.why-table .mix-row,
.alerts .mix-row {
  cursor: pointer;
}

.dash-empty {
  padding: 28px 8px 8px;
  color: var(--muted);
  font-size: 13px;
}

.mix-donut-css {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  margin: 8px auto;
}

.mkt-fork {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.mkt-fork__btn {
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-height: auto;
  height: auto;
  padding: 16px 18px;
  text-align: left;
  white-space: normal;
  line-height: 1.45;
}
.mkt-fork__title {
  font-size: 16px;
  font-weight: 700;
  color: inherit;
}
.mkt-fork__desc {
  font-size: 13px;
  line-height: 1.45;
  font-weight: 500;
}
.mkt-fork__btn--yes {
  background: var(--primary-soft);
  border: 2px solid var(--primary);
  color: var(--primary-hover);
  box-shadow: none;
}
.mkt-fork__btn--yes .mkt-fork__desc {
  color: #475569;
}
.mkt-fork__btn--yes:hover {
  background: #dbeafe;
  border-color: var(--primary-hover);
  color: var(--primary-hover);
}
.mkt-fork__btn--later {
  background: #fff;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  box-shadow: none;
}
.mkt-fork__btn--later .mkt-fork__desc {
  color: #475569;
}
.mkt-fork__btn--later:hover {
  border-color: var(--accent);
  background: var(--primary-soft);
  color: #0f172a;
}

.mkt-slot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}
.mkt-slot {
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
}
.mkt-slot.is-must {
  border-color: rgba(15, 23, 42, 0.35);
  background: #f8fafc;
}
button.mkt-slot {
  width: 100%;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
#domainToggle {
  cursor: pointer;
}
.mkt-slot .k {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.mkt-slot h3 { margin: 6px 0 4px; font-size: 15px; }
.mkt-slot p { margin: 0; font-size: 13px; color: var(--muted); }
.mkt-slot .col {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
}

.brand-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 10px;
}
.admin-onboard .btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.data-edit .data-edit__meta {
  margin-top: 6px;
  white-space: nowrap;
  max-width: none;
}
.data-edit .data-edit__actions {
  flex-wrap: wrap;
  white-space: normal;
}
.data-edit-choice {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.data-edit-choice .note {
  white-space: nowrap;
  max-width: none;
  margin: 0 0 8px;
}
.raw-workbook {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.raw-workbook.is-match-only {
  flex: 1 1 auto;
  overflow: auto;
}
.raw-workbook.is-match-only .raw-match {
  margin: 0;
  max-width: 52rem;
}
.raw-match .eyebrow {
  margin: 0 0 8px;
}
.raw-match-table {
  width: 100%;
  margin: 0 0 8px;
}
.raw-match-table th,
.raw-match-table td {
  vertical-align: top;
}
.raw-match-table tbody th {
  font-weight: 600;
  white-space: nowrap;
  width: 8rem;
}
.raw-match .note {
  margin: 0;
}
.raw-match .note + .note {
  margin-top: 6px;
}
.raw-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px 16px;
  margin: 0 0 8px;
  flex-shrink: 0;
}
.raw-toolbar__meta {
  margin: 0;
  flex: 1 1 240px;
}
.raw-toolbar__find {
  min-width: 200px;
  margin: 0;
}
.raw-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  max-height: none;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: #fff;
}
.raw-table {
  width: max-content;
  min-width: 100%;
}
.raw-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
}
.raw-table th:first-child,
.raw-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #fff;
}
.raw-table thead th:first-child {
  z-index: 3;
}
.raw-table th,
.raw-table td {
  padding: 7px 10px;
  font-size: 12.5px;
}
.raw-pager {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 8px 4px;
  font-size: 13px;
  color: var(--muted);
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-top: 0;
  background: #fafbfc;
}
.raw-sheets {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: 0;
  overflow-x: auto;
  margin: 0 -14px;
  padding: 0 14px;
  min-height: 34px;
  background: #eceef2;
  border-top: 1px solid #c9ced6;
  flex-shrink: 0;
}
.raw-sheet {
  appearance: none;
  flex: 0 0 auto;
  margin: 4px 2px 0 0;
  padding: 7px 14px 6px;
  border: 1px solid #c9ced6;
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  background: #e4e7ec;
  color: #3c4043;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.raw-sheet em {
  font-style: normal;
  font-weight: 500;
  color: #6b7280;
  margin-left: 4px;
}
.raw-sheet:hover {
  background: #eef0f4;
}
.raw-sheet.is-on {
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  position: relative;
  z-index: 1;
  padding-bottom: 8px;
  margin-bottom: -1px;
}
.raw-sheet.is-on em {
  color: var(--muted);
}
.brand-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.btn-danger {
  background: #fff;
  color: #b91c1c;
  border-color: #fecaca;
}
.btn-danger:hover {
  background: #fef2f2;
}
.modal-delete-backdrop {
  z-index: 130;
}
.modal-delete {
  width: min(440px, 100%);
  max-height: none;
}
.modal-delete .note {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.55;
  color: #334155;
}
.delete-brand-list {
  margin: 0 0 14px;
  padding: 12px 14px 12px 32px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid var(--line);
  font-size: 13.5px;
  line-height: 1.55;
  color: #0f172a;
}
.delete-brand-warn {
  margin: 0 0 18px;
  font-size: 13px;
  font-weight: 700;
  color: #b91c1c;
  line-height: 1.45;
}
.delete-brand-actions {
  justify-content: flex-end;
}
.admin-confirm {
  margin: 0 0 16px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid #fcd34d;
  background: #fffbeb;
}
.admin-confirm p { margin: 0 0 12px; font-size: 14px; line-height: 1.45; }
.kid-where {
  margin: 6px 0 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-hover);
}
.explain-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.explain-row {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 4px 14px;
  align-items: baseline;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fbfcfe;
}
.explain-row strong { font-size: 14px; }
.explain-row span { font-size: 12px; color: var(--muted); font-family: var(--mono); grid-column: 1; grid-row: 2; }
.explain-row em { font-style: normal; font-size: 13px; color: var(--ink); grid-column: 2; grid-row: 1 / span 2; }
.map-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}
.map-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 12px 24px;
  align-items: center;
  padding: 18px 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
}
.map-row__copy { min-width: 0; }
.map-row__where {
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-hover);
}
.map-row h3 { margin: 4px 0 6px; font-size: 17px; }
.map-row p { margin: 0 0 6px; font-size: 13px; color: var(--muted); }
.map-row__guess { font-size: 12px; }
.map-row__sample {
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink);
}
.map-row__warn {
  margin: 6px 0 0;
  color: #b45309;
  font-weight: 700;
}
.dim-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}
.dim-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px minmax(180px, 280px);
  gap: 10px 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
}
.dim-row__from .k {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted-2);
}
.dim-row__from strong {
  display: block;
  margin-top: 2px;
  font-size: 15px;
  word-break: break-word;
}
.dim-row__arrow {
  text-align: center;
  color: var(--muted);
  font-weight: 700;
}
.dim-row__to { margin: 0; }
.upload-mode {
  margin: 0 0 14px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid var(--line);
}
.upload-mode p { margin: 0 0 10px; font-size: 14px; }

#mktVisual {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 4px;
}
#mktVisual[hidden] {
  display: none !important;
}
#sec-marketing .trend-block {
  margin-top: 0;
}
.mkt-mix {
  align-items: start;
}
.mkt-daily .subhead {
  margin: 0 0 8px;
}
#sec-marketing .kpi-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}
#sec-marketing .kpi-grid.mkt-kpi-eff {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 16px;
}
#sec-marketing .kpi-grid.mkt-kpi-eff[hidden] {
  display: none !important;
}
#sec-marketing .kpi {
  padding: 14px 12px 12px;
  overflow: visible;
  min-width: 0;
}
#sec-marketing .kpi-value {
  margin-top: 8px;
  font-size: clamp(15px, 1.2vw, 22px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#sec-marketing .kpi-sub {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 900px) {
  #sec-marketing .kpi-grid,
  #sec-marketing .kpi-grid.mkt-kpi-eff {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.trend-leg-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ink);
  background: transparent;
  border: 0;
  padding: 2px 4px;
  cursor: pointer;
}
.trend-leg-item:hover {
  color: var(--accent-ink);
}
.panel-actions .field select {
  min-width: 8.5rem;
  max-width: 14rem;
}
.trend-leg-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  flex: 0 0 8px;
}

@media (max-width: 900px) {
  .admin-bar,
  .admin-onboard {
    padding-left: 16px;
    padding-right: 16px;
  }
  .admin-onboard .panel {
    padding: 20px 18px 18px;
  }
  .admin-onboard .grid-3,
  .compare,
  .mkt-slot-grid,
  .mkt-board,
  .map-row,
  .dim-row,
  .explain-row,
  .yn {
    grid-template-columns: 1fr;
  }
  .explain-row span,
  .explain-row em {
    grid-column: 1;
    grid-row: auto;
  }
}

/* 온보딩 좌측: 좁은 폭에서도 한국어가 어절 단위로 줄바꿈되고 카드가 한 열로 쌓임 */
html.is-onboard-live .admin-bar {
  padding: 10px 16px;
  align-items: flex-start;
}
html.is-onboard-live .admin-bar-inner {
  width: calc(100% - 32px);
}
html.is-onboard-live .admin-bar-lead {
  align-items: flex-start;
  min-width: 0;
  width: 100%;
}
html.is-onboard-live .admin-bar-title {
  min-width: 0;
  flex: 1;
}
html.is-onboard-live .admin-brand,
html.is-onboard-live .admin-bar-sub {
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: break-word;
}
html.is-onboard-live .admin-bar-sub {
  line-height: 1.45;
}

html.is-onboard-live .admin-onboard.is-split .brand-toolbar,
html.is-onboard-live .admin-onboard.is-split .steps {
  width: calc(100% - 32px);
  margin: 0 16px;
  justify-content: flex-start;
}
html.is-onboard-live .step-chip {
  white-space: nowrap;
  padding: 3px 8px;
  font-size: 11px;
}
html.is-onboard-live .onboard-split__ask {
  padding: 4px 16px 96px;
}
html.is-onboard-live .hub-live-cap {
  word-break: keep-all;
  overflow-wrap: break-word;
  line-height: 1.55;
}

html.is-onboard-live .admin-onboard .panel {
  padding: 18px 16px 18px;
}
html.is-onboard-live .admin-onboard .panel > h2,
html.is-onboard-live .admin-onboard .panel-head h2 {
  font-size: 1.22rem;
  line-height: 1.4;
  word-break: keep-all;
  overflow-wrap: break-word;
}
html.is-onboard-live .admin-onboard .note,
html.is-onboard-live .kid-where,
html.is-onboard-live .map-row,
html.is-onboard-live .explain-row,
html.is-onboard-live .dim-row,
html.is-onboard-live .mkt-slot,
html.is-onboard-live .mkt-fork {
  word-break: keep-all;
  overflow-wrap: break-word;
  flex-direction: row;
}
html.is-onboard-live .mkt-fork__btn {
  flex: 1 1 0;
  min-width: 0;
}
html.is-onboard-live .admin-onboard .note {
  line-height: 1.6;
}

html.is-onboard-live .admin-onboard .btn {
  height: auto;
  min-height: 40px;
  white-space: normal;
  line-height: 1.4;
  word-break: keep-all;
  padding: 8px 14px;
}
html.is-onboard-live .btn-row {
  justify-content: flex-start;
}

html.is-onboard-live .compare,
html.is-onboard-live .mkt-slot-grid,
html.is-onboard-live .map-row,
html.is-onboard-live .dim-row,
html.is-onboard-live .explain-row {
  grid-template-columns: 1fr;
}
html.is-onboard-live .explain-row {
  gap: 4px;
}
html.is-onboard-live .explain-row span,
html.is-onboard-live .explain-row em {
  grid-column: 1;
  grid-row: auto;
}
html.is-onboard-live .map-row {
  gap: 12px;
  align-items: stretch;
}
html.is-onboard-live .map-row__sample {
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.45;
}
html.is-onboard-live .dim-row {
  gap: 6px 10px;
}
html.is-onboard-live .dim-row__arrow {
  display: none;
}
html.is-onboard-live .compare-arrow {
  padding: 0;
  font-size: 16px;
}
html.is-onboard-live .compare-card .v {
  word-break: break-word;
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.page-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.page-title-row h1 {
  margin: 0;
}
.topbar-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  align-items: center;
}
.pill-action {
  cursor: pointer;
  background: var(--bg-elevated);
  color: var(--ink);
  font: inherit;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
}
.pill-action:hover {
  background: #fff;
  border-color: var(--accent);
}
.panel-head h2,
.trend-title {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.panel-help {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg-elevated);
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.panel-help:hover,
.panel-help.is-open {
  border-color: var(--accent);
  color: var(--accent-ink);
  background: var(--accent-soft);
}
.panel-help-pop {
  position: fixed;
  z-index: 80;
  width: min(340px, calc(100vw - 24px));
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(20, 40, 70, 0.14);
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink);
  white-space: pre-wrap;
}
.panel-help-pop strong {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
}

.freshness-banner {
  margin: 0 0 14px;
  padding: 10px 14px;
  border: 1px solid rgba(217, 119, 6, 0.28);
  background: #fffbeb;
  border-radius: 10px;
  color: #92400e;
  font-size: 13px;
  line-height: 1.45;
}
.freshness-banner[hidden] {
  display: none;
}
.freshness-banner p {
  margin: 0;
}
.freshness-banner p + p {
  margin-top: 4px;
}

body.hub-forest-sales #sec-why,
body.hub-forest-sales #sec-mix,
body.hub-forest-sales #sec-portfolio,
body.hub-forest-sales #sec-events,
body.hub-forest-sales #alerts,
body.hub-forest-sales .hub-live-ledger,
body.hub-forest-sales #trendDrillCrumb,
body.hub-forest-sales #sec-overview .panel-actions,
body.hub-forest-sales label.field:has(#trendBasis) {
  display: none !important;
}

body.hub-forest-mkt .hub-live-ledger,
body.hub-forest-mkt [data-live-snap="marketing-camp"],
body.hub-forest-mkt [data-live-snap="marketing-rank"],
body.hub-forest-mkt [data-live-snap="marketing-date"] {
  display: none !important;
}

body.hub-forest-mkt .mkt-mix {
  align-items: start;
}

#mktForest {
  margin-top: 18px;
}

#mktForest .subhead,
#sec-brand-forest .note {
  margin: 0 0 10px;
}

.forest-table th,
.forest-table td {
  padding: 11px 12px;
}

.forest-table tbody td:first-child {
  font-weight: 600;
}
