:root {
  --zn-purple: #8b15c9;
  --zn-purple-dark: #7410ad;
  --zn-line: #dedede;
  --zn-paper-line-height: 40px;
  --zn-soft: #f3f3f3;
  --zn-muted: #777;
  --zn-text: #111;
}

* {
  box-sizing: border-box;
}

html,
body,
.zen-app-frame,
.zen-app-frame main {
  height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  color: var(--zn-text);
  background: #fff;
  font-family: Arial, Helvetica, sans-serif;
}

.zn-login-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 32px;
  background:
    radial-gradient(circle at 18% 18%, rgba(139, 21, 201, 0.18), transparent 28%),
    linear-gradient(135deg, #f7f3fb 0%, #eef4ff 48%, #ffffff 100%);
}

.zn-login-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(340px, 1fr);
  width: min(980px, 100%);
  min-height: 560px;
  overflow: hidden;
  border: 1px solid rgba(100, 53, 201, 0.14);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(31, 41, 55, 0.18);
}

.zn-login-brand {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 44px;
  color: #fff;
  background:
    linear-gradient(160deg, rgba(139, 21, 201, 0.94), rgba(81, 45, 168, 0.96)),
    linear-gradient(45deg, #8b15c9, #265bd6);
}

.zn-login-mark {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 26px;
  font-weight: 700;
}

.zn-login-brand h1 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 42px;
  letter-spacing: 0;
}

.zn-login-brand p {
  max-width: 330px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 16px;
  line-height: 1.6;
}

.zn-login-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 54px 58px;
}

.zn-login-card .ui.header {
  margin-bottom: 6px;
  font-size: 30px;
}

.zn-login-muted {
  margin: 0 0 28px;
  color: #697386;
}

.zn-login-card .field {
  margin-bottom: 18px !important;
}

.zn-login-card input {
  min-height: 46px;
}

.zn-login-card .message {
  margin-bottom: 22px !important;
}

.zn-login-row {
  margin-top: 2px;
}

.zn-user-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 32px;
  background: #f5f7fb;
}

.zn-user-card {
  width: min(520px, 100%);
  padding: 32px;
  border: 1px solid #e0e5ef;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(31, 41, 55, 0.12);
}

.zn-form-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 22px;
}

@media (max-width: 760px) {
  .zn-login-page {
    padding: 18px;
  }

  .zn-login-shell {
    grid-template-columns: 1fr;
  }

  .zn-login-brand {
    min-height: 220px;
    padding: 28px;
  }

  .zn-login-card {
    padding: 32px 26px;
  }
}

button,
input {
  font: inherit;
}

.zn-app {
  display: grid;
  grid-template-rows: 34px minmax(0, 1fr) 80px;
  height: 100vh;
  min-width: 0;
  border: 2px solid #efefef;
}

.zn-topbar {
  display: grid;
  position: relative;
  z-index: 20;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 0 26px 0 12px;
  overflow: visible;
  background: var(--zn-purple);
  color: #fff;
}

.zn-topbar-brand {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0;
}

.zn-topbar:has(.zn-user-menu.visible) {
  z-index: 100;
}

.zn-user {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.zn-user .button {
  padding: 6px 11px !important;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.7) inset !important;
}

.zn-fullscreen-button {
  display: inline-grid;
  width: 30px;
  height: 28px;
  place-items: center;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.zn-fullscreen-button:hover,
.zn-fullscreen-button:focus-visible,
.zn-fullscreen-button.active {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.zn-fullscreen-button:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.72);
  outline-offset: 2px;
}

.zn-fullscreen-button i {
  font-size: 14px;
  line-height: 1;
}

.zn-user-menu {
  display: inline-flex !important;
  align-items: center;
  min-height: 28px;
  padding: 4px 8px;
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
}

.zn-user-menu:hover,
.zn-user-menu.active,
.zn-user-menu.visible {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.zn-user-menu:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.72);
  outline-offset: 2px;
}

.zn-user-menu > .text {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
}

.zn-user-menu > .dropdown.icon {
  margin-left: 6px !important;
  color: inherit;
}

.zn-user-menu .menu {
  z-index: 90 !important;
  min-width: 190px !important;
  border-radius: 5px !important;
}

.zn-user-menu .menu > .item {
  transition: background-color 120ms ease, color 120ms ease;
}

.zn-user-menu .menu > .item:hover,
.zn-user-menu .menu > .item:focus {
  background: #f5ebff !important;
  color: var(--zn-purple) !important;
}

.zn-save-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 24px;
  min-width: 32px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  white-space: nowrap;
}

.zn-save-state i {
  font-size: 13px;
  line-height: 1;
}

.zn-cloud-status {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 16px;
  color: currentColor;
}

.zn-cloud-status > .fa-cloud {
  font-size: 18px;
  line-height: 1;
}

.zn-cloud-status .status-badge {
  position: absolute;
  right: -3px;
  bottom: -3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 10px;
  height: 10px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: #16a34a;
  color: #fff;
}

.zn-cloud-status .status-badge i {
  font-size: 6px;
  line-height: 1;
}

.zn-save-state[data-sync-state="saved"] .zn-save-state-text,
.zn-save-state[data-sync-state="syncing"] .zn-save-state-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.zn-save-state[data-sync-state="saved"] {
  background: rgba(22, 163, 74, 0.24);
}

.zn-save-state[data-sync-state="syncing"] {
  background: rgba(245, 158, 11, 0.28);
}

.zn-save-state[data-sync-state="offline"],
.zn-save-state[data-sync-state="error"] {
  background: rgba(220, 38, 38, 0.28);
}

.zn-recovery-modal .content {
  color: #4b5563;
  font-size: 15px;
  line-height: 1.5;
}
.zn-toolbar .zn-font-size .menu.transition,
.zn-toolbar .zn-font-size .menu.visible {
    position: absolute !important;
    top: auto !important;
    bottom: calc(100% + 12px) !important;
    z-index: 99999 !important;

    min-width: 100% !important;

    border-radius: 14px !important;
    box-shadow: 0 18px 42px rgba(31, 41, 55, 0.18) !important;
}
.zn-toolbar,
.zn-toolbar-group {
    overflow: visible !important;
}
.zn-window-button {
  width: 30px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 18px;
}

.zn-toolbar {
  display: flex;
  position: relative;
  grid-row: 3;
  justify-self: center;
  z-index: 70;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
  width: max-content;
  max-width: calc(100% - 36px);
  min-width: 0;
  min-height: 64px;
  margin: 0 auto 8px;
  padding: 9px 12px;
  border: 1px solid rgba(139, 21, 201, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 14px 34px rgba(31, 41, 55, 0.12), 0 2px 8px rgba(139, 21, 201, 0.08);
  overflow-x: auto;
  overflow-y: visible;
  opacity: 1;
  pointer-events: auto;
  scroll-behavior: smooth;
  scrollbar-width: thin;
}

.zn-main {
  grid-row: 2;
}

.zn-toolbar-group {
  display: inline-flex;
  position: relative;
  align-items: center;
  flex: 0 0 auto;
  gap: 4px;
  min-height: 44px;
  padding: 5px;
  border: 1px solid rgba(139, 21, 201, 0.08);
  border-radius: 14px;
  background: rgba(248, 248, 250, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.zn-toolbar-group::before {
  position: absolute;
  top: -8px;
  left: 12px;
  padding: 0 4px;
  background: rgba(255, 255, 255, 0.82);
  color: #7a7282;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  opacity: 0;
  transform: translateY(3px);
  transition: opacity 120ms ease, transform 120ms ease;
}

.zn-toolbar-group:hover::before {
  opacity: 1;
  transform: translateY(0);
}

.zn-toolbar-group-typography::before {
  content: "Type";
}

.zn-toolbar-group-drawing::before {
  content: "Draw";
}

.zn-toolbar-group-content::before {
  content: "Content";
}

.zn-toolbar-group-canvas::before {
  content: "Canvas";
}

.zn-toolbar-group-pdf::before {
  content: "PDF";
}

.zn-toolbar .button {
  display: inline-flex !important;
  align-items: center;
  flex: 0 0 auto;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  margin: 0 !important;
  padding: 0 11px !important;
  border: 0 !important;
  border-radius: 11px !important;
  background: rgba(255, 255, 255, 0.72) !important;
  color: #39313f !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.86) inset, 0 1px 2px rgba(31, 41, 55, 0.06) !important;
  overflow: visible;
  transition: transform 130ms ease, box-shadow 130ms ease, background-color 130ms ease, color 130ms ease;
}

.zn-toolbar .button:hover {
  transform: translateY(-1px);
  background: #fff !important;
  color: var(--zn-purple) !important;
  box-shadow: 0 8px 18px rgba(139, 21, 201, 0.16), 0 0 0 1px rgba(139, 21, 201, 0.12) inset !important;
}

.zn-toolbar .button:active {
  transform: translateY(0);
}

.zn-toolbar .button[data-tooltip]::before,
.zn-toolbar .button[data-tooltip]::after {
  display: none !important;
}

.zn-toolbar .active.button {
  background: linear-gradient(135deg, var(--zn-purple), #6d38f0) !important;
  box-shadow: 0 10px 22px rgba(139, 21, 201, 0.24), 0 0 0 1px rgba(255, 255, 255, 0.22) inset !important;
  color: #fff !important;
}

.zn-font-size {
  flex: 0 0 auto;
  width: 92px !important;
  min-height: 38px !important;
  border: 0 !important;
  border-radius: 11px !important;
  background: rgba(255, 255, 255, 0.72) !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.86) inset, 0 1px 2px rgba(31, 41, 55, 0.06) !important;
}

.zn-font-size.ui.dropdown > .text {
  font-weight: 700;
  color: #39313f;
}

.zn-toolbar .ui.dropdown .menu {
  top: auto !important;
  bottom: calc(100% + 10px) !important;
  border-radius: 14px !important;
  box-shadow: 0 18px 42px rgba(31, 41, 55, 0.18), 0 4px 12px rgba(139, 21, 201, 0.12) !important;
}

.zn-divider {
  display: none;
}

.zn-input-button {
  min-width: 74px !important;
}

.zn-pdf-button {
  position: relative;
  overflow: hidden;
  border-radius: 11px !important;
}
.zn-pdf-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
/* .zn-pdf-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
} */

.zn-pdf-zoom-value {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  justify-content: center;
  min-width: 56px;
  height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(139, 21, 201, 0.08);
  color: #55465f;
  font-size: 12px;
  font-weight: 800;
}

.zn-shape-wrap,
.zn-pen-wrap,
.zn-eraser-wrap,
.zn-lines-wrap,
.zn-ocr-wrap {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
}

.zn-toolbar .zn-pen-wrap,
.zn-toolbar .zn-eraser-wrap,
.zn-toolbar .zn-lines-wrap {
  gap: 0;
}

.zn-toolbar .zn-pen-wrap > .button,
.zn-toolbar .zn-eraser-wrap > .button:first-child,
.zn-toolbar .zn-lines-wrap > .button:first-child {
  width: 38px;
  min-width: 38px;
}

.zn-toolbar .zn-pen-wrap > .button:not(:last-of-type) {
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

.zn-toolbar .zn-pen-wrap > .button:not(:first-child) {
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
}

.zn-toolbar .zn-eraser-wrap > .button:first-child,
.zn-toolbar .zn-lines-wrap > .button:first-child {
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

.zn-toolbar .zn-pen-dropdown-button,
.zn-toolbar .zn-eraser-dropdown-button,
.zn-toolbar .zn-lines-dropdown-button {
  width: 28px;
  min-width: 28px;
  padding-left: 0 !important;
  padding-right: 0 !important;
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
}

.zn-toolbar .zn-pen-dropdown-button .dropdown.icon,
.zn-toolbar .zn-eraser-dropdown-button .dropdown.icon,
.zn-toolbar .zn-lines-dropdown-button .dropdown.icon {
  margin: 0 !important;
}

.zn-highlighter-icon {
  position: relative;
  display: inline-block;
  width: 15px;
  height: 15px;
  transform: rotate(-35deg);
}

.zn-highlighter-icon::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 7px;
  height: 12px;
  border: 1.8px solid currentColor;
  border-radius: 2px 2px 1px 1px;
  background: linear-gradient(to bottom, transparent 0 62%, rgba(242, 176, 0, 0.38) 62% 100%);
}

.zn-highlighter-icon::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 12px;
  width: 9px;
  height: 3px;
  border-radius: 1px;
  background: currentColor;
}

.zn-pen-button span {
  font-size: 12px;
  font-weight: 800;
}

.zn-active-pen-icon,
.zn-palette-pen-icon,
.zn-palette-marker-icon,
.zn-palette-highlighter-icon,
.zn-palette-pencil-icon {
  --pen-color: #000000;
  --pen-width: 2px;
  position: relative;
  display: inline-block;
  width: 28px;
  height: 28px;
}

.zn-palette-pen-icon::before,
.zn-palette-marker-icon::before,
.zn-palette-pencil-icon::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 3px;
  width: 7px;
  height: 18px;
  border: 1px solid #171717;
  border-radius: 3px 3px 1px 1px;
  background: linear-gradient(to bottom, #171717 0 16%, #fff 16% 34%, var(--pen-color) 34% 100%);
}

.zn-palette-pen-icon::after,
.zn-palette-marker-icon::after,
.zn-palette-pencil-icon::after {
  content: "";
  position: absolute;
  left: 12px;
  top: 20px;
  width: 5px;
  height: 6px;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  background: #171717;
}

.zn-active-pen-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  font-size: 18px;
  line-height: 1;
}

.zn-palette-pen-icon::after {
  background: var(--pen-color);
}

.zn-palette-marker-icon::before {
  left: 10px;
  width: 9px;
  border-radius: 2px;
  background: linear-gradient(to bottom, #1c1c1c 0 18%, var(--pen-color) 18% 100%);
}

.zn-palette-marker-icon::after {
  left: 9px;
  top: 21px;
  width: 11px;
  height: 4px;
  clip-path: none;
  border-radius: 1px;
  background: var(--pen-color);
}

.zn-palette-highlighter-icon::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 3px;
  width: 10px;
  height: 17px;
  border: 1px solid #171717;
  border-radius: 2px 2px 1px 1px;
  background: linear-gradient(to bottom, #171717 0 16%, #fff 16% 35%, var(--pen-color) 35% 100%);
}

.zn-palette-highlighter-icon::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 20px;
  width: 17px;
  height: 5px;
  border-radius: 1px;
  background: var(--pen-color);
  opacity: 0.85;
}

.zn-palette-pencil-icon::before {
  border-color: #3d3d3d;
  background: linear-gradient(to bottom, #d8b16f 0 34%, var(--pen-color) 34% 100%);
}

.zn-palette-pencil-icon::after {
  background: #3a2a18;
}

.ui.popup.zn-toolbar-popup {
  z-index: 1000 !important;
  max-width: calc(100vw - 24px);
  padding: 8px 11px !important;
  border: 1px solid rgba(139, 21, 201, 0.16) !important;
  border-radius: 10px !important;
  background: rgba(39, 32, 48, 0.96) !important;
  color: #fff !important;
  text-align: center;
  line-height: 1.25;
  box-shadow: 0 14px 32px rgba(31, 41, 55, 0.22), 0 4px 10px rgba(139, 21, 201, 0.16) !important;
  pointer-events: none;
}

.ui.popup.zn-toolbar-popup::before {
  z-index: -1;
  background: rgba(39, 32, 48, 0.96) !important;
  box-shadow: 1px 1px 0 0 rgba(139, 21, 201, 0.16) !important;
}

.ui.popup.zn-toolbar-popup.visible {
  animation: zn-toolbar-tooltip-in 170ms ease both;
}

@keyframes zn-toolbar-tooltip-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.zn-typography-popover,
.zn-shape-popover,
.zn-pen-popover,
.zn-eraser-popover,
.zn-line-spacing-popover,
.zn-ocr-popover {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 950;
  display: none;
  max-width: calc(100vw - 24px);
  padding: 12px;
  border: 1px solid rgba(139, 21, 201, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 42px rgba(31, 41, 55, 0.18), 0 4px 12px rgba(139, 21, 201, 0.12);
  opacity: 0;
  transform: translateY(4px) scale(0.98);
  transform-origin: bottom center;
}

.zn-shape-popover {
  width: 190px;
}

.zn-typography-popover {
  width: min(380px, calc(100vw - 24px));
  padding: 16px 18px;
  border-color: rgba(31, 41, 55, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  color: #21182b;
}

.zn-typography-popover::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -11px;
  width: 22px;
  height: 22px;
  border-right: 1px solid rgba(31, 41, 55, 0.1);
  border-bottom: 1px solid rgba(31, 41, 55, 0.1);
  background: rgba(255, 255, 255, 0.98);
  transform: translateX(-50%) rotate(45deg);
}

.zn-pen-popover {
  width: 440px;
}

.ui.popup.zn-tool-palette,
.ui.popup.zn-pen-popover {
  position: absolute !important;
  z-index: 1100 !important;
  max-width: calc(100vw - 24px) !important;
  max-height: calc(100vh - 96px) !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  padding: 14px !important;
  border: 1px solid rgba(139, 21, 201, 0.16) !important;
  border-radius: 14px !important;
  background: #fff !important;
  color: #21182b !important;
  box-shadow: 0 22px 46px rgba(31, 41, 55, 0.2), 0 8px 18px rgba(139, 21, 201, 0.12) !important;
  transform: none !important;
}

.ui.popup.zn-tool-palette.visible,
.ui.popup.zn-pen-popover.visible,
.ui.popup.zn-tool-palette.open,
.ui.popup.zn-pen-popover.open {
  display: grid !important;
  gap: 0 !important;
  opacity: 1 !important;
  transform: none !important;
}

.ui.popup.zn-tool-palette::before,
.ui.popup.zn-pen-popover::before {
  background: #fff !important;
  box-shadow: 1px 1px 0 0 rgba(139, 21, 201, 0.16) !important;
}

.zn-eraser-popover {
  width: 230px;
}

.zn-line-spacing-popover {
  width: 190px;
}

.zn-ocr-popover {
  width: 190px;
}

.zn-typography-popover.open,
.zn-shape-popover.open,
.zn-pen-popover.open,
.zn-eraser-popover.open,
.zn-line-spacing-popover.open,
.zn-ocr-popover.open {
  display: grid;
  gap: 7px;
  opacity: 1;
  transform: translateY(0) scale(1);
  animation: zn-popover-up-in 140ms ease;
}

.zn-typography-popover strong,
.zn-shape-popover strong,
.zn-pen-popover strong,
.zn-eraser-popover strong,
.zn-line-spacing-popover strong,
.zn-ocr-popover strong {
  color: #5b5263;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.zn-typography-popover strong {
  color: #21182b;
  font-size: 13px;
}

.zn-type-row,
.zn-type-section {
  display: grid;
  gap: 10px;
}

.zn-type-font-row {
  grid-template-columns: minmax(0, 1fr) 104px;
  align-items: center;
}

.zn-typography-popover .zn-font-size {
  width: 104px !important;
  min-height: 40px !important;
  border: 1px solid #e2e2ea !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: 0 1px 3px rgba(31, 41, 55, 0.04) !important;
}

.zn-typography-popover .zn-font-size.ui.dropdown > .text {
  color: #21182b;
  font-size: 16px;
  font-weight: 800;
}

.zn-typography-popover .zn-font-size .dropdown.icon {
  color: #21182b;
}

.zn-typography-popover .zn-font-size .menu {
  border-radius: 8px !important;
}

.zn-type-divider {
  height: 1px;
  background: #e6e2ec;
}

.zn-type-button-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.zn-type-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 40px;
  border: 1px solid #e4e1e9;
  border-radius: 8px;
  background: #fff;
  color: #201729;
  cursor: pointer;
  font-size: 18px;
  transition: background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease, color 120ms ease;
}

.zn-type-action i.icon {
  width: auto;
  margin: 0 !important;
}

.zn-type-action:hover {
  border-color: rgba(139, 21, 201, 0.25);
  color: var(--zn-purple);
  box-shadow: 0 8px 18px rgba(139, 21, 201, 0.1);
}

.zn-type-action.active {
  border-color: #e6d4fa;
  background: #f3e8ff;
  color: var(--zn-purple);
}

.zn-type-color-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.zn-type-color {
  position: relative;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: var(--swatch);
  cursor: pointer;
}

.zn-type-color.active::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 9px;
  width: 6px;
  height: 11px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}

.zn-shape-option,
.zn-eraser-option,
.zn-line-spacing-option,
.zn-ocr-option {
  display: grid;
  align-items: center;
  width: 100%;
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: #333;
  text-align: left;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease, transform 120ms ease;
}

.zn-shape-option {
  grid-template-columns: 28px 1fr;
  gap: 8px;
  padding: 0 8px;
}

.zn-eraser-option {
  grid-template-columns: 28px 1fr;
  gap: 8px;
  padding: 0 8px;
}

.zn-line-spacing-option {
  grid-template-columns: 28px 1fr;
  gap: 8px;
  padding: 0 8px;
}

.zn-ocr-option {
  grid-template-columns: 28px 1fr;
  gap: 8px;
  padding: 0 8px;
}

.zn-shape-option.active,
.zn-eraser-option.active,
.zn-line-spacing-option.active,
.zn-ocr-option.active {
  border-color: rgba(139, 21, 201, 0.22);
  background: #f3e8ff;
  color: var(--zn-purple);
}

.zn-shape-option:hover,
.zn-eraser-option:hover,
.zn-line-spacing-option:hover,
.zn-ocr-option:hover {
  background: #f8f1ff;
  transform: translateY(-1px);
}

.zn-toolbar-disabled {
  opacity: 0.72;
}

.zn-eraser-size {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 8px 6px 2px;
  color: #555;
  font-size: 13px;
}

.zn-eraser-size input {
  width: 100%;
}

.zn-tool-palette-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  gap: 10px;
  padding: 0 2px 10px;
  border-bottom: 1px solid #ece7f2;
}

.zn-tool-palette-header strong {
  color: #24182d;
  font-size: 15px;
  font-weight: 800;
}

.zn-tool-palette-header span {
  min-width: 0;
  color: #6b6174;
  font-size: 12px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zn-tool-palette-section {
  display: grid;
  gap: 7px;
  padding-top: 11px;
}

.zn-tool-palette-section strong {
  color: #62586b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
}

.zn-pen-color-grid,
.zn-pen-thickness-grid {
  display: grid;
  grid-template-columns: repeat(8, 32px);
  gap: 8px;
}

.zn-pen-color,
.zn-pen-thickness {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease;
}

.zn-pen-color::before,
.zn-pen-thickness::before {
  content: "";
  display: block;
  border-radius: 50%;
}

.zn-pen-color::before {
  width: 22px;
  height: 22px;
  background: var(--pen-color);
  box-shadow: 0 0 0 1px rgba(31, 41, 55, 0.18) inset;
}

.zn-pen-thickness::before {
  width: var(--dot-size);
  height: var(--dot-size);
  background: #24182d;
}

.zn-pen-color:hover,
.zn-pen-thickness:hover,
.zn-highlighter-option:hover {
  background: #fbf8ff;
  transform: translateY(-1px);
}

.zn-pen-color.active,
.zn-pen-thickness.active {
  border-color: var(--zn-purple);
  background: #f3e8ff;
  box-shadow: 0 0 0 1px rgba(139, 21, 201, 0.08) inset;
}

.zn-highlighter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.zn-highlighter-option {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 6px 9px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #fff;
  color: #30263a;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  text-align: left;
  transition: background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease, color 120ms ease, transform 120ms ease;
}

.zn-highlighter-option span {
  display: block;
  width: 30px;
  height: 12px;
  border-radius: 3px;
  background: var(--pen-color);
  opacity: 0.62;
}

.zn-highlighter-option.active {
  border-color: var(--zn-purple);
  background: #f3e8ff;
  color: var(--zn-purple);
  box-shadow: 0 0 0 1px rgba(139, 21, 201, 0.08) inset;
}

@media (max-width: 700px), (max-height: 560px) {
  .zn-pen-popover {
    width: min(360px, calc(100vw - 24px));
  }

  .ui.popup.zn-tool-palette,
  .ui.popup.zn-pen-popover {
    max-height: calc(100vh - 76px) !important;
    padding: 10px !important;
  }

  .zn-pen-color-grid,
  .zn-pen-thickness-grid {
    grid-template-columns: repeat(4, 32px);
  }
}

@keyframes zn-popover-up-in {
  from {
    opacity: 0;
    transform: translateY(4px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.zn-save-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 22px;
  min-width: 32px;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
}

.zn-main {
  display: grid;
  grid-template-columns: 28px 210px minmax(0, 1fr);
  min-height: 0;
  transition: grid-template-columns 160ms ease;
}

.zn-app.notes-panel-collapsed .zn-main {
  grid-template-columns: 28px 0 minmax(0, 1fr);
}

.zn-color-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-top: 10px;
  border-right: 1px solid var(--zn-line);
  background: #fafafa;
}

.zn-notes-panel {
  min-height: 0;
  border-right: 1px solid var(--zn-line);
  background: #f7f7f7;
  overflow: hidden;
  transition: opacity 120ms ease;
}

.zn-app.notes-panel-collapsed .zn-notes-panel {
  opacity: 0;
  pointer-events: none;
}

.zn-new-note {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--zn-line);
}

.zn-new-note input {
  height: 35px;
  border-radius: 0 !important;
}

.zn-note-list {
  height: calc(100vh - 144px);
  overflow-y: auto;
  padding-bottom: 16px;
}

.zn-note-item {
  --note-color: var(--zn-purple);
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 43px;
  padding: 12px 14px;
  border: 0;
  background: transparent;
  color: #000;
  text-align: left;
  cursor: pointer;
}

.zn-note-item::before {
  grid-row: 1;
  width: 10px;
  height: 24px;
  border-radius: 5px;
  background: var(--note-color);
  content: "";
}

.zn-note-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zn-note-delete {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 0;
  background: transparent;
  color: #777;
  cursor: pointer;
}

.zn-note-delete:hover {
  color: #db2828;
}

.zn-note-item:nth-child(6n + 1) {
  --note-color: #22c55e;
}

.zn-note-item:nth-child(6n + 2) {
  --note-color: #db2828;
}

.zn-note-item:nth-child(6n + 3) {
  --note-color: #ce0ca8;
}

.zn-note-item:nth-child(6n + 4) {
  --note-color: #2cc7b5;
}

.zn-note-item:nth-child(6n + 5) {
  --note-color: #2167d5;
}

.zn-note-item:nth-child(6n + 6) {
  --note-color: #f2b000;
}

.zn-note-item.active {
  background: #efd0d5;
}

.zn-note-item:hover {
  background: #ececec;
}

.zn-note-item.active:hover {
  background: #efd0d5;
}

.zn-editor {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(420px, 1fr);
  gap: 22px;
  min-width: 0;
  min-height: 0;
  padding: 10px 38px;
  overflow: hidden;
  background: #fff;
}

.zn-editor.single,
.zn-editor.drawing-only,
.zn-editor.text-only {
  grid-template-columns: minmax(0, 1fr);
}

.zn-editor.single .zn-text-pane,
.zn-editor.drawing-only .zn-text-pane,
.zn-editor.drawing-only .zn-pdf-pane {
  display: none;
}

.zn-editor.text-only .zn-canvas-pane,
.zn-editor.text-only .zn-pdf-pane {
  display: none;
}

.zn-editor.pdf-mode {
  grid-template-columns: minmax(320px, var(--zn-canvas-pane-width, 1fr)) 8px minmax(320px, 1fr);
  gap: 0;
}

.zn-editor.pdf-mode .zn-text-pane {
  display: none;
}

.zn-pane-resizer {
  display: none;
  position: relative;
  min-width: 8px;
  cursor: col-resize;
  touch-action: none;
}

.zn-editor.pdf-mode:not(.pdf-only) .zn-pane-resizer {
  display: block;
}

.zn-pane-resizer::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 3px;
  width: 2px;
  border-radius: 999px;
  background: #d7d7dc;
  transition: background-color 120ms ease, box-shadow 120ms ease;
}

.zn-pane-resizer:hover::before,
.zn-editor.resizing-panes .zn-pane-resizer::before {
  background: var(--zn-purple);
  box-shadow: 0 0 0 3px rgba(139, 21, 201, 0.12);
}

.zn-editor.resizing-panes,
.zn-editor.resizing-panes * {
  cursor: col-resize !important;
  user-select: none;
}

.zn-canvas-pane,
.zn-text-pane,
.zn-pdf-pane {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  border: 1px solid #e0e0e0;
  background: #fff;
}

.zn-pdf-pane {
  display: none;
  position: relative;
  padding: 0;
}

.zn-editor.pdf-mode .zn-pdf-pane {
  display: block;
}

.zn-canvas-pane {
  background: #fdfdfd;
  overflow-anchor: none;
}

.zn-note-title-input {
  display: block;
  width: 100%;
  height: 48px;
  padding: 10px 18px;
  border: 0;
  border-bottom: 1px solid #e0e0e0;
  outline: 0;
  background: #fff;
  color: #111;
  font-size: 24px;
  font-weight: 700;
}

.zn-editor.drawing-only .zn-note-title-input {
  width: 100%;
}

.zn-paper {
  position: relative;
  width: 100%;
  min-height: 820px;
  background-color: #fff;
  background-image:
    linear-gradient(90deg, transparent 63px, #ff8aa0 63px, #ff8aa0 64px, transparent 64px),
    linear-gradient(#dcefff 1px, transparent 1px);
  /* background-size: 100% 100%, 100% 32px; */
  background-size: auto var(--zn-paper-line-height);
  touch-action: none;
}
.zn-canvas-pane .zn-paper {
  width: 100%;
  min-width: 100%;
  max-width: none;
}
.zn-editor.drawing-only .zn-paper {
  width: 100%;
  min-height: max(820px, 100%);
}
/* 1. Ensure the editor wrapper splits containers properly without hiding child tracks */
.zn-editor {
    display: grid !important; /* or flex, depending on your split logic */
    min-width: 0;
}

/* 2. Target the paper ONLY when inside split mode so it retains scrollable dimensions */
.zn-editor:not(.drawing-only) .zn-canvas-pane .zn-paper {
    /* Stop forcing the paper to fit inside the 50% split width */
    width: 1200px;
    min-width: 1200px;
}

/* 3. Force the canvas pane to surface explicit horizontal scrollbars if child clips */
.zn-canvas-pane {
    overflow-x: auto !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch; /* Optional: smooth scrolling for mobile/stylus devices */
}
.zn-paper.hide-lines {
  background-image: none !important;
}

.zn-paper.has-pdf {
  background-position: top center;
  background-repeat: no-repeat;
  background-size: contain;
}

.zn-ink-canvas,
.zn-ink-preview-canvas,
.zn-shape-preview-canvas,
.zn-selection-canvas,
.zn-text-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.zn-ink-canvas {
  z-index: 2;
  cursor: crosshair;
  touch-action: none;
}

.zn-ink-preview-canvas {
  z-index: 3;
  pointer-events: none;
  touch-action: none;
}

.zn-shape-preview-canvas {
  z-index: 4;
  pointer-events: none;
  touch-action: none;
}

.zn-selection-canvas {
  z-index: 5;
  pointer-events: none;
  touch-action: none;
}

.zn-selection-toolbar {
  position: absolute;
  z-index: 8;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-height: 36px;
  padding: 4px;
  border: 1px solid rgba(31, 41, 55, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 28px rgba(31, 41, 55, 0.16);
}

.zn-selection-toolbar[hidden] {
  display: none !important;
}

.zn-selection-toolbar button {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #31283a;
  cursor: pointer;
}

.zn-selection-toolbar button:hover:not(:disabled) {
  background: #f3e8ff;
  color: var(--zn-purple);
}

.zn-selection-toolbar button:disabled {
  color: #a8a1ad;
  cursor: not-allowed;
}

/* .zn-app.pen-cursor .zn-ink-canvas,
.zn-app.pen-cursor .zn-pdf-page-ink-canvas {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cpath d='M20.8 2.8l4.4 4.4-14.7 14.7-5.8 1.4 1.4-5.8L20.8 2.8z' fill='%23111'/%3E%3Cpath d='M18.8 4.8l4.4 4.4' stroke='%23fff' stroke-width='1.8'/%3E%3C/svg%3E") 4 24, crosshair;
} */
.zn-app.pen-cursor .zn-ink-canvas,
.zn-app.pen-cursor .zn-pdf-page-ink-canvas {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Ccircle cx='5' cy='5' r='2.5' fill='%23111111'/%3E%3Ccircle cx='5' cy='5' r='3.5' fill='none' stroke='%23111111' stroke-width='1' stroke-opacity='0.35'/%3E%3C/svg%3E") 5 5, crosshair;
}

.pan-cursor {
  cursor: grab;
}

.pan-cursor.grabbing {
  cursor: grabbing;
}

.zn-app.pan-cursor .zn-canvas-pane,
.zn-app.pan-cursor .zn-pdf-pane,
.zn-app.pan-cursor .zn-pdf-pages,
.zn-app.pan-cursor .zn-pdf-page,
.zn-app.pan-cursor .zn-pdf-page-wrap,
.zn-app.pan-cursor .zn-ink-canvas,
.zn-app.pan-cursor .zn-pdf-page-ink-canvas {
  cursor: grab;
  touch-action: none;
}

.zn-app.pan-cursor.grabbing .zn-canvas-pane,
.zn-app.pan-cursor.grabbing .zn-pdf-pane,
.zn-app.pan-cursor.grabbing .zn-pdf-pages,
.zn-app.pan-cursor.grabbing .zn-pdf-page,
.zn-app.pan-cursor.grabbing .zn-pdf-page-wrap,
.zn-app.pan-cursor.grabbing .zn-ink-canvas,
.zn-app.pan-cursor.grabbing .zn-pdf-page-ink-canvas {
  cursor: grabbing;
}

.zn-app.eraser-cursor .zn-ink-canvas,
.zn-app.eraser-cursor .zn-pdf-page-ink-canvas {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3E%3Cpath d='M17.9 3.8l8.3 8.3-11.8 11.8H7.2l-3.4-3.4L17.9 3.8z' fill='%23ffffff' stroke='%23111' stroke-width='2'/%3E%3Cpath d='M12.9 22.9l-5.8-5.8' stroke='%23111' stroke-width='2'/%3E%3C/svg%3E") 8 24, cell;
}

.zn-app.text-cursor .zn-ink-canvas {
  cursor: text;
}

.zn-app.ocr-select-cursor .zn-ink-canvas {
  cursor: crosshair;
}

.zn-app.lasso-cursor .zn-ink-canvas {
  cursor: crosshair;
}

.zn-app.selection-move-cursor .zn-ink-canvas {
  cursor: move;
}

.zn-text-layer {
  z-index: 6;
  pointer-events: none;
}

.zn-floating-text {
  position: absolute;
  min-width: 180px;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid #bdbdbd;
  background: rgba(255, 255, 255, 0.92);
  outline: 0;
  pointer-events: auto;
  resize: both;
  overflow: auto;
  cursor: text;
}

.zn-floating-text:focus {
  border-color: #7c3aed;
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.18);
  cursor: grab;
}

.zn-floating-text.dragging {
  cursor: grabbing;
  user-select: none;
}

.zn-ocr-modal .content {
  display: grid !important;
  gap: 18px;
}

.zn-ocr-loading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 110px;
}

.zn-ocr-loading[hidden],
.zn-ocr-result[hidden] {
  display: none !important;
}

.zn-ocr-progress {
  grid-column: 1 / -1;
  margin: 4px 0 0 !important;
}

.zn-ocr-result {
  display: grid;
  gap: 18px;
}

.zn-ocr-result h4 {
  margin: 0 0 8px;
  color: #4b4056;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.zn-ocr-preview {
  display: block;
  max-width: 100%;
  max-height: 220px;
  border: 1px solid #dedede;
  border-radius: 6px;
  background: #fff;
  object-fit: contain;
}

.zn-ocr-textarea {
  width: 100%;
  min-height: 160px;
  padding: 12px;
  border: 1px solid #d4d4d5;
  border-radius: 6px;
  color: #111;
  line-height: 1.45;
  resize: vertical;
}

.zn-ocr-font-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}

.zn-ocr-font-section h4 {
  margin: 0;
}

.zn-ocr-font-options {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}

.zn-ocr-font-options .button {
  min-width: 44px;
}

.zn-pdf-placeholder {
  position: absolute !important;
  top: 28px;
  right: 28px;
  z-index: 1;
  width: 250px;
  min-height: 150px !important;
  margin: 0 !important;
}

.zn-paper.has-pdf .zn-pdf-placeholder {
  display: none;
}

.zn-pdf-empty {
  min-height: 180px !important;
  margin: 22px !important;
}

.zn-pdf-pages {
  display: none;
  min-width: 720px;
  padding: 18px;
  background: #f1f1f1;
}

.zn-editor.pdf-only {
  grid-template-columns: minmax(0, 1fr);
}

.zn-editor.pdf-only .zn-canvas-pane,
.zn-editor.pdf-only .zn-text-pane,
.zn-editor.pdf-only .zn-pane-resizer {
  display: none;
}

.zn-editor.pdf-only .zn-pdf-pane {
  display: block;
}
.zn-pdf-page-wrap {
  position: relative;
  margin: 0 auto 18px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.zn-pdf-page {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid #d8d8d8;
  background: #fff;
}

.zn-pdf-page-ink-canvas {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  pointer-events: none;
  touch-action: none;
}

.zn-pdf-page-preview-canvas {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  pointer-events: none;
  touch-action: none;
}

.zn-pdf-pane.annotating .zn-pdf-page-ink-canvas {
  pointer-events: auto;
  cursor: crosshair;
}

.zn-app.highlighter-cursor .zn-pdf-pane.annotating .zn-pdf-page-ink-canvas {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath d='M21 3l8 8-14 14-8-8L21 3z' fill='%23ffe066' stroke='%23111' stroke-width='2'/%3E%3Cpath d='M6 18l8 8-7 2-3-3 2-7z' fill='%23111'/%3E%3Cpath d='M18 6l8 8' stroke='%23ffffff' stroke-width='2'/%3E%3C/svg%3E") 6 26, cell;
}

.zn-pdf-pane.has-pdf .zn-pdf-empty {
  display: none;
}

.zn-pdf-pane.has-pdf .zn-pdf-pages {
  display: block;
}

.zn-text-pane {
  padding: 0;
}

.zn-document {
  width: 1200px;
  min-height: 820px;
  padding: 26px 28px;
  outline: 0;
  color: #000;
  background: #fff;
  line-height: 1.5;
  font-size: 16px;
}

.zn-document:empty::before {
  color: #aaa;
  content: "Start writing your note...";
}

.zn-document p {
  margin: 0 0 12px;
}
.zn-login-mark {
    width: 54px;
    height: 54px;

    background:
        linear-gradient(
            180deg,
            #bb55ff,
            #8e2de2
        );

    border-radius: 14px;

    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    perspective: 800px;

    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,.25),
        0 10px 30px rgba(131, 39, 255, .35);
}

.zn-letter {
    position: absolute;

    color: white;

    font-size: 30px;

    font-weight: 800;

    backface-visibility: hidden;

    transform-style: preserve-3d;

    animation-duration: 3s;

    animation-iteration-count: infinite;

    animation-timing-function: ease-in-out;
}

.zn-letter-z {
    animation-name: rotateZtoN;
}

.zn-letter-n {
    opacity: 0;
    animation-name: rotateNtoZ;
}
.zn-floating-text {
    position: absolute;
    min-width: 120px;
    min-height: 32px;

    outline: none;

    cursor: text;
}

.zn-floating-text:empty::before {
    content: attr(data-placeholder);

    color: #999;

    pointer-events: none;

    font-style: italic;
}
.zn-user-page {
    min-height: calc(100vh - 100px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.zn-users-card {
    width: 100%;
    max-width: 1000px;
    border-radius: 12px !important;
    box-shadow: 0 8px 25px rgba(0,0,0,.08) !important;
}

.zn-users-card table td,
.zn-users-card table th {
    vertical-align: middle !important;
}
.ui.form .field .field-validation-error {
    color: #db2828 !important;
    font-size: 0.9rem;
    margin-top: 4px;
    display: block;
}
@keyframes rotateZtoN {

    0%,
    35% {
        opacity: 1;
        transform: rotateY(0deg);
    }

    50% {
        opacity: 0;
        transform: rotateY(90deg);
    }

    100% {
        opacity: 0;
        transform: rotateY(180deg);
    }
}

@keyframes rotateNtoZ {

    0%,
    35% {
        opacity: 0;
        transform: rotateY(-180deg);
    }

    50% {
        opacity: 1;
        transform: rotateY(-90deg);
    }

    100% {
        opacity: 1;
        transform: rotateY(0deg);
    }
}
@media (max-width: 1300px) {
  .zn-editor {
    padding: 10px 20px;
    gap: 16px;
  }

  .zn-font-size {
    width: 82px !important;
  }

  .zn-toolbar {
    gap: 8px;
    padding: 8px 10px;
  }

  .zn-toolbar-group {
    gap: 3px;
    min-width: max-content;
    padding: 4px;
  }

  .zn-toolbar .button {
    padding-inline: 9px !important;
  }
.zn-pdf-button {
  position: relative;
  overflow: hidden;
  border-radius: 11px !important;
}
 /*  .zn-pdf-button {
    min-width: 42px !important;
    font-size: 0 !important;
  } */

  .zn-pdf-button i {
    margin: 0 !important;
    font-size: 14px !important;
  }
}

@media (max-width: 980px) {
  .zn-toolbar {
    max-width: calc(100% - 20px);
    margin-inline: 10px;
    gap: 6px;
    padding: 8px;
  }

  .zn-font-size {
    width: 74px !important;
  }

  .zn-toolbar-group {
    gap: 2px;
    padding: 4px;
  }

  .zn-toolbar .button {
    padding-inline: 8px !important;
  }

}
