@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&family=Manrope:wght@400;500;600;650;700;750;800&display=swap');
:root {
  font-family: 'DM Sans', sans-serif;
  color: #292c31;
  background: #fafaf8;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  overflow: hidden;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}
button:hover {
  background: #f0efeb;
}
button:focus-visible,
input:focus-visible,
[contenteditable]:focus-visible {
  outline: 2px solid #ec7048;
  outline-offset: 3px;
}
header {
  height: 82px;
  background: #fff;
  display: flex;
  align-items: center;
  padding: 0 27px;
  gap: 20px;
  border-bottom: 1px solid #e6e6e2;
  position: relative;
  z-index: 10;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0;
  letter-spacing: -1px;
  font-size: 24px;
  font-family: Manrope, sans-serif;
}
.logo {
  color: #ef754e;
  font-size: 42px;
  line-height: 1;
}
.divider {
  height: 30px;
  width: 1px;
  background: #e6e6e2;
  margin: 0 2px;
}
.board-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
#title {
  border: 0;
  width: 265px;
  font-weight: 650;
  background: transparent;
  outline: none;
  font-size: 15px;
}
#saved {
  font-size: 11px;
  color: #92968f;
  padding-left: 3px;
}
.header-space {
  flex: 1;
}
.quiet {
  font-size: 13px;
  padding: 9px;
  border-radius: 7px;
  display: flex;
  gap: 9px;
  align-items: center;
}
.avatar {
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: #ece6de;
  display: grid;
  place-items: center;
  font-size: 12px;
  margin-left: 4px;
}
.primary {
  background: #ef754e;
  color: white;
  border-radius: 7px;
  font-weight: 600;
  font-size: 13px;
  padding: 11px 17px;
}
.primary:hover {
  background: #d85f3b;
}
#canvas {
  position: absolute;
  inset: 82px 0 0;
  overflow: hidden;
  background-color: #f9faf7;
  background-image: radial-gradient(#d8dcd5 0.85px, transparent 0.85px);
  background-size: 22px 22px;
  touch-action: none;
}
#world {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 0;
}
#connections {
  position: absolute;
  overflow: visible;
  left: 0;
  top: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
#connections path {
  pointer-events: stroke;
  cursor: pointer;
}
#objects {
  position: absolute;
  left: 0;
  top: 0;
}
.object {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  touch-action: none;
  cursor: grab;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.object:active {
  cursor: grabbing;
}
.object.sticky {
  box-shadow:
    0 4px 6px #343b2310,
    0 1px 2px #343b2308;
  line-height: 1.5;
  font-size: 17px;
  padding: 25px 21px;
  text-align: center;
  border-radius: 1px 1px 13px 1px;
}
.object.sticky:after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  border-width: 0 0 13px 13px;
  border-style: solid;
  border-color: transparent transparent #00000012 transparent;
}
.object.shape {
  border-radius: 12px;
  font-size: 17px;
  text-align: center;
  padding: 16px;
}
.object.circle {
  border-radius: 50%;
}
.object.text {
  justify-content: flex-start;
  align-items: flex-start;
  font-family: Manrope, sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  padding: 4px;
}
.object.frame {
  border-radius: 16px;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 20px 24px;
  color: #76806b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  pointer-events: auto;
}
.object.selected {
  outline: 2px solid #ed7959;
  outline-offset: 4px;
}
.object.editing {
  cursor: text;
  user-select: text;
  display: block;
  outline: 2px solid #ed7959;
}
.object .resize {
  position: absolute;
  bottom: -7px;
  right: -7px;
  background: white;
  border: 2px solid #ed7959;
  width: 11px;
  height: 11px;
  cursor: nwse-resize;
  z-index: 3;
}
.board-badge {
  position: absolute;
  top: 108px;
  left: 28px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #949b8f;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.4px;
  pointer-events: none;
}
.tiny-dot {
  width: 6px;
  height: 6px;
  background: #8c9a7b;
  border-radius: 50%;
}
.badge-divider {
  margin: 0 4px;
  color: #c3c9bb;
}
#board-type {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  color: #68715e;
}
#tools {
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-45%);
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e6e6e0;
  border-radius: 13px;
  padding: 7px;
  box-shadow: 0 4px 16px #242d1910;
  gap: 5px;
}
#tools button {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  position: relative;
}
#tools button.active {
  color: #dd6945;
  background: #fff0e9;
}
#tools svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#tools .tool-sep {
  height: 1px;
  background: #efefeb;
  margin: 5px;
}
#tools button:after {
  content: attr(data-label);
  display: none;
  position: absolute;
  left: 54px;
  background: #292c31;
  color: #fff;
  white-space: nowrap;
  padding: 7px 10px;
  border-radius: 5px;
  font-size: 11px;
}
#tools button:hover:after {
  display: block;
}
#properties {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 0 12px;
  margin-bottom: 4px;
  border-bottom: 1px solid #edf0e6;
}
.inspector-quick-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.inspector-quick-actions {
  display: flex;
  align-items: center;
  gap: 2px;
}
.property-caption {
  font-size: 9px;
  color: #999f95;
  letter-spacing: 1px;
}
#swatches {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.swatch {
  width: 21px;
  height: 21px;
  border: 1px solid #00000009;
  border-radius: 50%;
}
.swatch.chosen {
  outline: 2px solid #69725f;
  outline-offset: 2px;
}
.separator {
  height: 21px;
  width: 1px;
  background: #e6e6e2;
}
#properties button:not(.swatch) {
  padding: 3px 5px;
  font-size: 17px;
  height: 28px;
  min-width: 26px;
  border-radius: 6px;
}
.welcome {
  position: absolute;
  right: 25px;
  top: 108px;
  background: #fffdf9;
  border: 1px solid #e9e8df;
  width: 283px;
  padding: 24px;
  border-radius: 11px;
  box-shadow: 0 5px 20px #30351a05;
}
.eyebrow {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1.3px;
  color: #8d957f;
}
.welcome h2 {
  font-family: Manrope, sans-serif;
  letter-spacing: -0.6px;
  font-size: 25px;
  line-height: 1.3;
  font-weight: 750;
  margin: 13px 0 10px;
}
.welcome h2 span {
  color: #ed7959;
}
.welcome p {
  color: #929789;
  font-size: 12px;
  line-height: 1.7;
}
.welcome > button {
  position: absolute;
  right: 8px;
  top: 7px;
  color: #9b9d94;
}
.welcome > div {
  border-top: 1px solid #edede7;
  padding-top: 14px;
  margin-top: 19px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  color: #929789;
}
kbd {
  border: 1px solid #e7e7e0;
  border-radius: 4px;
  padding: 3px 5px;
  font-size: 10px;
  color: #94988d;
}
.bottom-left,
.zoom {
  position: absolute;
  bottom: 22px;
  background: white;
  border: 1px solid #e4e5df;
  border-radius: 9px;
  display: flex;
  align-items: center;
  padding: 5px;
  gap: 3px;
  box-shadow: 0 3px 10px #00000004;
}
.bottom-left {
  left: 23px;
}
.zoom {
  right: 23px;
}
.bottom-left button,
.zoom button {
  height: 31px;
  min-width: 31px;
  border-radius: 5px;
  font-size: 19px;
}
.zoom #zoom-level {
  font-size: 11px;
  min-width: 45px;
}
.bottom-left span,
.zoom span {
  width: 1px;
  height: 20px;
  background: #e9eae5;
  margin: 0 4px;
}
.bottom-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  color: #9ba18f;
  font-size: 10px;
  white-space: nowrap;
  pointer-events: none;
}
#toast {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: #30362a;
  color: #fff;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
}
#toast.show {
  opacity: 1;
  transform: translateX(-50%);
}
dialog {
  border: 1px solid #e6e7df;
  box-shadow: 0 20px 90px #222a1930;
  border-radius: 17px;
  padding: 28px;
  width: 620px;
  max-width: 92vw;
  color: inherit;
}
dialog::backdrop {
  background: #222a1935;
  backdrop-filter: blur(4px);
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}
.modal-head h2 {
  font-family: Manrope, sans-serif;
  margin: 7px 0;
  font-size: 24px;
  letter-spacing: -0.7px;
}
.modal-head button {
  font-size: 25px;
  border-radius: 6px;
  padding: 0 8px;
}
.template-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}
.template-card {
  border: 1px solid #e5e7dd;
  border-radius: 9px;
  padding: 18px;
  text-align: left;
  background: #fcfcf8;
}
.template-card:hover {
  border-color: #eb8968;
  background: #fff8f2;
}
.template-card b {
  display: block;
  font-size: 14px;
  margin: 12px 0 6px;
}
.template-card p {
  color: #969b8c;
  font-size: 11px;
  line-height: 1.6;
  margin: 0;
}
.mini-notes {
  display: flex;
  gap: 6px;
}
.mini-notes i {
  height: 39px;
  width: 39px;
  background: #f8df87;
  box-shadow: 0 2px 3px #00000008;
}
.mini-notes i:nth-child(2) {
  background: #dce7cc;
}
.mini-notes i:nth-child(3) {
  background: #e8ddf1;
}
.board-row {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #eeefe8;
  padding: 13px 0;
  gap: 14px;
}
.board-row > button:first-child {
  flex: 1;
  text-align: left;
  font-size: 14px;
}
.board-row small {
  display: block;
  font-size: 10px;
  color: #99a18f;
  margin-top: 5px;
}
.modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.help-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0eb;
  font-size: 13px;
}
.export-option {
  width: 100%;
  border: 1px solid #e6e8dd;
  border-radius: 8px;
  text-align: left;
  padding: 17px;
  margin: 6px 0;
}
.export-option b {
  display: block;
  margin-bottom: 5px;
}
.export-option span {
  font-size: 12px;
  color: #929989;
}
@media (max-width: 1000px) {
  .welcome {
    display: none;
  }
  .quiet span {
    display: none;
  }
  header {
    gap: 12px;
    padding: 0 18px;
  }
  .brand b {
    font-size: 19px;
  }
  #title {
    width: 210px;
  }
}
@media (max-width: 650px) {
  header {
    height: 72px;
    gap: 8px;
  }
  .brand b,
  .avatar,
  .divider,
  .quiet {
    display: none;
  }
  #title {
    width: 175px;
  }
  .primary {
    padding: 9px;
    font-size: 11px;
  }
  #canvas {
    top: 72px;
  }
  .bottom-hint {
    display: none;
  }
  .board-badge {
    top: 90px;
    font-size: 8px;
    left: 16px;
  }
  #tools {
    left: 10px;
    padding: 4px;
  }
  #tools button {
    width: 35px;
    height: 36px;
  }
  #properties {
    top: 112px;
  }
  .property-caption {
    display: none;
  }
  .template-grid {
    grid-template-columns: 1fr;
  }
  .bottom-left {
    left: 12px;
  }
  .zoom {
    right: 12px;
  }
}
button:disabled {
  opacity: 0.3;
  cursor: default;
}
button:disabled:hover {
  background: transparent;
}
@media (max-width: 650px) {
  header .quiet {
    display: flex;
    position: absolute;
    top: 80px;
    right: 13px;
    background: #fff;
    border: 1px solid #e4e5df;
    z-index: 4;
    font-size: 18px;
    width: 34px;
    height: 34px;
    justify-content: center;
  }
  header #templates {
    right: 54px;
  }
  header #title {
    width: 165px;
  }
  header .primary {
    white-space: nowrap;
    min-width: 46px;
    font-size: 0;
  }
  header .primary:first-letter {
    font-size: 20px;
  }
  #saved {
    font-size: 9px;
  }
  .board-badge {
    max-width: 190px;
    overflow: hidden;
    white-space: nowrap;
  }
  .board-badge #board-type,
  .badge-divider {
    display: none;
  }
}
.shape-picker {
  position: relative;
}
.expand-caret {
  position: absolute;
  right: 3px;
  bottom: 2px;
  font-size: 13px;
  line-height: 1;
  color: #8f9688;
}
#shape-toggle[aria-expanded='true'] {
  background: #fff0e9;
  color: #dd6945;
}
#shape-menu {
  position: absolute;
  left: 54px;
  top: 0;
  width: 215px;
  background: #fff;
  border: 1px solid #e6e6e0;
  border-radius: 11px;
  padding: 12px 7px 7px;
  box-shadow: 0 6px 24px #242d1917;
  z-index: 20;
}
#shape-menu[hidden] {
  display: none;
}
.shape-menu-title {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.3px;
  color: #929989;
  padding: 0 10px 9px;
}
#tools #shape-menu button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 43px;
  padding: 0 10px;
  text-align: left;
  font-size: 13px;
}
#shape-menu button span {
  flex: 1;
}
#shape-menu button kbd {
  font-size: 10px;
  font-weight: 400;
}
#tools #shape-menu button:after {
  display: none;
}
#shape-toggle[aria-expanded='true']:after {
  display: none;
}
@media (max-width: 650px) {
  #shape-menu {
    left: 45px;
    width: 195px;
  }
}
/* Expanded canvas tools */
[hidden] {
  display: none !important;
}
.no-grid {
  background-image: none !important;
}
.welcome {
  display: none;
}
.object {
  color: var(--text-color, #3c4234);
  background: transparent;
}
.object.sticky {
  background: var(--fill);
  color: var(--text-color);
  font-size: inherit;
}
.object.geometric {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 22px;
  box-shadow: none;
  color: var(--text-color);
}
.shape-body {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.object-text {
  position: relative;
  display: block;
  width: 100%;
  white-space: pre-wrap;
  line-height: 1.45;
  pointer-events: none;
  max-height: 100%;
  overflow: hidden;
}
.object.text {
  font-family: 'DM Sans', sans-serif;
  color: var(--text-color);
}
.object.frame {
  padding: 20px 24px;
  align-items: flex-start;
  letter-spacing: 1.5px;
  font-size: 12px;
}
.object.frame .object-text {
  font-size: 12px;
}
.object.triangle .object-text {
  padding-top: 40px;
  max-width: 65%;
}
.object.diamond .object-text {
  max-width: 65%;
}
.object.star .object-text {
  max-width: 55%;
  font-size: 0.8em;
}
.object.arrow .object-text {
  max-width: 70%;
  padding-right: 15px;
}
.object.bubble .object-text {
  padding-bottom: 15px;
}
.object.circle .object-text {
  max-width: 85%;
}
.object.editing {
  display: flex;
  cursor: text;
}
.object.editing .object-text {
  pointer-events: auto;
  user-select: text;
  overflow: visible;
  min-height: 1.4em;
  outline: none;
}
.object.editing .shape-body {
  pointer-events: none;
}
.object.text.editing {
  align-items: flex-start;
}
.object.locked {
  cursor: default;
}
.lock-badge {
  position: absolute;
  right: 6px;
  top: 5px;
  background: #ffffffbb;
  color: #788269;
  border-radius: 4px;
  padding: 1px 4px;
  font-size: 11px;
  pointer-events: none;
}
.object.image {
  border-radius: 7px;
  padding: 0;
  overflow: visible;
  box-shadow: 0 3px 16px #222e1714;
}
.object.image img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  border-radius: 7px;
  pointer-events: none;
}
.object.link,
.object.file {
  display: flex;
  flex-direction: column;
  padding: 0;
  background: #fff;
  border: 1px solid #e1e6da;
  border-radius: 10px;
  box-shadow: 0 4px 15px #2430190a;
  align-items: stretch;
  justify-content: flex-start;
  text-align: left;
  overflow: visible;
}
.link-art {
  height: 47%;
  background: #eef0e6;
  border-radius: 9px 9px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  font-size: 30px;
  color: #7d8c69;
}
.link-art span {
  font-size: 9px;
  letter-spacing: 2px;
}
.card-copy {
  padding: 13px 17px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
  flex: 1;
  font-size: 14px;
}
.card-copy b {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
}
.card-copy span {
  font-size: 10px;
  color: #919b86;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-copy a {
  font-size: 10px;
  color: #dc7854;
  text-decoration: none;
  width: fit-content;
  cursor: pointer;
}
.file-art {
  background: #f8ebe4;
  border-radius: 9px 9px 0 0;
  padding: 12px 17px;
  font-size: 15px;
  color: #cd7b5a;
  font-weight: 700;
  letter-spacing: 2px;
}
#selection-count {
  font-size: 10px;
  color: #8a9480;
  white-space: nowrap;
}
#properties {
  z-index: 30;
  gap: 8px;
}
#properties button:not(.swatch) {
  height: 27px;
  min-width: 23px;
  border-radius: 4px;
}
#tools {
  z-index: 32;
  max-height: calc(100vh - 190px);
}
#tools button {
  flex-shrink: 0;
}
#tools .tool-sep {
  flex-shrink: 0;
}
#tools #shape-menu {
  width: 300px;
  max-width: calc(100vw - 90px);
  padding: 15px;
  top: -90px;
  max-height: calc(100vh - 180px);
  overflow: auto;
}
.shape-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.shape-menu-head .shape-menu-title {
  padding: 0;
}
.shape-menu-head > span:last-child {
  font-size: 9px;
  color: #a4ac9b;
}
#shape-search {
  width: 100%;
  border: 1px solid #e5e8de;
  background: #fafbf7;
  padding: 9px 11px;
  border-radius: 6px;
  font-size: 11px;
  margin-bottom: 12px;
}
#shape-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}
#tools #shape-grid button {
  width: 100%;
  height: 76px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 10px 3px;
  align-items: center;
  justify-content: center;
  border: 1px solid #edefe7;
  border-radius: 7px;
}
#tools #shape-grid button.active {
  border-color: #edac96;
}
#tools #shape-grid button svg {
  width: 26px;
  height: 26px;
}
#tools #shape-grid button span {
  font-size: 9px;
  flex: 0;
}
#shape-empty,
.shape-tip {
  font-size: 10px;
  color: #929b86;
  line-height: 1.5;
  margin: 12px 0 0;
}
.shape-tip {
  border-top: 1px solid #eef0e8;
  padding-top: 11px;
}
#shape-toggle:after {
  display: none !important;
}
#inspector,
#scenes-panel,
#drawing-options,
#line-options {
  position: absolute;
  top: 82px;
  right: 23px;
  width: 276px;
  max-height: calc(100vh - 165px);
  overflow: auto;
  background: #fffefb;
  border: 1px solid #e4e7dc;
  border-radius: 12px;
  box-shadow: 0 5px 22px #27371a10;
  padding: 19px;
  z-index: 31;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.panel-heading h3 {
  font-family: Manrope, sans-serif;
  font-size: 18px;
  letter-spacing: -0.5px;
  margin: 5px 0 0;
}
.panel-heading > button {
  font-size: 21px;
  color: #9ca491;
  border-radius: 4px;
}
.inspector-section {
  padding: 12px 0;
  border-top: 1px solid #edf0e6;
}
.inspector-section:first-child {
  padding-top: 4px;
  border-top: 0;
}
.field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9px;
  letter-spacing: 1.2px;
  color: #8f9981;
  font-weight: 700;
  margin-bottom: 10px;
}
.field-label span {
  font-size: 10px;
  letter-spacing: 0;
  font-weight: 400;
  text-transform: capitalize;
}
.form-row {
  display: flex;
  gap: 9px;
  margin-bottom: 10px;
}
.form-row > label {
  flex: 1;
  min-width: 0;
  font-size: 10px;
  color: #8c977e;
}
.form-row input[type='number'],
.form-row select,
.stack-field input,
.stack-field select {
  display: block;
  width: 100%;
  border: 1px solid #e4e9db;
  border-radius: 5px;
  padding: 7px 8px;
  margin-top: 6px;
  font-size: 11.5px;
  background: #fcfdf9;
  color: #4e5d40;
}
.stack-field {
  display: block;
  font-size: 10px;
  color: #8c977e;
  margin-bottom: 10px;
}
.form-row input[type='range'] {
  display: block;
  width: 100%;
  margin-top: 11px;
  accent-color: #ed7959;
}
.form-row input[type='color'] {
  display: block;
  width: 100%;
  height: 29px;
  margin-top: 6px;
  border: 1px solid #e3e9da;
  padding: 3px;
  background: #fff;
  border-radius: 5px;
  cursor: pointer;
}
.segmented {
  display: flex;
  border: 1px solid #e4e9db;
  border-radius: 6px;
  margin-bottom: 11px;
  overflow: hidden;
}
.segmented button {
  flex: 1;
  height: 30px;
  font-size: 11.5px;
  font-weight: 500;
}
.segmented button.active,
.action-button.active {
  background: #fff0e8;
  color: #d66e4a;
}
.wide-field {
  font-size: 10px;
  color: #8c977e;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.wide-field input {
  width: 130px;
  accent-color: #ed7959;
}
.action-button {
  border: 1px solid #e4e9db;
  background: #fff;
  border-radius: 6px;
  font-size: 10px;
  padding: 8px 4px;
  flex: 1;
  white-space: nowrap;
}
.action-button.full {
  width: 100%;
  margin-top: 0;
}
.align-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin-bottom: 10px;
}
.align-grid button {
  font-size: 9px;
  border: 1px solid #e4e9db;
  padding: 7px 0;
  border-radius: 5px;
  text-transform: capitalize;
}
.panel-footnote,
.panel-description {
  color: #929c87;
  font-size: 11px;
  line-height: 1.7;
}
.panel-footnote {
  font-size: 10px;
  margin: 6px 0 0;
}
.empty-scenes {
  padding: 28px 0 10px;
  text-align: center;
  color: #8e9b7f;
}
.empty-scenes > span {
  font-size: 35px;
  display: block;
  margin: 10px;
}
.empty-scenes b {
  font-size: 12px;
  font-weight: 500;
}
.empty-scenes p {
  font-size: 11px;
  line-height: 1.7;
}
.scene-row {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #ebeee4;
  gap: 4px;
  margin-top: 10px;
}
.scene-row > button:first-child {
  flex: 1;
  display: flex;
  gap: 10px;
  align-items: center;
  text-align: left;
  padding: 12px 0;
  min-width: 0;
}
.scene-number {
  font-size: 10px;
  background: #eff2e8;
  color: #9aa58c;
  padding: 10px 7px;
  border-radius: 5px;
}
.scene-row b {
  display: block;
  font-size: 11px;
  max-width: 125px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.scene-row small {
  display: block;
  font-size: 9px;
  color: #a4ad99;
  margin-top: 5px;
}
.scene-row > button:not(:first-child) {
  font-size: 13px;
  padding: 4px;
  color: #a4ad99;
}
#save-scene {
  width: 100%;
  margin: 6px 0 10px;
  font-size: 11px;
}
#selection-box {
  position: absolute;
  border: 1px solid #ed7959;
  background: #ed795915;
  pointer-events: none;
  z-index: 29;
}
#drop-hint {
  position: absolute;
  inset: 100px 20px 70px;
  border: 2px dashed #e9906e;
  border-radius: 16px;
  background: #fff7efd9;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #b96d50;
  pointer-events: none;
}
.search-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e4e9db;
  border-radius: 7px;
  background: #fcfdf9;
  font: inherit;
  font-size: 13px;
  margin-bottom: 16px;
}
.search-result {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  text-align: left;
  padding: 14px 5px;
  border-bottom: 1px solid #eef0e8;
}
.search-result > span:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.search-result b {
  font-size: 12px;
  display: block;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.search-result small {
  font-size: 10px;
  display: block;
  color: #98a48a;
  margin-top: 4px;
  text-transform: capitalize;
}
.result-dot {
  width: 18px;
  height: 18px;
  border: 1px solid #0000000a;
  border-radius: 4px;
  flex-shrink: 0;
}
.modal-form > label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  margin: 18px 0;
}
.modal-form input {
  display: block;
  margin-top: 9px;
  width: 100%;
  border: 1px solid #e1e8d8;
  border-radius: 7px;
  padding: 12px;
  font-size: 13px;
  background: #fcfdf9;
}
.modal-form .primary {
  margin-top: 7px;
}
#link-error {
  font-size: 11px;
  color: #be633f;
}
.bottom-left button[aria-pressed='true'] {
  color: #c4704e;
  background: #fff4ed;
}
.bottom-left button {
  font-size: 17px;
}
.header-space {
  min-width: 0;
}
#search-results,
#boards-list {
  max-height: 55vh;
  overflow: auto;
}
.board-row[hidden] {
  display: none;
}
dialog {
  max-height: 90vh;
  overflow: auto;
}
@media (min-width: 1200px) {
  #tools button {
    height: 39px;
    width: 39px;
  }
  #tools {
    gap: 3px;
  }
  #tools .tool-sep {
    margin: 3px;
  }
}
@media (max-width: 1000px) {
  #tools button {
    height: 37px;
    width: 37px;
  }
  #tools {
    gap: 3px;
  }
  #tools .tool-sep {
    margin: 3px;
  }
}
@media (max-width: 650px) {
  header #search-board {
    right: 136px;
  }
  header #scenes {
    right: 95px;
  }
  #properties {
    top: 123px;
    max-width: calc(100vw - 22px);
    padding: 7px;
    gap: 4px;
  }
  #properties .swatch {
    width: 16px;
    height: 16px;
  }
  #swatches {
    gap: 4px;
  }
  #selection-count {
    display: none;
  }
  #properties button:not(.swatch) {
    font-size: 16px;
    min-width: 20px;
    padding: 0 3px;
  }
  .separator {
    margin: 0 2px;
  }
  #inspector,
  #scenes-panel {
    width: 245px;
    right: 12px;
    top: 165px;
    max-height: calc(100vh - 250px);
  }
  #tools {
    gap: 2px;
    left: 10px;
  }
  #tools button {
    width: 33px;
    height: 33px;
  }
  #tools .tool-sep {
    margin: 3px;
  }
  #tools #shape-menu {
    left: 44px;
    top: -90px;
    padding: 11px;
    max-width: calc(100vw - 76px);
  }
  #tools #shape-grid button {
    height: 67px;
  }
  #tools #shape-grid button span {
    font-size: 8px;
  }
  #drawing-options {
    top: 124px;
  }
  .bottom-left {
    bottom: 16px;
    gap: 0;
    padding: 4px;
  }
  .bottom-left button {
    min-width: 26px;
    height: 29px;
  }
  .bottom-left span {
    margin: 0 2px;
  }
  .zoom {
    bottom: 16px;
    padding: 4px;
    gap: 0;
  }
  .zoom button {
    min-width: 24px;
    height: 29px;
  }
  .zoom #zoom-level {
    min-width: 35px;
  }
  .zoom span {
    margin: 0 2px;
  }
}
@media (max-height: 650px) {
  #tools {
    max-height: calc(100vh - 130px);
    gap: 0;
    padding: 4px;
    top: 48%;
  }
  #tools button {
    height: 30px;
    width: 33px;
  }
  #tools .tool-sep {
    margin: 2px;
  }
  #tools svg {
    height: 19px;
    width: 19px;
  }
  #inspector,
  #scenes-panel {
    top: 137px;
    max-height: calc(100vh - 205px);
  }
}
header .primary {
  white-space: nowrap;
  flex-shrink: 0;
}
header .avatar,
header .divider {
  flex-shrink: 0;
}
.brand {
  flex-shrink: 0;
}
.board-info {
  min-width: 0;
}
@media (min-width: 651px) and (max-width: 1250px) {
  header .quiet span {
    display: none;
  }
  header .quiet {
    min-width: 31px;
    padding: 8px;
    justify-content: center;
  }
  header #title {
    width: 210px;
  }
  header {
    gap: 14px;
    padding: 0 22px;
  }
  .brand b {
    font-size: 21px;
  }
}
@media (min-width: 651px) and (max-width: 800px) {
  header #title {
    width: 155px;
  }
  header .avatar {
    display: none;
  }
  header {
    gap: 9px;
  }
  .brand b {
    font-size: 17px;
  }
  .brand .logo {
    font-size: 32px;
  }
  header .primary {
    padding: 10px;
    font-size: 11px;
  }
}
.object.diamond {
  padding: 14px;
}
.object.diamond .object-text {
  max-width: 92%;
}
.object.star {
  padding: 12px;
}
.object.star .object-text {
  max-width: 57%;
}
#connections {
  z-index: 2;
}

/* Floating workspace controls keep the canvas open and the board strip compact. */
.workspace-header {
  position: fixed;
  inset: 0 0 auto;
  height: 0;
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
  z-index: 20;
}
.board-tab-bar {
  position: absolute;
  top: 20px;
  left: 22px;
  display: flex;
  align-items: center;
  gap: 5px;
  max-width: calc(100vw - 282px);
  height: 46px;
  padding: 5px;
  background: #fffffff2;
  border: 1px solid #e5e8df;
  border-radius: 12px;
  box-shadow: 0 4px 20px #29362009;
  pointer-events: auto;
}
#board-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: auto;
  scrollbar-width: none;
  min-width: 0;
  max-width: 100%;
}
#board-tabs::-webkit-scrollbar {
  display: none;
}
.library-button,
#new-board {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 8px;
  color: #737f68;
}
.library-button {
  border-right: 1px solid #eef0e8;
  border-radius: 7px 0 0 7px;
}
.library-button:hover,
#new-board:hover {
  background: #f0f3e9;
  color: #46563a;
}
#new-board {
  font-size: 23px;
  font-weight: 400;
}
.board-tab {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0;
  flex: 0 0 auto;
  max-width: 205px;
  min-width: 105px;
  height: 34px;
  margin: 0;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #8a9183;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}
.board-tab::before {
  display: none;
}
.board-tab.is-active {
  background: #f0f3e9;
  border-color: #e5e9db;
  color: #394a2e;
}
.tab-open {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  height: 100%;
  padding: 0 8px 0 12px;
  text-align: left;
  font-size: 12px;
  font-weight: 500;
  border-radius: 6px;
}
.is-active .tab-open {
  font-weight: 650;
}
.tab-open:hover {
  background: #f3f5ed;
}
.tab-close {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  padding: 5px;
  margin-right: 4px;
  flex-shrink: 0;
  border-radius: 5px;
  color: #a5ad9c;
}
.tab-close:hover {
  color: #b56349;
  background: #e6e9df;
}
.tab-close svg {
  height: 13px;
  width: 13px;
}
.header-actions {
  position: absolute;
  top: 20px;
  right: 22px;
  height: 46px;
  padding: 5px;
  display: flex;
  align-items: center;
  gap: 3px;
  background: #fffffff2;
  border: 1px solid #e5e8df;
  border-radius: 24px;
  box-shadow: 0 4px 20px #29362009;
  pointer-events: auto;
}
.header-actions .quiet {
  display: grid;
  place-items: center;
  min-width: 34px;
  width: 36px;
  height: 34px;
  padding: 7px;
  border: 0;
  border-radius: 50%;
  color: #606d56;
}
.header-actions .quiet span {
  display: none;
}
.header-actions .quiet:hover {
  background: #edf1e4;
}
.header-actions svg,
.library-button svg,
.tab-close svg,
.bottom-left svg,
.zoom svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
#canvas {
  inset: 0;
}
.board-badge {
  display: none;
}
#inspector,
#scenes-panel,
#drawing-options,
#line-options {
  top: 82px;
  max-height: calc(100vh - 165px);
}
.bottom-left {
  left: auto;
  right: 22px;
  bottom: 82px;
  display: flex;
  gap: 3px;
  padding: 5px;
  border-radius: 12px;
  box-shadow: 0 4px 16px #29362008;
}
.bottom-left button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 7px;
}
.bottom-left button[aria-pressed='true'] {
  background: #eef3e4;
  color: #72845e;
}
.bottom-left button:disabled {
  opacity: 0.3;
}
.bottom-left > span {
  margin: 0 3px;
  height: 18px;
}
.zoom {
  right: 22px;
  bottom: 22px;
}
.bottom-hint {
  bottom: 36px;
  max-width: calc(100vw - 440px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
#empty-workspace {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: #fafbf7;
}
#empty-workspace[hidden] {
  display: none;
}
.empty-spark {
  font-size: 56px;
  color: #e98c6c;
}
#empty-workspace h1 {
  font-family: Manrope, sans-serif;
  font-size: 25px;
  font-weight: 650;
  margin: 20px 0 0;
  letter-spacing: -0.7px;
}
#empty-workspace p {
  font-size: 13px;
  color: #929c86;
  margin-bottom: 25px;
}
.workspace-empty #canvas,
.workspace-empty #tools,
.workspace-empty #properties,
.workspace-empty #inspector,
.workspace-empty #scenes-panel,
.workspace-empty #drawing-options,
.workspace-empty #line-options,
.workspace-empty .bottom-left,
.workspace-empty .zoom,
.workspace-empty .bottom-hint,
.workspace-empty .welcome,
.workspace-empty .header-actions {
  display: none;
}
@media (max-width: 650px) {
  .board-tab-bar {
    top: 12px;
    left: 12px;
    max-width: calc(100vw - 24px);
    height: 44px;
  }
  .header-actions {
    top: 66px;
    right: 12px;
    height: 42px;
  }
  .header-actions .quiet {
    width: 32px;
    min-width: 32px;
    height: 30px;
  }
  .header-actions #search-board,
  .header-actions #inspect,
  .header-actions #scenes,
  .header-actions #templates {
    display: grid;
  }
  .board-tab {
    min-width: 90px;
    max-width: 175px;
  }
  .tab-open {
    font-size: 11px;
  }
  .bottom-left {
    right: 12px;
    bottom: 76px;
  }
  .zoom {
    right: 12px;
    bottom: 16px;
  }
  .bottom-hint {
    display: none;
  }
  #inspector,
  #scenes-panel,
  #drawing-options,
  #line-options {
    width: 245px;
    right: 12px;
    top: 116px;
  }
  .embed-heading > span {
    display: none;
  }
}

.object.embed,
.object.file {
  align-items: stretch;
  justify-content: flex-start;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #dadfd3;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 16px #28381a08;
  text-align: left;
}
.embed-heading {
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  border-bottom: 1px solid #e9ece4;
  background: #fff;
}
.embed-heading svg {
  width: 17px;
  height: 17px;
  stroke: #738466;
  stroke-width: 1.6;
  fill: none;
  flex-shrink: 0;
}
.embed-heading b {
  font-size: 12px;
  font-weight: 600;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  flex: 1;
}
.embed-heading > span {
  font-size: 9px;
  color: #969d8c;
  white-space: nowrap;
}
.embed-body {
  flex: 1;
  position: relative;
  min-height: 0;
  background: #f3f5ee;
}
.embed-activate {
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  background: radial-gradient(ellipse at center, #fff, #eef1e8);
}
.embed-activate svg {
  height: 38px;
  width: 38px;
  stroke: #8a997a;
  stroke-width: 1.2;
  fill: none;
}
.embed-activate b {
  font-size: 14px;
  font-weight: 600;
}
.embed-activate span {
  font-size: 11px;
  color: #8d9683;
}
.embed-body iframe,
.embed-body object {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  padding-bottom: 30px;
}
.embed-done {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 30px;
  font-size: 11px;
  background: #eef2e8;
  color: #526247;
}
.embed-choices {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
}
.embed-choices button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  flex: 1;
  padding: 15px;
  border: 1px solid #e4e7dd;
  border-radius: 9px;
  font-size: 13px;
}
.embed-choices button[aria-pressed='true'] {
  background: #f2f5eb;
  border-color: #97a583;
  color: #526441;
}
.embed-choices svg {
  height: 20px;
  width: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
}
.embed-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
#upload-pdf {
  font-size: 12px;
  text-decoration: underline;
  color: #6a7b55;
  padding: 0;
}
.embed-privacy {
  font-size: 11px;
  color: #94998b;
  line-height: 1.6;
  margin: 18px 0;
}
.optional {
  font-weight: 400;
  color: #a1a597;
}
#embed-error {
  font-size: 12px;
  color: #bc4e36;
}
.pdf-viewer {
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
  white-space: normal;
}
.pdf-page {
  flex: 1;
  overflow: auto;
  min-height: 0;
  padding: 12px;
  background: #e9ece4;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  touch-action: auto;
}
.pdf-page canvas {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
  box-shadow: 0 2px 8px #0002;
}
.pdf-page p,
.pdf-page {
  font-size: 12px;
  color: #6e7863;
}
.pdf-pagination {
  height: 34px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  background: #fff;
  font-size: 11px;
}
.pdf-pagination button {
  font-size: 21px;
  line-height: 1;
  width: 24px;
  height: 26px;
  border-radius: 4px;
}
.pdf-pagination button:disabled {
  opacity: 0.3;
}
.pdf-pagination a {
  margin-left: auto;
  color: #677c53;
  text-decoration: none;
  font-size: 10px;
}

/* 4-corner resize handles, rotation handle, connection ports, smart guides & Illustrator reshape */
.object .resize {
  border-radius: 2px;
  box-shadow: 0 1px 3px #0000001a;
}
.object .resize.nw {
  top: -7px;
  left: -7px;
  right: auto;
  bottom: auto;
  cursor: nwse-resize;
}
.object .resize.ne {
  top: -7px;
  right: -7px;
  bottom: auto;
  cursor: nesw-resize;
}
.object .resize.sw {
  bottom: -7px;
  left: -7px;
  right: auto;
  cursor: nesw-resize;
}
.object .resize.se {
  bottom: -7px;
  right: -7px;
  cursor: nwse-resize;
}
.object .rotate-handle {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #ed7959;
  cursor: grab;
  z-index: 4;
  box-shadow: 0 1px 4px #0000001f;
}
.object .rotate-handle::after {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 1.5px;
  height: 14px;
  background: #ed7959;
  pointer-events: none;
}
.object .port {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #7d8f69;
  opacity: 0;
  transition:
    opacity 0.14s ease,
    transform 0.14s ease;
  z-index: 5;
  cursor: crosshair;
}
.object:hover .port,
.object.selected .port {
  opacity: 0.9;
}
.object.reshaping .port,
.object.editing .port,
.object.locked .port {
  display: none;
}
.object .port:hover {
  opacity: 1;
  background: #ed7959;
  border-color: #ed7959;
  transform: scale(1.28);
}
.object .port-n {
  top: -15px;
  left: calc(50% - 5px);
}
.object .port-s {
  bottom: -15px;
  left: calc(50% - 5px);
}
.object .port-e {
  right: -15px;
  top: calc(50% - 5px);
}
.object .port-w {
  left: -15px;
  top: calc(50% - 5px);
}
.object.reshaping {
  outline: 1.5px dashed #4a78c2;
  outline-offset: 2px;
}
.object .vertex-handle {
  position: absolute;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  margin-top: -5px;
  background: #fff;
  border: 2px solid #3b6fc2;
  border-radius: 2px;
  cursor: move;
  z-index: 6;
  box-shadow: 0 1px 4px #00000026;
}
.object .vertex-handle:hover {
  background: #3b6fc2;
  transform: scale(1.2);
}
.object .edge-handle {
  position: absolute;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  margin-top: -4px;
  background: #eef4ff;
  border: 1.5px solid #6b96db;
  border-radius: 50%;
  cursor: copy;
  z-index: 5;
  opacity: 0.85;
}
.object .edge-handle:hover {
  background: #3b6fc2;
  border-color: #3b6fc2;
  transform: scale(1.3);
  opacity: 1;
}
#connections .path-vertex {
  fill: #fff;
  stroke: #3b6fc2;
  stroke-width: 2px;
  cursor: move;
  pointer-events: all;
}
#connections .connector-endpoint,
#connections .selection-halo,
#connections .connector-draft {
  pointer-events: none;
}
#connections .connector-endpoint {
  fill: #fff;
  stroke: #ed7959;
  stroke-width: 2px;
}
#connections .connector-label {
  pointer-events: all;
  cursor: pointer;
}
#connections .smart-guide {
  stroke: #ed7959;
  stroke-width: 1.2px;
  stroke-dasharray: 4 3;
  pointer-events: none;
}
#canvas:not([data-tool='select']):not([data-tool='eraser']) #connections path,
#canvas:not([data-tool='select']):not([data-tool='eraser']) #connections .connector-label,
body.is-panning #connections path,
body.is-panning #connections .connector-label {
  pointer-events: none;
}
#canvas[data-tool='pen'] #objects .object,
#canvas[data-tool='line'] #objects .object,
#canvas[data-tool='eraser'] #objects .object,
#canvas[data-tool='hand'] #objects .object,
body.is-panning #objects .object {
  pointer-events: none;
}
body.is-panning #canvas {
  cursor: grabbing !important;
}
#properties #reshape svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
#properties #reshape.active,
.action-button.active {
  background: #fff0e9;
  color: #dd6945;
  border-color: #edac96;
}
#connections .curve-guide {
  stroke: #ed997b;
  stroke-width: 1;
  stroke-dasharray: 4 4;
  pointer-events: none;
}
#connections .curve-handle {
  fill: #fff6ef;
  stroke: #e4805c;
  stroke-width: 2;
  cursor: grab;
  pointer-events: all;
}
#connections .curve-handle:hover {
  fill: #f3b295;
  stroke: #d6633c;
}
#connections .curve-handle:active {
  cursor: grabbing;
}

/* Fit all twelve tool buttons without clipping the link tool or its popovers. */
#tools {
  --tool-size: clamp(20px, calc((100dvh - 218px) / 12), 42px);
  top: 50%;
  transform: translateY(-50%);
  max-height: none;
  gap: 2px;
  padding: 6px;
}
#tools > button,
#tools > .shape-picker > #shape-toggle {
  width: var(--tool-size);
  height: var(--tool-size);
  flex: 0 0 var(--tool-size);
}
#tools > .shape-picker {
  height: var(--tool-size);
  flex: 0 0 var(--tool-size);
}
#tools > .tool-sep {
  height: 1px;
  margin: 3px 4px;
}
#tools svg {
  width: min(22px, calc(var(--tool-size) - 10px));
  height: min(22px, calc(var(--tool-size) - 10px));
}
#tools > button::after,
#shape-toggle::after {
  left: calc(100% + 12px);
}
@media (max-width: 650px) {
  #tools {
    --tool-size: clamp(20px, calc((100dvh - 218px) / 12), 33px);
  }
}
@media (max-height: 460px) {
  #tools {
    --tool-size: 28px;
    display: grid;
    grid-template-columns: repeat(2, var(--tool-size));
    top: 80px;
    transform: none;
  }
  #tools > .tool-sep {
    grid-column: 1 / -1;
  }
  #tools > .shape-picker {
    position: static;
  }
  #tools #shape-menu {
    left: calc(100% + 12px);
    top: 0;
    max-height: calc(100dvh - 92px);
    overflow-y: auto;
  }
}
