:root {
  --bg: #0b0d12;
  --card: #16181e;
  --card-2: #1c1f28;
  --card-border: #2a2e38;
  --text: #f4f5f7;
  --muted: #8b919c;
  --accent: #3182f6;
  --accent-soft: rgba(49, 130, 246, 0.16);
  --green: #00c853;
  --yellow: #ffb020;
  --red: #ff5a5f;
  --line: #2a2e38;
  --radius: 18px;
  --radius-sm: 12px;
  --font-serif: "Georgia", "Times New Roman", serif;
  --font-sans: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* Shared page chrome — all .layout pages (incl. business) use these */
  --ca-layout-max: 1400px;
  --ca-layout-pad-x: 1.25rem;
  --ca-layout-pad-y: 2rem;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.5;
  min-height: 100vh;
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Bilingual secondary line (device priority via bi()/biStackHtml) */
.bi-stack {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.bi-secondary,
.bi-stack .muted {
  opacity: 0.82;
  font-size: 0.94em;
}

/* Language mode: one language at a time (한 | EN toggle). */
html[data-lang-priority="en"] .sched-title-ko,
html[data-lang-priority="en"] .sched-body-ko,
html[data-lang-priority="en"] .status-chip-ko,
html[data-lang-priority="en"] .status-detail-ko,
html[data-lang-priority="en"] .block-text-ko,
html[data-lang-priority="en"] .flow-line-ko,
html[data-lang-priority="en"] .vt-ko,
html[data-lang-priority="en"] .rev-ko,
html[data-lang-priority="en"] .legend-desc-ko,
html[data-lang-priority="en"] .timeline-title-ko,
html[data-lang-priority="en"] .timeline-body-ko,
html[data-lang-priority="en"] .tl-th-ko,
html[data-lang-priority="en"] .tl-td-ko,
html[data-lang-priority="en"] .yg-milestone-ko,
html[data-lang-priority="en"] .yg-progress-ko,
html[data-lang-priority="en"] .yg-item-ko,
html[data-lang-priority="en"] .yg-detail-title-ko,
html[data-lang-priority="en"] .yg-decision-q-ko,
html[data-lang-priority="en"] .mm-coll-list-ko,
html[data-lang-priority="en"] .mm-legacy-label-ko,
html[data-lang-priority="en"] .mm-coll-banner-ko,
html[data-lang-priority="en"] .bi-secondary,
html[data-lang-priority="en"] .ca-tab-ko,
html[data-lang-priority="en"] .biz-ko,
html[data-lang-priority="en"] .biz-title-ko,
html[data-lang-priority="en"] .biz-subtitle-ko {
  display: none !important;
}
html[data-lang-priority="ko"] .ca-tab-en,
html[data-lang-priority="ko"] .biz-en,
html[data-lang-priority="ko"] .biz-title-en,
html[data-lang-priority="ko"] .biz-subtitle-en,
html[data-lang-priority="ko"] .bi-secondary {
  display: none !important;
}

/* 한 | EN toggle — PC fixed top-right; phone (<=1023) inline in header (no floating) */
.lang-toggle {
  display: inline-flex;
  position: fixed;
  top: calc(0.55rem + env(safe-area-inset-top));
  right: calc(0.65rem + env(safe-area-inset-right));
  z-index: 10050;
  gap: 0;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: rgba(20, 20, 24, 0.94);
  backdrop-filter: blur(8px);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  pointer-events: auto;
  flex-shrink: 0;
}
.lang-toggle.lang-toggle--inline {
  position: static;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
  z-index: 2;
  box-shadow: none;
}
.lang-toggle-host {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin: 0.35rem 0 0.65rem;
  min-height: 44px;
  position: relative;
  z-index: 30;
}
.page-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.15rem;
}
.page-title-row .page-title {
  flex: 1 1 auto;
  margin-bottom: 0;
  padding-right: 0;
}
.lang-toggle .lang-toggle-btn {
  pointer-events: auto;
  position: relative;
  z-index: 1;
}
.lang-toggle[hidden] {
  display: none !important;
}
.lang-toggle-btn {
  min-width: 44px;
  min-height: 44px;
  padding: 0 0.7rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.lang-toggle-btn.is-on {
  background: rgba(147, 197, 253, 0.18);
  color: #93c5fd;
}
.lang-toggle-btn + .lang-toggle-btn {
  border-left: 1px solid var(--card-border);
}
body.has-lang-toggle:not(.lang-toggle-mobile) .page-title {
  padding-right: 6.2rem;
}
/* Keep PC table status buttons clear of fixed top-right toggle */
body.has-lang-toggle:not(.lang-toggle-mobile) .biz-leads-table-wrap {
  padding-right: 0.25rem;
}
body.has-lang-toggle:not(.lang-toggle-mobile) .biz-leads-table .biz-col-status,
body.has-lang-toggle:not(.lang-toggle-mobile) .biz-leads-table col.biz-col-status {
  width: 18% !important;
}
body.has-lang-toggle nav.top.ca-nav {
  padding-right: 0.4rem;
}
/* Phone / narrow: tab bar clearance only (toggle is inline, not floating) */
@media (max-width: 1023px) {
  body.has-lang-toggle .layout,
  body.lang-toggle-mobile .layout,
  .layout {
    padding-bottom: calc(5.8rem + env(safe-area-inset-bottom));
  }
  body.has-lang-toggle .page-title {
    padding-right: 0.2rem;
  }
  body.has-lang-toggle .biz-leads-cards,
  body.has-lang-toggle .biz-lead-filters,
  body.has-lang-toggle .biz-country-tabs,
  body.has-lang-toggle .biz-src-subtabs,
  body.has-lang-toggle .biz-inner-tabs {
    padding-right: 0;
  }
  body.has-lang-toggle .biz-leads-cards {
    padding-bottom: 0.5rem;
  }
  body[data-page="email-drafts"] .layout {
    padding-bottom: calc(7.5rem + env(safe-area-inset-bottom));
  }
  body[data-page="email-drafts"] #email-drafts-board,
  body[data-page="email-drafts"] .drafts-layout,
  body[data-page="email-drafts"] .drafts-main {
    padding-bottom: 1.25rem;
  }
  body[data-page="email-drafts"] .drafts-body {
    min-height: 5rem;
    /* Keep resting body above fixed bottom tab bar (~5.8rem) on 384×800 */
    max-height: min(22vh, 7.25rem);
  }
  /* Push direction/actions below the fold so they do not sit under the tab bar at scrollY=0 */
  body[data-page="email-drafts"] .drafts-field-body {
    margin-bottom: calc(4.75rem + env(safe-area-inset-bottom));
  }
  body[data-page="email-drafts"] .drafts-subject,
  body[data-page="email-drafts"] .drafts-body,
  body[data-page="email-drafts"] .drafts-direction,
  body[data-page="email-drafts"] .drafts-actions,
  body[data-page="email-drafts"] .drafts-history,
  body[data-page="email-drafts"] .drafts-field {
    scroll-margin-bottom: calc(6.5rem + env(safe-area-inset-bottom));
    scroll-margin-top: 0.75rem;
  }
}

.layout {
  width: 100%;
  max-width: var(--ca-layout-max);
  margin: 0 auto;
  padding: var(--ca-layout-pad-y) var(--ca-layout-pad-x) calc(4rem + env(safe-area-inset-bottom));
  box-sizing: border-box;
}

.meta-note {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 1rem;
  padding: 0;
  border: 0;
  background: transparent;
}

nav.top {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--card-border);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  flex-wrap: nowrap;
}

nav.top.ca-nav {
  flex-direction: column;
  align-items: stretch;
  flex-wrap: nowrap;
  overflow: visible;
  gap: 0;
  text-transform: none;
  letter-spacing: normal;
  margin-bottom: 1.25rem;
  padding-bottom: 0;
  border-bottom: none;
}

/* Shared top tabs: separate bordered boxes, KO large / EN small grey */
.ca-tab-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.45rem;
}

.ca-tab-box {
  appearance: none;
  flex: 0 0 auto;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.12rem;
  min-width: 5.4rem;
  min-height: 44px;
  padding: 0.45rem 0.7rem;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  text-decoration: none;
  text-align: center;
  line-height: 1.15;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ca-tab-box:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(147, 197, 253, 0.35);
  text-decoration: none;
}

.ca-tab-ko,
.ca-tab-en {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.ca-tab-box.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: none;
}

.ca-tab-box.active .ca-tab-ko,
.ca-tab-box.active .ca-tab-en {
  color: #fff;
}

nav.top.ca-nav a.ca-tab-box {
  padding: 0.45rem 0.7rem;
  min-height: 44px;
  border-bottom: 1px solid var(--card-border);
  text-decoration: none;
}

nav.top.ca-nav a.ca-tab-box:hover {
  text-decoration: none;
}

nav.top.ca-nav a.ca-tab-box.active {
  border-bottom: 1px solid var(--accent);
  padding-bottom: 0.45rem;
  color: #fff;
  text-decoration: none;
}

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

/* Plain nav.top link styles removed — only .ca-tab-box via mountCaNav. */

.sync-banner {
  margin-bottom: 1.25rem;
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  font-size: 0.78rem;
  line-height: 1.4;
}

.sync-banner-ok {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  color: var(--muted);
}

.sync-banner-warn {
  background: rgba(234, 179, 8, 0.14);
  border: 1px solid rgba(234, 179, 8, 0.5);
  color: #fde68a;
}

.sync-banner-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #fecaca;
}

.sync-banner strong {
  font-weight: 700;
}

.sync-banner-errors {
  margin: 0.35rem 0 0 1.1rem;
  padding: 0;
  font-size: 0.75rem;
}

.sched-view-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 1rem;
}

.sched-view-btn {
  background: transparent;
  border: 1px solid var(--card-border);
  color: var(--muted);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  cursor: pointer;
  font-family: inherit;
}

.sched-view-btn:hover {
  color: var(--text);
  border-color: var(--muted);
}

.sched-view-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 700;
}

.sched-view-hint {
  font-size: 0.72rem;
  color: var(--muted);
  margin-left: 0.25rem;
}

.sched-history {
  margin-top: 0.25rem;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 0.85rem 1rem 1rem;
}

.sched-history-head {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--line);
}

.sched-history-title {
  font-weight: 700;
  font-size: 0.95rem;
}

.sched-history-count {
  font-size: 0.72rem;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  color: #bbf7d0;
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
}

.sched-history-body {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.sched-history-day {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.sched-history-date {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
}

.sched-history-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.sched-done-empty {
  margin-top: 0.5rem;
}

.page-title {
  font-family: var(--font-sans);
  font-size: clamp(1.55rem, 4.2vw, 2.05rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.2rem;
  line-height: 1.2;
}

.page-subtitle {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 1.15rem;
  line-height: 1.45;
}

.meta-note {
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 1.1rem;
  padding: 0;
  border: 0;
  background: transparent;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.summary-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 1rem 1.25rem;
}

.summary-card .label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.summary-card .value {
  font-size: 1.35rem;
  font-weight: 600;
}

.summary-card .sub {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

.section-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 1rem;
}

.project-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.project-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 1.25rem;
}

.project-card-col {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.project-card-col.identity {
  flex: 0 0 200px;
  padding-right: 1.25rem;
  border-right: 1px solid var(--line);
}

.project-card-col.finance {
  flex: 0 0 200px;
  padding-right: 1.25rem;
  border-right: 1px solid var(--line);
  justify-content: flex-start;
  gap: 0.75rem;
}

.project-card-col.assessment {
  flex: 1 1 220px;
  padding-right: 1.25rem;
  border-right: 1px solid var(--line);
}

.project-card-col.current {
  flex: 0 0 148px;
  max-width: 168px;
  padding-right: 1rem;
  border-right: 1px solid var(--line);
}

.project-card-col.next {
  flex: 0 0 148px;
  max-width: 168px;
}

.status-col {
  gap: 0.45rem;
}

.status-chip-wrap.status-clickable {
  cursor: pointer;
}

.status-chip-wrap.status-clickable:hover .status-chip {
  border-color: rgba(59, 130, 246, 0.45);
}

.status-chip {
  display: block;
  font-size: 0.72rem;
  line-height: 1.35;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--text);
  word-break: break-word;
}

.status-chip-ko {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.68rem;
  color: var(--muted);
}

.status-chip-more {
  text-align: center;
  color: var(--muted);
  font-size: 0.68rem;
}

.status-empty {
  font-size: 0.8rem;
  color: var(--muted);
}

.status-detail-btn {
  margin-top: auto;
  padding: 0.25rem 0;
  font-size: 0.68rem;
  color: var(--accent);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.status-detail-btn:hover {
  color: #93c5fd;
}

body.status-modal-open {
  overflow: hidden;
}

.status-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.status-modal.hidden {
  display: none;
}

.status-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.status-modal-panel {
  position: relative;
  width: min(640px, 100%);
  max-height: min(85vh, 720px);
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}

.status-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
}

.status-modal-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
}

.status-modal-subtitle {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

.status-modal-close {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.status-modal-close:hover {
  background: rgba(255, 255, 255, 0.12);
}

.status-modal-body {
  overflow-y: auto;
  padding: 0.75rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.status-detail-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}

.status-detail-num {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
}

.status-detail-en {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
}

.status-detail-ko {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--muted);
}

.project-card-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.broken-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.55);
  color: #fca5a5;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status-badge.on_hold { color: var(--red); }
.status-badge.in_progress { color: var(--accent); }
.status-badge.pending { color: var(--yellow); }
.status-badge.minimal { color: var(--muted); }
.status-badge.completed { color: var(--green); }

.project-id {
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.project-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
}

.project-name-ko {
  font-size: 0.8rem;
  color: var(--muted);
  font-family: var(--font-sans);
}

.finance-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.8rem;
}

.finance-item .f-label {
  color: var(--muted);
  font-size: 0.65rem;
  text-transform: uppercase;
}

.finance-item .f-value {
  font-weight: 600;
  font-size: 0.9rem;
}

.finance-item.outstanding .f-value {
  color: var(--red);
}

.finance-item.received .f-value {
  color: var(--green);
}

.finance-item.deferred .f-value {
  color: var(--yellow);
}

.f-note {
  font-size: 0.62rem;
  color: var(--muted);
  margin-top: 0.15rem;
  line-height: 1.35;
}

.billing-flow {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
}

.flow-line {
  font-size: 0.72rem;
  line-height: 1.4;
  margin-top: 0.35rem;
}

.flow-line-ko {
  font-size: 0.68rem;
  color: var(--muted);
  margin-top: 0.1rem;
  margin-bottom: 0.25rem;
}

.flow-tag {
  display: inline-block;
  font-size: 0.58rem;
  font-weight: 600;
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  margin-right: 0.25rem;
  vertical-align: baseline;
}

.flow-tag.old {
  background: #3f3f46;
  color: #a1a1aa;
}

.flow-tag.new {
  background: #14532d;
  color: #86efac;
}

.verticals-block,
.gov-block {
  margin-top: 0.65rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
}

.business-scope-panel {
  margin-bottom: 2.5rem;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
}

.scope-panel-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.scope-col {
  font-size: 0.85rem;
}

.vertical-table-wrap {
  overflow-x: auto;
  margin-top: 0.5rem;
}

.vertical-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
}

.vertical-table th {
  text-align: left;
  color: var(--muted);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.vertical-table td {
  padding: 0.55rem 0.6rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.4;
}

.vertical-table .vt-ko {
  color: var(--muted);
  font-size: 0.68rem;
}

.vertical-table .vt-cap {
  color: var(--yellow);
  font-weight: 600;
}

.vertical-table .vt-success {
  color: #86efac;
  font-size: 0.72rem;
}

.finance-row.business-capital {
  gap: 0.45rem;
}

.finance-row.business-capital .f-value.cap-value {
  color: var(--yellow);
  font-size: 0.85rem;
}

@media (max-width: 900px) {
  .scope-panel-inner {
    grid-template-columns: 1fr;
  }
}

.vertical-item {
  margin-bottom: 0.5rem;
}

.vertical-name {
  font-size: 0.78rem;
  font-weight: 600;
}

.vertical-scope,
.vertical-meta {
  font-size: 0.7rem;
  color: var(--muted);
  line-height: 1.35;
}

.status-badge.pilot { color: #38bdf8; }

.block-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.block-label.spaced {
  margin-top: 0.65rem;
}

.assessment-text {
  color: var(--yellow);
}

.meta-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.4rem;
}

.badge {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  border: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.3;
}

.badge.tier-s { border-color: var(--green); color: var(--green); }
.badge.tier-x { border-color: var(--red); color: var(--red); }
.badge.tier-l { border-color: var(--yellow); color: var(--yellow); }
.badge.style { border-color: #a78bfa; color: #c4b5fd; }
.badge.priority { border-color: var(--accent); color: var(--accent); }

.metric-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.35rem;
}

.metric {
  font-size: 0.65rem;
  color: var(--red);
}

.priority-strip {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
}

.priority-list {
  margin: 0.5rem 0 0 1.25rem;
  font-size: 0.85rem;
}

.priority-list li {
  margin-bottom: 0.25rem;
}

.p-rank {
  color: var(--accent);
  font-weight: 600;
  margin-right: 0.25rem;
}

.legend-section {
  margin-bottom: 2.5rem;
}

.legend-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.75rem;
}

.legend-item {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 0.85rem 1rem;
  font-size: 0.8rem;
}

.legend-title {
  font-weight: 600;
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
}

.legend-desc {
  font-size: 0.78rem;
}

.legend-desc-ko {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

.block-text {
  font-size: 0.85rem;
}

.block-text-ko {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

.filter-bar {
  margin-bottom: 2rem;
}

.filter-bar .filter-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--card-border);
  color: var(--muted);
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  font-family: inherit;
}

.filter-btn:hover {
  border-color: var(--muted);
  color: var(--text);
}

.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.filter-btn.filter-btn-proj {
  border-color: color-mix(in srgb, var(--proj-color) 55%, var(--card-border));
  color: var(--text);
  background: color-mix(in srgb, var(--proj-color) 14%, transparent);
}

.filter-btn.filter-btn-proj:hover {
  border-color: var(--proj-color);
  color: #fff;
  background: color-mix(in srgb, var(--proj-color) 35%, transparent);
}

.filter-btn.filter-btn-proj.active {
  background: var(--proj-color);
  border-color: var(--proj-color);
  color: #0a0a0a;
  font-weight: 700;
}

.timeline-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  padding: 0.75rem 1rem;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 10px;
}

.timeline-search {
  flex: 1 1 220px;
  min-width: 180px;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  font-size: 0.85rem;
}

.timeline-search:focus {
  outline: none;
  border-color: var(--accent);
}

.timeline-period {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.timeline-period-btn {
  background: transparent;
  border: 1px solid var(--card-border);
  color: var(--muted);
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  font-size: 0.78rem;
  cursor: pointer;
  font-family: inherit;
}

.timeline-period-btn:hover {
  border-color: var(--muted);
  color: var(--text);
}

.timeline-period-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.timeline-empty {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  background: var(--card);
  border: 1px dashed var(--line);
  border-radius: 10px;
}

.timeline {
  position: relative;
  padding-left: 1.5rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--line);
}

.timeline-day {
  position: relative;
  margin-bottom: 1.75rem;
}

.timeline-day:last-child {
  margin-bottom: 0;
}

.timeline-day-header {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin: 0 0 0.85rem;
  padding: 0.35rem 0 0.55rem;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 2;
  background: linear-gradient(to bottom, var(--bg) 70%, transparent);
}

.timeline-day-date {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.timeline-day-count,
.timeline-project-count {
  font-size: 0.72rem;
  color: var(--muted);
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
  min-width: 1.4rem;
  text-align: center;
}

.timeline-project-group {
  margin: 0 0 1rem 0.15rem;
  padding: 0.55rem 0.65rem 0.65rem;
  border-radius: 12px;
  border: 1px solid var(--proj-border, var(--card-border));
  background: linear-gradient(90deg, var(--proj-tint, transparent) 0%, transparent 72%), var(--card);
  box-shadow: inset 4px 0 0 var(--proj-color, var(--accent));
}

.timeline-project-group:last-child {
  margin-bottom: 0.25rem;
}

.timeline-project-header {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.55rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.timeline-project-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--proj-color, var(--accent));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--proj-color, var(--accent)) 28%, transparent);
}

.timeline-project-name {
  color: var(--text);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}

.timeline-project-tag {
  border-color: color-mix(in srgb, var(--proj-color, var(--accent)) 45%, var(--card-border));
  color: var(--text);
  background: color-mix(in srgb, var(--proj-color, var(--accent)) 16%, transparent);
}

.timeline-project-items .timeline-item {
  margin-bottom: 0.65rem;
}

.timeline-project-items .timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-project-items .timeline-card {
  padding: 0.95rem 1.1rem;
}

.timeline-project-items .timeline-title-ko {
  margin-bottom: 0;
}

.timeline-item {
  position: relative;
  margin-bottom: 1.25rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.5rem;
  top: 1.25rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
  transform: translateX(-2px);
}

.timeline-item.broken::before {
  background: var(--red);
}

.timeline-item.pending::before {
  background: var(--yellow);
  box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.28);
}

.timeline-item.done::before {
  background: var(--green);
}

.timeline-item.pending .timeline-card {
  border-color: rgba(234, 179, 8, 0.45);
  box-shadow: inset 3px 0 0 var(--yellow);
}

.timeline-item.broken .timeline-card {
  border-color: rgba(239, 68, 68, 0.4);
  box-shadow: inset 3px 0 0 var(--red);
}

.timeline-meta-status-only {
  justify-content: flex-start;
  margin-bottom: 0.45rem;
}

.tl-status-chip {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  border: 1px solid transparent;
  line-height: 1.2;
  white-space: nowrap;
}

.tl-status-chip.tl-status-info {
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.14);
  border-color: rgba(59, 130, 246, 0.35);
}

.tl-status-chip.tl-status-pending {
  color: #fde68a;
  background: rgba(234, 179, 8, 0.16);
  border-color: rgba(234, 179, 8, 0.45);
}

.tl-status-chip.tl-status-broken {
  color: #fecaca;
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(239, 68, 68, 0.45);
}

.tl-status-chip.tl-status-done {
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(34, 197, 94, 0.35);
}

.tl-status-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.75rem;
  margin: 0 0 1rem;
  padding: 0.55rem 0.75rem;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  font-size: 0.75rem;
  color: var(--muted);
}

.tl-status-legend-title {
  font-weight: 600;
  color: var(--text);
  margin-right: 0.15rem;
}

.tl-status-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.tl-status-legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.tl-status-legend-item.tl-status-info .tl-status-legend-dot {
  background: var(--accent);
}

.tl-status-legend-item.tl-status-pending .tl-status-legend-dot {
  background: var(--yellow);
}

.tl-status-legend-item.tl-status-broken .tl-status-legend-dot {
  background: var(--red);
}

.tl-status-legend-label {
  color: var(--text);
}

.tl-status-legend-note {
  margin-left: auto;
  opacity: 0.85;
}

@media (max-width: 600px) {
  .tl-status-legend-note {
    margin-left: 0;
    width: 100%;
  }
}

.timeline-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1.25rem;
}

.timeline-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.timeline-tag {
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.timeline-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}

.timeline-title-ko {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.6rem;
}

.timeline-body-wrap {
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--card-border);
}

.timeline-body {
  font-size: 0.88rem;
  line-height: 1.55;
}

.timeline-body-ko {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--muted);
  margin-top: 0.4rem;
}

.timeline-project-items .timeline-body-wrap {
  margin-top: 0.45rem;
  padding-top: 0.45rem;
}

.timeline-amount {
  font-size: 0.8rem;
  color: var(--yellow);
  margin-top: 0.5rem;
}

.timeline-card-rich {
  padding-bottom: 1rem;
}

.tl-block {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--card-border);
}

.tl-block-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent);
  margin-bottom: 0.55rem;
  font-weight: 600;
}

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

.tl-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.tl-table th,
.tl-table td {
  border: 1px solid var(--card-border);
  padding: 0.45rem 0.55rem;
  vertical-align: top;
  text-align: left;
}

.tl-table th {
  background: #1a1a1a;
  color: var(--muted);
  font-weight: 600;
}

.tl-th-ko,
.tl-td-ko {
  font-size: 0.72rem;
  color: var(--muted);
}

.tl-td-key {
  font-weight: 600;
  min-width: 7rem;
}

.tl-flow-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

@media (max-width: 720px) {
  .tl-flow-compare {
    grid-template-columns: 1fr;
  }
}

.tl-flow-col {
  background: #111;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
}

.tl-flow-col.after {
  border-color: #2563eb55;
  background: #0f172a44;
}

.tl-flow-col.before {
  border-color: #ef444455;
  background: #1a0f0f44;
}

.tl-flow-title {
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.tl-flow-chain {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.15rem;
  margin-bottom: 0.4rem;
}

.tl-flow-step {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  padding: 0.3rem 0.45rem;
  font-size: 0.72rem;
  line-height: 1.3;
}

.tl-flow-arrow {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0 0.1rem;
}

.tl-flow-note {
  font-size: 0.72rem;
  color: var(--yellow);
  margin-top: 0.35rem;
}

.tl-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tl-check {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.8rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid #222;
}

.tl-check:last-child {
  border-bottom: none;
}

.tl-check-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 0.35rem;
  flex-shrink: 0;
  background: var(--yellow);
}

.tl-check.done .tl-check-dot {
  background: var(--green);
}

.hidden {
  display: none !important;
}

.footer-note {
  margin-top: 3rem;
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 1100px) {
  .project-card {
    flex-direction: column;
    gap: 1rem;
  }

  .project-card-col.identity,
  .project-card-col.finance,
  .project-card-col.assessment,
  .project-card-col.current,
  .project-card-col.next {
    flex: 1 1 auto;
    max-width: none;
    padding-right: 0;
    padding-bottom: 1rem;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .project-card-col.finance .finance-row {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
  }
}

@media (max-width: 600px) {
  .layout {
    padding-top: 1.25rem;
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }

  nav.top {
    gap: 1rem;
    font-size: 0.72rem;
    margin-bottom: 1.5rem;
  }

  .page-title {
    font-size: 1.75rem;
  }

  .project-card-col.identity .project-name {
    font-size: 1.05rem;
  }

  .mm-client-row,
  .schedule-row,
  .timeline-row {
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
  }

  button,
  .mm-coll-btn,
  .schedule-action-btn,
  .timeline-filter-btn {
    min-height: 44px;
    min-width: 44px;
  }

  .status-modal-panel,
  .mm-client-modal-panel {
    width: calc(100vw - 1.5rem);
    max-height: calc(100vh - 2rem - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  }
}


#yg-revenue-fixed {
  display: none;
  margin-bottom: 1.5rem;
}

#yg-revenue-fixed.is-visible {
  display: block;
}

#mm-billing-fixed {
  display: none;
  margin-bottom: 1.5rem;
}

#mm-billing-fixed.is-visible {
  display: block;
}

.project-card.project-clickable,
.business-scope-panel.project-clickable {
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  min-height: 2.75rem;
  min-width: 5.5rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.project-card.project-clickable:hover,
.business-scope-panel.project-clickable:hover {
  border-color: var(--accent);
}

.mm-billing-sticky {
  border-color: #f87171;
}

.mm-sticky-flow .tl-block {
  margin-top: 0;
}

.mm-sticky-flow .tl-block-label {
  color: var(--accent);
  font-size: 0.72rem;
  margin-bottom: 0.5rem;
}



.project-card.yg-clickable,
.business-scope-panel.yg-clickable {
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.project-card.yg-clickable:hover,
.business-scope-panel.yg-clickable:hover {
  border-color: var(--accent);
}

.project-card.is-selected,
.business-scope-panel.is-selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.55);
}

/* Y&G&S sticky revenue structure */
.yg-revenue-sticky {
  position: sticky;
  top: 0;
  z-index: 200;
  margin-bottom: 1.5rem;
  background: rgba(10, 10, 10, 0.96);
  backdrop-filter: blur(10px);
  border: 1px solid var(--accent);
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}

.rev-sticky-inner {
  padding: 0.75rem 1rem 0.85rem;
}

.rev-sticky-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
  margin-bottom: 0.55rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.82rem;
}

.rev-sticky-head strong {
  color: var(--accent);
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}

.rev-sticky-sub {
  color: var(--muted);
  font-size: 0.68rem;
}

.rev-sticky-body {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 38%);
  gap: 0.85rem 1.25rem;
  align-items: start;
}

.rev-model-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.72rem;
}

.rev-model-table th {
  text-align: left;
  color: var(--muted);
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.45rem;
  border-bottom: 1px solid var(--line);
}

.rev-model-table td {
  padding: 0.4rem 0.45rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.35;
}

.rev-ko {
  color: var(--muted);
  font-size: 0.65rem;
}

.fee-badge {
  display: inline-block;
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.7rem;
  white-space: nowrap;
}

.fee-badge.pf-ps {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.fee-badge.ps-only {
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.rev-event-flow {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
  font-size: 0.72rem;
}

.rev-flow-title {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 0.45rem;
}

.rev-flow-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.35rem;
  margin-bottom: 0.35rem;
}

.flow-node {
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  background: #1a1a1a;
  border: 1px solid var(--line);
  white-space: nowrap;
}

.flow-node.inflow {
  border-color: var(--accent);
  color: #93c5fd;
}

.flow-node.spend {
  border-color: var(--red);
  color: #fca5a5;
}

.flow-node.profit {
  border-color: var(--green);
  color: #86efac;
  font-weight: 600;
}

.flow-node.split {
  border-color: var(--yellow);
  color: #fde047;
}

.flow-arrow {
  color: var(--muted);
  font-size: 0.85rem;
}

.rev-flow-sub {
  font-size: 0.65rem;
  color: var(--muted);
  line-height: 1.35;
}

.vertical-table .vt-fee {
  font-weight: 600;
  color: #93c5fd;
  font-size: 0.72rem;
}

@media (max-width: 960px) {
  .rev-sticky-body {
    grid-template-columns: 1fr;
  }
}

/* Schedule / 스케쥴 */
.schedule-board {
  margin-top: 0.5rem;
}

.schedule-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: start;
}

.sched-day {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sched-day.is-today {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.25);
}

.sched-day-head {
  padding: 1rem 1.1rem 0.85rem;
  border-bottom: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.02);
}

.sched-day.is-today .sched-day-head {
  background: rgba(59, 130, 246, 0.08);
}

.sched-day-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.sched-day.is-today .sched-day-label {
  color: #93c5fd;
}

.sched-day-date {
  font-family: var(--font-serif);
  font-size: 1.15rem;
}

.sched-day-body {
  padding: 0.65rem 0.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.sched-event {
  display: grid;
  grid-template-columns: auto 3px minmax(0, 1fr);
  grid-template-areas:
    "time bar body"
    "actions actions actions";
  column-gap: 0.45rem;
  row-gap: 0.4rem;
  padding: 0.45rem 0.35rem;
  border-radius: 8px;
  transition: background 0.15s;
  align-items: start;
}

.sched-event:hover {
  background: rgba(255, 255, 255, 0.03);
}

.sched-event.done {
  opacity: 0.55;
}

.sched-event.done .sched-title,
.sched-event.done .sched-title-ko {
  text-decoration: line-through;
  text-decoration-color: var(--muted);
}

.sched-event.cancelled {
  opacity: 0.5;
}

.sched-event.cancelled .sched-event-bar {
  background: var(--red);
}

.sched-event.cancelled .sched-title,
.sched-event.cancelled .sched-title-ko {
  text-decoration: line-through;
  text-decoration-color: var(--red);
}

.sched-event.ongoing {
  background: rgba(59, 130, 246, 0.06);
}

.sched-event.ongoing .sched-event-bar {
  background: #60a5fa;
  box-shadow: 0 0 8px rgba(96, 165, 250, 0.35);
}

.sched-event.ongoing .sched-title,
.sched-event.ongoing .sched-title-ko {
  color: #bfdbfe;
}

.tz-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  margin: 0 0 1rem;
  padding: 0.55rem 0.75rem;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  font-size: 0.72rem;
  color: var(--muted);
}

.tz-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.tz-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.tz-ist .tz-label {
  color: #fbbf24;
}

.tz-kst .tz-label {
  color: #67e8f9;
}

.tz-hint {
  font-size: 0.65rem;
  color: var(--muted);
}

.sched-time {
  grid-area: time;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 0.12rem;
  min-width: 3.4rem;
  max-width: 4.6rem;
  text-align: right;
  color: var(--muted);
  padding-top: 0.05rem;
  white-space: nowrap;
  line-height: 1.15;
}

.sched-event.is-all-day .sched-time {
  min-width: 2.6rem;
  max-width: 3.4rem;
}

.sched-time-ist,
.sched-time-kst {
  display: block;
  font-weight: 600;
  font-size: 0.66rem;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.sched-event.is-all-day .sched-time-ist {
  font-size: 0.62rem;
  font-weight: 600;
}

.sched-time-ist {
  color: var(--text);
}

.sched-time-kst {
  color: #67e8f9;
}

.sched-time-ist em,
.sched-time-kst em {
  font-style: normal;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-right: 0.2rem;
  opacity: 0.85;
}

.sched-time-ist em {
  color: #fbbf24;
}

.sched-time-kst em {
  color: #67e8f9;
}

.sched-event-bar {
  grid-area: bar;
  width: 3px;
  border-radius: 3px;
  background: var(--proj-color, var(--accent));
  /* Only as tall as the text row — not the action buttons below. */
  align-self: stretch;
  min-height: 1.1rem;
  max-height: 100%;
}

.sched-event-body {
  grid-area: body;
  min-width: 0;
}

.sched-event-top {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.2rem;
}

.sched-tag {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--proj-color, var(--accent));
  text-transform: uppercase;
}

.sched-done {
  font-size: 0.58rem;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sched-ongoing {
  font-size: 0.58rem;
  color: #93c5fd;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sched-delay-chain {
  font-size: 0.58rem;
  color: #fcd34d;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sched-past-due {
  display: inline-block;
  font-size: 0.62rem;
  color: #fca5a5;
  letter-spacing: 0.02em;
}

.sched-past-due-fold > summary {
  cursor: pointer;
  list-style: none;
  justify-content: flex-start;
}

.sched-past-due-fold > summary::-webkit-details-marker {
  display: none;
}

.sched-past-due-fold > summary::before {
  content: "\25B8";
  margin-right: 0.4em;
}

.sched-past-due-fold[open] > summary::before {
  content: "\25BE";
}

.sched-past-due-fold .sched-group-title {
  text-transform: none;
}

.sched-meta-date {
  font-size: 0.55rem;
  color: var(--muted);
  letter-spacing: 0.02em;
  text-transform: none;
}

.sched-cancelled {
  font-size: 0.58rem;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sched-group {
  margin-bottom: 0.85rem;
}

.sched-group:last-child {
  margin-bottom: 0;
}

.sched-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.35rem 0.5rem 0.45rem;
  margin-bottom: 0.25rem;
  border-radius: 6px;
}

.sched-group.group-fresh .sched-group-head {
  background: rgba(59, 130, 246, 0.08);
  border-left: 3px solid var(--accent);
}

.sched-group.group-rolled .sched-group-head {
  background: rgba(234, 179, 8, 0.1);
  border-left: 3px solid var(--yellow);
}

.sched-group.group-ongoing .sched-group-head {
  background: rgba(59, 130, 246, 0.12);
  border-left: 3px solid #60a5fa;
}

.sched-group.group-ongoing .sched-group-title {
  color: #93c5fd;
}

.sched-group.group-delay .sched-group-head {
  background: rgba(245, 158, 11, 0.12);
  border-left: 3px solid #fbbf24;
}

.sched-group.group-delay .sched-group-title {
  color: #fcd34d;
}

.sched-group-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.sched-group.group-rolled .sched-group-title {
  color: #fde047;
}

.sched-group-count {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
}

.sched-group-list {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.sched-event.is-rolled {
  background: rgba(234, 179, 8, 0.05);
  border: 1px solid rgba(234, 179, 8, 0.18);
  border-radius: 8px;
}

.sched-event.is-rolled .sched-event-bar {
  background: var(--yellow);
}

.sched-rolled-from {
  display: block;
  font-size: 0.6rem;
  color: #fde047;
  letter-spacing: 0.03em;
  margin-bottom: 0.15rem;
}

.sched-actions {
  grid-area: actions;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0;
  padding-left: 0;
}


.sched-btn.is-active {
  background: rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.sched-btn.is-loading {
  opacity: 0.65;
  cursor: wait;
}

.sched-btn.is-loading::after {
  content: " …";
}

.sched-btn {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem;
  border-radius: 6px;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.sched-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
}

.sched-btn:disabled {
  opacity: 0.45;
  cursor: wait;
}

.sched-btn.done {
  border-color: rgba(34, 197, 94, 0.45);
  color: #86efac;
}

.sched-btn.ongoing {
  border-color: rgba(59, 130, 246, 0.5);
  color: #93c5fd;
}

.sched-btn.delay {
  border-color: rgba(234, 179, 8, 0.45);
  color: #fde047;
}

.sched-btn.cancel {
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

.sched-event.sched-action-error {
  outline: 1px solid var(--red);
}

.sched-title {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
}

.sched-title-ko {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.35;
  margin-top: 0.1rem;
}

.sched-body {
  font-size: 0.68rem;
  color: #bbb;
  margin-top: 0.35rem;
  line-height: 1.4;
}

.sched-body-ko {
  font-size: 0.65rem;
  color: var(--muted);
  line-height: 1.35;
}

.sched-empty {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
}

.sched-upcoming {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  overflow: hidden;
}

.sched-upcoming-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.1rem 0.85rem;
  border-bottom: 1px solid var(--card-border);
  background: rgba(139, 92, 246, 0.08);
}

.sched-upcoming-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #c4b5fd;
  font-weight: 600;
}

.sched-upcoming-count {
  font-size: 0.72rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.06);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}

.sched-upcoming-body {
  padding: 0.75rem 0.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sched-upcoming-day {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.sched-upcoming-date {
  padding: 0.35rem 0.65rem 0.15rem;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: #ddd6fe;
}

.sched-upcoming-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

@media (max-width: 1024px) {
  .schedule-grid {
    grid-template-columns: 1fr;
  }

  .sched-day.is-today {
    order: -1;
  }
}

/* Mobile: shrink time rail (esp. All day) to text width; keep buttons compact. */
@media (max-width: 900px) {
  .sched-event {
    grid-template-columns: auto 2px minmax(0, 1fr);
    column-gap: 0.35rem;
    row-gap: 0.35rem;
    padding: 0.4rem 0.2rem;
  }

  .sched-time {
    min-width: 2.5rem;
    max-width: 3.2rem;
    gap: 0.08rem;
  }

  .sched-event.is-all-day .sched-time {
    min-width: 2.2rem;
    max-width: 2.8rem;
  }

  .sched-time-ist,
  .sched-time-kst {
    font-size: 0.58rem;
  }

  .sched-event.is-all-day .sched-time-ist {
    font-size: 0.56rem;
  }

  .sched-time-ist em,
  .sched-time-kst em {
    font-size: 0.5rem;
    margin-right: 0.12rem;
  }

  .sched-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.28rem;
  }

  .sched-btn {
    width: 100%;
    justify-content: center;
    text-align: center;
    font-size: 0.58rem;
    padding: 0.32rem 0.35rem;
  }
}

.mm-collections-link {
  display: inline-block;
  margin-top: 0.65rem;
  font-size: 0.72rem;
  color: var(--accent);
  text-decoration: none;
}

.mm-collections-link:hover {
  text-decoration: underline;
}

.mm-collections-board {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mm-coll-banner {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: rgba(234, 179, 8, 0.12);
  border: 1px solid rgba(234, 179, 8, 0.35);
  font-size: 0.85rem;
}

.mm-coll-banner.ok {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.35);
}

.mm-coll-banner-ko {
  font-size: 0.78rem;
  color: var(--muted);
}

.mm-coll-rule,
.mm-coll-legacy {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0;
}

.mm-coll-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
  gap: 0.7rem;
}

.mm-coll-kpi {
  background: var(--card-2);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 0.9rem;
}

.mm-coll-kpi.warn .value {
  color: var(--red);
}

.mm-coll-kpi.ok .value {
  color: var(--green);
}

.mm-coll-kpi .label {
  font-size: 0.78rem;
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
  font-weight: 600;
}

.mm-coll-kpi .value {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-top: 0.28rem;
}

.ca-coll-tax-panel {
  margin-top: 0.85rem;
  padding: 0.85rem 0.95rem;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 12px;
}

.ca-coll-tax-note,
.ca-coll-tax-sub,
.ca-coll-tax-footnote {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0.35rem 0 0.65rem;
  line-height: 1.45;
}

.ca-coll-tax-kpis {
  margin-bottom: 0.35rem;
}

.ca-coll-tax-table tfoot .ca-coll-tax-foot td {
  font-weight: 600;
  border-top: 1px solid var(--card-border);
}

.money-flow-board {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mf-basis {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.45;
  margin: 0 0 0.5rem;
}

.mf-section {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
}

.mf-sub {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

.mf-flow-chain {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  margin: 0.5rem 0;
}

.mf-step {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 0.45rem 0.65rem;
  min-width: 110px;
}

.mf-step-k {
  display: block;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.mf-step-v {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 0.15rem;
}

.mf-step-v.warn {
  color: var(--red);
}

.mf-step-v.ok {
  color: var(--green, #6dd06d);
}

.mf-deposit-guide .mf-dep-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem 1rem;
  margin: 0.75rem 0 1rem;
}
.mf-dep-label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--muted);
}
.mf-dep-input {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  color: var(--text);
  padding: 0.45rem 0.65rem;
  min-width: 160px;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}
.mf-dep-controls .mm-coll-btn {
  margin-right: 0;
  align-self: flex-end;
  height: 2.35rem;
}
.mf-dep-subh {
  margin: 1rem 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
}
.mf-sleeve-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 0.75rem;
}
.mf-sleeve-row {
  display: grid;
  grid-template-columns: minmax(120px, 1.2fr) 1.4fr auto;
  gap: 0.5rem 0.75rem;
  align-items: center;
}
.mf-sleeve-lab {
  font-size: 0.85rem;
}
.mf-sleeve-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.mf-sleeve-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: #60a5fa;
}
.mf-sleeve-fill.warn {
  background: #f59e0b;
}
.mf-sleeve-fill.ok {
  background: #34d399;
}
.mf-sleeve-put {
  font-variant-numeric: tabular-nums;
  font-size: 0.9rem;
  text-align: right;
  white-space: nowrap;
}
.mf-dep-table .mf-dep-ord {
  width: 2rem;
  color: var(--muted);
}
.mf-dep-table .mf-dep-amt {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.mf-dep-table .mf-dep-acct {
  font-size: 0.75rem;
  color: var(--muted);
}

/* Physical bank targets + deposit category cards */
.mf-bank-target-section {
  margin: 0.75rem 0 1rem;
}
.mf-bank-target-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
}
.mf-bank-target-card {
  border-radius: 12px;
  border: 1px solid var(--card-border);
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.03);
}
.mf-bank-target-card.zone-india {
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.08);
}
.mf-bank-target-card.zone-india.over-cap {
  border-color: rgba(245, 158, 11, 0.55);
  background: rgba(245, 158, 11, 0.12);
}
.mf-bank-target-card.zone-korea {
  border-color: rgba(244, 63, 94, 0.4);
  background: rgba(244, 63, 94, 0.08);
}
.mf-bank-target-card.zone-bridge {
  border-color: rgba(251, 146, 60, 0.45);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(244, 63, 94, 0.08));
}
.mf-zone-legend {
  margin: 0.5rem 0 0;
}
.mf-bank-target-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}
.mf-bank-target-row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
  padding: 0.15rem 0;
}
.mf-bank-target-row span:first-child {
  color: var(--muted);
}
.mf-bank-target-foot {
  margin-top: 0.5rem;
  font-size: 0.8rem;
}
.mf-bank-gap.warn {
  color: #fbbf24;
}
.mf-bank-gap.ok {
  color: var(--green, #6dd06d);
}

.hl-phys-status {
  font-size: 0.72rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-weight: 600;
}
.hl-phys-status.ok {
  background: rgba(34, 197, 94, 0.15);
  color: #6dd06d;
}
.hl-phys-status.warn {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
}
.hl-phys-status.danger {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}
.hl-phys-status.over {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

.hl-compliance-warn {
  margin: 0.65rem 0;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.1);
}
.hl-compliance-warn.ok-tone {
  border-color: rgba(148, 163, 184, 0.25);
  background: rgba(148, 163, 184, 0.06);
}
.hl-compliance-warn p {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
}

.mf-dep-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.75rem;
}
.mf-dep-zone-block {
  margin-bottom: 1.1rem;
}
.mf-dep-zone-block:last-child {
  margin-bottom: 0.75rem;
}
.mf-dep-zone-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.65rem;
  margin-bottom: 0.55rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
}
.mf-dep-zone-block.zone-india .mf-dep-zone-head {
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
}
.mf-dep-zone-block.zone-bridge .mf-dep-zone-head {
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.18), rgba(244, 63, 94, 0.15));
  border: 1px solid rgba(251, 146, 60, 0.4);
  color: #fb923c;
}
.mf-dep-zone-block.zone-korea .mf-dep-zone-head {
  background: rgba(244, 63, 94, 0.16);
  border: 1px solid rgba(244, 63, 94, 0.38);
  color: #fb7185;
}
.mf-dep-cat-card {
  border-radius: 12px;
  border: 1px solid var(--card-border);
  overflow: visible;
  background: rgba(255, 255, 255, 0.02);
}
.mf-dep-cat-card.zone-india {
  border-color: rgba(245, 158, 11, 0.32);
  background: rgba(245, 158, 11, 0.05);
}
.mf-dep-cat-card.zone-india.tone-sub-a { background: rgba(245, 158, 11, 0.07); }
.mf-dep-cat-card.zone-india.tone-sub-b { background: rgba(245, 158, 11, 0.06); }
.mf-dep-cat-card.zone-india.tone-sub-c { background: rgba(245, 158, 11, 0.05); }
.mf-dep-cat-card.zone-india.tone-sub-d { background: rgba(245, 158, 11, 0.04); }
.mf-dep-cat-card.zone-bridge {
  grid-column: 1 / -1;
  border-color: rgba(251, 146, 60, 0.38);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.07), rgba(244, 63, 94, 0.06));
}
.mf-dep-cat-card.zone-korea {
  border-color: rgba(244, 63, 94, 0.32);
  background: rgba(244, 63, 94, 0.05);
}
.mf-dep-cat-card.zone-korea.tone-sub-a { background: rgba(244, 63, 94, 0.07); }
.mf-dep-cat-card.zone-korea.tone-sub-b { background: rgba(244, 63, 94, 0.06); }
.mf-dep-cat-card.zone-korea.tone-sub-c { background: rgba(244, 63, 94, 0.05); }
.mf-dep-cat-card.zone-korea.tone-sub-d { background: rgba(244, 63, 94, 0.04); }
.mf-dep-cat-head {
  padding: 0.55rem 0.75rem;
  font-weight: 600;
  font-size: 0.88rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.mf-dep-cat-items {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.55rem 0.75rem 0.65rem;
}
.mf-dep-cat-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.mf-dep-cat-item-main {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.25rem;
}
.mf-dep-cat-item-label {
  font-size: 0.84rem;
  line-height: 1.35;
  min-width: 0;
}
.mf-dep-cat-item-amt {
  font-variant-numeric: tabular-nums;
  font-size: 0.84rem;
  line-height: 1.45;
  white-space: normal;
  text-align: left;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.mf-dep-amt-detail {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.78rem;
}
.mf-dep-bank-pill {
  display: inline-block;
  padding: 0.08rem 0.45rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  vertical-align: middle;
}
.mf-dep-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.4rem;
  margin-top: 0.15rem;
}
.hl-owner-pill {
  display: inline-block;
  padding: 0.06rem 0.42rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.hl-owner-pill.owner-wife {
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.1);
}
.hl-owner-pill.owner-user {
  color: #fb7185;
  border-color: rgba(244, 63, 94, 0.35);
  background: rgba(244, 63, 94, 0.1);
}
.hl-owner-pill.owner-household {
  color: #fcd34d;
  border-color: rgba(252, 211, 77, 0.3);
  background: rgba(252, 211, 77, 0.08);
}
.hl-store-line {
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--muted);
  margin-top: 0.12rem;
}
.mm-coll-kpi.zone-india-kpi {
  border-color: rgba(245, 158, 11, 0.22);
  background: rgba(245, 158, 11, 0.04);
}
.mm-coll-kpi.zone-korea-kpi {
  border-color: rgba(244, 63, 94, 0.22);
  background: rgba(244, 63, 94, 0.04);
}
.mf-sleeve-row.zone-india .mf-sleeve-fill { background: #f59e0b; }
.mf-sleeve-row.zone-bridge .mf-sleeve-fill { background: linear-gradient(90deg, #f59e0b, #f43f5e); }
.mf-sleeve-row.zone-korea .mf-sleeve-fill { background: #f43f5e; }
.mf-sleeve-lab-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.45rem;
}

.mf-uw {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.05rem 0.35rem;
  border-radius: 999px;
  font-size: 0.65rem;
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}
#money-flow-board.is-loading {
  opacity: 0.55;
  pointer-events: none;
}

.mf-arrow {
  color: var(--muted);
  font-size: 1.1rem;
}

.mf-sof-list {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.mf-sof-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.55rem;
  align-items: start;
  font-size: 0.82rem;
  line-height: 1.4;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--card-border);
}

.mf-sof-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 0.35rem;
  background: var(--muted);
}

.mf-sof-item.ok .mf-sof-dot {
  background: var(--green, #6dd06d);
}

.mf-sof-item.warn .mf-sof-dot {
  background: #d4a017;
}

.mf-sof-st {
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--muted);
}

.household-ledger-board {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.hl-alloc-panel .hl-alloc-pct-input {
  width: 5.5rem;
  max-width: 100%;
  padding: 0.25rem 0.4rem;
  border: 1px solid var(--card-border);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  font-variant-numeric: tabular-nums;
}

.hl-alloc-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin: 0.5rem 0 0.85rem;
}

.hl-alloc-month {
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  margin-bottom: 0.65rem;
  background: rgba(255, 255, 255, 0.02);
}

.hl-alloc-month-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1rem;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
}

.hl-alloc-items {
  margin: 0 0 0.45rem;
  padding-left: 1.1rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.hl-alloc-insuff td,
.hl-alloc-reason,
.hl-alloc-date-pending {
  color: #d4a017;
}

.hl-alloc-reason,
.hl-alloc-date-pending {
  display: inline-block;
  font-size: 0.75rem;
  line-height: 1.35;
  margin-right: 0.35rem;
}

.hl-summary .mm-coll-kpi .value {
  font-size: 1.05rem;
}

.hl-region h3 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0.75rem 0 0.45rem;
}

.hl-acct-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.55rem;
}

.hl-acct {
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  background: rgba(255, 255, 255, 0.02);
}

.hl-acct.tax {
  border-color: rgba(220, 80, 80, 0.35);
}

.hl-acct.invest {
  border-color: rgba(80, 140, 220, 0.35);
}

.hl-acct.goal {
  border-color: rgba(212, 160, 23, 0.35);
}

.hl-acct.reserve {
  border-color: rgba(160, 120, 220, 0.35);
}

.hl-acct-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.35rem;
}

.hl-acct-kind {
  font-size: 0.62rem;
  text-transform: uppercase;
  color: var(--muted);
}

.hl-edit-btn {
  font-size: 0.62rem;
  padding: 0.15rem 0.45rem;
}

.hl-acct-title {
  font-size: 0.82rem;
  margin: 0.35rem 0 0.25rem;
  line-height: 1.35;
}

.hl-acct-bal {
  font-size: 1.15rem;
  font-weight: 600;
}

.hl-delta {
  font-size: 0.72rem;
  color: var(--green, #6dd06d);
  margin-top: 0.2rem;
}

.hl-delta.live {
  color: var(--muted);
}

.hl-acct-note {
  font-size: 0.68rem;
  color: var(--muted);
  margin: 0.35rem 0 0;
  line-height: 1.35;
}

.hl-sync-badge {
  font-size: 0.65rem;
  color: var(--green, #6dd06d);
  margin-top: 0.25rem;
}

.hl-sync-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.75rem;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
}

.hl-sync-bar-main {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  align-items: baseline;
}

.hl-sync-ok {
  font-size: 0.72rem;
  color: var(--green, #6dd06d);
}

.hl-sync-err {
  font-size: 0.72rem;
  color: var(--amber, #e8b84a);
}

.hl-sync-bar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.hl-india-banner {
  padding: 0.55rem 0.65rem;
  margin-bottom: 0.65rem;
  border-left: 3px solid var(--amber, #e8b84a);
  background: rgba(232, 184, 74, 0.06);
  font-size: 0.75rem;
  line-height: 1.45;
}

.hl-india-gap-row {
  margin: 0.25rem 0;
}

.hl-india-gap {
  color: var(--text, #fff);
}

.hl-india-warn {
  color: var(--amber, #e8b84a);
}

.hl-physical-tag,
.hl-virtual-tag {
  margin-left: 0.35rem;
  font-size: 0.58rem;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.hl-physical-tag {
  background: rgba(109, 208, 109, 0.15);
  color: var(--green, #6dd06d);
}

.hl-virtual-tag {
  background: rgba(232, 184, 74, 0.12);
  color: var(--amber, #e8b84a);
}

.hl-bank-tag {
  margin-left: 0.35rem;
  font-size: 0.58rem;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  letter-spacing: 0.02em;
  background: rgba(96, 165, 250, 0.16);
  color: #93c5fd;
}
.hl-bank-tag.bank-hdfc {
  background: rgba(0, 77, 160, 0.35);
  color: #93c5fd;
}
.hl-bank-tag.bank-bom {
  background: rgba(180, 83, 9, 0.28);
  color: #fdba74;
}
.hl-bank-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.45rem 0;
}
.hl-bank-chip {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 140px;
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.78rem;
}
.hl-acct-role {
  margin: 0.15rem 0 0.35rem;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.35;
}

.hl-subhead {
  font-size: 0.75rem;
  margin: 0.65rem 0 0.35rem;
  color: var(--text, #fff);
}

.hl-chart-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 0.75rem 0 0.35rem;
}

.hl-flow-chart,
.hl-cf-chart {
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hl-flow-chart-title {
  font-size: 0.72rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text-muted, #94a3b8);
}

.hl-flow-svg,
.hl-cf-svg {
  width: 100%;
  height: auto;
  display: block;
}

.hl-flow-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  margin-top: 0.45rem;
  font-size: 0.65rem;
  color: var(--text-muted, #94a3b8);
}

.hl-flow-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.hl-flow-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex-shrink: 0;
}

.hl-cf-bar.inflow {
  fill: #4ade80;
}

.hl-cf-bar.stress {
  fill: #38bdf8;
}

.hl-cf-bar.burn {
  fill: #f97316;
}

.hl-cf-label,
.hl-cf-val {
  font-size: 9px;
  fill: var(--text-muted, #94a3b8);
}

.hl-runway-panel .hl-runway-gauge {
  margin: 0.5rem 0 0.75rem;
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.hl-runway-gauge.danger {
  border-color: rgba(248, 113, 113, 0.35);
  background: rgba(248, 113, 113, 0.06);
}

.hl-runway-gauge.warn {
  border-color: rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.06);
}

.hl-runway-gauge.ok {
  border-color: rgba(74, 222, 128, 0.25);
  background: rgba(74, 222, 128, 0.05);
}

.hl-runway-gauge-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.35rem;
}

.hl-runway-gauge-label {
  font-size: 0.72rem;
  color: var(--text-muted, #94a3b8);
}

.hl-runway-gauge-val {
  font-size: 1.35rem;
  font-weight: 700;
}

.hl-runway-gauge-sub {
  margin: 0.35rem 0 0;
  font-size: 0.65rem;
  color: var(--text-muted, #94a3b8);
  line-height: 1.35;
}

.hl-runway-kpis.mm-coll-summary {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 720px) {
  .hl-chart-row {
    grid-template-columns: 1fr;
  }

  .hl-runway-kpis.mm-coll-summary {
    grid-template-columns: 1fr 1fr;
  }
}

/* Apps hub — cross-port launcher */
.apps-hub-board {
  margin-top: 0.25rem;
}

.apps-hub-hero {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.apps-hub-hero-stat {
  padding: 0.65rem 0.75rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.apps-hub-hero-stat.ok {
  border-color: rgba(74, 222, 128, 0.25);
}

.apps-hub-hero-stat.warn {
  border-color: rgba(251, 191, 36, 0.25);
}

.apps-hub-hero-stat .n {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.1;
}

.apps-hub-hero-stat .l {
  display: block;
  font-size: 0.65rem;
  color: var(--text-muted, #94a3b8);
  margin-top: 0.15rem;
}

.apps-hub-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.apps-hub-filter {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted, #94a3b8);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.72rem;
  cursor: pointer;
}

.apps-hub-filter.active {
  background: rgba(147, 197, 253, 0.18);
  border-color: rgba(147, 197, 253, 0.45);
  color: var(--text, #fff);
}

.apps-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.65rem;
}

.apps-hub-card {
  position: relative;
  display: block;
  padding: 0.85rem 0.9rem 0.75rem;
  border-radius: 16px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, transform 0.12s;
}

.apps-hub-card:hover {
  border-color: rgba(147, 197, 253, 0.45);
  transform: translateY(-1px);
}

.apps-hub-card.offline {
  opacity: 0.72;
  border-color: rgba(248, 113, 113, 0.2);
}

.apps-hub-card.featured {
  border-color: rgba(147, 197, 253, 0.28);
}

.apps-hub-card.hidden {
  display: none;
}

.apps-hub-card-top {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
}

.apps-hub-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.apps-hub-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-left: auto;
  background: #64748b;
}

.apps-hub-status.online {
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.5);
}

.apps-hub-status.offline {
  background: #f87171;
}

.apps-hub-port {
  font-size: 0.65rem;
  color: var(--text-muted, #94a3b8);
  font-variant-numeric: tabular-nums;
}

.apps-hub-feat {
  font-size: 0.58rem;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  background: rgba(147, 197, 253, 0.15);
  color: #93c5fd;
}

.apps-hub-title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.25;
}

.apps-hub-sub {
  margin: 0.2rem 0 0.45rem;
  font-size: 0.68rem;
  color: var(--text-muted, #94a3b8);
  line-height: 1.35;
}

.apps-hub-preview {
  display: grid;
  gap: 0.2rem;
  margin-top: 0.35rem;
  padding-top: 0.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.apps-hub-preview-row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.68rem;
  line-height: 1.3;
}

.apps-hub-preview-row .k {
  color: var(--text-muted, #94a3b8);
  flex-shrink: 0;
}

.apps-hub-preview-row .v {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.apps-hub-preview-row.tone-ok .v {
  color: #4ade80;
}

.apps-hub-preview-row.tone-warn .v {
  color: #fbbf24;
}

.apps-hub-preview-row.tone-danger .v {
  color: #f87171;
}

.apps-hub-go {
  position: absolute;
  right: 0.65rem;
  bottom: 0.55rem;
  font-size: 1.1rem;
  color: var(--text-muted, #64748b);
}

@media (max-width: 720px) {
  .apps-hub-grid {
    grid-template-columns: 1fr;
  }

  .apps-hub-filters {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.15rem;
    -webkit-overflow-scrolling: touch;
  }
}

/* Overview hub — Toss/Naver-style home cards */
body.ca-has-hub .page-title,
body.ca-has-hub .page-subtitle {
  display: none;
}

.ca-hub {
  margin: 0 0 1rem;
}

.ca-hub-hero {
  padding: 1rem 1.05rem 0.85rem;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(147, 197, 253, 0.14), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(147, 197, 253, 0.22);
  margin-bottom: 0.65rem;
}

.ca-hub-eyebrow {
  margin: 0;
  font-size: 0.72rem;
  color: var(--muted);
}

.ca-hub-hero-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem 0.65rem;
  margin-top: 0.25rem;
}

.ca-hub-hero-amt {
  margin: 0;
  font-size: clamp(1.55rem, 5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.ca-hub-badge {
  font-size: 0.68rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(147, 197, 253, 0.15);
  color: #93c5fd;
  border: 1px solid rgba(147, 197, 253, 0.25);
}

.ca-hub-hero-unit {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
}

.ca-hub-formula {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.2rem 0.45rem;
  margin: 0.35rem 0 0;
  font-size: 0.95rem;
}

/* "= ₹53.79 L Spendable [~N mo]" stays on one line (390 wrap fix). */
.ca-hub-grp {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  white-space: nowrap;
}

.ca-hub-term {
  white-space: nowrap;
}

.ca-hub-term b {
  font-weight: 650;
}

.ca-hub-term small {
  font-size: 0.68rem;
  color: var(--muted);
}

.ca-hub-term.tax b {
  color: #fbbf24;
}

.ca-hub-term.ok b {
  color: #34d399;
}

.ca-hub-op {
  color: var(--muted);
}

.ca-hub-biz {
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.45rem;
}

.ca-hub-biz-row {
  padding: 0.5rem 0.65rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(147, 197, 253, 0.14);
}

.ca-hub-biz-name {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.35;
}

.ca-hub-biz-name small {
  font-size: 0.68rem;
  color: var(--muted);
}

.ca-hub-biz-calc {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.15rem 0.5rem;
  margin: 0.3rem 0 0;
  font-size: 0.8rem;
}

.ca-hub-biz-calc small {
  font-size: 0.66rem;
  color: var(--muted);
}

.ca-hub-grp.tax b {
  color: #fbbf24;
}

.ca-hub-grp.ok b {
  color: #34d399;
}

.ca-hub-grp.gst b {
  font-weight: 500;
  color: var(--muted);
}

.ca-hub-hero-sub {
  margin: 0.45rem 0 0;
  font-size: 0.74rem;
  color: var(--muted);
  line-height: 1.4;
}

.ca-hub-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.ca-hub-tile {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 0.8rem;
  border-radius: 16px;
  border: 1px solid var(--card-border);
  background: var(--card);
  text-decoration: none;
  color: inherit;
  min-height: 84px;
  -webkit-tap-highlight-color: transparent;
}

.ca-hub-tile:active {
  transform: scale(0.985);
}

.ca-hub-tile-icon {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  background: rgba(255, 255, 255, 0.05);
}

.ca-hub-tile.tone-mint .ca-hub-tile-icon { background: rgba(52, 211, 153, 0.15); }
.ca-hub-tile.tone-sky .ca-hub-tile-icon { background: rgba(96, 165, 250, 0.15); }
.ca-hub-tile.tone-violet .ca-hub-tile-icon { background: rgba(167, 139, 250, 0.15); }
.ca-hub-tile.tone-amber .ca-hub-tile-icon { background: rgba(251, 191, 36, 0.15); }

.ca-hub-tile-body {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.ca-hub-tile-title {
  font-size: 0.72rem;
  color: var(--muted);
}

.ca-hub-tile-val {
  font-size: 0.98rem;
  font-weight: 650;
  line-height: 1.2;
  word-break: break-word;
}

.ca-hub-tile-val-unit {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
}

.ca-hub-tile-sub {
  font-size: 0.66rem;
  color: var(--muted);
  line-height: 1.35;
}

.ca-hub-chevron {
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1;
}

.ca-section-head {
  margin: 0.25rem 0 0.85rem;
  padding-top: 0.35rem;
  border-top: 1px solid var(--card-border);
}

.ca-section-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 650;
}

.ca-section-sub {
  margin: 0.2rem 0 0;
  font-size: 0.74rem;
  color: var(--muted);
}

.ca-nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 238;
  background: rgba(0, 0, 0, 0.45);
}

.ca-nav-backdrop:not([hidden]) {
  display: block;
}

body.ca-nav-flyout-open {
  overflow: hidden;
  touch-action: none;
}

.mm-coll-empty {
  padding: 1.75rem 1.25rem;
  margin-bottom: 0.25rem;
  text-align: center;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  line-height: 1.45;
}

.mm-coll-empty-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text, #fff);
}

.mm-coll-empty-en {
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.mm-coll-empty-desc {
  margin: 0.85rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.mm-coll-empty-desc-en {
  margin: 0.25rem 0 0;
  font-size: 0.72rem;
  color: var(--muted);
  opacity: 0.85;
}

.mm-coll-section-title {
  font-size: 1.02rem;
  font-weight: 800;
  text-transform: none;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 0.55rem;
}

.mm-legacy-tracker {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1rem 1.1rem;
}

.mm-legacy-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.mm-legacy-title {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
}

.mm-legacy-totals {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.mm-legacy-items {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.75rem;
}

.mm-legacy-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem 1rem;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}

.mm-legacy-item.deferred {
  border-color: rgba(234, 179, 8, 0.35);
}

.mm-legacy-label {
  font-size: 0.8rem;
  font-weight: 600;
}

.mm-legacy-label-ko {
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.1rem;
}

.mm-legacy-item-amt {
  text-align: right;
  font-size: 0.78rem;
}

.mm-legacy-amt {
  display: block;
  font-weight: 600;
}

.mm-legacy-recv {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  margin-top: 0.1rem;
}

.mm-legacy-note {
  grid-column: 1 / -1;
  font-size: 0.72rem;
  color: var(--muted);
}

.mm-legacy-empty {
  font-size: 0.78rem;
  color: var(--muted);
}

.mm-monthly-chart {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 1rem 1.1rem;
}

.mm-monthly-chart-title {
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.mm-monthly-chart-legend {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.65rem;
  font-size: 0.72rem;
}

.mm-monthly-legend {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.mm-monthly-legend::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.mm-monthly-legend.raised::before {
  background: #60a5fa;
}

.mm-monthly-legend.received::before {
  background: #4ade80;
}

.mm-monthly-chart-wrap {
  overflow-x: auto;
}

.mm-monthly-svg {
  display: block;
  min-width: 100%;
  height: auto;
}

.mm-monthly-bar.raised {
  fill: #60a5fa;
}

.mm-monthly-bar.received {
  fill: #4ade80;
}

.mm-monthly-label {
  fill: var(--muted);
  font-size: 10px;
}

.mm-monthly-ytick {
  fill: var(--muted);
  font-size: 9px;
}

.mm-monthly-axis {
  stroke: var(--line);
  stroke-width: 1;
}

.mm-monthly-chart-empty-msg {
  margin: 0.5rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.mm-coll-progress {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.mm-coll-progress span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.85);
}

.mm-coll-progress.ok span {
  background: rgba(34, 197, 94, 0.85);
}

.mm-coll-progress.warn span {
  background: rgba(239, 68, 68, 0.85);
}

.mm-coll-client-sections {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mm-coll-client-section {
  border: 1px solid var(--card-border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--card);
}

.mm-coll-client-section.has-overdue {
  border-color: rgba(239, 68, 68, 0.35);
}

.mm-coll-client-section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.mm-coll-client-section-head h2 {
  margin: 0;
  font-size: 0.95rem;
}

.mm-coll-client-section-sub {
  margin: 0.25rem 0 0;
  font-size: 0.75rem;
  color: var(--muted);
}

.mm-coll-client-section-kpis {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
}

.mm-coll-client-section-kpis .warn {
  color: var(--red);
}

.mm-coll-client-note {
  margin: 0;
  padding: 0.55rem 1rem;
  font-size: 0.75rem;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.mm-coll-client-empty {
  padding: 0.85rem 1rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.mm-coll-sample {
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 8px;
  font-size: 0.72rem;
  overflow-x: auto;
}

.mm-coll-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--card-border);
  border-radius: 10px;
}

.mm-coll-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.mm-coll-table th,
.mm-coll-table td {
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.mm-coll-table th {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}

.mm-coll-row.mm-coll-overdue {
  background: rgba(239, 68, 68, 0.08);
}

.mm-coll-row.mm-coll-due-soon {
  background: rgba(234, 179, 8, 0.06);
}

.mm-coll-row.mm-coll-paid {
  background: rgba(34, 197, 94, 0.06);
}

.mm-coll-row.mm-coll-late {
  background: rgba(249, 115, 22, 0.08);
}

.mm-coll-badge {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.65rem;
  white-space: nowrap;
}

.mm-coll-badge.mm-coll-overdue {
  background: rgba(239, 68, 68, 0.2);
  color: #fca5a5;
}

.mm-coll-badge.mm-coll-due-soon {
  background: rgba(234, 179, 8, 0.2);
  color: #fde047;
}

.mm-coll-badge.mm-coll-paid {
  background: rgba(34, 197, 94, 0.2);
  color: #86efac;
}

.mm-coll-badge.mm-coll-late {
  background: rgba(249, 115, 22, 0.2);
  color: #fdba74;
}

.mm-coll-actions {
  white-space: nowrap;
}

.mm-coll-btn {
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.48rem 0.78rem;
  margin-right: 0.3rem;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: var(--card-2);
  color: var(--text);
  cursor: pointer;
}

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

.mm-coll-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.mm-coll-note-row td {
  padding-top: 0;
  border-bottom: 1px solid var(--line);
}

.mm-coll-note {
  font-size: 0.68rem;
  color: var(--muted);
}

.mm-coll-strip-recv {
  color: var(--text, #fff);
}

.mm-coll-strip-sep {
  color: var(--muted);
  font-weight: 400;
}

.mm-coll-strip-out {
  color: var(--muted);
}

.mm-coll-strip-out.warn {
  color: var(--red);
}

.mm-client-modal-panel {
  max-width: min(920px, 96vw);
}

.mm-coll-modal-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}

.mm-coll-modal-stats .k {
  display: block;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.mm-coll-modal-stats .v {
  font-weight: 600;
  font-size: 0.95rem;
}

.mm-coll-modal-stats .v.warn { color: var(--red); }

.mm-coll-modal-status {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0.5rem 0 0.75rem;
}


.mm-coll-section-hint {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  opacity: 0.75;
}

.mm-coll-client-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.mm-coll-list-row {
  display: grid;
  grid-template-columns: minmax(160px, 1.1fr) minmax(240px, 2fr) minmax(120px, 0.9fr);
  align-items: center;
  gap: 0.75rem 1rem;
  width: 100%;
  padding: 0.85rem 1rem;
  text-align: left;
  cursor: pointer;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  color: inherit;
  font: inherit;
}

.mm-coll-list-row:hover {
  border-color: rgba(96, 165, 250, 0.45);
}

.mm-coll-list-row.has-overdue { border-color: rgba(239, 68, 68, 0.4); }
.mm-coll-list-row.has-open { border-color: rgba(234, 179, 8, 0.35); }
.mm-coll-list-row.all-clear { border-color: rgba(34, 197, 94, 0.3); }

.mm-coll-list-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.mm-coll-list-id {
  font-size: 0.95rem;
  font-weight: 700;
  flex-shrink: 0;
}

.mm-coll-list-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
  flex-shrink: 0;
}

.mm-coll-list-dot.has-overdue { background: var(--red); }
.mm-coll-list-dot.has-open { background: #eab308; }
.mm-coll-list-dot.all-clear { background: #22c55e; }

.mm-coll-list-name {
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mm-coll-list-ko {
  font-size: 0.68rem;
  color: var(--muted);
  opacity: 0.85;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mm-coll-list-sub {
  margin-top: 0.2rem;
  font-size: 0.68rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mm-coll-list-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem 0.75rem;
}

.mm-coll-list-metric .k {
  display: block;
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.mm-coll-list-metric .v {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.mm-coll-list-metric .v.warn {
  color: var(--red);
}

.mm-coll-list-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  min-width: 0;
}

.mm-coll-list-side .mm-coll-progress {
  width: 100%;
  min-width: 88px;
}

.mm-coll-list-bills {
  font-size: 0.62rem;
  color: var(--muted);
}

.mm-coll-list-chevron {
  font-size: 1.1rem;
  line-height: 1;
  color: var(--muted);
}

@media (max-width: 820px) {
  .mm-coll-list-row {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }
  .mm-coll-list-metrics {
    grid-column: 1 / -1;
  }
  .mm-coll-list-side {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }
  .mm-coll-list-side .mm-coll-progress {
    flex: 1;
    max-width: 160px;
  }
}

/* —— Project overview map + YGS roadmap —— */
.roadmap-overview {
  margin: 0 0 1.5rem;
  padding: 1rem 1.1rem 1.15rem;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 14px;
}

.roadmap-overview-head,
.yg-map-hub-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.roadmap-overview-sub {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.roadmap-yg-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(59, 130, 246, 0.45);
  background: rgba(59, 130, 246, 0.12);
  color: #93c5fd;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.roadmap-yg-cta:hover {
  background: rgba(59, 130, 246, 0.22);
}

.roadmap-tree,
.yg-map-tree {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.roadmap-hub,
.yg-map-hub {
  min-width: 8rem;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--card-border);
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
}

.yg-map-hub {
  min-width: min(100%, 28rem);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: left;
}

.yg-map-hub-id {
  font-size: 1.05rem;
  color: #93c5fd;
}

.yg-map-hub-status {
  font-size: 0.68rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.yg-map-hub-now,
.yg-map-hub-next,
.roadmap-node-now,
.roadmap-node-next {
  display: block;
  font-size: 0.68rem;
  line-height: 1.35;
  color: var(--muted);
}

.yg-map-hub-now em,
.yg-map-hub-next em,
.roadmap-node-now em,
.roadmap-node-next em {
  font-style: normal;
  font-weight: 700;
  color: var(--text);
  margin-right: 0.25rem;
}

.roadmap-branches {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11.5rem, 1fr));
  gap: 0.65rem;
  width: 100%;
}

.yg-map-leaves {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.55rem;
  width: 100%;
  overflow-x: auto;
  padding: 0.15rem 0.1rem 0.35rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.roadmap-node,
.yg-map-leaf {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.28rem;
  width: 100%;
  padding: 0.75rem 0.8rem;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  background: rgba(0, 0, 0, 0.25);
  border-left: 3px solid var(--proj-color, var(--accent));
  color: inherit;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}

.roadmap-node:hover,
.yg-map-leaf:hover {
  background: rgba(255, 255, 255, 0.04);
}

.roadmap-node-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--proj-color, var(--accent));
}

.roadmap-node-id,
.yg-map-leaf-name {
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.roadmap-node-status,
.yg-map-leaf-phase {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.yg-map-leaf-scope {
  font-size: 0.68rem;
  color: var(--muted);
  line-height: 1.35;
}

.roadmap-node-link {
  margin-top: 0.25rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: #93c5fd;
  text-decoration: none;
}

.roadmap-node-link:hover {
  text-decoration: underline;
}

.project-card-flash {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  transition: outline-color 0.3s;
}

.roadmap-empty {
  padding: 1.25rem;
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: 10px;
}

.yg-roadmap-board {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.yg-map-hub-wrap,
.yg-lanes-wrap,
.yg-revenue-wrap {
  padding: 1rem 1.1rem 1.15rem;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 14px;
}

.yg-lanes {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 0.75rem;
}

.yg-lane {
  padding: 0.85rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  background: rgba(0, 0, 0, 0.2);
}

.yg-lane-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem 0.75rem;
  margin-bottom: 0.35rem;
}

.yg-lane-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.05rem;
}

.yg-lane-phase {
  font-size: 0.7rem;
  color: #93c5fd;
}

.yg-lane-scope {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.yg-lane-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0.45rem;
  align-items: stretch;
}

.yg-lane-step {
  min-width: 0;
  padding: 0.55rem 0.6rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--card-border);
}

.yg-lane-step.is-matched {
  border-color: rgba(59, 130, 246, 0.45);
  background: rgba(59, 130, 246, 0.08);
}

.yg-lane-step-label {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.yg-lane-step-body {
  font-size: 0.78rem;
  line-height: 1.4;
}

.yg-lane-step-note {
  margin-top: 0.3rem;
  font-size: 0.62rem;
  color: var(--muted);
}

.yg-lane-arrow {
  align-self: center;
  color: var(--muted);
  font-size: 0.95rem;
}

.yg-lane-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  margin-top: 0.65rem;
  font-size: 0.68rem;
  color: var(--muted);
}

.yg-revenue-wrap .yg-revenue-sticky,
body[data-page="yg-roadmap"] .yg-revenue-sticky,
#yg-revenue-modal .yg-revenue-sticky {
  position: static !important;
  top: auto !important;
  z-index: auto !important;
  width: 100%;
  max-width: none;
  inset: auto;
  margin: 0;
  box-shadow: none;
  background: transparent;
}

.yg-revenue-wrap .rev-sticky-inner,
body[data-page="yg-roadmap"] .rev-sticky-inner,
#yg-revenue-modal .rev-sticky-inner {
  max-height: none;
}

.yg-map-hub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.yg-revenue-open-btn {
  cursor: pointer;
  border: 1px solid rgba(59, 130, 246, 0.55);
  background: rgba(59, 130, 246, 0.16);
}

.yg-revenue-modal-panel {
  width: min(920px, 100%);
  max-height: min(88vh, 860px);
}

.yg-revenue-modal-body {
  overflow-x: auto;
}

#yg-revenue-modal .rev-sticky-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#yg-revenue-modal .rev-event-flow {
  position: static !important;
  width: 100%;
  max-width: none;
  margin: 0;
}

#yg-revenue-modal .rev-flow-strip {
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .yg-lane-flow {
    grid-template-columns: 1fr;
  }
  .yg-lane-arrow {
    transform: rotate(90deg);
    justify-self: center;
  }
}

/* —— Timeline sticky search + date range —— */
.timeline-sticky-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 0 0 1rem;
  padding: 0.75rem 0.85rem;
  background: rgba(10, 10, 10, 0.94);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  /* anchor for absolute datepicker popover */
  /* position sticky already establishes containing block */
}

.timeline-sticky-bar .timeline-search {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  min-height: 44px;
}

.timeline-date-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.55rem 0.75rem;
}

.timeline-date-field {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.68rem;
  color: var(--muted);
  min-width: 8.5rem;
  flex: 1 1 8.5rem;
}

.timeline-date-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 44px;
  width: 100%;
  padding: 0.4rem 0.7rem;
  border-radius: 8px;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  text-align: left;
}

.timeline-date-btn:hover,
.timeline-date-btn:focus-visible {
  outline: none;
  border-color: var(--accent);
}

.timeline-date-btn-value.is-empty {
  color: var(--muted);
}

.timeline-date-btn-icon {
  font-size: 0.95rem;
  line-height: 1;
  opacity: 0.9;
}

.timeline-date-native {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  border: 0;
  padding: 0;
  margin: 0;
}

.timeline-datepicker {
  position: absolute;
  z-index: 60;
  width: min(18.5rem, calc(100vw - 2rem));
  padding: 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  background: #121212;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
}

.timeline-datepicker.hidden {
  display: none;
}

.tdp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}

.tdp-month {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
}

.tdp-nav,
.tdp-today,
.tdp-clear {
  min-height: 36px;
  min-width: 36px;
  padding: 0.25rem 0.55rem;
  border-radius: 8px;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  font: inherit;
}

.tdp-weekdays,
.tdp-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.2rem;
}

.tdp-weekdays span {
  text-align: center;
  font-size: 0.65rem;
  color: var(--muted);
  padding: 0.2rem 0;
}

.tdp-cell {
  min-height: 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.8rem;
}

.tdp-day {
  cursor: pointer;
}

.tdp-day:hover {
  background: rgba(59, 130, 246, 0.18);
}

.tdp-day.is-today {
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.7);
}

.tdp-day.is-selected {
  background: var(--accent);
  color: #fff;
}

.tdp-foot {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.55rem;
}

body[data-page="timeline"] .timeline-day-header {
  top: 0.25rem;
}

@media (max-width: 600px) {
  .timeline-sticky-bar {
    margin-left: -0.15rem;
    margin-right: -0.15rem;
    border-radius: 10px;
  }
  .timeline-date-row .timeline-period {
    width: 100%;
  }
  .timeline-period-btn {
    min-height: 44px;
  }
}

/* —— YGS detail panel (same-page) —— */
.yg-map-leaf {
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  flex: 0 0 auto;
  width: auto;
  min-width: 7.5rem;
  max-width: 12rem;
  min-height: 64px;
  justify-content: center;
}

.yg-map-leaf.is-selected {
  border-color: rgba(59, 130, 246, 0.75);
  background: rgba(59, 130, 246, 0.12);
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.35);
}

.yg-map-hub-compact {
  margin: 0.75rem 0 0.85rem;
  min-width: 0;
  width: 100%;
}

.yg-map-hub-compact .yg-map-hub-now {
  margin-top: 0.35rem;
}

.yg-collapse {
  padding: 0;
}

.yg-collapse-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.75rem;
  list-style: none;
  cursor: pointer;
  padding: 0.75rem 0.85rem;
  min-height: 44px;
  user-select: none;
}

.yg-collapse-summary::-webkit-details-marker {
  display: none;
}

.yg-collapse-summary .block-label {
  margin: 0;
}

.yg-collapse-hint {
  font-size: 0.72rem;
  color: var(--muted);
}

.yg-collapse-count {
  margin-left: auto;
  font-size: 0.72rem;
  color: #93c5fd;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
}

.yg-collapse[open] .yg-collapse-hint {
  display: none;
}

.yg-collapse-body {
  padding: 0 0.85rem 0.85rem;
  border-top: 1px solid var(--card-border);
}

.yg-idea-panel.yg-collapse .yg-collapse-body {
  padding-top: 0.75rem;
}

.yg-detail-wrap {
  padding: 1rem 1.1rem 1.15rem;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 14px;
}

.yg-detail-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.yg-detail-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  align-items: flex-start;
}

.yg-detail-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.35rem;
}

.yg-detail-title-ko {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.yg-detail-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.yg-detail-chips span {
  font-size: 0.68rem;
  color: var(--muted);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}

.yg-detail-block {
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.02);
}

.yg-detail-block p {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  line-height: 1.45;
}

.yg-detail-block .muted,
.yg-item-ko,
.yg-progress-ko {
  color: var(--muted);
  font-size: 0.8rem;
}

.yg-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.yg-detail-empty {
  padding: 0.85rem;
  color: var(--muted);
  font-size: 0.82rem;
  border: 1px dashed var(--line);
  border-radius: 10px;
}

.yg-milestone-list,
.yg-item-list,
.yg-progress-list,
.yg-idea-saved-list {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.yg-milestone {
  display: grid;
  grid-template-columns: 5.5rem 1fr auto;
  gap: 0.5rem;
  align-items: start;
  font-size: 0.82rem;
}

.yg-milestone-date {
  color: #93c5fd;
  font-weight: 600;
}

.yg-milestone-ko {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
}

.yg-milestone-status {
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--muted);
}

.yg-milestone.done .yg-milestone-status {
  color: #86efac;
}

.yg-item-list li,
.yg-idea-saved-list li,
.yg-idea-card {
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  background: rgba(0, 0, 0, 0.2);
}

.yg-item-status,
.yg-idea-badge {
  display: inline-block;
  margin-left: 0.35rem;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #93c5fd;
}

.yg-idea-badge.candidate {
  color: #fbbf24;
}

.yg-progress-list li {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.55rem;
}

.yg-progress-date {
  color: #93c5fd;
  font-size: 0.78rem;
  font-weight: 600;
}

.yg-progress-title {
  font-size: 0.86rem;
}

.yg-progress-body {
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.yg-idea-note {
  margin: 0.35rem 0 0.65rem;
  font-size: 0.78rem;
  color: #fbbf24;
}

.yg-idea-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  color: var(--muted);
}

.yg-idea-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.yg-idea-show-all,
.yg-idea-show-batch,
.yg-idea-approve,
.yg-idea-discard {
  min-height: 44px;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--card-border);
  background: rgba(59, 130, 246, 0.18);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
}

.yg-idea-discard {
  background: transparent;
}

.yg-idea-show-all:disabled,
.yg-idea-show-batch:disabled {
  opacity: 0.55;
  cursor: wait;
}

.yg-idea-status {
  margin-top: 0.55rem;
  font-size: 0.78rem;
  color: var(--muted);
  min-height: 1.1em;
}

.yg-idea-candidates {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.yg-idea-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.65rem;
}

/* CFO decision checklist */
.yg-decision-wrap {
  margin: 1rem 0;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 14px;
}

.yg-decision-intro {
  margin: 0.35rem 0 0.6rem;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}

.yg-decision-progress {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  margin-bottom: 0.55rem;
}

.yg-decision-progress span {
  display: block;
  height: 100%;
  background: #34d399;
  border-radius: 999px;
  transition: width 0.25s ease;
}

.yg-decision-status {
  font-size: 0.78rem;
  color: var(--muted);
  min-height: 1.1em;
  margin-bottom: 0.4rem;
}

.yg-decision-group {
  margin-top: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.yg-decision-card {
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  background: rgba(0, 0, 0, 0.2);
}

.yg-decision-card.is-answered {
  border-color: rgba(52, 211, 153, 0.45);
  background: rgba(52, 211, 153, 0.06);
}

.yg-decision-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.yg-decision-badge {
  font-size: 0.7rem;
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  border: 1px solid var(--card-border);
}

.yg-decision-badge.open {
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.5);
}

.yg-decision-badge.answered {
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.5);
}

.yg-decision-cat {
  font-size: 0.72rem;
  color: var(--muted);
}

.yg-decision-q {
  margin: 0.5rem 0 0;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
}

.yg-decision-q-ko {
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.yg-decision-why {
  margin-top: 0.5rem;
  font-size: 0.8rem;
}

.yg-decision-why summary {
  cursor: pointer;
  color: #93c5fd;
  font-size: 0.76rem;
}

.yg-decision-why p {
  margin: 0.35rem 0 0;
  line-height: 1.45;
}

.yg-decision-suggested {
  margin-top: 0.55rem;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  border: 1px dashed rgba(147, 197, 253, 0.4);
  background: rgba(147, 197, 253, 0.05);
}

.yg-decision-suggested-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #93c5fd;
}

.yg-decision-suggested p {
  margin: 0.3rem 0 0;
  font-size: 0.8rem;
  line-height: 1.45;
}

.yg-decision-use-suggested {
  margin-top: 0.45rem;
  font-size: 0.74rem;
  padding: 0.3rem 0.6rem;
  border-radius: 8px;
  border: 1px solid rgba(147, 197, 253, 0.5);
  background: transparent;
  color: #93c5fd;
  cursor: pointer;
}

.yg-decision-answer {
  width: 100%;
  margin-top: 0.55rem;
  padding: 0.5rem 0.6rem;
  border-radius: 10px;
  border: 1px solid var(--card-border);
  background: rgba(0, 0, 0, 0.25);
  color: inherit;
  font: inherit;
  font-size: 0.84rem;
  line-height: 1.45;
  resize: vertical;
  box-sizing: border-box;
}

.yg-decision-answer:disabled {
  opacity: 0.75;
}

.yg-decision-when {
  margin: 0.3rem 0 0;
  font-size: 0.74rem;
}

.yg-decision-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.55rem;
}

.yg-decision-actions button {
  font-size: 0.78rem;
  padding: 0.4rem 0.75rem;
  border-radius: 9px;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  cursor: pointer;
  min-height: 38px;
}

.yg-decision-confirm {
  border-color: rgba(52, 211, 153, 0.5) !important;
  color: #34d399 !important;
}

/* Confirmed rules summary card */
.yg-rules-card {
  margin: 1rem 0;
  padding: 0.85rem 1rem;
  background: rgba(52, 211, 153, 0.05);
  border: 1px solid rgba(52, 211, 153, 0.35);
  border-radius: 14px;
}

.yg-rules-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.yg-rules-list {
  margin: 0.55rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.yg-rules-list li {
  display: flex;
  gap: 0.55rem;
  align-items: baseline;
  font-size: 0.82rem;
  line-height: 1.45;
}

.yg-rule-cat {
  flex: 0 0 auto;
  font-size: 0.7rem;
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.4);
  border-radius: 999px;
  padding: 0.1rem 0.5rem;
  white-space: nowrap;
}

/* Deal pipeline */
.yg-deal-rules {
  margin: 0 0 0.55rem;
  padding-left: 1.1rem;
  font-size: 0.78rem;
  line-height: 1.5;
}

.yg-deal-status {
  font-size: 0.78rem;
  color: var(--muted);
  min-height: 1.1em;
  margin-bottom: 0.4rem;
}

.yg-deal-add summary {
  cursor: pointer;
  font-size: 0.82rem;
  color: #93c5fd;
  padding: 0.35rem 0;
}

.yg-deal-form {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.5rem;
  margin: 0.5rem 0 0.75rem;
}

.yg-deal-form input[type="text"],
.yg-deal-form input[type="number"],
.yg-deal-form input[type="date"] {
  padding: 0.45rem 0.55rem;
  border-radius: 9px;
  border: 1px solid var(--card-border);
  background: rgba(0, 0, 0, 0.25);
  color: inherit;
  font: inherit;
  font-size: 0.82rem;
  box-sizing: border-box;
}

.yg-deal-form-check {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.yg-deal-create {
  padding: 0.45rem 0.8rem;
  border-radius: 9px;
  border: 1px solid rgba(52, 211, 153, 0.5);
  background: transparent;
  color: #34d399;
  cursor: pointer;
  font-size: 0.82rem;
  min-height: 40px;
}

.yg-deal-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.5rem;
}

.yg-deal-card {
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  background: rgba(0, 0, 0, 0.2);
}

.yg-deal-card.is-collected {
  border-color: rgba(52, 211, 153, 0.45);
  background: rgba(52, 211, 153, 0.06);
}

.yg-deal-card.is-dropped {
  opacity: 0.55;
}

.yg-deal-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  justify-content: space-between;
}

.yg-deal-stage-badge {
  font-size: 0.72rem;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  color: #93c5fd;
}

.yg-deal-meta {
  margin: 0.3rem 0 0;
  font-size: 0.78rem;
}

.yg-deal-gates {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.45rem;
}

.yg-deal-gate {
  font-size: 0.72rem;
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  border: 1px solid var(--card-border);
}

.yg-deal-gate.ok {
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.5);
}

.yg-deal-gate.warn {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.55);
}

.yg-deal-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.yg-deal-chip {
  font-size: 0.72rem;
  border-radius: 999px;
  padding: 0.18rem 0.6rem;
  border: 1px solid var(--card-border);
  color: var(--muted);
}

.yg-deal-chip.done {
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.4);
}

.yg-deal-chip.current {
  color: #0a0a0a;
  background: #93c5fd;
  border-color: #93c5fd;
  font-weight: 600;
}

.yg-deal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.6rem;
}

.yg-deal-actions button {
  font-size: 0.76rem;
  padding: 0.35rem 0.65rem;
  border-radius: 9px;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  cursor: pointer;
  min-height: 36px;
}

.yg-deal-next {
  border-color: rgba(147, 197, 253, 0.55) !important;
  color: #93c5fd !important;
}

/* VIP fit badges on idea candidates */
.yg-idea-badge.vip-fit {
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.5);
}

.yg-idea-badge.vip-unfit {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.5);
}

/* Toasts */
#toast-host {
  position: fixed;
  left: 50%;
  bottom: calc(1.2rem + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 260;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  align-items: center;
  pointer-events: none;
  width: min(92vw, 480px);
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  background: rgba(20, 20, 24, 0.96);
  color: var(--text);
  font-size: 0.82rem;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
  max-width: 100%;
}

.toast-error {
  border-color: rgba(248, 113, 113, 0.6);
  color: #fca5a5;
}

.toast-undo {
  flex: 0 0 auto;
  font-size: 0.78rem;
  padding: 0.3rem 0.65rem;
  border-radius: 8px;
  border: 1px solid rgba(147, 197, 253, 0.55);
  background: transparent;
  color: #93c5fd;
  cursor: pointer;
}

/* Loading placeholder before data.json arrives */
.loading-note {
  padding: 1.2rem;
  border: 1px dashed var(--card-border);
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

/* Roadmap jump chips */
.yg-jump-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.75rem 0;
}

.yg-jump-chips button {
  font-size: 0.76rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  cursor: pointer;
  min-height: 36px;
}

/* Decision checklist focus mode */
.yg-decision-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.yg-decision-topbar .yg-decision-status {
  margin-bottom: 0;
}

.yg-decision-viewmode {
  flex: 0 0 auto;
  font-size: 0.76rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(147, 197, 253, 0.5);
  background: transparent;
  color: #93c5fd;
  cursor: pointer;
  min-height: 36px;
}

.yg-decision-focus-pos {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  color: #93c5fd;
}

/* Deal form labeled fields + inline advance row */
.yg-deal-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.72rem;
  color: var(--muted);
}

.yg-deal-field span {
  padding-left: 0.15rem;
}

.yg-deal-advance-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.55rem;
  flex-wrap: wrap;
}

.yg-deal-advance-label {
  font-size: 0.76rem;
  color: var(--muted);
}

.yg-deal-advance-input {
  width: 8.5rem;
  padding: 0.4rem 0.55rem;
  border-radius: 9px;
  border: 1px solid var(--card-border);
  background: rgba(0, 0, 0, 0.25);
  color: inherit;
  font: inherit;
  font-size: 0.82rem;
}

.yg-deal-advance-save {
  font-size: 0.76rem;
  padding: 0.35rem 0.7rem;
  border-radius: 9px;
  border: 1px solid rgba(52, 211, 153, 0.5);
  background: transparent;
  color: #34d399;
  cursor: pointer;
  min-height: 36px;
}

/* Timeline search result count + highlight */
.timeline-result-count {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.74rem;
  color: #93c5fd;
}

mark.timeline-hl {
  background: rgba(251, 191, 36, 0.35);
  color: inherit;
  border-radius: 3px;
  padding: 0 0.1em;
}

/* CFO open badge on schedule page */
.yg-decision-open-badge {
  display: block;
  margin: 0.6rem 0;
  padding: 0.6rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(251, 191, 36, 0.5);
  background: rgba(251, 191, 36, 0.07);
  color: #fbbf24;
  font-size: 0.84rem;
  text-decoration: none;
}

/* Mobile: shared boxed tabs in a horizontal scroll strip (bottom) */
@media (max-width: 700px) {
  body {
    font-size: 16px;
  }

  nav.top.ca-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 240;
    margin: 0;
    padding: 0.35rem 0.4rem calc(0.35rem + env(safe-area-inset-bottom));
    gap: 0;
    background: rgba(12, 12, 16, 0.97);
    border-top: 1px solid var(--card-border);
    border-bottom: none;
    backdrop-filter: blur(8px);
  }

  .ca-tab-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.35rem;
  }

  .ca-tab-row::-webkit-scrollbar {
    display: none;
  }

  .ca-tab-box {
    min-width: 4.6rem;
    min-height: 44px;
    padding: 0.35rem 0.5rem;
  }

  .ca-tab-ko {
    font-size: 0.82rem;
  }

  .ca-tab-en {
    font-size: 0.62rem;
  }

  /* Legacy pill nav (nav.top:not(.ca-nav) + data-short-en) removed — cannot appear. */

  .layout {
    padding-bottom: calc(5.8rem + env(safe-area-inset-bottom));
  }

  #toast-host {
    bottom: calc(5.8rem + env(safe-area-inset-bottom));
  }

  /* Hub tiles: single column on phone */
  .ca-hub-tiles {
    grid-template-columns: 1fr;
  }

  .ca-hub-tile {
    min-height: 76px;
  }

  /* KPI grids → 2 col then 1 col */
  .mm-coll-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
  }

  .hl-summary.mm-coll-summary {
    grid-template-columns: 1fr;
  }

  .mm-coll-kpi {
    padding: 0.55rem 0.6rem;
  }

  .mm-coll-kpi .value {
    font-size: 1rem;
  }

  .mf-section {
    padding: 0.7rem 0.75rem;
  }

  .hl-acct-grid {
    grid-template-columns: 1fr;
  }

  .mf-flow-chain {
    flex-direction: column;
    align-items: stretch;
  }

  .mf-arrow {
    align-self: center;
    transform: rotate(90deg);
  }

  .ca-coll-tax-note,
  .ca-coll-tax-footnote {
    font-size: 0.74rem;
    word-break: break-word;
  }

  /* Stack tables as labeled rows */
  .mm-coll-table-wrap.hl-mobile-stack {
    overflow: visible;
    border: none;
  }

  .mm-coll-table.hl-mobile-stack thead {
    display: none;
  }

  .mm-coll-table.hl-mobile-stack tbody tr {
    display: block;
    margin-bottom: 0.45rem;
    padding: 0.55rem 0.65rem;
    border: 1px solid var(--card-border);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
  }

  .mm-coll-table.hl-mobile-stack td {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.2rem 0;
    border: none;
    font-size: 0.82rem;
  }

  .mm-coll-table.hl-mobile-stack td::before {
    content: attr(data-label);
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    max-width: 42%;
  }

  .mm-coll-table.hl-mobile-stack td:last-child {
    font-weight: 600;
    text-align: right;
  }
}

@media (max-width: 420px) {
  .mm-coll-summary:not(.hl-summary) {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .ca-hub-tiles {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .yg-detail-grid {
    grid-template-columns: 1fr;
  }
  .yg-milestone,
  .yg-progress-list li {
    grid-template-columns: 1fr;
  }
}

/* Toss-like money UX — one hero number, stacked bars, item cards */
.ux-hero {
  padding: 1.15rem 1.2rem 1.05rem;
  border-radius: var(--radius);
  background: linear-gradient(165deg, var(--accent-soft), rgba(255,255,255,0.03));
  border: 1px solid rgba(49, 130, 246, 0.28);
  margin-bottom: 0.85rem;
}
.ux-hero.warn {
  background: linear-gradient(165deg, rgba(255, 90, 95, 0.14), rgba(255,255,255,0.03));
  border-color: rgba(255, 90, 95, 0.28);
}
.ux-hero-emoji { font-size: 1.35rem; line-height: 1; }
.ux-hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  margin: 0 0 0.2rem;
}
.ux-hero-amt {
  margin: 0;
  font-size: clamp(1.85rem, 6.2vw, 2.55rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.12;
}
.ux-hero-sub {
  margin: 0.4rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}
.ux-explain {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  margin: 0 0 0.85rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  background: var(--card-2);
  border: 1px solid var(--card-border);
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--text);
}
.ux-explain span[aria-hidden] { font-size: 1.1rem; line-height: 1.2; }
.ux-stack {
  margin: 0.35rem 0 0.85rem;
}
.ux-stack-track {
  display: flex;
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  background: #101218;
  border: 1px solid var(--card-border);
}
.ux-stack-seg { height: 100%; min-width: 2px; }
.ux-stack-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.85rem;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.ux-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 99px;
  margin-right: 0.3rem;
  vertical-align: middle;
}
.ux-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
  gap: 0.7rem;
  margin-bottom: 0.9rem;
}
.ux-kpi {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 0.95rem 1rem;
  min-height: 5.4rem;
}
.ux-kpi .ico { font-size: 1.15rem; display: block; margin-bottom: 0.35rem; }
.ux-kpi .lab { font-size: 0.8rem; font-weight: 700; color: var(--muted); }
.ux-kpi .val {
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-top: 0.2rem;
}
.ux-kpi.warn .val { color: var(--red); }
.ux-kpi.ok .val { color: var(--green); }
.ux-kpi .hint { font-size: 0.72rem; color: var(--muted); margin-top: 0.2rem; line-height: 1.35; }
.ux-item-list { display: flex; flex-direction: column; gap: 0.65rem; }
.ux-item {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 0.95rem 1rem;
}
.ux-item-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.6rem;
}
.ux-item-title {
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.ux-item-amt {
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.ux-item-meta {
  margin-top: 0.28rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.ux-item-note {
  margin: 0.4rem 0 0;
  font-size: 0.78rem;
  color: #b8a4ff;
  line-height: 1.4;
}
.ux-item-actions { margin-top: 0.7rem; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.ux-status {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
}
.ux-status.pending { background: rgba(255, 176, 32, 0.16); color: #ffc14d; }
.ux-status.ok { background: rgba(0, 200, 83, 0.16); color: #5ee08a; }
.ux-status.muted { color: var(--muted); }
.ux-section { margin: 1.15rem 0 0.35rem; }
.ux-section h2 { font-size: 1.05rem; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 0.55rem; }
.hl-acct.tax { border-color: rgba(255, 176, 32, 0.28); }
.hl-acct.invest { border-color: rgba(49, 130, 246, 0.32); }
.hl-acct.goal { border-color: rgba(184, 164, 255, 0.32); }
.hl-acct { border-radius: var(--radius); padding: 0.95rem; }
.hl-acct-title { font-size: 0.98rem; font-weight: 800; letter-spacing: -0.02em; }
.hl-acct-bal { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.03em; }
.apps-hub-hero {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-bottom: 0.85rem;
}
.apps-hub-hero-stat {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
}
.apps-hub-hero-stat .n {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.apps-hub-card { border-radius: var(--radius); }
@media (max-width: 640px) {
  .ux-item-top { flex-direction: column; }
  .ux-item-amt { font-size: 1.28rem; }
}

.hl-toss-sub-grid {
  display: grid;
  gap: 0.65rem;
  margin: 0.75rem 0 1rem;
}
.hl-toss-sub-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.25rem 1rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  background: rgba(220, 60, 80, 0.08);
  border: 1px solid rgba(220, 80, 90, 0.25);
}
.hl-toss-sub-row strong { grid-column: 1 / -1; }
.hl-gift-badge {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-size: 0.72rem;
  background: rgba(255, 193, 7, 0.18);
  color: #ffc107;
}
.zone-korea-block { margin-top: 1.25rem; }

.mf-sof-card {
  border: 1px solid var(--card-border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}
.mf-sof-card.ok { border-color: rgba(109, 208, 109, 0.35); }
.mf-sof-card.warn { border-color: rgba(212, 160, 23, 0.45); }
.mf-sof-summary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.55rem;
  align-items: start;
  padding: 0.65rem 0.75rem;
  cursor: pointer;
  list-style: none;
}
.mf-sof-summary::-webkit-details-marker { display: none; }
.mf-sof-title-wrap { display: flex; flex-direction: column; gap: 0.2rem; }
.mf-sof-title { font-size: 0.88rem; font-weight: 600; line-height: 1.35; }
.mf-sof-phase {
  font-size: 0.68rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.mf-sof-body {
  padding: 0 0.85rem 0.85rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.mf-sof-detail-row {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.65rem;
  font-size: 0.8rem;
  line-height: 1.45;
}
.mf-sof-detail-k {
  color: var(--muted);
  font-weight: 600;
}
.mf-sof-detail-v { white-space: pre-wrap; }
.mf-sof-example {
  margin-top: 0.25rem;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  background: rgba(49, 130, 246, 0.08);
  border: 1px solid rgba(49, 130, 246, 0.2);
  font-size: 0.78rem;
}
.mf-sof-example pre {
  margin: 0.35rem 0 0;
  white-space: pre-wrap;
  font-family: inherit;
  color: var(--text);
}
.mf-sof-link { font-size: 0.78rem; }
.mf-sof-folder code {
  font-size: 0.82rem;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
}
.mf-sof-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.75rem;
}

.mf-sof-zone-block { margin-bottom: 1.1rem; }
.mf-sof-zone-head {
  font-size: 0.82rem;
  font-weight: 700;
  margin: 0.65rem 0 0.45rem;
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
}
.mf-sof-zone-block.zone-india .mf-sof-zone-head { background: rgba(232, 184, 74, 0.12); color: #e8b84a; }
.mf-sof-zone-block.zone-bridge .mf-sof-zone-head { background: rgba(255, 154, 122, 0.12); color: #ff9a7a; }
.mf-sof-zone-block.zone-korea .mf-sof-zone-head { background: rgba(255, 107, 122, 0.12); color: #ff6b7a; }
.mf-sof-zone-block.zone-both .mf-sof-zone-head { background: rgba(160, 170, 190, 0.12); color: #a0aebe; }
.mf-sof-zone-cards { display: flex; flex-direction: column; gap: 0.5rem; }
.mf-sof-card.zone-india { border-left: 3px solid rgba(232, 184, 74, 0.85); }
.mf-sof-card.zone-bridge { border-left: 3px solid rgba(255, 154, 122, 0.85); }
.mf-sof-card.zone-korea { border-left: 3px solid rgba(255, 107, 122, 0.85); }
.mf-sof-card.zone-both { border-left: 3px solid rgba(160, 170, 190, 0.65); }
.mf-sof-prep-ahead {
  margin: 0.75rem 0 1rem;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 193, 7, 0.25);
  background: rgba(255, 193, 7, 0.06);
}
.mf-sof-prep-h { font-size: 0.88rem; margin: 0 0 0.5rem; }
.mf-sof-prep-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.mf-sof-prep-item {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.5rem;
  font-size: 0.78rem;
  line-height: 1.4;
  padding: 0.35rem 0.45rem;
  border-radius: 6px;
  background: rgba(0,0,0,0.15);
}
.mf-sof-prep-when { color: var(--muted); font-weight: 600; font-size: 0.72rem; }
.mf-sof-prep-item.zone-india { border-left: 2px solid #e8b84a; }
.mf-sof-prep-item.zone-korea { border-left: 2px solid #ff6b7a; }
.mf-sof-prep-item.zone-bridge { border-left: 2px solid #ff9a7a; }
.mf-sof-prep-row {
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  font-size: 0.78rem;
  line-height: 1.45;
  margin-bottom: 0.35rem;
  background: rgba(255, 193, 7, 0.08);
  border: 1px solid rgba(255, 193, 7, 0.2);
}
.mf-sof-captures { margin-top: 0.5rem; }
.mf-sof-cap-h { font-size: 0.78rem; margin: 0.35rem 0; color: var(--muted); }
.mf-sof-cap-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--card-border);
}
.mf-sof-cap-title { font-size: 0.86rem; line-height: 1.35; }
.mf-sof-cap-zoom {
  display: block;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 0;
  border: none;
  background: transparent;
  cursor: zoom-in;
  position: relative;
  text-align: left;
}
.mf-sof-cap-zoom:hover .mf-sof-cap-img { border-color: rgba(126, 184, 255, 0.55); }
.mf-sof-cap-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 4px 18px rgba(0,0,0,0.25);
}
.mf-sof-cap-zoom-hint {
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 0.68rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(0,0,0,0.72);
  color: #e8eef5;
  pointer-events: none;
}
.mf-sof-cap-desc {
  font-size: 0.8rem;
  line-height: 1.5;
  margin: 0;
  color: var(--muted);
  max-width: 560px;
}
.mf-sof-legend { margin-top: 0.35rem; }
.sof-cap-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.sof-cap-modal.hidden { display: none; }
.sof-cap-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.82);
}
.sof-cap-modal-panel {
  position: relative;
  z-index: 1;
  max-width: min(960px, 96vw);
  max-height: 92vh;
  overflow: auto;
  background: #121820;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 0.75rem;
}
.sof-cap-modal-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}
.sof-cap-modal-caption {
  margin-top: 0.55rem;
  font-size: 0.82rem;
  color: var(--muted);
  text-align: center;
}
.sof-cap-modal-close {
  position: absolute;
  top: 0.35rem;
  right: 0.45rem;
  z-index: 2;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
body.sof-cap-modal-open { overflow: hidden; }

/* Income / 수익 */
.income-board { display: flex; flex-direction: column; gap: 1.25rem; }
.income-biz-en {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted, #9ca3af);
}
.income-table-wrap { overflow-x: auto; }
.income-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.income-table th,
.income-table td {
  padding: 0.65rem 0.55rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-align: left;
  vertical-align: top;
}
.income-table th { color: var(--muted, #9ca3af); font-weight: 600; }
.income-ko { font-size: 1.05rem; font-weight: 650; color: #f3f4f6; }
.income-en {
  margin-top: 0.12rem;
  font-size: 0.72rem;
  color: var(--muted, #9ca3af);
}
.income-month { white-space: nowrap; font-weight: 600; }
.income-range {
  margin-top: 0.25rem;
  font-size: 0.78rem;
  color: #c4b5fd;
}
.income-range-max { color: var(--muted, #9ca3af); }
.income-table td.ok .income-ko { color: #4ade80; }
.income-table td.warn .income-ko { color: #fbbf24; }

/* Business / 비즈니스별 보기 — stay inside shared .layout max-width */
/* .biz-layout: do not set overflow-x:hidden here — it breaks desktop sticky left menu (mobile MQ only). */
.business-board,
.biz-panel {
  max-width: 100%;
  overflow-x: hidden;
}
.biz-shell {
  display: block;
  width: 100%;
  max-width: 100%;
}
.biz-sidebar {
  display: none;
}
.biz-main {
  min-width: 0;
  max-width: 100%;
}
.biz-page-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
}
.biz-title-ko {
  font-size: inherit;
  font-weight: 800;
  color: var(--text);
}
.biz-title-en {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted, #9ca3af);
}
.biz-inner-tabs {
  position: sticky;
  top: 0;
  z-index: 20;
  margin: 0 0 1rem;
  padding: 0.35rem 0;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(6px);
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.biz-inner-tabs::-webkit-scrollbar { display: none; }
button.ca-tab-box.biz-inner-tab {
  cursor: pointer;
  font: inherit;
  min-height: 44px;
  min-width: 5.8rem;
}
.business-board { margin-bottom: 1.5rem; }
.biz-summary-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}
.biz-card {
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm, 12px);
  padding: 0.9rem 0.95rem;
  background: var(--card);
  min-width: 0;
}
.biz-stack {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
  max-width: 100%;
}
.biz-stack-sec { min-width: 0; max-width: 100%; }
.biz-pc-only { display: none; }
.biz-mobile-only { display: block; }
.biz-rm-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.biz-rm-li {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.35rem 0 0.35rem 0.85rem;
  border-left: 2px solid rgba(147, 197, 253, 0.35);
}
.biz-rm-date {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted, #9ca3af);
  letter-spacing: 0.01em;
}
.biz-rm-more {
  margin-top: 0.45rem;
}
.biz-rm-more-sum {
  cursor: pointer;
  list-style: none;
  min-height: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #93c5fd;
  user-select: none;
}
.biz-rm-more-sum::-webkit-details-marker { display: none; }
.biz-rm-more-sum .biz-ko { font-size: 0.95rem; font-weight: 650; }
.biz-rm-more-sum .biz-en { font-size: 0.68rem; margin-top: 0; }
.biz-rm-more-body {
  margin-top: 0.4rem;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
}
.biz-rm-detail-block { margin-bottom: 0.65rem; }
.biz-coll-toggle {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.05rem;
  min-height: 40px;
  margin: 0 0 0.65rem;
  padding: 0.35rem 0.7rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.04);
  color: #e5e7eb;
  cursor: pointer;
  font: inherit;
}
.biz-coll-toggle .biz-ko { font-size: 0.9rem; }
.biz-coll-toggle .biz-en { font-size: 0.68rem; margin-top: 0; }
.biz-coll-toggle[aria-pressed="true"] {
  border-color: rgba(251, 191, 36, 0.45);
  background: rgba(251, 191, 36, 0.1);
}
.biz-coll-table-wrap {
  overflow-x: auto;
  max-width: 100%;
}
.biz-coll-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.biz-coll-table th,
.biz-coll-table td {
  padding: 0.55rem 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-align: left;
  vertical-align: top;
  font-size: 0.95rem;
}
.biz-coll-table th { color: var(--muted, #9ca3af); font-weight: 600; }
.biz-coll-table .biz-num { white-space: nowrap; }
.biz-coll-table tr.is-cancelled { opacity: 0.72; }
.biz-income-pivot .biz-num {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.biz-income-pivot th[scope="row"] {
  white-space: nowrap;
  min-width: 5.5rem;
  color: var(--muted, #9ca3af);
  font-weight: 600;
  text-align: left;
}
.biz-card-title {
  margin: 0 0 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  font-size: 1.05rem;
  font-weight: 700;
}
.biz-last-updated {
  display: block !important;
  visibility: visible !important;
  margin: 0 0 0.45rem;
  font-size: 0.82rem;
  color: #94a3b8;
}
.biz-lead-chip-new {
  display: inline-flex !important;
  visibility: visible !important;
}
.biz-new-badge {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.08rem 0.35rem;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.18);
  border: 1px solid rgba(52, 211, 153, 0.55);
  color: #6ee7b7;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  vertical-align: middle;
  line-height: 1.2;
}
.biz-lead-chip-new.active {
  border-color: rgba(52, 211, 153, 0.55);
  background: rgba(52, 211, 153, 0.12);
}
.biz-ko { font-size: 1rem; font-weight: 650; color: #f3f4f6; }
.biz-en {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted, #9ca3af);
}
.biz-card-title .biz-ko { font-size: 1.05rem; }
.biz-label {
  margin-bottom: 0.25rem;
}
.biz-label .biz-ko { font-size: 0.88rem; color: #cbd5e1; }
.biz-body {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  line-height: 1.45;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.biz-body-en {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  color: var(--muted, #9ca3af);
  line-height: 1.4;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.biz-empty {
  margin: 0;
  color: var(--muted, #9ca3af);
  font-size: 1rem;
}
.biz-income-wrap { overflow-x: auto; max-width: 100%; }
.biz-link {
  color: #93c5fd;
  word-break: break-all;
  overflow-wrap: anywhere;
}
.biz-criteria {
  margin: 0 0 0.85rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  background: rgba(147, 197, 253, 0.08);
  border: 1px solid rgba(147, 197, 253, 0.2);
}
.biz-criteria .biz-ko { font-size: 1rem; }
.biz-criteria .biz-en { font-size: 0.78rem; }
.biz-verifying {
  margin: 0.5rem 0 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fbbf24;
}
.biz-verifying .biz-en { color: #fbbf24; opacity: 0.85; }
.biz-src-subtabs {
  margin: 0 0 0.85rem;
  padding: 0.2rem 0;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.biz-src-subtabs::-webkit-scrollbar { display: none; }
button.ca-tab-box.biz-src-subtab,
a.ca-tab-box.biz-src-subtab {
  cursor: pointer;
  font: inherit;
  min-height: 44px;
  min-width: 7rem;
}
.biz-country-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.35rem;
  margin: 0 0 0.35rem;
  padding: 0.15rem 0 0.35rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.biz-country-tabs::-webkit-scrollbar { display: none; }
.biz-country-tab {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0.3rem 0.55rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  color: #e5e7eb;
  cursor: pointer;
  font: inherit;
  white-space: nowrap;
}
.biz-country-tab-label {
  font-size: 0.9rem;
  font-weight: 650;
  white-space: nowrap;
}
.biz-country-tab-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  padding: 0.08rem 0.35rem;
  border-radius: 4px;
  font-variant-numeric: tabular-nums;
  font-weight: 750;
  font-size: 0.72rem;
  line-height: 1.2;
  color: #86efac;
  background: rgba(134, 239, 172, 0.12);
  white-space: nowrap;
}
.biz-country-tab-pending {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.12);
  font-size: 0.68rem;
}
.biz-country-tab.is-pending {
  border-color: rgba(251, 191, 36, 0.35);
}
.biz-country-tab.active {
  border-color: rgba(134, 239, 172, 0.55);
  background: rgba(134, 239, 172, 0.14);
}
.biz-country-sum {
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
  color: var(--muted, #9ca3af);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.biz-lead-country {
  margin: 0 0 0.35rem;
  font-size: 0.85rem;
  color: #a5b4fc;
}
.biz-lead-country .biz-en { font-size: 0.68rem; }
.biz-fee-badge {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  border: 1px solid transparent;
  line-height: 1.15;
  margin-right: 0.35rem;
  vertical-align: middle;
  white-space: nowrap;
}
.biz-fee-badge .biz-ko { font-size: 0.78rem; }
.biz-fee-badge--above {
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(34, 197, 94, 0.4);
  color: #86efac;
}
.biz-fee-badge--near {
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.4);
  color: #fde68a;
}
.biz-fee-badge--below {
  background: rgba(248, 113, 113, 0.12);
  border-color: rgba(248, 113, 113, 0.4);
  color: #fecaca;
}
.biz-fee-badge--unknown {
  background: rgba(148, 163, 184, 0.12);
  border-color: rgba(148, 163, 184, 0.35);
  color: #cbd5e1;
}
.biz-lead-filters {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.35rem;
  margin: 0 0 0.45rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.biz-lead-filters::-webkit-scrollbar { display: none; }
/* PC: chips wrap so the last ones (No-contact archive, NEW only) are never hidden off-scroll. */
@media (min-width: 900px) {
  .biz-lead-filters { flex-wrap: wrap; overflow-x: visible; }
}
.biz-lead-chip {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0.3rem 0.55rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  color: #e5e7eb;
  cursor: pointer;
  font: inherit;
  white-space: nowrap;
}
.biz-lead-chip-label {
  font-size: 0.9rem;
  font-weight: 650;
  white-space: nowrap;
}
.biz-lead-chip-n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  padding: 0.08rem 0.35rem;
  border-radius: 4px;
  font-variant-numeric: tabular-nums;
  font-weight: 750;
  font-size: 0.72rem;
  line-height: 1.2;
  color: #93c5fd;
  background: rgba(147, 197, 253, 0.14);
  white-space: nowrap;
}
.biz-lead-chip.active {
  border-color: rgba(147, 197, 253, 0.55);
  background: rgba(147, 197, 253, 0.16);
}
.biz-lead-filter-sum {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  color: var(--muted, #9ca3af);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.biz-leads-cards {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.biz-lead-card {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 0.8rem 0.85rem;
  background: rgba(0,0,0,0.2);
  min-width: 0;
}
.biz-lead-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.55rem;
  margin-bottom: 0.45rem;
}
.biz-lead-name {
  font-size: 1.1rem;
  font-weight: 750;
  word-break: break-word;
  flex: 1;
  min-width: 0;
}
.biz-verdict-badge {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  flex-shrink: 0;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  border: 1px solid transparent;
  line-height: 1.15;
  white-space: nowrap;
}
.biz-verdict-badge .biz-ko { font-size: 0.9rem; }
.biz-verdict-pass {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.45);
  color: #86efac;
}
.biz-verdict-fee_low {
  background: rgba(251, 146, 60, 0.14);
  border-color: rgba(251, 146, 60, 0.45);
  color: #fdba74;
}
.biz-verdict-fee_unknown {
  background: rgba(148, 163, 184, 0.14);
  border-color: rgba(148, 163, 184, 0.4);
  color: #cbd5e1;
}
.biz-verdict-hold {
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.4);
  color: #fde68a;
}
.biz-verdict-fail {
  background: rgba(248, 113, 113, 0.12);
  border-color: rgba(248, 113, 113, 0.4);
  color: #fecaca;
}
.biz-fee-dot {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  flex-shrink: 0;
  vertical-align: middle;
}
.biz-fee-dot--near { background: #fbbf24; }
.biz-fee-dot--above { background: #22c55e; }
.biz-fee-dot--below { background: #f87171; }
.biz-fee-dot--unknown { background: #94a3b8; }
.biz-lead-fee-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
}
.biz-web-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: #93c5fd;
  text-decoration: none;
  border-radius: 6px;
  border: 1px solid rgba(147, 197, 253, 0.3);
  background: rgba(147, 197, 253, 0.08);
}
.biz-web-icon:hover { background: rgba(147, 197, 253, 0.18); }
.biz-web-icon--empty {
  border-style: dashed;
  opacity: 0.5;
  color: #94a3b8;
}
.biz-web-domain {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #93c5fd;
  text-decoration: none;
  font-size: 0.8rem;
  line-height: 1.2;
}
.biz-web-domain:hover { text-decoration: underline; color: #bfdbfe; }
.biz-web-domain--empty {
  color: #64748b;
  opacity: 0.7;
}
.biz-lead-evidence-pop {
  margin: 0;
  padding: 0;
  border: 0 !important;
  border-top: 0 !important;
  outline: none;
  text-decoration: none;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  box-shadow: none;
}
.biz-lead-evidence-icon {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border-radius: 6px;
  border: 1px solid rgba(147, 197, 253, 0.3);
  background: rgba(147, 197, 253, 0.08);
  color: #93c5fd;
  font-size: 0.85rem;
  font: inherit;
  line-height: 1;
  user-select: none;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  text-decoration: none;
  box-shadow: none;
}
.biz-lead-evidence-icon::-webkit-details-marker { display: none; }
.biz-lead-evidence-icon::marker { content: ""; display: none; }
.biz-lead-evidence-icon::before,
.biz-lead-evidence-icon::after { content: none; display: none; }
.biz-lead-evidence-popover {
  position: fixed;
  z-index: 1200;
  margin: 0;
  padding: 0;
  border: 0;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  pointer-events: auto;
  max-height: min(70vh, 420px);
  overflow: hidden;
}
.biz-lead-evidence-popover[hidden] { display: none !important; }
.biz-lead-evidence-popover .biz-lead-evidence-body {
  margin: 0;
  max-height: inherit;
  overflow-x: hidden;
  overflow-y: auto;
  background: #16181d !important;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55), 0 2px 8px rgba(0, 0, 0, 0.35);
  border-radius: 8px;
  opacity: 1;
}
.biz-wife-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.1rem 0.4rem;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.05);
  font-size: 0.78rem;
  color: #e5e7eb;
  white-space: nowrap;
  flex-shrink: 0;
}
.biz-wife-badge .biz-ko { font-size: 0.78rem; font-weight: 600; }
.biz-td-status-inner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  margin: 0;
  vertical-align: middle;
}
.biz-status-seg {
  display: inline-flex;
  align-items: stretch;
  flex: 1 1 auto;
  min-width: 0;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 6px;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
  vertical-align: middle;
}
.biz-status-seg-btn {
  flex: 1 1 0;
  min-width: 0;
  min-height: 44px;
  margin: 0;
  padding: 0 0.55rem;
  border: 0;
  border-right: 1px solid rgba(255,255,255,0.12);
  border-radius: 0;
  background: transparent;
  color: #e5e7eb;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  box-sizing: border-box;
}
.biz-status-seg-btn:last-child { border-right: 0; }
.biz-status-seg-btn .biz-ko { font-size: inherit; white-space: nowrap; }
.biz-status-seg-btn:hover { background: rgba(255,255,255,0.06); }
.biz-status-candidate.is-on {
  background: rgba(148, 163, 184, 0.28);
  color: #f8fafc;
}
.biz-status-approve.is-on {
  background: #16a34a;
  color: #fff;
}
.biz-status-exclude.is-on {
  background: #dc2626;
  color: #fff;
}
.biz-lead-fee {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.55rem;
  margin-bottom: 0.55rem;
  font-size: 1rem;
}
.biz-lead-fee .biz-ko { font-size: 0.85rem; color: #cbd5e1; }
.biz-lead-fee-val { font-weight: 700; word-break: break-word; }
.biz-lead-card-actions {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.biz-lead-card-status-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.biz-lead-card-status-row .biz-status-seg { flex: 1 1 auto; }
.biz-lead-card-evidence {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 0;
  text-decoration: none;
}
.biz-lead-card-evidence .biz-lead-evidence-icon {
  width: 44px;
  height: 44px;
  min-height: 44px;
}
.biz-lead-web-btn {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  border: 1px solid rgba(147, 197, 253, 0.35);
  background: rgba(147, 197, 253, 0.1);
  color: #bfdbfe;
  text-decoration: none;
  text-align: center;
  font: inherit;
  white-space: nowrap;
}
.biz-lead-web-btn .biz-ko { font-size: 0.95rem; }
.biz-lead-web-btn--empty {
  opacity: 0.55;
  border-style: dashed;
  cursor: default;
}
.biz-lead-actions {
  display: contents;
}
.biz-wife-status {
  margin: 0.45rem 0 0.2rem;
  font-size: 0.85rem;
  color: var(--muted, #9ca3af);
}
.biz-lead-evidence {
  margin-top: 0.55rem;
  border: 0 !important;
  padding: 0;
  text-decoration: none;
}
.biz-lead-evidence > summary {
  list-style: none;
  text-decoration: none;
  border: 0;
}
.biz-lead-evidence > summary::-webkit-details-marker { display: none; }
.biz-lead-evidence > summary::marker { content: ""; display: none; }
.biz-lead-evidence-sum {
  cursor: pointer;
  list-style: none;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #93c5fd;
  user-select: none;
  margin: 0;
  border: 0;
  text-decoration: none;
}
.biz-lead-evidence-sum::-webkit-details-marker { display: none; }
.biz-lead-evidence-sum::marker { content: ""; display: none; }
.biz-lead-evidence-body {
  margin-top: 0.35rem;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  background: #16181d;
  font-size: 0.9rem;
  word-break: break-word;
  overflow-wrap: anywhere;
  color: #e5e7eb;
}
.biz-evidence-grid {
  display: grid;
  grid-template-columns: 3.6em minmax(0, 1fr);
  column-gap: 0.65rem;
  row-gap: 0.4rem;
  align-items: start;
}
.biz-evidence-row {
  display: contents;
}
.biz-evidence-label {
  color: #9ca3af;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
  width: 3.6em;
}
.biz-evidence-val {
  color: #e5e7eb;
  font-size: 0.88rem;
  line-height: 1.35;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.biz-evidence-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.28rem;
}
.biz-evidence-a {
  color: #93c5fd;
  text-decoration: none;
  font-size: 0.86rem;
  line-height: 1.3;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.biz-evidence-a:hover { text-decoration: underline; color: #bfdbfe; }
.biz-evidence-text { margin: 0 0 0.4rem; line-height: 1.4; }
.biz-evidence-link { margin: 0 0 0.35rem; }
.biz-evidence-meta { margin: 0 0 0.3rem; color: var(--muted, #9ca3af); }
.biz-fee-tag {
  font-size: 0.72rem;
  color: #c4b5fd;
  margin-bottom: 0.15rem;
}
.biz-leads-table-wrap { display: none; }
.biz-leads-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.biz-leads-table th,
.biz-leads-table td {
  padding: 0.2rem 0.35rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-align: left;
  vertical-align: middle;
  font-size: 0.84rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  word-break: keep-all;
  overflow-wrap: normal;
  height: 48px;
  max-height: 48px;
  box-sizing: border-box;
}
.biz-leads-table th {
  height: auto;
  max-height: none;
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
}
.biz-leads-table th { color: var(--muted, #9ca3af); font-weight: 600; }
.biz-leads-table .biz-sort-th,
.biz-leads-table .biz-th-evidence {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  vertical-align: middle;
}
.biz-leads-table .biz-th-evidence { cursor: default; }
.biz-leads-table .biz-sort-th:hover,
.biz-leads-table .biz-sort-th.is-sorted {
  color: #e5e7eb;
  background: rgba(255,255,255,0.04);
}
.biz-leads-table .biz-sort-th .biz-ko,
.biz-leads-table .biz-th-evidence .biz-ko {
  font-size: 0.8rem;
  white-space: nowrap;
}
.biz-leads-table .biz-sort-th .biz-en,
.biz-leads-table .biz-th-evidence .biz-en {
  font-size: 0.78rem;
  font-weight: 650;
}
.biz-leads-table .biz-td-company {
  font-weight: 650;
  max-width: 0;
}
.biz-leads-table .biz-td-company-text {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* 7904 contacts: long names and the verdict badge wrap instead of being cut off. */
.biz-leads-table td.biz-td-company { white-space: normal; }
.biz-leads-table .biz-td-company .biz-td-company-text {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
}
.biz-leads-table td.biz-td-verdict { max-width: none; white-space: normal; overflow: visible; }
.biz-leads-table td.biz-td-verdict .biz-verdict-badge { white-space: normal; max-width: 100%; }
.biz-ko-src {
  display: inline-block;
  padding: 0 0.25rem;
  margin-right: 0.15rem;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 4px;
  font-size: 0.7rem;
  line-height: 1.3;
  color: var(--muted, #9ca3af);
  vertical-align: 1px;
}
/* 7904 country cell: wrap long values (e.g. 'Singapore / Hong Kong') instead of ellipsis. */
.biz-leads-table .biz-td-country,
.biz-leads-table .biz-td-country-text {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
}
.biz-leads-table .biz-td-country { max-width: 0; }
.biz-leads-table .biz-td-country-text { display: block; }
.biz-lead-fee-amt {
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
}
.biz-leads-table .biz-td-fee { max-width: 0; }
.biz-leads-table .biz-td-verdict { max-width: 0; }
.biz-leads-table .biz-td-web,
.biz-leads-table .biz-td-evidence,
.biz-leads-table .biz-td-status {
  vertical-align: middle;
  max-width: 0;
  text-decoration: none;
}
.biz-leads-table .biz-td-web {
  text-align: left;
}
.biz-leads-table .biz-td-evidence {
  text-align: center;
}
.biz-leads-table .biz-td-evidence {
  text-decoration: none;
}
.biz-leads-table .biz-td-evidence .biz-lead-evidence-pop,
.biz-leads-table .biz-td-evidence .biz-lead-evidence-icon,
.biz-leads-table .biz-td-evidence .biz-td-evidence-inner {
  text-decoration: none;
  box-shadow: none;
}
/* Popover is fixed + opaque — do not inherit table nowrap/overflow clip. */
.biz-leads-table .biz-lead-evidence-popover,
.biz-leads-table .biz-lead-evidence-popover .biz-lead-evidence-body {
  white-space: normal;
  overflow: visible;
  max-height: none;
  height: auto;
  text-decoration: none;
}
.biz-leads-table .biz-lead-evidence-popover {
  z-index: 1200;
  max-height: min(70vh, 420px);
  overflow: hidden;
}
.biz-leads-table .biz-lead-evidence-popover .biz-lead-evidence-body {
  background: #16181d;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55), 0 2px 8px rgba(0, 0, 0, 0.35);
  max-height: inherit;
  overflow-x: hidden;
  overflow-y: auto;
}
.biz-leads-table .biz-td-web > *,
.biz-leads-table .biz-td-evidence > *,
.biz-leads-table .biz-td-status > * {
  margin: 0;
  vertical-align: middle;
}
.biz-leads-table .biz-td-web-inner {
  display: block;
  align-items: center;
  justify-content: flex-start;
  margin: 0;
  vertical-align: middle;
  max-width: 100%;
  height: 28px;
  line-height: 28px;
  overflow: hidden;
}
.biz-leads-table .biz-td-evidence-inner,
.biz-leads-table .biz-td-status-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  vertical-align: middle;
  max-width: 100%;
  height: 28px;
}
.biz-leads-table .biz-web-domain {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 28px;
  height: 28px;
}
.biz-leads-table .biz-td-status-inner {
  justify-content: flex-start;
  width: 100%;
}
.biz-leads-table .biz-verdict-badge {
  flex-direction: row;
  align-items: center;
  gap: 0.2rem;
  padding: 0.12rem 0.35rem;
  max-width: 100%;
  overflow: hidden;
  border-radius: 6px;
}
.biz-leads-table .biz-verdict-badge .biz-ko {
  font-size: 0.78rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.biz-leads-table .biz-verdict-badge .biz-en {
  font-size: 0.78rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.biz-leads-table .biz-status-seg {
  height: 28px;
  width: 100%;
  max-width: 100%;
  border-radius: 6px;
}
.biz-leads-table .biz-status-seg-btn {
  min-height: 28px;
  height: 28px;
  padding: 0 0.22rem;
  font-size: 0.7rem;
  line-height: 1;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.biz-leads-table .biz-status-seg-btn .biz-ko { font-size: 0.7rem; }
.biz-leads-table .biz-lead-web-btn { width: auto; }
.biz-leads-table tbody tr { height: 48px; }
.biz-leads-table .biz-lead-evidence-icon {
  width: 28px;
  height: 28px;
  margin: 0;
  vertical-align: middle;
}
.biz-leads-table .biz-lead-evidence-pop {
  margin: 0;
  padding: 0;
  border: 0 !important;
  height: 28px;
  text-decoration: none;
}
.biz-leads-table details.biz-lead-evidence,
.biz-leads-table .biz-lead-evidence {
  margin: 0;
  padding: 0;
  border: 0 !important;
}
.biz-page-subtitle {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.12rem;
}
.biz-subtitle-ko {
  font-size: 0.95rem;
  font-weight: 550;
  color: var(--text);
}
.biz-subtitle-en {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted, #9ca3af);
}

/* Mobile / narrow: cards + top tabs (unchanged below 1024) */
@media (max-width: 1023px) {
  .biz-layout { overflow-x: hidden; }
  .biz-sidebar {
    display: none !important;
    position: static; /* sticky off — do not cover body */
  }
  .biz-leads-cards { display: flex; }
  .biz-leads-table-wrap { display: none !important; }
  .biz-pc-only { display: none !important; }
  .biz-mobile-only { display: block !important; }
  /* Keep prior mobile sub-tab filtering (leads / hiring / roadmap·income). */
  .biz-stack[data-biz-src-view="leads"] > .biz-stack-sec:not([data-sec="leads"]) {
    display: none !important;
  }
  .biz-stack[data-biz-src-view="hiring"] > .biz-stack-sec:not([data-sec="hiring"]) {
    display: none !important;
  }
  .biz-stack[data-biz-src-view="roadmap"] > .biz-stack-sec:not([data-sec="roadmap"]):not([data-sec="collections"]):not([data-sec="todos"]) {
    display: none !important;
  }
  .biz-stack[data-biz-src-view="income"] > .biz-stack-sec:not([data-sec="income"]):not([data-sec="collections"]):not([data-sec="todos"]) {
    display: none !important;
  }
  .biz-stack[data-biz-src-view="summary"] > .biz-stack-sec[data-sec="leads"],
  .biz-stack[data-biz-src-view="summary"] > .biz-stack-sec[data-sec="hiring"] {
    display: none !important;
  }
}

/* Hiring section — reuse leads table chrome; status + empty card */
.biz-hiring-status {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.05rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #cbd5e1;
  white-space: nowrap;
  vertical-align: middle;
}
.biz-hiring-status .biz-en { font-size: 0.68rem; opacity: 0.85; font-weight: 500; }
.biz-hiring-status--interview_scheduled { color: #93c5fd; }
.biz-hiring-status--interview_done { color: #a5b4fc; }
.biz-hiring-status--hired { color: #86efac; }
.biz-hiring-status--rejected { color: #fca5a5; }
.biz-hiring-contact {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}
.biz-hiring-contact--hidden {
  font-size: 0.72rem;
  color: var(--muted, #9ca3af);
  white-space: nowrap;
}
.biz-hiring-contact-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.55rem;
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(30, 41, 59, 0.55);
  color: #e2e8f0;
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.biz-hiring-contact-btn:hover {
  border-color: rgba(96, 165, 250, 0.65);
  color: #bfdbfe;
}
.biz-hiring-contact-btn--hint {
  cursor: default;
  opacity: 0.95;
}
.biz-hiring-contact-hint {
  font-size: 0.68rem;
  color: var(--muted, #9ca3af);
  max-width: 14rem;
  line-height: 1.25;
}
.biz-hiring-empty {
  margin: 0.85rem 0 0.2rem;
  padding: 1.1rem 1rem;
  border: 1px dashed rgba(251, 191, 36, 0.45);
  border-radius: 12px;
  background: rgba(251, 191, 36, 0.08);
  text-align: center;
}
.biz-hiring-loc {
  font-size: 0.82rem;
  color: var(--muted, #9ca3af);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.biz-hiring-table th,
.biz-hiring-table td {
  vertical-align: middle;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.biz-hiring-extra-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.55rem 0 0.35rem;
}
.biz-hiring-fit-wrap {
  position: relative;
  display: inline-flex;
  vertical-align: middle;
}
.biz-hiring-fit {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 700;
  color: #93c5fd;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}
.biz-hiring-fit:focus-visible {
  outline: 2px solid rgba(96, 165, 250, 0.7);
  outline-offset: 2px;
}
.biz-hiring-fit-text {
  text-decoration: underline;
  text-decoration-style: dotted;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: rgba(147, 197, 253, 0.85);
}
.biz-hiring-fit-mark {
  flex: 0 0 auto;
  font-size: 0.8em;
  opacity: 0.85;
}
.biz-hiring-fit-wrap.is-open .biz-hiring-fit-mark {
  transform: rotate(90deg);
}
.biz-hiring-fit-popover {
  position: fixed;
  z-index: 1310;
  margin: 0;
  padding: 0;
  border: 0;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  pointer-events: auto;
  max-height: min(60vh, 360px);
  overflow: hidden;
}
.biz-hiring-fit-popover[hidden] { display: none !important; }
.biz-hiring-fit-card {
  background: #16181d;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55), 0 2px 8px rgba(0, 0, 0, 0.35);
  border-radius: 8px;
  max-height: inherit;
  overflow: auto;
}
.biz-hiring-fit-body {
  padding: 0.5rem 0.65rem 0.55rem;
}
.biz-hiring-fit-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.biz-hiring-fit-item {
  font-size: 0.78rem;
  line-height: 1.35;
  margin: 0.22rem 0;
  color: #e2e8f0;
}
.biz-hiring-fit-item.is-met { color: #86efac; }
.biz-hiring-fit-item.is-unmet { color: #fca5a5; }
.biz-hiring-fit-item.is-unknown { color: #94a3b8; }
.biz-hiring-summary-line {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: var(--muted, #9ca3af);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.biz-hiring-name-pop {
  position: relative;
  display: inline-flex;
  max-width: 100%;
  vertical-align: middle;
}
.biz-hiring-name-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-align: left;
}
.biz-hiring-name-btn:focus-visible {
  outline: 2px solid rgba(96, 165, 250, 0.7);
  outline-offset: 2px;
}
.biz-hiring-name-text {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: rgba(147, 197, 253, 0.75);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.biz-hiring-name-mark {
  flex: 0 0 auto;
  font-size: 0.85em;
  opacity: 0.8;
  color: #93c5fd;
}
.biz-hiring-name-pop.is-open .biz-hiring-name-mark {
  transform: rotate(90deg);
}
body.hiring-fields-scroll-lock {
  overflow: hidden;
  overscroll-behavior: none;
}
.biz-hiring-fields-popover {
  position: fixed;
  z-index: 1300;
  margin: 0;
  padding: 0;
  border: 0;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  pointer-events: auto;
  max-height: min(70vh, 480px);
  overflow: hidden;
  overscroll-behavior: contain;
}
.biz-hiring-fields-popover[hidden] { display: none !important; }
.biz-hiring-fields-card {
  background: #16181d;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55), 0 2px 8px rgba(0, 0, 0, 0.35);
  border-radius: 8px;
  max-height: inherit;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.biz-hiring-fields-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
}
.biz-hiring-fields-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: #f1f5f9;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.biz-hiring-fields-close {
  flex: 0 0 auto;
  margin: 0;
  padding: 0.25rem 0.55rem;
  min-height: 36px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 6px;
  background: rgba(255,255,255,0.05);
  color: #e2e8f0;
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
}
.biz-hiring-fields-body {
  padding: 0.2rem 0.7rem 0.55rem;
  overflow-x: hidden;
  overflow-y: auto;
  max-height: inherit;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.65) rgba(255, 255, 255, 0.06);
}
.biz-hiring-fields-body::-webkit-scrollbar {
  width: 7px;
}
.biz-hiring-fields-body::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
}
.biz-hiring-fields-body::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.65);
  border-radius: 999px;
}
.biz-hiring-fields-body::-webkit-scrollbar-thumb:hover {
  background: rgba(203, 213, 225, 0.85);
}
.biz-hiring-fields-row {
  display: grid;
  grid-template-columns: 7.2rem 1fr;
  gap: 0.25rem 0.55rem;
  font-size: 0.8rem;
  margin: 0;
  padding: 0.42rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}
.biz-hiring-fields-row:last-child {
  border-bottom: 0;
}
.biz-hiring-fields-k {
  color: #94a3b8;
  font-size: 0.72rem;
  line-height: 1.35;
  padding-top: 0.12rem;
}
.biz-hiring-fields-v {
  color: #f1f5f9;
  white-space: normal;
  word-break: break-word;
  line-height: 1.4;
}
.biz-hiring-tr.is-fields-open,
.biz-hiring-card.is-fields-open {
  box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.28);
}
@media (max-width: 720px) {
  .biz-hiring-fields-row {
    grid-template-columns: 1fr;
    gap: 0.12rem;
    padding: 0.48rem 0;
  }
  .biz-hiring-fields-k { font-size: 0.7rem; padding-top: 0; }
}
.biz-hiring-view-tabs {
  margin: 0.55rem 0 0.75rem;
}
.biz-interest-panel {
  margin: 0.65rem 0 1rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.28);
}
.biz-interest-heading {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  font-weight: 700;
}
.biz-interest-note {
  margin: 0 0 0.35rem;
}
.biz-interest-updated {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
}
.biz-interest-kpis {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.45rem;
  margin-bottom: 0.55rem;
}
.biz-interest-kpi {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.4rem 0.45rem;
  border-radius: 8px;
  background: rgba(30, 41, 59, 0.45);
}
.biz-interest-kpi .k {
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 600;
}
.biz-interest-kpi .v {
  font-size: 1.05rem;
  font-weight: 700;
}
.biz-interest-reasons-total {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  align-items: center;
  margin-bottom: 0.7rem;
  font-size: 0.82rem;
}
.biz-interest-reasons-lab {
  color: var(--muted);
  font-weight: 600;
}
.biz-interest-reason {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.35);
}
.biz-interest-muted {
  color: var(--muted);
  font-size: 0.85em;
}
.biz-interest-subhead {
  font-size: 0.82rem;
  font-weight: 700;
  margin: 0 0 0.4rem;
  color: var(--muted);
}
.biz-interest-bars {
  display: flex;
  align-items: flex-end;
  gap: 0.35rem;
  min-height: 96px;
  padding: 0.35rem 0.2rem 0.15rem;
  margin-bottom: 0.75rem;
}
.biz-interest-bar-col {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  min-width: 0;
}
.biz-interest-bar {
  width: 70%;
  max-width: 28px;
  min-height: 2px;
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, #38bdf8 0%, #2563eb 100%);
}
.biz-interest-bar-val {
  font-size: 0.68rem;
  font-weight: 600;
}
.biz-interest-bar-pending {
  font-size: 0.58rem;
  font-weight: 600;
  color: #fbbf24;
  text-align: center;
  line-height: 1.15;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.biz-interest-bar-pending.is-zero {
  color: var(--muted);
  opacity: 0.65;
}
.biz-interest-pending-cell {
  color: #fbbf24;
  font-weight: 600;
  white-space: nowrap;
}
.biz-interest-kpi-pending .v {
  color: #fbbf24;
}
.biz-interest-bar-lab {
  font-size: 0.65rem;
  color: var(--muted);
}
.biz-interest-table-wrap {
  overflow-x: auto;
}
.biz-interest-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.biz-interest-table th,
.biz-interest-table td {
  padding: 0.35rem 0.4rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  text-align: left;
  vertical-align: top;
}
.biz-interest-table th {
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}
@media (max-width: 720px) {
  .biz-interest-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .biz-interest-bars {
    gap: 0.2rem;
  }
}
.biz-hiring-reply-panel {
  margin-top: 0.35rem;
}
.biz-reply-heading {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 650;
}
.biz-reply-note {
  margin: 0 0 0.75rem;
}
.biz-reply-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.biz-reply-card {
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  background: rgba(15, 23, 42, 0.35);
}
.biz-reply-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}
.biz-reply-name {
  font-weight: 650;
  font-size: 0.98rem;
}
.biz-reply-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.78rem;
  opacity: 0.85;
  margin-bottom: 0.55rem;
}
.biz-reply-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  border: 1px solid rgba(148, 163, 184, 0.35);
}
.biz-reply-badge--draft { color: #93c5fd; border-color: rgba(147, 197, 253, 0.45); }
.biz-reply-badge--edited { color: #fcd34d; border-color: rgba(252, 211, 77, 0.45); }
.biz-reply-badge--approved { color: #86efac; border-color: rgba(134, 239, 172, 0.45); }
.biz-reply-badge--sent { color: #c4b5fd; border-color: rgba(196, 181, 253, 0.45); }
.biz-reply-body-lab {
  display: block;
  font-size: 0.78rem;
  margin-bottom: 0.25rem;
  opacity: 0.9;
}
.biz-reply-body {
  width: 100%;
  min-height: 9rem;
  resize: vertical;
  box-sizing: border-box;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(2, 6, 23, 0.45);
  color: inherit;
  padding: 0.55rem 0.65rem;
  font: inherit;
  line-height: 1.45;
}
.biz-reply-voice-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0.5rem 0;
}
.biz-reply-voice-lang-lab {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
}
.biz-reply-voice-lang {
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(2, 6, 23, 0.5);
  color: inherit;
  padding: 0.2rem 0.35rem;
}
.biz-reply-voice-btn {
  min-height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(30, 41, 59, 0.7);
  color: inherit;
  padding: 0.25rem 0.65rem;
  cursor: pointer;
}
.biz-reply-voice-btn.is-disabled,
.biz-reply-voice-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.biz-reply-voice-unsupported {
  display: block;
  font-size: 0.75rem;
  opacity: 0.75;
  margin: 0.25rem 0 0.5rem;
}
.biz-reply-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.35rem;
}
.biz-reply-btn {
  min-height: 40px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(30, 41, 59, 0.75);
  color: inherit;
  padding: 0.35rem 0.8rem;
  cursor: pointer;
  font-weight: 600;
}
.biz-reply-btn.primary {
  border-color: rgba(52, 211, 153, 0.55);
  background: rgba(6, 78, 59, 0.55);
}
@media (max-width: 600px) {
  .biz-reply-body { min-height: 11rem; font-size: 16px; }
  .biz-reply-btn, .biz-reply-voice-btn { min-height: 44px; }
}
/* Mobile business layout helpers (was accidentally global — broke desktop sticky) */
@media (max-width: 1023px) {
  body[data-page="business"] {
    font-size: 16px;
  }
  body[data-page="business"] .layout,
  body[data-page="business"] .biz-layout {
    overflow-x: hidden;
    /* keep shared --ca-layout-max; do not force full viewport width */
  }
  .biz-inner-tabs,
  .biz-src-subtabs {
    margin-left: -0.15rem;
    margin-right: -0.15rem;
    padding-left: 0.15rem;
    padding-right: 0.15rem;
  }
  .biz-country-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-left: -0.15rem;
    margin-right: -0.15rem;
    padding-left: 0.15rem;
    padding-right: 0.15rem;
    -webkit-mask-image: linear-gradient(to right, #000 88%, transparent 100%);
    mask-image: linear-gradient(to right, #000 88%, transparent 100%);
  }
  .biz-country-tabs::-webkit-scrollbar { display: none; }
  .biz-country-tab {
    min-height: 44px;
  }
  .biz-lead-filters {
    flex-wrap: nowrap;
    gap: 0.35rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to right, #000 88%, transparent 100%);
    mask-image: linear-gradient(to right, #000 88%, transparent 100%);
  }
  .biz-lead-filters::-webkit-scrollbar { display: none; }
  .biz-lead-chip {
    flex: 0 0 auto;
    min-height: 44px;
    min-width: 5.2rem;
    justify-content: space-between;
    white-space: nowrap;
  }
  .biz-status-seg-btn {
    min-height: 44px;
  }
}

/* Narrow phones: keep hub tab scroll; fade edge hints more tabs (do not squash 11 tabs) */
@media (max-width: 420px) {
  nav.top.ca-nav .ca-tab-row {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 0.3rem;
    -webkit-mask-image: linear-gradient(to right, #000 86%, transparent 100%);
    mask-image: linear-gradient(to right, #000 86%, transparent 100%);
  }
  nav.top.ca-nav .ca-tab-box {
    flex: 0 0 auto;
    min-width: 4.2rem;
    padding: 0.32rem 0.4rem;
  }
  nav.top.ca-nav .ca-tab-ko {
    font-size: 0.78rem;
  }
  nav.top.ca-nav .ca-tab-en {
    font-size: 0.58rem;
  }
}

/* PC: narrow left menu (~200px) + single-column main stack */
@media (min-width: 1024px) {
  body[data-page="business"] .biz-shell {
    display: grid;
    grid-template-columns: 12.5rem minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
  }
  body[data-page="business"] .biz-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: sticky;
    top: 1rem; /* viewport margin after top nav scrolls away */
    align-self: flex-start;
    width: 12.5rem;
    max-width: 200px;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0.75rem 0.65rem;
    border: 1px solid var(--card-border);
    border-radius: var(--radius-sm, 12px);
    background: var(--card);
  }
  /* Site nav lives in sidebar (same NAV_ITEMS as mobile); keep business locals in inner tabs. */
  body[data-page="business"] .biz-inner-tabs,
  body[data-page="business"] .biz-src-subtabs {
    display: flex !important;
  }
  body[data-page="business"] .biz-main,
  body[data-page="business"] .business-board,
  body[data-page="business"] .biz-panel,
  body[data-page="business"] .biz-stack {
    min-width: 0;
    max-width: 100%;
  }
  .biz-side-section { display: flex; flex-direction: column; gap: 0.4rem; }
  .biz-side-heading {
    margin: 0 0 0.15rem;
    padding: 0 0.2rem;
  }
  .biz-side-heading .biz-ko { font-size: 0.82rem; color: #cbd5e1; }
  .biz-side-heading .biz-en { font-size: 0.68rem; margin-top: 0; }
  .biz-side-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
  }
  .biz-side-btn,
  .biz-side-subbtn,
  .biz-side-navbtn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.05rem;
    width: 100%;
    min-height: 40px;
    padding: 0.4rem 0.6rem;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(0,0,0,0.18);
    color: #e5e7eb;
    cursor: pointer;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 650;
    text-align: left;
    text-decoration: none;
    box-sizing: border-box;
  }
  .biz-side-btn .biz-ko,
  .biz-side-subbtn .biz-ko { font-size: 0.95rem; font-weight: 650; }
  .biz-side-btn .biz-en,
  .biz-side-subbtn .biz-en { font-size: 0.68rem; margin-top: 0; }
  .biz-side-btn.active,
  .biz-side-subbtn.active,
  .biz-side-navbtn.active {
    border-color: rgba(134, 239, 172, 0.5);
    background: rgba(134, 239, 172, 0.12);
  }
  .biz-side-subbtn {
    border-style: dashed;
    background: transparent;
  }
  .biz-side-subbtn.active {
    border-style: solid;
  }
  .biz-side-navbtn:hover {
    border-color: rgba(147, 197, 253, 0.45);
  }
  .biz-summary-grid,
  .biz-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  .biz-summary-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .biz-mobile-only { display: none !important; }
  .biz-pc-only { display: block !important; }
  .biz-leads-cards { display: none; }
  .biz-leads-table-wrap {
    display: block;
    overflow-x: auto;
    max-width: 100%;
  }
  .biz-leads-section {
    padding: 1rem 1.1rem;
  }
  .biz-income-wrap {
    overflow-x: auto;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
  }
  .biz-income-pivot {
    min-width: max-content;
  }
  .biz-income-pivot .biz-num .income-ko {
    white-space: nowrap;
  }
}
@media (min-width: 1440px) {
  body[data-page="business"] .biz-shell {
    grid-template-columns: 12.5rem minmax(0, 1fr);
  }
}

/* Email Drafts page */
.email-drafts-board { margin-top: 0.5rem; }
.drafts-tabs { margin-bottom: 0.75rem; }
.drafts-layout {
  display: grid;
  grid-template-columns: minmax(12rem, 17rem) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}
.drafts-aside {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 0.5rem;
  background: rgba(0,0,0,0.25);
  max-height: min(70vh, 36rem);
  overflow: auto;
}
.drafts-list { list-style: none; margin: 0; padding: 0; }
.drafts-list-item {
  display: flex;
  flex-direction: column;
  width: 100%;
  text-align: left;
  gap: 0.15rem;
  padding: 0.55rem 0.6rem;
  margin-bottom: 0.25rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.drafts-list-item:hover { background: rgba(255,255,255,0.05); }
.drafts-list-item.active { background: rgba(96,165,250,0.18); }
.drafts-list-title { font-weight: 600; font-size: 0.92rem; }
.drafts-list-sub { font-size: 0.75rem; color: var(--muted, #9ca3af); }
.drafts-main {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  background: rgba(0,0,0,0.22);
  min-height: 12rem;
}
.drafts-field { margin-bottom: 0.75rem; }
.drafts-field-direction { margin-bottom: 0.55rem; }
.drafts-field label {
  display: block;
  font-size: 0.78rem;
  color: var(--muted, #9ca3af);
  margin-bottom: 0.25rem;
}
.drafts-subject, .drafts-body, .drafts-direction {
  width: 100%;
  box-sizing: border-box;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.35);
  color: inherit;
  padding: 0.55rem 0.65rem;
  font: inherit;
}
.drafts-body { resize: vertical; line-height: 1.45; min-height: 8rem; }
.drafts-field-body { margin-bottom: 0.85rem; }
.drafts-to.is-missing { color: #fbbf24; font-weight: 600; }
.drafts-direction-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.drafts-direction-row .drafts-direction { flex: 1 1 12rem; min-width: 0; }
.drafts-voice-btn, .drafts-btn {
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: inherit;
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
  font: inherit;
  min-height: 44px;
}
.drafts-voice-unsupported {
  display: block;
  flex: 1 1 100%;
  font-size: 0.78rem;
  color: #fbbf24;
  margin-top: 0.15rem;
}
.drafts-btn.primary { background: rgba(59,130,246,0.35); border-color: rgba(96,165,250,0.5); }
.drafts-btn:disabled, .drafts-send:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.drafts-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.35rem 0 0.75rem;
  padding: 0.55rem 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.drafts-send {
  font-weight: 650;
  border-color: rgba(251, 191, 36, 0.45);
}
.drafts-history {
  margin: 0 0 0.85rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  background: rgba(0,0,0,0.2);
}
.drafts-history summary { cursor: pointer; color: var(--muted, #9ca3af); min-height: 36px; }
.drafts-history-empty { margin: 0.35rem 0 0; font-size: 0.8rem; color: var(--muted, #9ca3af); }
.drafts-hist-btn {
  background: transparent;
  border: 0;
  color: #93c5fd;
  cursor: pointer;
  padding: 0.2rem 0;
  font: inherit;
  text-align: left;
}
.drafts-smtp-note { margin-top: 1rem; font-size: 0.82rem; }
a.biz-side-subbtn {
  display: block;
  text-decoration: none;
  color: inherit;
}
@media (max-width: 900px) {
  .drafts-layout { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  body[data-page="email-drafts"] .layout {
    padding-bottom: calc(7.5rem + env(safe-area-inset-bottom));
  }
  body[data-page="email-drafts"] .drafts-body {
    min-height: 5rem;
    max-height: min(22vh, 7.25rem);
  }
  body[data-page="email-drafts"] .drafts-field-body {
    margin-bottom: calc(4.75rem + env(safe-area-inset-bottom));
  }
}

/* RaShin client contacts expand (2026-10-17) */
.biz-td-company-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  min-width: 0;
}
.biz-cc-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.15rem;
  padding: 0.22rem 0.55rem;
  border-radius: 6px;
  border: 1px solid rgba(125, 211, 252, 0.45);
  background: rgba(14, 165, 233, 0.12);
  color: #bae6fd;
  font-size: 0.78rem;
  font-weight: 650;
  cursor: pointer;
  line-height: 1.2;
}
.biz-cc-toggle:hover {
  background: rgba(14, 165, 233, 0.22);
  border-color: rgba(125, 211, 252, 0.7);
}
.biz-cc-toggle[aria-expanded="true"] {
  background: rgba(14, 165, 233, 0.28);
}
.biz-cc-toggle-mark { font-size: 0.85rem; }
.biz-cc-panel {
  margin-top: 0.65rem;
  padding: 0.7rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.55);
}
.biz-lead-cc-row td {
  padding: 0 0.6rem 0.75rem;
  border-top: none;
  background: transparent;
}
.biz-lead-cc-row .biz-cc-panel { margin-top: 0; }
.biz-cc-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: #e2e8f0;
  margin-bottom: 0.55rem;
}
.biz-cc-block { margin-bottom: 0.7rem; }
.biz-cc-h {
  font-size: 0.75rem;
  font-weight: 700;
  color: #94a3b8;
  margin-bottom: 0.35rem;
  text-transform: none;
}
.biz-cc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.biz-cc-person, .biz-cc-gen {
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(2, 6, 23, 0.35);
}
.biz-cc-person-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.15rem;
}
.biz-cc-person-name { font-weight: 700; color: #f1f5f9; }
.biz-cc-person.is-dm {
  border-color: rgba(251, 191, 36, 0.45);
  background: rgba(120, 53, 15, 0.18);
}
.biz-cc-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.08rem 0.4rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 650;
  line-height: 1.2;
  border: 1px solid transparent;
  white-space: nowrap;
}
.biz-cc-dm {
  color: #fde68a;
  background: rgba(245, 158, 11, 0.18);
  border-color: rgba(251, 191, 36, 0.45);
}
.biz-cc-shared {
  color: #c4b5fd;
  background: rgba(109, 40, 217, 0.18);
  border-color: rgba(167, 139, 250, 0.4);
}
.biz-cc-type { color: #e2e8f0; background: rgba(51, 65, 85, 0.55); border-color: rgba(148, 163, 184, 0.35); }
.biz-cc-type-personal { color: #bbf7d0; background: rgba(22, 163, 74, 0.18); border-color: rgba(74, 222, 128, 0.4); }
.biz-cc-type-role_shared { color: #bfdbfe; background: rgba(37, 99, 235, 0.18); border-color: rgba(96, 165, 250, 0.4); }
.biz-cc-type-main { color: #a5f3fc; background: rgba(8, 145, 178, 0.18); border-color: rgba(34, 211, 238, 0.4); }
.biz-cc-type-support { color: #fde68a; background: rgba(202, 138, 4, 0.16); border-color: rgba(250, 204, 21, 0.4); }
.biz-cc-type-external_unknown { color: #fecaca; background: rgba(185, 28, 28, 0.16); border-color: rgba(248, 113, 113, 0.4); }
.biz-cc-type-personal_unlinked { color: #fdba74; background: rgba(194, 65, 12, 0.16); border-color: rgba(251, 146, 60, 0.4); }
.biz-cc-k {
  color: #94a3b8;
  font-size: 0.72rem;
  margin-right: 0.25rem;
}
.biz-cc-link {
  color: #7dd3fc;
  word-break: break-all;
  font-size: 0.78rem;
}
.biz-cc-src-url {
  display: block;
  color: #94a3b8;
  word-break: break-all;
  font-size: 0.72rem;
}
.biz-cc-copy {
  display: inline-flex;
  align-items: center;
  margin-left: 0.35rem;
  padding: 0.12rem 0.4rem;
  border-radius: 5px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(51, 65, 85, 0.45);
  color: #e2e8f0;
  font-size: 0.7rem;
  cursor: pointer;
}
.biz-cc-copy:hover { background: rgba(71, 85, 105, 0.65); }
.biz-cc-copy.is-copied {
  border-color: rgba(34, 197, 94, 0.55);
  color: #86efac;
}
.biz-cc-gen-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
}
.biz-cc-draft {
  padding: 0.55rem 0.6rem;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(2, 6, 23, 0.4);
  margin-bottom: 0.45rem;
}
.biz-cc-draft.is-shared {
  border-color: rgba(167, 139, 250, 0.35);
}
.biz-cc-draft-flag { margin-bottom: 0.3rem; }
.biz-cc-draft-body {
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0.4rem 0;
  padding: 0.45rem 0.5rem;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.15);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.78rem;
  color: #e2e8f0;
  max-height: 220px;
  overflow: auto;
}
.biz-cc-draft-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.biz-cc-removed {
  margin-top: 0.55rem;
  color: #94a3b8;
  font-size: 0.78rem;
}
.biz-cc-removed summary {
  cursor: pointer;
  color: #64748b;
  user-select: none;
}
.biz-cc-gen-removed { opacity: 0.75; }
.biz-cc-note {
  margin: 0;
  color: #94a3b8;
  font-size: 0.82rem;
}
.biz-cc-excluded { color: #fdba74; }
.biz-lead-card .biz-cc-toggle { align-self: flex-start; }
.biz-lead-tier-divider { display: block; margin: 10px 0 4px; padding: 4px 8px; border-top: 2px dashed var(--line, #ccc); color: var(--muted, #777); font-size: 12px; }
.biz-lead-tier-divider-row td { padding: 0; }

.biz-list-src { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 8px; font-size: 11px; line-height: 16px; vertical-align: middle; }
.biz-list-src--jobpost { background: #dcfce7; color: #166534; }
.biz-list-src--earlier { background: #e5e7eb; color: #374151; }
.biz-list-src--estimated { background: #fef3c7; color: #92400e; }
.biz-list-src--direct_contact { background: #dbeafe; color: #1e40af; }
.biz-mail-src { display: inline-block; margin-left: 6px; font-size: 11.5px; white-space: nowrap; color: var(--accent); }
.biz-verdict-badge.biz-verdict-unreviewed { opacity: .8; border-style: dashed; }
/* RaShin roadmap v0.2 (business RaShin roadmap tab + roadmap.html) */
.rmv2{min-width:0;max-width:100%;box-sizing:border-box}
.rmv2 .rmv2-meta{color:var(--muted);font-size:12.5px;line-height:1.5;margin:4px 0;overflow-wrap:anywhere}
.rmv2-chips{display:flex;flex-wrap:wrap;gap:6px;margin:8px 0}
.rmv2-chip{padding:3px 10px;border-radius:999px;background:var(--accent-soft);color:var(--accent);border:1px solid var(--accent);font-size:12.5px;white-space:normal;overflow-wrap:anywhere}
.rmv2-toc{display:flex;flex-wrap:wrap;gap:4px 14px;list-style:none;margin:8px 0 4px;padding:0}
.rmv2-toc li{margin:0;font-size:12.5px}
.rmv2-toc a{color:var(--accent);text-decoration:none}
.rmv2-sec{border-top:1px solid var(--card-border);padding:12px 0 4px;min-width:0}
.rmv2 .rmv2-h4{font-size:15px;margin:0 0 8px;overflow-wrap:anywhere}
.rmv2 .rmv2-h5{font-size:13.5px;margin:10px 0 4px;color:var(--text);overflow-wrap:anywhere}
.rmv2 .rmv2-list{margin:0 0 6px 20px;padding:0}
.rmv2 .rmv2-list li{font-size:13px;line-height:1.55;margin:0 0 4px;overflow-wrap:anywhere}
.rmv2 .rmv2-p{font-size:13px;line-height:1.55;margin:4px 0;overflow-wrap:anywhere}
.rmv2 .rmv2-note{font-size:13px;line-height:1.55;margin:8px 0;border-left:3px solid var(--yellow);padding:6px 10px;background:rgba(255,176,32,.08);overflow-wrap:anywhere}
.rmv2-table{width:100%;border-collapse:collapse;table-layout:auto;margin:6px 0 8px;font-size:12.5px}
.rmv2-table th,.rmv2-table td{border:1px solid var(--card-border);padding:6px 8px;text-align:left;vertical-align:top;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;line-height:1.5}
.rmv2-table th{background:var(--card-2);color:var(--muted);font-weight:600}
@media (max-width:760px){
.rmv2-table thead{display:none}
.rmv2-table,.rmv2-table tbody,.rmv2-table tr,.rmv2-table td{display:block;width:100%;box-sizing:border-box}
.rmv2-table tr{border:1px solid var(--card-border);border-radius:8px;margin:0 0 8px;padding:4px 0}
.rmv2-table td{border:0;padding:4px 10px}
.rmv2-table td::before{content:attr(data-h);display:block;color:var(--muted);font-size:11.5px;font-weight:600}
}
/* 10/23 RaShin ₹10L widen: amount band chips, min/max, pay terms, USD·INR */
.biz-amt-bar { display:flex; flex-wrap:wrap; align-items:center; gap:6px 10px; margin:6px 0 10px; }
.biz-amt-label { font-weight:600; font-size:.85rem; }
.biz-amt-bar .biz-band-chips { margin:0; }
.biz-amt-in { font-size:.82rem; display:inline-flex; align-items:center; gap:4px; }
.biz-amt-in input { width:5.2em; padding:3px 6px; font:inherit; }
.biz-amt-reset { font-size:.8rem; padding:3px 8px; }
.biz-td-usdinr, .biz-lead-usdinr { font-size:.78rem; opacity:.85; white-space:nowrap; }
.biz-td-payterms, .biz-lead-payterms { font-size:.78rem; line-height:1.3; overflow-wrap:anywhere; }
.biz-payterms-k { opacity:.7; }

/* 10/23b: no clipping at 1024/1280 - pay terms + headers wrap instead of being cut */
.biz-leads-table td.biz-td-payterms { white-space:normal; overflow:visible; height:auto; max-height:none; vertical-align:top; word-break:normal; }
.biz-leads-table td.biz-td-payterms .data-value, .biz-leads-table td.biz-td-payterms .biz-payterms-line { white-space:normal; overflow-wrap:anywhere; }
.biz-leads-table thead th, .biz-leads-table thead th.biz-sort-th, .biz-leads-table thead th.biz-th-evidence,
.biz-leads-table thead th .biz-ko, .biz-leads-table thead th .biz-en { white-space:normal; overflow:visible; overflow-wrap:anywhere; word-break:keep-all; text-overflow:clip; vertical-align:bottom; }

/* RaShin roadmap v0.2 visual blocks */
.rmv2-viz{display:flex;flex-direction:column;gap:18px;margin:10px 0 14px;min-width:0}
.rmv2-viz-block{min-width:0;max-width:100%;box-sizing:border-box}
.rmv2 .rmv2-viz-h{font-size:14px;margin:0 0 8px;color:var(--text)}
.rmv2-mm{position:relative;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:1fr;gap:22px 34px;padding:6px 0}
.rmv2-mm-lines{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:0}
.rmv2-mm-lines line{stroke:var(--accent);stroke-opacity:.45;stroke-width:1.5}
.rmv2-mm-center,.rmv2-mm-node{position:relative;z-index:1;box-sizing:border-box;min-width:0}
.rmv2-mm-center{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;align-self:center;justify-self:center;width:min(220px,100%);padding:18px 12px;border-radius:999px;background:var(--accent-soft);border:2px solid var(--accent)}
.rmv2-mm-center b{font-size:20px;color:var(--text)}
.rmv2-mm-center span{font-size:12px;color:var(--muted)}
.rmv2-mm-node{background:var(--card-2);border:1px solid var(--card-border);border-top:3px solid var(--accent);border-radius:12px;padding:9px 11px}
.rmv2-mm-title{font-weight:700;font-size:13.5px;margin-bottom:4px;overflow-wrap:anywhere}
.rmv2 .rmv2-mm-kw{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:4px}
.rmv2 .rmv2-mm-kw li{margin:0;font-size:12px;line-height:1.35;padding:2px 8px;border-radius:999px;background:var(--card);border:1px solid var(--card-border);overflow-wrap:anywhere}
.rmv2-org-row{display:flex;align-items:stretch;gap:10px}
.rmv2-org-stage{flex:1 1 0;min-width:0;display:flex;flex-direction:column;align-items:center;background:var(--card-2);border:1px solid var(--card-border);border-radius:12px;padding:10px}
.rmv2-org-cap{font-size:12px;font-weight:700;color:var(--accent);text-align:center;margin-bottom:8px;overflow-wrap:anywhere}
.rmv2-org-step{align-self:center;color:var(--muted);font-size:18px}
.rmv2-org-node{box-sizing:border-box;max-width:100%;text-align:center;border-radius:10px;padding:6px 10px;border:1px solid var(--card-border);background:var(--card)}
.rmv2-org-node b{display:block;font-size:13px;overflow-wrap:anywhere}
.rmv2-org-node span{display:block;font-size:11.5px;color:var(--muted);overflow-wrap:anywhere}
.rmv2-org-node.lead{border-color:var(--accent);background:var(--accent-soft)}
.rmv2-org-node.ca{border-color:var(--yellow)}
.rmv2-org-node.team{border-color:var(--green)}
.rmv2-org-v{width:2px;height:14px;background:var(--card-border);flex:0 0 auto}
.rmv2-org-pair{display:flex;align-items:center;gap:6px;max-width:100%;min-width:0}
.rmv2-org-pair .rmv2-org-node{flex:1 1 0;min-width:0}
.rmv2-org-cover{display:flex;flex-direction:column;align-items:center;color:var(--green);font-size:10.5px;text-align:center;flex:0 0 auto;max-width:64px;overflow-wrap:anywhere}
.rmv2-org-chips{display:flex;flex-wrap:wrap;justify-content:center;gap:4px;max-width:100%}
.rmv2-org-chip{font-size:11px;padding:2px 7px;border-radius:999px;border:1px solid var(--green);color:var(--text)}
.rmv2-org-chip.ca{border-color:var(--yellow)}
.rmv2-org-out{margin-top:10px;border:1.5px dashed var(--muted);border-radius:10px;padding:8px 12px;font-size:12.5px;color:var(--muted);overflow-wrap:anywhere}
.rmv2-steps{list-style:none;margin:0;padding:0;display:flex;gap:14px}
.rmv2 .rmv2-step{position:relative;flex:1 1 0;min-width:0;margin:0;background:var(--card-2);border:1px solid var(--card-border);border-left:4px solid var(--accent);border-radius:10px;padding:9px 10px;display:flex;flex-direction:column;gap:3px}
.rmv2-step:not(:first-child)::before{content:"";position:absolute;left:-15px;top:50%;transform:translateY(-50%);border:6px solid transparent;border-left:8px solid var(--accent)}
.rmv2-step-n{font-size:11px;color:var(--accent);font-weight:700}
.rmv2-step b{font-size:13px;overflow-wrap:anywhere}
.rmv2-step-entry{font-size:12px;color:var(--muted);line-height:1.4;overflow-wrap:anywhere}
.rmv2-crit{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.rmv2-crit-card{display:flex;flex-direction:column;gap:4px;background:var(--card-2);border:1px solid var(--card-border);border-radius:12px;padding:10px 12px;min-width:0}
.rmv2-crit-card .rmv2-ico{color:var(--accent)}
.rmv2-crit-card b{font-size:13px;overflow-wrap:anywhere}
.rmv2-crit-card span{font-size:12px;color:var(--muted);line-height:1.4;overflow-wrap:anywhere}
.rmv2-badge{display:inline-block;padding:2px 9px;border-radius:999px;font-size:12px;font-weight:600;border:1px solid currentColor;white-space:normal;overflow-wrap:anywhere}
.rmv2-badge--red{color:var(--red);background:rgba(255,90,95,.12)}
.rmv2-badge--yellow{color:var(--yellow);background:rgba(255,176,32,.12)}
.rmv2-badge--orange{color:#ff8a3d;background:rgba(255,138,61,.12)}
.rmv2-badge--blue{color:var(--accent);background:var(--accent-soft)}
.rmv2-badge--purple{color:#b18cff;background:rgba(177,140,255,.12)}
.rmv2-badge--green{color:var(--green);background:rgba(0,200,83,.12)}
.rmv2-details{margin-top:6px;border-top:1px solid var(--card-border);padding-top:8px}
.rmv2-details>summary{cursor:pointer;font-weight:700;font-size:13.5px;color:var(--accent);padding:4px 0}
@media (max-width:1100px){
.rmv2-crit{grid-template-columns:repeat(2,minmax(0,1fr))}
.rmv2-steps{flex-wrap:wrap}
.rmv2 .rmv2-step{flex:1 1 30%}
.rmv2-step:not(:first-child)::before{display:none}
}
@media (max-width:760px){
.rmv2-mm{grid-template-columns:minmax(0,1fr);grid-auto-rows:auto;gap:8px}
.rmv2-mm-lines{display:none}
.rmv2-mm-center,.rmv2-mm-node{grid-row:auto !important;grid-column:auto !important}
.rmv2-mm-center{width:100%;border-radius:12px;padding:10px}
.rmv2-org-row{flex-direction:column}
.rmv2-org-step{transform:rotate(90deg)}
.rmv2-steps{flex-direction:column}
.rmv2 .rmv2-step{flex:1 1 auto}
.rmv2-crit{grid-template-columns:minmax(0,1fr)}
}

/* 7904 client-find: Approved chip stands out; Excluded chip is a muted separate view. */
.biz-lead-chip.biz-lead-chip-approved {
  border-color: #2e9d5b;
  color: #1f7a45;
  font-weight: 600;
}
.biz-lead-chip.biz-lead-chip-approved.active {
  background: #2e9d5b;
  border-color: #2e9d5b;
  color: #fff;
}
.biz-lead-chip.biz-lead-chip-excluded {
  border-style: dashed;
  opacity: 0.8;
}
.biz-lead-chip.biz-lead-chip-excluded.active {
  background: #6b6f76;
  border-color: #6b6f76;
  color: #fff;
  opacity: 1;
}

/* 7904 client-find: older auto-found rows outside the new criteria, collapsed at the end (not deleted). */
.biz-lead-older {
  margin-top: 14px;
  border-top: 1px dashed rgba(148, 163, 184, 0.45);
  padding-top: 10px;
}
.biz-lead-older-summary {
  cursor: pointer;
  font-weight: 600;
  opacity: 0.85;
  padding: 6px 0;
  overflow-wrap: anywhere;
}
.biz-lead-older[open] .biz-lead-older-summary {
  margin-bottom: 8px;
}

/* 10/20 7904 chip/tab rows: wrap to the next line instead of clipping / hidden horizontal scroll (all widths). */
.biz-inner-tabs,
.biz-src-subtabs,
.biz-country-tabs,
.biz-hiring-role-tabs,
.biz-lead-filters,
.apps-hub-filters {
  flex-wrap: wrap !important;
  overflow-x: visible !important;
  overflow-y: visible !important;
  -webkit-mask-image: none !important;
  mask-image: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: 100%;
  row-gap: 0.4rem;
}
.biz-inner-tabs > *,
.biz-src-subtabs > *,
.biz-country-tabs > *,
.biz-hiring-role-tabs > *,
.biz-lead-filters > *,
.apps-hub-filters > * {
  flex-shrink: 0;
  max-width: 100%;
}
.biz-lead-filter-sum {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  overflow-wrap: anywhere;
}
/* 10/20 NEW only chip: distinct orange accent (normal + active). */
.biz-lead-chip.biz-lead-chip-new {
  border-color: #f97316 !important;
  color: #fb923c !important;
  background: rgba(249, 115, 22, 0.1) !important;
  font-weight: 700;
}
.biz-lead-chip.biz-lead-chip-new .biz-lead-chip-n {
  background: rgba(249, 115, 22, 0.22);
  color: #fdba74;
}
.biz-lead-chip.biz-lead-chip-new.active {
  background: #ea580c !important;
  border-color: #ea580c !important;
  color: #fff !important;
}
.biz-lead-chip.biz-lead-chip-new.active .biz-lead-chip-n {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}
/* 10/20 mobile: tables scroll inside their own wrapper; the page itself never scrolls sideways. */
body[data-page="business"] main,
body[data-page="business"] .biz-card {
  max-width: 100%;
  min-width: 0;
}
.biz-leads-table-wrap,
.biz-coll-table-wrap,
.biz-interest-table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

/* 10/20 phone bottom nav: no off-screen tabs. Wrap to at most 2 rows (4 per row), smaller gap/font;
   .layout bottom padding follows the measured nav height (--ca-nav-h, set in app.js). */
@media (max-width: 1023px) {
  .layout,
  body.has-lang-toggle .layout,
  body.lang-toggle-mobile .layout,
  body[data-page="email-drafts"] .layout {
    padding-bottom: calc(var(--ca-nav-h, 5.8rem) + 0.75rem + env(safe-area-inset-bottom)) !important;
  }
}
@media (max-width: 480px) {
  nav.top.ca-nav .ca-tab-row {
    flex-wrap: wrap !important;
    overflow: visible !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
    gap: 0.25rem !important;
    row-gap: 0.25rem !important;
    justify-content: stretch;
  }
  nav.top.ca-nav .ca-tab-row > .ca-tab-box {
    flex: 1 1 calc(25% - 0.25rem) !important;
    min-width: 0 !important;
    max-width: calc(25% - 0.19rem);
    padding: 0.3rem 0.15rem !important;
    font-size: 0.74rem !important;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
  }
}

/* 10/20 decorative icons (aria-hidden spans) on tabs/chips/menus. */
.ca-ico {
  display: inline-block;
  margin-right: 0.3em;
  font-style: normal;
  line-height: 1;
  vertical-align: -0.05em;
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
}
@media (max-width: 480px) {
  /* bottom nav: icon above the short label so 4 tabs per row still fit (max 2 rows kept) */
  nav.top.ca-nav .ca-tab-row > .ca-tab-box {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.1rem;
  }
  nav.top.ca-nav .ca-tab-row > .ca-tab-box .ca-ico {
    margin-right: 0;
    font-size: 0.95rem;
  }
  nav.top.ca-nav .ca-tab-row > .ca-tab-box .ca-tab-lbl {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* 10/20 long chip labels (e.g. India (Switzerland (UAE branch too) parent)) wrap inside the chip instead of spilling past the card. */
.biz-country-tabs > .biz-country-tab,
.biz-lead-filters > .biz-lead-chip,
.biz-hiring-role-tabs > *,
.biz-src-subtabs > *,
.biz-inner-tabs > * {
  white-space: normal !important;
  min-width: 0;
  height: auto;
}
.biz-country-tab-label,
.biz-lead-chip-label {
  white-space: normal !important;
  overflow-wrap: anywhere;
  text-align: left;
}
/* 10/20 inline SVG country flags */
.ca-flag {
  display: inline-flex;
  align-items: center;
  vertical-align: -0.1em;
}
.ca-flag svg {
  display: block;
  width: 18px;
  height: 12px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
}
/* 10/20 inline icons: icon + label side by side on ONE line (top tabs, business tabs, sub tabs, left menu, chips, bottom nav); shorter buttons. */
.ca-tab-box,
nav.top.ca-nav a.ca-tab-box,
button.ca-tab-box.biz-inner-tab,
button.ca-tab-box.biz-src-subtab,
a.ca-tab-box.biz-src-subtab {
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center;
  gap: 0.35rem;
  min-height: 36px !important;
  padding-top: 0.3rem !important;
  padding-bottom: 0.3rem !important;
}
.biz-side-btn,
.biz-side-subbtn,
.biz-side-navbtn {
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start;
  gap: 0.4rem !important;
  min-height: 34px !important;
  padding-top: 0.3rem !important;
  padding-bottom: 0.3rem !important;
}
.biz-country-tab,
.biz-lead-chip {
  min-height: 36px !important;
}
.biz-country-tab-label,
.biz-lead-chip-label {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.ca-tab-box > .ca-ico,
.biz-side-btn > .ca-ico,
.biz-side-subbtn > .ca-ico,
.biz-side-navbtn > .ca-ico,
.biz-country-tab-label > .ca-ico,
.biz-lead-chip-label > .ca-ico {
  flex: 0 0 auto;
  margin-right: 0;
}
@media (max-width: 480px) {
  /* bottom nav: inline icon + short label, still 4 per row / max 2 rows */
  nav.top.ca-nav .ca-tab-row > .ca-tab-box {
    flex-direction: row !important;
    gap: 0.2rem;
    min-height: 36px !important;
    padding: 0.25rem 0.15rem !important;
  }
  nav.top.ca-nav .ca-tab-row > .ca-tab-box .ca-ico {
    font-size: 0.85rem;
  }
  nav.top.ca-nav .ca-tab-row > .ca-tab-box .ca-tab-lbl {
    min-width: 0;
    font-size: 0.7rem;
  }
}
/* 10/21 client-find: Checked / On hold status + per-company memo */
.biz-status-check.is-on {
  background: rgba(59, 130, 246, 0.32);
  color: #f8fafc;
}
.biz-status-hold.is-on {
  background: rgba(234, 179, 8, 0.32);
  color: #f8fafc;
}
.biz-lead-chip.biz-lead-chip-checked { border-color: #3b82f6; }
.biz-lead-chip.biz-lead-chip-onhold { border-color: #ca8a04; }
.biz-lead-memo {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 32px;
  margin-top: 0.35rem;
  padding: 0.25rem 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: #e5e7eb;
  font: inherit;
  font-size: 0.85rem;
}
.biz-lead-memo.is-saved { border-color: #2e9d5b; }
/* 10/21 table: 4 status buttons in a 2x2 grid so EN labels (Excluded / On hold) are never cut */
.biz-leads-table .biz-status-seg {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  height: auto;
}
.biz-leads-table .biz-status-seg-btn {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.biz-leads-table .biz-status-seg-btn:nth-child(2n) { border-right: 0; }
.biz-leads-table .biz-status-seg-btn:nth-child(n + 3) { border-bottom: 0; }
.biz-leads-table .biz-td-status-inner { height: auto; }
/* 10/21 long country tab (India (Switzerland ...)): flag/icon stays on the first line when the label wraps */
.biz-country-tab,
.biz-country-tab-label {
  align-items: flex-start;
}
/* 10/21b Web column: long domains wrap (whole name visible) instead of being cut */
.biz-leads-table .biz-td-web-inner {
  height: auto;
  line-height: 1.25;
  overflow: visible;
}
.biz-leads-table .biz-web-domain {
  white-space: normal;
  overflow-wrap: anywhere;
  overflow: visible;
  text-overflow: clip;
  height: auto;
  line-height: 1.25;
}
/* 10/21c T Firm invoice: Shama share line (estimate) under the amount */
.ux-item-share {
  margin-top: 0.25rem;
  font-size: 0.85rem;
  color: #fbbf24;
  overflow-wrap: anywhere;
}
/* 10/21d hub money card: share basis note (full total stays visible) */
.ca-hub-share {
  margin: 0.15rem 0 0.3rem;
  font-size: 0.85rem;
  color: #fbbf24;
  overflow-wrap: anywhere;
}
.ca-hub-recv { margin: 10px 0 6px; padding: 8px 12px; border-radius: 10px; background: rgba(16,185,129,.07); }
.ca-hub-recv-title { margin: 0 0 4px; font-size: .8rem; font-weight: 600; opacity: .8; }
.ca-hub-recv-list { list-style: none; margin: 0; padding: 0; }
.ca-hub-recv-row { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; font-size: .9rem; border-bottom: 1px dashed rgba(0,0,0,.08); }
.ca-hub-recv-row small { opacity: .7; }
.ca-hub-recv-row.is-total { border-bottom: 0; border-top: 1px solid rgba(0,0,0,.2); margin-top: 2px; font-weight: 700; }

/* RaShin hiring: direct-email applicant tag */
.biz-hiring-email-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 8px;
  font-size: 11px;
  line-height: 16px;
  white-space: nowrap;
  border: 1px solid rgba(120, 170, 255, 0.45);
  color: #9cc3ff;
  vertical-align: middle;
}

/* RaShin hiring: original email button + 6-check */
.biz-hiring-email-box { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 4px; }
.biz-hiring-email-btn { font-size: 12px; padding: 2px 8px; }
.biz-hiring-chk-sum { font-size: 11px; opacity: 0.85; }
.biz-hiring-chks { display: flex; flex-wrap: wrap; gap: 3px; width: 100%; }
.biz-hiring-chk { font-size: 10.5px; line-height: 15px; padding: 0 5px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.18); white-space: nowrap; }
.biz-hiring-chk.is-yes { color: #8fe3a8; border-color: rgba(143,227,168,0.45); }
.biz-hiring-chk.is-no { color: #ff9c9c; border-color: rgba(255,156,156,0.45); }
.biz-hiring-email-none { font-size: 11px; opacity: 0.7; }
.biz-hiring-email-modal { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,0.6); display: flex; align-items: center; justify-content: center; padding: 12px; }
.biz-hiring-email-card { background: #151a22; color: #e8ecf2; border: 1px solid rgba(255,255,255,0.15); border-radius: 10px; max-width: 760px; width: 100%; max-height: 88vh; overflow: auto; padding: 14px; font-size: 13px; }
.biz-hiring-email-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.biz-hiring-email-msg > div { margin: 2px 0; overflow-wrap: anywhere; }
.biz-hiring-email-body { white-space: pre-wrap; overflow-wrap: anywhere; font-family: inherit; background: rgba(255,255,255,0.04); padding: 10px; border-radius: 6px; margin-top: 8px; }

/* 10/23 Client Search compact rows + difficulty tiers (L/M/H/<L) */
.biz-tier-badge { display: inline-block; min-width: 1.9rem; padding: 0.05rem 0.4rem; border-radius: 999px; font-size: 0.74rem; font-weight: 700; text-align: center; line-height: 1.35; border: 1px solid transparent; white-space: nowrap; }
.biz-tier-h { background: rgba(34,197,94,0.18); color: #4ade80; border-color: rgba(34,197,94,0.45); }
.biz-tier-m { background: rgba(59,130,246,0.18); color: #93c5fd; border-color: rgba(59,130,246,0.45); }
.biz-tier-l { background: rgba(234,179,8,0.16); color: #fde047; border-color: rgba(234,179,8,0.4); }
.biz-tier-lt { background: rgba(148,163,184,0.14); color: #cbd5e1; border-color: rgba(148,163,184,0.35); }
.biz-tier-none { color: var(--muted, #9ca3af); }
.biz-camt { white-space: nowrap; font-variant-numeric: tabular-nums; }
.biz-camt b { font-weight: 600; }
.biz-camt-usd { font-size: 0.72rem; color: var(--muted, #9ca3af); margin-left: 0.2rem; }
.biz-leads-table tr.biz-lead-main-row.biz-compact > td { height: 44px; padding-top: 0.2rem !important; padding-bottom: 0.2rem !important; vertical-align: middle; white-space: nowrap; overflow: hidden; }
.biz-leads-table tr.biz-compact .biz-td-company-wrap { display: flex; align-items: center; gap: 0.35rem; min-width: 0; flex-wrap: nowrap; }
.biz-leads-table tr.biz-compact .biz-td-company .biz-td-company-text { display: block; flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.biz-leads-table td.biz-td-company { white-space: nowrap !important; }
.biz-compact .biz-new-badge { font-size: 0.62rem; padding: 0 0.28rem; line-height: 1.3; flex: none; }
.biz-leads-table tr.biz-compact .biz-td-status { overflow: visible; }
.biz-leads-table tr.biz-compact .biz-td-status { display: table-cell; }
.biz-leads-table tr.biz-compact .biz-td-status-inner { display: inline-flex; vertical-align: middle; }
.biz-compact .biz-status-seg { display: inline-flex; flex-wrap: nowrap; gap: 2px; }
.biz-compact .biz-status-seg-btn { font-size: 0.7rem !important; padding: 0.12rem 0.4rem !important; min-height: 0 !important; height: 24px; line-height: 1 !important; white-space: nowrap; }
.biz-memo-wrap { display: inline-flex; align-items: center; gap: 0.25rem; margin-left: 0.3rem; vertical-align: middle; position: relative; }
.biz-memo-btn { border: 1px solid var(--card-border, #374151); background: transparent; color: var(--muted, #9ca3af); border-radius: 6px; width: 24px; height: 24px; padding: 0; font-size: 0.8rem; cursor: pointer; line-height: 1; }
.biz-memo-wrap.has-note .biz-memo-btn { color: #fbbf24; border-color: rgba(251,191,36,0.5); }
.biz-compact .biz-memo-wrap .biz-lead-memo { display: none; }
.biz-compact .biz-memo-wrap.is-open .biz-lead-memo { display: inline-block; width: 11rem; max-width: 60vw; height: 24px; font-size: 0.75rem; }
.biz-leads-table tr.biz-compact .biz-memo-wrap.is-open { position: absolute; right: 0; z-index: 5; background: var(--card-bg, #111827); }
.biz-leads-table tr.biz-compact .biz-memo-wrap.is-open { position: static; }
.biz-detail-toggle { border: 1px solid var(--card-border, #374151); background: transparent; color: inherit; border-radius: 6px; font-size: 0.72rem; padding: 0.1rem 0.45rem; height: 24px; cursor: pointer; white-space: nowrap; }
.biz-lead-detail { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; padding: 0.4rem 0.2rem; font-size: 0.8rem; }
.biz-lead-detail-item { display: flex; gap: 0.4rem; align-items: flex-start; min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.biz-lead-detail-k { color: var(--muted, #9ca3af); font-size: 0.72rem; white-space: nowrap; }
.biz-leads-table tr.biz-lead-detail-row > td { white-space: normal; padding: 0.3rem 0.6rem; }
/* compact card (phone / narrow) */
.biz-lead-card.biz-compact { padding: 0.45rem 0.6rem; gap: 0.25rem; min-width: 0; max-width: 100%; box-sizing: border-box; }
.biz-lead-card.biz-compact .biz-lead-card-top { display: flex; align-items: center; gap: 0.35rem; min-width: 0; }
.biz-lead-card.biz-compact .biz-cname { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.biz-lead-card.biz-compact .biz-lead-card-mid { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; min-width: 0; }
.biz-lead-card.biz-compact .biz-ccountry { color: var(--muted, #9ca3af); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 6rem; }
.biz-lead-card.biz-compact .biz-detail-toggle { margin-left: auto; }
.biz-lead-card.biz-compact .biz-lead-card-status-row { display: flex; align-items: center; flex-wrap: wrap; gap: 0.25rem; }
/* 10/23 compact fix: name ellipsis, status cell visible */
.biz-leads-table tr.biz-compact .biz-td-company-wrap { flex-direction: row !important; width: 100%; justify-content: flex-start; }
.biz-leads-table tr.biz-compact .biz-td-company-wrap > .biz-td-company-text { flex: 1 1 0 !important; width: 0; min-width: 0 !important; max-width: none; margin: 0 !important; transform: none; }
.biz-leads-table tr.biz-lead-main-row.biz-compact > td.biz-td-status { overflow: visible; }
.biz-leads-table tr.biz-lead-main-row.biz-compact > td { line-height: 1.25; }
/* 10/23 detail cell: memo + Show as separate buttons */
.biz-leads-table td.biz-td-detail { overflow: visible !important; white-space: nowrap; min-width: 6.5rem; }
.biz-detail-actions { display: inline-flex; align-items: center; gap: 6px; flex-wrap: nowrap; position: relative; }
.biz-detail-actions .biz-memo-wrap { margin-left: 0; position: static; }
.biz-detail-actions .biz-memo-btn, .biz-detail-actions .biz-detail-toggle { height: 24px; box-sizing: border-box; flex: none; display: inline-flex; align-items: center; justify-content: center; }
.biz-leads-table tr.biz-compact .biz-detail-actions .biz-memo-wrap.is-open .biz-lead-memo { position: absolute; right: 0; top: calc(100% + 4px); z-index: 6; width: 14rem; max-width: 70vw; }

/* 20261024 applist: compact source cell + hold */
.biz-hiring-table .biz-td-evidence { text-align: left; }
.biz-hiring-table .biz-td-evidence .biz-hiring-contact--hidden,
.biz-hiring-table .biz-td-evidence .biz-hiring-email-none { display: inline-block; font-size: 11px; margin-right: 6px; }
.biz-hiring-email-box { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 2px; }
.biz-hiring-email-btn { font-size: 11px; padding: 1px 8px; min-height: 0; line-height: 18px; }
.biz-hiring-chk-details { display: inline-block; }
.biz-hiring-chk-details > summary { cursor: pointer; list-style: none; font-size: 11px; padding: 0 6px; border: 1px solid rgba(255,255,255,0.2); border-radius: 6px; }
.biz-hiring-chk-details > summary::-webkit-details-marker { display: none; }
.biz-hiring-chk-details[open] .biz-hiring-chks { margin-top: 4px; }
.biz-hiring-table .biz-status-seg { display: flex; flex-wrap: nowrap; }
.biz-hiring-table .biz-status-seg-btn { flex: 1 1 0; min-width: 0; padding-left: 4px; padding-right: 4px; white-space: nowrap; }

/* Separate RaShin managed-client registry. */
.managed-heading,.managed-client-title,.managed-form-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.managed-heading h3,.managed-client-title h4{flex:1;margin:0;min-width:160px}.managed-clients button{padding:7px 11px;border:1px solid #475569;border-radius:7px;background:#172334;color:#e2e8f0;cursor:pointer}.managed-clients button:disabled{opacity:.5;cursor:default}.managed-note,.managed-counts,.managed-form-note{font-size:.8rem;line-height:1.7;color:#a9b7c9}.managed-filters{display:flex;align-items:end;flex-wrap:wrap;gap:12px;margin:14px 0}.managed-filters label,.managed-form-grid label{display:flex;flex-direction:column;gap:5px;font-size:.8rem;color:#c2cedd;min-width:0}.managed-filters label:first-child{flex:1;min-width:180px}.managed-clients input,.managed-clients select,.managed-clients textarea{box-sizing:border-box;width:100%;min-height:36px;border:1px solid #475569;border-radius:7px;background:#0c1623;color:#edf2f8;padding:7px 9px;font:inherit;color-scheme:dark}.managed-clients textarea{resize:vertical}.managed-client-form{border:1px solid #526887;border-radius:10px;padding:16px;margin:16px 0;background:#111d2b}.managed-client-form h4{margin:0 0 12px}.managed-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.managed-full{grid-column:1/-1}.managed-client-list{display:grid;gap:12px;margin-top:15px}.managed-client-row{padding:14px;border:1px solid #334155;border-radius:9px;min-width:0}.managed-client-row dl{margin:10px 0 0}.managed-client-row dl>div{display:grid;grid-template-columns:110px minmax(0,1fr);gap:10px;padding:4px 0;font-size:.8rem}.managed-client-row dt{color:#94a3b8}.managed-client-row dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.managed-status{border:1px solid #526278;border-radius:20px;padding:3px 9px;font-size:.75rem;white-space:nowrap}.managed-status-active{color:#6ee7b7;border-color:#32846c}.managed-status-paused{color:#fcd34d;border-color:#8e7540}.managed-status-ended{color:#a7b1bf}.managed-form-error{color:#fca5a5;font-size:.8rem;line-height:1.8}.managed-notice{color:#6ee7b7;font-size:.8rem}.managed-empty{color:#9faec0;line-height:1.8;padding:14px 0}.managed-conflict{border:1px solid #9a7540;padding:12px;margin:12px 0}.managed-latest pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#0c1623;padding:10px;font:inherit}.managed-clients button:focus-visible,.managed-clients input:focus-visible,.managed-clients select:focus-visible,.managed-clients textarea:focus-visible{outline:2px solid #60a5fa;outline-offset:2px}
@media(max-width:1023px){.biz-stack[data-biz-src-view="clients"]>.biz-stack-sec:not([data-sec="clients"]){display:none!important}.biz-stack:not([data-biz-src-view="clients"])>.biz-stack-sec[data-sec="clients"]{display:none!important}}
@media(max-width:600px){.managed-form-grid{grid-template-columns:1fr}.managed-full{grid-column:auto}.managed-client-form{padding:12px}.managed-client-row dl>div{grid-template-columns:1fr;gap:2px}.managed-heading h3{flex-basis:100%}.managed-client-title h4{min-width:100px;overflow-wrap:anywhere}}

/* Independent RaShin policy center; existing views retain their sections. */
@media(max-width:1023px){.biz-stack[data-biz-src-view="team-policy"]>.biz-stack-sec:not([data-sec="team-policy"]){display:none!important}.biz-stack:not([data-biz-src-view="team-policy"])>.biz-stack-sec[data-sec="team-policy"]{display:none!important}}
