.technical-flow {
  max-width: 1500px;
  margin: 0 auto;
  padding: 30px 32px 56px;
  color: #12233f;
}
.technical-flow-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 26px;
}
.technical-flow-hero h1 {
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  letter-spacing: -0.045em;
  margin: 9px 0 8px;
  color: #0d1b35;
}
.technical-flow-hero p {
  max-width: 720px;
  color: #62718b;
  font-size: 1rem;
  margin: 0;
  line-height: 1.65;
}
.technical-flow-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.technical-flow-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.technical-flow-levels {
  display: flex;
  gap: 6px;
  padding: 5px;
  border: 1px solid #dbe4f0;
  background: #f6f9fd;
  border-radius: 14px;
}
.flow-level-tab {
  border: 0;
  background: transparent;
  color: #63728b;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
  white-space: nowrap;
}
.flow-level-tab span {
  display: inline-grid;
  place-items: center;
  width: 23px;
  height: 23px;
  margin-right: 5px;
  border-radius: 50%;
  background: #e7edf6;
  color: #71809a;
  font-size: 0.75rem;
}
.flow-level-tab:hover {
  color: #1d4ed8;
  background: #edf4ff;
}
.flow-level-tab.is-active {
  background: #174ea6;
  color: #fff;
  box-shadow: 0 4px 10px #174ea633;
}
.flow-level-tab.is-active span {
  background: #fff;
  color: #174ea6;
}
.technical-flow-zoom {
  display: flex;
  align-items: center;
  gap: 7px;
}
.technical-flow-zoom output {
  min-width: 48px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 800;
  color: #53627a;
}
.technical-flow-board {
  overflow: hidden;
  border: 1px solid #dae4f1;
  box-shadow: 0 18px 50px #183b6714;
}
.technical-flow-board-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 25px 28px 20px;
  background: linear-gradient(120deg, #f8fbff, #fff);
}
.technical-flow-kicker {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  font-weight: 800;
  color: #4972b9;
}
.technical-flow-board h2 {
  margin: 8px 0 5px;
  color: #122d5b;
  letter-spacing: -0.02em;
}
.technical-flow-board-head p {
  margin: 0;
  color: #6a7890;
  line-height: 1.55;
}
.technical-flow-hint {
  font-size: 0.78rem;
  color: #728198;
  white-space: nowrap;
  padding-top: 7px;
}
.technical-flow-hint i {
  color: #3676d3;
  margin-right: 5px;
}
.technical-flow-viewport {
  height: 610px;
  overflow: auto;
  background: #f7faff;
  background-image: linear-gradient(#e7eef8 1px, transparent 1px),
    linear-gradient(90deg, #e7eef8 1px, transparent 1px);
  background-size: 28px 28px;
  border-top: 1px solid #e5ebf3;
  border-bottom: 1px solid #e5ebf3;
  padding: 32px;
}
.technical-flow-canvas {
  width: max-content;
  min-width: 100%;
  transition: transform 0.2s ease;
}
.flow-svg {
  display: block;
  overflow: visible;
}
.flow-edge path {
  stroke: #7890ad;
  stroke-width: 2;
  stroke-dasharray: 7 5;
  fill: none;
}
.flow-edge marker path {
  fill: #7890ad;
  stroke: none;
}
.flow-edge text {
  font: 600 12px Inter, system-ui, sans-serif;
  fill: #6e7f98;
  text-anchor: middle;
  paint-order: stroke;
  stroke: #f7faff;
  stroke-width: 5px;
  stroke-linejoin: round;
}
.flow-node {
  outline: none;
  cursor: pointer;
}
.flow-node rect {
  stroke-width: 2;
  filter: drop-shadow(0 6px 8px #173c6b1c);
  transition: 0.2s;
}
.flow-node:hover rect,
.flow-node:focus rect {
  transform: translateY(-3px);
  filter: drop-shadow(0 10px 12px #173c6b30);
}
.flow-node text {
  pointer-events: none;
}
.flow-node-type {
  font: 800 10px Inter, system-ui, sans-serif;
  letter-spacing: 1.1px;
}
.flow-node-label {
  font: 700 15px Inter, system-ui, sans-serif;
  fill: #19345d;
}
.flow-node--actor rect {
  fill: #fff7ed;
  stroke: #f2a44b;
}
.flow-node--actor .flow-node-type {
  fill: #c36b10;
}
.flow-node--process rect {
  fill: #eef5ff;
  stroke: #76a7e6;
}
.flow-node--process .flow-node-type {
  fill: #2863aa;
}
.flow-node--store rect {
  fill: #edfbf6;
  stroke: #65c5a3;
}
.flow-node--store .flow-node-type {
  fill: #258567;
}
.flow-node--boundary rect {
  fill: #edf0ff;
  stroke: #536ed1;
  stroke-width: 3;
}
.flow-node--boundary .flow-node-type {
  fill: #4057b0;
}
.technical-flow-legend {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  padding: 15px 22px;
  color: #687991;
  font-size: 0.78rem;
}
.technical-flow-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.flow-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  display: inline-block;
  border: 1px solid;
}
.flow-dot--actor {
  background: #fff0db;
  border-color: #f2a44b;
}
.flow-dot--process {
  background: #dbeaff;
  border-color: #76a7e6;
}
.flow-dot--store {
  background: #d9f6e9;
  border-color: #65c5a3;
}
.flow-dot--boundary {
  background: #dfe4ff;
  border-color: #536ed1;
}
.technical-flow-inspector {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 16px;
  padding: 20px 24px;
  border: 1px solid #dbe4f0;
}
.technical-flow-inspector[hidden] {
  display: none;
}
.technical-flow-inspector h3 {
  margin: 5px 0 4px;
  color: #173762;
}
.technical-flow-inspector p {
  margin: 0;
  color: #687991;
  line-height: 1.6;
}
.technical-flow-inspector-icon {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  height: 44px;
  border-radius: 13px;
  background: #e8f0ff;
  color: #2962b7;
  font-size: 1.1rem;
}
.technical-flow-inspector-icon--actor {
  background: #fff0dc;
  color: #c36b10;
}
.technical-flow-inspector-icon--store {
  background: #def7eb;
  color: #258567;
}
.technical-flow-inspector-icon--boundary {
  background: #e2e7ff;
  color: #4057b0;
}
@media (max-width: 850px) {
  .technical-flow {
    padding: 22px 16px 40px;
  }
  .technical-flow-hero {
    display: block;
  }
  .technical-flow-actions {
    margin-top: 18px;
  }
  .technical-flow-board-head {
    display: block;
    padding: 20px;
  }
  .technical-flow-hint {
    margin-top: 12px;
  }
  .technical-flow-viewport {
    height: 500px;
    padding: 18px;
  }
  .technical-flow-levels {
    overflow: auto;
    width: 100%;
  }
  .flow-level-tab {
    padding: 9px 11px;
    font-size: 0.78rem;
  }
  .technical-flow-zoom {
    margin-left: auto;
  }
}
@media print {
  .technical-flow {
    padding: 0;
    max-width: none;
  }
  .technical-flow-hero,
  .technical-flow-toolbar,
  .technical-flow-inspector,
  .technical-flow-legend {
    display: none;
  }
  .technical-flow-board {
    box-shadow: none;
    border: 0;
  }
  .technical-flow-viewport {
    height: auto;
    overflow: visible;
    border: 0;
    padding: 0;
    background: none;
  }
  .technical-flow-board-head {
    padding: 0 0 15px;
  }
  .flow-svg {
    max-width: 100%;
    height: auto;
  }
}
