/* Locally hosted Inter, including Latin Extended/Czech; SIL OFL in fonts/inter. */
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter/InterVariable-Italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
:root {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--app-bg);
  font-synthesis: none;
  font-size: 14px;
  --brand: #244BE9;
  --brand-hover: #193AC5;
  --app-bg: #F8F8F4;
  --text: #202322;
  --muted: #626A62;
  --line: #DDDFD8;
  --surface: #FFFFFF;
  --surface-subtle: #F1F2EE;
  --brand-soft: #EEF1FF;
  --brand-line: #CBD4FB;
  --success: #237B64;
  --success-soft: #EDF5EF;
  --warning: #866018;
  --warning-soft: #FFF0C8;
  --danger: #B05151;
  --danger-soft: #FFF0ED;
  --block-blue-bg: #F0F6FC;
  --block-blue-header: #E5EFF9;
  --block-blue-border: #CCDDED;
  --block-green-bg: #F0F7F2;
  --block-green-header: #E5F0E8;
  --block-green-border: #CDDFD2;
  --block-cream-bg: #FBF7ED;
  --block-cream-header: #F5EEDC;
  --block-cream-border: #E6DCC3;
  --block-lavender-bg: #F5F2FA;
  --block-lavender-header: #ECE6F5;
  --block-lavender-border: #DDD2EB;
  --block-pink-bg: #FCF2F3;
  --block-pink-header: #F8E7EA;
  --block-pink-border: #EDD1D6;
}
.wide-dialog {
  max-width: 760px;
  max-height: 90vh;
  overflow: auto;
}
.client-settings {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 20px;
}
.client-settings h3 {
  margin-bottom: 12px;
}
.repeat-field {
  margin-bottom: 18px;
}
.repeat-field > h3 {
  margin-bottom: 14px;
}
.repeat-item {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  margin-bottom: 16px;
  background: var(--surface-subtle);
}
.upload-controls {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.upload-status {
  font-size: 11px;
  color: var(--muted);
}
.image-thumbnail {
  width: 120px;
  max-height: 100px;
  object-fit: contain;
  object-position: left;
  border-radius: 5px;
  background: var(--surface-subtle);
}
.image-thumbnail[hidden] {
  display: none;
}
.hidden-file {
  display: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
::selection {
  background: var(--brand);
  color: #FFFFFF;
}
input {
  accent-color: var(--brand);
}
a {
  color: var(--brand);
}
a:hover {
  color: var(--brand-hover);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea,
[contenteditable] {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.4;
}
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[contenteditable]:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
}
button {
  transition:
    background 0.15s,
    color 0.15s;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 32px;
  letter-spacing: -1px;
  margin-bottom: 10px;
  font-weight: 650;
}
h2 {
  font-size: 18px;
  font-weight: 650;
  margin-bottom: 8px;
}
h3 {
  font-size: 15px;
  margin-bottom: 0;
  font-weight: 600;
}
p {
  line-height: 1.65;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.6px;
  color: var(--brand);
  margin-bottom: 14px;
}
.icon {
  width: 17px;
  height: 17px;
  display: inline-flex;
  flex-shrink: 0;
}
.icon svg {
  width: 100%;
  height: 100%;
}
.button {
  border: 1px solid transparent;
  border-radius: 7px;
  min-height: 40px;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  font-weight: 550;
}
.button.primary {
  background: var(--brand);
  color: white;
  box-shadow: 0 2px 2px #244be912;
}
.button.primary:hover {
  background: var(--brand-hover);
}
.button.secondary {
  background: var(--surface);
  border-color: var(--line);
  color: var(--text);
}
.button.secondary:hover {
  background: var(--surface-subtle);
  border-color: var(--brand);
  color: var(--brand);
}
.button.subtle {
  color: var(--muted);
  background: transparent;
  padding: 8px 10px;
}
.button.subtle:hover {
  background: var(--surface-subtle);
}
.button.small {
  min-height: 32px;
  font-size: 12px;
  padding: 7px 10px;
}
.button.danger,
.danger {
  color: var(--danger);
}
.button.destructive {
  background: var(--danger);
  color: white;
}
.wide {
  width: 100%;
}
.topbar {
  background: var(--app-bg);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  width: 100%;
  padding-inline: 38px;
  height: 90px;
  display: flex;
  align-items: center;
  gap: 30px;
}
.brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  max-width: 100%;
  text-decoration: none;
}
.brand:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}
.brand-logo {
  display: block;
  width: 220px;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}
.main-nav {
  height: 100%;
  display: flex;
}
.nav-item {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 2px;
  font-size: 13px;
  position: relative;
  color: var(--text);
}
.nav-item.active:after {
  content: "";
  position: absolute;
  bottom: 0;
  height: 3px;
  background: var(--brand);
  left: 0;
  right: 0;
}
.nav-item.active {
  color: var(--brand);
}
.account {
  margin-left: auto;
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
  max-width: 100%;
}
.account-email {
  font-size: 12px;
  color: var(--muted);
  min-width: 0;
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 600;
}
.dashboard {
  max-width: 1240px;
  margin: 0 auto;
  padding: 48px 38px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  gap: 20px;
}
.page-heading p {
  margin-bottom: 0;
}
.list-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  gap: 12px;
}
.sample-description-button {
  margin-bottom: 16px;
}
.list-bar > .muted {
  font-size: 12px;
}
.input {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 6px;
  padding: 10px 12px;
  width: 100%;
  min-height: 40px;
  color: var(--text);
}
.input::placeholder {
  color: var(--muted);
}
.input.search {
  max-width: 330px;
}
.description-list {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 9px;
  overflow: hidden;
}
.list-labels {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) 190px 330px;
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 1.2px;
  background: var(--surface-subtle);
  padding: 17px 24px;
  border-bottom: 1px solid var(--line);
}
.list-labels > :last-child {
  text-align: right;
}
.description-row {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) 190px 330px;
  gap: 8px;
  align-items: center;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}
.description-row:last-child {
  border-bottom: 0;
}
.description-title {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 0;
  color: var(--text);
  font-weight: 600;
  overflow-wrap: anywhere;
}
.description-title .icon {
  width: 35px;
  height: 40px;
  padding: 9px;
  background: var(--brand-soft);
  border-radius: 5px;
  color: var(--brand);
}
.row-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
}
.badge {
  font-size: 10px;
  font-weight: 550;
  background: var(--success-soft);
  color: var(--success);
  padding: 4px 7px;
  border-radius: 4px;
  display: inline-block;
}
.badge.disabled {
  color: var(--warning);
  background: var(--warning-soft);
}
.badge.profile {
  color: var(--brand);
  background: var(--brand-soft);
}
.row-actions {
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: flex-end;
}
.dashboard-footnote {
  font-size: 11px;
  color: var(--muted);
  margin-top: 24px;
  text-align: center;
}
.empty {
  text-align: center;
  padding: 64px 24px;
}
.empty h2 {
  font-size: 22px;
}
.boot {
  padding: 80px;
  text-align: center;
  color: var(--muted);
}
.editor-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 34px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  gap: 20px;
}
.editor-name-area {
  display: flex;
  align-items: center;
  gap: 24px;
  min-width: 0;
}
.document-name {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.4px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  width: 360px;
  max-width: 100%;
  padding: 8px;
}
.document-name:hover,
.document-name:focus {
  border-color: var(--line);
}
.editor-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}
.save-status {
  font-size: 11px;
  color: var(--success);
  white-space: nowrap;
}
.save-status:before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  margin-right: 7px;
}
.save-status.saving {
  color: var(--warning);
}
.save-status.error {
  color: var(--danger);
}
.workspace {
  display: grid;
  grid-template-columns: minmax(440px, 1fr) minmax(400px, 1fr);
  align-items: start;
}
.editing-pane {
  padding: 28px 30px 60px;
  min-width: 0;
}
.pane-heading {
  margin-bottom: 20px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.pane-heading h2 {
  font-size: 14px;
}
.pane-heading > .muted {
  font-size: 11px;
}
.block-card {
  --block-bg: var(--block-blue-bg);
  --block-header-bg: var(--block-blue-header);
  --block-border: var(--block-blue-border);
  background: var(--block-bg);
  border: 1px solid var(--block-border);
  border-radius: 9px;
  margin-bottom: 16px;
  box-shadow: 0 2px 6px #23332e03;
  overflow: hidden;
}
/* Position, rather than block type, determines the repeating editor palette. */
#blocks > .block-card:nth-child(5n + 2) {
  --block-bg: var(--block-green-bg);
  --block-header-bg: var(--block-green-header);
  --block-border: var(--block-green-border);
}
#blocks > .block-card:nth-child(5n + 3) {
  --block-bg: var(--block-cream-bg);
  --block-header-bg: var(--block-cream-header);
  --block-border: var(--block-cream-border);
}
#blocks > .block-card:nth-child(5n + 4) {
  --block-bg: var(--block-lavender-bg);
  --block-header-bg: var(--block-lavender-header);
  --block-border: var(--block-lavender-border);
}
#blocks > .block-card:nth-child(5n + 5) {
  --block-bg: var(--block-pink-bg);
  --block-header-bg: var(--block-pink-header);
  --block-border: var(--block-pink-border);
}
.block-card :is(input, textarea, select, .rich-box, .rich-editor) {
  background: var(--surface);
}
.block-card :is(.repeat-item, .faq-item) {
  background: transparent;
  border-color: var(--block-border);
}
.block-card :is(.block-number, .icon-button) {
  color: var(--muted);
}
.block-card .icon-button.danger {
  color: var(--danger);
}
.block-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: var(--block-header-bg);
  border-bottom: 1px solid var(--block-border);
}
.block-header h3 {
  font-size: 13px;
}
.block-number {
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.block-actions {
  margin-left: auto;
  display: flex;
  gap: 3px;
}
.icon-button {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 4px;
  font-size: 19px;
}
.icon-button .icon {
  width: 14px;
  height: 14px;
}
.icon-button:hover {
  background: var(--brand-soft);
}
.icon-button:not(.danger):not(:disabled):hover {
  color: var(--brand);
}
.icon-button.danger {
  color: var(--danger);
}
.block-form {
  padding: 20px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}
.field[hidden] {
  display: none;
}
.field:last-child {
  margin-bottom: 0;
}
.field-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}
.field-help {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.5;
}
.rich-box {
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.rich-toolbar {
  padding: 5px 6px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-subtle);
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
}
.rich-tool {
  font-size: 10px;
  background: transparent;
  border: 0;
  color: var(--muted);
  padding: 6px 7px;
  border-radius: 3px;
  min-width: 27px;
}
.rich-tool:hover {
  background: var(--brand-soft);
}
.rich-tool.bold {
  font-size: 13px;
  font-weight: bold;
}
.rich-tool.italic {
  font-size: 13px;
  font-style: italic;
}
.rich-editor {
  min-height: 130px;
  padding: 14px;
  outline: none;
  font-size: 13px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}
.rich-editor p {
  margin: 0 0 12px;
}
.rich-editor.inline-editor {
  min-height: 70px;
}
.rich-editor > :last-child {
  margin-bottom: 0;
}
.rich-editor a {
  color: var(--brand);
}
.faq-item {
  border: 1px solid var(--line);
  background: var(--surface-subtle);
  border-radius: 7px;
  padding: 12px;
  margin-bottom: 14px;
}
.faq-item-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 10px;
}
.block-palette {
  margin-top: 24px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--surface-subtle);
}
.block-palette .eyebrow {
  font-size: 9px;
  margin-bottom: 12px;
  color: var(--muted);
}
.palette-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.palette-button {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 10px;
  flex: 1;
  min-width: 120px;
  font-size: 10px;
}
.palette-button:hover {
  border-color: var(--brand-line);
  background: var(--surface-subtle);
}
.palette-button .icon {
  width: 16px;
  height: 16px;
}
.empty-blocks {
  border: 1px dashed var(--line);
  border-radius: 9px;
  text-align: center;
  padding: 55px 20px;
  background: var(--surface);
}
.empty-blocks h3 {
  margin-bottom: 12px;
}
.empty-blocks p {
  font-size: 12px;
}
.empty-plus {
  font-size: 36px;
  font-weight: 200;
  color: var(--brand);
  display: block;
  margin-bottom: 14px;
}
.preview-pane {
  background: var(--app-bg);
  border-left: 1px solid var(--line);
  padding: 28px 28px 18px;
  position: sticky;
  top: 0;
  min-width: 0;
  min-height: calc(100vh - 180px);
}
.preview-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  gap: 10px;
}
.preview-heading h2 {
  font-size: 14px;
}
.preview-heading .muted {
  font-size: 10px;
}
.device-switch {
  display: flex;
  background: var(--surface-subtle);
  border-radius: 6px;
  padding: 3px;
}
.device-button {
  background: transparent;
  color: var(--muted);
  border: 0;
  padding: 7px 12px;
  border-radius: 4px;
  font-size: 10px;
}
.device-button.active {
  background: var(--surface);
  color: var(--brand);
  box-shadow: 0 1px 3px #27363316;
}
.preview-stage {
  overflow-anchor: none;
  display: flex;
  justify-content: center;
  width: 100%;
  height: calc(100vh - 320px);
  min-height: 450px;
  align-items: flex-start;
  overflow: auto;
}
.preview-frame {
  border: 0;
  background: var(--surface);
  position: absolute;
  top: 0;
  left: 0;
  max-width: none;
  transform-origin: top left;
  border-radius: 5px;
  box-shadow: 0 4px 20px #273b4710;
}
.preview-canvas {
  position: relative;
  flex: 0 0 auto;
  overflow: clip;
  border-radius: 5px;
}
.preview-viewport-info {
  display: block;
  margin-top: 5px;
}
.preview-stage.mobile .preview-frame {
  border-radius: 20px;
}
.preview-stage.mobile .preview-canvas {
  border-radius: 20px;
}
.preview-note {
  font-size: 10px;
  line-height: 1.65;
  color: var(--muted);
  margin: 18px 0 0;
  text-align: center;
}
.save-error-panel {
  background: var(--danger-soft);
  color: var(--danger);
  padding: 14px 30px;
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 12px;
}
.save-error-panel[hidden] {
  display: none;
}
.client-list {
  display: grid;
  gap: 14px;
}
.client-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 9px;
  gap: 20px;
}
.client-card h2 {
  font-size: 16px;
}
.client-card p {
  font-size: 12px;
  margin-bottom: 12px;
}
.client-card > div:first-child {
  min-width: 0;
}
.client-card .sftp-test-result {
  margin-top: 14px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.6;
}
.sftp-test-result.error {
  color: var(--danger, #b42318);
}
.checkbox-field {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
}
.login-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  background: var(--surface);
}
.login-intro {
  background: var(--app-bg);
  padding: 48px 70px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.login-intro .brand {
  margin-bottom: 70px;
}
.login-intro .brand-logo {
  width: 340px;
}
.login-intro h1 {
  white-space: pre-line;
  font-size: 43px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -1.6px;
  margin-bottom: 22px;
  max-width: 460px;
}
.login-intro > p {
  color: var(--muted);
  font-size: 14px;
  max-width: 400px;
}
.login-intro .eyebrow {
  font-size: 10px;
  color: var(--brand);
}
.login-illustration {
  width: 100%;
  max-width: 385px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 24px;
  margin: 34px 0 22px;
  box-shadow: 0 16px 35px #244be90b;
  transform: rotate(-2deg);
}
.illustration-label {
  font-size: 8px;
  letter-spacing: 1px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  margin-bottom: 28px;
}
.illustration-label span {
  font-size: 8px;
  letter-spacing: 0;
  color: var(--success);
}
.illustration-heading {
  height: 11px;
  background: var(--brand-line);
  width: 64%;
  border-radius: 3px;
  margin-bottom: 16px;
}
.illustration-line {
  height: 5px;
  background: var(--brand-line);
  border-radius: 2px;
  width: 100%;
  margin-bottom: 9px;
}
.illustration-line.short {
  width: 80%;
}
.illustration-media {
  display: flex;
  gap: 18px;
  margin: 24px 0;
}
.illustration-media > div {
  width: 40%;
  height: 95px;
  background: linear-gradient(140deg, var(--brand-soft), var(--brand-line));
  border-radius: 4px;
}
.illustration-media > section {
  flex: 1;
  padding-top: 12px;
}
.illustration-media i {
  display: block;
  height: 5px;
  background: var(--brand-line);
  margin-bottom: 10px;
  border-radius: 2px;
}
.illustration-faq {
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 9px;
  color: var(--muted);
}
.login-note {
  font-size: 11px !important;
  margin-top: auto;
  padding-top: 25px;
}
.login-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 40px;
}
.login-form {
  width: 100%;
  max-width: 350px;
}
.login-form h2 {
  font-size: 29px;
  letter-spacing: -0.8px;
  margin-bottom: 10px;
}
.login-form > .muted {
  font-size: 12px;
  margin-bottom: 30px;
}
.login-form .field {
  margin-bottom: 20px;
}
.login-form .input {
  height: 45px;
}
.login-form .primary {
  margin-top: 5px;
  height: 44px;
}
.access-note {
  font-size: 11px;
  text-align: center;
  color: var(--muted);
  margin-top: 20px;
}
.login-footer {
  color: var(--muted);
  font-size: 10px;
  margin-top: 65px;
}
.form-error {
  color: var(--danger);
  font-size: 12px;
}
.form-error:empty {
  display: none;
}
.form-error:not(:empty) {
  margin: 8px 0 16px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 30px;
  max-width: 520px;
  width: calc(100% - 36px);
  color: var(--text);
  box-shadow: 0 24px 80px #182c3430;
}
dialog::backdrop {
  background: #1b2e3355;
  backdrop-filter: blur(3px);
}
.dialog-form > h2 {
  font-size: 22px;
  margin-bottom: 12px;
}
.dialog-form > .muted {
  font-size: 12px;
  margin-bottom: 24px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 24px;
}
.html-output {
  width: 100%;
  height: 270px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  font: 12px/1.5 monospace;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 40px);
  width: max-content;
  padding: 14px 22px;
  color: white;
  background: var(--text);
  border-radius: 8px;
  box-shadow: 0 8px 35px #183c3425;
  font-size: 12px;
  z-index: 20;
  line-height: 1.6;
}
#toast[hidden] {
  display: none;
}
@media (min-width: 1600px) {
  .workspace {
    grid-template-columns: minmax(560px, 46%) 1fr;
  }
  .editing-pane {
    padding-left: 50px;
    padding-right: 50px;
  }
  .preview-pane {
    padding-left: 50px;
    padding-right: 50px;
  }
}
@media (max-width: 1100px) {
  .topbar-inner {
    height: auto;
    min-height: 76px;
    padding-block: 10px;
    flex-wrap: wrap;
    gap: 8px 20px;
  }
  .description-row,
  .list-labels {
    grid-template-columns: minmax(150px, 1fr) 150px;
  }
  .list-labels > :last-child {
    display: none;
  }
  .row-actions {
    grid-column: 1/-1;
    justify-content: flex-start;
    margin-left: 47px;
  }
  .workspace {
    grid-template-columns: minmax(360px, 1fr) minmax(330px, 1fr);
  }
  .editing-pane,
  .preview-pane {
    padding: 22px 18px;
  }
  .pane-heading {
    display: block;
  }
  .editor-heading {
    padding: 18px;
  }
  .editor-name-area {
    gap: 10px;
  }
  .document-name {
    width: 240px;
    font-size: 18px;
  }
  .editor-actions {
    gap: 12px;
  }
  .login-intro {
    padding: 40px;
  }
  .login-intro h1 {
    font-size: 36px;
  }
}
@media (max-width: 760px) {
  .topbar-inner {
    height: auto;
    min-height: 66px;
    padding-block: 10px;
    padding-inline: 16px;
    gap: 8px 12px;
    flex-wrap: wrap;
  }
  .account-email {
    display: none;
  }
  .topbar .brand-logo {
    width: 136px;
  }
  .main-nav {
    display: none;
  }
  .account {
    gap: 5px;
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 100%;
  }
  .account .button {
    font-size: 11px;
    padding: 8px 6px;
  }
  .dashboard {
    padding: 30px 18px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .page-heading h1 {
    font-size: 27px;
  }
  .page-heading .button {
    font-size: 11px;
    padding: 10px;
  }
  .page-heading p {
    font-size: 12px;
  }
  .list-labels {
    display: none;
  }
  .description-row {
    padding: 18px 15px;
    grid-template-columns: 1fr;
  }
  .row-meta {
    margin-left: 47px;
    flex-direction: row;
    align-items: center;
  }
  .row-actions {
    margin-left: 0;
    gap: 2px;
    flex-wrap: wrap;
  }
  .row-actions .button {
    font-size: 11px;
  }
  .workspace {
    grid-template-columns: 1fr;
  }
  .preview-pane {
    position: relative;
    border-left: 0;
    border-top: 1px solid var(--line);
    min-height: 0;
  }
  .preview-stage {
    height: 550px;
  }
  .editor-heading {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .editor-name-area {
    justify-content: space-between;
  }
  .document-name {
    flex: 1;
    min-width: 0;
  }
  .editor-actions {
    justify-content: space-between;
  }
  .editing-pane {
    padding: 22px 16px 30px;
  }
  .preview-pane {
    padding: 24px 16px;
  }
  .block-form {
    padding: 16px;
  }
  .block-header {
    padding: 12px 14px;
  }
  .client-card {
    flex-direction: column;
    align-items: stretch;
  }
  .client-card .row-actions {
    justify-content: space-between;
  }
  .login-layout {
    grid-template-columns: 1fr;
  }
  .login-intro {
    padding: 25px 30px 30px;
  }
  .login-intro .brand {
    margin-bottom: 28px;
  }
  .login-intro .brand-logo {
    width: min(280px, 100%);
  }
  .login-intro h1 {
    font-size: 28px;
    margin-bottom: 14px;
  }
  .login-intro > p {
    font-size: 12px;
    margin-bottom: 0;
  }
  .login-illustration,
  .login-note {
    display: none;
  }
  .login-panel {
    padding: 40px 30px;
  }
  .login-footer {
    margin-top: 35px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.impersonation-banner { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 12px 30px; background: var(--warning-soft); color: #493712; border-bottom: 1px solid #e9cd86; }
.palette-item { display: flex; flex: 1 1 auto; max-width: 100%; }
.palette-item .palette-button { border-radius: 5px 0 0 5px; min-width: 0; }
.block-preview-trigger { display: flex; align-items: center; justify-content: center; flex: 0 0 34px; border: 1px solid var(--line); border-left: 0; border-radius: 0 5px 5px 0; color: var(--brand); background: var(--surface); cursor: pointer; }
.block-preview-trigger:hover, .block-preview-trigger[aria-expanded="true"] { background: var(--brand-soft); }
.block-preview-trigger:focus-visible, .palette-button:focus-visible, .block-preview-close:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.block-preview-panel { position: fixed; inset: auto; margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 10px; box-sizing: border-box; color: var(--text); background: var(--surface); box-shadow: 0 8px 36px #172b3333; z-index: 1000; overflow: auto; }
.block-preview-panel::backdrop { background: transparent; pointer-events: none; }
.block-preview-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.block-preview-header h2 { margin: 0; font-size: 14px; line-height: 1.4; }
.block-preview-close { flex: 0 0 30px; height: 30px; border: 0; border-radius: 5px; background: var(--surface-subtle); color: var(--text); font-size: 22px; cursor: pointer; }
.block-preview-image { display: block; width: 100%; height: auto; max-height: var(--preview-image-height, calc(100dvh - 100px)); object-fit: contain; }
.block-preview-image[hidden] { display: none; }
.block-preview-unavailable { font-size: 13px; line-height: 1.5; }
