:root {
  --blue: #1167f7;
  --blue-dark: #0b4ed0;
  --blue-soft: #eaf3ff;
  --cyan: #12bfe5;
  --ink: #242933;
  --muted: #778295;
  --line: #dfe7f0;
  --surface: #ffffff;
  --workspace: #edf3fa;
  --green: #1ca66c;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  padding: 24px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 12%, rgba(65, 181, 255, 0.72), transparent 31%),
    radial-gradient(circle at 84% 88%, rgba(8, 70, 201, 0.8), transparent 35%),
    linear-gradient(145deg, #b8d8eb 0%, #d8e9f5 48%, #9fc6df 100%);
  color: var(--ink);
  font-family: "Cairo", sans-serif;
}

body::before,
body::after {
  display: none;
}

.app-window {
  position: relative;
  z-index: 1;
  width: min(1440px, calc(100vw - 48px));
  height: min(960px, calc(100vh - 48px));
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 244px;
  grid-template-rows: 82px minmax(0, 1fr);
  grid-template-areas:
    "header sidebar"
    "canvas sidebar";
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 30px;
  background: rgba(247, 250, 254, 0.94);
  box-shadow: 0 28px 80px rgba(25, 68, 119, 0.25);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  direction: ltr;
}

/* Sidebar */
.toolbar {
  grid-area: sidebar;
  position: relative;
  inset: auto;
  width: auto;
  height: auto;
  padding: 25px 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 8px;
  border: 0;
  border-inline-start: 1px solid var(--line);
  border-radius: 0;
  background: rgba(250, 252, 255, 0.96);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  direction: rtl;
}

.toolbar-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 2px 4px 25px;
  margin: 0 0 27px;
  border-bottom: 1px solid var(--line);
}

.toolbar-mark {
  width: 45px;
  height: 45px;
  flex: 0 0 45px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--blue);
  color: #fff;
  padding: 7px;
  box-shadow: 0 8px 18px rgba(17, 103, 247, 0.22);
}

.toolbar-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.toolbar-brand-text {
  min-width: 0;
}

.toolbar-brand-text strong,
.toolbar-brand-text span {
  display: block;
}

.toolbar-brand-text strong {
  overflow: hidden;
  color: #232833;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.55;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.toolbar-brand-text span {
  margin-top: 2px;
  color: #98a2b2;
  font-size: 11px;
  font-weight: 700;
}

.toolbar-section-title {
  padding: 0 10px 7px;
  color: #a0a9b8;
  font-size: 11px;
  font-weight: 800;
}

.trip-mode-switch {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
}

.toolbar .trip-mode-switch .mode-btn {
  min-height: 42px;
  padding: 0 12px;
  justify-content: flex-start;
  border-color: transparent;
  background: transparent;
  color: #727d8f;
  box-shadow: none;
}

.toolbar .trip-mode-switch .mode-btn::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border: 2px solid #aeb9c8;
  border-radius: 50%;
}

.toolbar .trip-mode-switch .mode-btn:hover {
  border-color: #dce6f1;
  background: #f5f8fc;
  color: var(--blue);
}

.toolbar .trip-mode-switch .mode-btn.active {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.toolbar .trip-mode-switch .mode-btn.active::before {
  border-color: #fff;
  background: #fff;
  box-shadow: inset 0 0 0 2px var(--blue);
}

.toolbar button {
  width: 100%;
  min-height: 49px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 11px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: #697486;
  font-family: "Cairo", sans-serif;
  font-size: 13px;
  font-weight: 800;
  box-shadow: none;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease;
}

.toolbar button .button-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  display: inline-flex;
}

.toolbar button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.toolbar button:hover {
  transform: none;
  border-color: #d8e4f1;
  background: #f0f5fb;
  color: var(--blue);
}

.toolbar button:focus-visible {
  outline: 3px solid rgba(17, 103, 247, 0.2);
  outline-offset: 2px;
}

.toolbar .print-btn {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
  box-shadow: 0 9px 18px rgba(17, 103, 247, 0.2);
}

.toolbar .print-btn:hover {
  border-color: var(--blue-dark);
  background: var(--blue-dark);
  color: #fff;
}

.toolbar .edit-btn.is-active {
  border-color: #b8d4ff;
  background: var(--blue-soft);
  color: #0759db;
}

.toolbar .transit-btn,
.toolbar .back-btn {
  margin-top: 4px;
  border-color: #d4e4f4;
  background: #f5f9fd;
  color: #496176;
}

.toolbar .transit-btn:hover,
.toolbar .back-btn:hover {
  border-color: #b9d6f0;
  background: #eaf4fd;
  color: #0a72a5;
}

.toolbar-foot {
  margin-top: auto;
  padding: 16px 10px 3px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: #8d98a9;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.7;
}

.toolbar-foot .status-dot,
.ready-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--green);
}

/* Header */
.marquee-bar {
  grid-area: header;
  position: relative;
  top: auto;
  z-index: 2;
  width: auto;
  min-height: 82px;
  margin: 0;
  padding: 15px 25px;
  display: grid;
  grid-template-columns: auto minmax(180px, 1fr) auto;
  grid-template-areas: "status spacer title";
  align-items: center;
  gap: 18px;
  overflow: hidden;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: rgba(250, 252, 255, 0.96);
  color: var(--ink);
  box-shadow: none;
  letter-spacing: normal;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  direction: ltr;
}

.workspace-heading {
  grid-area: title;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 11px;
  direction: rtl;
}

.workspace-heading-icon {
  width: 41px;
  height: 41px;
  flex: 0 0 41px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue);
}

.workspace-heading-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.workspace-heading span,
.workspace-heading strong {
  display: block;
}

.workspace-heading span {
  color: #9aa4b4;
  font-size: 11px;
  font-weight: 700;
}

.workspace-heading strong {
  margin-top: 1px;
  color: #252a34;
  font-size: 15px;
  font-weight: 900;
}

.marquee-bar .track {
  grid-area: spacer;
  min-width: 0;
  padding: 9px 14px;
  display: block;
  overflow: hidden;
  border: 1px solid #e2e8ef;
  border-radius: 10px;
  background: #f5f8fb;
  white-space: nowrap;
  animation: none;
}

.header-spacer {
  grid-area: spacer;
  min-width: 0;
}

.marquee-bar .track > span {
  display: block;
  overflow: hidden;
  padding: 0;
  color: #748094;
  font-family: "Cairo", sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  text-overflow: ellipsis;
}

.marquee-bar .track > span:not(:first-child) {
  display: none;
}

.marquee-bar .track .highlight {
  color: var(--blue);
}

.ready-badge {
  grid-area: status;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid #dfeae5;
  border-radius: 10px;
  background: #f2faf6;
  color: #24825d;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.ready-badge::before {
  margin-top: 0;
}

/* Main workspace */
.canvas-stage {
  grid-area: canvas;
  position: relative;
  z-index: 1;
  width: auto;
  min-width: 0;
  margin: 0;
  padding: 18px 20px 22px;
  overflow-x: hidden;
  overflow-y: auto;
  border: 0;
  border-radius: 0;
  background: var(--workspace);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  scrollbar-width: thin;
  scrollbar-color: #c0cfdf transparent;
  direction: rtl;
}

.canvas-head {
  width: min(100%, 860px);
  min-height: 51px;
  margin: 0 auto 10px;
  padding: 0 3px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.canvas-title span,
.canvas-title strong {
  display: block;
}

.canvas-title span {
  color: #919cac;
  font-size: 11px;
  font-weight: 700;
}

.canvas-title strong {
  margin-top: 2px;
  color: #333a47;
  font-size: 14px;
  font-weight: 900;
}

.canvas-meta {
  display: flex;
  align-items: center;
  gap: 7px;
}

.canvas-meta span {
  padding: 6px 10px;
  border: 1px solid #d9e2ec;
  border-radius: 8px;
  background: #fff;
  color: #7d899b;
  font-size: 10px;
  font-weight: 800;
  direction: ltr;
}

.preview-shell {
  position: relative;
  width: min(100%, 860px);
  min-height: 40px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  border: 1px solid #dce5ef;
  border-radius: 18px;
  background: #e5edf6;
}

.preview-wrap {
  position: relative;
  left: auto;
  width: 794px;
  height: 1123px;
  flex: 0 0 auto;
  margin: 22px 0 0;
  transform-origin: top center;
}

/* Printable sheet */
.page {
  width: 794px;
  height: 1123px;
  overflow: hidden;
  border: 1px solid #d9e1eb;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(45, 68, 98, 0.16);
}

.page::before {
  width: 100%;
  height: 9px;
  background: var(--blue);
}

.page::after {
  display: none;
}

.content {
  padding: 38px 46px 34px;
  overflow: hidden;
}

.header {
  margin-bottom: 20px;
}

.brand {
  gap: 13px;
}

.logo-box {
  position: relative;
  width: 75px;
  height: 61px;
  padding: 8px;
  border: 0;
  border-radius: 16px;
  background: var(--blue);
  box-shadow: 0 9px 20px rgba(17, 103, 247, 0.18);
}

.logo-box::before {
  content: "";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 28px;
  font-weight: 900;
}

.logo-box img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.logo-box.logo-fallback img {
  display: none;
}

body[data-trip-mode="oneway"] [data-trip-leg="return"],
body[data-trip-mode="return"] [data-trip-leg="outbound"] {
  display: none;
}

.brand-text .small {
  color: #929cab;
  font-size: 12px;
}

.brand-text .name {
  margin-top: 3px;
  color: #242a34;
  font-size: 23px;
  line-height: 1.35;
}

.brand-text .field {
  margin-top: 1px;
  color: var(--blue);
  font-size: 13px;
}

.badge {
  width: 136px;
  min-height: 69px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #f7faff;
  box-shadow: none;
}

.badge .city {
  color: #28303b;
  font-size: 20px;
}

.badge .sub {
  margin-top: 4px;
  color: #8b96a7;
  font-size: 10px;
}

.badge .year {
  margin-top: 3px;
  color: var(--blue);
  font-size: 19px;
}

.main-title {
  position: relative;
  margin-bottom: 14px;
  padding: 0 13px 13px 0;
  border-bottom: 1px solid #e4eaf1;
}

.main-title::before {
  content: "";
  position: absolute;
  top: 3px;
  right: 0;
  width: 4px;
  height: 40px;
  border-radius: 4px;
  background: var(--blue);
}

.main-title h1 {
  color: #242a34;
  font-size: 27px;
  line-height: 1.3;
}

.main-title p {
  margin-top: 5px;
  color: #7f8a9b;
  font-size: 12px;
}

.trip-card {
  position: relative;
  margin-bottom: 11px;
  padding: 13px 15px 14px;
  overflow: hidden;
  border: 1px solid #dfe6ee;
  border-radius: 16px;
  background: #fafcff;
  box-shadow: none;
}

.trip-card::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: #8dc6ff;
}

.trip-head {
  margin-bottom: 10px;
}

.trip-label,
.trip-label.gold {
  gap: 7px;
  padding: 5px 13px;
  border-radius: 9px;
  background: var(--blue-soft);
  color: #075bdc;
  font-size: 12px;
  box-shadow: none;
}

.trip-label.gold {
  background: #fff3df;
  color: #b66b09;
}

.trip-number {
  padding: 5px 9px;
  border: 1px solid #e2e8ef;
  border-radius: 8px;
  background: #fff;
  color: #8d98a8;
  font-size: 10px;
}

.route {
  gap: 13px;
  margin-bottom: 9px;
}

.city-box {
  padding: 9px 9px 10px;
  border: 1px solid #e2e8ef;
  border-radius: 13px;
  background: #fff;
}

.city-box span {
  margin-bottom: 5px;
  color: #929dad;
  font-size: 10px;
}

.city-box b {
  color: #252c37;
  font-size: 18px;
}

.arrow {
  width: 74px;
  height: 2px;
  border-radius: 2px;
  background: var(--blue);
}

.arrow::before {
  top: -23px;
  color: var(--blue);
  font-size: 22px;
  filter: none;
}

.arrow::after {
  border-right-color: var(--blue);
}

.airport {
  margin-bottom: 9px;
  padding: 7px 10px;
  border: 1px dashed #ccd8e5;
  border-radius: 10px;
  background: #f2f6fa;
  color: #59677a;
  font-size: 11px;
}

.info-grid {
  gap: 9px;
}

.info-box {
  padding: 8px 10px;
  border: 1px solid #e3e9f0;
  border-radius: 11px;
  background: #fff;
}

.info-box span {
  margin-bottom: 5px;
  color: #929dad;
  font-size: 10px;
}

.info-box b {
  color: #28303b;
  font-size: 14px;
}

.transit-info-container {
  margin: 3px 0 8px;
}

.transit-info-card {
  padding: 8px 14px;
  border: 1px solid #c8e8ef;
  border-radius: 13px;
  background: #f1fbfd;
  box-shadow: none;
}

.transit-info-card span {
  margin-bottom: 2px;
  color: #21879d;
  font-size: 10px;
}

.transit-info-card b {
  color: #29323e;
  font-size: 14px;
}

.transit-icon {
  margin-bottom: 1px;
  color: #1597b3;
  font-size: 15px;
}

.bottom-grid {
  grid-template-columns: 150px 1fr;
  gap: 11px;
  margin-top: 8px;
}

.weight-card {
  min-height: 108px;
  padding: 12px;
  border-radius: 15px;
  background: var(--blue);
  box-shadow: none;
}

.weight-card span {
  color: rgba(255, 255, 255, 0.8);
  font-size: 11px;
}

.weight-card b {
  margin-top: 8px;
  font-size: 29px;
}

.notes-card {
  min-height: 108px;
  padding: 10px 14px;
  border: 1px solid #dfe6ee;
  border-radius: 15px;
  background: #fafcff;
}

.notes-card h3 {
  margin-bottom: 6px;
  color: #2d3440;
  font-size: 14px;
}

.notes-card li {
  gap: 7px;
  margin-bottom: 2px;
  color: #5b687a;
  font-size: 10.5px;
  line-height: 1.4;
}

.notes-card li::before {
  width: 5px;
  height: 5px;
  margin-top: 5px;
  background: var(--blue);
}

.slogan {
  margin-top: 17px;
  padding: 12px 15px;
  border: 1px solid #dce8f5;
  border-radius: 13px;
  background: #f1f6fd;
}

.slogan p {
  color: #2c3440;
  font-family: "Amiri", "Traditional Arabic", "Scheherazade", serif;
  font-size: 28px;
  font-weight: 900;
  line-height: 1.6;
  letter-spacing: 1.5px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.05);
}

.slogan .highlight {
  color: var(--blue);
}

/* Editing state */
.editing [data-edit] {
  cursor: text;
}

.editing [data-edit]:hover {
  outline: 1px dashed rgba(17, 103, 247, 0.5);
  outline-offset: 3px;
  border-radius: 4px;
}

.editing [data-edit]:focus {
  outline: none;
  background: #eaf3ff;
  box-shadow: 0 0 0 3px rgba(17, 103, 247, 0.18);
}

.app-toast {
  position: fixed;
  z-index: 1000;
  left: 30px;
  bottom: 30px;
  max-width: min(360px, calc(100vw - 40px));
  padding: 12px 16px;
  border-radius: 12px;
  background: #202834;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(24, 39, 61, 0.22);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.app-toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1040px) {
  body {
    padding: 16px;
  }

  .app-window {
    width: calc(100vw - 32px);
    height: calc(100vh - 32px);
    grid-template-columns: minmax(0, 1fr) 216px;
  }

  .toolbar {
    padding-inline: 14px;
  }

  .toolbar-brand-text strong {
    font-size: 12px;
  }

  .marquee-bar {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .marquee-bar .track {
    display: none;
  }
}

@media (max-width: 760px) {
  body {
    display: block;
    padding: 0;
    overflow: auto;
    background: var(--workspace);
  }

  .app-window {
    width: 100%;
    height: auto;
    min-height: 100vh;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    grid-template-areas:
      "sidebar"
      "header"
      "canvas";
    overflow: visible;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    direction: ltr;
  }

  .toolbar {
    min-height: auto;
    padding: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 0;
    border-bottom: 1px solid var(--line);
  }

  .toolbar-brand {
    grid-column: 1 / -1;
    padding: 0 2px 10px;
    margin: 0;
    border-bottom: 0;
  }

  .toolbar-section-title,
  .toolbar-foot {
    display: none;
  }

  .trip-mode-switch {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    margin-bottom: 2px;
  }

  .toolbar .trip-mode-switch .mode-btn {
    min-height: 40px;
    justify-content: center;
    padding: 0 6px;
    font-size: 11px;
  }

  .toolbar .trip-mode-switch .mode-btn::before {
    display: none;
  }

  .toolbar button {
    min-height: 45px;
    justify-content: center;
    padding: 0 10px;
    font-size: 12px;
  }

  .toolbar .transit-btn,
  .toolbar .back-btn {
    grid-column: 1 / -1;
    margin-top: 0;
  }

  .marquee-bar {
    min-height: 68px;
    padding: 11px 14px;
    grid-template-columns: 1fr auto;
    grid-template-areas: "status title";
  }

  .header-spacer {
    display: none;
  }

  .workspace-heading-icon {
    width: 39px;
    height: 39px;
    flex-basis: 39px;
  }

  .ready-badge {
    padding: 7px 9px;
    font-size: 10px;
  }

  .canvas-stage {
    min-height: 0;
    padding: 13px 10px 20px;
    overflow: hidden;
  }

  .preview-shell {
    display: block;
    width: 100%;
    overflow: visible;
    border-radius: 14px;
    background: #fff;
  }

  .preview-wrap {
    position: static;
    width: 100%;
    height: auto;
    margin: 0;
    transform: none !important;
  }

  .page {
    width: 100%;
    height: auto;
    min-height: 0;
    overflow: visible;
    border-radius: 14px;
  }

  .content {
    height: auto;
    min-height: 0;
    padding: 20px 15px 22px;
    display: block;
    overflow: visible;
  }

  .header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
  }

  .brand {
    min-width: 0;
    gap: 9px;
  }

  .logo-box {
    width: 52px;
    height: 48px;
    flex: 0 0 52px;
    padding: 6px;
    border-radius: 12px;
  }

  .brand-text {
    min-width: 0;
  }

  .brand-text .small {
    font-size: 11px;
  }

  .brand-text .name {
    font-size: 16px;
    white-space: normal;
  }

  .brand-text .field {
    font-size: 11px;
  }

  .badge {
    width: 96px;
    min-height: 62px;
    padding: 8px;
    border-radius: 12px;
  }

  .badge .city {
    font-size: 16px;
  }

  .badge .sub {
    font-size: 8px;
  }

  .badge .year {
    font-size: 16px;
  }

  .main-title {
    margin-bottom: 12px;
  }

  .main-title h1 {
    font-size: 22px;
  }

  .main-title p {
    font-size: 13px;
    line-height: 1.7;
  }

  .trip-card {
    padding: 12px;
  }

  .route {
    gap: 7px;
  }

  .arrow {
    width: 42px;
  }

  .city-box b {
    font-size: 16px;
  }

  .airport,
  .info-box span,
  .transit-info-card span {
    font-size: 12px;
  }

  .info-box b,
  .transit-info-card b {
    font-size: 15px;
    line-height: 1.6;
  }

  .bottom-grid {
    grid-template-columns: 1fr;
  }

  .weight-card,
  .notes-card {
    min-height: auto;
  }

  .notes-card li {
    font-size: 13px;
    line-height: 1.7;
  }

  [data-edit][contenteditable="true"] {
    min-height: 1.5em;
    cursor: text;
    touch-action: manipulation;
    -webkit-user-select: text;
    user-select: text;
  }

  .canvas-head {
    min-height: 46px;
    margin-bottom: 7px;
  }

  .canvas-meta span:first-child {
    display: none;
  }

}

@media (max-width: 430px) {
  .toolbar-mark {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    border-radius: 11px;
  }

  .ready-badge {
    width: 34px;
    height: 34px;
    padding: 0;
    justify-content: center;
    font-size: 0;
  }

  .workspace-heading strong {
    font-size: 13px;
  }

  .canvas-title strong {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  @page {
    size: A4;
    margin: 0;
  }

  html,
  body {
    width: 210mm !important;
    height: 297mm !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    overflow: visible !important;
    background: #fff !important;
  }

  .app-window {
    display: block !important;
    width: 210mm !important;
    height: 297mm !important;
    min-height: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
  }

  .toolbar,
  .marquee-bar,
  .canvas-head,
  .app-toast {
    display: none !important;
  }

  .canvas-stage,
  .preview-shell {
    display: block !important;
    width: 210mm !important;
    height: 297mm !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #fff !important;
    box-shadow: none !important;
  }

  .preview-wrap {
    position: relative !important;
    left: auto !important;
    width: 210mm !important;
    height: 297mm !important;
    margin: 0 !important;
    transform: none !important;
  }

  .page {
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  .content {
    padding: 10mm 12mm 9mm !important;
  }
}
