:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #202124;
  background: #f7f8fa;
  font-synthesis: none;
  --brand: #a8755e;
  --brand-dark: #684335;
  --brand-soft: #f3e9e4;
  --brand-ring: rgba(168, 117, 94, 0.24);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
.hidden {
  display: none !important;
}
.auth-screen {
  min-height: 100vh;
  display: flex;
  flex-wrap: wrap;
}
.auth-brand {
  flex: 1 1 620px;
  min-height: 100vh;
  padding: 56px 72px;
  display: flex;
  flex-direction: column;
  background: #4b3027
    radial-gradient(
      circle at 15% 15%,
      rgba(190, 135, 108, 0.38),
      transparent 36%
    );
  color: #fff;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  width: 40px;
  height: 40px;
  display: block;
  object-fit: cover;
  border-radius: 12px;
}
.brand-mark.small {
  width: 34px;
  height: 34px;
  border-radius: 11px;
}
.auth-copy {
  max-width: 620px;
  margin: auto 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.eyebrow {
  width: max-content;
  padding: 7px 11px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 750;
}
.auth-copy h1 {
  margin: 0;
  max-width: 570px;
  font-size: clamp(42px, 5vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.055em;
}
.auth-copy p {
  margin: 0;
  max-width: 530px;
  font-size: 18px;
  line-height: 30px;
  color: #eadbd4;
}
.auth-panel {
  flex: 1 1 560px;
  min-height: 100vh;
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}
.auth-card {
  width: 100%;
  max-width: 430px;
}
.auth-card h2 {
  margin: 0 0 10px;
  font-size: 34px;
  letter-spacing: -0.035em;
}
.auth-card > p {
  margin: 0 0 28px;
  color: #667085;
  line-height: 24px;
}
.google-button {
  width: 100%;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #fff;
  border: 1px solid #d0d5dd;
  border-radius: 13px;
  color: #344054;
  font-weight: 750;
  box-shadow: 0 2px 5px rgba(16, 24, 40, 0.05);
}
.google-button svg {
  width: 21px;
}
.security-note {
  margin-top: 22px;
  padding: 16px;
  background: #f9fafb;
  border: 1px solid #eaecf0;
  border-radius: 12px;
  color: #667085;
  font-size: 12px;
  text-align: center;
}
.app {
  height: 100vh;
  overflow: hidden;
}
.topbar {
  height: 60px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-bottom: 1px solid #e3e6ea;
}
.icon-button,
.avatar {
  width: 40px;
  height: 40px;
  border: 1px solid #dfe3e8;
  border-radius: 11px;
  background: #fff;
}
.icon-button svg,
.primary-button svg,
.tool svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.document-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.avatar {
  border: 0;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 800;
  background-position: center;
  background-size: cover;
}
.profile-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(320px, calc(100vw - 24px));
  padding: 10px;
  background: #fff;
  border: 1px solid #ded6d1;
  border-radius: 16px;
  box-shadow: 0 18px 46px rgba(57, 37, 29, 0.18);
  color: #30251f;
}
.profile-summary {
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.profile-summary > span:last-child {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.profile-summary b,
.profile-summary small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-summary b {
  font-size: 14px;
}
.profile-summary small {
  color: #77675f;
  font-size: 12px;
}
.profile-initials {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand);
  color: #fff;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 800;
}
.profile-divider {
  height: 1px;
  margin: 6px 0;
  background: #ece5e1;
}
.profile-action {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #684335;
  text-align: left;
  font-weight: 700;
}
.profile-action:hover,
.profile-action:focus-visible {
  background: var(--brand-soft);
  outline: none;
}
.title-input {
  width: min(320px, 30vw);
  border: 0;
  background: transparent;
  height: 22px;
  padding: 0;
  font-size: 14px;
  font-weight: 760;
  color: #101828;
}
.save-state {
  font-size: 12px;
  color: #667085;
}
.spacer {
  flex: 1;
}
.primary-button,
.secondary-button,
.new-button {
  height: 40px;
  padding: 0 15px;
  border-radius: 11px;
  font-weight: 700;
}
.primary-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.primary-button svg {
  width: 17px;
  height: 17px;
}
.primary-button,
.new-button {
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #fff;
}
.secondary-button {
  border: 1px solid #dfe3e8;
  background: #fff;
  color: #344054;
}
.workspace {
  height: calc(100vh - 60px);
  display: flex;
}
.sidebar {
  width: 248px;
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-right: 1px solid #e3e6ea;
  transition: margin 0.2s;
}
.sidebar.closed {
  margin-left: -248px;
}
.new-button {
  width: 100%;
}
.section-label {
  margin: 24px 8px 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #98a2b3;
}
.board-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: auto;
}
.board-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px;
  align-items: center;
  gap: 4px;
}
.board-row .board-item {
  width: 100%;
}
.board-delete {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #9b8b83;
  font-size: 18px;
}
.board-delete:hover {
  background: var(--brand-soft);
  color: var(--brand-dark);
}
.board-role {
  width: 32px;
  color: #a8755e;
  text-align: center;
}
.board-tree-section + .board-tree-section {
  margin-top: 18px;
}
.board-tree-section h3 {
  margin: 0 8px 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #8b7b73;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.board-tree-section h3 small {
  color: #b2a49d;
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: none;
}
.board-tree-empty {
  margin: 8px;
  color: #b2a49d;
  font-size: 11px;
}
.board-item {
  min-height: 42px;
  padding: 8px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  text-align: left;
  color: #475467;
}
.board-item.active {
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 750;
}
.board-rename-input {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid var(--brand);
  outline: 3px solid var(--brand-ring);
  border-radius: 9px;
  background: #fff;
  color: var(--brand-dark);
  font-weight: 750;
}
.sidebar-bottom {
  margin-top: auto;
}
.plain-button {
  height: 40px;
  border: 0;
  background: transparent;
  color: #667085;
}
.canvas {
  position: relative;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  background-color: #faf8f6;
  background-image: radial-gradient(#d8cec9 1px, transparent 1px);
  background-size: 22px 22px;
  touch-action: none;
}
.toolbar {
  position: absolute;
  left: 24px;
  top: 22px;
  height: 50px;
  padding: 5px 6px;
  display: flex;
  gap: 3px;
  background: #fff;
  border: 1px solid #dfe3e8;
  border-color: #d7dce3;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(16, 24, 40, 0.11);
  z-index: 10;
}
.tool {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #475467;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.tool.active {
  background: var(--brand-soft);
  color: var(--brand-dark);
}
.toolbar-divider {
  width: 1px;
  height: 24px;
  align-self: center;
  margin: 0 3px;
  background: #e3e6ea;
}
.nodes {
  position: absolute;
  inset: 0;
  transform-origin: 0 0;
}
.node {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 12px 16px;
  text-align: center;
  white-space: pre-line;
  background: #fff;
  border: 1px solid #d0d5dd;
  border-radius: 13px;
  box-shadow: 0 8px 22px rgba(16, 24, 40, 0.08);
  font-size: 14px;
  line-height: 1.35;
  user-select: none;
  cursor: grab;
}
.node.selected {
  border-color: var(--brand);
  box-shadow:
    0 0 0 2px var(--brand-ring),
    0 8px 22px rgba(16, 24, 40, 0.09);
}
.node.blue {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  font-weight: 800;
}
.node.note {
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
  background: #fff4ce;
  border-color: #f7c948;
  border-radius: 7px;
  color: #5f4600;
}
.node[contenteditable="true"] {
  cursor: text;
  user-select: text;
  outline: 3px solid var(--brand-ring);
  border-color: var(--brand);
}
.node.selected:not([contenteditable="true"]) {
  resize: both;
  overflow: hidden;
}
.edges {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  transform-origin: 0 0;
  pointer-events: none;
}
.edge {
  stroke: #939dac;
  stroke-width: 1.8;
  fill: none;
}
.zoom {
  position: absolute;
  right: 24px;
  bottom: 22px;
  height: 46px;
  padding: 4px 6px;
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #dfe3e8;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(16, 24, 40, 0.1);
  z-index: 10;
}
.zoom button {
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  font-size: 19px;
}
.zoom span {
  width: 50px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #475467;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  translate: -50% 20px;
  padding: 11px 16px;
  background: #101828;
  color: #fff;
  border-radius: 10px;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
  z-index: 100;
}
.toast.show {
  translate: -50% 0;
  opacity: 1;
}
.app .topbar {
  position: fixed;
  top: 16px;
  right: 16px;
  height: 46px;
  padding: 4px;
  gap: 6px;
  border: 1px solid #d7dce3;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(57, 37, 29, 0.11);
  box-sizing: border-box;
  z-index: 30;
}
.app .workspace {
  height: 100vh;
}
.app .sidebar {
  position: fixed;
  left: 20px;
  top: 88px;
  bottom: 20px;
  border: 1px solid #d7dce3;
  border-radius: 16px;
  box-shadow: 0 14px 38px rgba(16, 24, 40, 0.12);
  transition:
    transform 0.2s,
    opacity 0.2s;
  z-index: 25;
}
.app .sidebar.closed {
  margin-left: 0;
  transform: translateX(-290px);
  opacity: 0;
  pointer-events: none;
}
.app .toolbar {
  box-sizing: border-box;
  left: 16px;
  top: 16px;
  height: 46px;
  padding: 4px;
  gap: 2px;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(57, 37, 29, 0.11);
  max-width: calc(100vw - 48px);
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
}
.app .toolbar::-webkit-scrollbar {
  display: none;
}
.menu-tool {
  flex: 0 0 36px;
}
.tool-logo {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 9px;
}
.canvas-title {
  width: 124px;
  min-width: 124px;
  height: 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: center;
}
.canvas-title .title-input {
  width: 100%;
  height: 20px;
  line-height: 20px;
  font-size: 12px;
}
.canvas-title .save-state {
  line-height: 12px;
  font-size: 9px;
}
.app .toolbar .tool {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 9px;
}
.app .toolbar .tool svg,
.app .topbar svg {
  width: 18px;
  height: 18px;
}
.app .toolbar .toolbar-divider {
  height: 20px;
  margin: 0 2px;
}
.app .topbar .primary-button,
.app .topbar .secondary-button,
.app .topbar .avatar {
  height: 36px;
  min-height: 36px;
  border-radius: 10px;
  font-size: 13px;
}
.app .topbar .primary-button,
.app .topbar .secondary-button {
  padding: 0 11px;
}
.app .topbar .avatar {
  width: 36px;
  min-width: 36px;
  padding: 0;
  border-radius: 50%;
}
@media (max-width: 1100px) {
  .app .topbar {
    top: auto;
    bottom: 16px;
  }
}
.drawings {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  transform-origin: 0 0;
  pointer-events: none;
}
.drawing-stroke {
  fill: none;
  stroke: #344054;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.node.text {
  justify-content: flex-start;
  padding: 4px;
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  font-size: 18px;
  font-weight: 650;
}
.node.shape {
  background: rgba(255, 255, 255, 0.55);
  border: 2px solid #475467;
  box-shadow: none;
}
.library {
  min-height: 100vh;
  background: #f7f3f0;
  color: #30251f;
}
.library-header {
  position: sticky;
  top: 0;
  height: 64px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid #e7ddd8;
  backdrop-filter: blur(14px);
  z-index: 20;
}
.library-brand {
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.library-brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}
.library-header .primary-button {
  height: 36px;
  font-size: 13px;
}
.library-header .avatar {
  width: 36px;
  height: 36px;
}
.library-layout {
  min-height: calc(100vh - 64px);
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
}
.library-sidebar {
  padding: 22px 14px;
  background: #fff;
  border-right: 1px solid #e7ddd8;
}
.library-nav {
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #5b4a42;
  text-align: left;
}
.library-nav.active {
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 750;
}
.library-nav small {
  color: #9b8b83;
  font-size: 9px;
}
.library-sidebar-heading {
  margin: 24px 8px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #9b8b83;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
}
.library-sidebar-heading button {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--brand-dark);
  font-size: 18px;
}
.library-main {
  padding: 30px;
}
.library-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.library-title-row p {
  margin: 0 0 5px;
  color: #9b8b83;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
}
.library-title-row h1 {
  margin: 0;
  font-size: 28px;
  letter-spacing: -0.035em;
}
.board-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}
.board-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid #e5dbd5;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(57, 37, 29, 0.06);
  cursor: pointer;
  transition:
    translate 0.18s,
    box-shadow 0.18s;
}
.board-card:hover {
  translate: 0 -2px;
  box-shadow: 0 14px 34px rgba(57, 37, 29, 0.1);
}
.board-preview {
  height: 160px;
  display: grid;
  place-items: center;
  background-color: #faf8f6;
  background-image: radial-gradient(#d8cec9 1px, transparent 1px);
  background-size: 18px 18px;
}
.board-preview span {
  width: 70px;
  height: 54px;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #fff;
  border-radius: 13px;
  font-weight: 850;
}
.board-card-info {
  min-height: 68px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid #eee6e2;
}
.board-card-info > span:first-child {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.board-card-info b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.board-card-info small {
  color: #9b8b83;
}
.board-card-actions {
  display: flex;
}
.board-card-actions button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #77675f;
  font-size: 18px;
}
.board-card-actions button:hover {
  background: var(--brand-soft);
}
.library-empty {
  margin-top: 24px;
  padding: 48px;
  background: #fff;
  border: 1px dashed #d8c9c1;
  border-radius: 16px;
  color: #8b7b73;
  text-align: center;
}
.library-empty h2 {
  margin: 0 0 8px;
  color: #4c3a31;
  font-size: 18px;
}
.library-empty p {
  margin: 0 0 18px;
}
.app-dialog {
  width: min(520px, calc(100vw - 32px));
  padding: 0;
  overflow: hidden;
  background: #fffdfc;
  color: #30251f;
  border: 1px solid #ded2cb;
  border-radius: 20px;
  box-shadow: 0 28px 80px rgba(57, 37, 29, 0.24);
}
.app-dialog-small {
  width: min(440px, calc(100vw - 32px));
}
.app-dialog::backdrop {
  background: rgba(45, 32, 26, 0.4);
  backdrop-filter: blur(3px);
}
.app-dialog form {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.dialog-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.dialog-heading small {
  color: #9b8b83;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.12em;
}
.dialog-heading h2 {
  margin: 3px 0 0;
  font-size: 24px;
  letter-spacing: -0.03em;
}
.dialog-heading > button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #77675f;
  font-size: 22px;
}
.dialog-heading > button:hover {
  background: var(--brand-soft);
}
.app-dialog label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #5b4a42;
  font-size: 12px;
  font-weight: 750;
}
.app-dialog input,
.app-dialog select {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #d9ccc5;
  border-radius: 11px;
  outline: none;
  background: #fff;
  color: #30251f;
}
.app-dialog input:focus,
.app-dialog select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-ring);
}
.dialog-help,
.dialog-copy {
  margin: -4px 0 0;
  color: #8b7b73;
  font-size: 12px;
  line-height: 1.55;
}
.dialog-copy {
  margin: 0;
  font-size: 14px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.dialog-actions.split {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
}
.danger-button {
  height: 40px;
  padding: 0 13px;
  border: 1px solid #c77a6b;
  border-radius: 10px;
  background: #fff;
  color: #9b3f31;
  font-weight: 750;
}
.danger-button.solid {
  background: #9b3f31;
  color: #fff;
}
.logo-home {
  padding: 0;
  overflow: hidden;
}
.canvas[data-tool="pan"] {
  cursor: grab;
}
.canvas[data-tool="pan"]:active {
  cursor: grabbing;
}
.canvas[data-tool="text"] {
  cursor: text;
}
.canvas[data-tool="pen"] {
  cursor: crosshair;
}
.tool-palette {
  position: fixed;
  left: 24px;
  top: 88px;
  width: min(380px, calc(100vw - 48px));
  max-height: calc(100vh - 112px);
  box-sizing: border-box;
  padding: 12px;
  overflow: auto;
  background: #171717;
  color: #f5f5f5;
  border: 1px solid #303030;
  border-radius: 18px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.35);
  z-index: 80;
}
.palette-search-wrap {
  height: 52px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #222;
  border: 1px solid #363636;
  border-radius: 13px;
}
.palette-search-wrap svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: #a3a3a3;
  stroke-width: 1.8;
  stroke-linecap: round;
}
.palette-search-wrap input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-size: 16px;
}
.palette-search-wrap input::placeholder {
  color: #818181;
}
.tool-palette kbd {
  padding: 3px 7px;
  background: #303030;
  color: #bdbdbd;
  border: 1px solid #414141;
  border-radius: 6px;
  font: 600 11px/1.2 inherit;
}
.palette-section-label {
  margin: 18px 10px 8px;
  color: #737373;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
}
.palette-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.palette-item {
  width: 100%;
  min-height: 62px;
  padding: 8px 10px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #f5f5f5;
  text-align: left;
}
.palette-item:hover,
.palette-item:focus-visible {
  background: #252525;
  outline: none;
}
.palette-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #352720;
  color: #d7a68e;
  border-radius: 10px;
  font-size: 19px;
  font-weight: 750;
}
.palette-item span:nth-child(2) {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.palette-item b {
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.palette-item small {
  color: #777;
  font-size: 12px;
}
.palette-tip {
  margin: 12px 10px 4px;
  color: #8c8c8c;
  font-size: 11px;
  line-height: 1.5;
}
@media (max-width: 760px) {
  .auth-brand {
    display: none;
  }
  .auth-panel {
    padding: 28px;
  }
  .topbar {
    padding: 0 10px;
  }
  .topbar .brand-mark,
  .save-state,
  .secondary-button {
    display: none;
  }
  .title-input {
    width: 130px;
  }
  .primary-button {
    width: 42px;
    padding: 0;
    font-size: 0;
  }
  .primary-button::after {
    content: "↗";
    font-size: 18px;
  }
  .sidebar {
    position: absolute;
    z-index: 30;
    height: calc(100vh - 64px);
    box-shadow: 8px 0 24px rgba(16, 24, 40, 0.12);
  }
  .sidebar.closed {
    margin-left: -248px;
  }
  .toolbar {
    left: 50%;
    top: auto;
    bottom: 22px;
    translate: -50% 0;
    height: 56px;
  }
  .tool {
    width: 45px;
    height: 44px;
  }
  .zoom {
    display: none;
  }
  .node {
    font-size: 13px;
  }
}
@media (max-width: 760px) {
  .app .topbar {
    top: auto;
    right: 12px;
    bottom: 12px;
    padding: 6px;
  }
  .app .sidebar {
    left: 12px;
    top: 78px;
    bottom: 12px;
    height: auto;
  }
  .app .sidebar.closed {
    margin-left: 0;
    transform: translateX(-280px);
  }
  .app .toolbar {
    max-width: calc(100vw - 24px);
  }
  .canvas-title {
    width: 108px;
    min-width: 108px;
  }
  .tool-palette {
    left: 12px;
    top: 12px;
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
  }
}
@media (max-width: 760px) {
  .app .toolbar {
    height: 46px;
    padding: 4px;
  }
  .app .toolbar .tool {
    width: 36px;
    height: 36px;
  }
  .library-header {
    padding: 0 12px;
  }
  .library-brand b {
    display: none;
  }
  .library-layout {
    display: block;
  }
  .library-sidebar {
    padding: 10px 12px;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid #e7ddd8;
  }
  .library-sidebar-heading {
    margin: 0;
  }
  .library-sidebar-heading span {
    display: none;
  }
  .group-list {
    display: flex;
    gap: 6px;
  }
  .library-nav {
    width: max-content;
  }
  .library-main {
    padding: 20px 14px;
  }
  .board-grid {
    grid-template-columns: 1fr;
  }
}
