/**
 * 세일즈 허브 — master·OMS와 같은 편집샵 근간.
 * html.editorial-console 만. 집계·시트 로직은 유지, 초록 ERP 크롬만 걷는다.
 */
html.editorial-console {
  --bg: var(--ed-paper);
  --bg-deep: var(--ed-paper);
  --bg-elevated: var(--ed-canvas);
  --surface: var(--ed-canvas);
  --card: var(--ed-canvas);
  --text: var(--ed-ink);
  --ink: var(--ed-ink);
  --muted: var(--ed-mute);
  --muted-2: var(--ed-faint);
  --line: var(--ed-line);
  --line-soft: var(--ed-wash);
  --dark: var(--ed-ink);
  --dark-2: var(--ed-ink);
  --dark-lift: var(--ed-ink-soft);
  --primary: var(--ed-ink);
  --primary-hover: #000;
  --primary-soft: var(--ed-wash);
  --accent: var(--ed-ink);
  --accent-ink: var(--ed-ink);
  --accent-soft: var(--ed-wash);
  --ok: var(--ed-ink);
  --danger: var(--ed-danger);
  --signal: var(--ed-danger);
  --up: #9a5c45;
  --down: var(--ed-ink-soft);
  --alert-up-bg: rgba(154, 92, 69, 0.08);
  --alert-down-bg: var(--ed-wash);
  --sidebar: var(--ed-canvas);
  --sidebar-ink: var(--ed-ink);
  --sidebar-muted: var(--ed-faint);
  --sidebar-line: var(--ed-line);
  --sidebar-active: transparent;
  --radius-sm: 0px;
  --radius-md: 0px;
  --radius-lg: 0px;
  --radius: 0px;
  --shadow-sm: none;
  --shadow-md: none;
  --sidebar-w: 248px;
  --chart-1: #1a1b1d;
  --chart-2: #3d3f43;
  --chart-3: #9a5c45;
  --chart-4: #7c7e82;
  --chart-5: #9b3148;
  --chart-6: #5c5e62;
  --chart-7: #b08968;
  --chart-8: #a4a6aa;
  --chart-9: #1a1b1d;
  --chart-10: #3d3f43;
}

html.editorial-console {
  background: var(--ed-paper);
}

html.editorial-console body {
  background: var(--ed-paper);
  color: var(--ed-ink);
  font-family: var(--ed-font);
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
  font-weight: 450;
}

html.editorial-console ::selection {
  background: rgba(26, 27, 29, 0.12);
  color: var(--ed-ink);
}

/* ── Sidebar ── */

html.editorial-console .sidebar {
  background: var(--ed-canvas);
  color: var(--ed-ink);
  border-right: 1px solid var(--ed-line);
}

html.editorial-console .sidebar::after {
  display: none;
}

html.editorial-console .sidebar-brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 20px 22px 18px 20px;
  border-bottom: 1px solid var(--ed-line);
}

html.editorial-console .sidebar-logo {
  display: inline-flex;
  width: 28px;
  height: 28px;
  border-radius: 0;
  background: var(--ed-wash);
}

html.editorial-console .ed-wordmark__mark {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  line-height: 1;
  color: var(--ed-ink);
}

html.editorial-console .sidebar-brand em {
  margin: 0;
  font-family: var(--ed-font);
  font-size: var(--ed-micro);
  font-style: normal;
  font-weight: 500;
  letter-spacing: var(--ed-track-label);
  text-indent: var(--ed-track-label);
  text-transform: uppercase;
  color: var(--ed-faint);
}

html.editorial-console .sidebar-nav {
  padding: 18px 14px 12px 16px;
  gap: 2px;
}

html.editorial-console .nav-label {
  color: var(--ed-faint);
  letter-spacing: var(--ed-track-label);
}

html.editorial-console .nav-item {
  padding: 7px 10px;
  border-radius: 0;
  color: var(--ed-mute);
  font-size: var(--ed-ui);
  font-weight: 400;
}

html.editorial-console .nav-item.nav-scm {
  font-size: var(--ed-ui);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

html.editorial-console .nav-item:hover,
html.editorial-console .brand-expand:hover {
  background: transparent;
  color: var(--ed-ink);
}

html.editorial-console .nav-item.is-active,
html.editorial-console .nav-brand.is-active,
html.editorial-console .nav-item.is-active:hover,
html.editorial-console .nav-brand.is-active:hover {
  background: transparent;
  color: var(--ed-ink);
  font-weight: 600;
  box-shadow: inset 1.5px 0 0 var(--ed-ink);
}

html.editorial-console .nav-item.nav-sub,
html.editorial-console .nav-item--child {
  color: var(--ed-mute);
}

html.editorial-console .nav-item.nav-sub.is-active,
html.editorial-console .nav-item.nav-sub.is-active:hover {
  background: transparent;
  color: var(--ed-ink);
  box-shadow: inset 1.5px 0 0 var(--ed-ink);
}

html.editorial-console .nav-item.is-active .nav-tree__n {
  border-color: var(--ed-line-strong);
}

html.editorial-console .nav-branch {
  border-bottom-color: var(--ed-line);
}

html.editorial-console .brand-group.is-active-group {
  border-radius: 0;
  background: transparent;
}

html.editorial-console .brand-monitor {
  border-left-color: var(--ed-line);
}

html.editorial-console .nav-brand__logo,
html.editorial-console .nav-brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 18px;
  padding: 0 4px;
  border: 1px solid var(--ed-line);
  border-radius: 0;
  background: var(--ed-wash);
  color: var(--ed-ink);
  font-family: var(--ed-font);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.04em;
  line-height: 1;
}

html.editorial-console .nav-brand.is-active .nav-brand__logo,
html.editorial-console .nav-brand.is-active .nav-brand__mark {
  background: var(--ed-wash);
  box-shadow: none;
}

html.editorial-console .nav-badge,
html.editorial-console .nav-badge--rtdb,
html.editorial-console .nav-item.is-active .nav-badge,
html.editorial-console .nav-item.is-active .nav-badge--rtdb {
  border-radius: 0;
  border-color: var(--ed-line);
  background: transparent;
  color: var(--ed-faint);
}

html.editorial-console .dev-pill {
  border-radius: 0;
  border-color: var(--ed-line);
  color: var(--ed-faint);
}

html.editorial-console .sidebar-foot {
  margin-top: auto;
  padding: 10px 14px 12px;
  border-top: 1px solid var(--ed-line);
  gap: 6px;
}

html.editorial-console .sidebar .sidebar-more-hint__fade {
  background: linear-gradient(180deg, transparent, var(--ed-canvas) 72%);
}

html.editorial-console .sidebar .sidebar-more-hint__copy {
  color: var(--ed-faint);
}

html.editorial-console .sidebar .eibe-support-credit__copy,
html.editorial-console .sidebar .eibe-support-credit__meta {
  color: var(--ed-faint);
}

html.editorial-console .sidebar .space-launcher--rail {
  margin: 0;
  padding: 8px 10px;
  border: 1px solid var(--ed-line);
  background: transparent;
  color: var(--ed-ink);
  box-shadow: none;
  animation: none;
  opacity: 1;
  transform: none;
}

html.editorial-console .sidebar .space-launcher--rail:hover {
  border-color: var(--ed-ink);
  background: transparent;
}

html.editorial-console .sidebar .sidebar-collapse-rail {
  margin: 0;
  padding: 8px 10px;
  border: 1px solid var(--ed-line);
  border-radius: 0;
  background: transparent;
  color: var(--ed-ink);
  box-shadow: none;
}

html.editorial-console .sidebar .sidebar-collapse-rail:hover {
  border-color: var(--ed-ink);
  background: transparent;
  transform: none;
}

html.editorial-console .sidebar .sidebar-collapse-rail:focus-visible {
  outline: 1px solid var(--ed-ink);
  outline-offset: 3px;
}

html.editorial-console .sidebar .sidebar-collapse-rail__eyebrow {
  letter-spacing: 0.14em;
  color: var(--ed-faint);
}

html.editorial-console .sidebar .sidebar-collapse-rail__glyph {
  border-radius: 0;
  color: var(--ed-ink);
  background: var(--ed-wash);
  border-color: var(--ed-line);
}

html.editorial-console .sidebar .eibe-support-credit__copy {
  font-size: var(--ed-micro);
  font-weight: 550;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ── Main · topbar ── */

html.editorial-console .main,
html.editorial-console .main-scroll,
html.editorial-console .admin-onboard {
  background: var(--ed-paper);
}

html.editorial-console .topbar {
  align-items: center;
  min-height: var(--ed-topbar);
  padding: 8px 24px;
  background: var(--ed-canvas);
  border-bottom: 1px solid var(--ed-line);
  backdrop-filter: none;
}

html.editorial-console .topbar::after {
  display: none;
}

html.editorial-console .brand {
  font-family: var(--ed-font);
  font-size: var(--ed-micro);
  font-weight: 550;
  letter-spacing: var(--ed-track-label);
  color: var(--ed-faint);
}

html.editorial-console .brand-block h1,
html.editorial-console .topbar h1 {
  font-size: var(--ed-title);
  font-weight: 540;
  letter-spacing: var(--ed-track-title);
  color: var(--ed-ink);
}

html.editorial-console .topbar-sub {
  margin-top: 2px;
  font-size: var(--ed-ui);
  font-weight: 400;
  line-height: 1.35;
  color: var(--ed-mute);
}

html.editorial-console .eyebrow {
  font-family: var(--ed-font);
  font-size: var(--ed-micro);
  font-weight: 550;
  letter-spacing: var(--ed-track-label);
  color: var(--ed-faint);
}

html.editorial-console .env-chip,
html.editorial-console .pill,
html.editorial-console .pill-action,
html.editorial-console .pill-week,
html.editorial-console .pill-near,
html.editorial-console .tag {
  border-radius: 0;
  border-color: var(--ed-line);
  background: var(--ed-canvas);
  color: var(--ed-ink);
  font-family: var(--ed-font);
}

html.editorial-console .pill-action {
  cursor: pointer;
}

html.editorial-console .user-chip {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

html.editorial-console .user-chip__avatar {
  width: 22px;
  height: 22px;
  border-radius: 0;
  background: var(--ed-ink);
  font-size: 0.625rem;
  font-weight: 550;
}

html.editorial-console .user-chip__name {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--ed-mute);
}

/* ── Controls ── */

html.editorial-console .btn,
html.editorial-console .btn-accent,
html.editorial-console .btn-ghost,
html.editorial-console .btn-apply,
html.editorial-console .series-dd-toggle {
  height: 36px;
  border-radius: 0;
  border: 1px solid var(--ed-line-strong);
  background: var(--ed-canvas);
  color: var(--ed-ink);
  font-size: var(--ed-ui);
  box-shadow: none;
  transform: none;
}

html.editorial-console .btn:hover,
html.editorial-console .series-dd-toggle:hover {
  transform: none;
  border-color: var(--ed-ink);
  background: var(--ed-canvas);
}

html.editorial-console .btn-accent,
html.editorial-console .btn-apply.is-dirty,
html.editorial-console .btn-primary-excel {
  background: var(--ed-ink);
  border-color: var(--ed-ink);
  color: #fff;
}

html.editorial-console .btn-accent:hover,
html.editorial-console .btn-primary-excel:hover {
  background: #000;
  border-color: #000;
  color: #fff;
}

html.editorial-console .field span {
  font-size: var(--ed-micro);
  font-weight: 550;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ed-faint);
}

html.editorial-console .field select,
html.editorial-console .field input,
html.editorial-console .series-dd-panel {
  border-radius: 0;
  border-color: var(--ed-line);
  background: var(--ed-canvas);
}

html.editorial-console .field select:focus,
html.editorial-console .field input:focus {
  outline: none;
  border-color: var(--ed-ink);
}

html.editorial-console .panel-help {
  border-radius: 0;
  border-color: var(--ed-line);
  background: transparent;
  color: var(--ed-mute);
}

/* ── Panels · KPI · tables ── */

html.editorial-console .panel,
html.editorial-console .trend-block,
html.editorial-console .alerts__more {
  border-radius: 0;
  border-color: var(--ed-line);
  background: var(--ed-canvas);
  color: var(--ed-ink);
  letter-spacing: 0.1em;
}

html.editorial-console .alert,
html.editorial-console .hub-live-cap,
html.editorial-console .hub-live-ledger,
html.editorial-console .freshness-banner,
html.editorial-console .donut-wrap,
html.editorial-console .chart-wrap {
  border-radius: 0;
  box-shadow: none;
  background: var(--ed-canvas);
  border-color: var(--ed-line);
}

html.editorial-console .panel-head h2,
html.editorial-console .trend-title,
html.editorial-console .subhead,
html.editorial-console .admin-bar-title,
html.editorial-console .admin-brand {
  font-weight: 540;
  letter-spacing: var(--ed-track-title);
  color: var(--ed-ink);
}

html.editorial-console .kpi-grid {
  gap: 1px;
  background: var(--ed-line);
  border: 1px solid var(--ed-line);
  padding: 0;
}

html.editorial-console .kpi {
  border: 0;
  border-radius: 0;
  background: var(--ed-canvas);
  box-shadow: none;
}

html.editorial-console .kpi:hover {
  border-color: transparent;
}

html.editorial-console .kpi::before {
  display: none;
}

html.editorial-console .kpi-icon,
html.editorial-console .kpi-week .kpi-icon,
html.editorial-console .kpi-month .kpi-icon,
html.editorial-console .kpi-momentum .kpi-icon {
  border-radius: 0;
  background: var(--ed-ink);
  color: var(--ed-paper);
}

html.editorial-console .kpi-label {
  font-size: var(--ed-micro);
  font-weight: 550;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ed-faint);
}

html.editorial-console .kpi-value {
  font-weight: 520;
  letter-spacing: var(--ed-track-title);
}

html.editorial-console .data-table th {
  font-family: var(--ed-font);
  font-size: var(--ed-micro);
  font-weight: 550;
  letter-spacing: 0.12em;
  background: transparent;
  color: var(--ed-faint);
}

html.editorial-console .data-table tbody tr:hover {
  background: var(--ed-wash);
}

html.editorial-console .data-table tfoot th,
html.editorial-console .data-table tfoot td {
  background: var(--ed-paper);
}

html.editorial-console .table-scroll {
  scrollbar-width: thin;
}

/* ── Admin overlay ── */

html.editorial-console .admin-view,
html.editorial-console .admin-bar {
  background: var(--ed-canvas);
  border-color: var(--ed-line);
  box-shadow: none;
}

html.editorial-console .admin-bar #adminBackBtn {
  border-radius: 0;
}

html.editorial-console .toast {
  border-radius: 0;
  box-shadow: none;
  background: var(--ed-ink);
}

html.editorial-console .modal,
html.editorial-console .modal-saving {
  border-radius: 0;
  box-shadow: none;
}

html.editorial-console .operator-access-gate {
  background: var(--ed-paper);
}

html.editorial-console .operator-access-gate__card {
  border-radius: 0;
  box-shadow: none;
  border-color: var(--ed-line);
}

html.editorial-console .main-scroll {
  padding: 20px 32px 48px;
}

html.editorial-console .all-brand-load-note {
  border-radius: 0;
  border-color: var(--ed-ink);
}

html.editorial-console .brand-card,
html.editorial-console .add-card,
html.editorial-console .q-card,
html.editorial-console .issue-box,
html.editorial-console .steps,
html.editorial-console .onboard-split__ask > .panel {
  border-radius: 0;
  box-shadow: none;
}

html.editorial-console .brand-card:hover,
html.editorial-console .add-card:hover {
  border-color: var(--ed-ink);
  box-shadow: none;
}

html.editorial-console .q-card.is-yes,
html.editorial-console .issue-box.ok {
  border-color: var(--ed-line-strong);
  background: var(--ed-wash);
}

html.editorial-console .q-card.is-sheet {
  border-color: var(--ed-line);
  background: var(--ed-paper);
}
