/*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */
@layer properties {
  @supports (((-webkit-hyphens: none)) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color: rgb(from red r g b)))) {
    *, :before, :after, ::backdrop {
      --tw-rotate-x: initial;
      --tw-rotate-y: initial;
      --tw-rotate-z: initial;
      --tw-skew-x: initial;
      --tw-skew-y: initial;
      --tw-outline-style: solid;
    }
  }
}

@layer theme {
  :root, :host {
    --font-sans: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji",
      "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
      "Courier New", monospace;
    --default-font-family: var(--font-sans);
    --default-mono-font-family: var(--font-mono);
  }
}

@layer base {
  *, :after, :before, ::backdrop {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }

  ::file-selector-button {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }

  html, :host {
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    line-height: 1.5;
    font-family: var(--default-font-family, ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
    font-feature-settings: var(--default-font-feature-settings, normal);
    font-variation-settings: var(--default-font-variation-settings, normal);
    -webkit-tap-highlight-color: transparent;
  }

  hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
  }

  abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
  }

  h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
  }

  a {
    color: inherit;
    -webkit-text-decoration: inherit;
    -webkit-text-decoration: inherit;
    -webkit-text-decoration: inherit;
    text-decoration: inherit;
  }

  b, strong {
    font-weight: bolder;
  }

  code, kbd, samp, pre {
    font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
    font-feature-settings: var(--default-mono-font-feature-settings, normal);
    font-variation-settings: var(--default-mono-font-variation-settings, normal);
    font-size: 1em;
  }

  small {
    font-size: 80%;
  }

  sub, sup {
    vertical-align: baseline;
    font-size: 75%;
    line-height: 0;
    position: relative;
  }

  sub {
    bottom: -.25em;
  }

  sup {
    top: -.5em;
  }

  table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
  }

  :-moz-focusring {
    outline: auto;
  }

  progress {
    vertical-align: baseline;
  }

  summary {
    display: list-item;
  }

  ol, ul, menu {
    list-style: none;
  }

  img, svg, video, canvas, audio, iframe, embed, object {
    vertical-align: middle;
    display: block;
  }

  img, video {
    max-width: 100%;
    height: auto;
  }

  button, input, select, optgroup, textarea {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0;
  }

  ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0;
  }

  :where(select:is([multiple], [size])) optgroup {
    font-weight: bolder;
  }

  :where(select:is([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
  }

  ::file-selector-button {
    margin-inline-end: 4px;
  }

  ::placeholder {
    opacity: 1;
  }

  @supports (not ((-webkit-appearance: -apple-pay-button))) or (contain-intrinsic-size: 1px) {
    ::placeholder {
      color: currentColor;
    }

    @supports (color: color-mix(in lab, red, red)) {
      ::placeholder {
        color: color-mix(in oklab, currentcolor 50%, transparent);
      }
    }
  }

  textarea {
    resize: vertical;
  }

  ::-webkit-search-decoration {
    -webkit-appearance: none;
  }

  ::-webkit-date-and-time-value {
    min-height: 1lh;
    text-align: inherit;
  }

  ::-webkit-datetime-edit {
    display: inline-flex;
  }

  ::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
  }

  ::-webkit-datetime-edit {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-year-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-month-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-day-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-hour-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-minute-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-second-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-millisecond-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-meridiem-field {
    padding-block: 0;
  }

  ::-webkit-calendar-picker-indicator {
    line-height: 1;
  }

  :-moz-ui-invalid {
    box-shadow: none;
  }

  button, input:where([type="button"], [type="reset"], [type="submit"]) {
    appearance: button;
  }

  ::file-selector-button {
    appearance: button;
  }

  ::-webkit-inner-spin-button {
    height: auto;
  }

  ::-webkit-outer-spin-button {
    height: auto;
  }

  [hidden]:where(:not([hidden="until-found"])) {
    display: none !important;
  }
}

@layer components;

@layer utilities {
  .invisible {
    visibility: hidden;
  }

  .visible {
    visibility: visible;
  }

  .absolute {
    position: absolute;
  }

  .block {
    display: block;
  }

  .contents {
    display: contents;
  }

  .grid {
    display: grid;
  }

  .hidden {
    display: none;
  }

  .transform {
    transform: var(--tw-rotate-x, ) var(--tw-rotate-y, ) var(--tw-rotate-z, ) var(--tw-skew-x, ) var(--tw-skew-y, );
  }

  .resize {
    resize: both;
  }

  .outline {
    outline-style: var(--tw-outline-style);
    outline-width: 1px;
  }
}

* {
  box-sizing: border-box;
}

html, body, #root {
  width: 100%;
  height: 100%;
  margin: 0;
}

body {
  color: #172033;
  background: #eef2f6;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, sans-serif;
}

button, input, select, textarea {
  font: inherit;
}

button {
  cursor: pointer;
  background: #fff;
  border: 1px solid #c7d0df;
  min-height: 32px;
}

button:disabled {
  color: #9aa4b2;
  cursor: not-allowed;
}

.app-shell {
  grid-template-columns: 320px minmax(0, 1fr);
  width: 100%;
  height: 100%;
  display: grid;
}

.app-shell.screenshot-mode {
  grid-template-columns: minmax(0, 1fr);
}

.app-shell.screenshot-mode .sidebar, .app-shell.screenshot-mode .topbar, .app-shell.screenshot-mode .properties, .app-shell.screenshot-mode .fullscreen-exit-button, .app-shell.screenshot-mode .walk-help {
  display: none !important;
}

.screenshot-exit-button {
  z-index: 1000;
  color: #0f172a6b;
  opacity: .32;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  background: #ffffff73;
  border-color: #94a3b88c;
  border-radius: 6px;
  place-items: center;
  width: 34px;
  min-height: 34px;
  padding: 0;
  transition: opacity .12s, background .12s, color .12s;
  display: inline-grid;
  position: fixed;
  top: 12px;
  right: 12px;
}

.screenshot-exit-button:hover, .screenshot-exit-button:focus-visible {
  color: #0f172a;
  opacity: 1;
  background: #ffffffe0;
}

.sidebar, .properties {
  background: #fff;
  padding: 12px;
  overflow: auto;
}

.sidebar {
  border-right: 1px solid #cad3df;
  flex-direction: column;
  min-height: 0;
  display: flex;
  overflow: hidden;
}

.brand {
  margin-bottom: 12px;
  font-size: 20px;
  font-weight: 800;
}

.language-select {
  margin-bottom: 12px;
}

.mode-toggle {
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
  display: grid;
}

.mode-toggle button, .topbar button, .primary-button {
  border-radius: 4px;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  display: inline-flex;
}

.mode-toggle button.active {
  color: #1d4ed8;
  background: #dbeafe;
  border-color: #2563eb;
  font-weight: 800;
}

.panel {
  background: #f8fafc;
  border: 1px solid #d7dee9;
  border-radius: 6px;
  margin-bottom: 12px;
  padding: 10px;
}

.panel-title {
  color: #334155;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 800;
}

.factory-panel summary {
  cursor: pointer;
  color: #334155;
  font-size: 14px;
  font-weight: 800;
}

.factory-panel[open] summary {
  margin-bottom: 8px;
}

.template-panel {
  flex-direction: column;
  flex: auto;
  min-height: 0;
  margin-bottom: 0;
  padding: 8px;
  display: flex;
}

.template-panel-header {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  display: grid;
}

.template-panel-header .panel-title {
  margin-bottom: 0;
}

.template-place-button {
  white-space: nowrap;
  width: auto;
  min-height: 28px;
  padding: 4px 10px;
}

.template-controls {
  flex: none;
  gap: 6px;
  display: grid;
}

label {
  color: #475569;
  gap: 4px;
  margin-bottom: 8px;
  font-size: 13px;
  display: grid;
}

input, select, textarea {
  background: #fff;
  border: 1px solid #c7d0df;
  border-radius: 4px;
  width: 100%;
  min-height: 30px;
  padding: 4px 7px;
}

textarea {
  resize: vertical;
  line-height: 1.45;
}

.template-list {
  flex: auto;
  grid-auto-rows: max-content;
  align-content: start;
  gap: 6px;
  min-height: 120px;
  max-height: none;
  margin: 6px -2px;
  padding: 2px;
  display: grid;
  overflow: auto;
}

.template-panel .template-list {
  max-height: none;
}

.template-list button {
  text-align: left;
  border-radius: 5px;
  grid-template-rows: auto auto;
  grid-template-columns: 44px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 7px;
  padding: 6px;
  display: grid;
}

.template-list button.active {
  background: #dbeafe;
  border-color: #2563eb;
}

.template-list span {
  color: #fff;
  border-radius: 4px;
  grid-row: span 2;
  place-items: center;
  min-height: 38px;
  font-size: 12px;
  font-weight: 800;
  display: grid;
}

.template-list strong {
  text-overflow: ellipsis;
  white-space: nowrap;
  grid-area: 1 / 2;
  min-width: 0;
  font-size: 13px;
  overflow: hidden;
}

.template-list small {
  color: #64748b;
  grid-area: 2 / 2;
  font-size: 11px;
}

.template-delete {
  color: #64748b;
  cursor: pointer;
  opacity: 1;
  background: #ffffffd1;
  border: 1px solid #0000;
  border-radius: 4px;
  grid-area: 1 / 3 / span 2;
  justify-content: center;
  justify-self: end;
  align-items: center;
  width: 26px;
  min-height: 26px;
  transition: border-color .15s, background-color .15s, color .15s;
  display: inline-flex;
}

.template-delete:hover {
  color: #dc2626;
  background: #fff5f5;
  border-color: #fecaca;
}

.custom-template-panel {
  border-top: 1px solid #d7dee9;
  flex: none;
  padding-top: 8px;
}

.custom-template-panel summary {
  cursor: pointer;
  color: #172033;
  font-size: 13px;
  font-weight: 800;
}

.custom-template-panel[open] summary {
  margin-bottom: 8px;
}

.template-json-actions {
  border-top: 1px solid #d7dee9;
  flex: none;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: auto;
  padding-top: 8px;
  display: grid;
}

.template-json-actions button {
  border-radius: 4px;
  justify-content: center;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  padding: 5px 7px;
  display: inline-flex;
}

.layer-tab-toggle {
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 12px;
  display: grid;
}

.layer-tab-toggle button {
  border-radius: 4px;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
}

.layer-tab-toggle button.active {
  color: #0f766e;
  background: #ccfbf1;
  border-color: #0f766e;
  font-weight: 800;
}

.annotation-panel {
  flex: none;
}

.annotation-toolbar {
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px;
  margin-bottom: 8px;
  display: grid;
}

.annotation-toolbar button, .annotation-list button, .annotation-fields button {
  border-radius: 4px;
  justify-content: center;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 5px 7px;
  display: inline-flex;
}

.annotation-toolbar button.active, .annotation-list button.selected {
  color: #0f766e;
  background: #ccfbf1;
  border-color: #0f766e;
  font-weight: 800;
}

.annotation-list {
  gap: 5px;
  max-height: 120px;
  display: grid;
  overflow: auto;
}

.annotation-list.annotation-list-panel {
  max-height: 180px;
}

.annotation-list button {
  text-align: left;
  justify-content: flex-start;
}

.annotation-list span {
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
}

.annotation-list p {
  color: #64748b;
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
}

.annotation-fields {
  border-top: 1px solid #d7dee9;
  gap: 6px;
  margin-top: 8px;
  padding-top: 8px;
  display: grid;
}

.annotation-fields input[type="color"] {
  padding: 2px;
}

.annotation-color-block {
  margin-top: 2px;
}

.note-icon-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  display: grid;
}

.note-icon-button {
  color: #334155;
  border-radius: 5px;
  justify-content: center;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
}

.note-icon-button.active {
  color: #1d4ed8;
  background: #dbeafe;
  border-color: #2563eb;
}

.annotation-color-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  display: grid;
}

.annotation-color-grid .color-swatch {
  border-radius: 5px;
  width: 100%;
  min-height: 28px;
}

.inline-toggle {
  grid-template-columns: none;
  align-items: center;
  gap: 7px;
  margin-bottom: 0;
  display: flex;
}

.inline-toggle input {
  width: auto;
  min-height: auto;
}

.route-sign-panel {
  background: #f8fafc;
  border: 1px solid #cad3df;
  border-radius: 6px;
  gap: 8px;
  padding: 0;
  display: grid;
}

.route-sign-panel summary {
  cursor: pointer;
  color: #334155;
  padding: 10px;
  font-size: 13px;
  font-weight: 900;
}

.route-sign-panel[open] {
  padding: 0 10px 10px;
}

.route-sign-panel[open] summary {
  background: #eef4fb;
  border-bottom: 1px solid #cad3df;
  margin: 0 -10px;
}

.primary-button {
  color: #fff;
  background: #2563eb;
  border-color: #2563eb;
  width: 100%;
  font-weight: 800;
}

.template-panel-header .template-place-button {
  width: auto;
}

.secondary-button {
  color: #334155;
  background: #fff;
  border-color: #94a3b8;
  border-radius: 4px;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 6px 10px;
  font-weight: 800;
  display: inline-flex;
}

.custom-template-add {
  min-height: 34px;
}

.delete-button {
  color: #dc2626;
  background: #fff;
  border-color: #fecaca;
  border-radius: 4px;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 6px 10px;
  font-weight: 800;
  display: inline-flex;
}

.workspace {
  grid-template-rows: 48px minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
  display: grid;
}

.workspace.screenshot-mode {
  grid-template-rows: minmax(0, 1fr);
}

.workspace:fullscreen {
  background: #eef2f6;
  width: 100vw;
  height: 100vh;
}

.workspace.fullscreen-3d {
  background: #eef2f6;
  grid-template-rows: minmax(0, 1fr);
  width: 100vw;
  height: 100vh;
}

.workspace.fullscreen-3d:fullscreen {
  background: #eef2f6;
  grid-template-rows: minmax(0, 1fr);
  width: 100vw;
  height: 100vh;
}

.workspace.fullscreen-3d .topbar {
  z-index: 32;
  box-shadow: none;
  pointer-events: none;
  background: none;
  border-bottom: 0;
  padding: 0;
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
}

.workspace.fullscreen-3d .topbar > *, .workspace.fullscreen-3d .present-speed-controls {
  pointer-events: auto;
}

.workspace.fullscreen-3d .topbar-action {
  display: none;
}

.workspace.fullscreen-3d .orbit-toggle, .workspace.fullscreen-3d .present-speed-controls {
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  background: #ffffffe6;
  border: 1px solid #94a3b88c;
  border-radius: 8px;
  padding: 5px;
  box-shadow: 0 12px 30px #0f172a29;
}

.workspace.fullscreen-3d .topbar > button {
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  background: #ffffffe6;
  border-color: #94a3b89e;
  box-shadow: 0 12px 30px #0f172a29;
}

.topbar {
  background: #fff;
  border-bottom: 1px solid #cad3df;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  display: flex;
}

.topbar > button, .topbar > .dim-menu-wrap > button, .present-speed-controls > button {
  white-space: nowrap;
  height: 36px;
  min-height: 36px;
}

.topbar .topbar-icon-button {
  width: 36px;
  min-width: 36px;
  padding: 6px;
}

.orbit-toggle {
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-right: auto;
  display: inline-grid;
}

.orbit-toggle button {
  border-radius: 4px;
  padding: 5px 10px;
}

.orbit-toggle button.active {
  color: #1d4ed8;
  background: #dbeafe;
  border-color: #2563eb;
  font-weight: 800;
}

.zoom-controls {
  grid-template-columns: 34px 64px 34px;
  gap: 4px;
  margin-right: auto;
  display: inline-grid;
}

.zoom-controls button {
  border-radius: 4px;
  padding: 5px 8px;
}

.zoom-controls .zoom-value {
  color: #334155;
  font-size: 12px;
  font-weight: 900;
}

.topbar button.view-button.active {
  color: #1d4ed8;
  background: #dbeafe;
  border-color: #2563eb;
  font-weight: 800;
}

.content {
  grid-template-columns: minmax(0, 1fr) 300px;
  height: 100%;
  min-height: 0;
  display: grid;
  position: relative;
}

.workspace.screenshot-mode .content, .workspace.fullscreen-3d .content {
  grid-template-columns: minmax(0, 1fr);
}

.fullscreen-exit-button, .workspace.fullscreen-3d .fullscreen-exit-button {
  display: none;
}

.workspace.fullscreen-3d.presenting .fullscreen-exit-button {
  z-index: 40;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  background: #ffffffe6;
  border-color: #94a3b89e;
  border-radius: 7px;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  display: inline-flex;
  position: absolute;
  top: 14px;
  left: 14px;
  box-shadow: 0 14px 34px #0f172a2e;
}

.board-wrap {
  -webkit-user-select: none;
  user-select: none;
  min-width: 0;
  min-height: 0;
  padding: 24px;
  overflow: auto;
}

.board-wrap.panning {
  cursor: grabbing;
}

.layout-board {
  background-color: #fff;
  background-image: linear-gradient(#dbe3ee 1px, #0000 1px), linear-gradient(90deg, #dbe3ee 1px, #0000 1px);
  border: 1px solid #94a3b8;
  position: relative;
  box-shadow: 0 2px 12px #0f172a29;
}

.dimension {
  z-index: 20;
  color: #fff;
  background: #0f172ad1;
  border-radius: 4px;
  padding: 3px 7px;
  font-size: 12px;
  font-weight: 800;
  position: absolute;
}

.dim-width {
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
}

.dim-depth {
  top: 50%;
  left: 6px;
  transform: translateY(-50%) rotate(-90deg);
}

.wall-edge {
  z-index: 18;
  color: #0f172a;
  opacity: .38;
  background: #64748b47;
  border: 0;
  border-radius: 0;
  min-height: 0;
  padding: 0;
  font-size: 10px;
  font-weight: 900;
  position: absolute;
}

.wall-edge:hover, .wall-edge.active {
  color: #fff;
  opacity: 1;
  background: #2563ebb8;
}

.wall-edge-north, .wall-edge-south {
  width: 100%;
  height: 8px;
  left: 0;
}

.wall-edge-north {
  top: 0;
}

.wall-edge-south {
  bottom: 0;
}

.wall-edge-east, .wall-edge-west {
  writing-mode: vertical-rl;
  width: 8px;
  height: 100%;
  top: 0;
}

.wall-edge-east {
  right: 0;
}

.wall-edge-west {
  left: 0;
}

.layout-item {
  color: #fff;
  cursor: grab;
  text-align: center;
  transform-origin: center;
  -webkit-user-select: none;
  user-select: none;
  border: 1.5px solid #0f172a9e;
  border-radius: 5px;
  place-items: center;
  padding: 4px;
  display: grid;
  position: absolute;
  box-shadow: 0 1px 4px #0f172a33;
}

.layout-item.area-item {
  color: #0f172a;
  opacity: .42;
  box-shadow: none;
  border: 2px dashed;
}

.layout-item.area-item .item-name, .layout-item.area-item .item-size, .layout-item.area-item .item-icon {
  color: #0f172a;
}

.layout-item.room-item {
  background-color: var(--room-color);
}

@supports (color: color-mix(in lab, red, red)) {
  .layout-item.room-item {
    background-color: color-mix(in srgb, var(--room-color) 12%, transparent);
  }
}

.layout-item.room-item {
  border: 3px solid var(--room-color);
  box-shadow: none;
  pointer-events: auto;
}

.layout-item.room-item.selected {
  outline-offset: 2px;
  outline: 3px solid #2563eb;
}

.room-label {
  color: var(--room-color);
  pointer-events: none;
  white-space: nowrap;
  text-overflow: ellipsis;
  max-width: calc(100% - 8px);
  font-size: 11px;
  font-weight: 700;
  position: absolute;
  top: 4px;
  left: 6px;
  overflow: hidden;
}

.layout-item:active {
  cursor: grabbing;
}

.layout-item.selected {
  outline-offset: 2px;
  outline: 3px solid #2563eb;
}

.item-icon {
  z-index: 3;
  font-size: 16px;
  font-weight: 900;
  position: relative;
}

.item-name {
  color: #fff;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  font-size: 11px;
  font-weight: 800;
  overflow: hidden;
}

.item-size {
  color: #ffffffe6;
  font-size: 10px;
}

.item-route-signs {
  pointer-events: none;
  position: absolute;
  inset: 0;
}

.item-route-signs .route-arrow-sign {
  left: var(--route-sign-offset);
  border: 1.5px solid var(--route-sign-color, #0f766e);
  color: #0f172a;
  z-index: 4;
  background: #ffffffeb;
  border-radius: 4px;
  grid-template-columns: minmax(0, 1fr) 22%;
  align-items: center;
  width: min(92px, 24%);
  min-width: 58px;
  height: 22px;
  font-size: 8px;
  font-weight: 900;
  line-height: 1;
  display: grid;
  position: absolute;
  top: 50%;
  overflow: hidden;
  transform: translate(-50%, -50%);
  box-shadow: 0 1px 2px #0f172a29;
}

.item-route-signs .route-arrow-sign span {
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  padding-left: 5px;
  overflow: hidden;
}

.item-route-signs .route-arrow-sign:after {
  border-top: 11px solid #0000;
  border-bottom: 11px solid #0000;
  border-left: 18px solid var(--route-sign-color, #0f766e);
  content: "";
  justify-self: end;
  width: 0;
  height: 0;
}

.item-route-signs.route-reverse .route-arrow-sign {
  transform: translate(-50%, -50%) rotate(180deg);
}

.item-route-signs.route-reverse .route-arrow-sign span {
  transform: rotate(180deg);
}

.item-route-signs.route-two-way .route-arrow-sign:nth-child(2n) {
  transform: translate(-50%, -50%) rotate(180deg);
}

.item-route-signs.route-two-way .route-arrow-sign:nth-child(2n) span {
  transform: rotate(180deg);
}

.item-route-signs.route-vertical .route-arrow-sign {
  left: 50%;
  top: var(--route-sign-offset);
  width: min(92px, 42%);
  transform: translate(-50%, -50%) rotate(90deg);
}

.item-route-signs.route-vertical.route-reverse .route-arrow-sign, .item-route-signs.route-vertical.route-two-way .route-arrow-sign:nth-child(2n) {
  transform: translate(-50%, -50%) rotate(270deg);
}

.item-route-signs.route-vertical.route-two-way .route-arrow-sign:nth-child(2n) span {
  transform: none;
}

.layout-item.has-route-signs .item-icon, .layout-item.has-route-signs .item-name, .layout-item.has-route-signs .item-size {
  z-index: 1;
  position: relative;
}

.three-preview-wrap, .three-preview {
  width: 100%;
  height: 100%;
  min-height: 0;
  position: relative;
}

.three-preview canvas {
  display: block;
}

.present-speed-controls {
  align-items: center;
  gap: 10px;
  display: inline-flex;
}

.speed-label {
  color: #475569;
  white-space: nowrap;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 56px;
  font-size: 11px;
  display: inline-flex;
}

.speed-label input[type="range"] {
  cursor: pointer;
  border: none;
  width: 72px;
  min-height: 0;
  padding: 0;
}

.walk-help {
  z-index: 5;
  color: #fff;
  pointer-events: none;
  background: #0f172ad6;
  border-radius: 4px;
  padding: 7px 9px;
  font-size: 12px;
  font-weight: 800;
  position: absolute;
  bottom: 12px;
  left: 12px;
}

.three-note-tooltip {
  z-index: 20;
  color: #172033;
  pointer-events: none;
  white-space: pre-wrap;
  background: #fffffff5;
  border: 1px solid #cad3df;
  border-radius: 6px;
  max-width: 260px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  position: absolute;
  box-shadow: 0 8px 22px #0f172a29;
}

.properties {
  border-left: 1px solid #cad3df;
  flex-direction: column;
  min-height: 0;
  padding: 0;
  display: flex;
  overflow: hidden;
}

.workspace.fullscreen-3d .properties {
  z-index: 30;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  background: #ffffffeb;
  border: 1px solid #94a3b894;
  border-radius: 8px;
  width: min(300px, 100vw - 32px);
  max-height: min(52vh, 420px);
  position: absolute;
  top: 76px;
  right: 16px;
  box-shadow: 0 14px 34px #0f172a2e;
}

.properties-top {
  border-bottom: 1px solid #cad3df;
  flex: 0 auto;
  min-height: 0;
  padding: 12px;
  overflow: auto;
}

.workspace.fullscreen-3d .properties-top {
  border-bottom: 0;
  padding: 10px;
}

.properties-detail {
  flex: 1 1 0;
  min-height: 0;
  padding: 12px;
  overflow: auto;
}

.workspace.fullscreen-3d .properties-detail {
  display: none;
}

.properties-divider {
  border-top: 1px solid #d7dee9;
  margin: 10px 0;
}

.properties p {
  color: #64748b;
  font-size: 13px;
}

.placed-list {
  gap: 6px;
  max-height: clamp(160px, 28vh, 260px);
  margin-bottom: 8px;
  display: grid;
  overflow: auto;
}

.workspace.fullscreen-3d .placed-list {
  max-height: calc(min(52vh, 420px) - 44px);
  margin-bottom: 0;
}

.placed-item {
  text-align: left;
  cursor: pointer;
  background: #fff;
  border: 1px solid #c7d0df;
  border-radius: 5px;
  grid-template-columns: 14px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 5px 6px;
  display: grid;
}

.placed-item.selected {
  background: #dbeafe;
  border-color: #2563eb;
}

.placed-color {
  border: 1px solid #0f172a52;
  border-radius: 50%;
  width: 14px;
  height: 14px;
}

.placed-main {
  gap: 1px;
  min-width: 0;
  display: grid;
}

.placed-main strong {
  color: #172033;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  overflow: hidden;
}

.placed-item.hidden-item {
  opacity: .52;
}

.placed-item.hidden-item .placed-color {
  background-image: repeating-linear-gradient(45deg, #ffffff73 0 3px, #0000 3px 6px);
}

.placed-item.hidden-item .placed-main strong {
  text-decoration: line-through;
}

.placed-main small {
  color: #64748b;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  overflow: hidden;
}

.property-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 10px;
  display: grid;
}

.property-grid label {
  margin-bottom: 0;
}

.group-actions {
  color: #475569;
  background: #f8fafc;
  border: 1px solid #d7dee9;
  border-radius: 6px;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 6px 8px;
  font-size: 12px;
  display: flex;
}

.group-actions button {
  min-height: 28px;
  padding: 4px 8px;
}

.placed-actions {
  gap: 3px;
  display: inline-flex;
}

.placed-actions button {
  border-radius: 4px;
  place-items: center;
  width: 24px;
  min-height: 24px;
  padding: 0;
  display: inline-grid;
}

.field-title {
  color: #475569;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 800;
}

.color-panel {
  margin-top: 2px;
}

.color-grid {
  grid-template-columns: repeat(6, 1fr);
  gap: 7px;
  display: grid;
}

.color-swatch {
  border-radius: 5px;
  width: 100%;
  min-height: 30px;
  box-shadow: inset 0 0 0 1px #ffffff59;
}

.color-swatch.active {
  outline-offset: 2px;
  outline: 3px solid #0f172a;
}

.rgb-color-controls {
  color: #475569;
  grid-template-columns: 1fr repeat(3, minmax(0, 54px));
  align-items: end;
  gap: 6px;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 800;
  display: grid;
}

.rgb-color-controls label {
  color: #475569;
  gap: 2px;
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  display: grid;
}

.rgb-color-controls input {
  min-height: 28px;
  padding: 4px 5px;
}

.modal-backdrop {
  z-index: 100;
  background: #0f172a61;
  place-items: center;
  display: grid;
  position: fixed;
  inset: 0;
}

.size-modal {
  background: #fff;
  border: 1px solid #c7d0df;
  border-radius: 6px;
  width: min(360px, 100vw - 32px);
  padding: 14px;
  box-shadow: 0 18px 50px #0f172a47;
}

.size-modal header {
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  display: flex;
}

.size-modal header strong {
  color: #172033;
  font-size: 15px;
}

.size-modal header button {
  border-radius: 4px;
  padding: 4px 9px;
}

.dim-menu-wrap {
  position: relative;
}

.dim-menu {
  z-index: 200;
  background: #fff;
  border: 1px solid #c7d0df;
  border-radius: 6px;
  flex-direction: column;
  min-width: 160px;
  display: flex;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  overflow: hidden;
  box-shadow: 0 4px 12px #0000001f;
}

.dim-menu button {
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
  min-height: unset;
  background: none;
  border: none;
  border-radius: 0;
  padding: 8px 14px;
  font-size: 13px;
}

.dim-menu button:hover {
  background: #f1f5f9;
}

.dim-menu button:not(:last-child) {
  border-bottom: 1px solid #e8edf4;
}

.waypoint-marker {
  z-index: 60;
  color: #fff;
  pointer-events: auto;
  white-space: nowrap;
  cursor: default;
  background: #f59e0b;
  border-radius: 10px;
  align-items: center;
  gap: 3px;
  padding: 2px 5px;
  font-size: 10px;
  font-weight: 900;
  display: flex;
  position: absolute;
  transform: translate(-50%, -50%);
  box-shadow: 0 1px 4px #0000004d;
}

.waypoint-delete {
  color: #fff;
  cursor: pointer;
  background: #00000040;
  border: none;
  border-radius: 50%;
  place-items: center;
  width: 14px;
  min-height: 14px;
  padding: 0;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  display: inline-grid;
}

.grid-coord-label {
  z-index: 3;
  color: #94a3b8;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
  font-family: monospace;
  font-size: 10px;
  line-height: 1;
  position: absolute;
  transform: translate(2px, 2px);
}

.layout-board.exporting-png .grid-coord-label {
  display: none;
}

.annotation-layer {
  z-index: 40;
  pointer-events: none;
  position: absolute;
  inset: 0;
}

.annotation-layer.editing {
  cursor: crosshair;
  pointer-events: auto;
}

.annotation-svg {
  pointer-events: none;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  overflow: visible;
}

.annotation-arrow-shaft {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .78;
}

.annotation-selected .annotation-arrow-shaft {
  opacity: .96;
}

.annotation-arrow-head {
  stroke: none;
  opacity: .88;
}

.annotation-arrow-marker {
  opacity: .52;
}

.annotation-flow-label {
  paint-order: stroke;
  stroke: #fffffff0;
  stroke-width: 5px;
  stroke-linejoin: round;
  pointer-events: none;
  text-anchor: middle;
  dominant-baseline: central;
  font-size: 12px;
  font-weight: 900;
}

.annotation-hit {
  z-index: 42;
  color: #0f766e;
  pointer-events: auto;
  max-width: 180px;
  min-height: 26px;
  box-shadow: none;
  background: #fffffff0;
  border: 1px solid;
  border-radius: 4px;
  align-items: center;
  gap: 4px;
  padding: 4px 6px;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  position: absolute;
  transform: translate(-50%, -50%);
}

.annotation-hit span {
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
}

.annotation-hit.selected {
  outline-offset: 2px;
  outline: 3px solid #14b8a6;
}

.annotation-arrow {
  background: #fffffff5;
  border-width: 2px;
  transform: translate(-50%, -50%);
}

.annotation-arrow.compact {
  border-radius: 4px;
  width: 28px;
  min-height: 24px;
  padding: 3px;
}

.annotation-note {
  max-width: 220px;
}

.annotation-delete-icon {
  flex: none;
  place-items: center;
  display: inline-grid;
}

.annotation-endpoint {
  z-index: 45;
  pointer-events: auto;
  background: #fff;
  border: 3px solid;
  border-radius: 50%;
  width: 18px;
  min-height: 18px;
  padding: 0;
  position: absolute;
  transform: translate(-50%, -50%);
}

.annotation-endpoint-end {
  width: 22px;
  min-height: 22px;
}

.annotation-delete-button {
  border-radius: 4px;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  display: inline-flex;
}

.section-divider {
  color: #64748b;
  border-top: 1px solid #e2e8f0;
  margin: 12px 0 6px;
  padding-top: 10px;
  font-size: 12px;
  font-weight: 800;
}

.section-desc {
  color: #475569;
  margin-bottom: 6px;
  font-size: 12px;
}

.layout-item.second-selected {
  outline-offset: 2px;
  outline: 3px solid #f59e0b;
}

.placed-item.second-selected {
  background: #fef3c7;
  border-color: #f59e0b;
}

.two-point-header {
  color: #334155;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  font-size: 12px;
  display: flex;
}

.two-point-badge {
  color: #fff;
  border-radius: 50%;
  flex-shrink: 0;
  place-items: center;
  width: 18px;
  min-height: 18px;
  font-size: 10px;
  font-weight: 900;
  display: inline-grid;
}

.two-point-a {
  background: #2563eb;
}

.two-point-b {
  background: #f59e0b;
}

.two-point-name {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
  overflow: hidden;
}

.two-point-gaps {
  color: #475569;
  background: #f1f5f9;
  border-radius: 4px;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding: 6px 8px;
  font-size: 12px;
  display: flex;
}

.two-point-hint {
  color: #94a3b8;
  font-size: 11px;
}

.snap-pending {
  color: #16a34a;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 4px;
  margin-bottom: 4px;
  padding: 4px 6px;
  font-size: 11px;
}

@property --tw-rotate-x {
  syntax: "*";
  inherits: false
}

@property --tw-rotate-y {
  syntax: "*";
  inherits: false
}

@property --tw-rotate-z {
  syntax: "*";
  inherits: false
}

@property --tw-skew-x {
  syntax: "*";
  inherits: false
}

@property --tw-skew-y {
  syntax: "*";
  inherits: false
}

@property --tw-outline-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}
