:root {
  --magnetic: #58102f;
  --magnetic-deep: #3d0a20;
  --magnetic-soft: #7a2a4a;
  --magnetic-mist: rgba(88, 16, 47, 0.08);
  --bg: #f6f6f6;
  --bg-deep: #e5e4e3;
  --ink: #212934;
  --muted: #5a6570;
  --line: rgba(88, 16, 47, 0.12);
  --panel: rgba(255, 255, 255, 0.9);
  --panel-solid: #fff;
  --accent: var(--magnetic);
  --bad: #b42318;
  --ok: #1f6b4a;
  --warn: #9a6700;
  --glow-a: rgba(88, 16, 47, 0.2);
  --glow-b: rgba(160, 80, 55, 0.1);
  --shadow: 0 4px 12px rgba(33, 41, 52, 0.07);
  --shadow-sm: 0 2px 8px rgba(33, 41, 52, 0.06);
  --radius: 8px;
  --radius-sm: 8px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --display: "Montserrat", system-ui, sans-serif;
  --sans: "Montserrat", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}
body.shell { overflow-x: hidden; }

/* -- Atmosphere -- */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 70% 50% at 0% -10%, var(--glow-a), transparent 55%),
    radial-gradient(ellipse 55% 40% at 100% 5%, var(--glow-b), transparent 50%),
    radial-gradient(ellipse 40% 30% at 50% 100%, rgba(88, 16, 47, 0.06), transparent 60%),
    linear-gradient(165deg, #faf7f8 0%, var(--bg) 40%, var(--bg-deep) 100%);
}
.atmosphere::before {
  content: "";
  position: absolute;
  width: 42vw;
  height: 42vw;
  max-width: 520px;
  max-height: 520px;
  left: -8%;
  top: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(88, 16, 47, 0.14), transparent 68%);
  filter: blur(8px);
  animation: floatA 16s ease-in-out infinite alternate;
  transform: translate(var(--mx, 0), var(--my, 0));
  pointer-events: none;
}
.atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(88, 16, 47, 0.04) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 20%, transparent 75%);
  animation: drift 32s linear infinite;
  opacity: 0.85;
  pointer-events: none;
}
@keyframes drift {
  from { transform: translateY(0); }
  to { transform: translateY(-26px); }
}
@keyframes floatA {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(6%, 8%) scale(1.08); }
}
@keyframes shimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}
@keyframes pulseSoft {
  0%, 100% { box-shadow: 0 0 0 0 rgba(88, 16, 47, 0.18); }
  50% { box-shadow: 0 0 0 10px rgba(88, 16, 47, 0); }
}

/* -- Brand -- */
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  margin-bottom: 0.75rem;
}
.brand-lockup img {
  display: block;
  height: 48px;
  width: auto;
}
.brand-lockup-dark img {
  height: 52px;
}
.brand-lockup .brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
}
.brand {
  margin: 0;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--magnetic);
  font-weight: 700;
}
.brand-product {
  margin: 0;
  font-family: var(--display);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.sub {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 36rem;
}

/* -- Shell chrome -- */
.shell-top {
  display: flex;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.25rem clamp(1rem, 3vw, 1.75rem) 0.85rem;
  align-items: flex-start;
  animation: rise 0.7s var(--ease) both;
}
.shell-top h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.85rem, 3.4vw, 2.45rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  color: var(--magnetic);
  line-height: 1.12;
}
.sub {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 38rem;
  line-height: 1.45;
}
.shell-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.ghost-link {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(10px);
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  display: inline-block;
  border-radius: 7px;
  transition: border-color 0.2s, color 0.2s, transform 0.2s var(--ease), background 0.2s;
}
.ghost-link:hover, .ghost-link.is-on {
  border-color: var(--accent);
  color: var(--accent);
  background: #fff;
  transform: translateY(-1px);
}

/* -- Workspace -- */
.workspace-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  margin: 0 clamp(1rem, 3vw, 1.75rem) 0.9rem;
  padding: 0.85rem 1.05rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(120deg, rgba(88, 16, 47, 0.1), rgba(255, 255, 255, 0.7) 42%, rgba(255, 255, 255, 0.92));
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
  animation: rise 0.75s var(--ease) 0.05s both;
}
.workspace-bar-client {
  border-color: rgba(88, 16, 47, 0.22);
  box-shadow: inset 4px 0 0 var(--magnetic), var(--shadow-sm);
}
.workspace-brand-chip {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.5rem;
  min-width: 12rem;
}
.workspace-owned {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.workspace-client-name {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--ink);
  line-height: 1.3;
}
.workspace-warn {
  flex-basis: 100%;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
  max-width: 28rem;
}
.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.15rem;
  height: 1.15rem;
  margin-left: 0.35rem;
  padding: 0 0.35rem;
  border-radius: 7px;
  background: var(--magnetic);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 1;
}
.dash-tabs a.is-on .nav-badge {
  background: #fff;
  color: var(--magnetic);
}
.prospect-primary-actions {
  margin-top: 1rem;
}
.reject-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: end;
}
.draft-subject {
  margin: 0 0 0.65rem;
  font-size: 0.95rem;
}
.sf-context {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--magnetic);
  background: rgba(255, 255, 255, 0.65);
}
.sf-context p {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
  color: var(--ink);
  line-height: 1.4;
}
.sf-context p:last-child { margin-bottom: 0; }
.sf-context-warn {
  border-left-color: var(--bad);
  background: rgba(180, 35, 24, 0.06);
}
.sf-dnc-confirm {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--bad);
}
.sf-dnc-inline {
  margin-top: 0.25rem;
  color: var(--bad);
  font-weight: 600;
  font-size: 0.8rem;
}
.why-not-panel {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--ink-muted, #6b7280);
  background: rgba(255, 255, 255, 0.65);
  display: grid;
  gap: 0.85rem;
}
.why-not-panel.why-not-skip { border-left-color: var(--bad); background: rgba(180, 35, 24, 0.06); }
.why-not-panel.why-not-caution { border-left-color: #b45309; background: rgba(180, 83, 9, 0.06); }
.why-not-panel.why-not-ok { border-left-color: var(--magnetic); }
.why-not-summary {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
}
.why-not-col h3 {
  margin: 0 0 0.4rem;
  font-size: 0.85rem;
  font-weight: 700;
}
.why-not-col ul {
  margin: 0;
  padding-left: 1.1rem;
}
.why-not-col li {
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
  line-height: 1.4;
}
.why-not-col li.why-hard strong { color: var(--bad); }
.come-back-panel .come-back-item {
  margin: 0 0 0.85rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.come-back-panel .come-back-item:last-of-type { border-bottom: 0; }
.come-back-item-ready {
  border-left: 3px solid var(--magnetic);
  padding-left: 0.75rem;
}
.voi-panel {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--ink-muted, #6b7280);
  background: rgba(255, 255, 255, 0.65);
  display: grid;
  gap: 0.85rem;
}
.voi-col h3 {
  margin: 0 0 0.4rem;
  font-size: 0.85rem;
  font-weight: 700;
}
.voi-col ul {
  margin: 0;
  padding-left: 1.1rem;
}
.voi-col li {
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
  line-height: 1.4;
}
.quality-twin-panel {
  margin-top: 0.75rem;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--ink-muted, #6b7280);
  background: rgba(255, 255, 255, 0.65);
  display: grid;
  gap: 0.75rem;
}
.quality-twin-like { border-left-color: var(--magnetic); }
.quality-twin-unlike { border-left-color: var(--bad); }
.quality-twin-mixed { border-left-color: #b45309; }
.quality-twin-summary { margin: 0; font-weight: 600; font-size: 0.9rem; }
.quality-twin-col h3 { margin: 0 0 0.35rem; font-size: 0.85rem; }
.quality-twin-col ul { margin: 0; padding-left: 1.1rem; }
.quality-twin-col li { margin: 0 0 0.3rem; font-size: 0.88rem; }
.credibility-panel {
  margin-top: 0.75rem;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--magnetic);
  background: rgba(255, 255, 255, 0.65);
  display: grid;
  gap: 0.75rem;
}
.credibility-not-ready { border-left-color: var(--bad); background: rgba(180, 35, 24, 0.06); }
.credibility-caution { border-left-color: #b45309; background: rgba(180, 83, 9, 0.06); }
.credibility-ready { border-left-color: var(--magnetic); }
.credibility-summary { margin: 0; font-weight: 600; font-size: 0.9rem; }
.credibility-col h3 { margin: 0 0 0.35rem; font-size: 0.85rem; }
.credibility-col ul { margin: 0; padding-left: 1.1rem; }
.credibility-col li { margin: 0 0 0.35rem; font-size: 0.88rem; line-height: 1.4; }
.credibility-col li.cred-hard strong { color: var(--bad); }
.market-truth-panel {
  margin-top: 0.35rem;
  display: grid;
  gap: 0.65rem;
}
.market-truth-summary { margin: 0; font-weight: 600; font-size: 0.9rem; }
.market-truth-grid {
  display: grid;
  gap: 0.85rem;
}
.market-truth-col h3 { margin: 0 0 0.35rem; font-size: 0.85rem; }
.market-truth-col ul { margin: 0; padding-left: 1.1rem; }
.market-truth-col li { margin: 0 0 0.3rem; font-size: 0.88rem; }
.market-truth-beliefs {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  margin: 0;
}
.market-truth-beliefs legend {
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0 0.25rem;
}
.check-inline {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.25rem 0;
  font-size: 0.88rem;
}
.silence-panel {
  margin-top: 0.75rem;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--magnetic);
  background: rgba(255, 255, 255, 0.65);
}
.silence-wait { border-left-color: #b45309; background: rgba(180, 83, 9, 0.06); }
.silence-unknown { border-left-color: var(--muted); }
.silence-ok { border-left-color: var(--ok, #1f6b4a); }
.silence-summary { margin: 0 0 0.45rem; font-weight: 600; font-size: 0.9rem; }
.silence-reasons { margin: 0; padding-left: 1.1rem; }
.silence-reasons li { margin: 0 0 0.3rem; font-size: 0.88rem; line-height: 1.4; }
.memory-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}
.memory-item {
  padding: 0.65rem 0.75rem;
  border-left: 3px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
}
.memory-kind-decision { border-left-color: var(--ok, #1f6b4a); }
.memory-kind-rejection { border-left-color: var(--bad); }
.memory-kind-promise { border-left-color: var(--magnetic); }
.memory-kind-assumption { border-left-color: #b45309; }
.memory-kind-change { border-left-color: #3d5a80; }
.memory-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}
.memory-kind { font-weight: 600; color: var(--ink); }
.memory-body { margin: 0.35rem 0 0; font-size: 0.88rem; white-space: pre-wrap; }
.memory-source { margin: 0.25rem 0 0; font-size: 0.78rem; }
.memory-search-list {
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.88rem;
}
.memory-search-list li { margin: 0 0 0.35rem; }
.antiherd-panel {
  margin-top: 0.75rem;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--magnetic);
  background: rgba(255, 255, 255, 0.65);
}
.antiherd-crowd { border-left-color: #b45309; background: rgba(180, 83, 9, 0.06); }
.antiherd-quiet { border-left-color: var(--ok, #1f6b4a); }
.antiherd-neutral { border-left-color: var(--muted); }
.antiherd-summary { margin: 0 0 0.35rem; font-weight: 600; font-size: 0.9rem; }
.antiherd-list { margin: 0.4rem 0 0; padding-left: 1.1rem; }
.antiherd-list li { margin: 0 0 0.35rem; font-size: 0.88rem; line-height: 1.4; }
.shadow-panel { margin-top: 0.25rem; }
.shadow-summary { margin: 0 0 0.45rem; font-weight: 600; font-size: 0.9rem; }
.shadow-after {
  margin-top: 0.75rem;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--muted);
  background: rgba(255, 255, 255, 0.65);
}
.shadow-agreed { border-left-color: var(--ok, #1f6b4a); }
.shadow-diverged { border-left-color: #b45309; }
.shadow-after ul { margin: 0.35rem 0 0; padding-left: 1.1rem; font-size: 0.88rem; }
.uncertainty-panel {
  margin-top: 0.75rem;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--muted);
  background: rgba(255, 255, 255, 0.65);
}
.uncertainty-not_enough { border-left-color: #b45309; background: rgba(180, 83, 9, 0.06); }
.uncertainty-likely_bad { border-left-color: var(--bad); }
.uncertainty-likely_good { border-left-color: var(--ok, #1f6b4a); }
.uncertainty-mixed { border-left-color: var(--magnetic); }
.uncertainty-summary { margin: 0 0 0.35rem; font-size: 0.9rem; }
.uncertainty-col h3 { margin: 0.5rem 0 0.25rem; font-size: 0.85rem; }
.uncertainty-col ul { margin: 0; padding-left: 1.1rem; font-size: 0.88rem; }
.genetic-panel {
  margin-top: 0.75rem;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--magnetic);
  background: rgba(255, 255, 255, 0.65);
}
.genetic-ready { border-left-color: var(--ok, #1f6b4a); }
.genetic-summary { margin: 0 0 0.35rem; font-weight: 600; font-size: 0.9rem; }
.genetic-list { margin: 0.4rem 0 0; padding-left: 1.1rem; }
.genetic-list li { margin: 0 0 0.4rem; font-size: 0.88rem; line-height: 1.4; }
.genetic-library { margin-top: 0.25rem; }
.auto-discovery-panel { margin-top: 0.25rem; }
.auto-discovery-summary { margin: 0 0 0.5rem; font-weight: 600; font-size: 0.9rem; }
.auto-discovery-panel h3 { margin: 0.65rem 0 0.35rem; font-size: 0.85rem; }
.auto-discovery-list { margin: 0; padding-left: 1.1rem; }
.auto-discovery-list li { margin: 0 0 0.45rem; font-size: 0.88rem; line-height: 1.4; }
.reasoning-panel {
  margin-top: 0.85rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.7);
}
.reasoning-head h3 { margin: 0 0 0.2rem; font-size: 1rem; }
.reasoning-list { margin: 0.65rem 0 0; display: grid; gap: 0.75rem; }
.reasoning-item dt {
  font-weight: 700;
  font-size: 0.88rem;
  margin: 0 0 0.2rem;
}
.reasoning-item dd { margin: 0; }
.reasoning-answer { margin: 0 0 0.25rem; font-size: 0.9rem; }
.reasoning-evidence {
  margin: 0;
  padding-left: 1.05rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.reasoning-evidence li { margin: 0 0 0.15rem; }
.constraints-panel { margin-top: 0.25rem; }
.constraints-summary { margin: 0 0 0.45rem; font-weight: 600; font-size: 0.9rem; }
.constraints-panel h3 { margin: 0.65rem 0 0.3rem; font-size: 0.85rem; }
.constraints-panel ul { margin: 0; padding-left: 1.1rem; }
.constraints-panel li { margin: 0 0 0.35rem; font-size: 0.88rem; line-height: 1.4; }
.constraints-fields {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  margin: 0.5rem 0 0;
  display: grid;
  gap: 0.45rem;
}
.constraints-fields legend { font-weight: 600; font-size: 0.9rem; padding: 0 0.25rem; }
.problems-panel {
  margin-top: 0.75rem;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--magnetic);
  background: rgba(255, 255, 255, 0.65);
}
.problems-summary { margin: 0 0 0.4rem; font-weight: 600; font-size: 0.9rem; }
.problems-list { margin: 0; padding-left: 1.1rem; }
.problems-list > li { margin: 0 0 0.5rem; font-size: 0.88rem; line-height: 1.4; }
.problems-evidence { margin: 0.25rem 0 0; padding-left: 1rem; color: var(--muted); font-size: 0.82rem; }
.vacuum-panel {
  margin-top: 0.75rem;
  padding: 0.85rem 1rem;
  border-left: 3px solid #3d5a80;
  background: rgba(255, 255, 255, 0.65);
}
.vacuum-summary { margin: 0 0 0.35rem; font-weight: 600; font-size: 0.9rem; }
.vacuum-list { margin: 0.35rem 0 0; padding-left: 1.1rem; }
.vacuum-list li { margin: 0 0 0.35rem; font-size: 0.88rem; line-height: 1.4; }
.second-order-panel {
  margin-top: 0.75rem;
  padding: 0.85rem 1rem;
  border-left: 3px solid #6b4f2a;
  background: rgba(255, 255, 255, 0.65);
}
.second-order-summary { margin: 0 0 0.4rem; font-weight: 600; font-size: 0.9rem; }
.second-order-list { margin: 0.35rem 0 0; padding-left: 1.2rem; }
.second-order-list li { margin: 0 0 0.45rem; font-size: 0.88rem; line-height: 1.4; }
.second-order-panel h3 { margin: 0.65rem 0 0.3rem; font-size: 0.85rem; }
.second-order-peers { margin: 0; padding-left: 1.1rem; font-size: 0.88rem; }
.second-order-peers li { margin: 0 0 0.3rem; }
.live-market-panel {
  margin-top: 0.75rem;
  padding: 0.85rem 1rem;
  border-left: 3px solid #2a4a5c;
  background: rgba(255, 255, 255, 0.65);
}
.live-market-summary { margin: 0 0 0.4rem; font-weight: 600; font-size: 0.9rem; }
.live-market-list { margin: 0.35rem 0 0; padding-left: 1.2rem; }
.live-market-list li { margin: 0 0 0.35rem; font-size: 0.88rem; line-height: 1.4; }
.live-market-panel h3 { margin: 0.65rem 0 0.3rem; font-size: 0.85rem; }
.live-market-fields {
  border: 0;
  margin: 0;
  padding: 0;
}
.live-market-fields legend { font-weight: 600; margin-bottom: 0.35rem; }
.digital-twin-panel {
  margin-top: 0.5rem;
  padding: 0.85rem 1rem;
  border-left: 3px solid #3d5a3d;
  background: rgba(255, 255, 255, 0.65);
}
.digital-twin-summary { margin: 0 0 0.4rem; font-weight: 600; font-size: 0.9rem; }
.digital-twin-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.digital-twin-col h3 { margin: 0 0 0.35rem; font-size: 0.85rem; }
.digital-twin-col p { margin: 0 0 0.25rem; font-size: 0.9rem; }
.digital-twin-list { margin: 0.35rem 0 0; padding-left: 1.2rem; }
.digital-twin-list li { margin: 0 0 0.3rem; font-size: 0.88rem; }
.digital-twin-fields {
  border: 0;
  margin: 0;
  padding: 0;
}
.digital-twin-fields legend { font-weight: 600; margin-bottom: 0.35rem; }
.idle-capacity-panel {
  margin-top: 0.75rem;
  padding: 0.85rem 1rem;
  border-left: 3px solid #5c4a2a;
  background: rgba(255, 255, 255, 0.65);
}
.idle-capacity-summary { margin: 0 0 0.4rem; font-weight: 600; font-size: 0.9rem; }
.idle-capacity-list { margin: 0.35rem 0 0; padding-left: 1.2rem; }
.idle-capacity-list li { margin: 0 0 0.35rem; font-size: 0.88rem; line-height: 1.4; }
.idle-capacity-panel h3 { margin: 0.65rem 0 0.3rem; font-size: 0.85rem; }
.idle-capacity-fields { border: 0; margin: 0; padding: 0; }
.idle-capacity-fields legend { font-weight: 600; margin-bottom: 0.35rem; }
.proof-pitch-panel {
  margin-top: 0.75rem;
  padding: 0.85rem 1rem;
  border-left: 3px solid #2a3d5c;
  background: rgba(255, 255, 255, 0.65);
}
.proof-pitch-summary { margin: 0 0 0.4rem; font-weight: 600; font-size: 0.9rem; }
.proof-pitch-panel h3 { margin: 0.65rem 0 0.3rem; font-size: 0.85rem; }
.proof-pitch-panel p { margin: 0 0 0.35rem; font-size: 0.88rem; line-height: 1.4; }
.proof-pitch-list { margin: 0.25rem 0 0; padding-left: 1.2rem; }
.proof-pitch-list li { margin: 0 0 0.3rem; font-size: 0.88rem; line-height: 1.4; }
.explore-panel, .halflife-panel {
  margin-top: 0.5rem;
  padding: 0.85rem 1rem;
  border-left: 3px solid #4a3d5c;
  background: rgba(255, 255, 255, 0.65);
}
.halflife-panel { border-left-color: #5c3d3d; }
.explore-summary, .halflife-summary { margin: 0 0 0.4rem; font-weight: 600; font-size: 0.9rem; }
.explore-list, .halflife-list { margin: 0.35rem 0 0; padding-left: 1.2rem; }
.explore-list li, .halflife-list li { margin: 0 0 0.35rem; font-size: 0.88rem; line-height: 1.4; }
.explore-panel h3, .halflife-panel h3 { margin: 0.65rem 0 0.3rem; font-size: 0.85rem; }
.explore-fields { border: 0; margin: 0; padding: 0; }
.explore-fields legend { font-weight: 600; margin-bottom: 0.35rem; }
.crm-capture-panel {
  margin-top: 0.35rem;
  padding: 0.75rem 0.9rem;
  border-left: 3px solid #3d4a5c;
  background: rgba(255, 255, 255, 0.65);
}
.crm-capture-summary { margin: 0; font-size: 0.9rem; font-weight: 600; }
.crm-capture-list { margin: 0.5rem 0 0; padding-left: 0; list-style: none; }
.crm-capture-list li { margin: 0 0 0.4rem; font-size: 0.88rem; }
.promises-panel, .decision-map-panel, .contradiction-panel {
  margin-top: 0.75rem;
  padding: 0.85rem 1rem;
  border-left: 3px solid #4a5c3d;
  background: rgba(255, 255, 255, 0.65);
}
.decision-map-panel { border-left-color: #3d4a5c; }
.contradiction-panel { border-left-color: #5c3d4a; }
.promises-summary, .decision-map-summary, .contradiction-summary {
  margin: 0 0 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
}
.promises-list, .decision-map-list, .contradiction-list {
  margin: 0.35rem 0 0;
  padding-left: 1.2rem;
}
.promises-list li, .decision-map-list li, .contradiction-list li {
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
  line-height: 1.4;
}
.promises-fields, .decision-map-fields, .contradiction-fields {
  border: 0;
  margin: 0;
  padding: 0;
}
.promises-fields legend, .decision-map-fields legend, .contradiction-fields legend {
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.drift-panel, .missing-q-panel, .missed-panel, .voc-panel {
  margin-top: 0.75rem;
  padding: 0.85rem 1rem;
  border-left: 3px solid #3d5c5c;
  background: rgba(255, 255, 255, 0.65);
}
.missing-q-panel { border-left-color: #5c5c3d; }
.missed-panel { border-left-color: #5c3d3d; }
.voc-panel { border-left-color: #3d5c4a; }
.drift-summary { margin: 0 0 0.4rem; font-weight: 600; font-size: 0.9rem; }
.drift-list { margin: 0.35rem 0 0; padding-left: 1.2rem; }
.drift-list li { margin: 0 0 0.3rem; font-size: 0.88rem; line-height: 1.4; }
.late-panel {
  margin-top: 0.5rem;
  padding: 0.85rem 1rem;
  border-left: 3px solid #4a5c4a;
  background: rgba(255, 255, 255, 0.65);
}
.late-copilot { border-left-color: #2a4a5c; }
.late-summary { margin: 0 0 0.4rem; font-weight: 600; font-size: 0.9rem; }
.late-list { margin: 0.35rem 0 0; padding-left: 1.2rem; }
.late-list li { margin: 0 0 0.35rem; font-size: 0.88rem; line-height: 1.4; }
.handover-pre {
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 0.88rem;
  margin: 0;
  line-height: 1.45;
}
.knowledge-item {
  margin: 0 0 0.85rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.knowledge-item:last-child { border-bottom: 0; }
.premortem-panel {
  margin-top: 0.35rem;
  display: grid;
  gap: 0.85rem;
}
.premortem-summary { margin: 0; }
.premortem-blocked { border-left: 3px solid var(--bad); padding-left: 0.85rem; }
.premortem-warn { border-left: 3px solid #b45309; padding-left: 0.85rem; }
.premortem-ok { border-left: 3px solid var(--magnetic); padding-left: 0.85rem; }
.premortem-col h3 { margin: 0 0 0.4rem; font-size: 0.85rem; }
.premortem-col ul { margin: 0; padding-left: 1.1rem; }
.premortem-col li { margin: 0 0 0.45rem; font-size: 0.88rem; line-height: 1.4; }
@media (min-width: 900px) {
  .premortem-panel { grid-template-columns: 1fr 1fr 1fr; }
  .premortem-summary { grid-column: 1 / -1; }
}
@media (min-width: 720px) {
  .voi-panel { grid-template-columns: 1fr 1fr; }
  .quality-twin-panel { grid-template-columns: 1fr 1fr; }
  .quality-twin-summary { grid-column: 1 / -1; }
  .credibility-panel { grid-template-columns: 1fr 1fr; }
  .credibility-summary { grid-column: 1 / -1; }
  .market-truth-grid { grid-template-columns: 1fr 1fr; }
  .digital-twin-grid { grid-template-columns: 1fr 1fr; }
}
.today-reason {
  margin: 0.5rem 0 0;
  font-size: 0.95rem;
  color: var(--ink);
  max-width: 36rem;
}
.today-alts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}
@media (min-width: 720px) {
  .why-not-panel {
    grid-template-columns: 1fr 1fr;
  }
  .why-not-summary {
    grid-column: 1 / -1;
  }
}
.sf-strip {
  margin-top: 0.35rem;
}
.workspace-form {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.55rem;
}
.workspace-label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.workspace-label select {
  font: inherit;
  font-weight: 600;
  font-size: 0.88rem;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink);
  min-width: 11rem;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.workspace-label select:focus {
  outline: none;
  border-color: var(--magnetic-soft);
  box-shadow: 0 0 0 3px var(--magnetic-mist);
}

/* -- Nav -- */
.sub-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 1rem;
  padding: 0;
}
.sub-tabs a {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.85rem;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  color: var(--magnetic);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}
.sub-tabs a:hover {
  border-color: var(--magnetic-soft);
  background: #fff;
}
.sub-tabs a.is-on {
  background: var(--magnetic);
  border-color: var(--magnetic);
  color: #fff;
}
.today-primary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1.25rem;
}
.today-cta {
  font-size: 1rem;
  padding: 0.85rem 1.4rem;
}
.dash-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.15rem;
  align-items: center;
  padding: 0.45rem clamp(1rem, 3vw, 1.75rem) 0.55rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 20;
  animation: rise 0.8s var(--ease) 0.08s both;
}
.nav-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.1rem 0.15rem;
}
.nav-group + .nav-group {
  padding-left: 0.85rem;
  margin-left: 0.15rem;
  border-left: 1px solid var(--line);
}
.nav-group-label {
  display: block;
  width: 100%;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  padding: 0 0.55rem 0.12rem;
}
.dash-tabs a {
  padding: 0.35rem 0.6rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  border-radius: 7px;
  transition: color 0.2s, background 0.2s, transform 0.2s var(--ease);
}
.dash-tabs a:hover {
  color: var(--ink);
  background: rgba(88, 16, 47, 0.06);
}
.dash-tabs a.is-on {
  color: #fff;
  background: linear-gradient(120deg, var(--magnetic-deep), var(--magnetic-soft), #9a4a62);
  background-size: 180% 180%;
  animation: shimmer 6s ease infinite alternate, pulseSoft 3.2s ease-in-out infinite;
}

.shell-main {
  padding: 1.15rem clamp(1rem, 3vw, 1.75rem) 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

/* -- Motion: reveal -- */
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
/* Public pages: always land visible even if JS is late or missing */
.coming-body .reveal,
.auth-body .reveal {
  opacity: 1;
  transform: none;
  animation: rise 0.7s var(--ease) both;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* -- KPIs / cards -- */
.kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}
.kpi, .panel, .action-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.05rem 1.1rem;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(10px);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.25s;
}
.action-card:hover, .kpi:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: rgba(88, 16, 47, 0.22);
}
.kpi span, .action-card span {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.kpi strong, .action-card strong {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--display);
  font-size: 1.85rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--magnetic);
  line-height: 1.1;
}
.kpi em, .action-card em {
  display: block;
  margin-top: 0.35rem;
  font-style: normal;
  font-size: 0.8rem;
  color: var(--muted);
}
.action-card a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.action-card a:hover { border-bottom-color: var(--accent); }

/* Quick launch strip */
.launch-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
}
.launch-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1.05rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.7)),
    var(--panel);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.25s;
  min-height: 5.5rem;
}
.launch-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow);
  border-color: rgba(88, 16, 47, 0.28);
}
.launch-card .launch-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: var(--magnetic-mist);
  color: var(--magnetic);
  font-size: 1rem;
  margin-bottom: 0.15rem;
}
.launch-card strong {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
}
.launch-card span {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.35;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}
.panel-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.panel-head .secondary {
  flex: 0 0 auto;
}
.panel-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}
.weekly-packs-head {
  align-items: flex-start;
  gap: 12px 16px;
  flex-wrap: wrap;
  padding: 12px 16px 0;
}
.weekly-packs-head-copy {
  min-width: 0;
  flex: 1 1 12rem;
}
.weekly-packs-head-copy p {
  margin-top: 4px;
}
.weekly-packs-ready-form {
  margin: 0;
  flex: 0 0 auto;
}
.weekly-packs-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}
.weekly-sp-conflict {
  margin: 0 16px 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff8e8;
}
.weekly-sp-conflict p {
  margin: 0 0 8px;
}
.weekly-sp-conflict .btn-row {
  margin: 0;
  gap: 8px;
}

.table-wrap {
  overflow: auto;
  border-radius: var(--radius-sm);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
th, td {
  text-align: left;
  padding: 0.75rem 0.55rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}
.note {
  color: var(--muted);
  font-size: 0.98rem;
  margin: 0;
  line-height: 1.5;
}
.panel-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.kpi strong, .action-card strong {
  display: block;
  margin-top: 0.4rem;
  font-family: var(--display);
  font-size: 2.05rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--magnetic);
  line-height: 1.05;
}
.launch-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.15rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.72)),
    var(--panel);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s, border-color 0.25s;
  min-height: 6.2rem;
  position: relative;
  overflow: hidden;
}
.launch-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(88, 16, 47, 0.12), transparent 70%);
  transition: transform 0.5s var(--ease);
}
.launch-card:hover::after { transform: scale(1.35) translate(-10%, -10%); }
.fit-ring {
  --p: 0;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(#fff 58%, transparent 59%),
    conic-gradient(var(--magnetic) calc(var(--p) * 1%), rgba(88, 16, 47, 0.12) 0);
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--magnetic);
  flex-shrink: 0;
  animation: rise 0.8s var(--ease) both;
}
tbody tr {
  transition: background 0.2s;
}
tbody tr:hover td {
  background: rgba(88, 16, 47, 0.035);
}
td a {
  color: inherit;
  font-weight: 600;
  text-decoration: none;
}
td a:hover { color: var(--accent); }

.auth-error {
  color: var(--bad);
  background: rgba(180, 35, 24, 0.07);
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(180, 35, 24, 0.18);
  border-radius: var(--radius-sm);
  animation: rise 0.4s var(--ease) both;
}
.note {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}
.note.ok {
  color: var(--ok);
  background: rgba(31, 107, 74, 0.08);
  border: 1px solid rgba(31, 107, 74, 0.18);
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-sm);
}
.flash-ok {
  color: var(--ok);
  background: rgba(31, 107, 74, 0.08);
  border: 1px solid rgba(31, 107, 74, 0.18);
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-sm);
  margin: 0;
  animation: rise 0.4s var(--ease) both;
}

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

form.stack label {
  display: block;
  margin: 0.6rem 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.02em;
}
form.stack input,
form.stack textarea,
form.stack select {
  display: block;
  width: 100%;
  margin-top: 0.3rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  font: inherit;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
form.stack input:focus,
form.stack textarea:focus,
form.stack select:focus {
  outline: none;
  border-color: var(--magnetic-soft);
  box-shadow: 0 0 0 3px var(--magnetic-mist);
}
form.stack textarea { min-height: 88px; resize: vertical; }

form.stack button, .btn, button {
  font: inherit;
  font-weight: 700;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  padding: 0.45rem 0.8rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  border-radius: 7px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, background 0.2s, filter 0.2s;
  box-shadow: 0 4px 14px rgba(88, 16, 47, 0.2);
}
form.stack button:hover, .btn:hover, button:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 8px 22px rgba(88, 16, 47, 0.28);
}
form.stack button.secondary, .btn.secondary, button.secondary {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
  box-shadow: none;
}
form.stack button.secondary:hover, .btn.secondary:hover, button.secondary:hover {
  border-color: var(--magnetic-soft);
  color: var(--magnetic);
  box-shadow: var(--shadow-sm);
}

.score-row { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.score-chip {
  min-width: 7.2rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: linear-gradient(160deg, #fff, rgba(255, 255, 255, 0.7));
  transition: transform 0.25s var(--ease);
}
.score-chip:hover { transform: translateY(-2px); }
.score-chip span {
  display: block;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
}
.score-chip strong {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--magnetic);
}

.fit-ring {
  --p: 0;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(#fff 58%, transparent 59%),
    conic-gradient(var(--magnetic) calc(var(--p) * 1%), rgba(88, 16, 47, 0.12) 0);
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--magnetic);
  flex-shrink: 0;
}

.steps { list-style: none; margin: 0; padding: 0; }
.steps li {
  display: flex;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.86rem;
}
.step-status {
  font-family: var(--mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  min-width: 4.5rem;
  height: fit-content;
  padding: 0.2rem 0.4rem;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.04);
  color: var(--muted);
  text-align: center;
}
.step-status.done { color: var(--ok); background: rgba(31, 107, 74, 0.1); }
.step-status.ready { color: var(--accent); background: var(--magnetic-mist); }
.step-status.blocked, .step-status.locked { color: var(--warn); background: rgba(154, 103, 0, 0.1); }

.fact {
  font-size: 0.82rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
}
.fact small { display: block; color: var(--muted); margin-top: 0.15rem; }

/* -- Coming soon / public brand surfaces (eggshell) -- */
.coming-body,
.coming-body-light,
.auth-body-light {
  min-height: 100vh;
  margin: 0;
  position: relative;
  overflow-x: hidden;
  color: var(--ink);
  background: #f3efe6;
}
.coming-wash {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 50% 36% at 8% 0%, rgba(88, 16, 47, 0.045), transparent 58%),
    linear-gradient(180deg, #f5f1e8 0%, #f3efe6 100%);
}
.coming-stage {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  align-items: start;
  padding: clamp(1.5rem, 4vw, 2.75rem) clamp(1.25rem, 5vw, 3.5rem) 2rem;
  gap: clamp(1.35rem, 3.5vh, 2.25rem);
  max-width: 72rem;
  margin: 0 auto;
}
.coming-stage-rich {
  grid-template-rows: auto auto auto auto auto auto;
}
.coming-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}
.coming-logo {
  display: block;
  height: clamp(48px, 7vw, 62px);
  width: auto;
}
.coming-product {
  margin: 0.55rem 0 0;
  font-family: var(--display);
  font-size: clamp(1.45rem, 2.6vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--magnetic);
}
.coming-product-sub {
  margin: 0.1rem 0 0;
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 26rem;
}
.coming-hero-row {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: center;
}
.coming-copy {
  max-width: 38rem;
}
.coming-eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--magnetic);
}
.coming-copy h1 {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: clamp(2rem, 5.2vw, 3.15rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: var(--magnetic-deep);
}
.coming-lede {
  margin: 0 0 1.5rem;
  font-size: clamp(1rem, 1.8vw, 1.12rem);
  line-height: 1.55;
  color: #3a4550;
  max-width: 34rem;
}
.coming-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 0.9rem;
}
.coming-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 9.5rem;
  padding: 0.9rem 1.55rem;
  border-radius: 7px;
  background: var(--magnetic);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(88, 16, 47, 0.22);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.2s ease;
}
.coming-login:hover {
  transform: translateY(-2px);
  background: var(--magnetic-deep);
  color: #fff;
  box-shadow: 0 14px 34px rgba(88, 16, 47, 0.28);
}
.coming-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  border-radius: 7px;
  border: 1.5px solid rgba(88, 16, 47, 0.28);
  color: var(--magnetic);
  font-weight: 700;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.55);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.coming-outline:hover {
  border-color: var(--magnetic);
  background: #fff;
  color: var(--magnetic-deep);
}
.coming-aside {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(88, 16, 47, 0.1);
  box-shadow: 0 18px 40px rgba(33, 41, 52, 0.08);
  background: #fff;
  aspect-ratio: 4 / 3;
}
.coming-aside img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.coming-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 0.25rem;
}
.coming-pillars article {
  padding: 1.1rem 1.15rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(88, 16, 47, 0.1);
  box-shadow: inset 3px 0 0 var(--magnetic);
}
.coming-pillars h2 {
  margin: 0 0 0.45rem;
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--magnetic);
}
.coming-pillars p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--muted);
}
.coming-values {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
}
.coming-values span {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--magnetic);
  padding: 0.42rem 0.7rem;
  border: 1px solid rgba(88, 16, 47, 0.16);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.65);
}
.coming-story {
  max-width: 42rem;
}
.coming-story p {
  margin: 0 0 0.9rem;
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--muted);
}
.coming-line {
  font-family: var(--display);
  font-size: clamp(1.12rem, 2.2vw, 1.35rem) !important;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--magnetic-deep) !important;
  line-height: 1.35 !important;
}
.coming-foot {
  padding-top: 0.35rem;
  padding-bottom: 0.5rem;
}
.coming-foot p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}
.coming-foot a {
  color: var(--magnetic);
  text-decoration: none;
  font-weight: 600;
}
.coming-foot a:hover { color: var(--magnetic-deep); }

@media (max-width: 900px) {
  .coming-hero-row,
  .coming-pillars {
    grid-template-columns: 1fr;
  }
  .coming-aside {
    max-height: 240px;
  }
}

/* -- Auth -- */
.auth-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  position: relative;
}
.auth-body-light {
  display: block;
  padding: 0;
  place-items: unset;
}
.auth-light {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.35rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
}
.auth-light-brand {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}
.auth-light-brand img {
  height: 52px;
  width: auto;
}
.auth-light-brand .coming-product {
  margin-top: 0.65rem;
}
.auth-card {
  width: min(420px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.6rem 1.45rem 1.7rem;
  box-shadow: var(--shadow);
  animation: rise 0.8s var(--ease) both;
  position: relative;
  overflow: hidden;
}
.auth-card-light {
  width: min(420px, 100%);
  box-shadow: 0 22px 50px rgba(33, 41, 52, 0.1);
}
.auth-card .sub {
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.auth-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--magnetic-deep), var(--magnetic-soft), #9a4a62);
}
.auth-card .brand-lockup { margin-bottom: 1.1rem; }
.auth-card .brand-lockup img { height: 48px; }
.auth-card h1 {
  margin: 0.2rem 0 0.4rem;
  font-family: var(--display);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--magnetic);
  letter-spacing: -0.03em;
}
.auth-card label {
  display: block;
  margin: 0.75rem 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
}
.auth-card input {
  display: block;
  width: 100%;
  margin-top: 0.3rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  font: inherit;
  color: var(--ink);
}
.auth-card input:focus {
  outline: none;
  border-color: var(--magnetic-soft);
  box-shadow: 0 0 0 3px var(--magnetic-mist);
}
.auth-card button {
  margin-top: 0.75rem;
  width: 100%;
  font: inherit;
  font-weight: 700;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  padding: 0.75rem 0.9rem;
  cursor: pointer;
  border-radius: 7px;
  box-shadow: 0 8px 24px rgba(88, 16, 47, 0.28);
}
.auth-foot-link {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.85rem;
}
.auth-foot-link a {
  color: var(--magnetic);
  font-weight: 700;
  text-decoration: none;
}

.muted { color: var(--muted); }
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.7rem;
  align-items: center;
}
.enhance-actions button { font-size: 0.78rem; padding: 0.4rem 0.75rem; }

pre.draft {
  white-space: pre-wrap;
  font-family: var(--sans);
  font-size: 0.9rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
}

.badge-agency, .badge-client {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 7px;
  border: 1px solid transparent;
}
.badge-agency {
  background: rgba(88, 16, 47, 0.1);
  color: var(--magnetic);
  border-color: rgba(88, 16, 47, 0.15);
}
.badge-client {
  background: rgba(31, 107, 74, 0.1);
  color: var(--ok);
  border-color: rgba(31, 107, 74, 0.15);
}

.status-pill {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.5rem;
  border-radius: 7px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.status-pill.status-ok    { background: rgba(31, 107, 74, 0.1);  color: var(--ok);    border-color: rgba(31, 107, 74, 0.15); }
.status-pill.status-muted { background: rgba(90, 101, 112, 0.1); color: var(--muted); border-color: rgba(90, 101, 112, 0.15); }
.status-pill.status-warn  { background: rgba(154, 103, 0, 0.1);  color: var(--warn);  border-color: rgba(154, 103, 0, 0.15); }
.status-pill.status-bad   { background: rgba(180, 35, 24, 0.1);  color: var(--bad);   border-color: rgba(180, 35, 24, 0.15); }

.inline-form { display: inline; margin: 0; }
.inline-form button { margin: 0; }
tr.is-current-book td { background: rgba(88, 16, 47, 0.04); }

.page-hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-end;
  padding: 0.25rem 0 0.35rem;
}
.page-hero .lede {
  margin: 0;
  font-size: 1.02rem;
  color: var(--muted);
  max-width: 34rem;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  align-items: flex-end;
  margin-bottom: 0.35rem;
}
.filter-row label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
}
.filter-row select {
  display: block;
  margin-top: 0.3rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  font: inherit;
  color: var(--ink);
}

.grid.charts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0.25rem 0 1rem;
}
.grid.charts.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.chart-box {
  height: 240px;
  position: relative;
}
.chart-box.tall {
  height: 300px;
}
.stat-hero {
  font-family: var(--display);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--magnetic);
  margin: 0.35rem 0 0;
  line-height: 1;
}

.pace-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.28rem 0.55rem;
  border-radius: 7px;
  border: 1px solid transparent;
}
.pace-ahead {
  color: #1f5c40;
  background: rgba(31, 107, 74, 0.1);
  border-color: rgba(31, 107, 74, 0.22);
}
.pace-steady {
  color: #3d4a5c;
  background: rgba(61, 74, 92, 0.08);
  border-color: rgba(61, 74, 92, 0.18);
}
.pace-behind {
  color: #7a1f2e;
  background: rgba(122, 31, 46, 0.1);
  border-color: rgba(122, 31, 46, 0.22);
}
.pace-quiet {
  color: var(--muted);
  background: rgba(110, 92, 100, 0.08);
  border-color: rgba(110, 92, 100, 0.16);
}
.pace-row-behind td:first-child {
  box-shadow: inset 3px 0 0 #7a1f2e;
}
.pace-row-ahead td:first-child {
  box-shadow: inset 3px 0 0 #1f5c40;
}
.pace-ahead-kpi strong { color: #1f5c40; }
.pace-behind-kpi strong { color: #7a1f2e; }
.pace-steady-kpi strong { color: #3d4a5c; }

.plain-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--ink);
}
.plain-list li + li {
  margin-top: 0.35rem;
}
.compare-sides {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.compare-drop {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.1rem 1.15rem;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}
.compare-drop strong {
  font-size: 1rem;
}
.compare-drop span {
  color: var(--muted);
  font-size: 0.88rem;
}
.compare-drop input[type="file"] {
  margin-top: 0.35rem;
}

/* -- App brand ribbon / values / footer -- */
.brand-ribbon {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0 0 1.15rem;
}
.brand-ribbon article {
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    linear-gradient(160deg, rgba(88, 16, 47, 0.07), rgba(255, 255, 255, 0.9));
}
.brand-ribbon h2 {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--magnetic);
}
.brand-ribbon p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.45;
}
.values-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
  margin: 1.25rem 0 0.25rem;
}
.values-strip span {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--magnetic);
  padding: 0.4rem 0.7rem;
  border-radius: 7px;
  border: 1px solid rgba(88, 16, 47, 0.16);
  background: rgba(88, 16, 47, 0.05);
}
.site-foot {
  margin-top: 2rem;
  padding: 1.35rem clamp(1rem, 3vw, 1.75rem) 1.75rem;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, rgba(88, 16, 47, 0.04));
}
.site-foot-inner {
  max-width: 52rem;
}
.site-foot p {
  margin: 0 0 0.3rem;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}
.site-foot strong {
  color: var(--magnetic);
  font-weight: 800;
  letter-spacing: 0.02em;
}
.site-foot a {
  color: var(--magnetic-soft);
  text-decoration: none;
}
.site-foot a:hover { color: var(--magnetic); }

@media (max-width: 900px) {
  .brand-ribbon { grid-template-columns: 1fr; }
}

@media (max-width: 960px) {
  .kpis, .grid-2, .grid-3, .grid.charts, .grid.charts.two, .compare-sides { grid-template-columns: 1fr; }
  .nav-group + .nav-group {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
    width: 100%;
  }
  .nav-group-label { display: none; }
  .shell-top { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .atmosphere::after { animation: none; }
}

.check-inline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.kpis-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.kpis-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1100px) {
  .kpis-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
a.action-card {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.home-jumps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  margin: 0 0 1.1rem;
}
.home-jumps a {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--magnetic);
  text-decoration: none;
}
.home-jumps a:hover { text-decoration: underline; }
.home-overview .home-active-clients { max-height: none; margin-bottom: 1.25rem; }
.engine-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.7rem;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
}
.engine-chip i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9aa3ad;
}
.engine-chip.is-on {
  color: var(--ok);
  border-color: rgba(31, 107, 74, 0.28);
}
.engine-chip.is-on i {
  background: var(--ok);
  animation: enginePulse 2s ease infinite;
}
@keyframes enginePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.engine-counts {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
}
.budget-banner {
  margin: 0 clamp(1rem, 3vw, 1.75rem) 0.65rem;
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  border: 1px solid rgba(154, 103, 0, 0.35);
  background: #fff8e8;
  color: #6b4a00;
  font-size: 0.9rem;
}
.budget-banner.budget-exceeded {
  border-color: rgba(180, 35, 24, 0.35);
  background: #fdecea;
  color: var(--bad);
}
.budget-banner a { font-weight: 700; color: inherit; }
.budget-banner.token-warn {
  border-color: rgba(154, 103, 0, 0.45);
  background: #fff3d6;
}
.entry-cards h2 { margin: 0 0 0.25rem; font-size: 1.05rem; }
.entry-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}
.entry-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
}
.entry-card:hover { border-color: rgba(88, 16, 47, 0.28); }
.entry-card strong { color: var(--magnetic); }
.entry-card span { font-size: 0.88rem; color: var(--muted); }
.pipe-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: stretch;
}
.pipe-cell {
  flex: 1 1 5.5rem;
  padding: 0.7rem 0.75rem;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  text-align: center;
}
.pipe-cell strong { display: block; font-size: 1.25rem; color: var(--magnetic); }
.pipe-cell span { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 700; }
.pipe-all { align-self: center; font-weight: 700; }
.journey-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
  margin: 0 0 0.75rem;
}
.journey-steps li a {
  display: inline-block;
  padding: 0.35rem 0.7rem;
  border-radius: 7px;
  border: 1px solid var(--line);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  background: #fff;
}
.journey-steps li.is-done a { color: var(--ok); border-color: rgba(31, 107, 74, 0.3); }
.journey-next { margin: 0 0 1rem; }
.rec-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}
.rec-grid h3 { margin: 0 0 0.35rem; font-size: 0.95rem; }
.account-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.75rem;
}
.account-card {
  padding: 0.95rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.account-card.is-current { border-color: rgba(88, 16, 47, 0.35); }
.account-card header {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: flex-start;
  margin-bottom: 0.4rem;
}
.account-card header a { font-weight: 700; color: var(--ink); text-decoration: none; }
.account-next { font-size: 0.88rem; margin: 0.35rem 0 0.65rem; }
.strat-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 7px;
  font-size: 0.72rem;
  font-weight: 700;
}
.strat-badge.is-complete { background: #e8f6ef; color: var(--ok); }
.strat-badge.is-incomplete { background: #fff4d6; color: var(--warn); }
.brief-pane[hidden] { display: none; }

.table-wrap.account-directory {
  max-height: calc(100vh - 14rem);
}
.account-directory table {
  font-size: 0.78rem;
}
.account-directory th,
.account-directory td {
  padding: 0.28rem 0.38rem;
  vertical-align: middle;
}
.account-directory th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #fff;
  font-size: 0.62rem;
  white-space: nowrap;
}
.account-directory .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.account-directory .client-name {
  font-weight: 650;
  color: var(--ink);
  text-decoration: none;
}
.account-directory .client-name:hover { text-decoration: underline; }
.account-directory .client-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem 0.4rem;
  align-items: center;
  margin-top: 0.08rem;
}
.account-directory .badge-agency,
.account-directory .badge-client {
  font-size: 0.58rem;
  padding: 0.06rem 0.32rem;
}
.account-directory .strat-badge {
  font-size: 0.62rem;
  padding: 0.08rem 0.36rem;
  white-space: nowrap;
}
.account-directory .dir-live {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--ok);
}
.account-directory .act-30.is-hot { font-weight: 700; }
.account-directory .act-sub {
  display: block;
  font-size: 0.66rem;
  color: var(--muted);
  font-weight: 400;
  line-height: 1.25;
  white-space: normal;
  text-align: right;
}
.account-directory .dir-last { white-space: nowrap; }
.account-directory tr.is-current td:first-child { box-shadow: inset 3px 0 0 var(--magnetic); }
.account-directory tr.is-quiet td { color: var(--muted); }
.account-directory tr.is-quiet .client-name {
  color: var(--muted);
  font-weight: 500;
}
.account-directory .dir-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  white-space: nowrap;
}
.account-directory .dir-actions a { font-size: 0.72rem; }
.account-directory button.secondary {
  padding: 0.14rem 0.5rem;
  font-size: 0.68rem;
  box-shadow: none;
}
.account-directory button.secondary:hover { transform: none; }

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.tool-card-primary {
  border-color: rgba(88, 16, 47, 0.28);
}
.lead-steps {
  display: flex;
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  flex-wrap: wrap;
}
.lead-steps li {
  padding: 0.28rem 0.55rem;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}
.lead-steps li.is-on {
  background: var(--magnetic);
  color: #fff;
}
.lead-steps li.is-done {
  background: #e8f6ef;
  color: var(--ok);
}
.lead-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1rem;
  align-items: end;
}
.lead-meta .lead-pair {
  grid-column: 1 / -1;
}
.lead-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1rem;
  margin: 0.15rem 0 0.4rem;
}
form.stack .lead-pair .search-select > label {
  margin: 0 0 0.25rem;
}
.search-select {
  position: relative;
  min-width: 0;
}
.search-select input[role="combobox"] {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  font: inherit;
  color: var(--ink);
}
.search-select input[role="combobox"]:focus {
  outline: none;
  border-color: var(--magnetic-soft);
  box-shadow: 0 0 0 3px var(--magnetic-mist);
}
.search-select-list {
  position: absolute;
  z-index: 40;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  margin: 0;
  padding: 0.3rem 0;
  list-style: none;
  max-height: 16rem;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  box-shadow: var(--shadow);
}
.search-select-list[hidden] { display: none; }
.search-select-list li {
  margin: 0;
  padding: 0.45rem 0.75rem;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0;
  text-transform: none;
}
.search-select-list li small {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
}
.search-select-list li.is-on,
.search-select-list li:hover {
  background: var(--magnetic-mist);
}
.search-select-list li.is-empty,
.search-select-list li.is-use {
  font-weight: 500;
  color: var(--muted);
}
.search-select-list li.is-use {
  color: var(--magnetic);
  font-weight: 700;
}
.client-picker {
  position: relative;
  min-width: 0;
}
.client-picker-label {
  display: block;
  font-weight: 600;
}
.client-picker-note {
  margin: 0.35rem 0 0.5rem;
}
.client-picker-q {
  display: none;
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  font: inherit;
  color: var(--ink);
}
.client-picker.is-enhanced .client-picker-q {
  display: block;
}
.client-picker-q:focus {
  outline: none;
  border-color: var(--magnetic-soft);
  box-shadow: 0 0 0 3px var(--magnetic-mist);
}
.client-picker.is-enhanced .client-picker-value {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.client-picker-list li {
  font-weight: 400;
}
.client-picker-list .client-picker-name {
  display: block;
  font-weight: inherit;
}
.client-picker-list li.is-active-row,
.client-picker-list li.is-active-row .client-picker-name {
  font-weight: 700;
}
.client-picker-list li small {
  font-weight: 400;
}
.client-picker.is-enhanced.is-active-value .client-picker-q {
  font-weight: 700;
}
.map-flag {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}
.map-flag-matched { color: var(--ok); }
.map-flag-close { color: var(--magnetic); }
.map-flag-guessed { color: var(--warn); }
.lead-map select { min-width: 12rem; }
.lead-preview { margin-top: 0.5rem; }
.lead-preview-title {
  margin: 1rem 0 0.35rem;
  font-size: 1.05rem;
}
.quiet { color: var(--muted); font-weight: 500; }
.shell-main.mind-map-shell {
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 0;
}
.mind-map-shell .sub-tabs,
.mind-map-shell .tool-grid {
  margin-left: clamp(0.75rem, 1.5vw, 1.25rem);
  margin-right: clamp(0.75rem, 1.5vw, 1.25rem);
}
.mbd-mind-map-panel {
  overflow: hidden;
  width: 100%;
  padding: 0.75rem 0 0;
  border-radius: 0;
  border-left: none;
  border-right: none;
}
.mbd-mind-map-head {
  align-items: center;
  margin: 0 0 0.55rem;
  padding: 0 clamp(0.75rem, 1.5vw, 1.25rem);
}
.mbd-mind-map-head > div h2 { margin: 0; }
.mbd-mind-map-zoom {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}
.mbd-mind-map-zoom .ghost-btn {
  min-width: 2.1rem;
  padding: 0.25rem 0.55rem;
}
.mbd-mind-map-zoom [data-mind-zoom-label] {
  min-width: 3.2rem;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}
.mbd-mind-map-viewport {
  width: 100%;
  height: min(82vh, 920px);
  overflow: hidden;
  position: relative;
  cursor: grab;
  touch-action: none;
  background: #fbf7f8;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
}
.mind-map-shell { overflow-x: hidden; }
.mbd-mind-map-viewport:active { cursor: grabbing; }
.mbd-mind-map-viewport:focus-visible {
  outline: 2px solid var(--magnetic);
  outline-offset: -2px;
}
.mbd-mind-map-stage {
  width: 100%;
  height: 100%;
  transform-origin: 0 0;
  will-change: transform;
}
.mbd-mind-svg {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
}
.mbd-mind-answer {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  background: var(--panel-solid);
  border-radius: var(--radius);
}
.mbd-mind-answer.is-gap { border-color: rgba(154, 103, 0, 0.35); }
.mbd-mind-cite {
  display: inline-block;
  margin: 0.15rem 0.35rem 0 0;
  padding: 0.1rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 0.82rem;
}
.panel.call-find {
  padding: 0.65rem 0.8rem 0.55rem;
}
.panel.call-find .note { margin: 0.35rem 0 0; }
.call-search-form {
  display: flex;
  gap: 0.45rem;
  align-items: end;
  max-width: none;
}
.call-search-label {
  flex: 1;
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.call-search-label input {
  display: block;
  width: 100%;
  margin-top: 0.2rem;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font: inherit;
}
.call-search-form button {
  margin: 0;
  padding: 0.42rem 0.85rem;
  white-space: nowrap;
}
.recent-searches {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.4rem;
  margin: 0.45rem 0 0;
}
.recent-searches-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.recent-searches ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}
.recent-searches li {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.recent-searches li a {
  display: inline-block;
  padding: 0.12rem 0.45rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.8);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}
.recent-searches li a:hover { border-color: var(--magnetic-soft); }
.recent-searches-all {
  font-size: 0.75rem;
  margin-left: 0.15rem;
}
.call-result .panel-head h2 {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.65rem;
  align-items: center;
}
.call-activity {
  margin: 0.85rem 0 0;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}
.call-activity-head {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.65rem;
  align-items: center;
}
.call-activity-head h3 {
  margin: 0;
  font-size: 1.02rem;
}
.call-slots {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.55rem;
}
.call-slot {
  margin: 0;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.call-slot strong {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  text-transform: uppercase;
}
.call-slot p {
  margin: 0.25rem 0 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.call-slot.is-empty {
  background: transparent;
  color: var(--muted);
}
.call-slots-empty {
  margin: 0.55rem 0 0;
  font-size: 0.85rem;
}
.usage-filters { align-items: end; }
.usage-log td { vertical-align: top; }
.usage-log td.muted { max-width: 14rem; overflow-wrap: anywhere; }
.call-result.is-best {
  border-color: rgba(88, 16, 47, 0.32);
  box-shadow: var(--shadow);
}
.call-best {
  display: inline-block;
  padding: 0.12rem 0.5rem;
  border-radius: 7px;
  background: var(--magnetic);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.call-match-why {
  margin: 0 0 0.6rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}
.call-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.45rem 0.9rem;
  margin: 0 0 0.75rem;
}
.call-facts div { margin: 0; }
.call-facts dt {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
}
.call-facts dd { margin: 0.1rem 0 0; }
@media (max-width: 980px) {
  .entry-grid, .rec-grid, .kpis-3, .kpis-4 { grid-template-columns: 1fr; }
  .nav-group + .nav-group { border-left: 0; padding-left: 0; margin-left: 0; }
  .lead-pair, .lead-meta { grid-template-columns: 1fr; }
}

/* AI Lab */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.ai-lab-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.85fr);
  gap: 0.85rem;
  align-items: stretch;
}
.ai-lab-main {
  display: grid;
  gap: 0.65rem;
  min-width: 0;
}
.ai-lab-toolbar {
  display: flex;
  justify-content: flex-end;
}
.ai-lab-thread {
  min-height: 280px;
  max-height: min(55vh, 520px);
  overflow: auto;
  border: 1px solid var(--line);
  background: var(--panel-solid, var(--panel));
  padding: 0.85rem;
  display: grid;
  gap: 0.65rem;
  align-content: start;
}
.ai-bubble {
  max-width: 92%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  background: var(--panel);
}
.ai-user { justify-self: end; border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.ai-assistant { justify-self: start; }
.ai-role {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.25rem;
}
.ai-text {
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.92rem;
  line-height: 1.45;
  min-height: 1.2em;
}
.ai-text.is-md {
  white-space: normal;
}
.ai-text.is-md .ask-h {
  margin: 0.85rem 0 0.35rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
}
.ai-text.is-md h3.ask-h {
  margin-top: 0;
  font-size: 1.12rem;
}
.ai-text.is-md h4.ask-h {
  font-size: 0.92rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
}
.ai-text.is-md p {
  margin: 0.35rem 0 0.55rem;
  line-height: 1.5;
}
.ai-text.is-md .ask-list {
  margin: 0.25rem 0 0.7rem;
  padding-left: 1.15rem;
}
.ai-text.is-md .ask-list li {
  margin: 0.35rem 0;
  line-height: 1.4;
}
.ai-text.is-md .ask-meta {
  display: inline-block;
  margin-top: 0.15rem;
  font-size: 0.84rem;
  color: var(--muted);
}
.ai-text.is-md .ask-hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0.9rem 0;
}
.ai-text.is-md code {
  font-size: 0.86em;
  padding: 0.05rem 0.3rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: color-mix(in srgb, var(--panel-solid, #fff) 88%, var(--ink));
}
.ai-cites {
  margin-top: 0.65rem;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.35;
}
.ask-sources-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}
.ask-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.ai-lab-compose {
  display: grid;
  gap: 0.55rem;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 0.75rem;
}
.ai-lab-compose textarea {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  padding: 0.65rem 0.7rem;
  border: 1px solid var(--line);
  background: var(--panel-solid, #fff);
  color: inherit;
  resize: vertical;
  min-height: 72px;
}
.ai-lab-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: flex-end;
}
.ai-lab-log {
  border: 1px solid var(--line);
  background: var(--panel-solid, #111);
  color: #d7d7d7;
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 360px;
  max-height: min(70vh, 640px);
}
.ai-lab-log-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.ai-lab-log-head h2 {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #bdbdbd;
}
.ai-lab-log .ghost-btn {
  color: #ddd;
  border-color: rgba(255,255,255,0.2);
  padding: 0.25rem 0.5rem;
  font-size: 0.72rem;
}
.ai-lab-log-list {
  list-style: none;
  margin: 0;
  padding: 0.55rem 0.7rem 0.9rem;
  overflow: auto;
  font-family: var(--mono, ui-monospace, Menlo, Consolas, monospace);
  font-size: 0.72rem;
  line-height: 1.45;
}
.ai-lab-log-list li {
  padding: 0.15rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  white-space: pre-wrap;
  word-break: break-word;
}
.ai-log-ok { color: #8fd19e; }
.ai-log-warn { color: #e0c36a; }
.ai-log-error { color: #f0a0a0; }
.ai-log-info { color: #c8c8c8; }
.primary-btn, .ghost-btn {
  font: inherit;
  font-weight: 600;
  font-size: 0.86rem;
  padding: 0.55rem 0.9rem;
  cursor: pointer;
  border: 1px solid var(--line);
}
.primary-btn {
  background: var(--ink);
  color: var(--bg, #fff);
  border-color: transparent;
}
.primary-btn:disabled { opacity: 0.55; cursor: wait; }
.ghost-btn {
  background: transparent;
  color: var(--ink);
}
.mind-ask-layout {
  margin-top: 0.35rem;
}
@media (max-width: 980px) {
  .ai-lab-layout { grid-template-columns: 1fr; }
  .ai-lab-log { max-height: 280px; min-height: 220px; }
}

/* MBD Mind - ChatGPT-style Ask */
.shell-main.mind-gpt-shell {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 7.5rem);
  padding-bottom: 0;
}
.mind-gpt {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 0;
  flex: 1;
  min-height: min(72vh, 780px);
  margin: 0.35rem 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #faf8f9;
  font-family: var(--sans);
}
.mind-gpt-sidebar {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--magnetic-deep) 0%, var(--magnetic) 55%, #4a0e28 100%);
  color: #f3e8ec;
  min-height: 0;
}
.mind-gpt-sidebar-top {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.85rem 0.75rem 0.55rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.mind-gpt-new {
  width: 100%;
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  text-align: left;
}
.mind-gpt-new:hover {
  background: rgba(255, 255, 255, 0.18);
}
.mind-gpt-sidebar-toggle {
  display: none;
  color: #f3e8ec !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
  font-size: 0.78rem !important;
  padding: 0.35rem 0.55rem !important;
}
.mind-gpt-sidebar-scroll {
  flex: 1;
  overflow: auto;
  padding: 0.45rem 0.5rem;
  min-height: 0;
}
.mind-gpt-list-empty {
  margin: 0.75rem 0.5rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}
.mind-gpt-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: stretch;
  gap: 0.15rem;
  margin: 0.15rem 0;
  border-radius: 8px;
}
.mind-gpt-item.is-active {
  background: rgba(255, 255, 255, 0.14);
}
.mind-gpt-item:hover {
  background: rgba(255, 255, 255, 0.1);
}
.mind-gpt-item-open {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  width: 100%;
  margin: 0;
  padding: 0.55rem 0.6rem;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  min-width: 0;
}
.mind-gpt-item-title {
  display: block;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.86rem;
  font-weight: 500;
}
.mind-gpt-item-time {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
}
.mind-gpt-item-del {
  align-self: center;
  margin: 0 0.35rem 0 0;
  width: 1.6rem;
  height: 1.6rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}
.mind-gpt-item-del:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.mind-gpt-sidebar-foot {
  padding: 0.55rem 0.75rem 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.mind-gpt-clear-all {
  width: 100%;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.45rem 0.6rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
}
.mind-gpt-clear-all:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.mind-gpt-main {
  display: grid;
  grid-template-rows: 1fr auto;
  min-width: 0;
  min-height: 0;
  background: #faf8f9;
}
.mind-gpt-stage {
  position: relative;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.mind-gpt-thread {
  flex: 1;
  overflow: auto;
  padding: 1.25rem 1.25rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 0;
}
.mind-gpt-thread.is-empty {
  justify-content: center;
}
.mind-gpt-welcome {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  pointer-events: none;
  z-index: 1;
}
.mind-gpt-welcome[hidden] { display: none !important; }
.mind-mascot-welcome {
  display: block;
  margin: 0 0 0.85rem;
  line-height: 0;
}
.mind-mascot-welcome img {
  display: block;
  width: min(213px, 42vw);
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 10px 24px color-mix(in srgb, var(--magnetic, #58102f) 22%, transparent));
}
.mind-gpt-welcome-hello {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--magnetic);
  letter-spacing: 0.01em;
}
.mind-gpt-welcome h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  color: var(--magnetic);
  letter-spacing: -0.02em;
}
.mind-gpt-welcome p {
  margin: 0.55rem 0 0;
  max-width: 28rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.45;
}
.mind-gpt-sidebar-foot .mind-gpt-signed-in {
  margin: 0 0 0.55rem;
  padding: 0 0.15rem;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.3;
}
.mind-gpt-sidebar-foot .mind-gpt-signed-in strong {
  color: var(--ink, #1a1a1a);
  font-weight: 600;
}
.mind-gpt-msg {
  display: flex;
  width: 100%;
}
.mind-gpt-user { justify-content: flex-end; }
.mind-gpt-assistant { justify-content: flex-start; }
.mind-gpt-bubble {
  max-width: min(42rem, 92%);
  padding: 0.75rem 0.95rem;
  border-radius: 16px;
  font-size: 0.94rem;
  line-height: 1.5;
}
.mind-gpt-user .mind-gpt-bubble {
  background: var(--magnetic);
  color: #fff;
  border-bottom-right-radius: 6px;
}
.mind-gpt-assistant .mind-gpt-bubble {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  border-bottom-left-radius: 6px;
  box-shadow: var(--shadow-sm, 0 1px 2px rgba(0,0,0,0.04));
}
.mind-gpt-msg.is-thinking .mind-gpt-bubble {
  padding: 0.65rem 0.85rem;
}
.mind-gpt-msg.is-refreshing .mind-gpt-bubble {
  opacity: 0.88;
  outline: 1px dashed color-mix(in srgb, var(--magnetic, #58102f) 35%, transparent);
  outline-offset: 2px;
}
.mind-think {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 1.4em;
}
.mind-think-emoji {
  display: inline-block;
  font-size: 1.35rem;
  line-height: 1;
  animation: mind-think-bob 1.1s ease-in-out infinite;
  transform-origin: 50% 60%;
}
.mind-think-mascot {
  display: block;
  width: 36px;
  height: auto;
  flex-shrink: 0;
  animation: mind-mascot-bob 1.35s ease-in-out infinite;
  transform-origin: 50% 80%;
  filter: drop-shadow(0 2px 4px color-mix(in srgb, var(--magnetic, #58102f) 18%, transparent));
}
@keyframes mind-think-bob {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-3px) rotate(6deg); }
}
@keyframes mind-mascot-bob {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-4px) scale(1.04); }
}
.mind-gpt-text {
  white-space: pre-wrap;
  word-break: break-word;
  min-height: 1.2em;
}
.mind-gpt-text.is-md {
  white-space: normal;
}
.mind-gpt-text.is-md .ask-h {
  margin: 0.85rem 0 0.35rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--magnetic-deep);
}
.mind-gpt-text.is-md h3.ask-h {
  margin-top: 0;
  font-size: 1.08rem;
}
.mind-gpt-text.is-md h4.ask-h {
  font-size: 0.88rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.mind-gpt-text.is-md p {
  margin: 0.3rem 0 0.5rem;
  line-height: 1.55;
}
.mind-gpt-text.is-md .ask-list {
  margin: 0.25rem 0 0.65rem;
  padding-left: 1.15rem;
}
.mind-gpt-text.is-md .ask-list li {
  margin: 0.3rem 0;
}
.mind-gpt-text.is-md .ask-sub {
  display: inline-block;
  margin-top: 0.12rem;
  font-size: 0.86rem;
  color: var(--muted);
}
.mind-gpt-text.is-md .ask-hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0.85rem 0;
}
.mind-gpt-text.is-md code {
  font-size: 0.86em;
  padding: 0.05rem 0.3rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--magnetic-mist);
}
.mind-gpt-cites-wrap {
  margin-top: 0.55rem;
}
.mind-gpt-sources-label {
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted, #6e5c64);
  margin-bottom: 0.28rem;
}
.mind-gpt-charts-wrap {
  margin-top: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.mind-gpt-charts-wrap[hidden] {
  display: none !important;
}
.mind-gpt-chart {
  border-top: 1px solid color-mix(in srgb, var(--magnetic, #58102f) 18%, transparent);
  padding-top: 0.65rem;
}
.mind-gpt-chart-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--magnetic, #58102f);
  margin-bottom: 0.35rem;
}
.mind-gpt-chart-canvas {
  position: relative;
  height: 200px;
  width: 100%;
}
.mind-gpt-bars {
  display: flex;
  align-items: flex-end;
  gap: 0.55rem;
  min-height: 100px;
  padding: 0.25rem 0 0;
}
.mind-gpt-bar-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}
.mind-gpt-bar-stack {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 76px;
}
.mind-gpt-bar {
  width: 10px;
  min-height: 2px;
  border-radius: 2px 2px 0 0;
  background: var(--magnetic, #58102f);
}
.mind-gpt-bar-lab {
  font-size: 0.65rem;
  color: var(--muted, #6e5c64);
  text-align: center;
  line-height: 1.2;
  word-break: break-word;
}
.mind-gpt-cites {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.mind-gpt-cite,
a.mind-gpt-cite {
  display: inline-block;
  max-width: 14rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0.12rem 0.45rem;
  border-radius: 7px;
  border: 1px solid color-mix(in srgb, var(--magnetic) 18%, var(--line));
  background: var(--magnetic-mist);
  color: var(--magnetic-deep);
  font-size: 0.72rem;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.3;
}
a.mind-gpt-cite:hover {
  border-color: var(--magnetic-soft);
}
.mind-gpt-compose {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.55rem;
  align-items: end;
  padding: 0.75rem 1rem 1rem;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
}
.mind-gpt-compose textarea {
  width: 100%;
  min-height: 44px;
  max-height: 160px;
  resize: none;
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.4;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: inherit;
  box-shadow: inset 0 1px 2px rgba(88, 16, 47, 0.03);
}
.mind-gpt-compose textarea:focus {
  outline: none;
  border-color: var(--magnetic-soft);
  box-shadow: 0 0 0 3px var(--magnetic-mist);
}
.mind-gpt-send {
  font: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.7rem 1.1rem;
  border-radius: 12px;
  border: 0;
  background: var(--magnetic);
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
}
.mind-gpt-send:hover { background: var(--magnetic-deep); }
.mind-gpt-send:disabled {
  opacity: 0.55;
  cursor: wait;
}
@media (max-width: 860px) {
  .mind-gpt {
    grid-template-columns: 1fr;
    min-height: min(78vh, 860px);
  }
  .mind-gpt-sidebar {
    max-height: none;
  }
  .mind-gpt-sidebar.is-collapsed .mind-gpt-sidebar-scroll,
  .mind-gpt-sidebar.is-collapsed .mind-gpt-sidebar-foot {
    display: none;
  }
  .mind-gpt-sidebar-toggle {
    display: inline-flex;
    align-self: flex-start;
  }
  .mind-gpt-sidebar-scroll {
    max-height: 180px;
  }
  .mind-gpt-compose {
    padding: 0.65rem 0.75rem 0.85rem;
  }
}

.report-list-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.report-recent {
  margin: 0 0 16px;
}
.report-recent h2,
.report-list-group h2 {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}
.report-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.report-list li {
  margin: 0;
}
.report-list a {
  display: grid;
  grid-template-columns: minmax(10rem, 16rem) 1fr;
  gap: 12px;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--line);
}
.report-list li:last-child a {
  border-bottom: 0;
}
.report-list a:not(:has(span)) {
  grid-template-columns: 1fr;
}
.report-list a:hover {
  background: var(--magnetic-mist);
}
.report-list a:focus-visible {
  outline: 2px solid var(--magnetic);
  outline-offset: -2px;
}
.report-list strong {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}
.report-list span {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.35;
}
@media (max-width: 700px) {
  .report-list a {
    grid-template-columns: 1fr;
    gap: 2px;
    align-items: start;
    padding: 10px 12px;
  }
}
.sf-report-count {
  margin: 0.35rem 0 0.85rem;
}
.sf-report-group {
  margin: 1.25rem 0 0.4rem;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.sf-report-table {
  max-height: 70vh;
}
.sf-report-table table {
  min-width: 1100px;
  font-size: 0.82rem;
}
.sf-report-table th {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
  white-space: nowrap;
}
.sf-report-wide {
  min-width: 220px;
  max-width: 28rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.35;
}
.sf-report-ato-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sf-report-ato-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.bm-app:has(.sf-report-ato-page) .bm-page-head {
  display: none;
}
.shell-main.sf-report-ato-page {
  gap: 8px;
  padding-top: 8px;
}
.sf-report-ato-toolbar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0;
  padding: 6px 10px;
  min-height: 40px;
  overflow-x: auto;
}
.shell-main.report-chrome .sf-report-ato-toolbar {
  flex-wrap: nowrap;
}
.sf-report-ato-title {
  margin: 0;
  padding: 0;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  white-space: nowrap;
  flex: 0 0 auto;
}
.sf-report-ato-toolbar > label {
  flex: 0 0 auto;
}
.sf-report-ato-toolbar select {
  width: auto;
  max-width: 11rem;
  min-width: 7rem;
}
.sf-report-ato-div {
  align-self: stretch;
  width: 1px;
  min-height: 1.6rem;
  margin: 0 2px;
  background: rgba(88, 16, 47, 0.18);
  flex: 0 0 1px;
}
.sf-report-ato-toolbar-spacer {
  flex: 1 1 auto;
  min-width: 4px;
}
.sf-report-ato-toolbar .sf-report-ato-save,
.sf-report-ato-toolbar .btn,
.sf-report-ato-toolbar .report-chrome-back {
  flex: 0 0 auto;
  white-space: nowrap;
}
.sf-report-ato-toolbar .sf-report-ato-save {
  margin: 0;
  min-height: 30px;
  padding: 0.22rem 0.65rem;
}
.sf-report-ato-show {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px 10px;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
  flex: 0 0 auto;
}
.sf-report-ato-show legend {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.sf-report-ato-show-opt {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  width: auto;
  max-width: none;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
  cursor: pointer;
}
.shell-main.report-chrome .sf-report-ato-toolbar .sf-report-ato-show-opt input[type="checkbox"],
.sf-report-ato-toolbar .sf-report-ato-show-opt input[type="checkbox"] {
  width: 14px;
  height: 14px;
  min-width: 14px;
  max-width: 14px;
  margin: 0;
  padding: 0;
  flex: 0 0 14px;
}
.sf-report-ato-select--own {
  max-width: 9.5rem;
}
body:has(.sf-report-ato-present) .bm-sidebar,
body:has(.sf-report-ato-present) .bm-topbar,
body:has(.sf-report-ato-present) .workspace-bar,
body:has(.sf-report-ato-present) .bm-page-head,
body:has(.sf-report-ato-present) .bm-nav-open {
  display: none !important;
}
body:has(.sf-report-ato-present) {
  background: #f7f4f5;
}
body:has(.sf-report-ato-present) .bm-app {
  margin: 0;
  max-width: none;
}
body:has(.sf-report-ato-present) .shell-main.sf-report-ato-present {
  padding: 0;
  gap: 0;
  max-width: none;
}
.ato-present {
  min-height: 100vh;
  background:
    linear-gradient(180deg, #58102f 0, #58102f 7.5rem, transparent 7.5rem),
    linear-gradient(165deg, #faf7f8 0%, #f6f6f6 45%, #ece8e9 100%);
  color: var(--ink);
  padding: 0 0 2.5rem;
}
.ato-present-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 28px 20px;
  color: #fff;
}
.ato-present-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.ato-present-logo {
  width: 150px;
  height: auto;
  flex: 0 0 auto;
  filter: brightness(0) invert(1);
}
.ato-present-heading {
  min-width: 0;
}
.ato-present-kicker {
  margin: 0 0 2px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.82;
}
.ato-present-title {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.ato-present-exit {
  flex: 0 0 auto;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}
.ato-present-exit:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}
.ato-present-empty {
  margin: 2rem auto;
  max-width: 40rem;
  padding: 0 28px;
  color: var(--muted);
}
.ato-present-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 8px 28px 0;
}
.ato-present-card {
  background: #fff;
  border: 1px solid rgba(88, 16, 47, 0.12);
  border-radius: 10px;
  padding: 18px 20px;
  box-shadow: 0 4px 16px rgba(33, 41, 52, 0.05);
}
.ato-present-card.is-won {
  background: linear-gradient(0deg, rgba(46, 125, 50, 0.06), rgba(46, 125, 50, 0.06)), #fff;
  border-color: rgba(46, 125, 50, 0.22);
}
.ato-present-card.is-lost {
  background: linear-gradient(0deg, rgba(196, 160, 0, 0.08), rgba(196, 160, 0, 0.08)), #fff;
  border-color: rgba(196, 160, 0, 0.28);
}
.ato-present-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}
.ato-present-account {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--magnetic-deep);
}
.ato-present-opp {
  margin: 4px 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}
.ato-present-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  align-items: center;
}
.ato-present-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 7px;
  background: var(--magnetic-mist);
  color: var(--magnetic);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ato-present-badge--won {
  background: rgba(46, 125, 50, 0.12);
  color: #1f6b4a;
}
.ato-present-badge--lost {
  background: rgba(196, 160, 0, 0.16);
  color: #8a6700;
}
.ato-present-value {
  font-size: 1.05rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.ato-present-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 10px 16px;
  margin: 0 0 12px;
}
.ato-present-meta div {
  min-width: 0;
}
.ato-present-meta dt {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.ato-present-meta dd {
  margin: 2px 0 0;
  font-size: 0.92rem;
}
.ato-present-block {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(88, 16, 47, 0.1);
}
.ato-present-block h3 {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.ato-present-block p {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.45;
}
@media (max-width: 720px) {
  .ato-present-top,
  .ato-present-list {
    padding-left: 16px;
    padding-right: 16px;
  }
  .ato-present-card-head {
    flex-direction: column;
  }
  .ato-present-badges {
    justify-content: flex-start;
  }
}
.shell-main.sf-report-ato-page .sf-report-count {
  margin: 0;
  padding: 0 2px;
}
.sf-report-ato-table table {
  min-width: 1100px;
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
}
.sf-report-ato-input {
  width: 6.5rem;
  min-height: 32px;
  padding: 4px 8px;
  font: inherit;
  box-sizing: border-box;
}
.sf-report-ato-money {
  display: grid;
  grid-template-columns: 0.9rem minmax(0, 1fr);
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  max-width: 9rem;
  min-height: 32px;
  margin: 0 auto;
  box-sizing: border-box;
  text-align: left;
}
.sf-report-ato-money-symbol {
  font-weight: 600;
  line-height: 1;
  text-align: left;
}
.sf-report-ato-input--money {
  width: 100%;
  min-width: 0;
  font-variant-numeric: tabular-nums;
  text-align: left;
}
.sf-report-ato-select {
  width: 100%;
  min-width: 0;
  max-width: 8.5rem;
  margin: 0 auto;
  display: block;
}
.sf-report-ato-input--wide {
  width: 100%;
  min-width: 0;
}
.sf-report-ato-table thead th {
  border-bottom: none;
  box-shadow: none;
  text-align: center;
  vertical-align: bottom;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sf-report-ato-col--amount,
.sf-report-ato-col--closed {
  text-align: center;
}
.sf-report-ato-main td {
  border-bottom: none;
  vertical-align: middle;
  text-align: center;
  overflow-wrap: anywhere;
}
.sf-report-ato-opp .sf-report-ato-main td {
  border-top: 2px solid #8a7380;
  padding-top: 14px;
}
.sf-report-ato-opp:first-of-type .sf-report-ato-main td {
  border-top: none;
  padding-top: 0.75rem;
}
.sf-report-ato-opp .sf-report-ato-notes td {
  border-bottom: 2px solid #8a7380;
  padding-bottom: 16px;
}
.sf-report-ato-wide td {
  padding-top: 4px;
  padding-bottom: 8px;
  border-top: none;
  vertical-align: top;
}
.sf-report-ato-notes td {
  padding-bottom: 12px;
}
.sf-report-ato-opp--won > tr > td {
  background: rgba(46, 125, 50, 0.08);
}
.sf-report-ato-opp--lost > tr > td {
  background: rgba(196, 160, 0, 0.12);
}
.sf-report-ato-tip {
  position: relative;
}
.sf-report-ato-tip:hover::after {
  content: attr(data-ato-col);
  position: absolute;
  left: 6px;
  bottom: calc(100% - 2px);
  z-index: 6;
  padding: 4px 8px;
  border-radius: 4px;
  background: #1a1014;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(26, 16, 20, 0.2);
}
.sf-report-ato-wide-block {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 8px 12px;
  align-items: start;
}
.sf-report-ato-wide-label {
  padding-top: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: inherit;
}
.sf-report-ato-input--next {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  height: 36px;
  resize: none;
}
.sf-report-ato-input--notes,
.sf-report-ato-table textarea.sf-report-ato-input--notes {
  width: 100%;
  min-width: 0;
  min-height: 132px;
  padding-top: 1.7em;
  resize: vertical;
  line-height: 1.35;
  box-sizing: border-box;
}
.sf-report-ato-wide-text {
  min-height: 1.5rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.35;
}
.sf-report-ato-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
}
.sf-report-ato-check input {
  width: 18px;
  height: 18px;
}
.sf-report-filters input[type="date"] {
  min-height: 2.2rem;
}
.report-chrome-form.sf-report-filters input[type="date"] {
  min-height: 0;
}
.sf-report-source-form {
  margin: 0.35rem 0 0.55rem;
}
.sf-report-source-legend {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.sf-report-source-switch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
}
.sf-report-source-opt {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin: 0;
  padding: 0.22rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--ink);
}
.sf-report-source-opt input {
  margin: 0;
}
.sf-report-source-opt.is-on {
  border-color: var(--magnetic);
  background: rgba(88, 16, 47, 0.08);
  color: var(--magnetic);
}
.sf-report-source-banner {
  margin: 0;
  padding: 0.22rem 0.5rem;
  border-radius: 6px;
  font-size: 0.74rem;
  line-height: 1.3;
  border: 1px solid var(--line);
}
.sf-report-source-banner--salesforce {
  background: #eef7f1;
  border-color: #b7d7c3;
}
.sf-report-source-banner--mysql {
  background: #fff6e8;
  border-color: #e6c48a;
}
.sf-report-source-banner--both {
  background: #eef3fb;
  border-color: #b7c7e6;
}
.sf-report-table-dense {
  max-height: 72vh;
}
.sf-report-table-dense table {
  min-width: 960px;
  font-size: 0.75rem;
}
.sf-report-table-dense th,
.sf-report-table-dense td {
  padding: 0.32rem 0.4rem;
}
.sf-report-table-dense th {
  font-size: 0.64rem;
}
.sf-report-table-dense .sf-report-wide {
  min-width: 160px;
  max-width: 22rem;
  line-height: 1.25;
}
.sf-report-include-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 0 16px;
  padding: 12px 16px;
  border: 1px solid var(--border, #d7dde5);
  background: var(--panel, #fff);
}
.sf-report-include {
  margin: 0;
}
.sf-report-include > summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  list-style: none;
}
.sf-report-include > summary::-webkit-details-marker {
  display: none;
}
.sf-report-check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px 12px;
  margin-top: 12px;
}
.sf-report-check-grid--cols {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}
.sf-report-check-grid label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  font-size: 14px;
  line-height: 1.3;
  min-height: 44px;
}
.sf-report-check-grid input {
  margin-top: 3px;
  flex: 0 0 auto;
}
tr.is-current td {
  background: rgba(88, 16, 47, 0.06);
}

/* -- App shell: left sidebar + compact chrome -- */
:root {
  --sidebar-width: 15.5625rem;
  --sidebar-collapsed: 3.55rem;
}
.bm-skip {
  position: absolute;
  left: -999px;
  top: 0.6rem;
  z-index: 80;
  padding: 0.4rem 0.7rem;
  background: var(--magnetic);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  border-radius: 6px;
}
.bm-skip:focus {
  left: 0.6rem;
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.bm-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(33, 41, 52, 0.4);
  z-index: 40;
}
body.shell:has(.bm-sidebar) {
  display: flex;
  align-items: stretch;
  min-height: 100vh;
}
.bm-sidebar {
  flex: 0 0 var(--sidebar-width);
  width: var(--sidebar-width);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
  overscroll-behavior: contain;
  background: linear-gradient(180deg, var(--magnetic-deep) 0%, var(--magnetic) 72%, #4a0e28 100%);
  color: #f6e9ee;
  z-index: 30;
  display: flex;
  flex-direction: column;
  scrollbar-width: thin;
  scrollbar-gutter: stable;
}
.bm-sidebar.is-collapsed {
  flex-basis: var(--sidebar-collapsed);
  width: var(--sidebar-collapsed);
}
.bm-sidebar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  padding: 0.7rem 0.55rem 0.45rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.bm-sidebar.is-collapsed .bm-sidebar-top {
  justify-content: center;
}
.bm-sidebar-product {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}
.bm-sidebar-collapse,
.bm-nav-group-toggle {
  font: inherit;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.bm-sidebar-collapse {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.4rem;
  border-radius: 8px;
  color: #fff;
}
.bm-sidebar-collapse:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: none;
  filter: none;
  box-shadow: none;
  color: #fff;
}
.bm-nav-group-toggle:hover {
  background: transparent;
  transform: none;
  filter: none;
  box-shadow: none;
  color: rgba(255, 255, 255, 0.82);
}
.bm-nav-group-toggle:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.bm-sidebar .bm-sidebar-collapse,
.bm-sidebar .bm-nav-group-toggle,
.bm-sidebar .bm-nav-branch-toggle,
.bm-sidebar button.bm-nav-link {
  border: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
}
.bm-sidebar-collapse .bm-icon {
  transform: rotate(180deg);
}
.bm-sidebar.is-collapsed .bm-sidebar-collapse .bm-icon {
  transform: none;
}
.bm-nav {
  padding: 0.4rem 0.4rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.bm-nav-group-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.28rem 0.45rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.bm-nav-group-toggle .bm-icon {
  width: 0.85rem;
  height: 0.85rem;
  transform: rotate(90deg);
}
.bm-nav-group.is-folded .bm-nav-group-toggle .bm-icon {
  transform: rotate(0deg);
}
.bm-nav-items {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.bm-nav-branch {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}
.bm-nav-parent {
  display: flex;
  align-items: stretch;
  gap: 0;
  min-width: 0;
}
.bm-nav-parent > .bm-nav-link {
  flex: 1 1 auto;
  min-width: 0;
  padding-right: 0.35rem;
}
.bm-nav-parent .bm-nav-label {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.15;
}
.bm-nav-branch-toggle {
  flex: 0 0 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
}
.bm-nav-branch-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  transform: none;
  filter: none;
  box-shadow: none;
}
.bm-nav-branch-toggle:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.bm-nav-branch-toggle .bm-icon {
  width: 0.85rem;
  height: 0.85rem;
  transform: rotate(90deg);
}
.bm-nav-branch:not(.is-open) .bm-nav-branch-toggle .bm-icon {
  transform: rotate(0deg);
}
.bm-nav-sub {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0 0 0.1rem 0.7rem;
  padding-left: 0.5rem;
  border-left: 2px solid rgba(255, 255, 255, 0.18);
}
.bm-nav-branch:not(.is-open) .bm-nav-sub {
  display: none;
}
.bm-nav-group.is-folded .bm-nav-items {
  display: none;
}
.bm-sidebar.is-collapsed .bm-nav-group.is-folded .bm-nav-items {
  display: flex;
}
.bm-sidebar.is-collapsed .bm-nav-group.is-folded[data-always-folded] .bm-nav-items {
  display: none;
}
.bm-nav-link {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.34rem 0.6rem;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  min-height: 2.3rem;
  position: relative;
}
.bm-nav-link.is-sub {
  min-height: 1.7rem;
  padding: 0.12rem 0.5rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}
.bm-nav-group:not([data-nav-group="hidden"]) .bm-nav-link:not(.is-sub) {
  text-transform: uppercase;
  letter-spacing: 0;
}
.bm-sidebar button.bm-nav-link {
  width: 100%;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  border-radius: 8px;
  padding: 0.34rem 0.6rem;
}
.bm-sidebar button.bm-nav-link:hover {
  transform: none;
  filter: none;
  box-shadow: none;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.bm-nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.bm-nav-link.is-on {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  box-shadow: inset 3px 0 0 #fff;
}
.bm-nav-link .bm-icon {
  flex: 0 0 1.15rem;
  width: 1.15rem;
  height: 1.15rem;
}
.bm-nav-label {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bm-nav-link .nav-badge {
  margin-left: auto;
  background: #fff;
  color: var(--magnetic);
}
.bm-icon {
  display: block;
}
.bm-app {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.bm-topbar {
  display: flex;
  align-items: center;
  gap: 0.65rem 0.85rem;
  min-height: 3.05rem;
  padding: 0.4rem 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.bm-nav-open {
  display: none;
  align-items: center;
  gap: 0.35rem;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--magnetic);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.32rem 0.55rem;
  cursor: pointer;
  box-shadow: none;
}
.bm-nav-open:hover {
  transform: none;
  filter: none;
  box-shadow: none;
}
.bm-topbar-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  flex: 0 0 auto;
}
.bm-topbar .brand-lockup {
  margin: 0;
  gap: 0;
}
.bm-topbar .brand-lockup img {
  height: 28px;
}
.bm-topbar-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.7rem;
  min-width: 0;
  flex: 1 1 auto;
}
.bm-topbar-user {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
  margin-left: auto;
}
.bm-topbar .ghost-link {
  padding: 0.28rem 0.55rem;
  font-size: 0.74rem;
}
.bm-topbar .engine-chip,
.bm-topbar .engine-counts {
  font-size: 0.72rem;
}
.bm-page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.2rem 0.85rem;
  padding: 0.7rem 1.15rem 0;
}
.bm-page-head.is-empty {
  display: none;
}
.bm-app:has(.weekly-review) .bm-page-head {
  display: none;
}
.bm-page-head-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.15rem 0.65rem;
  min-width: 0;
}
.bm-page-head-aside {
  margin-left: auto;
}
.bm-page-head h1 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.28rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  color: var(--magnetic);
  line-height: 1.2;
}
.bm-page-head .sub {
  margin: 0;
  font-size: 0.82rem;
  max-width: 42rem;
}
.report-chrome-back {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--magnetic);
  text-decoration: none;
  white-space: nowrap;
}
.report-chrome-back:hover {
  text-decoration: underline;
}
body:has(.bm-sidebar) .shell-main {
  padding: 0.65rem 1.15rem 1.75rem;
  gap: 0.8rem;
  min-width: 0;
}
body:has(.bm-sidebar) .site-foot {
  margin-top: 0.75rem;
  padding: 0.9rem 1.15rem 1.15rem;
}
body:has(.bm-sidebar) .budget-banner {
  margin: 0.45rem 1.15rem 0;
}
.workspace-flash {
  margin: 0.4rem 1.15rem 0;
}
body:has(.bm-sidebar) .workspace-bar {
  margin: 0.5rem 1.15rem 0;
  padding: 0.4rem 0.75rem;
  gap: 0.45rem 0.85rem;
}
.workspace-brand-chip {
  align-items: center;
  min-width: 0;
}
.workspace-info {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
  cursor: help;
  padding: 0;
  box-shadow: none;
}
.workspace-info:hover {
  transform: none;
  filter: none;
  box-shadow: none;
  color: var(--magnetic);
  border-color: var(--magnetic-soft);
}
.workspace-form {
  align-items: center;
}
.workspace-label {
  flex-direction: row;
  align-items: center;
  gap: 0.35rem;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.78rem;
  font-weight: 650;
}
.workspace-label select {
  min-width: 8.5rem;
  padding: 0.32rem 0.5rem;
  font-size: 0.82rem;
}
.workspace-form button.secondary {
  padding: 0.38rem 0.75rem;
  font-size: 0.8rem;
}
.workspace-form button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  filter: none;
  pointer-events: none;
}
.bm-sidebar a:focus-visible,
.bm-sidebar button:focus-visible,
.bm-topbar a:focus-visible,
.bm-topbar button:focus-visible,
.workspace-form select:focus-visible,
.workspace-info:focus-visible,
.bm-nav-open:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.bm-topbar a:focus-visible,
.bm-topbar button:focus-visible,
.workspace-form select:focus-visible,
.workspace-info:focus-visible,
.bm-nav-open:focus-visible {
  outline-color: var(--magnetic);
}
.report-catalog-tools {
  display: flex;
  justify-content: flex-end;
}
.report-search {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  min-width: min(20rem, 100%);
}
.report-search input {
  font: inherit;
  font-weight: 500;
  color: var(--ink);
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.report-search input:focus {
  outline: none;
  border-color: var(--magnetic-soft);
  box-shadow: 0 0 0 3px var(--magnetic-mist);
}
.report-toolbar {
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  margin-bottom: 0.35rem;
}
.bm-app:has(.report-chrome) .workspace-bar {
  margin: 0.28rem 1.15rem 0;
  padding: 0.22rem 0.6rem;
}
.bm-app:has(.report-chrome) .bm-page-head {
  padding: 0.22rem 1.15rem 0;
}
.bm-app:has(.report-chrome) .bm-page-head h1 {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.bm-app:has(.report-chrome) .bm-page-head .sub {
  font-size: 0.76rem;
}
.shell-main.report-chrome {
  gap: 0.35rem;
  padding-top: 0.28rem;
  padding-bottom: 1.25rem;
}
.shell-main.report-chrome .sf-report-count {
  margin: 0;
  font-size: 0.76rem;
}
.shell-main.report-chrome .note,
.shell-main.report-chrome .report-chrome-hint {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.3;
}
.report-chrome-form,
.shell-main.report-chrome .filter-row,
.shell-main.report-chrome .report-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.65rem;
  margin: 0;
  padding: 0.28rem 0.5rem;
}
.report-chrome-form label,
.shell-main.report-chrome .filter-row label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.3rem;
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}
.report-chrome-form select,
.report-chrome-form input[type="date"],
.report-chrome-form input[type="search"],
.report-chrome-form input[type="text"],
.shell-main.report-chrome .filter-row select,
.shell-main.report-chrome .filter-row input {
  display: inline-block;
  margin: 0;
  padding: 0.28rem 0.45rem;
  min-height: 0;
  min-width: 0;
  width: 12.5rem;
  max-width: 100%;
  border-radius: 7px;
  font-size: 0.8rem;
}
.report-chrome-form input[type="text"],
.report-chrome-form input[type="search"],
.shell-main.report-chrome .filter-row input[type="text"],
.shell-main.report-chrome .filter-row input[type="search"] {
  width: 16rem;
}
.report-chrome-form .btn,
.report-chrome-form button,
.shell-main.report-chrome .filter-row .btn,
.shell-main.report-chrome .filter-row button {
  padding: 0.28rem 0.6rem;
  font-size: 0.78rem;
  margin: 0;
}
.shell-main.report-chrome .sf-report-source-opt input {
  width: 0.85rem;
  height: 0.85rem;
}
.shell-main.report-chrome .report-catalog-tools {
  margin: 0;
}
.shell-main.report-chrome .report-search {
  flex-direction: row;
  align-items: center;
  gap: 0.35rem;
  min-width: min(18rem, 100%);
}
.shell-main.report-chrome .report-search input {
  padding: 0.28rem 0.5rem;
}
.report-section.is-empty {
  display: none;
}
.bm-sidebar.is-collapsed .bm-nav-label,
.bm-sidebar.is-collapsed .bm-sidebar-product,
.bm-sidebar.is-collapsed .bm-nav-group-toggle {
  display: none;
}
.bm-sidebar.is-collapsed .bm-nav-link {
  justify-content: center;
  padding: 0.5rem 0.35rem;
}
.bm-sidebar.is-collapsed .bm-nav-sub {
  margin: 0;
  padding-left: 0;
  border-left: 0;
}
.bm-sidebar.is-collapsed .bm-nav-branch-toggle {
  display: none;
}
.bm-sidebar.is-collapsed .bm-nav-parent {
  justify-content: center;
}
.bm-sidebar.is-collapsed .bm-nav-branch:not(.is-open) .bm-nav-sub {
  display: flex;
}
.bm-sidebar.is-collapsed .bm-nav-link .nav-badge {
  position: absolute;
  top: 0.15rem;
  right: 0.12rem;
  min-width: 0.95rem;
  height: 0.95rem;
  font-size: 0.58rem;
  margin: 0;
}
.bm-sidebar.is-collapsed .bm-sidebar-top {
  justify-content: center;
  padding: 0.55rem 0.25rem;
}

@media (max-width: 980px) {
  .bm-nav-open { display: inline-flex; }
  .bm-sidebar-collapse { display: none; }
  .bm-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    transform: translateX(-105%);
    transition: transform 0.22s var(--ease);
    box-shadow: none;
    flex-basis: min(20rem, 88vw);
    width: min(20rem, 88vw);
  }
  .bm-sidebar.is-collapsed {
    flex-basis: min(20rem, 88vw);
    width: min(20rem, 88vw);
  }
  .bm-sidebar.is-collapsed .bm-nav-label,
  .bm-sidebar.is-collapsed .bm-sidebar-product,
  .bm-sidebar.is-collapsed .bm-nav-group-toggle {
    display: flex;
  }
  .bm-sidebar.is-collapsed .bm-nav-link {
    justify-content: flex-start;
    padding: 0.42rem 0.5rem;
  }
  .bm-sidebar.is-collapsed .bm-nav-branch-toggle {
    display: inline-flex;
  }
  .bm-sidebar.is-collapsed .bm-nav-parent {
    justify-content: flex-start;
  }
  .bm-sidebar.is-collapsed .bm-nav-branch:not(.is-open) .bm-nav-sub {
    display: none;
  }
  body.bm-nav-open .bm-sidebar {
    transform: translateX(0);
    box-shadow: 8px 0 28px rgba(33, 41, 52, 0.28);
    z-index: 41;
  }
  body.bm-nav-open { overflow: hidden; }
  .bm-topbar {
    flex-wrap: wrap;
    position: sticky;
  }
  .bm-topbar-meta { order: 3; width: 100%; }
  .workspace-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .workspace-label select { min-width: 0; width: 100%; }
}

@media (max-width: 720px) {
  .bm-page-head,
  body:has(.bm-sidebar) .shell-main,
  body:has(.bm-sidebar) .workspace-bar,
  body:has(.bm-sidebar) .budget-banner,
  body:has(.bm-sidebar) .site-foot {
    padding-left: 0.8rem;
    padding-right: 0.8rem;
  }
  body:has(.bm-sidebar) .workspace-bar { margin-left: 0.8rem; margin-right: 0.8rem; }
  body:has(.bm-sidebar) .budget-banner { margin-left: 0.8rem; margin-right: 0.8rem; }
}

.weekly-filters .form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1rem;
  align-items: end;
  padding: 0 1rem 1rem;
}
.weekly-filters .form-row label { min-width: 10rem; }
.weekly-filters .check { display: flex; align-items: center; gap: 0.4rem; }
.weekly-entry {
  border-top: 1px solid var(--line);
  padding: 1rem 0;
}
.weekly-entry:first-of-type { border-top: 0; }
.weekly-notes {
  white-space: pre-wrap;
  font-family: var(--mono);
  font-size: 0.9rem;
  background: var(--magnetic-mist);
  padding: 0.75rem;
  border-radius: var(--radius-sm);
}
.weekly-review .btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: flex-start;
  margin: 0.75rem 0;
}
.weekly-edit textarea { width: min(100%, 40rem); }
.weekly-preview-h { font-size: 1.1rem; margin-bottom: 0.75rem; }
.weekly-preview-section { margin: 1.35rem 0 0; }
.weekly-preview-section:first-of-type { margin-top: 0.85rem; }
.weekly-preview-section-h { margin: 0 0 0.85rem; }
.weekly-preview-entry { margin: 0 0 1.15rem; }
.weekly-preview-entry:last-child { margin-bottom: 0; }
.weekly-preview-entry p { margin: 0.25rem 0; }
.weekly-preview-entry p:first-child { margin-top: 0; }
.weekly-summary-edit-wrap { margin: 0; width: 100%; max-width: none; }
.weekly-summary-edit-wrap > .muted,
.weekly-summary-edit-wrap > .note { margin: 0 0 0.5rem; }
.weekly-summary-edit {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  width: 100%;
  max-width: none;
}
.weekly-summary-edit-label { font-weight: 600; font-size: 0.9rem; }
.weekly-summary-edit-text {
  display: block;
  width: 100%;
  max-width: none;
  min-width: 0;
  min-height: 16rem;
  padding: 0.5rem 0.65rem;
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.45;
  border: 1px solid var(--line, #c9c4bc);
  border-radius: 4px;
  resize: vertical;
  box-sizing: border-box;
}
.weekly-summary-edit-text:focus {
  outline: 2px solid var(--accent, #58102f);
  outline-offset: 1px;
}
.weekly-review .weekly-client-packs .weekly-summary-edit-actions {
  grid-column: auto;
  justify-self: start;
  width: auto;
  margin: 0;
}
.weekly-preview-blank { margin: 0.35rem 0; min-height: 0.75rem; }
.weekly-opp-doc-warn {
  color: #c00;
  font-weight: 700;
}
.weekly-summary-preview { margin: 0.5rem 0 0; }
.weekly-history-week { margin-bottom: 1.25rem; }

.weekly-toolbar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem 0.75rem;
  margin: 0 0 0.65rem;
  min-width: 0;
}
.weekly-toolbar-nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  min-width: 0;
  flex: 1 1 auto;
}
.weekly-toolbar .sub-tabs {
  margin: 0;
  flex: 0 0 auto;
  flex-wrap: nowrap;
}
.weekly-toolbar .sub-tabs a {
  padding: 0.28rem 0.65rem;
  font-size: 0.78rem;
}
.weekly-toolbar .weekly-people-mini {
  margin: 0;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  overflow-x: auto;
  min-width: 0;
}
.weekly-toolbar .weekly-people-mini a {
  padding: 0.15rem 0.45rem;
  font-size: 0.76rem;
  white-space: nowrap;
}
.weekly-toolbar .weekly-week-form {
  margin: 0;
  flex: 0 0 auto;
  margin-left: auto;
}
.weekly-toolbar .weekly-week-form select {
  max-width: 16rem;
  padding: 0.28rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 650;
}
.weekly-person-kpis-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.55rem;
  margin: 0 0 0.85rem;
  min-width: 0;
}
.weekly-person-kpis-row .weekly-client-pick {
  flex: 0 0 auto;
  align-self: stretch;
  margin: 0;
  padding: 0.45rem 0.65rem;
}
.weekly-person-kpis-row .weekly-kpis-personal {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
}
.weekly-client-pick {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  margin: 0 0 0.85rem;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.weekly-client-pick label {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.4rem 0.55rem;
  font-size: 0.82rem;
  font-weight: 700;
  margin: 0;
  white-space: nowrap;
}
.weekly-client-pick select {
  min-width: 10rem;
  max-width: 18rem;
  width: auto;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 650;
}
.weekly-sync { margin: 0 0 1rem; }
.weekly-kpis-personal {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.45rem;
  margin: 0 0 0.85rem;
}
.weekly-kpis-personal .action-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 0.5rem 0.35rem 0.55rem;
  box-shadow: none;
  text-align: center;
}
.weekly-kpis-personal .action-card:hover {
  transform: none;
  box-shadow: none;
}
.weekly-kpis-personal .action-card span {
  width: 100%;
  font-size: 0.62rem;
  letter-spacing: 0.02em;
  text-align: center;
}
.weekly-kpis-personal .action-card strong {
  width: 100%;
  font-size: 1.2rem;
  line-height: 1.15;
  margin-top: 0.15rem;
  text-align: center;
}
@media (max-width: 960px) {
  .kpis.weekly-kpis-personal {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}
.weekly-people {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 0.85rem;
  padding: 0 1rem 1rem;
}
.weekly-person-card {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  text-decoration: none;
  color: inherit;
}
.weekly-person-card:hover { border-color: var(--magnetic); }
.weekly-person-card strong { font-size: 1.25rem; }
.weekly-person-stats { font-size: 0.9rem; }
.weekly-tx-cell { width: 1%; white-space: nowrap; text-align: right; }
.weekly-happened { white-space: pre-line; }
#weekly-call-log-body tr.weekly-call-row--counts > td {
  background: #f4f7fb;
}
#weekly-call-log-body tr.weekly-call-row--counts:nth-child(even) > td {
  background: #eef3f8;
}
#weekly-call-log-body tr.weekly-call-row--opportunity-secured > td,
#weekly-call-log-body tr.weekly-call-row--opportunity-secured:nth-child(even) > td {
  background: #e2f4e8;
}
.weekly-call-code-cell {
  white-space: normal;
  min-width: 6.5rem;
}
.weekly-opportunity-firework {
  display: inline-block;
  margin-left: 0.35rem;
}
.weekly-opportunity-burst {
  position: fixed;
  width: 1px;
  height: 1px;
  z-index: 10000;
  pointer-events: none;
}
.weekly-opportunity-celebration {
  position: absolute;
  left: 50%;
  top: 50%;
  min-width: 14rem;
  padding: 0.65rem 1rem;
  border: 2px solid #d5a11e;
  border-radius: 999px;
  background: #fff9dc;
  color: #35473b;
  box-shadow: 0 0.65rem 2rem rgba(53, 71, 59, 0.28);
  font-size: 1rem;
  text-align: center;
  opacity: 1;
  transform: translate(-50%, -50%);
}
.weekly-opportunity-burst i {
  position: absolute;
  width: 0.55rem;
  height: 0.55rem;
  margin: -0.275rem;
  border-radius: 50%;
  background: #d5a11e;
  box-shadow: 0 0 0.35rem rgba(213, 161, 30, 0.75);
  animation: weekly-opportunity-spark 0.9s cubic-bezier(0.15, 0.7, 0.25, 1) var(--firework-delay) both;
}
.weekly-opportunity-burst i:nth-child(3n + 2) {
  background: #2d9b57;
  box-shadow: 0 0 0.35rem rgba(45, 155, 87, 0.75);
}
.weekly-opportunity-burst i:nth-child(3n) {
  background: #8d2d62;
  box-shadow: 0 0 0.35rem rgba(141, 45, 98, 0.75);
}
@keyframes weekly-opportunity-spark {
  0% { opacity: 0; transform: translate(0, 0) scale(0.2); }
  18% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--firework-x), var(--firework-y)) scale(0); }
}
@media (prefers-reduced-motion: reduce) {
  .weekly-opportunity-burst i { display: none; }
}
.weekly-outcome-chip {
  display: inline-block;
  margin-top: 0.2rem;
  margin-left: 0;
  padding: 0.05rem 0.35rem;
  border-radius: 3px;
  font-size: 0.72rem;
  line-height: 1.2;
  color: #3d4654;
  background: #e8ecf1;
}
.weekly-media-actions { display: inline-flex; gap: 0.25rem; align-items: flex-start; }
.weekly-media-play-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  width: 2rem;
  gap: 0.1rem;
}
.weekly-media-dur {
  display: block;
  max-width: 2rem;
  font-size: 0.62rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: #5b6470;
  text-align: center;
  overflow: hidden;
  white-space: nowrap;
}
.weekly-media-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: #111;
  cursor: pointer;
}
.weekly-media-btn.is-available {
  color: #1a7a32;
  border-color: #1a7a32;
}
.weekly-media-btn.is-empty,
.weekly-media-btn:disabled {
  color: #9aa3ad;
  border-color: #d0d5db;
  cursor: default;
  opacity: 1;
}
.weekly-media-btn.is-available:hover:not(:disabled) {
  border-color: #146028;
  color: #146028;
}
.weekly-media-btn:focus-visible { outline: 2px solid var(--magnetic, #8b1e3f); outline-offset: 2px; }
.weekly-kpi-btn {
  cursor: pointer;
  font: inherit;
}
.weekly-kpi-btn:focus-visible { outline: 2px solid var(--magnetic, #8b1e3f); outline-offset: 2px; }
.weekly-kpis-personal .weekly-kpi-btn.is-active {
  border-color: var(--magnetic, #8b1e3f);
  box-shadow: inset 0 0 0 1px var(--magnetic, #8b1e3f);
}
.weekly-type-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.65rem;
}
.weekly-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: inherit;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 650;
  cursor: pointer;
}
.weekly-chip b { font-weight: 800; }
.weekly-chip:hover { border-color: var(--magnetic, #8b1e3f); }
.weekly-chip.is-active {
  border-color: var(--magnetic, #8b1e3f);
  background: #f7eef2;
}
.weekly-chip:focus-visible { outline: 2px solid var(--magnetic, #8b1e3f); outline-offset: 2px; }
.weekly-kpi-list {
  margin: 0 0 0.65rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
}
.weekly-mini-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}
.weekly-mini-table th,
.weekly-mini-table td {
  padding: 0.3rem 0.5rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.weekly-mini-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.weekly-mini-items {
  margin: 0;
  padding: 0 0 0 1.1rem;
  font-size: 0.86rem;
}
.weekly-mini-items li { margin: 0 0 0.45rem; }
.weekly-kpi-list-foot { margin: 0.5rem 0 0; font-size: 0.82rem; }
.weekly-filter-note {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.weekly-filter-clear {
  border: 0;
  padding: 0;
  background: none;
  color: var(--accent, #8b1e3f);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 650;
  cursor: pointer;
  text-decoration: underline;
}
.weekly-filter-clear:focus-visible { outline: 2px solid var(--magnetic, #8b1e3f); outline-offset: 2px; }
.weekly-play-audio { width: 100%; margin: 0; }
.weekly-play-dialog {
  width: min(44rem, calc(100vw - 1.5rem));
  max-height: min(90vh, 42rem);
}
.weekly-play-dialog .weekly-tx-body {
  max-height: calc(min(90vh, 42rem) - 4.25rem);
}
.weekly-play-head {
  align-items: flex-start;
}
.weekly-play-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}
.weekly-play-logo {
  display: block;
  width: 7.5rem;
  height: auto;
  flex: 0 0 auto;
}
.weekly-play-heading {
  min-width: 0;
}
.weekly-play-heading h2 {
  margin: 0;
}
.weekly-play-meta {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  line-height: 1.3;
  color: #5b6470;
}
.weekly-play-body {
  display: grid;
  gap: 0.75rem;
}
.weekly-play-speakers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.weekly-play-chip {
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  padding: 0.15rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  font-size: 0.82rem;
  line-height: 1.2;
  color: #384049;
}
.weekly-play-chip.is-active {
  border-color: var(--magnetic);
  background: var(--magnetic-mist);
  color: var(--magnetic-deep);
  font-weight: 600;
}
.weekly-play-wave-wrap {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #f7f5f6;
  overflow: hidden;
  cursor: pointer;
}
.weekly-play-wave {
  display: block;
  width: 100%;
  height: 5.5rem;
}
.weekly-play-progress {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(88, 16, 47, 0.08), rgba(88, 16, 47, 0.02));
}
.weekly-play-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.weekly-play-toggle {
  min-height: 2.25rem;
  min-width: 4.5rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--magnetic);
  border-radius: var(--radius-sm);
  background: var(--magnetic);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}
.weekly-play-toggle:hover {
  background: var(--magnetic-deep);
  border-color: var(--magnetic-deep);
}
.weekly-play-time {
  font-size: 0.85rem;
  color: #5b6470;
  font-variant-numeric: tabular-nums;
}
.weekly-play-caption {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 0.7rem 0.85rem;
  min-height: 4.5rem;
}
.weekly-play-speaker-live {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--magnetic);
  min-height: 1.1rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}
.weekly-play-speaker-live .weekly-play-turn-time {
  font-weight: 500;
  color: #5b6470;
  font-variant-numeric: tabular-nums;
  font-size: 0.75rem;
}
.weekly-play-caption-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.4;
  color: var(--ink, #1a1d24);
  transition: opacity 120ms ease;
}
.weekly-play-caption-text.is-switching {
  opacity: 0.35;
}
.weekly-play-moments {
  margin-top: 0.75rem;
}
.weekly-play-moments-title,
.weekly-tx-moments-title {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #5b6470;
}
.weekly-play-moments-list,
.weekly-tx-moments-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.weekly-play-moment,
.weekly-tx-moment {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  column-gap: 0.5rem;
  row-gap: 0.1rem;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 0.35rem 0.4rem;
  border-radius: 4px;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.weekly-play-moment:hover,
.weekly-tx-moment:hover,
.weekly-play-moment:focus-visible,
.weekly-tx-moment:focus-visible {
  background: #f3ebe8;
  outline: none;
}
.weekly-play-moment-time,
.weekly-tx-moment-time {
  font-variant-numeric: tabular-nums;
  font-size: 0.8rem;
  color: #c45c26;
  font-weight: 600;
}
.weekly-play-moment-label,
.weekly-tx-moment-label {
  font-size: 0.88rem;
  font-weight: 600;
}
.weekly-tx-moment-why {
  grid-column: 2;
  font-size: 0.8rem;
  color: #5b6470;
  line-height: 1.3;
}
.weekly-tx-moments { margin-top: 0.75rem; }
@media (max-width: 640px) {
  .weekly-play-logo { width: 6rem; }
  .weekly-play-wave { height: 4.5rem; }
}
.weekly-tx-btn { padding: 0.25rem 0.55rem; font-size: 0.82rem; min-height: 2rem; }
.weekly-tx-dialog {
  width: min(40rem, calc(100vw - 1.5rem));
  max-height: min(85vh, 40rem);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.weekly-tx-dialog--wide {
  width: min(68rem, calc(100vw - 1.5rem));
  max-height: min(88vh, 48rem);
}
.weekly-tx-dialog::backdrop { background: rgba(20, 24, 32, 0.45); }
.weekly-tx-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
}
.weekly-dl-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}
.weekly-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 8px;
  box-shadow: none;
}
.weekly-icon-btn:hover {
  transform: none;
}
.weekly-icon-btn .bm-icon {
  width: 20px;
  height: 20px;
}
.weekly-icon-btn[hidden] {
  display: none;
}
.weekly-tx-head h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.25;
}
.weekly-tx-body {
  padding: 0.85rem 1rem 1rem;
  overflow: auto;
  max-height: calc(min(85vh, 40rem) - 3.5rem);
}
.weekly-tx-dialog--wide .weekly-tx-body {
  max-height: calc(min(88vh, 48rem) - 3.5rem);
}
.weekly-tx-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: start;
}
.weekly-tx-note {
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #f3f4f6;
}
.weekly-tx-note-title {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink, #1a1d24);
}
.weekly-tx-summary {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  line-height: 1.45;
}
.weekly-tx-summary:last-child { margin-bottom: 0; }
.weekly-tx-points {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  line-height: 1.4;
}
.weekly-tx-points li { margin: 0.2rem 0; }
.weekly-tx-transcript { min-width: 0; }
.weekly-tx-turns { display: flex; flex-direction: column; gap: 0.65rem; }
@media (min-width: 56rem) {
  .weekly-tx-layout {
    grid-template-columns: minmax(0, 1fr) minmax(16rem, 22rem);
    grid-template-areas: "transcript note";
  }
  .weekly-tx-transcript { grid-area: transcript; }
  .weekly-tx-note {
    grid-area: note;
    position: sticky;
    top: 0;
  }
}
.weekly-tx-turn {
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
}
.weekly-tx-turn strong {
  display: block;
  font-size: 0.8rem;
  margin: 0 0 0.25rem;
  color: var(--muted, #5a6270);
}
.weekly-tx-turn p { margin: 0; font-size: 0.92rem; white-space: pre-wrap; }
.weekly-tx-turn.role-agent { border-left: 3px solid var(--magnetic, #8b1e3f); }
.weekly-tx-turn.role-contact { border-left: 3px solid #2f5d8c; }
.weekly-tx-turn.role-reception,
.weekly-tx-turn.role-system { border-left: 3px solid #8a8f98; }
.weekly-tx-raw {
  margin: 0;
  white-space: pre-wrap;
  font: inherit;
  font-size: 0.9rem;
}
.weekly-tx-sentences {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.weekly-tx-sentence {
  margin: 0;
  padding: 0.15rem 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--ink, #1a1d24);
}
.weekly-email-meta {
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
  color: var(--muted, #5a6270);
}
.weekly-email-meta strong {
  color: inherit;
  font-weight: 600;
  margin-right: 0.35rem;
}
.weekly-people-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.7rem;
  margin: 0 0 1rem;
}
.weekly-people-mini a {
  padding: 0.2rem 0.55rem;
  border-radius: 7px;
  border: 1px solid var(--line);
  text-decoration: none;
}
.weekly-people-mini a[aria-current="page"] {
  background: var(--magnetic);
  color: #fff;
  border-color: var(--magnetic);
}
.weekly-client-packs { list-style: none; margin: 0; padding: 0 1rem 1rem; }
.weekly-client-packs li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) max-content;
  align-items: center;
  column-gap: 0.75rem;
  row-gap: 0.45rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--line);
}
.weekly-client-packs li:first-child { border-top: 0; }
.weekly-client-packs li.is-ready {
  margin: 0 -1rem;
  padding-left: 1rem;
  padding-right: 1rem;
  background: rgba(46, 125, 50, 0.1);
  border-top-color: rgba(46, 125, 50, 0.18);
}
.weekly-client-packs li.is-ready + li {
  border-top-color: rgba(46, 125, 50, 0.18);
}
.weekly-client-packs li.is-near {
  margin: 0 -1rem;
  padding-left: 1rem;
  padding-right: 1rem;
  background: rgba(245, 180, 0, 0.14);
  border-top-color: rgba(200, 140, 0, 0.22);
}
.weekly-client-packs li.is-near + li {
  border-top-color: rgba(200, 140, 0, 0.22);
}
.weekly-pack-pick {
  grid-column: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  min-width: 1.75rem;
  min-height: 2.75rem;
  cursor: pointer;
}
.weekly-pack-pick-input {
  width: 1.1rem;
  height: 1.1rem;
  margin: 0;
  accent-color: var(--magnetic);
  cursor: pointer;
}
.weekly-pack-meta {
  grid-column: 2;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(10rem, 1.55fr) 4.75rem 5.75rem 6.5rem minmax(7rem, 0.9fr);
  align-items: baseline;
  column-gap: 0.7rem;
}
.weekly-pack-name {
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: normal;
}
.weekly-pack-stat {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  justify-self: start;
}
.weekly-pack-stat-n {
  font-weight: 600;
  color: var(--ink);
}
.weekly-pack-assigned {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.weekly-review .weekly-client-packs .btn-row,
.weekly-pack-actions {
  grid-column: 3;
  margin: 0;
  flex-wrap: nowrap;
  align-items: center;
  justify-self: end;
  gap: 0.28rem;
}
.weekly-pack-pair {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.18rem;
}
.weekly-review .weekly-client-packs .weekly-pack-actions .btn,
.weekly-review .weekly-client-packs .weekly-pack-actions button {
  padding: 0.16rem 0.48rem;
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.15;
  box-shadow: none;
  white-space: nowrap;
}
.weekly-review .weekly-client-packs .weekly-pack-dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
}
.weekly-review .weekly-client-packs .weekly-pack-dl-btn .bm-icon {
  width: 0.85rem;
  height: 0.85rem;
  flex: 0 0 auto;
}
.weekly-review .weekly-client-packs .weekly-pack-actions .btn:hover,
.weekly-review .weekly-client-packs .weekly-pack-actions button:hover {
  transform: none;
}
.weekly-pack-preview-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.weekly-pack-preview-toggle + .btn {
  cursor: pointer;
}
.weekly-pack-preview-toggle:focus-visible + .btn {
  outline: 2px solid var(--magnetic);
  outline-offset: 2px;
}
.weekly-pack-preview-toggle:checked + .btn {
  border-color: var(--magnetic);
  color: var(--magnetic);
}
.weekly-pack-preview-btn {
  width: 1.55rem;
  min-width: 1.55rem;
  height: 1.55rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.weekly-pack-preview-btn .bm-icon {
  width: 0.8rem;
  height: 0.8rem;
}
.weekly-pack-preview-panel {
  display: none;
  grid-column: 1 / -1;
  justify-self: stretch;
  width: 100%;
  max-width: none;
  min-width: 0;
  box-sizing: border-box;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
}
.weekly-pack-preview-panel > .weekly-preview,
.weekly-pack-preview-panel > .weekly-summary-edit-wrap {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}
.weekly-client-packs li:has(.weekly-pack-preview-toggle-summary:checked) .weekly-pack-preview-summary,
.weekly-client-packs li:has(.weekly-pack-preview-toggle-log:checked) .weekly-pack-preview-log,
.weekly-client-packs li:has(.weekly-pack-preview-toggle-activity:checked) .weekly-pack-preview-activity,
.weekly-client-packs li:has(.weekly-pack-preview-toggle-opportunity:checked) .weekly-pack-preview-opportunity,
.weekly-client-packs li:has(.weekly-pack-preview-toggle-notable:checked) .weekly-pack-preview-notable,
.weekly-client-packs li:has(.weekly-pack-preview-toggle-charts:checked) .weekly-pack-preview-charts {
  display: block;
  width: 100%;
}
.quarterly-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  min-width: 0;
}
.quarterly-head h1 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
}
.quarterly-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin: 0;
  min-width: 0;
  max-width: 100%;
}
.quarterly-filters label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  min-width: 0;
  max-width: 100%;
  font-weight: 600;
}
.quarterly-head .quarterly-filters {
  order: 3;
  flex-basis: 100%;
}
.quarterly-older-form {
  margin: 0;
}
.weekly-quarterly-link .weekly-packs-head {
  align-items: center;
  padding-bottom: 12px;
}
.weekly-quarterly-link .quarterly-filters button {
  min-height: 44px;
}
.quarterly-older {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.quarterly-older input {
  width: 18px;
  height: 18px;
  margin: 0;
}
.quarterly-filters select {
  min-height: 44px;
  min-width: 0;
  max-width: 100%;
  flex: 1 1 auto;
}
.quarterly-head .report-chrome-back {
  margin-left: auto;
}
@media (min-width: 901px) {
  .quarterly-review .weekly-pack-meta {
    grid-template-columns: minmax(10rem, 1.55fr) 4.75rem 5.75rem 6.5rem;
  }
}
.quarterly-review .weekly-client-packs li {
  grid-template-columns: minmax(0, 1fr);
  row-gap: 12px;
}
.quarterly-review .weekly-pack-meta {
  grid-column: 1;
}
.quarterly-review .weekly-client-packs .btn-row.weekly-pack-actions {
  grid-column: 1;
  justify-self: start;
  flex-wrap: wrap;
  gap: 8px;
}
.quarterly-review .weekly-pack-pair {
  gap: 4px;
}
.quarterly-review .weekly-client-packs .weekly-pack-actions .btn {
  min-height: 44px;
  padding: 0 12px;
  font-size: 14px;
}
.quarterly-review .weekly-client-packs .weekly-pack-preview-btn {
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0;
}
.quarterly-review .weekly-client-packs .weekly-pack-dl-btn .bm-icon,
.quarterly-review .weekly-pack-preview-btn .bm-icon {
  width: 16px;
  height: 16px;
}
.quarterly-review .weekly-packs-head-actions .btn,
.quarterly-review .weekly-packs-head-actions button {
  min-height: 44px;
  font-size: 14px;
}
.quarterly-charts-preview {
  display: grid;
  gap: 12px;
  max-width: 1000px;
}
.quarterly-charts-preview h3 {
  margin: 12px 0 0;
  font-size: 18px;
}
.quarterly-charts-preview p {
  margin: 0;
  font-size: 14px;
}
.quarterly-chart-img {
  display: block;
  width: 100%;
  height: auto;
}
.quarterly-chart-table {
  max-width: 760px;
}
.quarterly-chart-table th,
.quarterly-chart-table td {
  padding: 8px;
  font-size: 14px;
}
.quarterly-chart-table th.num,
.quarterly-chart-table td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.quarterly-chart-table tr.total td {
  font-weight: 700;
}
.weekly-call-exclude-form {
  display: inline;
  margin: 0;
}
.weekly-call-exclude-form button {
  padding: 0.2rem 0.5rem;
  font-size: 0.8rem;
}
.weekly-preview-excluded {
  margin-top: 0.75rem;
}
.weekly-preview-excluded ul {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
}
.weekly-preview-excluded li {
  display: list-item;
  margin: 0.35rem 0;
}
@media (max-width: 900px) {
  .weekly-client-packs li {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .weekly-pack-pick {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    min-height: 2rem;
  }
  .weekly-pack-meta,
  .weekly-review .weekly-client-packs .btn-row,
  .weekly-pack-actions {
    grid-column: 2;
    justify-self: start;
  }
  .weekly-pack-preview-panel {
    grid-column: 1 / -1;
    width: 100%;
  }
  .weekly-pack-meta {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 0.2rem;
  }
  .weekly-pack-name {
    white-space: normal;
  }
  .weekly-pack-actions {
    flex-wrap: wrap;
  }
}
.weekly-section-h { margin: 1rem 1rem 0; font-size: 1.05rem; }
.weekly-more { margin-top: 0.5rem; }
.weekly-more summary { cursor: pointer; color: var(--muted); }

.fill-calls {
  gap: 0.45rem;
}
.fill-calls h2 {
  margin: 0.4rem 0 0.1rem;
  font-size: 0.95rem;
}
.fill-calls > .note {
  margin: 0;
  font-size: 0.88rem;
}
.fill-calls-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 0.4rem 0.55rem;
}
.fill-calls-bar label {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  margin: 0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.fill-calls-bar input,
.fill-calls-bar select {
  display: block;
  margin: 0;
  padding: 0.28rem 0.45rem;
  min-height: 2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink);
}
.fill-calls-bar label:first-child select {
  min-width: min(22rem, 70vw);
}
.fill-calls-bar input[type="number"] {
  width: 4.5rem;
}
.fill-calls-bar input[type="date"] {
  width: 9.5rem;
}
.fill-calls-bar .btn {
  padding: 0.28rem 0.8rem;
  min-height: 2rem;
}
.fill-calls-legend {
  display: grid;
  grid-template-columns: minmax(8rem, 2fr) 1fr 1fr 1fr;
  gap: 0.5rem;
  padding: 0 0.85rem 0 2rem;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}
.fill-calls-client {
  margin: 0.2rem 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
}
.fill-calls-client > summary {
  cursor: pointer;
  list-style: none;
  padding: 0.45rem 0.7rem;
}
.fill-calls-client > summary::-webkit-details-marker {
  display: none;
}
.fill-calls-client > summary::before {
  content: "";
  display: inline-block;
  width: 0.38rem;
  height: 0.38rem;
  margin-right: 0.55rem;
  border-right: 2px solid var(--magnetic);
  border-bottom: 2px solid var(--magnetic);
  transform: rotate(-45deg);
  vertical-align: 0.12rem;
}
.fill-calls-client[open] > summary::before {
  transform: rotate(45deg);
  vertical-align: 0.22rem;
}
.fill-calls-client-grid {
  display: grid;
  grid-template-columns: minmax(8rem, 2fr) 1fr 1fr 1fr;
  gap: 0.5rem;
  align-items: center;
  pointer-events: none;
}
.fill-calls-client-name {
  font-weight: 650;
}
.fill-calls-client-body {
  padding: 0 0.7rem 0.7rem;
  border-top: 1px solid var(--line);
}
.fill-calls-write {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.weekly-play-controls { flex-wrap: wrap; gap: 0.35rem 0.5rem; }
.weekly-play-tool {
  padding: 0.25rem 0.5rem;
  font-size: 0.8rem;
  line-height: 1.2;
}
.weekly-play-search-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.5rem 0 0;
}
.weekly-play-search-label {
  font-size: 0.8rem;
  color: #5b6470;
  white-space: nowrap;
}
.weekly-play-search {
  flex: 1;
  min-width: 0;
  padding: 0.3rem 0.45rem;
  font: inherit;
  font-size: 0.88rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.weekly-play-jump,
.weekly-play-extras {
  margin-top: 0.75rem;
}
.weekly-play-jump-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  max-height: 10rem;
  overflow: auto;
}
.weekly-play-jump-btn {
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  column-gap: 0.5rem;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 0.3rem 0.4rem;
  border-radius: 4px;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.weekly-play-jump-btn:hover,
.weekly-play-jump-btn:focus-visible {
  background: #eef3f8;
  outline: none;
}
.weekly-play-wtl,
.weekly-play-followups,
.weekly-play-highlights,
.weekly-play-gaps,
.weekly-tx-wtl,
.weekly-tx-gaps {
  margin-top: 0.65rem;
}
.weekly-play-wtl-note,
.weekly-play-wtl-meta {
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
  line-height: 1.4;
}
.weekly-play-gap-list,
.weekly-tx-gap-list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.88rem;
  line-height: 1.4;
  color: #7a3b12;
}
.weekly-play-copy,
.weekly-tx-copy {
  margin-top: 0.35rem;
  font-size: 0.8rem;
  padding: 0.25rem 0.5rem;
}
.desk-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin: 0;
}
.desk-title {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
}
.desk-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.desk-filters label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 650;
  color: var(--muted);
}
.desk-filters select {
  height: 44px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink, #1d2329);
  font: inherit;
  font-size: 14px;
}
.desk-filters .btn {
  box-sizing: border-box;
  height: 44px;
  min-height: 44px;
  margin: 0;
}
.desk-kpis {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
}
.desk-kpis .kpi {
  flex: 1 1 auto;
  min-width: 0;
  margin: -1px 0 0 -1px;
  padding: 8px 12px;
  border: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-radius: 0;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
  transition: none;
}
.desk-kpis .kpi:hover {
  transform: none;
  box-shadow: none;
}
.desk-kpis .kpi span {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.3;
}
.desk-kpis .kpi strong {
  margin-top: 2px;
  font-size: 20px;
  line-height: 1.2;
}
.desk-kpis .kpi em {
  margin-top: 0;
  font-size: 13px;
  line-height: 1.3;
}
.desk-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
}
.desk-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink, #1d2329);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}
.desk-tabs a.is-active {
  border-color: var(--magnetic);
  background: var(--magnetic);
  color: #fff;
}
@media (max-width: 640px) {
  .desk-tabs {
    margin-left: 0;
  }
}
.desk-section h2 {
  font-size: 16px;
  margin: 0 0 8px;
}
.desk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px 24px;
  margin-top: 24px;
  align-items: start;
}
.desk-table th,
.desk-table td {
  padding: 8px 4px;
  font-size: 14px;
}
.desk-table th:first-child,
.desk-table td:first-child {
  padding-left: 8px;
}
.desk-table th {
  font-size: 12px;
  vertical-align: bottom;
}
.desk-table td:first-child {
  min-width: 96px;
}
.desk-table .n {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.desk-table th.n {
  white-space: normal;
}
.desk-table .desk-wrap {
  overflow-wrap: anywhere;
}
.desk-nonwork td {
  vertical-align: middle;
}
.desk-live {
  margin-bottom: 16px;
}
.desk-live-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-bottom: 8px;
}
.desk-live-head h2 {
  margin: 0;
}
.desk-live-head .muted {
  font-size: 14px;
}
.desk-live-table {
  table-layout: fixed;
  width: 100%;
  min-width: 640px;
}
.desk-live-col-staff {
  width: 112px;
}
.desk-live-col-input {
  width: 200px;
}
.desk-live-col-since {
  width: 170px;
}
.desk-live-table td {
  font-size: 15px;
  vertical-align: top;
  overflow-wrap: anywhere;
}
.desk-live-table td.desk-live-input,
.desk-live-table td.desk-live-since {
  overflow-wrap: normal;
}
.desk-live-table tbody tr[data-staff] {
  cursor: pointer;
}
.desk-live-table tbody tr[data-staff]:hover td {
  background: rgba(110, 92, 100, 0.06);
}
.desk-live-person {
  font-weight: 650;
  color: inherit;
}
.desk-live-doing {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.desk-live-lines {
  flex: 1 1 auto;
  min-width: 0;
}
.desk-live-doing .bm-icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  color: var(--muted, #555);
}
.desk-live-working .desk-live-doing .bm-icon {
  color: #1a7f37;
}
.desk-live-phone .desk-live-doing .bm-icon,
.desk-live-dialling .desk-live-doing .bm-icon,
.desk-live-ringing .desk-live-doing .bm-icon {
  color: #0969da;
}
.desk-live-away .desk-live-doing .bm-icon,
.desk-live-locked .desk-live-doing .bm-icon {
  color: #9a6700;
}
.desk-live-lunch .desk-live-doing .bm-icon,
.desk-live-offwork .desk-live-doing .bm-icon {
  color: #6e5c64;
}
.desk-live-more {
  display: block;
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px dashed var(--line, #ddd);
  font-size: 14px;
  color: var(--muted, #555);
}
.desk-live-earlier {
  margin: 4px 0 0;
  padding: 4px 0 0;
  list-style: none;
  border-top: 1px dashed var(--line, #ddd);
  font-size: 14px;
  line-height: 1.35;
  color: var(--muted, #555);
}
.desk-live-earlier li {
  display: grid;
  grid-template-columns: 8.4em minmax(0, 1fr);
  gap: 12px;
}
.desk-live-earlier li + li {
  margin-top: 2px;
}
.desk-live-when {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 760px) {
  .desk-live-earlier li {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .desk-live-earlier li + li {
    margin-top: 4px;
  }
}
.desk-hist-pop {
  position: absolute;
  z-index: 60;
  width: min(560px, calc(100vw - 16px));
  max-height: 60vh;
  overflow: auto;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line, #ddd);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
  font-size: 14px;
}
.desk-hist-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 12px;
  margin-bottom: 8px;
}
.desk-hist-head a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.desk-hist-empty {
  margin: 0;
}
.desk-hist-table,
.desk-day-table {
  table-layout: fixed;
  width: 100%;
}
.desk-day-table {
  min-width: 480px;
}
.desk-hist-table td,
.desk-day-table td {
  font-size: 14px;
  vertical-align: top;
}
.desk-day-table td {
  font-size: 15px;
}
.desk-hist-time {
  width: 64px;
}
.desk-hist-len {
  width: 150px;
}
.desk-hist-table tr.desk-row-bad td,
.desk-day-table tr.desk-row-bad td {
  background: rgba(180, 35, 24, 0.06);
}
.desk-notcounted {
  display: inline-block;
  margin-left: 6px;
  padding: 0 7px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-deep);
  color: var(--muted);
  font-size: 0.78em;
  font-weight: 600;
  white-space: nowrap;
}
.desk-day-table caption {
  text-align: left;
  padding: 0 0 8px;
  font-weight: 650;
}
.desk-day {
  margin-top: 16px;
}
.desk-filters input[type="date"] {
  height: 44px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font: inherit;
}
.desk-live-table td.desk-live-input-idle,
.desk-live-table td.desk-live-input-locked {
  color: #9a6700;
}
.desk-note {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--muted, #555);
}
.desk-view-toggle {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  min-height: 44px;
  padding: 0 16px;
  font-size: 14px;
}
.desk-simple-summary {
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.desk-simple-summary p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
}
.desk-simple-summary p + p {
  margin-top: 8px;
}
.desk-simple {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.desk-simple-person {
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.desk-simple-person h2 {
  margin: 0 0 8px;
  font-size: 18px;
}
.desk-simple-person ul {
  margin: 0;
  padding-left: 20px;
}
.desk-simple-person li {
  font-size: 15px;
  line-height: 1.5;
}
.desk-simple-person li + li {
  margin-top: 4px;
}
.desk-pie {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.desk-pie-title {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.4;
}
.desk-pie-body {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}
.desk-pie-chart {
  flex: 0 0 140px;
  width: 140px;
  height: 140px;
}
.desk-pie .desk-pie-legend {
  flex: 1 1 260px;
  display: grid;
  gap: 4px;
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.desk-pie .desk-pie-legend li {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
}
.desk-pie-key {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  align-self: center;
}
.desk-pie-name {
  overflow-wrap: break-word;
}
.desk-pie-val {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.desk-pie-bar-track {
  flex: 0 0 140px;
  display: flex;
  width: 140px;
  height: 16px;
  border-radius: 4px;
  overflow: hidden;
  background: rgba(88, 16, 47, 0.05);
}
.desk-pie-bar-track span {
  display: inline-block;
  height: 100%;
  min-width: 1px;
}
.desk-filters input[type="date"] {
  box-sizing: border-box;
  height: 44px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink, #1d2329);
  font: inherit;
  font-size: 14px;
}
.desk-calls {
  margin-top: 24px;
}
.desk-calls-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-bottom: 12px;
}
.desk-calls-head h2 {
  margin: 0;
}
.desk-calls-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
}
.desk-calls-legend li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.desk-calls-legend svg {
  width: 24px;
  height: 8px;
  overflow: visible;
}
.desk-calls-person {
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.desk-calls-person + .desk-calls-person {
  margin-top: 16px;
}
.desk-calls-person h3 {
  margin: 0 0 8px;
  font-size: 18px;
}
.desk-calls-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  margin-bottom: 8px;
}
.desk-calls-card-head h3 {
  margin: 0;
}
.desk-calls-total {
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.desk-best {
  display: inline-flex;
  margin-left: 4px;
  color: #b8860b;
  vertical-align: -2px;
}
.desk-best .bm-icon {
  width: 16px;
  height: 16px;
}
.desk-calls-rule {
  margin: 4px 0 12px;
  font-size: 14px;
}
.desk-calls-rule summary {
  padding: 12px 0;
  line-height: 20px;
  cursor: pointer;
}
.desk-calls-rule ul {
  margin: 0 0 8px;
  padding-left: 20px;
}
.desk-calls-people {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.desk-calls-people.is-single {
  grid-template-columns: minmax(0, 1fr);
}
.desk-calls-people .desk-calls-person + .desk-calls-person {
  margin-top: 0;
}
.desk-calls-team {
  margin-top: 16px;
}
.desk-calls-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.desk-calls-pair .desk-calls-team {
  margin-top: 0;
}
.desk-calls-svg-narrow {
  display: none !important;
}
@media (max-width: 760px) {
  .desk-calls-people,
  .desk-calls-pair {
    grid-template-columns: minmax(0, 1fr);
  }
  .desk-calls-svg-wide {
    display: none !important;
  }
  .desk-calls-svg-narrow {
    display: block !important;
  }
}
.desk-calls-chart {
  margin: 0;
}
.desk-calls-chart figcaption {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 650;
}
.desk-calls-chart > svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 320px;
}
.desk-calls-grid {
  stroke: var(--line);
  stroke-width: 1;
}
.desk-calls-ylabel,
.desk-calls-xlabel {
  font-size: 13px;
  fill: var(--muted, #555);
  font-variant-numeric: tabular-nums;
}
.desk-calls-line {
  fill: none;
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.desk-calls-line.desk-calls-average {
  stroke: #6b7580;
  stroke-dasharray: 6 4;
}
.desk-calls-line.desk-calls-week {
  stroke: #1f6fb2;
  stroke-width: 2.5;
  stroke-dasharray: 1 5;
}
.desk-calls-line.desk-calls-day {
  stroke: var(--magnetic);
  stroke-width: 2.5;
}
.desk-calls-dot {
  stroke: none;
}
.desk-calls-dip {
  fill: rgba(214, 138, 36, 0.16);
}
.desk-calls-dot.desk-calls-average {
  fill: #6b7580;
}
.desk-calls-dot.desk-calls-week {
  fill: #1f6fb2;
}
.desk-calls-dot.desk-calls-day {
  fill: var(--magnetic);
}
.desk-calls-numbers {
  margin-top: 4px;
  font-size: 14px;
}
.desk-calls-numbers summary {
  padding: 12px 0;
  line-height: 20px;
  cursor: pointer;
}
.desk-calls-note {
  margin: 4px 0 0;
  font-size: 14px;
}
.desk-mark {
  margin: 0;
}
.desk-mark .btn {
  min-height: 44px;
  padding: 0 12px;
  font-size: 14px;
  white-space: nowrap;
}
.desk-table .desk-total td {
  font-weight: 700;
  border-top: 2px solid var(--line);
}
.desk-bar {
  display: flex;
  min-width: 120px;
  height: 12px;
  border-radius: 4px;
  background: rgba(88, 16, 47, 0.05);
  overflow: hidden;
}
.desk-bar i,
.desk-key {
  display: inline-block;
  height: 100%;
}
.desk-bar .sf,
.desk-key.sf {
  background: var(--magnetic);
}
.desk-bar .other,
.desk-key.other {
  background: #9aa4ad;
}
.desk-key {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  vertical-align: middle;
}
.bm-tooltip {
  position: fixed;
  z-index: 1000;
  max-width: min(320px, calc(100vw - 16px));
  padding: 8px 12px;
  border-radius: 8px;
  background: #1a1014;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
  text-transform: none;
  letter-spacing: 0;
  white-space: normal;
  box-shadow: 0 6px 20px rgba(26, 16, 20, 0.25);
  pointer-events: none;
}
.bm-tooltip[hidden] {
  display: none;
}
th[data-tip],
h2[data-tip],
label[data-tip],
span[data-tip] {
  cursor: help;
}
th[data-tip],
h2[data-tip],
span[data-tip] {
  text-decoration: underline dotted rgba(110, 92, 100, 0.6);
  text-underline-offset: 4px;
}
.kpi[data-tip],
td[data-tip] {
  cursor: help;
}
[data-tip]:focus-visible {
  outline: 2px solid var(--magnetic);
  outline-offset: 2px;
  border-radius: 4px;
}
.conversations-legend {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 4px 12px;
  margin: 12px 0 0;
}
.conversations-legend dt { font-weight: 600; }
.conversations-legend dd { margin: 0; }

.bm-bdg {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 7px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  background: #9aa4ad;
  white-space: nowrap;
}
.bm-bdg--plain {
  padding: 0;
  background: none;
  color: inherit;
  font-weight: inherit;
}
.bm-group {
  margin: 16px 0 24px;
}
.bm-group > summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
}
.bm-group > summary .muted {
  font-weight: 500;
  font-size: 0.85rem;
}
.bm-group-body {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.bm-table td.bm-cell-edit {
  cursor: pointer;
}
.bm-table td.bm-cell-edit:hover {
  box-shadow: inset 0 0 0 1px var(--magnetic);
}
.bm-table td.bm-cell input[type="text"],
.bm-table td.bm-cell input[type="number"],
.bm-table td.bm-cell input[type="date"],
.bm-table td.bm-cell select {
  width: 100%;
  min-height: 32px;
  border: 1px solid var(--magnetic);
  border-radius: 6px;
  padding: 2px 8px;
  font: inherit;
}
.bm-namecell {
  min-width: 12rem;
  font-weight: 600;
}
.bm-namecell a { color: inherit; }
.bm-add-item-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 8px 0 0;
}
.bm-add-item-form input[type="text"] {
  flex: 1 1 16rem;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}
.bm-view-toggle {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  min-height: 44px;
  padding: 0 16px;
  font-size: 14px;
  text-decoration: none;
}
.bm-kanban {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  overflow-x: auto;
  padding-bottom: 8px;
}
.bm-kanban-col {
  flex: 0 0 260px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 8px;
}
.bm-kanban-head {
  margin: 0 0 8px;
  font-size: 0.9rem;
  font-weight: 700;
}
.bm-card {
  display: block;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-bottom: 6px;
  text-decoration: none;
  color: inherit;
}
.bm-card:hover { border-color: var(--magnetic); }
.bm-card-sub {
  margin-top: 2px;
  font-size: 0.8rem;
  color: var(--muted);
}
.bm-more-link { font-size: 0.85rem; }
.bm-filter-status {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 8px;
  font: inherit;
  background: #fff;
}
.bm-people-wrap,
.bm-secret-wrap {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
}
.bm-secret-reveal {
  font-size: 0.8rem;
  color: var(--magnetic);
}
.bm-update-form textarea,
.bm-update-body {
  width: 100%;
  max-width: 48rem;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  resize: vertical;
  box-sizing: border-box;
}
.bm-update {
  padding: 8px 0;
  border-top: 1px solid var(--line);
}
.bm-update-meta {
  margin: 0 0 4px;
  font-size: 0.85rem;
}
.bm-update-files {
  margin: 4px 0 0;
  padding-left: 20px;
  font-size: 0.85rem;
}
.bm-update-shot {
  display: block;
  margin: 6px 0 4px;
}
.bm-update-shot img {
  display: block;
  max-width: 560px;
  max-height: 360px;
  width: auto;
  height: auto;
  border-radius: 6px;
  border: 1px solid var(--line);
}
@media (max-width: 640px) {
  .bm-kanban-col { flex-basis: 220px; }
}

.bmb-bar {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  margin: 0 0 8px;
}
.bmb-tabs {
  display: flex;
  gap: 2px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
  white-space: nowrap;
}
.bmb-tab {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.bmb-tab:hover { background: #f5f6f8; border-radius: 6px 6px 0 0; }
.bmb-tab.is-active { border-bottom-color: #0073ea; color: #0073ea; }
.bmb-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 0 0 8px;
}
.bmb-bar .bmb-toolbar {
  flex-wrap: nowrap;
  margin-left: auto;
  padding-bottom: 4px;
  flex-shrink: 0;
}
.bmb-pop-links { min-width: 140px; padding: 6px; gap: 2px; }
.bmb-pop-links a {
  display: block;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
}
.bmb-pop-links a:hover { background: #f5f6f8; }
.bmb-newbtn {
  background: #0073ea;
  color: #fff;
  border-color: #0073ea;
}
.bmb-newbtn:hover { background: #0060b9; }
.bmb-tool > select,
.bmb-tool > input[type="search"] {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 10px;
  font: inherit;
  font-size: 14px;
  background: #fff;
}
.bmb-tool > input[type="search"] { min-width: 140px; }
.bmb-pop { position: relative; }
.bmb-pop > summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  font-size: 14px;
  cursor: pointer;
  color: var(--ink);
}
.bmb-pop > summary::-webkit-details-marker { display: none; }
.bmb-pop > summary .bm-icon { width: 15px; height: 15px; }
.bmb-pop > summary:hover { background: #f5f6f8; }
.bmb-pop[open] > summary { background: #e5f0fb; color: #0073ea; }
.bmb-pop-body {
  position: absolute;
  top: 44px;
  left: 0;
  z-index: 1000;
  min-width: 240px;
  max-width: 420px;
  max-height: 70vh;
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 10px;
  display: grid;
  gap: 8px;
}
.bmb-pop-body label {
  display: grid;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.bmb-pop-body input[type="text"],
.bmb-pop-body input[type="search"],
.bmb-pop-body select {
  min-height: 32px;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 8px;
  font: inherit;
  font-size: 13px;
  color: var(--ink);
  background: #fff;
}
.bmb-pop-body label.bmb-check {
  display: flex;
  align-items: center;
  gap: 8px;
}
.bmb-pop-body > button {
  justify-self: end;
}
.bmb-pop-body.bmb-filters {
  width: min(920px, calc(100vw - 16px));
  max-height: 75vh;
  max-width: none;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}
.bmb-pop-body.bmb-filters > #bmb-filtersearch {
  grid-column: 1 / -1;
}
.bmb-pop-body.bmb-filters > button {
  grid-column: 1 / -1;
}
.bmb-pop-body.bmb-checks {
  width: min(420px, calc(100vw - 16px));
  max-width: none;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.bmb-pop-body.bmb-checks > button { grid-column: 1 / -1; }
.bmb-clear { font-size: 13px; align-self: center; }
.bmb-filterop { display: flex; gap: 4px; }
.bmb-filterop select { flex: none; max-width: 110px; }
.bmb-filterop input { flex: 1; min-width: 0; }
.bmb-more { margin-top: 8px; }
.bmb-more > summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  color: var(--ink);
}
.bmb-more > summary::-webkit-details-marker { display: none; }
.bmb-more > summary:hover { background: #f5f6f8; }
.bmb-more[open] > summary { background: #e5f0fb; color: #0073ea; }

.bmb-group { margin: 16px 0 28px; }
.bmb-group-head {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  cursor: pointer;
  user-select: none;
}
.bmb-group-head h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  color: var(--gc, #579bfc);
}
.bmb-collapse {
  border: 0;
  background: none;
  font-size: 14px;
  color: var(--gc, #579bfc);
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
}
.bmb-collapse:hover { background: rgba(0, 0, 0, 0.06); }
.bmb-count { font-size: 13px; color: var(--muted); }
.bmb-group-body .table-wrap {
  border: 1px solid var(--line);
  border-left: 6px solid var(--gc, #579bfc);
  border-radius: 0 8px 8px 8px;
  background: #fff;
  overflow-x: auto;
}
.bmb-table { table-layout: auto; width: 100%; border-collapse: collapse; }
.bmb-table th {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  text-align: center;
  padding: 8px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.bmb-table th .bmb-sort { color: inherit; text-decoration: none; }
.bmb-table th .bmb-sort:hover { color: #0073ea; }
.bmb-table td {
  padding: 0;
  border-bottom: 1px solid #eceef1;
  font-size: 14px;
  height: 36px;
  vertical-align: middle;
}
.bmb-table td.bm-cell {
  padding: 4px 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bmb-table td.bmb-cell-status { padding: 0; text-align: center; min-width: 120px; }
.bmb-table td.bmb-sel { width: 32px; text-align: center; padding: 0 4px; }
.bmb-table th.bmb-sel { width: 32px; }
.bmb-table .bm-namecell {
  min-width: 16rem;
  max-width: 26rem;
  padding: 4px 8px;
  font-weight: 400;
  text-align: left;
}
.bmb-table.bmb-namewide .bm-namecell { max-width: none; }
.bmb-table tr.bmb-row:hover td { background: #f5f6f8; }
.bmb-table tr.bmb-row:hover td.bmb-cell-status .bm-status { opacity: 0.85; }
.bmb-subrow td.bm-namecell { padding-left: 32px; }
.bmb-subtick { color: var(--muted); }
.bmb-table th.bmb-comcol { width: 52px; min-width: 52px; color: var(--muted); }
.bmb-table td.bmb-comcell { width: 52px; min-width: 52px; text-align: center; padding: 0 4px; }
.bmb-comlink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--muted);
  text-decoration: none;
}
.bmb-comlink:hover { color: #0073ea; }
.bmb-comlink .bm-icon { width: 15px; height: 15px; }
.bmb-comn { font-size: 12px; font-weight: 600; color: #0073ea; }
.bmb-table .bmb-pin {
  position: sticky;
  background: #fff;
  z-index: 2;
}
.bmb-table thead .bmb-pin { z-index: 4; }
.bmb-table tr.bmb-row:hover td.bmb-pin { background: #f5f6f8; }
.bmb-table tr.bmb-sumrow td.bmb-pin { background: #fbfcfd; }
.bmb-table tr.bmb-addrow:hover td.bmb-pin { background: #f9fafb; }
.bmb-table .bmb-pin + .bmb-pin { box-shadow: inset 1px 0 0 #eceef1; }
.bmb-table .bmb-pinlast { box-shadow: 3px 0 4px -2px rgba(0, 0, 0, 0.18); }
.bmb-updc {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  margin-left: 6px;
  padding: 0 5px;
  border-radius: 7px;
  background: #e5f0fb;
  color: #0073ea;
  font-size: 11px;
  font-weight: 600;
}
.bm-status {
  display: block;
  width: 100%;
  min-height: 36px;
  line-height: 36px;
  padding: 0 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bmb-kanban-tag {
  display: inline-block;
  min-height: 0;
  line-height: 22px;
  border-radius: 4px;
  font-size: 12px;
  padding: 0 10px;
}
.bm-person {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.bm-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  flex: 0 0 26px;
}
.bm-date-over { color: #e2445c; font-weight: 600; }
.bmb-additem { display: flex; margin: 0; }
.bmb-addgroup { margin-top: 8px; }
.bmb-addgroup input[type="text"] {
  min-height: 40px;
  min-width: 240px;
  border: 1px dashed var(--line);
  border-radius: 6px;
  padding: 0 12px;
  font: inherit;
  font-size: 14px;
  background: #fff;
}
.bmb-bulkbar {
  position: sticky;
  bottom: 12px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin: 12px auto 0;
  padding: 10px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.16);
  font-size: 14px;
}
.bmb-bulkbar select {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 8px;
  font: inherit;
}
.bmb-clearbtn {
  border: 0;
  background: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
}
.bmb-clearbtn .bm-icon { width: 14px; height: 14px; }
.bmb-ibtn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.bmb-ibtn .bm-icon { width: 16px; height: 16px; }
.bmb-bulkbar .bmb-ibtn { min-height: 36px; min-width: 36px; padding: 0 8px; }
.bmb-ibtn.bmb-danger { color: #e2445c; border-color: #e2445c; }
.bmb-ibtn.bmb-danger:hover { background: #e2445c; color: #fff; }
.bmb-colgear .bm-icon { width: 13px; height: 13px; }
.bmb-itempop-full { display: inline-flex; align-items: center; gap: 4px; }
.bmb-itempop-full .bm-icon { width: 15px; height: 15px; }
.bmb-mw-done { padding: 4px 8px; }
.bmb-mw-done .bm-icon { width: 14px; height: 14px; }
.bm-boards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  padding: 8px 0 16px;
}
.bm-boardcard {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  text-decoration: none;
  color: inherit;
}
.bm-boardcard:hover { border-color: #0073ea; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06); }
.bm-boardcard-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  flex: 0 0 40px;
}
.bm-boardcard-name { font-size: 14px; font-weight: 600; }
.bm-boardcard-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.bmb-area-title {
  margin: 12px 0 4px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.bmb-boardarea { margin-bottom: 8px; }
.bmb-item-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 4px 0 16px;
  position: relative;
  z-index: 30;
}
.bmb-item-rename {
  flex: 1 1 320px;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.bmb-item-title {
  font: inherit;
  font-size: 20px;
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 6px 10px;
  width: 100%;
  min-width: 0;
  background: transparent;
}
.bmb-item-title:hover { border-color: var(--line); }
.bmb-item-title:focus { border-color: #0073ea; background: #fff; outline: none; }
.bmb-item-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.bmb-inline { display: inline-flex; align-items: center; gap: 6px; }
.bmb-inline select { min-height: 36px; border: 1px solid var(--line); border-radius: 6px; font: inherit; padding: 0 8px; }
.bmb-item-cols {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.bmb-item-fields,
.bmb-item-updates {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  min-width: 0;
}
.bmb-item-updates h3 { margin: 0 0 12px; font-size: 16px; }
.bmb-fields { width: 100%; border-collapse: collapse; table-layout: fixed; }
.bmb-fields th {
  text-align: left;
  font-weight: 500;
  font-size: 13px;
  color: var(--muted);
  padding: 8px 12px 8px 0;
  width: 140px;
  vertical-align: middle;
  overflow-wrap: anywhere;
}
.bmb-fields td {
  padding: 4px 8px;
  font-size: 14px;
  vertical-align: middle;
  min-height: 36px;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.bmb-fields td.bmb-cell-status { padding: 0 40px 0 0; }
.bmb-fields td.bmb-cell-status .bm-status { min-height: 32px; line-height: 32px; border-radius: 4px; }
.bmb-update-attach { display: flex; gap: 8px; align-items: center; }
.bmb-filepick { cursor: pointer; }
.bmb-fname {
  font-size: 12px;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bmb-checklist { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.bmb-checklist h4 { margin: 0 0 8px; font-size: 14px; font-weight: 600; }
.bmb-checkbar { height: 6px; background: #eceef1; border-radius: 3px; overflow: hidden; margin-bottom: 8px; }
.bmb-checkbar span { display: block; height: 100%; background: #00c875; }
.bmb-checklist-items { list-style: none; margin: 0; padding: 0; }
.bmb-checklist-items li { display: flex; align-items: center; gap: 8px; padding: 3px 0; }
.bmb-checklist-items li.is-done .bmb-checktitle { text-decoration: line-through; color: var(--muted); }
.bmb-checkform { display: inline; margin: 0; }
.bmb-checkbtn, .bmb-checkdel { border: 0; background: transparent; cursor: pointer; font-size: 15px; padding: 2px 4px; color: var(--ink); }
.bmb-checkdel { color: var(--muted); font-size: 14px; }
.bmb-checkdel:hover { color: #e2445c; }
.bmb-checktitle { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.bmb-checkadd input[type="text"] { width: 100%; border: 0; outline: none; font: inherit; font-size: 14px; padding: 6px 4px; background: transparent; box-sizing: border-box; }
.bmb-checkadd input[type="text"]:focus { border-bottom: 1px solid #0073ea; }
.bmb-tplrow { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 8px; }
.bmb-tplrow .bmb-pop > summary { min-height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; font-size: 13px; }
.bmb-tplsaveform { display: grid; gap: 8px; }
.bmb-tplsaveform input[type="text"] { min-height: 30px; border: 1px solid var(--line); border-radius: 4px; padding: 0 8px; font: inherit; font-size: 13px; }
.bmb-tplline { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; }
.bmb-tplline span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bmb-shareform { display: grid; gap: 10px; min-width: 240px; }
.bmb-sharetitle { margin: 0; font-size: 13px; font-weight: 600; color: var(--muted); }
.bmb-sharelist { display: grid; gap: 4px; max-height: 220px; overflow-y: auto; }
.bmb-shareform .secondary { justify-self: start; }
.bmb-movelist { width: 100%; min-width: 280px; font: inherit; }
.bmb-movelist optgroup { font-weight: 600; }
.bmb-movelist option { font-weight: 400; }
.bmb-shareform .bmb-filtersearch { width: 100%; box-sizing: border-box; }
.bmb-shareform .muted { margin: 0; font-size: 12px; }
.bmb-group-head .bmb-gtool,
.bmb-group-head .bmb-gshare > summary { margin-left: auto; min-width: 28px; min-height: 28px; padding: 0 6px; border: 1px solid transparent; border-radius: 6px; color: var(--muted); background: transparent; cursor: pointer; }
.bmb-group-head .bmb-gtool:hover,
.bmb-group-head .bmb-gshare > summary:hover,
.bmb-group-head .bmb-gshare[open] > summary { border-color: var(--line); color: var(--text); background: #fff; }
.bmb-group-head .bmb-gshare { position: relative; margin-left: 4px; }
.bmb-group-head .bmb-gtool + .bmb-gshare { margin-left: 4px; }
.bmb-group-head .bmb-gshare .bmb-pop-body { right: 0; left: auto; }
.bmb-gnotice { margin: 0 0 8px; }
.bmb-sharedme { padding: 10px 16px; }
.bmb-sharedme .bm-linkchip { margin: 0 8px 6px 0; }
.bmb-itemlinks, .bmb-itemattach { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.bmb-itemlinks h4, .bmb-itemattach h4 { margin: 0 0 8px; font-size: 14px; font-weight: 600; }
.bmb-linklist, .bmb-attachlist { list-style: none; margin: 0 0 8px; padding: 0; }
.bmb-linklist li { display: flex; align-items: center; gap: 8px; padding: 3px 0; }
.bmb-linklist a { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bmb-attachlist li { display: flex; align-items: center; gap: 8px; padding: 3px 0; }
.bmb-thumb { max-height: 40px; max-width: 64px; border-radius: 4px; border: 1px solid var(--line); display: block; }
.bmb-linkadd { display: flex; flex-wrap: wrap; gap: 8px; }
.bmb-linkadd input[type="url"] { flex: 2 1 160px; min-width: 0; }
.bmb-linkadd input[type="text"] { flex: 1 1 120px; min-width: 0; }
.bmb-attachadd { display: flex; align-items: center; gap: 8px; }
.bmb-item-title-ro { display: inline-block; padding: 6px 0; }
.bmb-checkbtn-ro { display: inline-flex; align-items: center; justify-content: center; width: 24px; color: var(--muted); }
@media (max-width: 900px) {
  .bmb-item-cols { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .bmb-pop-body { position: fixed; left: 8px; right: 8px; top: 8px; max-width: none; max-height: calc(100vh - 16px); }
  .bmb-table .bm-namecell { min-width: 10rem; }
}

.bmb-drag {
  display: inline-block;
  margin-right: 4px;
  color: #c4c9d4;
  cursor: grab;
  font-size: 13px;
  line-height: 1;
  user-select: none;
  vertical-align: middle;
}
.bmb-drag:hover { color: #0073ea; }
tr.bmb-row.bmb-dragging { opacity: 0.4; }
tr.bmb-row.bmb-drop-before td { box-shadow: inset 0 2px 0 #0073ea; }
.bmb-group.bmb-drop-into .bmb-group-head { outline: 2px dashed #0073ea; outline-offset: -2px; }
.bm-card { cursor: grab; }
.bm-card.bmb-dragging { opacity: 0.4; }
.bm-kanban-col.bmb-drop-into { outline: 2px dashed #0073ea; outline-offset: -2px; }
.bmb-khint { font-size: 12px; color: var(--muted); margin: 0 0 8px; }
.bmb-kdrag {
  cursor: grab;
  color: #c3c9d4;
  padding: 2px 4px;
  user-select: none;
  line-height: 1;
}
.bmb-kdrag:hover { color: #0073ea; }
.bmb-kdrag:focus-visible { outline: 2px solid #0073ea; outline-offset: 1px; border-radius: 3px; }
.bmb-kadd { margin-top: 6px; }
.bmb-kadd input[type="text"] { width: 100%; box-sizing: border-box; }
.bm-card-meta { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin-top: 4px; }
.bm-card-age { display: block; font-size: 11px; margin-top: 2px; }
.bmb-table td.bmb-sel { width: 52px; }
.bmb-table th.bmb-sel { width: 52px; }
.bm-boardcard { position: relative; }
.bm-boardcard.is-archived { opacity: 0.65; }
.bm-boardcard-link {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}
.bm-boardcard-body { display: flex; flex-direction: column; min-width: 0; }
.bmb-fav {
  position: absolute;
  top: 6px;
  right: 8px;
  border: 0;
  background: transparent;
  color: #c4c9d4;
  font-size: 15px;
  cursor: pointer;
  padding: 2px 4px;
  line-height: 1;
}
.bmb-fav:hover, .bmb-fav.is-on { color: #ffcb00; }
.bmb-lock {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 5px;
  vertical-align: middle;
}
.bmb-area-collapse {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  color: var(--muted);
  padding: 0 4px 0 0;
}
.bmb-ord { white-space: nowrap; }
.bmb-ord .secondary { padding: 2px 8px; min-height: 28px; }
.bmb-num { width: 64px; }
.bmb-open { font-size: 12px; color: #0073ea; }

.bmb-th { position: relative; padding-right: 26px; }
.bmb-th[draggable="true"] { cursor: grab; }
.bmb-th.bmb-dragging { opacity: 0.4; }
.bmb-th.bmb-drop-target { box-shadow: inset 3px 0 0 #0073ea; }
.bmb-colresize {
  position: absolute;
  top: 0;
  right: 0;
  width: 7px;
  height: 100%;
  cursor: col-resize;
  z-index: 5;
}
.bmb-colresize:hover { background: rgba(0, 115, 234, 0.25); }
body.bmb-resizing { cursor: col-resize; user-select: none; }
body.bmb-resizing * { pointer-events: none !important; }
body.bmb-resizing .bmb-colresize { pointer-events: auto !important; }
.bmb-table td.bm-cell { text-align: center; }
.bmb-table td.bm-t-email, .bmb-table td.bm-t-longtext { text-align: left; }
.bm-namecell { position: relative; }
.bmb-colgear {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  opacity: 0;
  line-height: 1;
}
.bmb-th:hover .bmb-colgear, .bmb-colgear:focus { opacity: 1; }
.bmb-colgear:hover { background: #e5f0fb; color: #0073ea; }

.bmb-filepop { min-width: 240px; max-width: 340px; }
.bmb-filelist { display: grid; gap: 4px; max-height: 200px; overflow: auto; }
.bmb-filerow { display: flex; align-items: center; gap: 6px; }
.bmb-filerow .bm-filechip { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bmb-filerow-x {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 15px;
  cursor: pointer;
  padding: 0 4px;
  border-radius: 4px;
  line-height: 1.4;
}
.bmb-filerow-x:hover { background: #fde8e8; color: #d83a52; }
.bmb-fileempty { font-size: 13px; color: var(--muted); padding: 2px 0; }
.bmb-fileform { display: flex; gap: 6px; align-items: center; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.bmb-fileform input[type="file"] { font-size: 12px; flex: 1; min-width: 0; }
.bmb-fileup {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 13px;
  cursor: pointer;
  color: var(--ink);
}
.bmb-fileup:hover { background: #f5f6f8; border-color: #0073ea; color: #0073ea; }
.bmb-fileup:disabled { opacity: 0.5; cursor: default; }

.bmb-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px 20px;
}
.bmb-form-wide { grid-column: 1 / -1; }
.bmb-form-f > label {
  display: grid;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.bmb-form-f input:not([type="checkbox"]):not([type="file"]),
.bmb-form-f select,
.bmb-form-f textarea {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 10px;
  font: inherit;
  font-size: 14px;
  font-weight: 400;
  background: #fff;
}
.bmb-form-f textarea { padding: 8px 10px; }
.bmb-form-f select[multiple] { min-height: 0; height: auto; padding: 6px 10px; }
.bmb-form-f input[type="file"] { font-size: 13px; }
.bmb-form-check { display: flex; align-items: center; gap: 8px; font-weight: 400; min-height: 36px; }
.bmb-form-tl { display: flex; align-items: center; gap: 8px; }
.bmb-form-tl input { flex: 1; }
.bmb-form-actions { margin: 16px 0 0; }

.bmb-addrow td { border-top: 1px solid var(--line); }
.bmb-addrow .bm-namecell { padding: 0 8px; }
.bmb-additem input[name="name"] {
  width: 100%;
  min-height: 34px;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  padding: 0;
  outline: none;
}
.bmb-additem input[name="name"]::placeholder { color: var(--muted); }
.bmb-addrow:hover { background: #f9fafb; }
.bmb-addrow .bmb-addrest { border-left: none; }

.bmb-optpop {
  position: fixed;
  z-index: 9999;
  min-width: 180px;
  max-width: 280px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-height: 320px;
  overflow-y: auto;
}
.bmb-opt {
  border: 0;
  border-radius: 4px;
  min-height: 32px;
  padding: 0 12px;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bmb-opt:hover { opacity: 0.85; }
.bmb-opt.is-current { outline: 2px solid #0073ea; outline-offset: -2px; }
.bmb-opt.bmb-opt-person {
  background: transparent;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
}
.bmb-opt.bmb-opt-person:hover { background: #f5f6f8; }
.bmb-opt.bmb-opt-person.is-current { background: #e5f0fb; }
.bmb-opt-av { width: 24px; height: 24px; flex: 0 0 24px; font-size: 10px; background: #579bfc; }
.bmb-opt.bmb-opt-clear {
  background: transparent;
  color: var(--muted);
  border-top: 1px solid var(--line);
  border-radius: 0;
  margin-top: 2px;
}
.bmb-opt.bmb-opt-clear:hover { color: #e2445c; }

.bmb-colpop {
  position: fixed;
  z-index: 9999;
  width: 230px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bmb-colpop-f {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 12px;
  color: var(--muted);
}
.bmb-colpop-f input[type="text"], .bmb-colpop-f select {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 8px;
  font: inherit;
  font-size: 13px;
}
.bmb-colpop-f.bmb-check { flex-direction: row; align-items: center; gap: 6px; }
.bmb-colpop-actions { display: flex; gap: 6px; align-items: center; }
.bmb-colpop-actions .secondary { flex: 1; }
.bmb-colbtn {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 4px;
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
  cursor: pointer;
  color: inherit;
}
.bmb-colbtn:hover { background: #f5f6f8; }
.bmb-colbtn.bmb-danger { color: #e2445c; border-color: #e2445c; }
.bmb-colbtn.bmb-danger:hover { background: #e2445c; color: #fff; }

.bm-cell.is-editing { padding: 0 !important; }
.bm-cell.is-editing input[type="text"],
.bm-cell.is-editing input[type="number"],
.bm-cell.is-editing input[type="date"],
.bm-cell.is-editing select {
  display: block;
  width: 100%;
  height: 36px;
  border: 0;
  outline: 2px solid #0073ea;
  outline-offset: -2px;
  padding: 0 8px;
  font: inherit;
  font-size: 14px;
  background: #fff;
  box-sizing: border-box;
}
.bm-cell.is-editing input[type="checkbox"] { margin: 10px 8px; }
.bmb-tledit { display: flex; gap: 4px; padding: 2px; }
.bmb-tledit input { flex: 1; min-width: 0; height: 32px; border: 1px solid var(--line); border-radius: 4px; padding: 0 6px; font: inherit; font-size: 12px; }
.bm-celltxt {
  display: inline-block;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}
.bmb-table td.bm-cell { max-width: 260px; }
.bmb-fields td.bm-cell .bm-celltxt { max-width: none; white-space: normal; }
td.bm-cell-edit { position: relative; }
.bmb-celledit {
  position: absolute;
  top: 2px;
  right: 2px;
  border: 0;
  background: #fff;
  color: var(--muted);
  font-size: 11px;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  opacity: 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}
td.bm-cell-edit:hover .bmb-celledit { opacity: 1; }
.bmb-celledit:hover { color: #0073ea; }
.bmb-calbar { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.bmb-calbar h3 { margin: 0; font-size: 16px; }
.bmb-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.bmb-cal-dow { background: #f5f6f8; padding: 6px 8px; font-size: 12px; font-weight: 600; color: var(--muted); }
.bmb-cal-day { background: #fff; min-height: 96px; padding: 6px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.bmb-cal-empty { background: #fafafa; }
.bmb-cal-today { outline: 2px solid #0073ea; outline-offset: -2px; }
.bmb-cal-num { font-size: 12px; font-weight: 600; color: var(--muted); }
.bmb-cal-item { display: block; font-size: 12px; background: #e5f0fb; color: inherit; border-radius: 4px; padding: 2px 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; }
.bmb-cal-item:hover { background: #d5e8fb; }
.bmb-cal-more { font-size: 11px; color: var(--muted); }
.bm-secret { display: inline-flex; align-items: center; gap: 6px; }
.bm-secret-reveal {  border: 0;
  background: transparent;
  color: #0073ea;
  font-size: 11px;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
}
.bm-secret-reveal:hover { background: #e5f0fb; }
.bm-empty {
  display: block;
  text-align: center;
  color: #c9cdd6;
  font-size: 13px;
  font-weight: 400;
  line-height: 1;
  user-select: none;
}
td.bm-cell-edit:hover .bm-empty { color: #0073ea; }
.bm-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: #00c875;
  color: #fff;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
}
.bm-check.bm-off { background: #fff; border: 1.5px solid #c3c9d4; color: transparent; }
td.bm-cell-edit:hover .bm-check.bm-off { border-color: #0073ea; }
.bmb-table td .bm-check { display: flex; margin: 0 auto; }
.bmb-table th, .bmb-table td { border-right: 1px solid #f0f1f4; }
.bmb-table th:last-child, .bmb-table td:last-child { border-right: none; }
.bmb-table td.bm-t-date, .bmb-table td.bm-t-timeline, .bmb-table td.bm-t-checkbox, .bmb-fields td.bm-t-date, .bmb-fields td.bm-t-timeline, .bmb-fields td.bm-t-checkbox { text-align: center; }
td.bm-al-c { text-align: center !important; }
td.bm-al-r { text-align: right !important; }
td.bm-al-l { text-align: left !important; }
.bmb-opted { display: block; }
.bmb-opted-row { display: flex; align-items: center; gap: 6px; margin-bottom: 5px; }
.bmb-opted-color { width: 30px; height: 26px; padding: 0; border: 1px solid var(--line); border-radius: 5px; background: #fff; cursor: pointer; flex: none; }
.bmb-opted-name { flex: 1; min-width: 0; }
.bmb-opted-rm {
  border: none; background: none; color: var(--muted); cursor: pointer;
  font-size: 15px; line-height: 1; padding: 2px 5px; border-radius: 4px;
}
.bmb-opted-rm:hover { color: #e2445c; background: #fee2e2; }
.bmb-opted-add {
  border: 1px dashed #c9cdd6; background: none; color: var(--muted); cursor: pointer;
  font-size: 12px; padding: 4px 10px; border-radius: 6px; width: 100%;
}
.bmb-opted-add:hover { color: #0073ea; border-color: #0073ea; }

.bm-autoid { color: var(--muted); font-size: 12px; white-space: nowrap; }
.bm-linkchip {
  display: inline-flex; align-items: center; max-width: 100%;
  padding: 1px 8px; border-radius: 10px; background: #eef3fc; color: #1a5fd0;
  font-size: 12px; text-decoration: none; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; margin: 0 2px;
}
.bm-linkchip:hover { background: #dce9fb; }
.bm-prog { display: inline-flex; align-items: center; gap: 6px; width: 100%; }
.bm-prog-bar {
  display: inline-block; flex: 1; min-width: 40px; height: 6px;
  background: #eceff4; border-radius: 3px; overflow: hidden;
}
.bm-prog-fill { display: block; height: 100%; background: #00c875; border-radius: 3px; }
.bm-prog-pct { font-size: 12px; color: var(--muted); white-space: nowrap; }
.bm-tt { display: inline-flex; align-items: center; gap: 6px; }
.bm-tt-secs { font-variant-numeric: tabular-nums; font-size: 12.5px; }
.bm-tt-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #e2445c;
  display: inline-block; animation: bm-tt-blink 1.2s ease-in-out infinite;
}
@keyframes bm-tt-blink { 50% { opacity: 0.3; } }
.bm-tt-btn {
  border: 0; background: #eef3fc; color: #1a5fd0; font-size: 11px;
  padding: 2px 8px; border-radius: 8px; cursor: pointer;
}
.bm-tt-btn:hover { background: #dce9fb; }
.bmb-popsearch {
  width: 100%; box-sizing: border-box; margin-bottom: 6px;
  padding: 5px 8px; border: 1px solid var(--line); border-radius: 6px; font-size: 13px;
}
.bmb-multilist { max-height: 260px; overflow-y: auto; }
.bmb-opt-multi { display: block; width: 100%; text-align: left; }
.bmb-opt-multi.is-current { background: #eef3fc !important; color: #1a5fd0; font-weight: 600; }

.bmb-gantt { overflow-x: auto; }
.bmb-gantt-grid { position: relative; min-width: 100%; }
.bmb-gantt-row {
  display: grid; grid-template-columns: 220px 1fr; align-items: center;
  border-bottom: 1px solid #f0f1f4; min-height: 34px;
}
.bmb-gantt-name {
  padding: 4px 10px; font-size: 13px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; border-right: 1px solid var(--line);
}
.bmb-gantt-track { position: relative; height: 26px; }
.bmb-gantt-bar {
  position: absolute; top: 4px; height: 18px; border-radius: 9px;
  background: #579bfc; color: #fff; font-size: 11px; line-height: 18px;
  padding: 0 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-decoration: none; min-width: 12px;
}
.bmb-gantt-bar:hover { filter: brightness(0.92); color: #fff; }
.bmb-gantt-months { display: flex; border-bottom: 1px solid var(--line); }
.bmb-gantt-month {
  flex: 1; min-width: 90px; padding: 6px 8px; font-size: 11.5px;
  color: var(--muted); border-right: 1px solid #f0f1f4; text-align: center;
}
.bmb-gantt-nav { display: inline-flex; gap: 6px; align-items: center; }
.bmb-gantt-grp .bmb-gantt-name { background: #f7f8fa; font-size: 12px; }

.bmb-dash-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
  margin-bottom: 16px;
}
.bmb-dash-stat { padding: 12px 16px; }
.bmb-dash-stat .panel-title { margin: 0 0 4px; }
.bmb-big { font-size: 26px; font-weight: 700; margin: 0; line-height: 1.2; }
.bmb-dash-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 900px) { .bmb-dash-grid { grid-template-columns: repeat(2, 1fr); } .bmb-dash-cols { grid-template-columns: 1fr; } }
.bmb-mystats { display: flex; gap: 8px; margin-bottom: 12px; }
.bmb-mw-done { min-height: 28px; padding: 2px 8px; font-size: 12px; }
.bmb-confirm-ov {
  position: fixed;
  inset: 0;
  z-index: 10010;
  background: rgba(30, 34, 45, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.bmb-confirm {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  padding: 16px;
  max-width: 360px;
  width: 100%;
}
.bmb-confirm-msg { margin: 0 0 12px; font-size: 14px; }
.bmb-confirm-actions { display: flex; justify-content: flex-end; gap: 8px; }
.bmb-searchbar { display: flex; gap: 8px; }
.bmb-searchbar input { flex: 1; max-width: 480px; }
.bmb-bars { display: flex; flex-direction: column; gap: 4px; }
.bmb-bar-row { display: grid; grid-template-columns: 160px 1fr 40px; align-items: center; gap: 8px; }
.bmb-bar-label { font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bmb-bar-track { display: block; height: 14px; background: #f0f1f4; border-radius: 7px; overflow: hidden; }
.bmb-bar-fill { display: block; height: 100%; border-radius: 7px; }
.bmb-bar-n { font-size: 12px; color: var(--muted); text-align: right; }

#bm-reminder-host {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 340px;
}
.bm-reminder {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid #0073ea;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  padding: 10px 12px;
  font-size: 13px;
}
.bm-reminder-head { display: flex; align-items: center; gap: 6px; }
.bm-reminder-head strong { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.bm-reminder-x {
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--muted);
  font-size: 12px;
  padding: 2px 4px;
}
.bm-reminder-body { margin-top: 6px; }
.bm-reminder-body p { margin: 4px 0; }
.bm-reminder-actions { display: flex; gap: 8px; align-items: center; }
.bm-reminder-actions .secondary { min-height: 26px; padding: 0 8px; font-size: 12px; }

.bmb-invite label input[type="datetime-local"],
.bmb-invite label input[type="date"],
.bmb-invite label input[type="number"],
.bmb-invite label input[type="text"] {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 8px;
  font: inherit;
  font-size: 13px;
}

.lf-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 0.5rem 0;
}
fieldset.lf-checks {
  border: 0;
  padding: 0;
  min-width: 0;
}
fieldset.lf-checks legend {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  padding: 0;
  margin-bottom: 0.5rem;
}
.lf-checks .check {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0;
}
.lf-checks .check input {
  width: auto;
  margin: 0;
}
.lf-adv {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 0.6rem 0.85rem;
  background: #fff;
}
.lf-adv > summary {
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
}
.lf-adv[open] > summary {
  margin-bottom: 0.4rem;
  color: var(--ink);
}
.lf-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem;
}
.lf-filters label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.lf-filters input,
.lf-filters select {
  display: block;
  margin-top: 0.25rem;
  min-height: 38px;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  font: inherit;
  color: var(--ink);
}
.lf-filters button,
.lf-filters .btn {
  min-height: 32px;
  border-radius: 7px;
}
@media (max-width: 720px) {
  .lf-filters { flex-direction: column; align-items: stretch; }
  .lf-filters label { width: 100%; }
  .lf-filters button, .lf-filters .btn { width: 100%; text-align: center; }
}

.bm-boardcard-new {
  justify-content: center;
  border-style: dashed;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  gap: 10px;
}
.bm-boardcard-new:hover { border-color: #0073ea; color: #0073ea; box-shadow: none; }
.bm-boardcard-newicon { font-size: 20px; line-height: 1; }
.bm-boardcard-newtxt { font-size: 14px; font-weight: 500; }
.bmb-newboard {
  width: min(26rem, calc(100vw - 2rem));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.22);
  max-height: calc(100vh - 2rem);
}
#bmb-newboard { width: min(34rem, calc(100vw - 2rem)); }
.bmb-newboard::backdrop { background: rgba(20, 24, 32, 0.45); }
.bmb-newboard form { margin: 0; }
.bmb-newboard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 4px;
}
.bmb-newboard-head h2 { margin: 0; font-size: 20px; font-weight: 600; }
.bmb-newboard-x {
  border: 0;
  background: transparent;
  font-size: 20px;
  color: var(--muted);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  line-height: 1;
}
.bmb-newboard-x:hover { background: #f5f6f8; color: var(--ink); }
.bmb-newboard-body { display: grid; gap: 12px; padding: 12px 20px; }
.bmb-nb-field { display: grid; gap: 6px; font-size: 13px; font-weight: 500; }
.bmb-nb-field input[type="text"], .bmb-nb-field select {
  width: 100%;
  box-sizing: border-box;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 10px;
  font: inherit;
  font-size: 14px;
  background: #fff;
}
.bmb-nb-field input[type="text"]:focus, .bmb-nb-field select:focus { border-color: #0073ea; outline: none; }
.bmb-nb-privacy { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.bmb-nb-privacy legend { font-size: 13px; font-weight: 500; padding: 0; margin-bottom: 6px; }
.bmb-nb-privacy .bmb-nb-people { grid-column: 1 / -1; margin-top: 4px; }
.bmb-nb-opt {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
}
.bmb-nb-opt:hover { border-color: #0073ea; }
.bmb-nb-opt:has(input:checked) { border-color: #0073ea; background: #f0f7ff; }
.bmb-nb-opt input { margin-top: 3px; }
.bmb-nb-opt-body { display: grid; gap: 2px; }
.bmb-nb-opt-t { font-size: 14px; font-weight: 600; }
.bmb-nb-opt-d { font-size: 12px; color: var(--muted); }
.bmb-nb-note { margin: 0; font-size: 13px; color: var(--muted); }
.bmb-newboard-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  background: #f7f8fa;
  border-radius: 0 0 8px 8px;
}
.bmb-area-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 4px;
}
.bmb-area-head .bmb-area-title { margin: 0; flex: 1 1 auto; }
.bmb-secord { display: inline-flex; gap: 4px; }
.bmb-secnav {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.bmb-secnav:hover { border-color: #0073ea; color: #0073ea; }
.bmb-nb-people { display: grid; gap: 8px; }
.bmb-nb-people[hidden] { display: none; }
.bmb-nb-people input[type="search"] {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 10px;
  font: inherit;
}
.bmb-nb-peoplelist {
  display: grid;
  gap: 2px;
  max-height: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px;
}
.bmb-nb-person {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 400;
  padding: 4px 6px;
  border-radius: 4px;
  cursor: pointer;
}
.bmb-nb-person:hover { background: #f5f6f8; }

.bm-kanban-head {
  display: grid;
  justify-items: center;
  gap: 3px;
  font-size: 13px;
}
.bm-kanban-head .muted { font-size: 12px; font-weight: 500; }
.bm-card-link {
  display: block;
  color: var(--ink);
  font-size: 14px;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.bm-card-link:hover { color: #0073ea; text-decoration: underline; }
.bm-card-meta .bm-status {
  width: auto;
  min-height: 22px;
  line-height: 22px;
  padding: 0 8px;
  font-size: 12px;
  border-radius: 4px;
}
.bmb-kadd input[type="text"] {
  width: 100%;
  box-sizing: border-box;
  min-height: 36px;
  border: 1px dashed transparent;
  border-radius: 6px;
  padding: 0 10px;
  font: inherit;
  font-size: 14px;
  color: var(--muted);
  background: transparent;
}
.bmb-kadd input[type="text"]:hover { border-color: var(--line); }
.bmb-kadd input[type="text"]:focus {
  border-color: #0073ea;
  border-style: solid;
  background: #fff;
  color: var(--ink);
  outline: none;
}

.bmb-itempop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(20, 24, 32, 0.45);
}
.bmb-itempop[hidden] { display: none; }
.bmb-itempop-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(720px, 96vw);
  background: #fff;
  box-shadow: -16px 0 48px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  animation: bmb-itempop-in 0.18s ease-out;
}
@keyframes bmb-itempop-in {
  from { transform: translateX(40px); opacity: 0.6; }
  to { transform: none; opacity: 1; }
}
.bmb-itempop-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 12px;
  border-bottom: 1px solid var(--line);
  flex: 0 0 auto;
}
.bmb-itempop-x {
  border: 0;
  background: transparent;
  font-size: 20px;
  color: var(--muted);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  line-height: 1;
}
.bmb-itempop-x:hover { background: #f5f6f8; color: var(--ink); }
.bmb-itempop-full {
  margin-left: auto;
  font-size: 13px;
  color: #0073ea;
  text-decoration: none;
}
.bmb-itempop-full:hover { text-decoration: underline; }
.bmb-itempop-frame { flex: 1; border: 0; width: 100%; }

.bmb-sumrow td { border-top: 1px solid var(--line); background: #fbfcfd; }
.bmb-sumcell { padding: 4px 8px; height: 22px; }
.bmb-sumbar {
  display: flex;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  background: #eceef1;
}
.bmb-sumbar span { display: block; height: 100%; }
.bmb-sumnum { font-size: 12px; color: var(--muted); font-weight: 600; float: right; }
