@import url("data:text/css,");
:root {
  --ink: #292839;
  --muted: #8a8997;
  --purple: #7760c5;
  --line: #ecebf1;
  --bg: #f8f8fb;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  font-size: 14px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  cursor: pointer;
}
button {
  border: 0;
  background: none;
  color: inherit;
}
input,
select,
textarea {
  border: 1px solid #dfdfe8;
  border-radius: 9px;
  padding: 11px 13px;
  outline: none;
  background: white;
  color: var(--ink);
}
input:focus,
textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px #7760c515;
}
button:hover {
  filter: brightness(0.97);
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
.hidden {
  display: none !important;
}
.primary,
.secondary,
.dark {
  padding: 12px 17px;
  border-radius: 9px;
  font-weight: 600;
  white-space: nowrap;
}
.primary {
  background: var(--purple);
  color: white;
  box-shadow: 0 3px 5px #7760c51a;
}
.secondary {
  border: 1px solid #dfdfe8;
  background: white;
}
.dark {
  background: #313044;
  color: white;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -0.8px;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.brandmark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: var(--purple);
  color: white;
  border-radius: 11px;
  font-family: Georgia;
  font-style: italic;
  font-size: 31px;
  padding-bottom: 5px;
}
.brandmark.small {
  width: 31px;
  height: 31px;
  font-size: 27px;
}
.beta {
  font-size: 9px;
  letter-spacing: 1px;
  margin-left: 3px;
  background: #e4def7;
  padding: 5px;
  border-radius: 4px;
  color: #7760c5;
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: #9691a4;
}
.dashboard {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 248px;
  position: fixed;
  top: 0;
  bottom: 0;
  padding: 31px 21px;
  background: #fff;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.workspace {
  margin: 37px 0 34px;
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 13px 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
}
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #7560b3;
  background: #eee8fc;
  font-weight: 700;
}
.workspace strong {
  font-size: 12px;
  display: block;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.workspace small {
  font-size: 10px;
  display: block;
  color: var(--muted);
  margin-top: 5px;
}
.nav-label {
  font-size: 9px;
  letter-spacing: 1.3px;
  color: #a3a1ad;
  margin: 0 10px 13px;
}
.nav {
  display: flex;
  align-items: center;
  text-align: left;
  gap: 12px;
  padding: 13px 12px;
  border-radius: 9px;
  margin-bottom: 5px;
  font-size: 17px;
  width: 100%;
}
.nav span {
  font-size: 12px;
}
.nav.active {
  color: #7760c5;
  background: #f0edf9;
}
.nav .count,
.nav .tiny {
  margin-left: auto;
  font-size: 10px;
  border-radius: 5px;
  background: #e4def5;
  padding: 3px 6px;
}
.nav .tiny {
  background: #f3f2f7;
  font-size: 8px;
}
.sidebar-bottom {
  margin-top: auto;
}
.tip {
  background: #f8f7fc;
  border: 1px solid #edeaf6;
  padding: 17px 14px;
  border-radius: 11px;
  margin-bottom: 17px;
}
.tip > span {
  color: var(--purple);
  font-size: 23px;
  display: block;
  margin-bottom: 12px;
}
.tip strong {
  font-size: 12px;
}
.tip p {
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
}
.tip a {
  font-size: 10px;
  font-weight: 600;
  color: var(--purple);
  text-decoration: none;
}
.main {
  margin-left: 248px;
  width: calc(100% - 248px);
  background: #fcfcfe;
  min-height: 100vh;
}
.dash-header {
  height: 78px;
  padding: 0 43px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: white;
}
.breadcrumb {
  font-size: 11px;
  color: #9a97a5;
}
.breadcrumb span {
  padding: 0 15px;
  color: #cecad7;
}
.server-status {
  font-size: 10px;
  color: #93919e;
}
.server-status i {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #7fa98e;
  border-radius: 100%;
  margin-right: 6px;
}
.main-body {
  max-width: 1400px;
  margin: auto;
  padding: 42px 43px 25px;
}
.greeting h1 {
  font-size: 31px;
  letter-spacing: -1px;
  margin: 12px 0;
}
.greeting h1 span {
  font-size: 28px;
  color: #c4b3eb;
  margin-left: 14px;
}
.greeting p {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}
.hero-banner {
  margin: 31px 0 35px;
  border: 1px solid #e5dff1;
  border-radius: 16px;
  background: #eee8f8;
  min-height: 292px;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  padding: 30px 32px;
}
.pill {
  font-size: 8px;
  letter-spacing: 1.2px;
  background: #ffffff80;
  padding: 6px 9px;
  border-radius: 5px;
  color: #85749f;
}
.hero-banner h2 {
  font-size: 28px;
  line-height: 1.18;
  letter-spacing: -0.6px;
  margin: 17px 0 13px;
}
.hero-banner p {
  font-size: 11px;
  line-height: 1.8;
  color: #8b809e;
  margin-bottom: 20px;
}
.hero-banner .dark {
  font-size: 11px;
  padding: 12px 15px;
}
.dark span {
  margin-left: 15px;
}
.hero-art {
  width: 47%;
  position: relative;
}
.art-grid {
  position: absolute;
  inset: -32px -32px -32px 0;
  background-image:
    linear-gradient(#bfaed820 1px, transparent 1px),
    linear-gradient(90deg, #bfaed820 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(90deg, transparent, black);
}
.art-note {
  position: absolute;
  background: #ffefaf;
  width: 190px;
  height: 205px;
  padding: 22px;
  transform: rotate(-8deg);
  left: 14%;
  top: 17px;
  box-shadow: 3px 13px 24px #8573a11c;
  border-radius: 2px;
}
.art-note span {
  font-size: 9px;
  color: #a18e55;
}
.art-note strong {
  font-size: 22px;
  line-height: 1.3;
  display: block;
  margin-top: 16px;
  letter-spacing: -0.5px;
}
.art-note small {
  font-size: 7px;
  display: block;
  margin-top: 15px;
  color: #a18e55;
}
.art-circle {
  position: absolute;
  right: 8%;
  top: 4px;
  border-radius: 50%;
  background: #d2c1f4;
  color: #8972bd;
  width: 102px;
  height: 102px;
  display: grid;
  place-items: center;
  font-size: 78px;
  transform: rotate(14deg);
}
.art-tag {
  position: absolute;
  right: 4%;
  bottom: 15px;
  background: #8a73c8;
  color: white;
  transform: rotate(-5deg);
  font-size: 10px;
  padding: 10px 14px;
  border-radius: 6px;
}
.art-square {
  position: absolute;
  right: 7%;
  top: 120px;
  background: #d5e6dc;
  width: 72px;
  height: 65px;
  border-radius: 9px;
  transform: rotate(10deg);
  display: grid;
  place-items: center;
  font-family: Georgia;
  font-size: 28px;
  color: #73967f;
}
.art-line {
  position: absolute;
  bottom: -7px;
  left: 0;
  font-size: 100px;
  color: #a18ac6;
  transform: rotate(-20deg);
}
.boards-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 23px;
  gap: 16px;
}
.boards-heading h2 {
  font-size: 18px;
  margin: 0 0 7px;
}
.boards-heading h2 span {
  display: inline-block;
  font-size: 10px;
  color: #93909e;
  background: #eeedf3;
  border-radius: 5px;
  padding: 4px 7px;
  vertical-align: middle;
  margin-left: 6px;
}
.boards-heading p {
  margin: 0;
  color: #a09ca9;
  font-size: 11px;
}
.board-actions {
  display: flex;
  gap: 9px;
}
.board-actions input {
  width: 174px;
  font-size: 11px;
  padding: 10px 12px;
}
.board-actions button {
  font-size: 11px;
  padding: 10px 13px;
}
.board-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.board-card {
  border: 1px solid #e6e4ed;
  border-radius: 12px;
  overflow: hidden;
  text-align: left;
  background: white;
  padding: 0;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.board-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px #3b28500d;
}
.board-preview {
  height: 150px;
  background: #f2eff8;
  background-image: radial-gradient(#d4cbe6 1px, transparent 1px);
  background-size: 14px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
}
.mini-note {
  width: 65px;
  height: 65px;
  background: #ffedac;
  transform: rotate(-6deg);
  padding: 12px;
  font-size: 9px;
  line-height: 1.5;
  color: #89763b;
  box-shadow: 2px 4px 5px #0000000a;
}
.mini-note:nth-child(2) {
  background: #d6c9f2;
  transform: rotate(7deg);
  color: #81709d;
}
.board-preview .board-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 8px;
  background: #ffffffbc;
  padding: 5px 8px;
  border-radius: 5px;
  color: #978da6;
}
.board-info {
  padding: 17px 18px;
}
.board-info strong {
  display: block;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.board-info p {
  font-size: 10px;
  color: #aaa5b3;
  margin: 10px 0 0;
  display: flex;
  justify-content: space-between;
}
.new-card {
  border: 1px dashed #d8d1e6;
  background: #fbfafd;
  min-height: 229px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  border-radius: 12px;
  color: #9282ae;
}
.new-card .plus {
  font-size: 23px;
  background: #efebf7;
  border-radius: 12px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
}
.new-card strong {
  font-size: 12px;
}
.new-card small {
  font-size: 10px;
  color: #b2a9c1;
}
footer {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: #b4afbf;
  border-top: 1px solid var(--line);
  margin-top: 42px;
  padding-top: 20px;
}
.auth {
  display: flex;
  min-height: 100vh;
}
.auth-story {
  width: 53%;
  background: #eee8f8;
  padding: 43px 60px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.auth-story h1 {
  font-size: 56px;
  line-height: 1.12;
  letter-spacing: -2px;
  margin: 22px 0;
}
.auth-story h1 em {
  font-style: normal;
  color: #8b72c4;
}
.auth-story p {
  color: #9485aa;
  line-height: 1.8;
  font-size: 13px;
}
.auth-story > small {
  font-size: 10px;
  color: #a195b0;
}
.story-cards {
  display: flex;
  gap: 24px;
  margin: 28px 0;
}
.story-cards > div {
  background: #ffedaf;
  border-radius: 4px;
  width: 156px;
  height: 130px;
  padding: 22px;
  font-family: Georgia;
  font-size: 35px;
  transform: rotate(-5deg);
}
.story-cards > div:nth-child(2) {
  background: #d6e6dc;
  transform: rotate(5deg);
  color: #789380;
}
.story-cards small {
  font-family: Arial;
  font-size: 9px;
}
.auth-form {
  display: grid;
  place-items: center;
  width: 47%;
  padding: 40px;
}
.auth-form form {
  max-width: 340px;
  width: 100%;
}
.auth-form h2 {
  font-size: 30px;
  letter-spacing: -1px;
  margin: 15px 0;
}
.auth-form p {
  font-size: 12px;
  color: #96909f;
  line-height: 1.7;
}
.auth-form label {
  display: block;
  font-size: 12px;
  margin-top: 23px;
}
.auth-form input {
  display: block;
  width: 100%;
  margin-top: 10px;
}
.auth-form .primary {
  width: 100%;
  margin-top: 26px;
}
.auth-form small {
  font-size: 10px;
  line-height: 1.6;
  color: #aaa3b3;
}
.error {
  color: #c24154 !important;
}
#toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  background: #302a40;
  color: white;
  padding: 14px 22px;
  border-radius: 11px;
  z-index: 1000;
  box-shadow: 0 5px 25px #0002;
  display: none;
  max-width: 80%;
  line-height: 1.5;
}
.editor {
  position: fixed;
  inset: 0;
  background: #faf9fd;
}
.editor-header {
  height: 66px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 19px;
  background: white;
  border-bottom: 1px solid var(--line);
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
}
.editor-header input {
  border: 0;
  font-weight: 600;
  width: 210px;
  font-size: 13px;
}
.editor-header button {
  font-size: 11px;
}
.icon-btn {
  font-size: 22px !important;
}
.divider {
  height: 22px;
  border-left: 1px solid var(--line);
}
.save-status {
  font-size: 10px;
  color: #8c9c89;
}
.editor-header #presence {
  margin-left: auto;
  display: flex;
  gap: 4px;
}
.person {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: white;
  border-radius: 50%;
  font-size: 11px;
  border: 2px solid white;
}
.toolrail {
  position: absolute;
  z-index: 4;
  left: 18px;
  top: 95px;
  background: white;
  box-shadow: 0 3px 18px #30254412;
  border: 1px solid var(--line);
  padding: 6px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.toolrail button {
  font-size: 23px;
  width: 38px;
  height: 36px;
  border-radius: 7px;
}
.toolrail button.selected {
  color: var(--purple);
  background: #ede7fa;
}
.toolrail > div {
  border-top: 1px solid var(--line);
  margin: 4px;
}
.properties {
  position: absolute;
  right: 17px;
  top: 87px;
  width: 214px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 3px 18px #30254408;
  max-height: calc(100vh - 115px);
  overflow: auto;
}
.properties .eyebrow {
  font-size: 9px;
}
.properties p {
  font-size: 10px;
  color: #aaa2b4;
  margin-bottom: 17px;
}
.properties label {
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 11px 0;
  color: #8a809b;
}
.properties input,
.properties select {
  width: 95px;
  font-size: 10px;
  padding: 6px;
  border-radius: 5px;
}
.properties input[type="color"] {
  padding: 2px;
  width: 35px;
  height: 24px;
}
.properties .check {
  justify-content: flex-start;
  gap: 7px;
}
.properties input[type="checkbox"] {
  width: auto;
}
.prop-actions {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  display: grid;
  gap: 7px;
  margin: 15px 0;
}
.prop-actions button {
  font-size: 10px;
  padding: 9px;
}
.properties small {
  font-size: 9px;
  line-height: 1.8;
  color: #aaa1b5;
}
.danger {
  color: #bc6475;
}
#canvasWrap {
  position: absolute;
  top: 66px;
  bottom: 0;
  left: 0;
  right: 0;
  background-image: radial-gradient(#d9d3e4 0.8px, transparent 0.8px);
  background-size: 22px 22px;
}
#cursors {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.cursor {
  position: absolute;
  white-space: nowrap;
  pointer-events: none;
  transform: translate(-2px, -2px);
  line-height: 1;
}
.cursor svg {
  display: block;
  filter: drop-shadow(0 1px 1px #0002);
}
.cursor span {
  font-size: 9px;
  font-weight: 500;
  padding: 3px 5px;
  color: white;
  border-radius: 0 4px 4px 4px;
  position: absolute;
  top: 19px;
  left: 12px;
  line-height: 1.15;
  box-shadow: 0 1px 3px #0001;
}
.cursor.teacher-cursor span {
  font-size: 9px;
  padding: 3px 5px;
}
.zoom {
  position: absolute;
  left: 22px;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1px solid var(--line);
  padding: 7px;
  border-radius: 9px;
  box-shadow: 0 3px 12px #00000008;
}
.zoom button {
  font-size: 18px;
  width: 28px;
}
.zoom span {
  font-size: 10px;
  width: 40px;
  text-align: center;
}
.board-caption {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: #aaa1b7;
  font-size: 9px;
  letter-spacing: 1px;
}
.board-caption i {
  margin: 0 8px;
}
dialog {
  border: 1px solid #e5dfef;
  border-radius: 16px;
  padding: 30px;
  min-width: 360px;
  max-width: min(700px, 95vw);
  max-height: 90vh;
  box-shadow: 0 20px 100px #241b4430;
}
dialog::backdrop {
  background: #211b3c55;
  backdrop-filter: blur(3px);
}
.modal-close {
  position: absolute;
  right: 12px;
  top: 8px;
  font-size: 24px;
  color: #a396b5;
}
dialog h2 {
  font-size: 23px;
  letter-spacing: -0.5px;
  margin: 0 0 12px;
}
dialog p {
  font-size: 12px;
  line-height: 1.7;
  color: #94869f;
}
dialog label {
  font-size: 12px;
  display: block;
  margin: 15px 0;
}
dialog input,
dialog textarea,
dialog select {
  display: block;
  width: 100%;
  margin-top: 7px;
}
dialog .primary {
  margin-top: 10px;
}
dialog code {
  display: block;
  word-break: break-all;
  background: #f5f0fc;
  padding: 15px;
  font-size: 12px;
  border-radius: 8px;
}
dialog video {
  max-width: 100%;
  max-height: 55vh;
}
dialog audio {
  width: 100%;
}
.quiz-options {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}
.quiz-options button {
  text-align: left;
  border: 1px solid #e4dced;
  border-radius: 10px;
  padding: 15px;
  background: #faf8fd;
}
.quiz-options button.correct {
  background: #dcefe2;
  color: #318345;
}
.quiz-options button.wrong {
  background: #fbe2e4;
  color: #bd455a;
}
@media (min-width: 1500px) {
  .main-body {
    padding-top: 55px;
  }
  .hero-banner {
    min-height: 320px;
  }
  .hero-art {
    width: 45%;
  }
  .art-note {
    left: 22%;
  }
  .board-preview {
    height: 180px;
  }
}
@media (max-width: 1100px) {
  .sidebar {
    width: 205px;
    padding: 25px 15px;
  }
  .sidebar .brand {
    font-size: 20px;
  }
  .main {
    margin-left: 205px;
    width: calc(100% - 205px);
  }
  .main-body {
    padding: 30px 25px;
  }
  .dash-header {
    padding: 0 25px;
  }
  .board-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .boards-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .hero-art {
    width: 44%;
  }
  .art-note {
    left: 0;
    width: 155px;
    height: 190px;
  }
  .art-circle {
    width: 75px;
    height: 75px;
    font-size: 60px;
    right: -15%;
  }
  .art-square {
    right: -10%;
    width: 60px;
  }
  .auth-story {
    padding: 35px;
  }
  .auth-story h1 {
    font-size: 43px;
  }
  .editor-header input {
    width: 150px;
  }
  .save-status {
    display: none;
  }
  .properties {
    width: 185px;
  }
  .editor-header {
    gap: 7px;
  }
  .editor-header .secondary {
    padding: 9px;
  }
}
@media (max-width: 760px) {
  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    padding: 15px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
  }
  .sidebar .brand {
    font-size: 20px;
  }
  .sidebar .workspace {
    margin: 0;
    padding: 0;
    border: 0;
  }
  .sidebar .workspace small,
  .sidebar .nav-label,
  .sidebar > .nav,
  .sidebar-bottom {
    display: none;
  }
  .dashboard {
    flex-direction: column;
  }
  .main {
    margin: 0;
    width: 100%;
  }
  .dash-header {
    height: 50px;
    padding: 0 20px;
  }
  .server-status {
    display: none;
  }
  .main-body {
    padding: 28px 20px;
  }
  .greeting h1 {
    font-size: 25px;
  }
  .greeting h1 span {
    display: none;
  }
  .hero-banner {
    padding: 24px;
    min-height: 260px;
  }
  .hero-art {
    width: 35%;
    opacity: 0.7;
  }
  .art-note {
    left: 20px;
    top: 30px;
    width: 120px;
    height: 155px;
    padding: 13px;
  }
  .art-note strong {
    font-size: 17px;
  }
  .art-note small,
  .art-square,
  .art-tag {
    display: none;
  }
  .art-circle {
    width: 60px;
    height: 60px;
    font-size: 50px;
    right: -35px;
  }
  .art-line {
    font-size: 65px;
    left: 10px;
  }
  .hero-banner h2 {
    font-size: 25px;
  }
  .hero-banner p {
    font-size: 10px;
  }
  .boards-heading {
    gap: 18px;
  }
  .board-actions {
    width: 100%;
    flex-wrap: wrap;
  }
  .board-actions input {
    flex: 1;
    min-width: 120px;
  }
  .board-grid {
    gap: 12px;
  }
  .board-preview {
    height: 125px;
  }
  .board-info {
    padding: 13px;
  }
  .board-info strong {
    font-size: 11px;
  }
  .board-info p {
    font-size: 8px;
  }
  .new-card {
    min-height: 200px;
  }
  .new-card small {
    font-size: 8px;
  }
  footer span {
    display: none;
  }
  .auth-story {
    display: none;
  }
  .auth-form {
    width: 100%;
    min-height: 100vh;
    padding: 30px;
  }
  .properties {
    display: none;
  }
  .editor-header #presence,
  .editor-header .divider,
  .editor-header .brandmark {
    display: none;
  }
  .editor-header {
    height: 60px;
    padding: 0 9px;
    gap: 4px;
  }
  .editor-header input {
    width: 115px;
    font-size: 11px;
    padding: 5px;
  }
  .editor-header button {
    font-size: 9px;
    padding: 8px;
  }
  .editor-header #soundBtn {
    font-size: 0;
    padding: 5px;
  }
  .editor-header #soundBtn:first-letter {
    font-size: 18px;
  }
  #canvasWrap {
    top: 60px;
  }
  .toolrail {
    left: 9px;
    top: 77px;
  }
  .toolrail button {
    width: 32px;
    height: 32px;
    font-size: 21px;
  }
  .board-caption {
    display: none;
  }
  dialog {
    min-width: 0;
    width: 94vw;
    padding: 25px;
  }
  .mini-note {
    width: 50px;
    height: 55px;
    padding: 8px;
    font-size: 8px;
  }
}

.history-controls {
  position: absolute;
  left: 210px;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 4px;
  background: white;
  border: 1px solid var(--line);
  padding: 6px;
  border-radius: 9px;
  box-shadow: 0 3px 12px #00000008;
}
.history-controls button {
  width: 32px;
  height: 31px;
  font-size: 25px;
  border-radius: 6px;
  color: var(--purple);
}
.history-controls button:disabled {
  opacity: 0.28;
}
.history-controls button:enabled:hover {
  background: #ede7fa;
}
.history-busy #canvasWrap,
.history-busy .properties,
.history-busy .toolrail {
  pointer-events: none;
}

.save-preset {
  width: 100%;
  font-size: 10px;
  padding: 9px;
  margin: 0 0 17px;
  color: var(--purple);
}
.object-effects {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
  padding: 12px 0;
}
.object-effects summary {
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  list-style-position: inside;
}
.properties .effect-range {
  width: 100%;
  padding: 0;
  accent-color: var(--purple);
  margin: 0 0 4px;
  height: 16px;
}
.object-effects small {
  display: block;
  font-size: 8px;
  line-height: 1.4;
}
.object-effects input:disabled {
  opacity: 0.4;
}
.toolrail {
  max-height: calc(100vh - 175px);
  overflow-y: auto;
  scrollbar-width: thin;
}
dialog.library-modal {
  width: min(820px, 95vw);
  max-width: 820px;
}
.library-heading h2 span {
  font-size: 13px;
  background: #eee8f8;
  color: var(--purple);
  padding: 4px 8px;
  border-radius: 6px;
  vertical-align: middle;
}
.library-heading p {
  margin-bottom: 20px;
}
.library-toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
}
.library-toolbar input {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 12px;
}
.library-toolbar button {
  font-size: 11px;
}
.preset-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}
.preset-card {
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
  background: white;
  min-width: 0;
}
.preset-preview {
  height: 135px;
  background: #f6f3fb;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.preset-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.preset-preview > span {
  font-size: 50px;
  color: #c0b1dc;
}
.preset-body {
  padding: 13px;
}
.preset-body > strong {
  font-size: 12px;
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.preset-body > small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin: 8px 0 12px;
}
.preset-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}
.preset-actions .primary,
.preset-actions .secondary {
  font-size: 10px;
  padding: 9px 10px;
  margin: 0;
  flex: 1;
}
.preset-icon {
  font-size: 19px;
  width: 25px;
  height: 30px;
  color: #9688ab;
}
.library-empty {
  padding: 35px 10px;
  text-align: center;
}
#libraryMore {
  display: block;
  margin: 22px auto 0;
  font-size: 12px;
}
#libraryMore[hidden] {
  display: none;
}
@media (max-width: 650px) {
  .preset-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .preset-preview {
    height: 110px;
  }
  .preset-body {
    padding: 10px;
  }
  .preset-actions {
    gap: 3px;
  }
  .preset-actions .primary {
    padding: 8px;
    font-size: 9px;
  }
}

.toolrail .mobile-properties-toggle {
  display: none;
}
@media (max-width: 760px) {
  .toolrail .mobile-properties-toggle {
    display: block;
  }
  .properties.mobile-open {
    display: block;
    z-index: 5;
    width: 225px;
    top: 77px;
    right: 12px;
    max-height: calc(100vh - 100px);
  }
}

.editor-header .collaboration-settings-button {
  width: 34px;
  height: 34px;
  padding: 0;
  font-size: 18px;
  flex-shrink: 0;
  color: var(--purple);
}
.collaboration-options {
  margin: 20px 0;
}
.collaboration-options label {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin: 10px 0;
  cursor: pointer;
}
.collaboration-options input {
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  accent-color: var(--purple);
  flex-shrink: 0;
}
.collaboration-options strong {
  font-size: 12px;
  display: block;
  margin-bottom: 6px;
}
.collaboration-options small {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
  display: block;
}
.object-context-menu {
  position: fixed;
  z-index: 80;
  width: 244px;
  padding: 7px;
  background: white;
  border: 1px solid #e5dfef;
  border-radius: 11px;
  box-shadow: 0 10px 38px #30204426;
  max-height: calc(100vh - 16px);
  overflow-y: auto;
}
.object-context-menu[hidden] {
  display: none;
}
.object-context-menu button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  padding: 10px 11px;
  gap: 8px;
  font-size: 12px;
  border-radius: 6px;
}
.object-context-menu button small {
  font-size: 9px;
  color: #a89db7;
  white-space: nowrap;
}
.object-context-menu button:hover:not(:disabled),
.object-context-menu button:focus-visible {
  background: #f0eaf9;
  outline: none;
  color: var(--purple);
}
.object-context-menu button:disabled {
  opacity: 0.35;
}
.context-separator {
  height: 1px;
  background: var(--line);
  margin: 5px 4px;
}

.arrange-label {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin: 14px 0 8px;
}
.arrange-stack,
.arrange-align {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.arrange-align {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.arrange-section .secondary {
  font-size: 9px;
  padding: 9px 3px;
  white-space: nowrap;
}
.arrange-section select {
  width: 105px;
}
.arrange-section .arrange-distribute {
  margin: 9px 0;
}
.arrange-section > small {
  margin-top: 10px;
}
.context-submenu {
  z-index: 81;
  width: 235px;
}
