:root {
  --ink: #1f2933;
  --muted: #66737f;
  --panel: #f6f8fb;
  --line: #d6dde6;
  --blue: #2563eb;
  --green: #0f8a5f;
  --orange: #d97706;
  --red: #dc2626;
  --shadow: 0 14px 34px rgba(21, 31, 45, 0.14);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow: auto;
  background: #e9edf3;
  color: var(--ink);
}

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

.app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 250px 1fr;
  grid-template-rows: auto auto;
}

.app.properties-open {
  grid-template-columns: 250px 1fr 280px;
}

.topbar {
  grid-column: 1 / -1;
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 42px 160px 1fr;
  align-items: start;
  gap: 16px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.main-menu-toggle {
  width: 42px;
  min-height: 38px;
  display: grid;
  align-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #101827;
  padding: 9px;
  cursor: pointer;
}

.main-menu-toggle span {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: #fff;
}

.brand {
  min-width: 160px;
  display: grid;
  gap: 3px;
}

.brand img {
  display: block;
  width: 150px;
  max-width: 100%;
  height: 42px;
  object-fit: contain;
  object-position: left center;
}

.brand span {
  color: var(--muted);
  font-size: 0.62rem;
  line-height: 1;
  text-transform: uppercase;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.export-format {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 4px 7px;
  font-weight: 800;
}

.export-format span {
  color: var(--muted);
  font-size: 0.75rem;
}

.export-format button {
  min-height: 28px;
  border-color: #d4e2ec;
  background: #eef6fb;
  color: var(--ink);
  padding: 5px 8px;
}

.cable-picker {
  grid-column: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(15, 23, 42, 0.56);
}

.main-menu {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 90;
  width: min(360px, calc(100vw - 28px));
  display: grid;
  grid-template-rows: auto 1fr;
  background: #ffffff;
  border-right: 1px solid var(--line);
  box-shadow: 18px 0 42px rgba(15, 23, 42, 0.22);
  transform: translateX(-105%);
  transition: transform 180ms ease;
}

.app.menu-open .main-menu {
  transform: translateX(0);
}

.main-menu-head {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.main-menu-head strong {
  display: block;
  font-size: 1.25rem;
}

.main-menu-head span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
}

.main-menu-head button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 7px;
  background: #eef2f7;
  color: #334155;
  font-size: 1.45rem;
  font-weight: 800;
  cursor: pointer;
}

.main-menu-list {
  display: grid;
  align-content: start;
  padding: 14px 0 22px;
}

.main-menu-list button {
  min-height: 56px;
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 14px;
  border: 0;
  border-left: 5px solid transparent;
  background: transparent;
  color: #293241;
  padding: 0 22px;
  text-align: left;
  font-weight: 800;
  cursor: pointer;
}

.main-menu-list button:hover,
.main-menu-list button:focus-visible {
  border-left-color: #2b7899;
  background: #eef6fb;
  outline: 0;
}

.main-menu-list span {
  color: #364152;
  font-size: 1.3rem;
  text-align: center;
}

.toolbar button,
.cable-picker button,
.properties button,
.library button,
.dialog button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 6px 9px;
  font-weight: 700;
  cursor: pointer;
}

.toolbar .icon-button {
  width: 34px;
  min-width: 34px;
  padding: 0;
  font-weight: 900;
}

.toolbar .property-toggle {
  min-width: 72px;
}

.toolbar .property-toggle.active {
  border-color: var(--orange);
  background: #fff7ed;
}

.toolbar button:hover,
.cable-picker button:hover,
.properties button:hover,
.library button:hover {
  border-color: var(--blue);
}

.cable-picker button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.cable-picker button.active {
  border-color: var(--orange);
  background: #fff7ed;
}

.cable-picker .clear-cable,
.cable-picker .object-mode,
.cable-picker .cable-edit-mode {
  color: var(--muted);
  background: #f8fafc;
}

.cable-segment-hit {
  pointer-events: stroke;
}

.cable-segment-hit.horizontal {
  cursor: ns-resize;
}

.cable-segment-hit.vertical {
  cursor: ew-resize;
}

.cable-control-point {
  fill: #ffffff;
  stroke: #2563eb;
  stroke-width: 3;
  vector-effect: non-scaling-stroke;
  pointer-events: all;
  cursor: move;
}

.cable-control-point.endpoint {
  fill: #1f2933;
  stroke: #ffffff;
  cursor: grab;
}

.cable-control-point.endpoint:active {
  cursor: grabbing;
}

.cable-control-point.endpoint.fixed {
  pointer-events: none;
  cursor: default;
}

.cable-control-point.selected {
  fill: #f97316;
  stroke: #ffffff;
  stroke-width: 4;
}

.arrow-direction-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.properties .arrow-direction-controls button {
  width: 34px;
  min-width: 34px;
  padding: 0;
  font-size: 18px;
}

.properties .arrow-direction-controls button.auto {
  width: auto;
  padding-inline: 8px;
  font-size: 12px;
}

.properties .arrow-direction-controls button.active {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
}

body:has([data-cable-edit-mode].active) #stage,
body:has([data-cable-edit-mode].active) .device,
body:has([data-cable-edit-mode].active) .cable,
body:has([data-cable-edit-mode].active) .cable-hit,
body:has([data-cable-edit-mode].active) .cable-segment-hit,
body:has([data-cable-edit-mode].active) .cable-control-point {
  cursor: default !important;
}

#stage.cable-draw-mode,
#stage.cable-draw-mode * {
  cursor: default !important;
}

.cable-picker button[data-cable-type],
.cable-picker button[data-cable-type]:active {
  cursor: default;
}

.cable-picker .icon-button {
  width: 34px;
  min-width: 34px;
  padding: 0;
  color: #111827;
  font-size: 19px;
  line-height: 1;
}

.cable-picker .cable-text {
  min-width: 54px;
  padding-inline: 10px;
  font-weight: 900;
}

.cable-picker .cable-text-audio {
  color: #dc2626;
}

.cable-picker .cable-text-sdi {
  color: #22c55e;
}

.cable-picker .cable-text-hdmi {
  color: #14532d;
}

.cable-picker .cable-text-reseau {
  color: #2563eb;
}

.cable-picker .cable-text-info {
  color: #7c3aed;
}

.cable-dot {
  width: 22px;
  height: 5px;
  border-radius: 999px;
  display: inline-block;
}

.cable-audio {
  background: #dc2626;
}

.cable-sdi {
  background: #22c55e;
}

.cable-hdmi {
  background: #14532d;
}

.cable-reseau {
  background: #2563eb;
}

.library,
.properties {
  overflow: auto;
  padding: 12px;
  background: var(--panel);
}

.library {
  border-right: 1px solid var(--line);
  position: sticky;
  top: 92px;
  max-height: calc(100vh - 92px);
  min-height: 0;
  overflow-y: scroll;
  scrollbar-gutter: stable;
  scrollbar-color: #94a3b8 #e2e8f0;
  scrollbar-width: thin;
}

.library::-webkit-scrollbar {
  width: 12px;
}

.library::-webkit-scrollbar-track {
  background: #e2e8f0;
}

.library::-webkit-scrollbar-thumb {
  border: 3px solid #e2e8f0;
  border-radius: 999px;
  background: #94a3b8;
}

.properties {
  border-left: 1px solid var(--line);
  display: none;
}

.app.properties-open .properties {
  display: block;
}

.library h2,
.properties h2 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.library-actions {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.library-actions button {
  width: 100%;
}

.preset-menu {
  position: relative;
}

.preset-menu > summary {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 7px 10px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

.preset-menu > summary::-webkit-details-marker {
  display: none;
}

.preset-menu > summary::after {
  content: "+";
  font-size: 1rem;
}

.preset-menu[open] > summary::after {
  content: "-";
}

.preset-menu-panel {
  display: grid;
  gap: 6px;
  margin-top: 6px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fafc;
}

.preset-menu-panel label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.preset-menu-panel select {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 6px 8px;
  color: var(--ink);
  font: inherit;
}

.preset-menu-panel .preset-delete {
  color: #b91c1c;
  border-color: #fecaca;
}

.preset-menu-panel hr {
  width: 100%;
  margin: 2px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.library-backup-note {
  margin: 0;
  color: #166534;
  font-size: 0.76rem;
  font-weight: 900;
  text-align: center;
}

.library-search {
  min-height: 34px;
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 0 8px;
}

.library-search span {
  color: var(--muted);
  font-size: 17px;
  font-weight: 900;
}

.library-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 6px 0;
  color: var(--ink);
  background: transparent;
}

.library-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.category {
  margin-bottom: 12px;
}

.category summary {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}

.category summary::-webkit-details-marker {
  display: none;
}

.category summary::before {
  content: "+";
  display: inline-block;
  width: 16px;
  color: var(--blue);
  font-weight: 900;
}

.category[open] summary::before {
  content: "-";
}

.library-item {
  width: 100%;
  display: grid;
  gap: 2px;
  text-align: left;
}

.library-row {
  display: grid;
  grid-template-columns: 1fr 34px 30px;
  gap: 6px;
  align-items: stretch;
  margin-bottom: 6px;
}

.library-thumb {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
}

.library-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.library button.library-thumb-button {
  min-height: 34px;
  padding: 0;
  cursor: grab;
}

.library button.library-thumb-button:active {
  cursor: grabbing;
}

.preset-thumb {
  display: grid;
  place-items: center;
  border-color: rgba(217, 119, 6, 0.34);
  background: #fff7ed;
  color: var(--orange);
  font-size: 0.82rem;
  font-weight: 900;
}

.library-remove {
  width: 30px;
  min-height: 34px;
  padding: 0;
  color: #991b1b;
  font-size: 16px;
  line-height: 1;
}

.library-item strong {
  font-size: 0.88rem;
}

.library-item span {
  color: var(--muted);
  font-size: 0.76rem;
}

.stage-wrap {
  min-width: 0;
  display: grid;
  grid-template-rows: 34px 1fr;
}

.stage-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfe;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.project-title {
  min-width: 180px;
  max-width: 300px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.project-title input {
  min-width: 0;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 3px 8px;
  font: inherit;
}

.stage-indicators {
  min-width: 150px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  white-space: nowrap;
}

.page-tabs {
  min-width: 0;
  display: flex;
  flex: 1;
  justify-content: center;
  gap: 5px;
  overflow-x: auto;
}

.page-tabs button {
  min-height: 26px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--muted);
  padding: 3px 9px;
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

.page-tabs button.active {
  border-color: var(--blue);
  background: #eff6ff;
  color: var(--blue);
}

.page-tabs .page-name-input {
  width: 150px;
  min-width: 90px;
  height: 26px;
  border: 2px solid var(--blue);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 2px 8px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  outline: none;
}

.page-tabs .add-page {
  width: 28px;
  min-width: 28px;
  padding: 0;
  color: var(--green);
}

.stage {
  position: relative;
  min-height: 0;
  overflow: visible;
  background: #cfd7e3;
  cursor: grab;
  scrollbar-gutter: stable both-edges;
  scrollbar-color: #64748b #cbd5e1;
  scrollbar-width: thin;
}

.stage::-webkit-scrollbar {
  width: 14px;
  height: 14px;
}

.stage::-webkit-scrollbar-track {
  background: #cbd5e1;
}

.stage::-webkit-scrollbar-thumb {
  border: 3px solid #cbd5e1;
  border-radius: 999px;
  background: #64748b;
}

.stage:active {
  cursor: grabbing;
}

.stage-nav {
  position: fixed;
  z-index: 20;
  right: 28px;
  bottom: 24px;
  width: 82px;
  display: grid;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.stage-nav button {
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  color: var(--ink);
  padding: 3px 5px;
  font-size: 0.72rem;
  font-weight: 900;
  cursor: pointer;
}

.world {
  position: absolute;
  top: 0;
  left: 0;
  width: 1600px;
  height: 2263px;
  transform-origin: 0 0;
  background-color: #fff;
  background-image:
    linear-gradient(#eef2f6 1px, transparent 1px),
    linear-gradient(90deg, #eef2f6 1px, transparent 1px);
  background-size: 24px 24px;
  box-shadow: 0 0 0 1px #cbd5e1, 0 18px 45px rgba(15, 23, 42, 0.18);
}

.world-scroll-size {
  position: relative;
  min-width: 1px;
  min-height: 1px;
  pointer-events: none;
}

.sheet-zones {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.sheet-zone {
  position: absolute;
  left: 0;
  right: 0;
}

.zone-separator {
  position: absolute;
  left: 0;
  right: 0;
  height: 18px;
  min-height: 18px;
  padding: 0;
  transform: translateY(-9px);
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: ns-resize;
  pointer-events: auto;
}

.zone-separator::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 8px;
  height: 2px;
  background: rgba(100, 116, 139, 0.34);
}

.zone-separator:hover::before,
.zone-separator:active::before {
  height: 4px;
  background: rgba(37, 99, 235, 0.72);
}

.sheet-zones span {
  position: absolute;
  top: 18px;
  left: 22px;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.86);
  color: rgba(31, 41, 51, 0.62);
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0;
}

.cables,
.items {
  position: absolute;
  inset: 0;
}

.cables {
  overflow: visible;
  pointer-events: none;
  z-index: 3;
  isolation: isolate;
}

.items {
  pointer-events: none;
  z-index: 2;
}

.device,
.text-note {
  pointer-events: auto;
}

.cable {
  pointer-events: stroke;
  cursor: pointer;
}

.cable-hit {
  pointer-events: stroke;
  cursor: pointer;
}

.cable.selected {
  filter: drop-shadow(0 0 5px rgba(37, 99, 235, 0.85));
}

.cable-arrow {
  filter: drop-shadow(0 1px 2px rgba(15, 23, 42, 0.35));
}

.device,
.text-note {
  position: absolute;
  user-select: none;
}

.device {
  border: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
  cursor: grab;
}

.device-picture-frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.device:active {
  cursor: grabbing;
}

.device.drop-replace {
  outline: 3px solid #2563eb;
  outline-offset: 5px;
  background: rgba(37, 99, 235, 0.08);
}

.device-name {
  position: absolute;
  left: 50%;
  top: 0;
  max-width: 100%;
  transform: translate(-50%, calc(-100% - 3px));
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.92);
  color: #1f2933;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;
  box-shadow: 0 1px 5px rgba(15, 23, 42, 0.12);
  pointer-events: none;
  z-index: 2;
}

.device.selected::after {
  content: "";
  position: absolute;
  inset: 10%;
  border: 3px solid rgba(37, 99, 235, 0.45);
  border-radius: 4px;
  pointer-events: none;
}

.text-note.selected {
  outline: 3px solid rgba(37, 99, 235, 0.45);
}

.device-picture {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  pointer-events: none;
}

.resize-handle {
  position: absolute;
  top: -10px;
  right: -10px;
  width: 22px;
  height: 22px;
  min-height: 22px;
  border: 2px solid #fff;
  border-radius: 4px;
  background: #2563eb;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
  cursor: nesw-resize;
  display: none;
  padding: 0;
}

.device.selected .resize-handle {
  display: block;
}

.connectors {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  display: none;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 3px;
  padding: 0;
}

.connector {
  width: 22px;
  height: 22px;
  min-height: 22px;
  justify-self: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  padding: 0;
  font-size: 0;
  cursor: crosshair;
}

.connector::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: transparent;
}

.connector:hover,
.connector.selected {
  background: rgba(217, 119, 6, 0.2);
  outline: 2px solid var(--orange);
}

.text-note {
  min-width: 34px;
  min-height: 24px;
  padding: 3px 6px;
  border: 1px dashed #64748b;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
  font-weight: 900;
  cursor: move;
}

.text-note:focus {
  cursor: text;
  outline: 2px solid rgba(37, 99, 235, 0.6);
  background: #fff;
}

.text-menu {
  position: fixed;
  z-index: 1000;
  width: 180px;
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.text-menu[hidden] {
  display: none;
}

.text-menu label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
}

.text-menu input {
  width: 100%;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 5px 7px;
}

.text-menu input[type="color"] {
  padding: 3px;
}

.text-menu button {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.text-menu button:hover,
.text-menu button.active {
  border-color: var(--orange);
  background: #fff7ed;
}

.properties-panel {
  display: grid;
  gap: 10px;
}

.properties-panel p {
  margin: 0;
  color: var(--muted);
}

.property-card {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.property-card strong {
  font-size: 0.9rem;
}

.property-card small {
  color: var(--muted);
}

.dialog {
  width: min(520px, calc(100vw - 24px));
  border: 0;
  border-radius: 10px;
  padding: 0;
  box-shadow: var(--shadow);
}

.dialog::backdrop {
  background: rgba(15, 23, 42, 0.46);
}

.dialog form {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.dialog h2 {
  margin: 0;
}

.dialog label {
  display: grid;
  gap: 4px;
  font-size: 0.82rem;
  font-weight: 800;
}

.dialog .checkbox-line {
  grid-template-columns: 18px 1fr;
  align-items: center;
}

.dialog .checkbox-line input {
  width: auto;
}

.dialog input,
.dialog select,
.dialog textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px;
}

.drop-zone {
  min-height: 112px;
  display: grid;
  place-items: center;
  border: 2px dashed #9aa8b8;
  border-radius: 8px;
  background: #f8fafc;
  color: var(--muted);
  text-align: center;
  cursor: pointer;
}

.drop-zone.drag-over {
  border-color: var(--blue);
  background: #eff6ff;
}

.drop-zone input {
  display: none;
}

.import-preview {
  max-width: 100%;
  max-height: 180px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.dialog menu {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

@media (max-width: 980px) {
  .app {
    grid-template-columns: 220px 1fr;
  }

  .topbar {
    grid-template-columns: 42px 1fr;
  }

  .brand {
    min-width: 0;
  }

  .toolbar,
  .cable-picker {
    grid-column: 1 / -1;
  }

  .properties {
    display: none;
  }
}
