@import "@fontsource/inter/400.css";
@import "@fontsource/inter/500.css";
@import "@fontsource/inter/600.css";
@import "@fontsource/inter/700.css";
@import "@fontsource/outfit/600.css";
:root {
  font-family: Inter, Arial, sans-serif;
  color: #171c39;
  background: #f7f8fc;
  font-synthesis: none;
  --purple: #7540e8;
  --line: #e0e3ef;
  --muted: #777d94;
  --navy: #14254d;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  outline-offset: 3px;
}
button {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: white;
  color: inherit;
  border-radius: 7px;
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 600;
  transition: background 0.15s;
}
button:hover {
  background: #f0eaff;
  border-color: #cab6f6;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
button i {
  font-size: 19px;
}
a {
  color: var(--purple);
  text-decoration: none;
}
input,
select {
  border: 1px solid #d8dcea;
  background: #fff;
  border-radius: 7px;
  padding: 10px;
  color: #252b49;
  font-size: 12px;
  min-width: 0;
}
input[type="checkbox"] {
  accent-color: var(--purple);
  width: 16px;
  height: 16px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-family: Outfit, Inter, sans-serif;
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -0.7px;
  margin-bottom: 8px;
}
h2 {
  font-size: 15px;
  line-height: 1.5;
  margin-bottom: 8px;
}
h3 {
  font-size: 12px;
  margin: 18px 0 12px;
}
p {
  font-size: 12px;
  line-height: 1.7;
}
small {
  display: block;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #8b82a2;
}
.appbar {
  height: 70px;
  padding: 0 25px;
  display: flex;
  align-items: center;
  gap: 13px;
  color: #fff;
  background: linear-gradient(
    110deg,
    #6632c8,
    #7240d9 35%,
    #2763cb 80%,
    #1775cb
  );
}
.app-logo {
  color: #fff;
  font-size: 35px;
  display: flex;
}
.wordmark {
  font-family: Outfit, Inter, sans-serif;
  font-size: 24px;
  letter-spacing: -0.4px;
}
.wordmark small {
  font:
    10px Inter,
    sans-serif;
  letter-spacing: 0.1px;
  opacity: 0.8;
  margin-top: 4px;
}
.brand-divider {
  height: 32px;
  width: 1px;
  background: #ffffff45;
  margin: 0 8px;
}
.erp-brand {
  font-size: 12px;
}
.erp-brand small {
  font-size: 10px;
  opacity: 0.8;
  margin-top: 5px;
}
.app-spacer {
  flex: 1;
}
.appbar button {
  background: transparent;
  border-color: transparent;
  color: #fff;
}
.appbar .glass {
  border-color: #ffffff66;
  background: #ffffff16;
}
.appbar #save-state {
  font-size: 10px;
  opacity: 0.9;
}
.workspace-nav {
  height: 59px;
  display: flex;
  align-items: stretch;
  gap: 28px;
  padding: 0 26px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.workspace-nav button {
  border: 0;
  border-radius: 0;
  padding: 0 23px;
  position: relative;
  background: transparent;
  font-size: 12px;
}
.workspace-nav button i {
  font-size: 21px;
}
.workspace-nav button.active {
  color: var(--purple);
}
.workspace-nav button.active:after {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  content: "";
  height: 3px;
  background: var(--purple);
  border-radius: 4px;
}
.school-name {
  align-self: center;
  font-size: 11px;
  color: #777d94;
}
.library-layout {
  display: grid;
  grid-template-columns: 190px minmax(500px, 1fr) 286px;
  min-height: calc(100vh - 129px);
}
.library-nav {
  border-right: 1px solid var(--line);
  background: #fff;
  padding: 29px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.library-nav .eyebrow {
  padding: 0 12px;
  margin-bottom: 13px;
}
.library-nav button {
  border: 0;
  justify-content: flex-start;
  padding: 12px;
  gap: 12px;
  font-size: 11px;
  background: transparent;
  color: #606880;
}
.library-nav button.active {
  background: #eee7fb;
  color: #7137d4;
}
.side-divider {
  border-top: 1px solid #eff0f5;
  margin: 10px;
}
.sidebar-note {
  padding: 23px 14px;
  background: linear-gradient(145deg, #f4edff, #f7f8ff);
  border: 1px solid #ece3fb;
  border-radius: 9px;
  margin-top: 50px;
}
.sidebar-note > i {
  font-size: 26px;
  color: var(--purple);
}
.sidebar-note strong {
  display: block;
  font-family: Outfit, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  margin: 12px 0 6px;
}
.sidebar-note p {
  font-size: 10px;
  color: #898298;
  margin: 0;
}
.legacy-link {
  font-size: 10px;
  margin-top: auto;
  padding: 25px 10px 0;
}
.library-content {
  padding: 27px 25px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 23px;
  gap: 12px;
}
.section-heading .eyebrow {
  display: block;
  margin-bottom: 9px;
}
.section-heading p {
  color: #8a8ca0;
  margin: 0;
  font-size: 11px;
}
.outline {
  color: var(--purple);
  border-color: #cdb8f6;
  background: #fff;
}
.category-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding-bottom: 19px;
  border-bottom: 1px solid var(--line);
}
.category-row button {
  font-size: 10px;
  padding: 8px 10px;
  font-weight: 500;
}
.category-row button.active {
  background: var(--purple);
  color: white;
  border-color: var(--purple);
}
.category-row i {
  font-size: 15px;
}
.library-filters {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 18px 0;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  flex: 1;
  padding: 0 11px;
}
.search-box input {
  border: 0;
  width: 100%;
  font-size: 11px;
}
.search-box i {
  color: #8b85a0;
}
.library-filters select {
  font-size: 10px;
}
.library-filters > span {
  font-size: 10px;
  color: #8a8ca0;
  white-space: nowrap;
}
.template-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}
.template-card {
  border: 1px solid #dfe2ee;
  background: #fff;
  border-radius: 10px;
  padding: 9px;
  min-width: 0;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.template-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 9px 25px #30205010;
}
.thumbnail {
  position: relative;
  aspect-ratio: 1.43;
  background: #f1f3f8;
  overflow: hidden;
  border-radius: 5px;
  cursor: pointer;
  padding: 5px;
}
.thumbnail > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 3px #0001);
}
.status-pill {
  position: absolute;
  left: 9px;
  top: 9px;
  padding: 4px 8px;
  font-size: 8px;
  background: #e0f2e7;
  color: #247347;
  border: 1px solid #bde1cb;
  border-radius: 20px;
  z-index: 1;
}
.status-pill.draft {
  background: #fff0da;
  border-color: #f1d7b0;
  color: #a06e29;
}
.card-info {
  padding: 12px 4px 3px;
}
.card-name {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-bottom: 8px;
}
.card-name h2 {
  font-size: 11px;
  flex: 1;
  margin: 0;
  line-height: 1.4;
}
.card-name button {
  padding: 3px;
  border: 0;
  color: #8d90a2;
}
.card-name button i {
  font-size: 15px;
}
.card-meta {
  font-size: 9px;
  color: #8b8ea1;
  display: flex;
  gap: 5px;
  margin-bottom: 5px;
}
.card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  margin-top: 12px;
}
.primary {
  background: linear-gradient(110deg, #8650ee, #6d32dc);
  color: #fff;
  border-color: #7540e8;
}
.primary:hover {
  background: #6831cc;
  color: white;
}
.card-actions button {
  font-size: 9px;
  padding: 7px 12px;
}
.card-actions i {
  font-size: 12px;
}
.category-tag {
  padding: 5px 7px;
  border-radius: 4px;
  background: #f1ebfc;
  color: #8054c4;
  font-size: 8px;
}
.card-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding-top: 9px;
}
.card-menu button {
  font-size: 9px;
  padding: 5px;
}
.blank-thumbnail {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px dashed #c8b1ef;
  background: #fbf9ff;
  border-radius: 4px;
  color: var(--purple);
  gap: 10px;
}
.blank-thumbnail i {
  font-size: 29px;
}
.blank-thumbnail strong {
  font-size: 13px;
}
.blank-thumbnail span {
  font-size: 9px;
  color: #91849f;
}
.library-details {
  border-left: 1px solid var(--line);
  background: #fff;
  padding: 23px 16px;
}
.info-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  padding: 20px;
}
.library-details .info-card {
  margin-bottom: 17px;
  padding: 17px;
  background: linear-gradient(130deg, #fff, #faf9ff);
}
.card-title {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.card-title > i {
  font-size: 25px;
  color: var(--purple);
}
.card-title h2 {
  font-family: Outfit, sans-serif;
  font-size: 16px;
  line-height: 1.4;
}
.getting-started ol {
  padding: 0;
  list-style: none;
  counter-reset: steps;
}
.getting-started li {
  counter-increment: steps;
  position: relative;
  padding: 0 0 14px 32px;
}
.getting-started li:before {
  content: counter(steps);
  position: absolute;
  left: 0;
  top: 0;
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  background: #ede4fc;
  border-radius: 50%;
  color: #7d43dc;
  font-size: 10px;
  font-weight: 700;
}
.getting-started li:first-child:before {
  background: var(--purple);
  color: #fff;
}
.getting-started li strong {
  font-size: 10px;
}
.getting-started li p {
  font-size: 10px;
  color: #858396;
  line-height: 1.6;
  margin: 5px 0 0;
}
.tip {
  font-size: 8px;
  display: flex;
  gap: 6px;
  border-top: 1px solid var(--line);
  padding-top: 13px;
  color: #988ba9;
}
.brand-identity {
  display: flex;
  gap: 10px;
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 17px 0;
  font-size: 11px;
  font-weight: 600;
}
.brand-identity img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.brand-identity > i {
  font-size: 32px;
  color: #c69c42;
}
.swatches {
  display: flex;
  gap: 16px;
  margin-bottom: 15px;
}
.swatches span {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--swatch);
  box-shadow:
    0 0 0 3px white,
    0 0 0 4px #e8e8ef;
}
.brand-link {
  font-size: 10px;
  display: inline-flex;
  gap: 10px;
  margin-top: 10px;
}
.library-footnote {
  font-size: 9px;
  color: #a09aad;
  text-align: center;
  margin-top: 22px;
}
.editor-layout {
  height: calc(100vh - 129px);
  display: grid;
  grid-template-columns: 72px 220px minmax(200px, 1fr) 270px;
  grid-template-rows: 51px minmax(0, 1fr);
}
.formatbar {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 15px;
  background: white;
  border-bottom: 1px solid var(--line);
  overflow: auto;
}
.formatbar input,
.formatbar select {
  padding: 6px;
  font-size: 11px;
}
.formatbar #document-name {
  width: 190px;
  margin-right: 15px;
}
.formatbar #font-size {
  width: 50px;
}
.formatbar input[type="color"] {
  width: 30px;
  height: 29px;
  padding: 3px;
}
.formatbar button {
  padding: 6px;
  min-width: 29px;
  border: 0;
}
.divider {
  height: 20px;
  border-left: 1px solid var(--line);
  margin: 0 4px;
}
.tool-rail {
  background: #151d3b;
  padding: 12px 5px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: auto;
}
.tool-rail button {
  border: 0;
  background: transparent;
  color: #d7d9e9;
  flex-direction: column;
  padding: 13px 0;
  font-size: 8px;
  gap: 8px;
}
.tool-rail button.active {
  background: var(--purple);
  color: white;
}
.tool-rail i {
  font-size: 23px;
}
.tool-panel {
  background: white;
  border-right: 1px solid var(--line);
  padding: 19px 13px;
  overflow: auto;
  resize: horizontal;
  min-width: 170px;
  max-width: 360px;
}
.tool-panel h2 {
  font-size: 15px;
}
.tool-panel p {
  font-size: 10px;
  color: var(--muted);
}
.tool-panel button {
  width: 100%;
  justify-content: flex-start;
  margin: 4px 0;
  font-size: 11px;
}
.tool-panel input {
  width: 100%;
}
.field-token {
  display: flex !important;
  justify-content: space-between !important;
  font-size: 10px !important;
}
.field-token code {
  background: #eee3fd;
  color: #6c31bd;
  padding: 4px;
  border-radius: 4px;
  font-size: 10px;
}
.canvas-workspace {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background: #e9ecf3;
}
.ruler {
  height: 27px;
  overflow: hidden;
  white-space: nowrap;
  font-size: 9px;
  letter-spacing: 1px;
  padding: 7px 10px;
  border-bottom: 1px solid #cfd4e3;
  color: #8d94a8;
  background: linear-gradient(0deg, #f9faff, #f1f3f9);
}
#canvas-scroll {
  overflow: auto;
  flex: 1;
  display: flex;
  padding: 22px;
  min-height: 0;
}
#canvas-frame {
  margin: auto;
  flex-shrink: 0;
  box-shadow: 0 4px 18px #24305420;
  background: white;
}
.canvas-footer {
  height: 49px;
  background: #f7f8fc;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  flex-shrink: 0;
}
.canvas-footer button,
.canvas-footer select {
  padding: 6px;
  font-size: 10px;
}
#zoom-label {
  font-size: 10px;
  min-width: 33px;
  text-align: center;
}
.properties {
  background: #fff;
  border-left: 1px solid var(--line);
  overflow: auto;
  padding: 0 13px;
}
.property-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}
.property-tabs button {
  flex: 1;
  border: 0;
  border-radius: 0;
  padding: 14px 0;
  font-size: 10px;
}
.property-tabs button.active {
  color: var(--purple);
  border-bottom: 2px solid var(--purple);
}
#properties-content {
  padding: 15px 0;
}
.prop-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.prop-grid label,
.issue-settings label {
  display: grid;
  gap: 6px;
  font-size: 10px;
  margin-bottom: 11px;
}
.prop-grid input {
  width: 100%;
  padding: 8px;
}
.property-actions {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.property-actions button {
  font-size: 9px;
  padding: 6px;
}
.layer-row {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  padding: 6px;
  border-radius: 5px;
  margin-bottom: 5px;
  gap: 5px;
  font-size: 10px;
}
.layer-row.selected {
  background: #f0e6ff;
  border-color: #c4a5f2;
}
.layer-row span {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  cursor: pointer;
}
.layer-row button {
  padding: 2px;
  border: 0;
}
.layer-row i {
  font-size: 13px;
}
.assistant {
  border-top: 1px solid var(--line);
  padding: 3px 0 15px;
}
.assistant h3 {
  display: flex;
  gap: 5px;
  align-items: center;
}
.assistant h3 i {
  color: var(--purple);
  font-size: 18px;
}
.assistant h3 span {
  margin-left: auto;
  font-size: 7px;
  padding: 4px;
  background: #f2eafa;
  color: #9865cc;
}
.assistant p {
  font-size: 10px;
  color: var(--muted);
}
.assistant select,
.assistant > button {
  width: 100%;
  margin-bottom: 8px;
  font-size: 10px;
}
.data-layout {
  padding: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  max-width: 1100px;
  margin: auto;
}
#field-library {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin-top: 15px;
}
#field-library button {
  justify-content: space-between;
  font-size: 10px;
}
.preview-layout {
  display: grid;
  grid-template-columns: 290px minmax(300px, 1fr) 270px;
  gap: 15px;
  padding: 22px;
  height: calc(100vh - 129px);
}
.preview-layout .info-card {
  padding: 17px;
  overflow: auto;
}
.recipient-filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin: 15px 0;
}
.recipient-filters input:first-child {
  grid-column: 1/-1;
}
.recipient-filters button {
  grid-column: 1/-1;
}
.check-row {
  display: flex !important;
  align-items: center;
  gap: 8px !important;
  font-size: 10px !important;
}
.recipient-row {
  padding: 12px 4px;
  border-bottom: 1px solid #eeedf5;
  display: flex;
  gap: 8px;
  align-items: center;
  cursor: pointer;
}
.recipient-row strong {
  display: block;
  font-size: 10px;
}
.recipient-row small {
  font-size: 9px;
  color: #9392a5;
  margin-top: 5px;
}
.recipient-row.active {
  background: #f4edff;
}
.preview-center {
  display: flex;
  align-items: center;
  flex-direction: column;
  background: #e9ecf3;
  border-radius: 9px;
  border: 1px solid var(--line);
  min-width: 0;
  overflow: auto;
}
.preview-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 12px 15px;
  background: #f8f9fd;
  font-size: 10px;
}
.preview-toolbar button {
  padding: 5px 8px;
}
.preview-paper {
  padding: 20px;
  flex: 1;
  display: flex;
  align-items: center;
  width: 100%;
}
.preview-paper img {
  width: 100%;
  box-shadow: 0 6px 20px #18203a26;
  background: white;
}
.paper-label {
  font-size: 9px;
  padding: 7px 13px;
  margin: 0 0 16px;
  background: white;
  border-radius: 5px;
  color: #80839b;
}
.issue-settings label {
  margin: 15px 0;
}
.issue-settings button {
  width: 100%;
  margin-bottom: 8px;
  font-size: 10px;
}
.issue-settings h2 {
  display: flex;
  gap: 8px;
}
.issue-settings h2 i {
  font-size: 20px;
}
.issue-settings hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 20px 0;
}
.issue-settings p {
  font-size: 10px;
}
.validation-box {
  padding: 12px;
  background: #e7f4ec;
  color: #247347;
  border-radius: 6px;
  font-size: 10px;
  margin-top: 15px;
}
.validation-box.warning {
  background: #fff1da;
  color: #9b651e;
}
#issue-progress {
  font-size: 10px;
  line-height: 1.8;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: #22233b;
  color: white;
  padding: 13px 22px;
  border-radius: 9px;
  font-size: 12px;
  z-index: 20;
  display: none;
  box-shadow: 0 4px 24px #0003;
}
.focus-mode .tool-panel,
.focus-mode .properties,
.focus-mode .tool-rail {
  display: none;
}
.focus-mode {
  grid-template-columns: 1fr;
}
.focus-mode .canvas-workspace {
  grid-column: 1/-1;
}
[hidden] {
  display: none !important;
}
.empty-state {
  padding: 60px 20px;
  text-align: center;
  grid-column: 1/-1;
  color: var(--muted);
}
@media (min-width: 1600px) {
  .library-layout {
    grid-template-columns: 210px minmax(650px, 1fr) 320px;
  }
  .library-content {
    padding: 35px;
  }
  .template-grid {
    gap: 22px;
  }
  .card-name h2 {
    font-size: 13px;
  }
  .card-meta {
    font-size: 10px;
  }
  .card-actions button {
    font-size: 11px;
  }
  .thumbnail {
    aspect-ratio: 1.48;
  }
  .library-details {
    padding: 30px 20px;
  }
}
@media (max-width: 1200px) {
  .library-layout {
    grid-template-columns: 160px 1fr;
  }
  .library-details {
    display: none;
  }
  .workspace-nav {
    gap: 0;
  }
  .workspace-nav button {
    padding: 0 15px;
  }
  .school-name {
    display: none;
  }
  .editor-layout {
    grid-template-columns: 60px 180px 1fr 230px;
  }
  .preview-layout {
    grid-template-columns: 245px 1fr 230px;
    padding: 12px;
    gap: 10px;
  }
}
@media (max-width: 850px) {
  .appbar {
    padding: 0 12px;
    gap: 7px;
  }
  .erp-brand,
  .brand-divider,
  #save-state {
    display: none;
  }
  .wordmark {
    font-size: 20px;
  }
  .appbar button {
    font-size: 0;
  }
  .appbar button i {
    font-size: 19px;
  }
  .workspace-nav {
    padding: 0 5px;
    justify-content: space-around;
  }
  .workspace-nav button {
    font-size: 10px;
    padding: 0 8px;
    gap: 5px;
  }
  .workspace-nav button i {
    font-size: 17px;
  }
  .library-layout {
    grid-template-columns: 130px 1fr;
  }
  .library-content {
    padding: 18px 15px;
  }
  .template-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .section-heading h1 {
    font-size: 22px;
  }
  .section-heading > button {
    font-size: 0;
  }
  .library-filters {
    flex-wrap: wrap;
  }
  .library-filters > span {
    display: none;
  }
  .sidebar-note {
    display: none;
  }
  .library-nav {
    padding: 20px 5px;
  }
  .library-nav button {
    font-size: 10px;
    padding: 10px 6px;
  }
  .library-nav .eyebrow {
    font-size: 7px;
  }
  .editor-layout {
    grid-template-columns: 54px 160px minmax(150px, 1fr);
  }
  .properties {
    display: none;
  }
  .preview-layout {
    height: auto;
    grid-template-columns: 240px 1fr;
  }
  .issue-settings {
    grid-column: 1/-1;
  }
  .data-layout {
    grid-template-columns: 1fr;
  }
  .formatbar #document-name {
    width: 130px;
  }
  .preview-paper {
    padding: 10px;
  }
}
@media (max-width: 560px) {
  .library-layout {
    display: block;
  }
  .library-nav {
    flex-direction: row;
    overflow: auto;
    padding: 8px;
    border-bottom: 1px solid var(--line);
  }
  .library-nav .eyebrow,
  .library-nav .side-divider,
  .legacy-link {
    display: none;
  }
  .library-nav button {
    white-space: nowrap;
  }
  .template-grid {
    gap: 10px;
  }
  .card-name h2 {
    font-size: 10px;
  }
  .section-heading p {
    font-size: 10px;
  }
  .category-row {
    gap: 4px;
  }
  .category-row button {
    font-size: 9px;
  }
  .library-filters select {
    max-width: 110px;
  }
  .editor-layout {
    grid-template-columns: 50px minmax(150px, 1fr);
  }
  .tool-panel {
    display: none;
  }
  .preview-layout {
    display: flex;
    flex-direction: column;
  }
  .preview-center {
    min-height: 300px;
  }
  .wordmark small {
    font-size: 8px;
  }
  .workspace-nav button {
    font-size: 9px;
  }
  .workspace-nav button i {
    display: none;
  }
  .data-layout {
    padding: 15px;
  }
  #field-library {
    grid-template-columns: 1fr;
  }
}

body > .erp-breadcrumbs,
body > .erp-company-footer,
body > .erp-back-to-top,
body > .erp-school-frame {
  display: none !important;
}
.field-rules {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  padding: 4px 0 12px;
  grid-column: 1/-1;
  border-bottom: 1px solid #eeedf5;
  margin-bottom: 4px;
}
.field-rules label {
  font-size: 10px;
  display: flex;
  gap: 5px;
  align-items: center;
}
.field-rules input:not([type="checkbox"]) {
  width: 150px;
}
.field-rules select {
  font-size: 10px;
  padding: 7px;
}
.data-layout #field-library {
  grid-template-columns: 1fr;
}
.data-layout #field-library > button {
  background: #faf8ff;
}
body > .erp-backlink-row {
  display: none !important;
}
.editor-layout {
  grid-template-columns: 72px max-content minmax(200px, 1fr) 270px;
  position: relative;
}
.tool-panel {
  width: 220px;
}
.editor-layout.left-collapsed {
  grid-template-columns: 72px minmax(200px, 1fr) 270px;
}
.left-collapsed .tool-panel {
  display: none;
}
.editor-layout.show-properties .properties {
  display: block;
}
.editor-layout:not(.show-properties).right-collapsed .properties {
  display: none;
}
.editor-layout.focus-mode {
  grid-template-columns: 1fr;
}
.history-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 15px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.history-row small {
  font-size: 10px;
  margin-top: 6px;
  color: var(--muted);
}
dialog {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  width: min(700px, 94vw);
  max-height: 80vh;
}
dialog::backdrop {
  background: #17173066;
}
dialog h2 {
  margin: 0;
}
.editor-layout.show-properties .properties {
  display: block;
}
@media (max-width: 1200px) {
  .editor-layout {
    grid-template-columns: 60px max-content minmax(160px, 1fr) 230px;
  }
  .tool-panel {
    width: 180px;
  }
}
@media (max-width: 850px) {
  .editor-layout {
    grid-template-columns: 54px max-content minmax(150px, 1fr);
  }
  .tool-panel {
    width: 160px;
  }
  .editor-layout.show-properties .properties {
    position: absolute;
    right: 0;
    top: 51px;
    bottom: 0;
    width: 260px;
    z-index: 5;
    box-shadow: -5px 0 20px #0002;
  }
}
@media (max-width: 560px) {
  .editor-layout {
    grid-template-columns: 50px minmax(100px, 1fr);
  }
  .editor-layout.show-tools .tool-panel {
    display: block;
    position: absolute;
    left: 50px;
    top: 51px;
    bottom: 49px;
    z-index: 5;
    width: 220px;
    box-shadow: 5px 0 20px #0002;
  }
}
.branding-notice {
  display: block;
  border: 1px solid #e5d4ad;
  border-radius: 7px;
  background: #fff9e9;
  color: #8b691f;
  padding: 11px 13px;
  font-size: 11px;
  margin-bottom: 15px;
}
.editor-layout.right-collapsed {
  grid-template-columns: 72px max-content minmax(200px, 1fr);
}
.editor-layout.right-collapsed .properties {
  display: none !important;
}
.editor-layout.left-collapsed.right-collapsed {
  grid-template-columns: 72px minmax(200px, 1fr);
}
.card-actions {
  flex-wrap: wrap;
}
.card-actions button {
  font-size: 9px;
}
.library-filters {
  flex-wrap: wrap;
}
.library-filters .search-box {
  min-width: 180px;
}
.template-card .thumbnail {
  aspect-ratio: 1.5;
}
.template-card:has(.thumbnail img[src]) .thumbnail img {
  object-fit: contain;
}
.issue-settings {
  max-height: 100%;
}
.issue-settings #issue-progress {
  margin-top: 8px;
}
