@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;600;700&family=Inter:wght@400;500;600;700;800&display=swap");
:root {
  font-family: Inter, "Noto Sans JP", sans-serif;
  color: #26332e;
  font-size: 13px;
  background: #f7f9f7;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button {
  cursor: pointer;
  border: 1px solid #dce2dd;
  border-radius: 6px;
  background: white;
  padding: 10px 14px;
  color: #43524a;
  white-space: nowrap;
}
button:hover {
  background: #eff5f0;
  border-color: #b3c9b9;
}
button:focus-visible {
  outline: 2px solid #268060;
  outline-offset: 2px;
}
header {
  height: 76px;
  background: white;
  border-bottom: 1px solid #e5e9e5;
  display: flex;
  align-items: center;
  padding: 0 38px;
  gap: 30px;
}
.brand {
  font-size: 25px;
  letter-spacing: -1px;
  font-weight: 800;
  text-decoration: none;
  color: #233f30;
  display: flex;
  align-items: center;
  gap: 10px;
}
.brandicon {
  background: #285a40;
  border-radius: 9px;
  color: white;
  font-size: 30px;
  width: 35px;
  height: 35px;
  line-height: 30px;
  text-align: center;
}
.beta {
  font-size: 9px;
  letter-spacing: 1px;
  font-weight: 600;
  background: #edf4ed;
  color: #66816a;
  padding: 4px 5px;
  border-radius: 4px;
}
.tagline {
  font-size: 11px;
  color: #859087;
}
.headright {
  margin-left: auto;
  display: flex;
  gap: 24px;
  align-items: center;
}
.headright button {
  border: 0;
}
.local {
  font-size: 11px;
  color: #6d7b71;
}
i {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6b9d79;
  margin-right: 6px;
}
main {
  padding: 36px 38px;
}
.titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 1.9px;
  color: #84948a;
  margin-bottom: 10px;
  font-weight: 600;
}
#title {
  display: block;
  background: transparent;
  border: 0;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #273d30;
  width: 600px;
  max-width: 100%;
  padding: 0;
}
.subtitle {
  font-size: 11px;
  color: #879189;
  margin-top: 8px;
}
.fileactions {
  display: flex;
  gap: 10px;
}
.primary {
  background: #285e42;
  color: white;
  border-color: #285e42;
}
.primary:hover {
  background: #1d4d33;
  color: white;
}
.primary span {
  margin-left: 15px;
}
.editor {
  background: white;
  border: 1px solid #dce3dd;
  border-radius: 10px;
  box-shadow: 0 6px 25px #243b2a06;
  overflow: hidden;
}
.toolbar {
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid #e4e8e5;
  gap: 12px;
}
.tools {
  display: flex;
  gap: 5px;
  align-items: center;
}
.tools button {
  border-color: transparent;
  padding: 8px 10px;
}
.tools button.active {
  background: #eaf2eb;
  color: #2b6542;
  border: 1px solid #d5e4d7;
}
.tools button span {
  margin-left: 6px;
  font-size: 11px;
}
kbd {
  font-size: 9px;
  color: #9aa69d;
  margin-left: 12px;
  font-family: inherit;
}
.divider {
  width: 1px;
  height: 22px;
  background: #e4e9e5;
  margin: 0 7px;
}
#zoomlabel {
  font-size: 10px;
  min-width: 38px;
  text-align: center;
}
.editorbody {
  display: flex;
  height: 538px;
}
.canvaswrap {
  overflow: auto;
  flex: 1;
  background: #fafcfa;
  min-width: 0;
}
.canvas {
  transform-origin: 0 0;
  width: max-content;
}
svg {
  display: block;
  user-select: none;
}
aside {
  width: 242px;
  flex-shrink: 0;
  border-left: 1px solid #e2e7e2;
  background: #fff;
  display: flex;
  flex-direction: column;
}
.asidehead {
  padding: 21px 19px;
  border-bottom: 1px solid #edf0ed;
  font-weight: 600;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
}
.asidehead span {
  color: #8a968d;
}
#properties {
  padding: 20px;
  flex: 1;
}
label {
  display: block;
  font-size: 10px;
  color: #7e8a81;
  margin-bottom: 8px;
}
.field {
  margin-bottom: 19px;
}
.field input:not([type="color"]),
.field textarea,
.field select {
  width: 100%;
  padding: 10px;
  border: 1px solid #dfe5e0;
  border-radius: 5px;
  background: #fff;
  color: #354b3c;
  font-size: 12px;
}
.field textarea {
  resize: vertical;
  min-height: 70px;
}
.field input[type="color"] {
  width: 34px;
  height: 29px;
  background: white;
  border: 1px solid #dfe5e0;
  border-radius: 5px;
  padding: 3px;
}
.colors {
  display: flex;
  gap: 35px;
}
.muted {
  color: #8b978e;
  font-size: 11px;
  line-height: 1.9;
}
.pill {
  font-size: 10px;
  color: #588268;
  background: #edf4ee;
  padding: 6px 9px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 20px;
}
.asidebottom {
  margin: 0 17px 20px;
  background: #f5f8f3;
  border: 1px solid #e8eee5;
  border-radius: 7px;
  padding: 15px;
}
.asidebottom b {
  font-size: 10px;
}
.hinticon {
  color: #769764;
  margin-right: 7px;
}
.asidebottom p {
  font-size: 10px;
  line-height: 1.9;
  color: #86927f;
  margin: 8px 0 0;
}
footer {
  height: 39px;
  border-top: 1px solid #e2e7e2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 18px;
  font-size: 9px;
  color: #8b978e;
}
.below {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #98a197;
  padding: 17px 2px;
}
.below b {
  padding: 0 10px;
}
#toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: #244f36;
  color: white;
  padding: 12px 22px;
  border-radius: 8px;
  display: none;
  z-index: 10;
}
dialog {
  border: 1px solid #dbe5dc;
  border-radius: 12px;
  padding: 30px;
  max-width: 520px;
  color: #354b3c;
}
dialog::backdrop {
  background: #152c2066;
}
dialog p {
  line-height: 2;
  font-size: 13px;
}
.danger {
  color: #a45252;
  font-size: 11px;
  width: 100%;
  border-color: #eadede;
}
.emptyicon {
  font-size: 35px;
  color: #b3c3b6;
  margin: 20px 0 12px;
}
@media (max-width: 1000px) {
  main {
    padding: 25px 18px;
  }
  header {
    padding: 0 20px;
  }
  .tagline {
    display: none;
  }
  aside {
    width: 210px;
  }
  .toolbar {
    overflow: auto;
  }
  .tools {
    flex-shrink: 0;
  }
  #title {
    width: 400px;
  }
  .tools kbd {
    display: none;
  }
}
@media (max-width: 700px) {
  .local {
    display: none;
  }
  .titlebar {
    align-items: flex-start;
    gap: 16px;
    flex-direction: column;
  }
  aside {
    width: 190px;
  }
  .tools button span {
    display: none;
  }
  .below {
    display: none;
  }
  .editorbody {
    height: 560px;
  }
  main {
    padding: 20px 10px;
  }
  .headright {
    gap: 0;
  }
}
@media (max-width: 700px) {
  aside {
    display: none;
  }
  .has-selection aside {
    display: flex;
    width: 190px;
  }
  .tools button span {
    display: inline;
    margin-left: 3px;
    font-size: 10px;
  }
  .toolbar {
    padding: 8px;
  }
  .tools button {
    padding: 8px;
  }
  .tools {
    gap: 0;
  }
  .divider {
    margin: 0 4px;
  }
  footer {
    gap: 12px;
    font-size: 8px;
  }
  .editorbody {
    height: 480px;
  }
}
.site-name {
  font-size: 18px;
  font-weight: 600;
  color: #26332e;
}
footer {
  justify-content: flex-end;
}
#exportmenu {
  top: 166px !important;
}
html,
body {
  height: 100%;
  overflow: hidden;
}
body {
  display: flex;
  flex-direction: column;
}
header {
  height: 68px;
  min-height: 68px;
  padding: 0 20px;
  gap: 20px;
  justify-content: space-between;
}
#title {
  width: auto;
  min-width: 80px;
  flex: 1;
  font-size: 20px;
  padding: 8px 0;
}
header .fileactions {
  flex-shrink: 0;
}
main {
  padding: 0;
  flex: 1;
  min-height: 0;
  display: flex;
}
.editor {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.toolbar {
  height: 54px;
  min-height: 54px;
  padding: 8px 16px;
}
.editorbody {
  height: auto;
  flex: 1;
  min-height: 0;
}
aside {
  overflow: auto;
  width: 260px;
}
#properties {
  flex: initial;
}
footer {
  height: 28px;
  min-height: 28px;
}
.canvaswrap {
  height: 100%;
}
#exportmenu {
  top: 62px !important;
  right: 16px !important;
}
[data-lane-drag]:hover > rect {
  fill: #e0eadd;
}
.tools button span {
  display: inline;
}
@media (max-width: 700px) {
  header {
    padding: 0 12px;
    gap: 10px;
  }
  #title {
    font-size: 17px;
  }
  .fileactions {
    gap: 5px;
  }
  .fileactions button {
    padding: 9px 8px;
    font-size: 10px;
  }
  .editorbody {
    height: auto;
  }
  .has-selection aside {
    width: 210px;
  }
  .toolbar {
    padding: 6px 10px;
  }
  main {
    padding: 0;
  }
}
.stage {
  flex: 1;
  position: relative;
  min-width: 0;
  overflow: hidden;
}
.stage .canvaswrap {
  width: 100%;
  height: 100%;
}
aside {
  display: none !important;
}
body.has-selection aside {
  display: flex !important;
}
.asidehead {
  align-items: center;
  padding: 12px 18px;
  min-height: 52px;
}
.asidehead button {
  border: 0;
  padding: 4px 8px;
  font-size: 21px;
  line-height: 1;
  color: #7b8b7d;
}
#lane-resize {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 7px;
  transform: translateX(-3px);
  cursor: col-resize;
  z-index: 3;
  touch-action: none;
}
#lane-resize:hover,
#lane-resize:focus-visible {
  background: #3597cc55;
  outline: 0;
}
.port {
  opacity: 0;
  pointer-events: none;
  cursor: crosshair;
  transition: opacity 0.1s;
}
g[data-node]:hover .port,
.port:focus {
  opacity: 1;
  pointer-events: all;
}
.port:hover {
  fill: #3597cc;
  r: 7;
}
.checkbox-field {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.checkbox-field label {
  margin: 0;
  font-size: 12px;
}
.checkbox-field input {
  accent-color: #3597cc;
}
#diagram {
  touch-action: none;
}

:root {
  color: #293f4d;
  background: #f4faff;
}
button {
  color: #426579;
  border-color: #d8e6ef;
}
button:hover {
  background: #eaf6fe;
  border-color: #acd4ee;
}
.primary {
  background: #56afe1;
  border-color: #56afe1;
  color: white;
}
.primary:hover {
  background: #3597cc;
}
.tools button.active {
  background: #e2f3ff;
  color: #257bad;
  border-color: #b9def5;
}
header,
.toolbar,
footer,
.asidehead {
  border-color: #dce9f1;
}
.asidehead {
  color: #41667b;
}
#toast {
  background: #348dbf;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline-color: #56afe1;
}
.fileactions button {
  display: flex;
  align-items: center;
  gap: 7px;
}
.button-icon {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.arrow-controls {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  gap: 5px;
  margin: 0 0 22px;
}
.arrow-controls select {
  min-width: 0;
  width: 100%;
  border: 1px solid #d8e6ef;
  border-radius: 5px;
  background: white;
  padding: 9px 3px;
  color: #426579;
  font-size: 12px;
}
.width-control {
  display: grid;
  grid-template-columns: 1fr 50px;
  align-items: center;
  gap: 8px;
}
.width-control label {
  grid-column: 1/-1;
}
.field.width-control input[type="range"] {
  width: 100%;
  padding: 0;
  accent-color: #56afe1;
  border: 0;
  cursor: pointer;
}
.width-control output {
  font-size: 11px;
  color: #54758a;
  text-align: right;
}
#lane-resize:hover,
#lane-resize:focus-visible {
  background: #56afe155;
}
[data-lane-drag]:hover > rect {
  fill: #ddecf8;
}
.port {
  stroke: #3597cc;
}
.port:hover {
  fill: #3597cc;
}
#line-type {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 0;
  padding: 0 8px;
  height: 38px;
  border-color: #d8e6ef;
}
#line-type svg {
  width: 36px;
  height: 34px;
}
.line-caret {
  font-size: 12px;
  color: #7b9aad;
}
#line-popover {
  position: fixed;
  width: 240px;
  padding: 18px 14px 12px;
  background: white;
  border: 1px solid #e0eaf0;
  box-shadow: 0 8px 28px #20394d25;
  border-radius: 9px;
  z-index: 20;
  color: #294d65;
}
#line-popover .width-control {
  margin-bottom: 10px;
  padding: 0 3px 14px;
  border-bottom: 1px solid #eef3f7;
}
#line-popover .width-control label {
  font-size: 10px;
}
.line-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 5px;
}
.line-options button {
  height: 48px;
  border: 0;
  background: white;
  padding: 5px;
  color: #294d65;
  display: flex;
  justify-content: center;
  align-items: center;
}
.line-options svg {
  width: 36px;
  height: 36px;
}
.line-options button:hover {
  background: #f0f8fe;
}
.line-options button[aria-pressed="true"] {
  color: #3597cc;
  background: #eaf6ff;
}
.line-options button:focus-visible {
  outline: 2px solid #56afe1;
}
#line-popover input[type="range"] {
  accent-color: #56afe1;
}
.arrow-controls {
  grid-template-columns: 54px 28px 1fr 54px;
  gap: 3px;
}
.tip-button {
  padding: 5px 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  border-color: #d8e6ef;
}
.tip-button svg {
  width: 33px;
  height: 24px;
}
.tip-button .line-caret {
  font-size: 10px;
}
.swap-tips {
  padding: 4px 2px;
  border: 0;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
}
.swap-tips svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#line-type {
  gap: 2px;
  padding: 0 3px;
}
#line-type svg {
  width: 29px;
}
#tip-popover {
  position: fixed;
  z-index: 21;
  padding: 6px;
  background: white;
  border: 1px solid #dfeaf2;
  box-shadow: 0 8px 25px #20394d25;
  border-radius: 8px;
  min-width: 148px;
}
#tip-popover button {
  width: 100%;
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 9px 12px;
  border: 0;
}
#tip-popover svg {
  width: 40px;
  height: 24px;
}
#tip-popover span {
  font-size: 12px;
}
#tip-popover button[aria-pressed="true"] {
  background: #eaf6ff;
  color: #3597cc;
}
.arrow-controls {
  grid-template-columns: 54px 1fr 54px 28px;
  gap: 4px;
}
.swap-tips {
  margin-left: 2px;
  border-left: 1px solid #e2edf4;
  border-radius: 0;
}
.edge-handle {
  cursor: crosshair;
  touch-action: none;
}
.edge-handle:hover {
  fill: #d9f0ff;
  stroke-width: 3;
}
.is-reconnecting .port {
  opacity: 1;
  pointer-events: all;
}
/* Thin track with a comfortable pointer target. */
#line-popover input[type="range"] {
  appearance: none;
  -webkit-appearance: none;
  height: 22px;
  background: transparent;
  outline-offset: 2px;
}
#line-popover input[type="range"]::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 2px;
  background: #d8e7f0;
}
#line-popover input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  margin-top: -4.5px;
  border: 0;
  border-radius: 50%;
  background: #56afe1;
  cursor: ew-resize;
}
#line-popover input[type="range"]::-moz-range-track {
  height: 3px;
  border-radius: 2px;
  background: #d8e7f0;
}
#line-popover input[type="range"]::-moz-range-progress {
  height: 3px;
  border-radius: 2px;
  background: #56afe1;
}
#line-popover input[type="range"]::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: #56afe1;
  cursor: ew-resize;
}
#scroll-content {
  position: relative;
  min-width: 100%;
  min-height: 100%;
}
#scroll-content > .canvas {
  position: absolute;
  left: 0;
  top: 0;
}
#sticky-lanes {
  position: sticky;
  left: 0;
  height: 0;
  z-index: 4;
  isolation: isolate;
}
#lanes-svg {
  overflow: hidden;
  touch-action: none;
}
#lane-resize {
  z-index: 5;
}
.shape-types {
  border: 0;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.shape-types legend {
  font-size: 10px;
  color: #7e8a81;
  margin-bottom: 9px;
}
.shape-types label {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 7px;
  border: 1px solid #dae7ef;
  border-radius: 5px;
  cursor: pointer;
  font-size: 11px;
  color: #426579;
  margin: 0;
  flex: 1;
}
.shape-types label:has(input:checked) {
  border-color: #87c7eb;
  background: #eaf6ff;
}
.shape-types input {
  margin: 0;
  accent-color: #56afe1;
}
.shape-type-icon {
  display: flex;
}
.shape-type-icon svg {
  width: 22px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}
.color-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 7px;
}
.color-swatch {
  background: var(--swatch) !important;
  border: 1px solid #c9d8e2;
  border-radius: 5px;
  height: 26px;
  padding: 0;
  position: relative;
  min-width: 0;
}
.color-swatch[aria-pressed="true"] {
  outline: 2px solid #3597cc;
  outline-offset: 2px;
}
.color-swatch:hover {
  box-shadow: 0 0 0 2px #b8e2fa;
}
.palette-caption {
  font-size: 10px;
  color: #7591a3;
  margin: 12px 0 7px;
}
.custom-color-grid {
  max-height: 124px;
  overflow: auto;
  padding: 3px;
}
.color-custom {
  margin-top: 11px;
}
.color-custom summary {
  font-size: 11px;
  color: #388fbf;
  cursor: pointer;
  padding: 3px 0;
}
.custom-color-controls {
  display: flex;
  gap: 5px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 10px;
}
.field .custom-color-controls input[type="color"] {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}
.field .custom-color-controls input[type="text"] {
  width: 84px;
  padding: 7px;
  font-size: 11px;
}
.custom-color-controls button {
  padding: 7px 8px;
  font-size: 10px;
}
.connection-search > input[type="search"] {
  width: 100%;
  padding: 9px;
  border: 1px solid #d8e6ef;
  border-radius: 5px;
  font-size: 11px;
}
.search-count {
  font-size: 10px;
  color: #8b9dab;
  margin: 8px 0;
}
.connection-results {
  max-height: 180px;
  overflow: auto;
  border: 1px solid #e0eaf1;
  border-radius: 5px;
}
.connection-result {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  width: 100%;
  white-space: normal;
  gap: 5px;
  border: 0;
  border-bottom: 1px solid #edf3f7;
  border-radius: 0;
  padding: 10px;
  font-size: 11px;
}
.connection-result small {
  font-size: 9px;
  color: #8a9eab;
}
.connection-result[aria-pressed="true"] {
  background: #eaf6ff;
  color: #2583b8;
}
.connection-choice {
  font-size: 10px;
  color: #5b8096;
  line-height: 1.7;
  margin: 8px 0;
  overflow-wrap: anywhere;
}
.connection-search > button {
  width: 100%;
  font-size: 11px;
}
.connection-search button:disabled {
  opacity: 0.45;
  cursor: default;
}
.show-more {
  width: 100%;
  border: 0;
  font-size: 10px;
}
.search-empty {
  font-size: 10px;
  color: #8a9eab;
  padding: 14px;
}
.color-field {
  margin-bottom: 24px;
}
.color-swatch:disabled {
  cursor: default;
}
.color-swatch:disabled:hover {
  box-shadow: none;
}
.asidehead {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
}
.lane-types label {
  flex: initial;
}
.lane-types .lane-custom-type {
  width: 100%;
  padding: 9px;
  border: 1px solid #d8e6ef;
  border-radius: 5px;
  background: #fff;
  color: #426579;
  font-size: 12px;
}
.lane-custom-type[hidden] {
  display: none;
}
.lane-types {
  gap: 7px;
}
.row-count-controls {
  display: grid;
  grid-template-columns: 1fr 42px 42px;
  gap: 6px;
  align-items: center;
}
.field .row-count-controls input {
  appearance: textfield;
  -moz-appearance: textfield;
  height: 42px;
  font-size: 14px;
}
.row-count-controls input::-webkit-inner-spin-button,
.row-count-controls input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.row-count-button {
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  background: #f0f8fe;
  border-color: #cce4f3;
}
.row-count-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.row-count-button:disabled {
  opacity: 0.35;
  cursor: default;
}
.connection-search > select {
  display: block;
  width: 100%;
  padding: 9px;
  margin: 0 0 10px;
  border: 1px solid #d8e6ef;
  border-radius: 5px;
  background: #fff;
  color: #426579;
  font-size: 11px;
}
.connection-search > label:not(:first-child) {
  font-size: 10px;
  margin-top: 10px;
}
.connection-search [hidden] {
  display: none !important;
}
#confirm-dialog {
  width: min(440px, calc(100vw - 32px));
  border: 1px solid #dce9f1;
  border-radius: 12px;
  padding: 26px;
  background: #fff;
  color: #293f4d;
  box-shadow: 0 16px 60px #17384a33;
}
#confirm-dialog::backdrop {
  background: #17384a55;
}
#confirm-dialog h2 {
  font-size: 17px;
  line-height: 1.6;
  margin: 0 0 14px;
}
#confirm-dialog p {
  font-size: 13px;
  line-height: 1.9;
  margin: 0;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 26px;
}
.confirm-actions button {
  min-height: 40px;
  min-width: 100px;
}
#confirm-cancel:focus-visible {
  outline: 2px solid #56afe1;
  outline-offset: 2px;
}
.reset-lane-color {
  display: block;
  margin-top: 10px;
  padding: 7px 9px;
  font-size: 10px;
  color: #448fb8;
}
.reset-lane-color:disabled {
  opacity: 0.4;
  cursor: default;
}
#node-name-editor {
  position: absolute;
  z-index: 3;
  border: 0;
  outline: 1px solid #7ac4ed;
  border-radius: 2px;
  padding: 2px 3px;
  text-align: center;
  resize: none;
  color: #293f4d;
  font-family: inherit;
  overflow: hidden;
  box-sizing: border-box;
}
.segment-handle {
  touch-action: none;
}
.segment-handle:hover {
  fill: #d9f0ff;
  stroke-width: 3;
}
.row-names-editor {
  margin: 14px 0 20px;
}
.row-names-editor summary,
.workspace-color summary {
  font-size: 11px;
  color: #4786a9;
  cursor: pointer;
  margin: 8px 0;
}
.row-names-editor label {
  display: block;
  margin: 8px 0;
  font-size: 10px;
}
.row-names-editor input {
  display: block;
  width: 100%;
  padding: 8px;
  margin-top: 5px;
  border: 1px solid #d8e6ef;
  border-radius: 5px;
  color: #426579;
  font: inherit;
  font-size: 12px;
}
#setup-dialog {
  width: min(940px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  padding: 0;
  border: 1px solid #dce9f1;
  border-radius: 12px;
  color: #293f4d;
  background: #fff;
  box-shadow: 0 16px 70px #17384a33;
}
#setup-dialog::backdrop {
  background: #17384a44;
}
.setup-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid #e4edf3;
}
.setup-heading h2 {
  margin: 0;
  font-size: 18px;
}
.setup-heading button {
  border: 0;
  padding: 4px 8px;
  font-size: 23px;
}
.setup-footer {
  padding: 14px 24px;
  border-top: 1px solid #e4edf3;
  display: flex;
  justify-content: flex-end;
}
#setup-content {
  max-height: calc(100vh - 214px);
  overflow: auto;
  padding: 20px 24px;
}
.workspace-settings h3 {
  font-size: 13px;
  margin: 4px 0 14px;
}
.workspace-settings h3:not(:first-child) {
  margin-top: 26px;
}
.workspace-types {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.workspace-type-row {
  display: flex;
  gap: 6px;
  max-width: 300px;
}
.workspace-type-row input {
  min-width: 0;
  width: 160px;
  padding: 9px;
  border: 1px solid #d8e6ef;
  border-radius: 5px;
  color: #426579;
  font: inherit;
  font-size: 12px;
}
.workspace-type-row button {
  padding: 7px 10px;
  font-size: 11px;
}
.workspace-lanes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(228px, 1fr));
  gap: 14px;
}
.workspace-lane {
  border: 1px solid #dce9f1;
  border-radius: 8px;
  padding: 14px;
  min-width: 0;
  background: #fbfdff;
}
.workspace-lane-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.workspace-lane-heading span {
  font-size: 11px;
  color: #8aa6b8;
}
.workspace-lane-heading button {
  border: 0;
  background: none;
  color: #a96464;
  font-size: 10px;
  padding: 4px;
}
.workspace-lane > label {
  font-size: 10px;
  color: #7791a2;
  display: block;
  margin: 12px 0;
}
.workspace-lane > label > input,
.workspace-lane select,
.workspace-row-controls input {
  display: block;
  width: 100%;
  padding: 9px;
  margin-top: 6px;
  border: 1px solid #d8e6ef;
  border-radius: 5px;
  background: #fff;
  color: #426579;
  font: inherit;
  font-size: 12px;
}
.workspace-row-controls {
  display: flex;
  gap: 6px;
  align-items: center;
}
.workspace-row-controls input {
  min-width: 0;
  flex: 1;
}
.workspace-row-controls button {
  margin-top: 6px;
  padding: 9px 11px;
}
.workspace-order {
  display: flex;
  gap: 5px;
  margin-top: 14px;
}
.workspace-order button {
  font-size: 10px;
  padding: 7px 9px;
}
.workspace-add-lane {
  width: 100%;
  margin: 14px 0 22px;
  font-size: 12px;
}
.workspace-color .color-field {
  margin-bottom: 10px;
}
.workspace-color > button {
  font-size: 10px;
  padding: 7px;
}
.workspace-lane .row-names-editor {
  margin: 14px 0;
}
.workspace-settings button:disabled {
  opacity: 0.35;
  cursor: default;
}
aside .workspace-lanes {
  grid-template-columns: 1fr;
}
aside .workspace-type-row input {
  width: 135px;
}
aside .workspace-settings {
  margin-bottom: 24px;
}
aside .workspace-lane {
  padding: 10px;
}
aside .workspace-types {
  display: block;
}
aside .workspace-type-row {
  margin: 7px 0;
}
.workspace-settings input:focus,
.workspace-settings select:focus {
  outline: 2px solid #9ed5f4;
  outline-offset: 1px;
}
