:root {
  --paper: #f4f5f8;
  --navy: #2a3144;
  --navy-2: #2a3144;
  --navy-3: #3a4156;
  --blue: #3457d5;
  --blue-deep: #2a48b8;
  --blue-soft: rgba(52, 87, 213, 0.14);
  --teal: #1aa6a1;
  --slate: #6b7285;
  --canvas: #eef0f5;
  --surface: #ffffff;
  --ink: #2a3144;
  --muted: #6b7285;
  --line: #d5d8e0;
  --danger: #d4533a;
  --danger-soft: rgba(212, 83, 58, 0.12);
  --font-display: "Unbounded", "Manrope", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --r: 4px;
  --shadow: 0 1px 2px rgba(42, 49, 68, 0.04), 0 8px 20px rgba(42, 49, 68, 0.06);
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  color: var(--ink);
  font-family: var(--font-body);
  background: var(--paper);
  font-size: 15px;
  line-height: 1.45;
}

a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }

/* ——— вход / регистрация ——— */
.auth-gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
  background: var(--paper);
}
.auth-wrap { width: min(420px, 100%); }
.auth-card {
  background: var(--surface);
  padding: 36px 32px 28px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.auth-brand {
  display: block;
  margin-bottom: 22px;
  text-decoration: none;
  color: inherit;
}
.auth-brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.auth-brand em {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 2px;
  font-weight: 400;
}
.auth-title {
  margin: 0 0 8px;
  font-family: var(--font-body);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.auth-lead {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}
.auth-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.auth-field span {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.auth-field input {
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #f7f9fc;
  padding: 0 12px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.auth-field input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-soft);
  background: #fff;
}
.auth-submit {
  width: 100%;
  height: 42px;
  margin-top: 6px;
}
.auth-switch {
  margin: 20px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--muted);
  text-align: center;
}
.link-btn {
  border: 0;
  background: none;
  padding: 0;
  color: var(--blue);
  font-weight: 600;
  cursor: pointer;
}
.link-btn:hover { text-decoration: underline; }
.auth-card .err {
  margin: 0 0 10px;
  min-height: 0;
}
.auth-card .err:empty { display: none; }

/* ——— вход (старый gate, совместимость) ——— */
.gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  background: var(--paper);
}
.gate-card {
  width: min(440px, 100%);
  background: var(--surface);
  padding: 36px 32px 28px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.gate-card h1 {
  font-family: var(--font-body);
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
}
.gate-card p { color: var(--muted); line-height: 1.5; }
.gate-card form { display: flex; gap: 8px; margin-top: 22px; }

/* ——— каркас: навигатор + сцена ——— */
.app {
  height: 100vh;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 300px 1fr;
  overflow: hidden;
}
.app.tree-collapsed {
  grid-template-columns: 1fr;
}
.app.tree-collapsed .tree-pane { display: none; }
.app.draw-focus .top { display: none; }
.top { display: none; }
.app.draw-focus .tree-reopen { display: none; }

.tree-pane {
  position: relative;
  color: var(--ink);
  background: #e4e7ee;
  padding: 18px 0 20px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  border-right: 2px solid #b0b8c8;
}
.trunk-head {
  padding: 0 16px 12px;
  position: relative;
  z-index: 1;
}
.brand-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
  padding-right: 32px;
}
.brand {
  display: block;
  text-decoration: none;
  min-width: 0;
}
.tree-pane > .trunk-head .icon-btn,
.tree-pane .icon-btn {
  position: absolute;
  top: 16px;
  right: 10px;
  z-index: 4;
}
.icon-btn {
  width: 28px;
  height: 28px;
  margin-top: 2px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  border-radius: 7px;
  display: grid;
  place-items: center;
  padding: 0;
}
.icon-btn:hover {
  color: var(--ink);
  background: #fff;
  border-color: #b7c2d4;
}
.icon-btn svg { width: 14px; height: 14px; }
.brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.brand em {
  display: block;
  font-style: normal;
  font-size: 0.78rem;
  color: var(--slate);
  font-weight: 500;
  margin-top: 2px;
}
.mark {
  display: none;
}
.pane-kicker {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  font-weight: 600;
}
.tree-switch,
.tree-switch {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}
.tree-switch .company {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
}
.tree-switch .company select {
  width: 100%;
  min-width: 0;
  height: 38px;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.tree-switch .ghost {
  width: 100%;
  align-self: stretch;
  min-width: 0;
  height: 38px;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 10px;
  box-sizing: border-box;
}
.tree-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 10px 0 0;
  padding: 0 10px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.8);
  width: 100%;
}
.tree-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  outline: none;
  height: 40px;
  font-size: 0.95rem;
}
.tree-search kbd {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1px 5px;
  background: var(--surface);
}
.tree li.is-hidden { display: none !important; }
.tree-group.is-closed:not(.is-match-open) > ul,
.tree-group.is-closed:not(.is-match-open) > .tree-empty { display: none; }
.tree-band.is-closed:not(.is-match-open) > ul,
.tree-band.is-closed:not(.is-match-open) > .tree-empty { display: none; }
.tree {
  flex: 1;
  padding: 4px 16px 12px 14px;
  overflow: auto;
  position: relative;
  z-index: 1;
  scrollbar-width: thin;
  scrollbar-color: #9aa8bc transparent;
}
.tree::-webkit-scrollbar { width: 8px; }
.tree::-webkit-scrollbar-track { background: transparent; }
.tree::-webkit-scrollbar-thumb {
  background: #b4c0d0;
  border-radius: 99px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
.tree::-webkit-scrollbar-thumb:hover { background: #8b9bb0; }
.tree-root,
.tree ul,
.tree li,
.tree a,
.tree button,
.tree p { direction: ltr; }
.tree ul {
  list-style: none;
  margin: 0;
  padding: 0 0 0 14px;
}
.tree > ul { padding-left: 0; }
.tree li {
  position: relative;
  animation: bud 0.4s ease both;
  animation-delay: calc(var(--i, 0) * 28ms);
}
.tree a {
  display: grid;
  grid-template-columns: 8px 1fr;
  grid-template-rows: auto auto;
  column-gap: 8px;
  padding: 6px 8px 7px;
  text-decoration: none;
  border-radius: 7px;
  color: var(--ink);
}
.tree a:hover { background: rgba(255, 255, 255, 0.72); }
.tree a.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(42, 49, 68, 0.04);
  font-weight: 600;
}
.bud {
  grid-row: 1 / span 2;
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 2px;
  background: var(--teal);
}
.cls-O > a .bud,
.tree-group.cls-O > .tree-group-btn .tree-group-mark { background: var(--blue); }
.cls-V > a .bud,
.tree-group.cls-V > .tree-group-btn .tree-group-mark { background: var(--teal); }
.cls-U > a .bud,
.tree-group.cls-U > .tree-group-btn .tree-group-mark { background: var(--slate); }
.has-pain > a .bud { background: var(--danger); }
.tree a.active .bud { background: var(--blue); }
.tree-company > a .bud {
  background: var(--ink);
  border-radius: 2px;
}
.tree-map > a .bud {
  background: transparent;
  border: 1.5px solid #9ec0ff;
  border-radius: 1px;
  transform: rotate(45deg);
  margin-top: 7px;
}
.tree-map > a.active .bud { background: var(--blue); border-color: var(--blue); }
.tree-c4 > a .bud {
  transform: none;
  border-radius: 2px;
  margin-top: 6px;
}
.tree-goals > a .bud {
  transform: none;
  border-radius: 50%;
  margin-top: 6px;
  border-color: #f0c36a;
}
.tree-goals > a.active .bud { background: #e2a93b; border-color: #e2a93b; }
.tree-summary > a .bud {
  transform: none;
  border-radius: 2px;
  margin-top: 6px;
  border-color: var(--teal);
}
.tree-summary > a.active .bud { background: var(--teal); border-color: var(--teal); }
.tree-groups { padding-left: 6px !important; }
.tree-group { margin-top: 8px; }
.tree-group > ul { padding-left: 10px; }
.tree-group.is-closed:not(.is-match-open) > ul,
.tree-group.is-closed:not(.is-match-open) > .tree-empty { display: none; }
.tree-group-btn {
  width: 100%;
  display: grid;
  grid-template-columns: 8px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border: 0;
  background: transparent;
  color: #5a6a80;
  text-align: left;
  border-radius: 7px;
  font-weight: 600;
}
.tree-group-btn:hover { background: rgba(255, 255, 255, 0.7); color: var(--ink); }
.tree-group-mark {
  width: 8px;
  height: 8px;
  border-radius: 2px;
}
.tree-group-title {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.tree-group-count {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: #6d7d96;
  min-width: 1.2em;
  text-align: right;
}
.tree-empty,
.tree-empty {
  margin: 0;
  padding: 4px 8px 8px 26px;
  font-size: 0.78rem;
  color: #6d7d96;
}
.tree-group-btn[aria-expanded="false"] .tree-group-title { opacity: 0.7; }
.tree a.active .code { color: var(--blue); }
.tree a .code {
  grid-column: 2;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.02em;
  color: #6d7d96;
  font-weight: 500;
}
.tree a .nm {
  grid-column: 2;
  font-size: 0.95rem;
  line-height: 1.3;
  font-weight: 500;
}
.tree-groups,
.tree-groups,
.tree-groups { padding-left: 6px !important; }
.tree-band { margin-top: 10px; }
.tree-band > ul { padding-left: 8px; }
.tree-band.is-closed:not(.is-match-open) > ul,
.tree-band.is-closed:not(.is-match-open) > .tree-empty { display: none; }
.tree-band-btn {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 8px 10px 6px;
  text-align: left;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: #4a5a70;
  border-radius: 7px;
}
.tree-band-btn:hover { background: rgba(255, 255, 255, 0.7); }
.tree-band.is-current > .tree-band-btn { color: var(--blue); }
.tree-subband { margin-top: 4px; list-style: none; }
.tree-subband > .tree-subband-body { padding-left: 8px; margin: 0; }
.tree-subband.is-closed:not(.is-match-open) > .tree-subband-body { display: none; }
.tree-subband-btn {
  width: 100%;
  display: grid;
  grid-template-columns: 8px 1fr;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  border-radius: 7px;
  font-weight: 600;
  font-size: 0.88rem;
}
.tree-subband-btn:hover { background: rgba(255, 255, 255, 0.55); }
.tree-subband-mark {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--blue);
}
.tree-subband.is-current > .tree-subband-btn { color: var(--blue); }
.tree-link-note {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  margin-top: 1px;
}
.tree-soon { list-style: none; }
.tree-soon-inner {
  display: grid;
  grid-template-columns: 8px 1.6rem 1fr auto;
  column-gap: 8px;
  align-items: center;
  padding: 6px 8px 7px;
  color: var(--muted);
  opacity: 0.78;
  font-size: 0.9rem;
}
.tree-soon-inner .bud { grid-column: 1; grid-row: 1; }
.tree-soon-inner .code {
  grid-column: 2;
  grid-row: 1;
  font-family: var(--font-mono);
  font-size: 0.64rem;
}
.tree-soon-inner .nm {
  grid-column: 3;
  grid-row: 1;
  font-weight: 500;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tree-soon-inner .soon-tag {
  grid-column: 4;
  grid-row: 1;
  flex-shrink: 0;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 1px 6px;
  background: rgba(255, 255, 255, 0.5);
}
.trunk-foot {
  margin: 0;
  padding: 14px 16px 0;
  font-size: 0.82rem;
  color: #5c6b80;
  line-height: 1.4;
}
.tree-survey,
.tree-survey {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  margin-bottom: 10px;
  width: 100%;
}

.stage {
  background: var(--paper);
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.crumbs {
  flex-shrink: 0;
  height: 36px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 16px;
  font-size: 0.78rem;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  white-space: nowrap;
}
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--blue); }
.crumbs-now { color: var(--ink); font-weight: 600; }
.crumbs-firm { color: #e06b1a; font-weight: 700; }
.crumbs a.crumbs-firm:hover { color: #c45a12; }
.crumbs-sep { color: var(--slate); }
.app.draw-focus .crumbs { display: none; }
.app.tree-collapsed .crumbs { padding-left: 40px; }
.tree-reopen {
  display: none;
  position: absolute;
  left: 0;
  top: 44px;
  z-index: 4;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-left: 0;
  border-radius: 0 var(--r) var(--r) 0;
  padding: 14px 7px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}
.app.tree-collapsed .tree-reopen { display: block; }
.app.draw-focus .tree-reopen { display: none; }

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 0 22px;
  position: relative;
  z-index: 2;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.top-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.company {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.company select,
.field input,
.field textarea,
.field select,
.gate-card input,
.task-form input,
.toolbar select {
  background: #f7f9fc;
  border: 1px solid var(--line);
  padding: 8px 10px;
  width: 100%;
  border-radius: var(--r);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.company select:focus,
.field input:focus,
.field textarea:focus,
.field select:focus,
.gate-card input:focus,
.task-form input:focus,
.toolbar select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-soft);
  background: #fff;
}
.company select { min-width: 190px; width: auto; background: #fff; height: 36px; padding: 0 10px; }
.toolbar select { width: auto; min-width: 148px; }
.top-actions .ghost,
.top-actions .primary,
.top-actions a.primary {
  height: 36px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}
.top-actions .ghost.on {
  border-color: var(--blue);
  background: var(--blue-soft);
  color: var(--blue-deep);
}
.top-tabs {
  margin: 0;
  border-bottom: 0;
  flex: 1;
  min-width: 0;
  flex-wrap: wrap;
}
.top-tabs a {
  padding: 8px 10px;
  white-space: nowrap;
}
.top-tabs a.on::after {
  left: 8px;
  right: 8px;
  bottom: 4px;
}
.toolbar > div:last-child {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.primary, button.primary, a.primary {
  background: var(--blue);
  color: #fff;
  border: 0;
  padding: 9px 14px;
  text-decoration: none;
  display: inline-block;
  letter-spacing: 0;
  font-weight: 600;
  border-radius: var(--r);
  transition: background 0.15s ease, transform 0.15s ease;
}
.primary:hover { background: var(--blue-deep); transform: translateY(-1px); }
.ghost, button.ghost {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 8px 12px;
  border-radius: var(--r);
  font-weight: 500;
}
.ghost:hover { border-color: #b7c2d4; background: #f7f9fc; }
.danger {
  background: var(--danger);
  color: #fff;
  border: 0;
  padding: 9px 14px;
  border-radius: var(--r);
  font-weight: 600;
}

.view {
  position: relative;
  z-index: 1;
  padding: 16px 16px 40px;
  max-width: none;
  width: 100%;
  flex: 1;
  min-height: 0;
  overflow: auto;
}
#view {
  min-height: 0;
}
.view:not(.wide):not(.home-view):not(.spec-sheet):not(.matrix) > * {
  max-width: 72rem;
  width: 100%;
}
.view.spec-sheet,
.view.matrix {
  display: flex;
  flex-direction: column;
}
.view.spec-sheet > *,
.view.matrix > * {
  max-width: none;
  width: 100%;
}
.view.wide {
  max-width: none;
  padding: 8px 0 0 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  container-type: inline-size;
  container-name: stage;
}
.view.wide > * { animation: none; }
.view > * {
  animation: rise 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.view > *:nth-child(2) { animation-delay: 0.04s; }
.view > *:nth-child(3) { animation-delay: 0.08s; }
.view > *:nth-child(4) { animation-delay: 0.12s; }

.eyebrow {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 600;
}
h1, h2, h3 {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: -0.03em;
}
h1 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  line-height: 1.2;
  margin: 8px 0 14px;
  max-width: none;
}
h2 { font-size: 1.18rem; margin: 0 0 10px; }
.lead {
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 40rem;
  margin-top: 0;
  color: var(--muted);
}
.muted { color: var(--muted); }
.err { color: var(--danger); min-height: 1.2em; }

.view.home-view {
  max-width: none;
  padding: 28px 36px 80px;
}
.view.home-view > * { max-width: 1080px; }
.view.home-view h1 { max-width: 18ch; }
.mockups-entry {
  margin: -4px 0 10px;
  font-size: 0.88rem;
}
.mockups-entry a { color: var(--blue); text-decoration: none; font-weight: 600; }
.mockups-entry a:hover { text-decoration: underline; }
.home-board {
  position: relative;
  margin-top: 32px;
  padding-left: 56px;
}
.home-board::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 18px;
  bottom: 28px;
  width: 1px;
  background: linear-gradient(180deg, var(--blue), rgba(213, 220, 232, 0.9));
}
.home-floor {
  position: relative;
  margin: 0 0 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px 16px;
  box-shadow: var(--shadow);
  animation: rise 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: calc(var(--i, 0) * 0.07s);
}
.home-floor::before {
  content: attr(data-n);
  position: absolute;
  left: -56px;
  top: 16px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #e8eef8;
  background: var(--navy);
  border-radius: 8px;
  box-shadow: 0 0 0 4px var(--canvas);
}
.home-kicker {
  margin: 0 0 4px;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  font-weight: 600;
}
.home-floor h2 {
  font-family: var(--font-body);
  font-size: 1.12rem;
  margin: 0 0 12px;
}
.home-floor-lead { margin: -4px 0 14px; max-width: 46rem; }
.home-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.home-tile {
  display: grid;
  grid-template-columns: 18px 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  row-gap: 4px;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 14px 12px;
  background:
    linear-gradient(180deg, #fbfcfe, #fff);
  min-height: 7.2rem;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.home-tile:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(16, 24, 38, 0.08);
}
.home-tile strong {
  grid-column: 2;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}
.home-tile span {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}
.home-mark {
  grid-row: 1 / span 2;
  width: 14px;
  height: 14px;
  margin-top: 4px;
  border: 1.6px solid var(--blue);
  background: transparent;
}
.home-mark.goals {
  border-radius: 50%;
  border-color: #e2a93b;
  background: rgba(226, 169, 59, 0.2);
}
.home-mark.map {
  transform: rotate(45deg);
  margin-top: 6px;
  border-color: #9ec0ff;
}
.home-mark.c4 {
  border-radius: 2px;
  border-color: var(--teal);
}
.home-proc-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.home-proc-title {
  margin: 0 0 8px;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
  font-weight: 600;
}
.home-proc ul,
.home-works {
  list-style: none;
  margin: 0;
  padding: 0;
}
.home-proc li,
.home-works li {
  margin: 0 0 10px;
}
.home-chip {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 11px 8px;
  background: #fff;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.home-chip:hover {
  border-color: var(--blue);
  background: var(--blue-soft);
}
.home-chip .code {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: var(--slate);
  letter-spacing: 0.02em;
}
.home-chip .nm {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
}
.home-chip.has-pain {
  box-shadow: inset 3px 0 0 var(--danger);
}
.home-chip.tone-green { box-shadow: inset 3px 0 0 #2f9e6b; }
.home-chip.tone-yellow { box-shadow: inset 3px 0 0 #c48a1a; }
.home-chip.tone-gray { box-shadow: inset 3px 0 0 var(--slate); }
.home-chip-links {
  display: flex;
  gap: 10px;
  padding: 4px 4px 0;
  font-size: 0.72rem;
}
.home-chip-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}
.home-chip-links a:hover { color: var(--blue); }
.home-works {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.home-works li { margin: 0; }
.home-floor .money-pair { margin: 4px 0 8px; }
.sheet {
  background: var(--surface);
  padding: 22px 22px 20px;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  position: relative;
}
.pain-card {
  background:
    linear-gradient(180deg, var(--danger-soft), transparent 48%),
    var(--surface);
  box-shadow: inset 3px 0 0 var(--danger), var(--shadow);
}
.pain-card h2 { color: var(--danger); }
.sheet > * { position: relative; z-index: 1; }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 22px 0 22px;
  background: transparent;
  border: 0;
}
.steps span {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 10px 12px;
  font-size: 0.8rem;
  color: var(--muted);
  min-height: 3.2rem;
  border-radius: 10px;
  font-weight: 500;
}
.steps span.on {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.field textarea { min-height: 92px; width: 100%; resize: vertical; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 600; }
.check input { width: auto; }
.form-nav { display: flex; gap: 10px; margin-top: 10px; }

.tabs {
  display: flex;
  gap: 2px;
  margin: 8px 0 0;
  border-bottom: 1px solid var(--line);
}
.tabs a {
  padding: 8px 14px 10px;
  text-decoration: none;
  position: relative;
  color: var(--muted);
  font-weight: 600;
  border-radius: 8px 8px 0 0;
  white-space: nowrap;
}
.tabs a:hover { color: var(--ink); }
.tabs a.on {
  color: var(--blue);
}
.proj-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}
.proj-switch a {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 0.86rem;
  text-decoration: none;
}
.proj-switch a.on {
  background: var(--blue-soft);
  border-color: var(--blue);
  color: var(--blue-deep);
}

.tabs a.on::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -1px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px 2px 0 0;
}

.meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  background: transparent;
  margin: 0 0 22px;
  border: 0;
}
.meta div {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px 11px;
}
.meta b {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 4px;
}
.dots { letter-spacing: 0.18em; color: var(--blue); font-size: 0.85rem; }

.card-grid,
.card-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px 22px;
  width: 100%;
}
.card-actions { display: flex; gap: 8px; align-items: center; margin-top: 16px; flex-wrap: wrap; }

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.view:not(.wide) .toolbar .tabs { margin-bottom: 0; }
.view:not(.wide) .tabs { margin-bottom: 22px; }
.toolbar .tabs {
  margin: 8px 0 0;
  border-bottom: 1px solid var(--line);
}
.canvas-wrap {
  flex: 1;
  min-height: 0;
  height: auto;
  background: #fff;
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
#bpmnCanvas { height: 100%; min-height: 0; }
#bpmnCanvas,
.djs-container,
.djs-container svg {
  background: transparent !important;
}
.view.wide.draw-view { padding: 8px 16px 0 16px; }
.view.wide.draw-view .toolbar.process-head {
  padding: 0 0 10px;
}
.view.wide.draw-view .toolbar.process-head .eyebrow {
  font-size: 0.8rem;
}
.view.wide.draw-view .toolbar.process-head h2 {
  font-size: 1.32rem;
  margin: 4px 0 0;
}
.app.tree-collapsed:not(.draw-focus) .view,
.app.tree-collapsed:not(.draw-focus) .view.wide.draw-view {
  padding-left: 40px;
}
.app.tree-collapsed .view.wide.draw-view .toolbar.process-head {
  padding-left: 0;
}
.draw-body {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
}
.draw-inspect {
  background: var(--surface);
  border-left: 1px solid var(--line);
  overflow: auto;
  padding: 16px 18px 22px;
}
.draw-inspect .llm-run {
  width: 100%;
}
.llm-dock {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--line);
}
.llm-bar {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 44px;
  padding: 6px 10px;
  border: 1px solid var(--navy);
  background: var(--navy);
  color: #f3efe4;
  border-radius: var(--r);
  cursor: pointer;
}
.llm-bar:hover { background: #343c52; color: #d4a24a; }
.llm-ico {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
}
.llm-ico svg { width: 20px; height: 20px; }
.llm-track {
  display: block;
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}
.llm-fill {
  display: block;
  height: 100%;
  width: 16%;
  border-radius: 99px;
  background: #d4a24a;
}
.llm-cap {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.llm-dock.busy .llm-fill {
  animation: llmSweep 1.15s ease-in-out infinite;
}
.llm-dock.busy .llm-bar { color: #d4a24a; }
@keyframes llmSweep {
  0% { width: 12%; transform: translateX(0); }
  50% { width: 48%; transform: translateX(70%); }
  100% { width: 12%; transform: translateX(0); }
}
.draw-corner {
  position: absolute;
  left: auto;
  right: 14px;
  top: 12px;
  bottom: auto;
  z-index: 8;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  pointer-events: none;
}
.draw-bot {
  pointer-events: auto;
  position: relative;
  width: 44px;
  height: 44px;
  border: 0;
  background: var(--navy);
  color: #f3efe4;
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding: 0;
  box-shadow: 0 8px 18px rgba(42, 49, 68, 0.28);
}
.draw-bot:hover { background: #343c52; color: #d4a24a; }
.draw-bot svg { width: 18px; height: 18px; }
.draw-bot[disabled] { opacity: 0.7; }
.draw-bot .bot-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid transparent;
  pointer-events: none;
}
.draw-bot.busy .bot-ring {
  border-color: #d4a24a;
  animation: botSpin 1.1s linear infinite;
  border-top-color: transparent;
}
.draw-bot.busy { color: #d4a24a; }
@keyframes botSpin {
  to { transform: rotate(360deg); }
}
.draft-pulse {
  margin: 8px 0 0;
  font-size: 0.84rem;
  color: var(--navy);
}
.draft-pulse::after {
  content: "";
  display: inline-block;
  width: 0.6em;
  animation: draftDots 1.2s steps(3, end) infinite;
}
@keyframes draftDots {
  0% { content: ""; }
  33% { content: "."; }
  66% { content: ".."; }
  100% { content: "..."; }
}
.djs-shape.is-neck-1 > .djs-visual > :nth-child(1),
.djs-element.is-neck-1 .djs-visual > :nth-child(1) {
  fill: #fde8d4 !important;
  stroke: #e09460 !important;
  stroke-width: 2px !important;
}
.djs-shape.is-neck-2 > .djs-visual > :nth-child(1),
.djs-element.is-neck-2 .djs-visual > :nth-child(1) {
  fill: #f6d4c8 !important;
  stroke: #d07058 !important;
  stroke-width: 2px !important;
}
.djs-shape.is-neck-3 > .djs-visual > :nth-child(1),
.djs-element.is-neck-3 .djs-visual > :nth-child(1) {
  fill: #eec4c0 !important;
  stroke: #c45c50 !important;
  stroke-width: 2.2px !important;
}
.djs-connection.is-neck .djs-visual > :nth-child(1) {
  fill: none !important;
}
.neck-flag {
  display: inline-block;
  padding: 1px 6px;
  background: #d07058;
  color: #fff;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--r);
  line-height: 1.4;
  pointer-events: none;
  white-space: nowrap;
}
.neck-flag.heat-1 { background: #e09460; }
.neck-flag.heat-3 { background: #c45c50; }
.ctx-menu {
  position: fixed;
  z-index: 40;
  min-width: 180px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(42, 49, 68, 0.14);
}
.ctx-menu button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 0.88rem;
}
.ctx-menu button:hover { background: var(--blue-soft); color: var(--blue); }
.ctx-menu button.danger { color: var(--danger); }
.ctx-menu button.danger:hover { background: var(--danger-soft); }
.ctx-menu.hidden { display: none !important; }
.draw-inspect #draftHint { margin-top: 0; }
.inspect-kicker {
  margin: 0 0 8px;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.inspect-empty {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.4;
}
.inspect-type {
  margin: 0 0 10px;
  font-weight: 600;
}
.draw-inspect label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.82rem;
  color: var(--muted);
}
.draw-inspect input {
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 6px 8px;
  background: var(--paper);
}
.inspect-id {
  margin: 10px 0 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--slate);
  word-break: break-all;
}
.draw-stamp {
  pointer-events: none;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  line-height: 1.25;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 6px 8px;
}
.draw-stamp strong {
  display: block;
  color: var(--ink);
  font-size: 0.78rem;
}
.draw-stamp em { font-style: normal; }
.draw-strip {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  padding: 8px 16px;
  border-top: 1px solid var(--line);
  background: var(--surface);
  flex-shrink: 0;
}
.strip-cell { min-width: 5rem; }
.strip-cell:first-child b {
  color: var(--ink);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  font-size: 0.72rem;
}
.strip-cell b {
  display: block;
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.strip-cell span { font-size: 0.86rem; }
.app.draw-focus .view.wide { padding: 0; }
.app.draw-focus .toolbar {
  margin: 0;
  padding: 8px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.app.tree-collapsed.draw-focus .toolbar {
  padding-left: 40px;
}
.app.draw-focus .canvas-wrap {
  border: 0;
  border-radius: 0;
}

.toolbar.slim-toolbar {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  margin-bottom: 8px;
  gap: 8px 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}
.toolbar.slim-toolbar.strat-toolbar {
  display: grid;
  grid-template-rows: auto auto;
  gap: 6px 0;
  align-items: stretch;
  overflow-x: visible;
}
.strat-toolbar-tabs {
  display: flex;
  justify-content: flex-start;
  min-width: 0;
}
.strat-toolbar-tabs .tabs {
  margin: 0;
  border-bottom: 1px solid var(--line);
  flex-wrap: nowrap;
}
.strat-toolbar-controls {
  display: flex;
  align-items: flex-end;
  gap: 8px 12px;
  flex-wrap: nowrap;
  min-width: 0;
  width: 100%;
}
.strat-toolbar-controls .map-actions {
  margin-left: 0;
  flex: 0 0 auto;
}
.strat-toolbar-controls .vad-inspect {
  flex: 1 1 auto;
  min-width: 0;
}
.slim-toolbar .tabs {
  margin: 0;
  border-bottom: 0;
  flex-wrap: wrap;
}
.map-actions {
  --ctrl-h: 36px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
}
.map-actions select,
.map-actions .primary,
.map-actions .ghost {
  height: var(--ctrl-h);
  min-height: var(--ctrl-h);
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.slim-toolbar > .map-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  margin-left: auto;
  flex: 0 0 auto;
}
.strat-toolbar-controls > .map-actions,
.strat-toolbar .map-actions {
  margin-left: 0;
}
.slim-toolbar > .map-actions button,
.slim-toolbar > .map-actions .primary,
.slim-toolbar > .map-actions .ghost,
.strat-toolbar-controls .map-actions button,
.strat-toolbar-controls .map-actions .primary,
.strat-toolbar-controls .map-actions .ghost,
.vad-inspect button,
.vad-inspect input,
.vad-inspect select {
  height: 36px;
  box-sizing: border-box;
  padding: 0 12px;
  font-size: 0.86rem;
  line-height: 1;
  border-radius: var(--r);
  flex-shrink: 0;
  white-space: nowrap;
}
.slim-toolbar > .map-actions button,
.slim-toolbar > .map-actions .primary,
.slim-toolbar > .map-actions .ghost,
.strat-toolbar-controls .map-actions button,
.strat-toolbar-controls .map-actions .primary,
.strat-toolbar-controls .map-actions .ghost,
.vad-inspect button {
  min-width: 8.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.strat-toolbar-controls .map-actions .icon-btn.draw-full-btn,
.slim-toolbar .map-actions .icon-btn.draw-full-btn,
.process-head .icon-btn.draw-full-btn,
.map-actions .icon-btn.draw-full-btn {
  min-width: 0;
  width: var(--ctrl-h, 36px);
  height: var(--ctrl-h, 36px);
  margin-top: 0;
  padding: 0;
  flex-shrink: 0;
  align-self: center;
  box-sizing: border-box;
  border-radius: var(--r);
}
.strat-toolbar-controls .map-actions .icon-btn.draw-full-btn svg,
.slim-toolbar .map-actions .icon-btn.draw-full-btn svg,
.process-head .icon-btn.draw-full-btn svg,
.map-actions .icon-btn.draw-full-btn svg {
  width: 16px;
  height: 16px;
}
.strat-toolbar-controls .map-actions .icon-btn.draw-full-btn.on,
.process-head .icon-btn.draw-full-btn.on {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-soft);
}
.map-actions .layer-note-toggle {
  min-width: 0;
}
.map-actions .layer-note-toggle.on {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-soft);
}
.slim-toolbar .primary:hover { transform: none; }
.slim-toolbar #drawMsg {
  min-width: 0;
  max-width: 14rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.toolbar.slim-toolbar > .map-context {
  display: flex;
  align-items: flex-end;
  gap: 8px 12px;
  flex-wrap: nowrap;
  border-bottom: 0;
  min-width: 0;
  flex: 1 1 auto;
}
.map-context .tabs {
  margin: 0;
  border-bottom: 0;
  flex: 0 1 auto;
  min-width: 0;
}
@container stage (max-width: 980px) {
  .slim-toolbar > .map-actions { justify-content: flex-end; }
  .strat-toolbar-controls { flex-wrap: wrap; }
}
.map-hint {
  flex: 1 1 16rem;
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
  max-width: 44rem;
}
.goals-split {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.goals-split.has-side {
  grid-template-columns: 1fr minmax(300px, 380px);
  gap: 8px;
}
.goals-split:not(.has-side) {
  padding-right: 8px;
  padding-bottom: 8px;
}
.goals-split:not(.has-side) .goals-side { display: none; }
.goals-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  overflow: auto;
  padding: 0 0 8px;
}
.view.wide.goals-view { overflow: hidden; }
.layer-note-pane {
  background: var(--surface);
  border: 1px solid var(--line);
  border-right: 0;
  border-radius: 14px 0 0 14px;
  padding: 0;
  overflow: auto;
  min-height: 0;
  flex: 1;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.layer-note-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
}
.layer-note-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}
.layer-note-label textarea {
  min-height: 220px;
  resize: vertical;
  width: 100%;
  font: inherit;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.5;
}
.view.wide.goals-view { overflow: hidden; }
.goals-toolbar { align-items: center; }
.goal-add-row {
  display: flex;
  gap: 6px;
  margin: 10px 0 8px;
  flex-wrap: wrap;
}
.goal-tree-head {
  margin: 0 0 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.goal-tree-head h2 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.goal-card-pane {
  background: var(--surface);
  border: 1px solid var(--line);
  border-right: 0;
  border-radius: 14px 0 0 14px;
  padding: 0;
  overflow: auto;
  min-height: 0;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  animation: cardIn 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}
.goal-card-pane.hidden { display: none; }
.goal-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 14px 12px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(47, 111, 237, 0.06), transparent);
}
.goal-card-head .pane-kicker {
  margin: 0;
  color: var(--blue);
}
.icon-btn.light {
  border-color: var(--line);
  background: #fff;
  color: var(--muted);
}
.icon-btn.light:hover {
  color: var(--ink);
  background: #f7f9fc;
  border-color: #b7c2d4;
}
.goal-editor {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 14px 14px 16px;
  border-top: 0;
}
.goal-editor label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}
.goal-editor textarea,
.goal-editor select,
.goal-editor input {
  font: inherit;
  font-weight: 500;
  color: var(--ink);
  width: 100%;
}
.goal-editor textarea { min-height: 76px; resize: vertical; }
.goal-subhead {
  margin: 6px 0 0;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.goal-tree-pane {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 12px 16px;
  overflow: auto;
  min-height: 0;
  box-shadow: var(--shadow);
}
.goal-tree ul {
  list-style: none;
  margin: 0;
  padding: 0 0 0 14px;
  position: relative;
}
.goal-tree ul::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 4px;
  bottom: 10px;
  width: 1px;
  background: var(--line);
}
.goal-tree > ul { padding-left: 0; }
.goal-tree > ul::before { display: none; }
.goal-tree-item {
  width: 100%;
  display: block;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 6px 8px;
  border-radius: 7px;
  font-weight: 600;
  font-size: 0.88rem;
  line-height: 1.3;
}
.goal-tree-item:hover { background: var(--blue-soft); }
.goal-tree-item.on {
  background: var(--blue-soft);
  box-shadow: inset 3px 0 0 var(--blue);
}
.goal-tree-item.has-vad::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 6px;
  border-radius: 50%;
  background: var(--danger);
  vertical-align: middle;
}
.strat-wrap {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(700px 240px at 0% 0%, rgba(255, 255, 255, 0.55), transparent 58%),
    linear-gradient(180deg, #eef0f4, #e2e7ee);
  border-radius: 14px;
}
.strat-wrap .strat-palette {
  left: 12px;
  right: auto;
  top: 12px;
}
.strat-board.vad-board {
  height: 100%;
  min-height: 0;
  width: 100%;
  cursor: grab;
  background: transparent;
  background-image: none;
}
.strat-board.vad-board:active { cursor: grabbing; }
.strat-hint.vad-hint {
  left: 96px;
}
.strat-band-bg {
  fill: #e6e9ef;
  stroke: none;
}
.strat-band[data-code="finance"] .strat-band-bg,
.strat-band[data-code="customer"] .strat-band-bg,
.strat-band[data-code="process"] .strat-band-bg,
.strat-band[data-code="learning"] .strat-band-bg { fill: #e6e9ef; }
.strat-band-rule {
  stroke: rgba(20, 28, 40, 0.55);
  stroke-width: 1.8;
}
.strat-band-title {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  fill: #3d4a5c;
  pointer-events: none;
}
.strat-hit {
  fill: transparent;
}
.strat-ring {
  fill: none;
  stroke: var(--blue);
  stroke-width: 2;
  opacity: 0.38;
  pointer-events: none;
}
.strat-body {
  fill: #fff;
  stroke: #8f9db3;
  stroke-width: 1.2;
  filter: drop-shadow(0 6px 14px rgba(16, 24, 38, 0.08));
}
.strat-node.on .strat-body {
  stroke: var(--blue);
  stroke-width: 2;
  fill: #fff;
  filter: drop-shadow(0 8px 16px rgba(47, 111, 237, 0.16));
}
.strat-node.linked .strat-body { stroke: #8f9db3; }
.strat-node.on.linked .strat-body { stroke: var(--blue); }
.strat-title { pointer-events: none; }
.strat-kpi {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  fill: #3d4a5c;
  pointer-events: none;
}
.strat-kpi-up { fill: #2ea44f; font-size: 12px; }
.strat-kpi-down { fill: #8bc34a; font-size: 12px; }
.strat-vad-dot { fill: var(--danger); pointer-events: none; }
.strat-edge {
  stroke: #5c6b82;
  stroke-width: 1.3;
  stroke-dasharray: 5 4;
}
.strat-edge.on {
  stroke: var(--blue);
  stroke-width: 1.8;
  stroke-dasharray: 5 4;
}
.flow-pad { cursor: crosshair; }
.flow-pad-hit {
  fill: #fff;
  stroke: var(--blue);
  stroke-width: 1.6;
}
.flow-pad-ico {
  stroke: var(--blue);
  pointer-events: none;
}
.flow-pad:hover .flow-pad-hit { fill: #eaf1ff; }
.anchor-port,
.c4-port,
.vad-port {
  fill: #fff;
  stroke: var(--blue);
  stroke-width: 1.6;
  opacity: 0;
  cursor: crosshair;
  pointer-events: all;
}
.strat-node:hover .anchor-port,
.strat-node.on .anchor-port,
.c4-node:hover .anchor-port,
.c4-node.on .anchor-port,
.vad-node:hover .anchor-port,
.vad-node.on .anchor-port,
.is-wiring .anchor-port,
.is-wiring .c4-port,
.is-wiring .vad-port {
  opacity: 1;
}
.anchor-port:hover,
.c4-port:hover,
.vad-port:hover {
  fill: var(--blue);
  stroke: var(--blue-deep);
}
.edge-hit {
  stroke: transparent;
  stroke-width: 16;
  cursor: pointer;
}
.edge-kill { cursor: pointer; }
.edge-kill-bg {
  fill: #fff;
  stroke: var(--danger);
  stroke-width: 1.6;
}
.edge-kill-x {
  stroke: var(--danger);
  stroke-width: 1.8;
  stroke-linecap: round;
  pointer-events: none;
}
.edge-kill:hover .edge-kill-bg { fill: var(--danger-soft); }
.goal-shelf-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 14px;
}
.goal-shelf-list .ghost { font-size: 0.78rem; }
@media (max-width: 960px) {
  .goals-split,
  .goals-split.has-side { grid-template-columns: 1fr; grid-template-rows: minmax(200px, 42vh) auto; }
  .goals-split:not(.has-side) .goals-side { display: none; }
  .top { flex-wrap: wrap; min-height: 0; padding: 8px 16px; }
  .toolbar.slim-toolbar {
    grid-template-columns: 1fr;
    grid-template-areas:
      "context"
      "actions";
  }
  .toolbar.slim-toolbar.strat-toolbar {
    display: grid;
    grid-template-rows: auto auto;
    grid-template-areas: none;
  }
  .slim-toolbar > .map-actions { justify-content: flex-end; }
}

.vad-wrap { position: relative; }
.vad-board {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  background: #fff;
}
.vad-board:active { cursor: grabbing; }
.vad-palette {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px;
  box-shadow: var(--shadow);
}
.vad-palette button {
  width: 72px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 8px 6px 6px;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  font-weight: 600;
}
.vad-palette button svg { width: 28px; height: 16px; color: var(--blue); }
.vad-palette button:hover,
.vad-palette button.on {
  border-color: var(--blue);
  background: var(--blue-soft);
  color: var(--blue);
}
.vad-hint,
.strat-hint {
  display: none !important;
}
.vad-node .vad-body {
  fill: #fff;
  stroke: #b7c2d4;
  stroke-width: 1.6;
}
.vad-node.cls-O .vad-body { fill: #eaf1ff; stroke: var(--blue); }
.vad-node.cls-V .vad-body { fill: #e7f7f6; stroke: var(--teal); }
.vad-node.cls-U .vad-body { fill: #eef1f6; stroke: var(--slate); }
.vad-node.cls-none .vad-body { fill: #fff; stroke: #b7c2d4; stroke-dasharray: 5 4; }
.vad-node.on .vad-body {
  stroke-width: 2.4;
  filter: drop-shadow(0 0 0 3px rgba(47, 111, 237, 0.28));
}
.vad-node.hot .vad-body {
  fill: #fde8e8;
  stroke: var(--danger);
}
.vad-node.hot.on .vad-body {
  filter: drop-shadow(0 4px 10px rgba(229, 72, 77, 0.2));
}
.vad-title {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  fill: var(--ink);
  pointer-events: none;
}
.vad-edge {
  stroke: #7b8aa3;
  stroke-width: 1.8;
  cursor: pointer;
}
.vad-edge.on { stroke: var(--blue); stroke-width: 2.4; }
.vad-rubber {
  stroke: var(--blue);
  stroke-width: 1.6;
  stroke-dasharray: 6 4;
}
.vad-inspect {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  flex-wrap: nowrap;
  min-width: 0;
  flex: 1 1 auto;
}
.vad-inspect label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  min-width: 8rem;
  max-width: 16rem;
  flex: 1 1 10rem;
}
.vad-inspect input,
.vad-inspect select {
  min-width: 0;
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  display: block;
  text-align: left;
}
.vad-inspect select,
.slim-toolbar .vad-inspect select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%236b7285' d='M1.2 1.2 6 6.2 10.8 1.2'/></svg>");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding: 0 28px 0 14px;
}
.vad-inspect button {
  align-self: flex-end;
}

.c4-wrap { position: relative; }
.c4-board {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  background: #fff;
}
.c4-board:active { cursor: grabbing; }
.c4-palette {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(2, 82px);
  gap: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  box-shadow: var(--shadow);
}
.c4-palette button {
  width: 82px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 8px 6px 6px;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  font-weight: 600;
}
.c4-palette button svg { width: 28px; height: 16px; color: var(--blue); }
.c4-palette button:hover,
.c4-palette button.on {
  border-color: var(--blue);
  background: var(--blue-soft);
  color: var(--blue);
}
.c4-hint {
  display: none;
  position: absolute;
  left: 108px;
  right: 16px;
  bottom: 12px;
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  pointer-events: none;
  max-width: 46rem;
  line-height: 1.4;
}
.c4-node .c4-body,
.c4-node .c4-head {
  fill: #fff;
  stroke: #b7c2d4;
  stroke-width: 1.6;
}
.c4-node.type-company .c4-body {
  fill: #eaf1ff;
  stroke: var(--blue);
  stroke-width: 2.2;
}
.c4-node.type-person .c4-head,
.c4-node.type-person .c4-body {
  fill: #e7f7f6;
  stroke: var(--teal);
}
.c4-node.type-system .c4-body {
  fill: #f4f6fa;
  stroke: var(--slate);
}
.c4-node.on .c4-body,
.c4-node.on .c4-head {
  stroke: var(--blue);
  stroke-width: 2.4;
  filter: drop-shadow(0 0 0 3px rgba(47, 111, 237, 0.28));
}
.c4-node.linked.type-system .c4-body { stroke: var(--blue); }
.c4-kicker {
  font-family: var(--font-body);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  fill: var(--muted);
  pointer-events: none;
}
.c4-title {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  fill: var(--ink);
  pointer-events: none;
}
.c4-edge {
  stroke: #7b8aa3;
  stroke-width: 1.8;
  cursor: pointer;
}
.c4-edge.on { stroke: var(--blue); stroke-width: 2.4; }
.c4-rubber {
  stroke: var(--blue);
  stroke-width: 1.6;
  stroke-dasharray: 6 4;
}
.c4-elabel rect { fill: #fff; stroke: var(--line); stroke-width: 1; }
.c4-elabel text {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  fill: var(--ink);
}
.passport-triple {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 22px;
  align-items: stretch;
}
.passport-split {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(14rem, 1fr) minmax(14rem, 1fr);
  gap: 12px 20px;
  align-items: stretch;
}
.passport-split .sys-field { grid-column: auto; }
.sys-field,
.pain-field {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.pain-field textarea {
  flex: 1;
  min-height: 168px;
  height: 100%;
  background: #fff;
}
.sys-field { grid-column: 1 / -1; }
.sys-dual-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
  margin-bottom: 6px;
}
.sys-box {
  display: grid;
  grid-template-columns: max-content auto 1fr;
  column-gap: 12px;
  row-gap: 10px;
  align-items: center;
  flex: 1;
  min-height: 168px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
}
.sys-box.sys-box-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: start;
  min-height: 0;
  border: none;
  background: transparent;
  padding: 0;
}
.sys-box.sys-box-split .sys-col {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
  box-shadow: 0 1px 2px rgba(42, 49, 68, 0.04);
}
.sys-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.sys-col .sys-picks {
  grid-column: auto;
}
.sys-catalog-hint {
  margin: 8px 0 0;
  font-size: 0.82rem;
}
.sys-box .muted { margin: 0; }
.sys-empty { grid-column: 1 / -1; }
.sys-head-label {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.3;
  white-space: nowrap;
}
.sys-picks {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
}
.sys-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  gap: 6px;
  width: 92px;
  padding: 10px 8px 8px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 1px 2px rgba(42, 49, 68, 0.06);
  cursor: pointer;
}
.sys-tile input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}
.sys-tile.is-on,
.sys-tile:has(input:checked) {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px var(--blue-soft);
}
.sys-ico {
  width: 36px;
  height: 36px;
  margin: 0 auto;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
}
.sys-ico svg {
  display: block;
  width: 20px;
  height: 20px;
  margin: 0 auto;
}
.sys-bitrix { background: #2fc6f6; }
.sys-excel { background: #217346; }
.sys-1c { background: #f5c400; color: #3a3200; }
.sys-letter { background: var(--navy); color: #f3efe4; font-family: var(--font-mono); font-size: 0.95rem; }
.sys-name {
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.15;
  max-width: 100%;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  word-break: break-word;
}
.sys-tile[title] { cursor: pointer; }
.sys-add {
  margin: 0;
  justify-self: start;
  width: auto;
  min-width: 0;
  align-self: flex-start;
}
.sys-planned-cost {
  width: 100%;
  margin-top: 6px;
  font-size: 0.82rem;
}
.sys-planned-cost input {
  width: 100%;
  margin-top: 4px;
}
.process-head {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  margin-bottom: 14px;
  padding-bottom: 0;
}
.process-head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}
.process-head-title {
  min-width: 0;
  flex: 1;
}
.process-head-title h2 {
  font-size: 1.32rem;
  line-height: 1.2;
}
.process-head .tabs,
.process-head .process-tabs {
  margin: 0;
  width: 100%;
  border-bottom: 1px solid var(--line);
  padding: 0;
}
.process-head .tabs a,
.process-head .process-tabs a {
  padding: 8px 14px 10px;
}
.process-head .tabs a:first-child,
.process-head .process-tabs a:first-child {
  padding-left: 0;
}
.process-head .tabs a.on::after,
.process-head .process-tabs a.on::after {
  left: 0;
}
.process-head .tabs a:first-child.on::after,
.process-head .process-tabs a:first-child.on::after {
  left: 0;
  right: 14px;
}
.process-head .process-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex-shrink: 0;
  margin-left: 0;
  --ctrl-h: 36px;
}
.process-head .process-actions select,
.process-head .process-actions .primary,
.process-head .process-actions .ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-sizing: border-box;
  height: var(--ctrl-h);
  min-height: var(--ctrl-h);
}
.process-head .process-actions select {
  padding: 0 10px;
  background: #fff;
}
.process-head .process-actions .primary {
  padding: 0 14px;
}
.process-head .process-actions .ghost {
  padding: 0 12px;
}
.view.spec-sheet.process-view,
.view.matrix.process-view {
  padding-top: 4px;
}
.passport-actions {
  display: flex;
  gap: 14px 20px;
  align-items: flex-end;
  flex-wrap: wrap;
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}
.passport-actions .field { margin: 0; min-width: 5.5rem; }
.passport-actions .field label { font-size: 0.78rem; }
.maturity-legend {
  flex: 1;
  min-width: 16rem;
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
}
.insights-block {
  margin-top: 18px;
  padding: 16px 18px;
}
.insights-block h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}
.insights-necks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.neck-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  max-width: 100%;
  padding: 4px 10px 4px 6px;
  border-radius: 8px;
  background: #fde8e8;
  color: #8b1e1e;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.25;
}
.neck-shape {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: #fff;
  stroke: #c45a4a;
  stroke-width: 1.5;
}
.neck-label {
  min-width: 0;
  overflow-wrap: anywhere;
}
.ostov-dialog {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 16px;
}
.ostov-dialog.hidden { display: none; }
.ostov-dialog-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 24, 38, 0.42);
}
.ostov-dialog-card {
  position: relative;
  width: min(420px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: calc(var(--r) + 2px);
  box-shadow: 0 18px 48px rgba(18, 24, 38, 0.18);
  padding: 18px 18px 16px;
}
.ostov-dialog-title {
  margin: 0 0 12px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
}
.dialog-lead {
  margin: 0 0 12px;
  font-size: 0.88rem;
  line-height: 1.45;
}
.ostov-dialog-body .field { margin-bottom: 12px; }
.ostov-dialog-body .field:last-child { margin-bottom: 0; }
.ostov-dialog-body textarea {
  min-height: 88px;
  resize: vertical;
}
.ostov-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}
.sys-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 8px 10px;
  border-radius: var(--r);
  font-size: 0.86rem;
  font-weight: 500;
}
.sys-chip:has(input:checked) {
  border-color: var(--blue);
  background: var(--blue-soft);
  color: var(--blue-deep);
}
.sys-chip input { margin: 0; }
.passport-foot {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: center;
  gap: 12px 16px;
  margin-top: 4px;
}
.passport-foot .field { margin: 0; }
.passport-foot input[name="maturity"] { width: 5.5rem; }
@media (max-width: 860px) {
  .passport-split,
  .passport-triple { grid-template-columns: 1fr; }
  .sys-dual-head,
  .sys-box.sys-box-split { grid-template-columns: 1fr; }
  .sys-head-label { white-space: normal; }
}

.period-bar {
  display: flex;
  gap: 8px;
  margin: 8px 0 18px;
  flex-wrap: wrap;
}
.period-bar .ghost.on {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-soft);
}
.money-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 8px 0 18px;
}
.money-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 18px 14px;
  box-shadow: var(--shadow);
}
.money-card strong {
  display: block;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}
.money-card span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 500;
}
.eval-block { margin: 8px 0 4px; width: 100%; }
.eval-block h2 { margin-top: 0; }
.eval-block.sheet { max-width: none; }
.eval-hint { margin: 8px 0 0; }
.sum-table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.sum-table { width: 100%; border-collapse: collapse; }
.sum-table th, .sum-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-size: 0.92rem;
}
.sum-table th {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.sum-table tr:last-child td { border-bottom: 0; }
.sum-table tr.tone-green td:first-child { box-shadow: inset 3px 0 0 #2f9e6b; }
.sum-table tr.tone-yellow td:first-child { box-shadow: inset 3px 0 0 #c48a1a; }
.sum-table tr.tone-gray td:first-child { box-shadow: inset 3px 0 0 var(--slate); }
.rule-box {
  margin-top: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 18px 16px;
}
.rule-box summary {
  cursor: pointer;
  font-weight: 600;
  padding: 6px 0 10px;
}
.rule-box[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 12px; }

.gantt {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.gantt table { border-collapse: collapse; min-width: 100%; }
.gantt th, .gantt td {
  border-bottom: 1px solid var(--line);
  padding: 12px 10px;
  font-size: 0.92rem;
  vertical-align: middle;
}
.gantt th {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.bar {
  height: 10px;
  background: var(--blue);
  position: relative;
  border-radius: 99px;
}
.bar.late { background: var(--danger); }
.bar.bottleneck::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid var(--teal);
  border-radius: 99px;
}
.task-form {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr auto;
  gap: 10px;
  margin-top: 18px;
  align-items: end;
}
.task-form label {
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-weight: 600;
}

.ritual {
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.ritual li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 1.7rem 1fr;
  gap: 10px;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.98rem;
}
.ritual li::before {
  content: counter(step);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--blue);
  font-weight: 500;
}
.list { padding-left: 0; list-style: none; }
.list li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.list a { text-decoration: none; }
.tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--blue);
  margin-right: 8px;
}

.view.home-atlas {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.view.home-atlas > * { max-width: none; animation: none; }

.atlas-sheet {
  width: 100%;
  max-width: none;
  padding: 36px 48px 56px;
}
.atlas-head { margin-bottom: 28px; }
.atlas-kicker {
  margin: 0 0 8px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.atlas-head h1 {
  margin: 0 0 8px;
  max-width: none;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}
.atlas-lead {
  margin: 0;
  color: var(--muted);
  max-width: 36rem;
}
.atlas-stack { display: flex; flex-direction: column; gap: 36px; }
.atlas-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 48px;
  align-items: start;
}
.atlas-block h2 {
  margin: 0 0 10px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
}
.atlas-block h2 { grid-column: 1 / -1; }
@media (max-width: 900px) {
  .atlas-block { grid-template-columns: 1fr; }
}
.atlas-block[data-band="strategy"] h2 { color: #b8862a; }
.atlas-block[data-band="device"] h2 { color: #3457d5; }
.atlas-block[data-band="work"] h2 { color: #1aa6a1; }
.atlas-block[data-band="result"] h2 { color: #8a6a32; }
.atlas-row {
  display: grid;
  grid-template-columns: 2.6rem 1fr;
  gap: 14px;
  align-items: start;
  padding: 12px 8px 14px;
  text-decoration: none;
  color: inherit;
  border-top: 1px solid rgba(90, 108, 132, 0.16);
}
.atlas-row:hover,
.atlas-row.hot {
  background: rgba(255, 255, 255, 0.55);
}
.atlas-n {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--muted);
  padding-top: 6px;
}
.atlas-row.hot .atlas-n { color: var(--blue); }
.atlas-row-body strong {
  display: block;
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.atlas-row-body em {
  display: block;
  margin-top: 4px;
  font-style: normal;
  font-size: 1.02rem;
  color: var(--muted);
  line-height: 1.45;
}
.atlas-row.pain .atlas-n { color: var(--danger); }

.atlas {
  position: relative;
  flex: 1;
  min-height: 0;
  height: 100%;
  overflow: auto;
  color: var(--ink);
  background:
    radial-gradient(900px 360px at 0% -10%, rgba(255, 255, 255, 0.65), transparent 58%),
    linear-gradient(165deg, #eceef2 0%, #dfe3ea 46%, #cfd6e0 100%);
}
.atlas-rule {
  position: absolute; left: 6%; right: 8%; height: 1px; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(90, 108, 132, 0.18), transparent);
}
.atlas-band {
  position: absolute; left: 16px; z-index: 1; margin: 0; pointer-events: none;
  font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: #7a8798; font-weight: 600;
}
.atlas-node {
  position: absolute; z-index: 5;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  width: 148px; text-decoration: none; color: var(--ink);
}
.atlas-node.atlas-col-a { left: 8%; }
.atlas-node.atlas-col-b { left: 30%; }
.atlas-disc {
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 32% 28%, rgba(255,255,255,0.95), transparent 42%),
    linear-gradient(180deg, #f7f8fb, #e4e9f0);
  box-shadow:
    0 8px 20px rgba(40, 54, 74, 0.1),
    0 0 0 1px rgba(120, 136, 156, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.atlas-disc svg { width: 22px; height: 22px; color: #3a4a5c; }
.atlas-num {
  position: absolute; top: -6px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 0.64rem;
  color: #fff; background: #6d7d92; border-radius: 999px;
  padding: 2px 6px;
}
.atlas-tag { text-align: center; width: 100%; }
.atlas-tag i {
  display: block; font-style: normal; font-size: 0.62rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: #7a8798; font-weight: 600;
}
.atlas-tag strong { display: block; font-size: 0.92rem; font-weight: 600; letter-spacing: -0.02em; }
.atlas-node:hover .atlas-disc,
.atlas-node.hot .atlas-disc { transform: scale(1.06); }
.atlas-node.hot .atlas-disc {
  box-shadow:
    0 10px 24px rgba(47, 111, 237, 0.16),
    0 0 0 2px #fff,
    0 0 0 5px var(--blue);
}
.atlas-node.hot .atlas-num { background: var(--blue); }
.atlas.is-hot .atlas-node:not(.hot) { opacity: 0.42; }
.atlas-node.pain .atlas-disc { box-shadow: 0 0 0 2px #fff, 0 0 0 5px var(--danger); }
.atlas .atlas-lead {
  display: none;
}
.atlas-cap {
  position: absolute; right: 16px; bottom: 18px; width: 250px; z-index: 6;
  background: rgba(255, 255, 255, 0.86); border: 1px solid rgba(90, 108, 132, 0.14);
  border-radius: 14px; padding: 16px;
  box-shadow: 0 12px 32px rgba(40, 54, 74, 0.1);
  transform: translateX(12px); opacity: 0; pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.atlas-cap.on { opacity: 1; transform: none; pointer-events: auto; }
.atlas-cap .k {
  font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--blue); font-weight: 600; margin: 0 0 6px;
}
.atlas-cap h3 { margin: 0 0 8px; font-size: 1.05rem; color: var(--ink); font-family: var(--font-body); }
.atlas-cap p { margin: 0; color: var(--muted); font-size: 0.86rem; line-height: 1.45; }
.atlas-cap a, .atlas-cap-links a {
  display: inline-block; margin-top: 10px; font-size: 0.82rem; font-weight: 600;
  color: var(--blue); text-decoration: none;
}
.atlas-cap a:hover, .atlas-cap-links a:hover { text-decoration: underline; }
.atlas-cap-links { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; }
.atlas-cap-links a { margin-top: 0; font-weight: 500; color: #3d4d66; }

@keyframes cardIn {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
@keyframes bud {
  from { opacity: 0; transform: translateX(-4px); }
  to { opacity: 1; transform: none; }
}

.folio-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin: 4px 0 16px;
  color: var(--muted);
  font-size: 0.82rem;
}
.folio-legend .dot,
.folio-legend .line {
  display: inline-block;
  vertical-align: middle;
  margin-right: 6px;
}
.folio-legend .dot {
  width: 14px;
  height: 8px;
  border-radius: 99px;
  background: var(--blue);
}
.folio-legend .dot.project { height: 10px; }
.folio-legend .dot.task { background: var(--teal); }
.folio-legend .dot.late { background: var(--danger); }
.folio-legend .line {
  width: 22px;
  height: 0;
  border-top: 2px solid var(--blue);
}
.folio-legend .line.overlap {
  border-top-style: dashed;
  border-color: #8b97ab;
}
.folio-board {
  position: relative;
  background: linear-gradient(180deg, #f7f9fc, #eef1f6);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 12px 18px;
  overflow-x: auto;
  min-height: 240px;
}
.folio-scale {
  position: relative;
  height: 28px;
  margin: 0 0 8px 240px;
  min-width: 720px;
}
.folio-tick {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
}
.folio-today {
  position: absolute;
  top: 0;
  bottom: -8px;
  width: 1px;
  background: var(--danger);
  opacity: 0.7;
}
.folio-group { margin-bottom: 18px; }
.folio-group h3 {
  margin: 0 0 8px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.folio-group h3 a { text-decoration: none; }
.folio-row {
  display: grid;
  grid-template-columns: 240px minmax(720px, 1fr);
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
.folio-name {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
}
.folio-name strong { font-size: 0.92rem; }
.folio-name span { font-size: 0.78rem; color: var(--muted); }
.folio-track {
  position: relative;
  height: 42px;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 10px;
  border: 1px solid rgba(213, 220, 232, 0.8);
}
.folio-bar {
  position: absolute;
  top: 8px;
  height: 12px;
  border-radius: 99px;
  background: var(--blue);
  box-shadow: 0 4px 10px rgba(47, 111, 237, 0.18);
}
.folio-bar.guessed { opacity: 0.38; }
.folio-bar.task {
  top: 24px;
  height: 7px;
  background: var(--teal);
  box-shadow: none;
}
.folio-bar.late { background: var(--danger); }
.folio-bar.neck { box-shadow: 0 0 0 2px rgba(26, 166, 161, 0.45); }
.folio-links {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
}
.folio-link.process { stroke: var(--blue); stroke-width: 1.6; opacity: 0.7; }
.folio-link.overlap { stroke: #8b97ab; stroke-width: 1.3; stroke-dasharray: 5 4; opacity: 0.8; }

@media (max-width: 960px) {
  .app { grid-template-columns: 1fr; height: auto; min-height: 100vh; overflow: visible; }
  .tree-pane { min-height: auto; max-height: 42vh; }
  .stage { height: auto; overflow: visible; }
  .home-tiles, .home-proc-cols, .home-works, .card-grid, .meta, .task-form, .steps, .money-pair { grid-template-columns: 1fr; }
  .home-board { padding-left: 0; }
  .home-board::before, .home-floor::before { display: none; }
  .view.home-atlas { min-height: 70vh; }
  .view { padding: 18px 16px 48px; }
  .view.wide { min-height: 70vh; }
  .draw-body { grid-template-columns: 1fr; }
  .draw-inspect { max-height: 28vh; border-left: 0; border-top: 1px solid var(--line); }
  h1 { max-width: none; }
  .app.tree-collapsed .tree-reopen { top: 12px; }
}

.works-tabs { display: flex; gap: 8px; margin: 8px 0 16px; flex-wrap: wrap; }
.works-tabs .ghost.on { border-color: var(--blue); color: var(--blue); background: var(--blue-soft); }
.spec-list { display: flex; flex-direction: column; gap: 8px; max-width: 52rem; }
.spec-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  text-decoration: none;
}
.spec-row:hover { border-color: var(--blue); }
.spec-row span { color: var(--muted); font-size: 0.86rem; }
.spec-row { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); text-decoration: none; }
.spec-row:hover { border-color: var(--blue); }
.spec-row span { color: var(--muted); font-size: 0.86rem; }
.spec-sheet .card-grid,
.spec-grid { gap: 12px 18px; }
.spec-sheet h1 { letter-spacing: -0.03em; }
.view.spec-sheet {
  padding: 16px 20px 28px;
  overflow: auto;
}
.view.spec-sheet .card-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  flex: 1;
}
.view.spec-sheet .field { margin-bottom: 0; min-width: 0; }
.view.spec-sheet .sheet-cell {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 12px 14px 11px;
}
.view.spec-sheet .sheet-cell label {
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.view.spec-sheet .sheet-cell input,
.view.spec-sheet .sheet-cell select {
  height: 38px;
  background: #fff;
}
.view.spec-sheet .sheet { width: 100%; max-width: none; }
.spec-grid .same-box textarea {
  min-height: 96px;
  height: 96px;
  resize: vertical;
}

/* ——— паспорт процесса (карточки) ——— */
.passport-sheet { display: flex; flex-direction: column; gap: 24px; }
.passport-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: flex-end;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.passport-meta .field { margin: 0; min-width: 8rem; flex: 1; }
.passport-meta .field label { font-size: 0.72rem; }
.passport-meta .maturity-legend {
  flex: 1 1 100%;
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}
.passport-section { margin: 0; }
.passport-section-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.passport-section-head .n {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--blue);
  letter-spacing: 0.06em;
}
.passport-section-head h2 {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
}
.passport-grid {
  display: grid;
  gap: 12px;
}
.passport-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.passport-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.passport-grid-context {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.passport-context-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  grid-column: 1 / -1;
}
.passport-tile-tall {
  min-height: 11rem;
  display: flex;
  flex-direction: column;
}
.passport-tile-tall textarea {
  flex: 1;
  min-height: 7.5rem;
}
.passport-tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 14px 16px;
  box-shadow: var(--shadow);
  min-width: 0;
}
.passport-tile-wide { grid-column: span 2; }
.passport-tile-full { grid-column: 1 / -1; }
.passport-section .passport-grid-3 { margin-top: 12px; }
.passport-tile.sys-tile-wrap { grid-column: 1 / -1; }
.passport-tile label,
.passport-tile > label.field > span:first-child,
.passport-tile .field > label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 8px;
}
.passport-tile .field { margin: 0; }
.passport-tile input,
.passport-tile select,
.passport-tile textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 8px 10px;
  background: #fff;
}
.passport-tile textarea { min-height: 88px; resize: vertical; }
.passport-tile .sys-field { margin: 0; }
.passport-tile .sys-box-split { margin-top: 4px; }
@media (max-width: 1100px) {
  .passport-grid-4 { grid-template-columns: 1fr 1fr; }
  .passport-tile-wide { grid-column: span 2; }
  .passport-grid-3 { grid-template-columns: 1fr; }
  .passport-tile-wide { grid-column: span 1; }
}
.draw-inspect textarea {
  width: 100%;
  min-height: 18rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 8px 10px;
  background: var(--paper);
  resize: vertical;
  font-size: 0.92rem;
  line-height: 1.45;
}
.draw-inspect .check { flex-direction: row; align-items: center; gap: 8px; }
.folio-table-wrap,
.folio-table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.folio-table,
.folio-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.folio-table th, .folio-table td,
.folio-table th, .folio-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.folio-table th,
.folio-table th { font-size: 0.64rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.kanban { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; }
.kanban-col { min-height: 12rem; padding: 10px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.kanban-col h3 { margin: 0 0 10px; font-size: 0.82rem; }
.kanban-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px;
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--paper);
  cursor: grab;
}
.kanban-card.neck { box-shadow: inset 3px 0 0 var(--danger); }
.atlas-row { display: grid; grid-template-columns: 2.6rem 1fr; gap: 14px; padding: 12px 8px 14px; border-top: 1px solid rgba(90, 108, 132, 0.16); }
.atlas-row-main { display: contents; text-decoration: none; color: inherit; }
.atlas-extras { grid-column: 2; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.atlas-extra { font-size: 0.92rem; color: var(--blue); text-decoration: none; }
.atlas-extra:hover { text-decoration: underline; }

/* ——— Матрица: кабинет проектного офиса ——— */
.view.matrix {
  --mx-ink: #1c1f27;
  --mx-mute: #5c6270;
  --mx-line: #d0d3db;
  --mx-head: #eceef2;
  --mx-accent: #c4452d;
  --mx-ok: #2f6b4f;
  --mx-warn: #c4892a;
  --mx-r: 2px;
  padding: 14px 20px 16px;
  overflow: hidden;
}
.view.matrix:not(.spec-sheet) { overflow: hidden; }
.view.spec-sheet { overflow: auto; }
.view.matrix.wide { padding: 10px 12px 18px; overflow: auto; }
.mx-kicker,
.mx-kicker {
  margin: 0 0 4px;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mx-mute);
  font-weight: 700;
}
.view.matrix h1 { letter-spacing: -0.03em; max-width: none; }
.mx-kpis,
.mx-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border: 1px solid var(--mx-line);
  background: var(--surface);
  margin: 14px 0 12px;
}
.mx-kpi,
.mx-kpi {
  padding: 10px 12px 12px;
  border-right: 1px solid var(--mx-line);
  min-width: 0;
}
.mx-kpi:last-child,
.mx-kpi:last-child { border-right: 0; }
.mx-kpi b,
.mx-kpi b {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--mx-mute);
  line-height: 1.25;
}
.mx-kpi strong,
.mx-kpi strong {
  display: block;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.mx-kpi em,
.mx-kpi em {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-size: 0.68rem;
  color: var(--mx-mute);
}
.mx-kpi.hot strong,
.mx-kpi.hot strong { color: var(--mx-accent); }
.mx-filters,
.mx-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 0.82rem;
}
.mx-filters select,
.mx-filters button,
.mx-filters select,
.mx-filters button {
  border: 1px solid var(--mx-line);
  background: var(--surface);
  border-radius: var(--mx-r);
  padding: 5px 10px;
  font-size: 0.82rem;
}
.mx-filters button.on,
.mx-filters button.on {
  border-color: var(--mx-accent);
  color: var(--mx-accent);
  background: rgba(196, 69, 45, 0.08);
}
.mx-filters .mx-count,
.mx-filters .mx-count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--mx-mute);
}
.mx-split {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1.2fr);
  gap: 12px;
  align-items: stretch;
  flex: 1;
  min-height: 0;
}
.mx-heat {
  border: 1px solid var(--mx-line);
  background: var(--surface);
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.view.matrix > .mx-kicker,
.view.matrix > .mx-kicker,
.view.matrix > h1,
.view.matrix > .lead,
.view.matrix > .works-tabs,
.view.matrix > .works-tabs,
.view.matrix > .mx-kpis,
.view.matrix > .mx-kpis,
.view.matrix > .mx-filters,
.view.matrix > .mx-filters {
  flex-shrink: 0;
}
.view.matrix .lead {
  max-width: none;
  font-size: 0.92rem;
}
.mx-heat h2,
.mx-table-card h2 {
  margin: 0 0 10px;
  font-size: 0.88rem;
  flex-shrink: 0;
}
.mx-heat p, .mx-table-card .mx-note {
  margin: 0 0 10px;
  font-size: 0.75rem;
  color: var(--mx-mute);
}
.mx-heat-grid {
  display: grid;
  grid-template-columns: 5.8rem repeat(5, 1fr);
  grid-template-rows: repeat(5, minmax(36px, 1fr)) auto;
  gap: 2px;
  align-items: stretch;
  flex: 1;
  min-height: 0;
}
.mx-heat-lab,
.mx-heat-lab {
  font-size: 0.64rem;
  color: var(--mx-mute);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 6px;
  text-align: right;
  line-height: 1.15;
}
.mx-cell,
.mx-cell {
  min-height: 28px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  border: 0;
  cursor: pointer;
}
.mx-cell.t0, .mx-cell.t0 { background: #e7f0ea; color: #2f6b4f; }
.mx-cell.t1, .mx-cell.t1 { background: #f3e7c8; color: #6a4e12; }
.mx-cell.t2, .mx-cell.t2 { background: #e8b07a; color: #3a2410; }
.mx-cell.t3, .mx-cell.t3 { background: #c4452d; color: #fff; }
.mx-cell.empty, .mx-cell.empty { opacity: 0.38; }
.mx-cell.on, .mx-cell.on { outline: 2px solid var(--mx-ink); outline-offset: 0; }
.mx-axis,
.mx-axis {
  display: contents;
}
.mx-axis span {
  font-size: 0.62rem;
  color: var(--mx-mute);
  text-align: center;
  padding-top: 4px;
}
.mx-table-card {
  border: 1px solid var(--mx-line);
  background: var(--surface);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.mx-table-card h2 { padding: 12px 14px 0; }
.mx-table-card .mx-note { padding: 0 14px; flex-shrink: 0; }
.view.matrix .folio-table-wrap,
.mx-table-wrap {
  overflow: auto;
  border: 0;
  border-radius: 0;
  flex: 1;
  min-height: 0;
}
.view.matrix .folio-table,
.mx-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}
.view.matrix .folio-table th,
.view.matrix .folio-table td,
.mx-table th,
.mx-table td {
  padding: 7px 10px;
  border-bottom: 1px solid var(--mx-line);
  vertical-align: top;
}
.view.matrix .folio-table th,
.mx-table th {
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--mx-mute);
  background: var(--mx-head);
}
.mx-table tfoot td {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: var(--mx-head);
  font-weight: 600;
}
.mx-late, .mx-neck { color: var(--mx-accent); font-weight: 600; }
.mx-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border: 1px solid var(--mx-line);
  background: var(--surface);
  margin: 0 0 18px;
}
.mx-strip div {
  padding: 8px 10px 10px;
  border-right: 1px solid var(--mx-line);
}
.mx-strip div:last-child { border-right: 0; }
.mx-strip b {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mx-mute);
  font-weight: 600;
}
.mx-strip span { font-size: 0.86rem; }
.view.matrix .folio-board {
  border-radius: var(--mx-r);
  background: var(--surface);
}
.view.matrix .folio-name,
.view.matrix .kanban-col,
.view.matrix .kanban-card {
  border-radius: var(--mx-r);
}
.view.matrix .kanban-card.neck { box-shadow: inset 3px 0 0 var(--mx-accent); }
@media (max-width: 1100px) {
  .mx-kpis, .mx-kpis, .mx-strip { grid-template-columns: repeat(3, 1fr); }
  .mx-kpi, .mx-kpi, .mx-strip div { border-bottom: 1px solid var(--mx-line); }
  .mx-split { grid-template-columns: 1fr; flex: none; }
  .view.matrix { overflow: auto; }
  .view.spec-sheet .card-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .mx-kpis, .mx-kpis, .mx-strip { grid-template-columns: 1fr 1fr; }
  .kanban { grid-template-columns: 1fr; }
}

/* Дополнительные нотации у процесса: UML, EPC, сквозная */
.process-tabs {
  flex-wrap: wrap;
  gap: 2px 6px;
}
.process-tabs a {
  padding: 6px 10px;
  font-size: 0.88rem;
}
.notation-shell {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 0;
}
.canvas-wrap.notation-wrap {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
}
.draw-view .draw-body {
  flex: 1;
  min-height: 0;
}
.notation-stage {
  position: relative;
  flex: 1;
  min-height: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #faf9f6;
}
.notation-palette {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 4;
  box-sizing: border-box;
  width: auto;
  max-width: 120px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  box-shadow: 0 2px 10px rgba(26, 35, 50, 0.08);
  pointer-events: auto;
}
.notation-palette.uml-palette {
  max-width: 252px;
}
.notation-palette .palette-body {
  display: grid;
  grid-template-columns: repeat(2, 46px);
  gap: 2px;
  padding: 4px;
}
.palette-hint {
  grid-column: 1 / -1;
  margin: 0;
  padding: 2px 4px 4px;
  font-size: 0.72rem;
  color: var(--muted, #6b7280);
  line-height: 1.35;
}
.palette-chip {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  min-width: 46px;
  min-height: 46px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 2px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  touch-action: none;
  user-select: none;
}
.palette-chip:hover {
  border-color: var(--line);
  background: #f7f9fc;
}
.palette-chip-icon {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}
.palette-chip-icon svg {
  width: 40px;
  height: 28px;
  color: var(--navy);
  overflow: visible;
}
.palette-chip-icon svg circle,
.palette-chip-icon svg rect,
.palette-chip-icon svg polygon,
.palette-chip-icon svg ellipse,
.palette-chip-icon svg path {
  vector-effect: non-scaling-stroke;
}
.palette-drag-ghost svg {
  width: 100%;
  height: 100%;
  color: var(--navy);
}
.notation-svg.drop-target,
.notation-stage.drop-target {
  outline: 2px dashed #1aa6a1;
  outline-offset: -3px;
}
.palette-chip-label {
  display: none;
}
.notation-palette .palette-prefix {
  padding: 6px 6px 2px;
  border-bottom: 1px solid var(--line);
}
.palette-drag-ghost {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  width: 46px;
  height: 46px;
  padding: 4px;
  border: 1px solid var(--navy);
  border-radius: 2px;
  background: #fff;
  box-shadow: var(--shadow);
  opacity: 0.95;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
}
.palette-drag-ghost svg {
  width: 38px;
  height: 26px;
  color: var(--navy);
  overflow: visible;
}
.palette-drag-ghost.over-canvas {
  border-color: #1aa6a1;
  box-shadow: 0 0 0 2px rgba(26, 166, 161, 0.25);
}
body.palette-dragging {
  cursor: grabbing;
  user-select: none;
}
body.palette-dragging .notation-svg {
  pointer-events: none;
}
.color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0 10px;
}
.color-swatch {
  width: 22px;
  height: 22px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
}
.color-swatch:hover {
  border-color: var(--navy);
  box-shadow: 0 0 0 1px var(--navy);
}
.palette-colors {
  flex: 1 1 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 4px;
  margin-top: 2px;
  border-top: 1px solid var(--line);
}
.palette-colors-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  flex-shrink: 0;
}
.palette-color-swatches {
  flex: 1;
}
.notation-colors {
  margin: 0 0 14px;
  padding: 12px 0 0;
  border-top: 1px solid var(--line);
}
.notation-colors.is-disabled .color-swatches,
.notation-colors.is-disabled label,
.notation-colors.is-disabled .check-row,
.notation-colors.is-disabled .ghost {
  opacity: 0.45;
  pointer-events: none;
}
.notation-colors-hint {
  margin: 0 0 8px;
  font-size: 0.8rem;
  color: var(--muted, #6b7280);
  line-height: 1.35;
}
.notation-colors label {
  display: block;
  margin-top: 8px;
  font-size: 0.84rem;
}
.notation-colors label input[type="text"] {
  width: 100%;
  margin-top: 4px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
}
.notation-colors .check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
}
.notation-gap rect {
  stroke-width: 1.8;
}
.notation-gap.selected rect,
.notation-gap.selected ellipse {
  stroke: #d4a24a !important;
  stroke-width: 2.2;
}
.notation-port {
  fill: #fff;
  stroke: var(--navy);
  stroke-width: 1.4;
  opacity: 0;
  pointer-events: all;
  cursor: crosshair;
}
.notation-resize {
  fill: #fff;
  stroke: var(--navy);
  stroke-width: 1.4;
  pointer-events: all;
  cursor: nwse-resize;
}
.notation-gap .notation-port {
  opacity: 1;
}
.palette-chip.wire-style {
  cursor: crosshair;
}
.palette-chip.wire-style.on {
  border-color: var(--navy);
  background: rgba(52, 87, 213, 0.12);
  box-shadow: inset 0 0 0 2px var(--navy);
}
.palette-wire-hint {
  margin: 0 0 8px;
  padding: 8px 10px;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--navy);
  background: rgba(52, 87, 213, 0.08);
  border: 1px solid rgba(52, 87, 213, 0.22);
  border-radius: var(--r);
}
.palette-wire-hint.hidden {
  display: none;
}
.notation-stage.wire-armed .sketch-svg,
.notation-stage.wire-armed .seq-svg {
  cursor: crosshair;
}
.palette-chip.on {
  border-color: var(--navy);
  background: rgba(43, 58, 103, 0.08);
  box-shadow: inset 0 0 0 1px var(--navy);
}
.palette-btn,
.notation-palette button.palette-btn {
  width: 46px;
  height: 46px;
  min-width: 46px;
  min-height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.palette-btn:hover,
.notation-palette button.palette-btn:hover {
  border-color: var(--navy);
  color: var(--navy);
}
.palette-field {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
}
.notation-palette button.on,
.palette-btn.on,
.view-toggle.on {
  border-color: var(--navy);
  color: var(--navy);
  background: rgba(43, 58, 103, 0.08);
}
.notation-palette button.on {
  border-color: var(--navy);
  color: var(--navy);
  background: rgba(43, 58, 103, 0.08);
}
.notation-palette label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
}
.notation-palette select {
  min-width: 140px;
}
.notation-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  background: #faf9f6;
  touch-action: none;
  user-select: none;
}
.notation-wrap .notation-shell {
  height: 100%;
}
.seq-shell {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 0;
}
.seq-stage {
  overflow: auto;
}
.seq-svg.hidden,
.seq-mermaid-layer.hidden {
  display: none;
}
.seq-mermaid-layer {
  position: absolute;
  inset: 0;
  padding: 20px;
  overflow: auto;
  background: #faf9f6;
}
.seq-dialog-preview {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #faf9f6;
  overflow: auto;
  max-height: 280px;
}
.dialog-row {
  margin-top: 10px;
}
.seq-svg .seq-part-head {
  fill: #fff;
  stroke: var(--navy);
  stroke-width: 1.6;
}
.seq-svg .seq-lifeline {
  stroke: var(--navy);
  stroke-width: 1.2;
  stroke-dasharray: 5 4;
}
.seq-svg .seq-part.selected .seq-part-head,
.seq-svg .seq-note.selected rect {
  stroke: #d4a24a;
  stroke-width: 2.2;
}
.seq-svg .seq-msg-line {
  stroke: var(--navy);
  stroke-width: 1.6;
}
.seq-svg .seq-message.selected .seq-msg-line {
  stroke: #d4a24a;
  stroke-width: 2.2;
}
.seq-svg .seq-msg-label,
.seq-svg .seq-part text,
.seq-svg .seq-note text {
  fill: var(--ink);
  font-size: 12px;
}
.seq-svg .seq-note rect {
  fill: #fff9e8;
  stroke: var(--navy);
  stroke-width: 1.4;
}
.seq-svg .seq-note-fold {
  fill: #efe8d8;
  stroke: none;
}
.seq-svg .seq-marker {
  fill: var(--navy);
}
.seq-svg .seq-marker.open {
  fill: #fff;
  stroke: var(--navy);
  stroke-width: 1.2;
}
.seq-svg .seq-lifeline-hit {
  stroke: transparent;
  stroke-width: 14;
  pointer-events: stroke;
  cursor: crosshair;
}
.seq-svg .seq-msg-hit {
  fill: transparent;
  stroke: none;
  cursor: pointer;
}
.seq-svg .seq-wire-dot {
  fill: #fff;
  stroke: var(--navy);
  stroke-width: 1.6;
  cursor: crosshair;
}
.seq-part.wiring .seq-wire-dot,
.seq-part.selected .seq-wire-dot {
  fill: #d4a24a;
  stroke: #8a5a12;
}
.seq-rubber {
  fill: none;
  stroke: #d4a24a;
  stroke-width: 2;
  pointer-events: none;
}
.seq-code-label textarea.mono,
textarea.mono {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.82rem;
  line-height: 1.45;
}
.inspect-hint code {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.82em;
}

.process-tab-hint {
  margin: 4px 0 0;
  font-size: 0.82rem;
}
.palette-uml-kicker,
.palette-sketch-kicker {
  margin: 0;
  padding: 8px 10px 6px;
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.notation-palette.sketch-palette,
.notation-palette.uml-palette {
  width: 252px;
  max-width: 252px;
  max-height: min(78vh, 640px);
  overflow: auto;
}
.palette-sections {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px;
}
.palette-section {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
}
.palette-section-title {
  padding: 6px 8px;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.palette-section-title::-webkit-details-marker {
  display: none;
}
.palette-section-title::before {
  content: "▸";
  display: inline-block;
  margin-right: 6px;
  color: var(--muted);
  transition: transform 0.12s ease;
}
.palette-section[open] .palette-section-title::before {
  transform: rotate(90deg);
}
.palette-section-body {
  display: grid;
  grid-template-columns: repeat(4, 52px);
  gap: 4px;
  padding: 0 8px 8px;
  justify-content: center;
}
.notation-palette.sketch-palette .palette-chip,
.notation-palette.uml-palette .palette-chip {
  width: 52px;
  height: 52px;
  min-width: 52px;
  min-height: 52px;
}
.sketch-svg .sketch-node text {
  fill: var(--ink);
  font-size: 12px;
  pointer-events: none;
}
.sketch-svg .sketch-node.selected rect,
.sketch-svg .sketch-node.selected polygon,
.sketch-svg .sketch-node.selected ellipse,
.sketch-svg .sketch-node.selected circle {
  stroke: #d4a24a;
  stroke-width: 2.2;
}
.sketch-svg .sketch-edge {
  fill: none;
  stroke: var(--navy);
  stroke-width: 1.6;
  pointer-events: stroke;
}
.sketch-svg .sketch-edge.selected {
  stroke: #d4a24a;
  stroke-width: 2.2;
}
.sketch-svg .sketch-edge-label {
  fill: #5a6478;
  font-size: 11px;
}
.sketch-rubber {
  fill: none;
  stroke: #3457d5;
  stroke-width: 2;
  pointer-events: none;
}
.edge-inspector {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}
.edge-inspector label {
  display: grid;
  gap: 4px;
  font-size: 0.82rem;
}
.edge-inspector select,
.edge-inspector input[type="text"] {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
}
.edge-inspector-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.sketch-node.selected .sketch-port,
.sketch-node:hover .sketch-port,
.sketch-node.selected .notation-port,
.sketch-node:hover .notation-port {
  opacity: 1;
}

/* ——— кабинет в навигаторе ——— */
.nav-foot {
  margin-top: auto;
  padding: 12px 16px 16px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.35);
  transition: background 0.15s ease;
}
.nav-foot:hover { background: rgba(255, 255, 255, 0.55); }
.nav-foot.on { background: rgba(255, 255, 255, 0.7); }
.nav-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
}
.nav-user { min-width: 0; }
.nav-user strong {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-user em {
  display: block;
  font-style: normal;
  font-size: 0.76rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ——— экран личного кабинета ——— */
.cabinet-page { padding: 8px 4px 40px; max-width: 960px; }
.cabinet-page h1 {
  margin: 0 0 6px;
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.cabinet-lead {
  margin: 0 0 24px;
  color: var(--muted);
  max-width: 40rem;
}
.cabinet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.cabinet-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 18px 18px 16px;
}
.cabinet-card h2 {
  margin: 0 0 12px;
  font-size: 0.95rem;
  font-weight: 600;
}
.cabinet-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.88rem;
  padding: 7px 0;
  border-bottom: 1px solid rgba(213, 216, 224, 0.65);
}
.cabinet-row:last-child { border-bottom: 0; }
.cabinet-row span:first-child { color: var(--muted); }
.cabinet-card .field { margin-bottom: 10px; }
.cabinet-card .ghost,
.cabinet-card .primary {
  margin-top: 10px;
}
.cabinet-note {
  margin-top: 18px;
  padding: 12px 14px;
  background: var(--blue-soft);
  border: 1px solid rgba(52, 87, 213, 0.2);
  border-radius: var(--r);
  font-size: 0.86rem;
  color: var(--ink);
}
.cabinet-members { margin: 0; padding: 0; list-style: none; }
.cabinet-members li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(213, 216, 224, 0.65);
  font-size: 0.88rem;
}
.cabinet-members li:last-child { border-bottom: 0; }
.cabinet-members small { color: var(--muted); display: block; }
.cabinet-invite-form {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}
.cabinet-invite-form .row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}
.cabinet-plans {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}
.cabinet-plan {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  font-size: 0.86rem;
  background: #f7f9fc;
}
.cabinet-plan strong { font-weight: 600; }
.cabinet-plan span { color: var(--muted); }
.cabinet-plan.is-current {
  border-color: var(--blue);
  background: var(--blue-soft);
}
