/* Measured against MathNote 0.7.0 screenshots: 58px header, 54px commands, 132px page rail. */
:root {
  --ink: #263b43;
  --muted: #7a8d91;
  --line: #dfe7e5;
  --green: #177368;
  --paper: #fcfcf8;
  --soft: #f4f6f1;
  --active: #e3f1eb;
}
body {
  color: var(--ink);
  background: var(--paper);
  font-size: 14px;
}
button {
  border-radius: 7px;
  gap: 7px;
  min-height: 34px;
}
button:hover {
  background: #eef3ee;
}
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid #177368;
  outline-offset: 2px;
}
button[aria-pressed="true"],
button[aria-current="page"] {
  color: var(--green);
  background: var(--active);
}
.icon {
  width: 21px;
  height: 21px;
}
.app-header {
  height: 58px;
  min-height: 58px;
  padding: 7px 20px;
  gap: 22px;
  background: #fcfdf9;
  border-color: var(--line);
}
.brand {
  gap: 9px;
  flex: none;
}
.brand img {
  width: 32px;
  height: 32px;
}
.brand strong {
  font-size: 18px;
  letter-spacing: -0.4px;
}
.library-link {
  font-size: 13px;
  font-weight: 600;
  color: #166a64;
  gap: 9px;
  padding: 8px 12px;
  flex: none;
}
.document-title {
  border-left: 1px solid var(--line);
  padding-left: 22px;
  min-width: 0;
  gap: 3px;
}
.document-title > small {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.2px;
}
.document-title > div {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.document-title button {
  font-size: 14px;
  line-height: 19px;
  font-weight: 650;
  justify-content: flex-start;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-height: 20px;
  padding: 0;
  max-width: 340px;
  text-align: left;
}
.save-state {
  font-size: 10px;
  white-space: nowrap;
  color: var(--muted);
  margin: 0;
}
.save-state:before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #88b6a1;
  margin-right: 5px;
}
.save-state[data-dirty="true"]:before {
  background: #bf9a50;
}
.header-actions {
  gap: 7px;
  flex: none;
}
.header-actions button {
  min-height: 36px;
  font-size: 12px;
  gap: 8px;
  padding: 7px 12px;
}
.header-actions [data-action="save"] {
  padding: 8px 14px;
  background: var(--green);
}
.header-actions [data-action="export-pdf"] {
  border: 1px solid var(--line);
  background: #fff;
}
.main-toolbar {
  height: 54px;
  min-height: 54px;
  padding: 6px 20px;
  gap: 10px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.main-toolbar button {
  height: 36px;
  min-height: 36px;
  width: 36px;
  padding: 7px;
}
.main-toolbar .history-tools {
  gap: 4px;
  border-right: 1px solid var(--line);
  padding-right: 10px;
}
.history-tools button span {
  display: none;
}
.history-tools [data-action="toggle-pages"][aria-pressed="true"] {
  background: transparent;
  color: #61766f;
}
.primary-tools {
  gap: 4px;
}
.main-toolbar .primary-tools button {
  width: auto;
  padding: 7px 10px;
  border: 1px solid transparent;
}
.main-toolbar .primary-tools button span {
  display: inline;
  font-size: 12px;
}
.main-toolbar .primary-tools button[aria-pressed="true"] {
  border-color: #badccf;
  background: #e6f3ed;
}
.main-toolbar .pinned-tools {
  border: 0;
  padding: 0;
  gap: 2px;
  max-width: 180px;
  overflow-x: auto;
  scrollbar-width: none;
}
.pinned-tools button span {
  display: none;
}
.toolbar-spacer {
  flex: 1;
  min-width: 4px;
}
.main-toolbar .ink-controls {
  margin: 0;
  gap: 10px;
  border-left: 1px solid var(--line);
  padding-left: 12px;
}
.main-toolbar .color-preset {
  width: 13px;
  height: 13px;
  min-height: 13px;
  padding: 0;
  position: relative;
  background: var(--swatch);
  border-radius: 50%;
  border: 1px solid #00000008;
}
.color-preset[aria-pressed="true"]:after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid #98b2a8;
  border-radius: 50%;
}
.main-toolbar .stroke-chip {
  width: auto;
  gap: 6px;
  border: 1px solid #e6ebe3;
  background: #f7f9f4;
  padding: 7px 9px;
  margin-left: 5px;
}
.main-toolbar .stroke-chip span {
  display: inline;
  font-size: 12px;
  white-space: nowrap;
  color: #6d817f;
}
.stroke-chip i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #d8e1d8;
}
.stroke-chip > .icon {
  width: 12px;
  height: 12px;
}
.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: none;
}
.main-toolbar .toolbar-actions button {
  width: auto;
  font-size: 12px;
  padding: 7px 8px;
}
.main-toolbar .toolbar-actions button span {
  display: inline;
}
.main-toolbar [data-action="tools"] {
  background: transparent;
  margin: 0;
  font-size: 12px;
  gap: 7px;
}
.main-toolbar [data-action="more"] {
  width: 30px;
  padding: 4px;
}
.main-toolbar [data-action="more"] span {
  display: none;
}
.main-toolbar .toolbar-actions [data-action="more"] {
  width: 30px;
  padding: 4px;
}
.main-toolbar .toolbar-actions [data-action="more"] span {
  display: none;
}
.page-counter {
  font-size: 11px;
  color: #4d6470;
  border-left: 1px solid var(--line);
  padding: 0 9px;
  white-space: nowrap;
}
.zoom-chip {
  color: #4d6470;
}
.workspace {
  background: var(--paper);
  min-width: 0;
}
.page-rail {
  width: 132px;
  flex: none;
  padding: 18px 10px 14px;
  background: #f4f6f1;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: auto;
}
.page-rail[hidden] {
  display: none;
}
.rail-heading {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #738987;
  padding: 0 6px;
  margin-bottom: 4px;
}
.rail-add {
  border: 1px solid #cfe0d9;
  background: #fff;
  width: 100%;
  color: #3c7475;
  font-size: 12px;
  min-height: 30px;
}
.page-thumbnails {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.page-thumbnail {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 1px;
  background: transparent !important;
  color: #6c8384;
  font-size: 11px;
}
.thumbnail-paper {
  display: block;
  width: 100%;
  border: 1px solid #dce5dc;
  border-radius: 3px;
  background: var(--paper);
  overflow: hidden;
  box-shadow: 0 1px 3px #263b4305;
}
.thumbnail-paper svg {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}
.page-thumbnail[aria-current="page"] .thumbnail-paper {
  outline: 2px solid var(--green);
  outline-offset: -1px;
  border-color: var(--green);
}
.page-thumbnail[aria-current="page"] {
  color: var(--green);
}
.rail-page-actions {
  display: flex;
  gap: 4px;
  flex: none;
}
.rail-page-actions button {
  border: 1px solid #e4e9e3;
  background: #fafbf7;
  min-width: 0;
  width: 34px;
  height: 30px;
  padding: 6px;
  min-height: 30px;
}
.rail-page-actions span {
  display: none;
}
.rail-page-actions .icon {
  width: 16px;
  height: 16px;
}
.paper-scroll {
  background: var(--paper);
  scrollbar-gutter: auto;
  min-width: 0;
  overflow-y: scroll;
}
.workspace[data-fit="true"] .paper-scroll {
  overflow-x: hidden;
}
.pages {
  padding: 0 0 35px;
  align-items: center;
  gap: 22px;
  min-width: 100%;
  width: max-content;
  background: var(--paper);
}
.page-frame {
  margin: 0;
  box-shadow: none;
  background: var(--paper);
  border-bottom: 1px solid #e6ebe5;
}
.pinned-tools [draggable="true"] {
  cursor: grab;
}
.pinned-tools [data-dragging="true"] {
  opacity: 0.35;
}
.pinned-tools [data-drop-before="true"] {
  box-shadow: inset 3px 0 var(--green);
}
.toolbar-order [draggable="true"] {
  cursor: grab;
}
.toolbar-order [data-drop-before="true"] {
  border-top: 3px solid var(--green);
}
.pinned-tools [data-drop-after="true"] {
  box-shadow: inset -3px 0 var(--green);
}
.toolbar-order [data-drop-after="true"] {
  border-bottom: 3px solid var(--green);
}
.page-number {
  display: none;
}
.add-page {
  align-self: center;
  font-size: 12px;
}
.section-tabs {
  display: flex;
  align-items: stretch;
  height: 34px;
  flex: none;
  background: #f8faf5;
  border-top: 1px solid var(--line);
  padding: 0 16px;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.section-tabs button {
  height: 33px;
  min-height: 33px;
  font-size: 11px;
  padding: 5px 15px;
  border-radius: 0;
  border-top: 2px solid transparent;
  white-space: nowrap;
}
.section-tabs button[aria-current="page"] {
  border-top-color: var(--green);
  background: #e8f1e9;
  color: var(--green);
  font-weight: 600;
}
.section-tabs [data-action="section"] {
  padding: 4px 9px;
  color: #69847f;
  background: #f0f3ee;
}
.section-tabs .icon {
  width: 17px;
  height: 17px;
}
.statusbar {
  height: 31px;
  min-height: 31px;
  background: #fafbf6;
  padding: 0 16px;
  font-size: 10px;
  border-top: 1px solid var(--line);
  gap: 10px;
}
.tool-status {
  color: #7c8e8f;
  display: flex;
  align-items: center;
  gap: 9px;
}
.tool-status > i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  flex: none;
}
.statusbar > div {
  gap: 12px;
  color: #7d8f91;
  font-size: 10px;
}
.statusbar button {
  font-size: 10px;
  min-height: 22px;
  padding: 2px 0;
}
.statusbar .license-status {
  color: #729c88;
}
.preview-label {
  font-size: 9px;
  letter-spacing: 0.6px;
  color: #98a69f;
}
.reference-pane {
  background: var(--paper);
}
dialog {
  border-radius: 14px;
  border-color: var(--line);
  color: var(--ink);
  box-shadow: 0 18px 55px #173c352b;
}
dialog header {
  padding: 18px 22px;
  background: #f2f7f4;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
dialog h2 {
  font-size: 18px;
  letter-spacing: 0;
  font-weight: 650;
}
dialog header .eyebrow {
  display: none;
}
dialog header button {
  margin: 0;
  padding: 5px;
  min-height: 28px;
}
.dialog-body {
  padding: 22px;
}
.dialog-body .intro {
  color: #70867e;
  font-size: 13px;
  line-height: 1.7;
}
dialog footer {
  padding: 12px 22px;
  background: #fff;
  border-top: 1px solid var(--line);
}
dialog footer > button:not(.primary) {
  border: 1px solid #d7e0e5;
  background: #fff;
}
dialog::backdrop {
  background: #183e374a;
  backdrop-filter: blur(3px);
}
.primary {
  background: var(--green);
  border-radius: 6px;
  font-size: 13px;
}
.field > span {
  font-size: 12px;
  color: #4f7069;
}
.field {
  gap: 7px;
}
input:not([type="range"]):not([type="color"]),
textarea,
select {
  border-color: #d1ded9;
  border-radius: 7px;
  font-size: 13px;
  min-height: 36px;
  padding: 9px 10px;
  color: #344c50;
}
.tool-drawer {
  position: fixed;
  top: 122px;
  right: 12px;
  left: auto;
  bottom: auto;
  margin: 0;
  width: 440px;
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - 180px);
  border-radius: 12px;
}
.tool-drawer > form {
  max-height: calc(100vh - 182px);
}
.tool-drawer::backdrop {
  background: transparent;
  backdrop-filter: none;
}
.tool-drawer header {
  background: #fff;
  border: 0;
  padding: 18px 17px 8px;
}
.tool-drawer .dialog-body {
  padding: 10px 17px 16px;
}
.tool-drawer footer {
  display: none;
}
.tool-drawer .catalog-search {
  background: #fafcf7;
  margin: 0 0 12px;
  min-height: 37px;
}
.tool-group {
  margin-bottom: 12px;
}
.tool-group h3 {
  font-size: 11px;
  font-weight: 600;
  color: #738b81;
  margin: 0 0 7px;
}
.tool-group-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.tool-tile {
  display: flex;
  align-items: center;
  border: 1px solid #e4ebdf;
  background: #fafcf7;
  border-radius: 7px;
  min-width: 0;
  min-height: 40px;
}
.tool-tile > button:first-child {
  flex: 1;
  min-width: 0;
  justify-content: flex-start;
  text-align: left;
  padding: 8px;
  font-size: 12px;
  color: #647d74;
  gap: 7px;
}
.tool-tile .icon {
  width: 19px;
  height: 19px;
  flex: none;
}
.tool-tile > button:first-child span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tool-tile > button[data-pin] {
  width: 25px;
  min-width: 25px;
  height: 29px;
  min-height: 29px;
  padding: 5px;
  margin-right: 3px;
  opacity: 0;
}
.tool-tile:hover > button[data-pin],
.tool-tile:focus-within > button[data-pin],
.tool-tile > button[data-pin][aria-pressed="true"] {
  opacity: 1;
}
.tool-tile > button[data-pin] .icon {
  width: 14px;
  height: 14px;
}
.drawer-hint {
  color: #899d90;
  line-height: 1.7;
  font-size: 10px;
  margin: 14px 0 10px;
}
.customize-tools {
  width: 100%;
  justify-content: flex-start;
  border-top: 1px solid #e9ede6;
  border-radius: 0;
  font-size: 12px;
  color: #6f867b;
  padding: 12px 6px 0;
}
.customize-tools .icon {
  width: 19px;
  height: 19px;
}
.ink-popover {
  width: 310px;
  right: 270px;
}
.ink-popover .ink-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ink-form label {
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.ink-form input[type="color"] {
  width: 50px;
  height: 32px;
  border: 1px solid #dce5df;
  background: #fff;
  padding: 3px;
  border-radius: 5px;
}
.ink-form input[type="range"] {
  accent-color: var(--green);
  flex: 1;
}
.ink-form output {
  font-size: 11px;
  min-width: 45px;
  text-align: right;
}
.ink-sample {
  background: var(--paper);
  border: 1px solid #e6ece3;
  border-radius: 8px;
  width: 100%;
  height: 60px;
}
.studio-dialog {
  width: min(1120px, calc(100vw - 40px));
}
.studio-lead {
  margin-bottom: 22px;
}
.studio-lead > small {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.1px;
  color: #608c7c;
}
.studio-lead h3 {
  margin: 7px 0 9px;
  font-size: 21px;
  line-height: 1.4;
  letter-spacing: -0.3px;
  color: #2c554a;
}
.studio-lead p {
  font-size: 13px;
  line-height: 1.7;
  color: #82968c;
  margin: 0;
}
.studio-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 22px;
  align-items: start;
}
.studio-controls,
.studio-preview {
  min-width: 0;
}
.studio-preview {
  border: 1px solid #dfe9e3;
  border-radius: 11px;
  background: #f7faf6;
  padding: 16px;
  position: sticky;
  top: 0;
}
.studio-preview h4 {
  font-size: 13px;
  color: #335e50;
  margin: 0 0 14px;
}
.studio-preview .graph-preview,
.studio-preview .space-preview {
  width: 100%;
  max-height: 440px;
  background: #fff;
  margin: 0;
  border-radius: 7px;
}
.studio-preview p {
  color: #87988f;
  font-size: 11px;
  line-height: 1.8;
  margin: 12px 0 0;
}
.studio-tabs {
  display: flex;
  gap: 4px;
  background: #edf4ee;
  border: 1px solid #dfe8df;
  border-radius: 8px;
  padding: 4px;
  margin-bottom: 18px;
}
.studio-tabs button {
  flex: 1;
  font-size: 12px;
  min-height: 32px;
  border: 1px solid transparent;
  border-radius: 5px;
  color: #7e9386;
}
.studio-tabs button[aria-selected="true"] {
  background: #fff;
  color: #206f5a;
  border-color: #cedadf;
  font-weight: 600;
  box-shadow: 0 1px 3px #2c504610;
}
.studio-controls details {
  border: 1px solid #e0e8e6;
  border-radius: 8px;
  background: #f6f9fa;
  padding: 0 10px;
  margin: 16px 0;
}
.studio-controls details p {
  color: #7c8c87;
  font-size: 11px;
  line-height: 1.8;
}
.studio-controls [hidden] {
  display: none;
}
.studio-label {
  font-size: 13px;
  font-weight: 600;
  color: #375e50;
  margin: 0 0 13px;
}
#toast {
  bottom: 75px;
  left: auto;
  right: 18px;
  transform: translateY(10px);
  border-radius: 8px;
  max-width: 450px;
  background: #173f37;
  font-size: 11px;
  padding: 10px 14px;
}
#toast.visible {
  transform: translateY(0);
}
@media (max-width: 1200px) {
  .main-toolbar {
    gap: 6px;
    padding: 6px 14px;
  }
  .main-toolbar .primary-tools button {
    padding: 7px;
    width: 36px;
  }
  .main-toolbar .primary-tools button span {
    display: none;
  }
  .main-toolbar .pinned-tools {
    max-width: 112px;
  }
  .library-link {
    padding: 6px;
  }
  .app-header {
    gap: 16px;
    padding: 7px 15px;
  }
  .document-title {
    padding-left: 16px;
  }
  .document-title button {
    max-width: 250px;
  }
  .header-actions button {
    padding: 7px 9px;
  }
}
@media (max-width: 1000px) {
  .main-toolbar .toolbar-actions [data-action="pages"] span {
    display: none;
  }
  .main-toolbar .pinned-tools {
    max-width: 78px;
  }
  .app-header {
    gap: 12px;
  }
  .library-link span {
    display: none;
  }
  .save-state {
    display: none;
  }
  .main-toolbar .ink-controls {
    gap: 9px;
    padding-left: 10px;
  }
  .studio-layout {
    gap: 15px;
  }
  .studio-dialog {
    width: calc(100vw - 32px);
  }
  .document-title button {
    max-width: 210px;
  }
}
@media (max-width: 900px) {
  .page-rail {
    width: 114px;
    padding: 18px 10px 12px;
  }
  .rail-page-actions {
    gap: 3px;
  }
  .rail-page-actions button {
    width: 29px;
  }
  .main-toolbar {
    gap: 4px;
    padding: 6px 12px;
  }
  .main-toolbar .history-tools {
    padding-right: 5px;
    gap: 1px;
  }
  .main-toolbar .pinned-tools {
    max-width: 36px;
    padding: 0;
  }
  .main-toolbar .ink-controls {
    gap: 9px;
  }
  .main-toolbar .stroke-chip {
    padding: 7px;
    margin-left: 2px;
  }
  .main-toolbar .toolbar-actions button {
    padding: 6px;
  }
  .page-counter {
    padding: 0 6px;
  }
  .header-actions button span {
    display: none;
  }
  .header-actions button {
    width: 35px;
    padding: 6px;
  }
  .header-actions [data-action="save"] {
    padding: 7px;
  }
  .header-actions {
    gap: 4px;
  }
  .document-title {
    padding-left: 13px;
  }
  .document-title button {
    max-width: 230px;
  }
  .app-header {
    gap: 14px;
  }
  .reference-pane {
    min-width: 200px;
  }
  .tool-drawer {
    right: 10px;
    max-height: calc(100vh - 150px);
  }
  .tool-drawer > form {
    max-height: calc(100vh - 152px);
  }
  .ink-popover {
    right: 130px;
  }
  .section-tabs {
    padding-left: 12px;
  }
  .statusbar {
    padding: 0 12px;
  }
  .studio-lead h3 {
    font-size: 18px;
  }
  .studio-layout {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .studio-preview {
    padding: 12px;
  }
  .studio-dialog .dialog-body {
    padding: 18px;
  }
  .studio-controls .form-grid {
    gap: 0 10px;
  }
}
.variation-manual[hidden],
.variation-auto[hidden] {
  display: none;
}
.field-help {
  color: #75857d;
  font-size: 12px;
  line-height: 1.6;
  margin: 8px 0 16px;
}
.variation-milestone {
  border: 1px solid #d9e5dd;
  background: #fafcf8;
  border-radius: 9px;
  padding: 12px;
  margin: 0 0 12px;
}
.variation-milestone legend {
  font-size: 11px;
  font-weight: 650;
  color: #567869;
  padding: 0 5px;
}
.variation-marker-heading {
  display: flex;
  gap: 8px;
  align-items: center;
}
.variation-marker-heading .field {
  flex: 1;
  min-width: 0;
}
.variation-marker-heading button {
  border: 1px solid #e5d7cf;
  color: #975e4c;
  min-width: 28px;
  min-height: 28px;
  padding: 3px;
  margin-top: 3px;
}
.variation-milestone label.variation-excluded {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 11px;
  color: #75867b;
  margin-bottom: 12px;
}
.variation-milestone .variation-excluded input[type="checkbox"] {
  min-height: 0 !important;
  width: 16px;
  height: 16px;
  flex: none;
}
.variation-milestone .field {
  margin-bottom: 8px;
}
@media print {
  .page-rail,
  .section-tabs {
    display: none !important;
  }
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.library-dialog {
  position: fixed;
  inset: 0;
  margin: 0;
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: #fafbf7;
}
.library-dialog > form {
  height: 100%;
  max-height: none;
}
.library-dialog header {
  height: 70px;
  min-height: 70px;
  padding: 15px 20px;
  justify-content: flex-start;
  gap: 18px;
  background: #fff;
}
.library-dialog header h2 {
  font-size: 16px;
}
.library-dialog header button {
  border: 1px solid var(--line);
  font-size: 12px;
  padding: 7px 10px;
  background: #fff;
}
.library-dialog header button .icon {
  width: 13px;
  transform: rotate(180deg);
}
.library-dialog .dialog-body {
  padding: 0;
  position: static;
  overflow: hidden;
  display: flex;
}
.library-dialog footer {
  display: none;
}
.library-search {
  position: absolute;
  top: 17px;
  right: 28px;
  width: 290px;
}
.library-search input {
  background: #f3f6ef !important;
  min-height: 36px !important;
}
.library-layout {
  display: flex;
  width: 100%;
  min-height: 0;
}
.library-sidebar {
  width: 226px;
  flex: none;
  background: #173b3d;
  color: #b6d2c6;
  padding: 26px 16px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.library-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 10px 4px;
  color: white;
}
.library-brand strong {
  font-size: 21px;
  letter-spacing: -0.5px;
}
.library-sidebar > small {
  margin: 0 0 24px 54px;
  font-size: 10px;
  color: #93b5a5;
}
.library-sidebar > button {
  width: 100%;
  justify-content: flex-start;
  gap: 11px;
  text-align: left;
  font-size: 12px;
  min-height: 40px;
  padding: 10px 12px;
}
.library-sidebar .library-all {
  background: #2c5753;
  color: #d5e8da;
  border-left: 2px solid #a0cdb5;
  font-weight: 600;
}
.library-all span {
  margin-left: auto;
  font-size: 10px;
  background: #ffffff12;
  border-radius: 3px;
  padding: 1px 5px;
}
.library-sidebar > button:hover {
  background: #ffffff12;
}
.library-version {
  margin-top: auto;
  color: #89a59c;
  font-size: 10px;
  padding: 10px;
}
.library-content {
  flex: 1;
  min-width: 0;
  overflow: auto;
  padding: 32px 38px;
}
.library-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 29px;
}
.library-hero .eyebrow {
  font-size: 10px;
  letter-spacing: 1.3px;
  color: #3e7c6c;
  margin: 0 0 13px;
}
.library-hero h3 {
  font-size: 27px;
  letter-spacing: -0.6px;
  line-height: 1.4;
  font-weight: 650;
  margin: 0 0 9px;
  color: #25494b;
}
.library-hero p:not(.eyebrow) {
  font-size: 12px;
  line-height: 1.8;
  color: #809396;
  margin: 0;
}
.library-hero > .primary {
  min-height: 40px;
  font-size: 13px;
  flex: none;
  gap: 8px;
  padding: 9px 16px;
}
.library-section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}
.library-section-title h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 650;
  display: flex;
  gap: 10px;
  align-items: center;
}
.library-section-title h3 small {
  font-size: 10px;
  font-weight: 400;
  background: #eef3e9;
  color: #829b8c;
  border-radius: 4px;
  padding: 4px 7px;
}
.library-section-title > span {
  font-size: 11px;
  color: #829396;
}
.library-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 175px));
  gap: 23px 20px;
  align-items: start;
}
.library-list > button {
  padding: 0;
  border: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  width: 100%;
  text-align: left;
  border-radius: 8px;
}
.book-card:hover {
  background: transparent;
}
.book-cover {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 12px 12px 17px;
  height: 205px;
  background: #fcfdf8;
  border: 1px solid #dbe5d6;
  border-left: 9px solid var(--book-color);
  border-radius: 6px;
  box-shadow: 0 2px 8px #3b534407;
  overflow: hidden;
  margin-bottom: 12px;
}
.book-cover > small {
  font-size: 7px;
  letter-spacing: 0.4px;
  color: #839a84;
}
.book-cover > b {
  font-size: 8px;
  line-height: 1.6;
  font-weight: 500;
  color: #536f67;
  overflow-wrap: anywhere;
  max-height: 50px;
  overflow: hidden;
}
.book-cover:after {
  content: "";
  height: 80px;
  margin-top: 5px;
  background: repeating-linear-gradient(
    transparent 0px,
    transparent 15px,
    #e5ebe022 15px,
    #e5ebe022 16px
  );
}
.book-cover em {
  position: absolute;
  top: 9px;
  right: 8px;
  font-size: 9px;
  font-style: normal;
  background: #e8f3e4;
  color: #448963;
  border: 1px solid #d0e3c7;
  border-radius: 4px;
  padding: 3px 5px;
}
.book-card > strong {
  font-size: 12px;
  font-weight: 650;
  color: #29494d;
  line-height: 1.6;
  margin-bottom: 5px;
  overflow-wrap: anywhere;
}
.book-card > small {
  font-size: 10px;
  color: #869a9a;
}
.library-list > .new-book > span {
  height: 205px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed #dbe4d4;
  background: #f6f8f0;
  border-radius: 5px;
  margin-bottom: 12px;
}
.new-book > span > .icon {
  width: 28px;
  height: 28px;
  color: #afc6b1;
}
.new-book > strong {
  text-align: center;
  color: #9cad9f;
  font-size: 12px;
  font-weight: 400;
}
.library-list > .empty-state {
  grid-column: 1/-1;
}
.library-dialog .form-error {
  display: none;
}
@media (max-width: 1000px) {
  .library-content {
    padding: 28px;
  }
  .library-hero h3 {
    font-size: 23px;
  }
  .library-sidebar {
    width: 200px;
  }
  .library-search {
    width: 260px;
  }
  .library-hero {
    align-items: flex-start;
  }
  .library-hero > .primary {
    padding: 8px 12px;
  }
}
@media (max-width: 900px) {
  .library-sidebar {
    width: 175px;
    padding: 24px 12px;
  }
  .library-brand {
    gap: 7px;
    margin-left: 4px;
  }
  .library-brand strong {
    font-size: 18px;
  }
  .library-brand img {
    width: 30px;
    height: 30px;
  }
  .library-sidebar > small {
    margin-left: 41px;
    font-size: 9px;
  }
  .library-sidebar > button {
    font-size: 11px;
    padding: 9px;
  }
  .library-content {
    padding: 26px 23px;
  }
  .library-hero {
    gap: 14px;
    flex-wrap: wrap;
    padding-bottom: 22px;
    margin-bottom: 24px;
  }
  .library-hero h3 {
    font-size: 23px;
  }
  .library-search {
    width: 250px;
    right: 20px;
  }
  .library-list {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px 17px;
  }
  .book-cover,
  .library-list > .new-book > span {
    height: 185px;
  }
}
