.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
}
.sidebar {
  background: var(--navy);
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 28px 18px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #fff;
  text-decoration: none;
  padding: 0 12px;
  margin-bottom: 40px;
}
.brand-symbol {
  background: #234861;
  border: 1px solid #456779;
  color: #79deed;
  width: 40px;
  height: 42px;
  border-radius: 11px;
  display: grid;
  place-items: center;
}
.brand-symbol .icon {
  width: 26px;
  height: 26px;
}
.brand strong {
  font-size: 22px;
  letter-spacing: -0.6px;
}
.brand small {
  display: block;
  color: #b4c8d9;
  font-size: 10px;
  letter-spacing: 2.1px;
}
.sidebar .eyebrow {
  color: #94adc1;
  margin: 0 14px 13px;
  font-size: 10px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #d0ddea;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 5px;
}
.nav-link:hover {
  background: #ffffff0a;
}
.nav-link.active {
  background: #244966;
  color: white;
  box-shadow: inset 3px 0 #6be0ef;
}
.nav-count {
  margin-left: auto;
  font-size: 11px;
  background: #ffffff15;
  padding: 0 7px;
  border-radius: 4px;
}
.sidebar-bottom {
  margin-top: auto;
}
.local-note {
  margin: 30px 12px 22px;
  padding: 14px;
  border: 1px solid #38556c;
  border-radius: 10px;
  color: #b4c8d9;
  font-size: 12px;
  line-height: 1.6;
}
.local-note strong {
  color: #dceef6;
  display: block;
  margin-bottom: 4px;
}
.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 12px 0;
  border-top: 1px solid #35506a;
  font-size: 13px;
}
.avatar {
  border-radius: 50%;
  width: 36px;
  height: 36px;
  background: #335670;
  display: grid;
  place-items: center;
  color: #a9e6ee;
  font-size: 12px;
  font-weight: 700;
}
.profile small {
  display: block;
  color: #a9bed1;
  font-size: 11px;
}
.workspace {
  min-width: 0;
}
.topbar {
  height: 76px;
  padding: 0 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  gap: 15px;
}
.breadcrumbs {
  color: var(--muted);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.breadcrumbs span:last-child {
  color: var(--text);
}
.top-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.status-pill {
  border: 1px solid var(--line);
  border-radius: 20px;
  display: flex;
  gap: 7px;
  padding: 5px 11px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  min-height: 30px;
}
.status-pill:before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7292a5;
  align-self: center;
}
.status-pill[data-status="online"]:before {
  background: #228562;
}
.status-pill[data-status="sincronizando"]:before {
  background: #177eb3;
  animation: pulse 1s infinite alternate;
}
.status-pill[data-status="erro"]:before {
  background: #c34954;
}
.status-pill[data-status="offline"]:before {
  background: #c59735;
}
.shortcut-button {
  font-size: 12px;
  color: var(--muted);
  min-height: 34px;
  padding: 5px 9px;
}
kbd {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 5px;
  font: 11px var(--font);
  color: var(--muted);
  background: var(--surface-2);
}
.main-content {
  padding: 36px;
  max-width: 1640px;
  margin: auto;
}
.page-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}
.page-heading h1 {
  margin: 5px 0 8px;
}
.page-heading p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}
.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 30px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 20px 23px;
  border-radius: 12px;
  display: flex;
  gap: 18px;
  align-items: center;
  box-shadow: var(--shadow);
}
.stat-icon {
  width: 43px;
  height: 43px;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--blue);
  display: grid;
  place-items: center;
}
.stat-card strong {
  font-size: 25px;
  line-height: 1.1;
  letter-spacing: -0.7px;
}
.stat-card span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}
.library-toolbar {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.search-field {
  position: relative;
  flex: 1;
  min-width: 220px;
}
.search-field .icon {
  position: absolute;
  top: 12px;
  left: 14px;
  color: var(--muted);
  width: 18px;
}
.search-field input {
  padding-left: 43px;
  background: var(--surface);
  height: 44px;
}
.library-toolbar select {
  width: auto;
  font-size: 13px;
  max-width: 220px;
}
.library-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 17px;
}
.library-section-header h2 {
  font-size: 16px;
  margin: 0;
}
.library-section-header span {
  font-size: 12px;
  color: var(--muted);
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.roteiro-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition:
    transform 0.16s,
    box-shadow 0.16s;
  display: flex;
  flex-direction: column;
}
.roteiro-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px #14385912;
  border-color: #abc4d5;
}
.card-preview {
  height: 186px;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 19px,
      #c7d8e31a 20px
    ),
    #e8eff5;
  position: relative;
  overflow: hidden;
  padding: 22px 42px 0;
  text-decoration: none;
  color: #24394a;
}
.card-preview.parasitologia {
  background-color: #e6f2f2;
}
.card-preview.imunologia {
  background-color: #e9edf8;
}
.mini-paper {
  background: white;
  height: 220px;
  padding: 17px 18px;
  box-shadow: 0 2px 14px #35547214;
  transform: rotate(-3deg);
  font-size: 7px;
  position: relative;
  border: 1px solid #dce5ed;
}
.mini-paper .mini-inst {
  font-size: 8px;
  font-weight: 800;
  border-bottom: 2px solid #1b526e;
  padding-bottom: 6px;
  margin-bottom: 9px;
}
.mini-paper h4 {
  font-size: 11px;
  line-height: 1.3;
  margin: 0 0 9px;
  max-width: 170px;
}
.mini-lines {
  height: 26px;
  background: repeating-linear-gradient(
    to bottom,
    #cfdae3 0,
    #cfdae3 1px,
    transparent 1px,
    transparent 7px
  );
  opacity: 0.75;
}
.mini-table {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 10px;
}
.mini-table span {
  height: 14px;
  border: 1px solid #d8e3ed;
  background: #f6f9fc;
}
.preview-label {
  position: absolute;
  left: 14px;
  bottom: 12px;
  background: #fff;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid #d6e2ea;
  font-size: 10px;
  font-weight: 600;
}
.favorite-badge {
  position: absolute;
  right: 13px;
  top: 13px;
  color: #456981;
  background: #fffffff0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.discipline {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 8px;
}
.roteiro-card h3 {
  font-size: 18px;
  line-height: 1.35;
  margin-bottom: 11px;
  letter-spacing: -0.3px;
}
.card-metadata {
  color: var(--muted);
  font-size: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.card-metadata .icon {
  width: 13px;
  height: 13px;
}
.card-tags {
  display: flex;
  gap: 6px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.card-tags span {
  font-size: 10px;
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--muted);
  padding: 3px 6px;
}
.card-footer {
  padding: 13px 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
}
.card-footer button {
  padding: 0;
  min-height: 26px;
  min-width: 26px;
  background: transparent;
  border: 0;
}
.card-footer a {
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.card-footer a .icon {
  width: 14px;
}
.template-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  border: 1px dashed #afc5d6;
  background: var(--surface);
  border-radius: 12px;
  padding: 22px 25px;
  margin-top: 30px;
}
.template-banner h3 {
  margin: 0 0 4px;
  font-size: 15px;
}
.template-banner p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.empty {
  padding: 55px 25px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 12px;
  grid-column: 1/-1;
}
.empty p {
  color: var(--muted);
}
.editor-top {
  background: var(--surface);
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
}
.editor-title {
  font-size: 15px;
  font-weight: 600;
  max-width: 330px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
.editor-layout {
  display: grid;
  grid-template-columns: 190px minmax(300px, 1fr) 260px;
  min-height: calc(100vh - 144px);
  align-items: start;
}
.block-palette,
.properties-panel {
  background: var(--surface);
  padding: 20px 14px;
  position: sticky;
  top: 0;
  max-height: 100vh;
  overflow-y: auto;
}
.block-palette {
  border-right: 1px solid var(--line);
}
.properties-panel {
  border-left: 1px solid var(--line);
  padding: 22px 17px;
}
.block-palette h2,
.properties-panel h2 {
  font-size: 14px;
  margin-bottom: 6px;
}
.block-palette > p,
.properties-panel > p {
  font-size: 12px;
  color: var(--muted);
}
.palette-item {
  width: 100%;
  justify-content: flex-start;
  padding: 9px 8px;
  font-size: 12px;
  border: 0;
  background: transparent;
  font-weight: 500;
}
.palette-item .icon {
  width: 16px;
  height: 16px;
  color: var(--muted);
}
.palette-group {
  margin-top: 18px;
  margin-bottom: 5px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  padding: 0 8px;
}
.page-scroll {
  padding: 26px 25px 80px;
  min-width: 0;
  overflow: auto;
}
.editor-sheet {
  width: 100%;
  max-width: 210mm;
  min-height: 297mm;
  margin: auto;
  background: white;
  box-shadow: 0 3px 20px #102c4810;
  border: 1px solid #dce4eb;
  padding: 40px;
  color: #1c3042;
  font:
    14px/1.6 "Segoe UI",
    Arial,
    sans-serif;
}
.editor-sheet .cabecalho-conteudo {
  margin-bottom: 26px;
}
.editor-sheet h1 {
  font-size: 26px;
  line-height: 1.2;
  color: #102c48;
}
.editor-sheet h2 {
  font-size: 17px;
  color: var(--destaque, #102c48);
  margin: 10px 0;
}
.editor-sheet h3 {
  font-size: 14px;
}
.editor-block {
  position: relative;
  border: 1px solid transparent;
  padding: 9px !important;
  outline: none;
  scroll-margin: 30px;
  overflow-wrap: anywhere;
}
.editor-block:hover {
  border-color: #d8e3ec;
}
.editor-block.selected {
  border-color: #5bade0;
  box-shadow: 0 0 0 2px #2580c20d;
  background: #fcfeff !important;
  border-radius: 4px;
}
.block-toolbar {
  display: none;
  position: absolute;
  right: 4px;
  top: -34px;
  z-index: 3;
  border: 1px solid #ccdce8;
  border-radius: 6px;
  background: white;
  padding: 2px;
  box-shadow: 0 2px 5px #102c4810;
}
.editor-block.selected .block-toolbar {
  display: flex;
}
.block-toolbar button {
  min-height: 26px;
  min-width: 27px;
  padding: 3px;
  border: 0;
  border-radius: 3px;
  color: #3d5970;
  background: white;
}
.block-toolbar button:hover {
  background: #e9f1f8;
}
.block-toolbar .icon {
  width: 14px;
  height: 14px;
}
.editor-sheet [contenteditable] {
  min-width: 10px;
  min-height: 1.4em;
  border-radius: 2px;
  outline: none;
  white-space: pre-wrap;
}
.editor-sheet [contenteditable]:empty:before {
  content: "…";
  color: #9eb0c1;
}
.editor-sheet [contenteditable]:focus {
  background: #edf7ff;
  box-shadow: 0 0 0 2px #c5e5fb;
}
.editor-sheet input,
.editor-sheet select,
.editor-sheet textarea {
  background: #fff;
  color: #19334a;
  border-color: #d6e2ec;
  font-size: 12px;
  padding: 5px;
}
.editor-sheet table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 12px;
  margin: 8px 0;
}
.editor-sheet th,
.editor-sheet td {
  border: 1px solid #cedbe5;
  padding: 7px;
  text-align: left;
  overflow-wrap: anywhere;
}
.editor-sheet th {
  background: #edf3f8;
}
.editor-sheet .edit-only {
  display: initial;
}
.editor-sheet .remove-item {
  min-height: 22px;
  width: 22px;
  padding: 0;
  border: 0;
  color: #7a92a6;
  background: transparent;
  font-size: 17px;
  float: right;
}
.editor-sheet .small-button {
  background: #f7fafc;
  color: #376381;
  border: 1px dashed #b7cad9;
  font-size: 11px;
  padding: 3px 8px;
  min-height: 28px;
}
.editor-sheet .lista-editavel li {
  padding: 3px 0;
}
.editor-sheet .passos {
  padding: 0;
  list-style-position: inside;
  counter-reset: passo;
}
.editor-sheet .passos > li {
  display: flex;
  gap: 12px;
  margin-bottom: 15px;
}
.editor-sheet .passos > li:before {
  counter-increment: passo;
  content: counter(passo, decimal-leading-zero);
  font-size: 15px;
  font-weight: 700;
  color: #2b779d;
}
.editor-sheet .nota-professor {
  padding: 10px;
  background: #f1f6fa;
  border-left: 2px solid #a8bfd0;
  font-size: 12px;
  margin-top: 8px;
}
.passo-campos {
  display: flex !important;
  gap: 8px;
  align-items: end;
  flex-wrap: wrap;
  margin-top: 8px;
}
.passo-campos label:first-child {
  max-width: 70px;
}
.passo-campos button {
  font-size: 10px;
  padding: 3px 5px;
  min-height: 28px;
}
.passo-campos label {
  font-size: 10px;
}
.editor-sheet .figura img {
  max-width: 100%;
  width: 100%;
}
.arquivo-upload {
  display: block !important;
  position: relative;
  background: #eef6fa;
  font-size: 12px;
  color: #24678c;
  padding: 8px;
  text-align: center;
  border: 1px dashed #96bed6;
  cursor: pointer;
}
.arquivo-upload input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.editor-sheet .figura {
  margin-left: auto;
  margin-right: auto;
}
.editor-sheet .quebra-marcador {
  border-top: 2px dashed #afc5d6;
  text-align: center;
  font-size: 10px;
  color: #7895ab;
  padding-top: 7px;
}
.editor-sheet .ghs {
  max-width: 38px;
}
.rich-toolbar {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 5px;
  max-width: 210mm;
  margin: 0 auto 15px;
  box-shadow: var(--shadow);
}
.rich-toolbar button {
  min-height: 28px;
  padding: 3px 8px;
  border: 0;
  font-size: 12px;
}
.rich-toolbar .hint {
  font-size: 10px;
  margin-left: auto;
  color: var(--muted);
  padding-right: 6px;
}
.properties-panel .stack {
  gap: 12px;
}
.properties-panel label {
  font-size: 12px;
}
.properties-panel input,
.properties-panel select,
.properties-panel textarea {
  font-size: 12px;
  padding: 8px;
}
.check {
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: 400 !important;
}
.check input {
  width: 16px;
  height: 16px;
  flex: none;
  padding: 0;
}
.property-section {
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
  margin-bottom: 18px;
}
.property-section h3 {
  font-size: 12px;
  margin-bottom: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.mobile-editor-tabs {
  display: none;
}
.add-block-end {
  width: 100%;
  max-width: 210mm;
  margin: 18px auto;
  display: flex;
  justify-content: center;
  border: 1px dashed #a6bdcf;
  color: var(--muted);
  background: transparent;
}
.save-info {
  font-size: 11px;
  color: var(--muted);
}
.teacher-badge {
  font-size: 10px;
  color: #5d7388;
  border: 1px solid #bdcdd9;
  padding: 1px 5px;
  display: inline-block;
  margin-bottom: 6px;
}
.preview-controls {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 14px 24px;
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.preview-controls label {
  font-size: 13px;
}
.preview-container {
  padding: 30px 0;
  overflow: hidden;
  min-height: 80vh;
  background: var(--surface-2);
}
.preview-warning {
  background: #fff2d8;
  color: #6d4910;
  padding: 12px 20px;
  font-size: 13px;
}
.header-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
}
.header-card h3 {
  margin-bottom: 5px;
}
.header-card .header-mini {
  height: 165px;
  overflow: hidden;
  background: #f1f5f9;
  margin: 16px -5px;
  padding: 12px;
}
.header-mini > div {
  width: 180%;
  transform: scale(0.55);
  transform-origin: top left;
  background: white;
  padding: 20px;
  color: #102c48;
}
.header-editor-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 1fr);
  gap: 25px;
}
.panel-card {
  background: var(--surface);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  gap: 8px;
  margin-bottom: 16px;
}
.tabs button {
  border: 0;
  background: transparent;
  border-radius: 0;
}
.tabs button[aria-selected="true"] {
  border-bottom: 2px solid var(--blue);
  color: var(--blue);
}
.codigo {
  font-family: Consolas, monospace;
  font-size: 12px;
  min-height: 220px;
  line-height: 1.6;
}
.header-visual {
  min-height: 160px;
  border: 1px solid var(--line);
  padding: 15px;
  background: white;
  color: #172c42;
}
.header-a4 {
  width: 100%;
  min-height: 390px;
  background: white;
  color: #172c42;
  padding: 25px;
  box-shadow: var(--shadow);
}
.variable-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 6px;
  margin-bottom: 8px;
}
.variable-row input {
  font-size: 12px;
}
.variable-row button {
  padding: 6px;
}
.tool-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.tool-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 25px;
}
.tool-card h2 {
  font-size: 20px;
}
.tool-card p {
  color: var(--muted);
  font-size: 13px;
}
.calc-output {
  background: var(--cyan-light);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 16px;
  margin-top: 18px;
  font-size: 18px;
}
.checklist-item {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-weight: 400;
}
.checklist-item:has(input:checked) {
  text-decoration: line-through;
  color: var(--muted);
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.login-lead {
  background: var(--navy);
  color: white;
  padding: 30px;
  border-radius: 12px;
}
.login-lead h2 {
  color: white;
}
.login-lead p {
  color: #c5d7e6;
  font-size: 14px;
}
.settings-note {
  font-size: 13px;
  color: var(--muted);
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(150px);
  max-width: 90vw;
  z-index: 200;
  background: #142f48;
  color: #fff;
  border-radius: 10px;
  padding: 13px 20px;
  box-shadow: 0 8px 40px #0003;
  font-size: 14px;
  transition: transform 0.2s;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
}
dialog {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0;
  width: min(720px, calc(100vw - 32px));
  max-height: 88vh;
  box-shadow: 0 25px 100px #0004;
}
dialog::backdrop {
  background: #0c233b88;
  backdrop-filter: blur(3px);
}
.dialog-head {
  padding: 22px 25px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.dialog-head h2 {
  font-size: 20px;
  margin: 0;
}
.dialog-content {
  padding: 24px;
  overflow: auto;
}
.dialog-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  border-top: 1px solid var(--line);
  padding: 18px 24px;
}
.command-list {
  max-height: 50vh;
  overflow: auto;
}
.command-item {
  display: flex;
  justify-content: flex-start;
  width: 100%;
  background: transparent;
  border: 0;
  text-align: left;
  gap: 12px;
}
.command-item small {
  margin-left: auto;
  color: var(--muted);
  font-weight: 400;
}
.help-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.help-table td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
}
.diff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.diff-grid pre {
  max-height: 350px;
  overflow: auto;
  font-size: 11px;
  background: var(--surface-2);
  padding: 12px;
  white-space: pre-wrap;
}
.conflict-card {
  border: 1px solid #dd9ca5;
  background: var(--surface);
  padding: 18px;
  border-radius: 10px;
  margin-bottom: 15px;
}
.loading {
  padding: 80px;
  text-align: center;
  color: var(--muted);
}
.history-list {
  display: grid;
  gap: 10px;
}
.history-item {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.drag-over {
  outline: 2px dashed #078eaf;
}
.disabled-note {
  font-size: 12px;
  color: var(--muted);
  padding: 12px;
  background: var(--surface-2);
  border-radius: 8px;
}
@keyframes pulse {
  to {
    opacity: 0.35;
  }
}
@media (min-width: 1600px) {
  .editor-layout {
    grid-template-columns: 210px minmax(300px, 1fr) 285px;
  }
  .page-scroll {
    padding: 35px 45px;
  }
  .editor-sheet {
    padding: 55px;
  }
}
@media (max-width: 1250px) {
  .app-shell {
    grid-template-columns: 190px 1fr;
  }
  .sidebar {
    padding: 25px 10px;
  }
  .brand {
    padding: 0 7px;
  }
  .main-content {
    padding: 26px;
  }
  .topbar {
    padding: 0 26px;
  }
  .card-grid {
    gap: 14px;
  }
  .card-preview {
    padding: 24px 25px 0;
    height: 170px;
  }
  .editor-layout {
    grid-template-columns: 150px minmax(250px, 1fr) 215px;
  }
  .palette-item {
    font-size: 11px;
    padding: 8px 3px;
    gap: 7px;
  }
  .block-palette {
    padding: 18px 9px;
  }
  .page-scroll {
    padding: 24px 14px;
  }
  .editor-sheet {
    padding: 25px;
  }
  .properties-panel {
    padding: 18px 13px;
  }
  .editor-top {
    padding: 12px;
  }
  .editor-top button {
    font-size: 12px;
    padding: 7px 10px;
  }
  .editor-title {
    max-width: 190px;
  }
}
@media (max-width: 1050px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .editor-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .block-palette,
  .properties-panel {
    display: none;
    position: static;
    max-height: none;
  }
  .mobile-editor-tabs {
    display: flex;
    gap: 5px;
    justify-content: center;
    background: var(--surface);
    padding: 8px;
    border-bottom: 1px solid var(--line);
  }
  .mobile-editor-tabs button {
    font-size: 12px;
    flex: 1;
  }
  .editor-layout[data-aba="blocos"] .block-palette,
  .editor-layout[data-aba="propriedades"] .properties-panel {
    display: block;
  }
  .editor-layout[data-aba="blocos"] .page-scroll,
  .editor-layout[data-aba="propriedades"] .page-scroll {
    display: none;
  }
  .palette-item {
    font-size: 14px;
    padding: 12px;
  }
  .properties-panel {
    max-width: 700px;
    width: 100%;
    margin: auto;
  }
  .header-editor-grid {
    grid-template-columns: 1fr;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .tool-grid {
    grid-template-columns: 1fr;
  }
  .stat-card {
    padding: 17px;
    gap: 12px;
  }
  .stat-card strong {
    font-size: 22px;
  }
  .stat-icon {
    width: 32px;
    height: 35px;
  }
  .shortcut-button {
    display: none;
  }
}
@media (max-width: 700px) {
  .app-shell {
    display: block;
  }
  .sidebar {
    position: static;
    height: auto;
    padding: 14px 16px;
    display: block;
  }
  .brand {
    margin: 0;
    padding: 0;
  }
  .brand strong {
    font-size: 19px;
  }
  .brand small {
    font-size: 9px;
  }
  .brand-symbol {
    width: 34px;
    height: 34px;
  }
  .sidebar nav {
    display: flex;
    margin-top: 14px;
    gap: 4px;
    overflow-x: auto;
  }
  .sidebar .eyebrow,
  .sidebar-bottom,
  .nav-count {
    display: none;
  }
  .nav-link {
    font-size: 12px;
    padding: 8px 10px;
    white-space: nowrap;
    margin: 0;
    gap: 7px;
  }
  .nav-link .icon {
    width: 15px;
    height: 15px;
  }
  .sidebar nav .nav-link:last-child {
    margin-left: auto;
  }
  .sidebar .nav-link.active {
    box-shadow: inset 0 -2px #6be0ef;
  }
  .topbar {
    height: 55px;
    padding: 0 18px;
  }
  .breadcrumbs {
    font-size: 11px;
    gap: 6px;
  }
  .top-actions .quiet {
    padding: 5px;
    min-width: 30px;
    min-height: 30px;
  }
  .main-content {
    padding: 25px 18px;
  }
  .page-heading {
    align-items: start;
    margin-bottom: 22px;
  }
  .page-heading h1 {
    font-size: 27px;
  }
  .page-heading p {
    font-size: 12px;
  }
  .page-heading > .row {
    gap: 5px;
  }
  .page-heading button {
    font-size: 12px;
    padding: 8px 10px;
  }
  .page-heading .import-button {
    display: none;
  }
  .stats-strip {
    gap: 8px;
    margin-bottom: 22px;
  }
  .stat-card {
    display: block;
    padding: 13px 10px;
  }
  .stat-icon {
    display: none;
  }
  .stat-card strong {
    font-size: 23px;
  }
  .stat-card span {
    font-size: 10px;
  }
  .library-toolbar {
    gap: 7px;
  }
  .library-toolbar select {
    font-size: 12px;
    flex: 1;
    max-width: 100%;
    padding: 9px 8px;
  }
  .search-field {
    flex-basis: 100%;
  }
  .card-grid {
    grid-template-columns: 1fr;
  }
  .card-preview {
    height: 173px;
    padding: 20px 65px 0;
  }
  .card-body {
    padding: 18px;
  }
  .template-banner {
    padding: 18px;
    align-items: start;
    flex-direction: column;
    gap: 12px;
  }
  .editor-title {
    max-width: 165px;
  }
  .editor-top .row {
    gap: 5px;
  }
  .editor-top .button-label {
    display: none;
  }
  .editor-top button {
    padding: 7px;
  }
  .page-scroll {
    padding: 23px 8px;
  }
  .editor-sheet {
    padding: 22px 15px;
    font-size: 12px;
    min-height: 900px;
  }
  .editor-sheet h1 {
    font-size: 23px;
  }
  .editor-sheet h2 {
    font-size: 16px;
  }
  .rich-toolbar .hint {
    display: none;
  }
  .rich-toolbar {
    gap: 1px;
  }
  .editor-sheet table {
    font-size: 10px;
  }
  .editor-sheet th,
  .editor-sheet td {
    padding: 4px;
  }
  .editor-block {
    padding: 6px !important;
  }
  .editor-sheet .edit-only button {
    font-size: 10px;
  }
  .editor-sheet .cabecalho-conteudo {
    overflow-wrap: anywhere;
  }
  .editor-sheet .cabecalho-conteudo table {
    font-size: 9px;
  }
  .header-card {
    padding: 18px;
  }
  .grid2 {
    grid-template-columns: 1fr;
  }
  .diff-grid {
    grid-template-columns: 1fr;
  }
  .dialog-content {
    padding: 18px;
  }
  .dialog-head {
    padding: 18px;
  }
  .dialog-actions {
    padding: 15px;
    flex-wrap: wrap;
  }
  .preview-controls {
    padding: 12px 16px;
    gap: 10px;
  }
  .preview-controls select {
    max-width: 180px;
  }
  .variable-row {
    grid-template-columns: 1fr 1fr;
  }
  .variable-row input {
    font-size: 11px;
  }
  .tool-card {
    padding: 20px;
  }
  .history-item {
    flex-direction: column;
  }
}

/* Interface de trabalho compacta. */
.main-content {
  padding: 24px 30px;
}
.brand {
  margin-bottom: 26px;
}
.sidebar {
  padding-top: 24px;
}
.page-heading {
  margin-bottom: 20px;
  align-items: center;
  gap: 16px;
}
.page-heading h1 {
  font-size: 26px;
  margin: 0;
  line-height: 1.3;
  letter-spacing: -0.4px;
}
.title-count {
  display: inline-block;
  color: var(--muted);
  font-size: 16px;
  font-weight: 400;
  margin-left: 8px;
  vertical-align: middle;
}
.library-toolbar {
  margin-bottom: 12px;
}
.library-section-header {
  margin-bottom: 12px;
}
.library-section-header select {
  width: auto;
  max-width: 65%;
  background: transparent;
  font-size: 13px;
}
.roteiro-card {
  position: relative;
}
.roteiro-card.selecionado {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}
.card-preview {
  height: 112px;
}
.mini-paper {
  top: 22px;
}
.card-body {
  padding: 16px;
}
.card-body h3 {
  margin-top: 7px;
}
.card-select {
  position: absolute;
  top: 9px;
  left: 9px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 5px;
  cursor: pointer;
}
.card-select input {
  width: 18px;
  height: 18px;
  margin: 0;
  cursor: pointer;
}
.batch-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 0 18px;
  font-size: 13px;
}
.batch-actions output {
  color: var(--muted);
}
.batch-actions #limpar-selecao {
  margin-left: auto;
}
.batch-actions button {
  font-size: 13px;
  min-height: 36px;
}
.batch-actions .check {
  margin: 0;
}
.actions-menu {
  position: relative;
  flex: none;
  font-size: 14px;
}
.actions-menu summary {
  cursor: pointer;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  list-style: none;
}
.actions-menu summary:after {
  content: " ▾";
}
.actions-menu summary:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
.actions-menu > div {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  width: 232px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px;
  box-shadow: 0 8px 30px #102c4820;
  z-index: 25;
}
.actions-menu > div button {
  border: 0;
  width: 100%;
  justify-content: flex-start;
  font-size: 14px;
  border-radius: 4px;
  background: transparent;
}
.actions-menu > div button:hover {
  background: var(--bg);
}
.result-list {
  margin: 16px 0;
  max-height: 40vh;
  overflow: auto;
  font-size: 14px;
}
.result-list > div {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 7px 0;
}
.result-list li {
  margin: 10px 0;
}
.result-list li button {
  font-size: 12px;
  min-height: 28px;
  padding: 4px 8px;
}
.table-scroll {
  overflow: auto;
  margin-top: 12px;
}
.table-scroll th,
.table-scroll td {
  vertical-align: top;
}
.table-scroll td:first-child,
.table-scroll td:nth-child(2) {
  white-space: nowrap;
}
.print-summary {
  padding: 16px 26px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.print-summary > span {
  margin-left: 14px;
  color: var(--muted);
}
.print-summary ol {
  margin: 10px 0;
  padding-left: 22px;
}
.print-summary details {
  margin-top: 9px;
  color: var(--muted);
}
.print-summary details summary {
  cursor: pointer;
}
.print-summary li {
  margin: 5px 0;
}
.preview-controls {
  flex-wrap: wrap;
}
.preview-controls #numero-paginas {
  margin-left: auto;
  font-size: 13px;
}
.preview-controls button {
  font-size: 13px;
}
@media (max-width: 700px) {
  .main-content {
    padding: 18px 16px;
  }
  .page-heading h1 {
    font-size: 23px;
  }
  .page-heading {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .page-heading > .row {
    flex-wrap: wrap;
    gap: 8px;
  }
  .batch-actions {
    gap: 10px;
  }
  .batch-actions #limpar-selecao {
    margin-left: 0;
  }
  .batch-actions #imprimir-lote {
    margin-left: auto;
  }
  .card-preview {
    height: 105px;
  }
  .editor-top {
    flex-wrap: wrap;
    gap: 8px;
  }
  .editor-top > .row:last-child {
    flex-wrap: wrap;
    gap: 5px;
  }
  .actions-menu summary {
    padding: 7px 9px;
  }
  .print-summary {
    padding: 14px 16px;
  }
  .preview-controls #numero-paginas {
    margin-left: 0;
  }
  .print-summary > span {
    display: block;
    margin: 5px 0;
  }
}
@media (max-width: 700px) {
  .sidebar {
    padding: 12px 16px;
  }
  .sidebar .brand {
    margin-bottom: 0;
  }
  .sidebar nav {
    margin-top: 10px;
  }
}
