/* [next]/internal/font/google/inter_fe8b9d92.module.css [app-client] (css) */
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/2c55a0e60120577a-s.0bjc5tiuqdqro.woff2") format("woff2");
  unicode-range: U+460-52F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/9c72aa0f40e4eef8-s.0m6w47a4e5dy9.woff2") format("woff2");
  unicode-range: U+301, U+400-45F, U+490-491, U+4B0-4B1, U+2116;
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/ad66f9afd8947f86-s.11u06r12fd6v_.woff2") format("woff2");
  unicode-range: U+1F??;
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/5476f68d60460930-s.0wxq9webf.ew4.woff2") format("woff2");
  unicode-range: U+370-377, U+37A-37F, U+384-38A, U+38C, U+38E-3A1, U+3A3-3FF;
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/2bbe8d2671613f1f-s.067x_6k0k23tk.woff2") format("woff2");
  unicode-range: U+102-103, U+110-111, U+128-129, U+168-169, U+1A0-1A1, U+1AF-1B0, U+300-301, U+303-304, U+308-309, U+323, U+329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/1bffadaabf893a1e-s.16ipb6fqu393i.woff2") format("woff2");
  unicode-range: U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304, U+308, U+329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/83afe278b6a6bb3c-s.p.0q-301v4kxxnr.woff2") format("woff2");
  unicode-range: U+??, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Inter Fallback;
  src: local(Arial);
  ascent-override: 90.44%;
  descent-override: 22.52%;
  line-gap-override: 0.0%;
  size-adjust: 107.12%;
}

.inter_fe8b9d92-module__LINzvG__className {
  font-family: Inter, Inter Fallback;
  font-style: normal;
}

.inter_fe8b9d92-module__LINzvG__variable {
  --font-inter: "Inter", "Inter Fallback";
}

/* [next]/internal/font/google/jetbrains_mono_8dec50e9.module.css [app-client] (css) */
@font-face {
  font-family: JetBrains Mono;
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("../media/13bf9871fe164e7f-s.0s19wthhh_6~m.woff2") format("woff2");
  unicode-range: U+460-52F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: JetBrains Mono;
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("../media/cc545e633e20c56d-s.0dza.stei.9v7.woff2") format("woff2");
  unicode-range: U+301, U+400-45F, U+490-491, U+4B0-4B1, U+2116;
}

@font-face {
  font-family: JetBrains Mono;
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("../media/71b036adf157cdcf-s.03nf~dfjdkf~..woff2") format("woff2");
  unicode-range: U+370-377, U+37A-37F, U+384-38A, U+38C, U+38E-3A1, U+3A3-3FF;
}

@font-face {
  font-family: JetBrains Mono;
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("../media/89b21bb081cb7469-s.0gfhww.tctz1o.woff2") format("woff2");
  unicode-range: U+102-103, U+110-111, U+128-129, U+168-169, U+1A0-1A1, U+1AF-1B0, U+300-301, U+303-304, U+308-309, U+323, U+329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: JetBrains Mono;
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("../media/3fe682a82f50d426-s.09q3q1i5159bl.woff2") format("woff2");
  unicode-range: U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304, U+308, U+329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: JetBrains Mono;
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("../media/70bc3e132a0a741e-s.p.1409xf.ylxg8g.woff2") format("woff2");
  unicode-range: U+??, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: JetBrains Mono Fallback;
  src: local(Arial);
  ascent-override: 75.79%;
  descent-override: 22.29%;
  line-gap-override: 0.0%;
  size-adjust: 134.59%;
}

.jetbrains_mono_8dec50e9-module__V6cRDq__className {
  font-family: JetBrains Mono, JetBrains Mono Fallback;
  font-style: normal;
}

.jetbrains_mono_8dec50e9-module__V6cRDq__variable {
  --font-mono: "JetBrains Mono", "JetBrains Mono Fallback";
}

/* [project]/src/app/globals.css [app-client] (css) */
:root {
  --bg: #f4f7fb;
  --bg-2: #eef3f9;
  --surface: #fff;
  --ink: #0f172a;
  --ink-muted: #475569;
  --line: #e2e8f0;
  --primary: #1d4ed8;
  --primary-2: #2563eb;
  --radius: 12px;
  --shadow-soft: 0 16px 40px #0f172a14;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  max-width: 100vw;
  min-height: 100%;
  overflow-x: hidden;
}

body {
  color: var(--ink);
  background: radial-gradient(circle at 20% 10%, #dbeafe 0, transparent 34%),
    radial-gradient(circle at 84% 20%, #bfdbfe 0, transparent 34%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
  font-family: var(--font-inter), system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input {
  font: inherit;
}

button {
  cursor: pointer;
  border: 1px solid #0000;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 700;
  transition: transform .2s, box-shadow .2s;
}

button:hover, a.primary:hover {
  transform: translateY(-1px);
}

button:disabled {
  cursor: not-allowed;
  opacity: .55;
  transform: none;
}

input {
  border: 1px solid var(--line);
  width: 100%;
  color: var(--ink);
  background: #fff;
  border-radius: 10px;
  outline: none;
  padding: 8px 10px;
  font-size: 14px;
}

input:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px #3b82f626;
}

label {
  color: var(--ink-muted);
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  display: grid;
}

.glass {
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-soft);
  background: #ffffffd1;
  border: 1px solid #e2e8f0eb;
}

.primary, a.primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  border: 1px solid #0000;
  border-radius: 10px;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  font-size: 14px;
  display: inline-flex;
  box-shadow: 0 10px 24px #2563eb4d;
}

.secondary {
  color: var(--ink);
  border-color: var(--line);
  background: #fff;
  justify-content: center;
  align-items: center;
  gap: 8px;
  display: inline-flex;
}

.danger {
  color: #b91c1c;
  background: #fff;
  border-color: #fecaca;
  justify-content: center;
  align-items: center;
  gap: 8px;
  display: inline-flex;
}

.hint {
  color: var(--ink-muted);
  font-size: 13px;
}

.brand {
  align-items: center;
  gap: 12px;
  height: 64px;
  margin: 0;
  display: flex;
}

.brand-mark {
  color: var(--ink);
  align-items: center;
  gap: 12px;
  display: inline-flex;
}

.brand-icon {
  background: radial-gradient(circle at 30% 18%, #fff9, #0000 32%), linear-gradient(145deg, #1e40af, #2563eb 58%, #0f766e);
  border-radius: 18px;
  place-items: center;
  width: 56px;
  height: 56px;
  display: grid;
  box-shadow: 0 16px 34px #2563eb47;
}

.brand-icon svg {
  width: 39px;
  height: 39px;
  overflow: visible;
}

.brand-page {
  fill: #fffffff0;
  stroke: #fffffff5;
  stroke-width: 1.6px;
}

.brand-fold, .brand-line, .brand-sign {
  fill: none;
  stroke: #1d4ed8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-fold {
  stroke-width: 2px;
}

.brand-line {
  stroke-width: 3px;
  stroke-dasharray: 24;
  animation: 3.8s ease-in-out infinite brand-line-write;
}

.brand-line-b {
  animation-delay: .22s;
}

.brand-sign {
  stroke: #0f766e;
  stroke-width: 2.5px;
  stroke-dasharray: 28;
  animation: 3.8s ease-in-out infinite brand-sign-write;
}

.brand-copy {
  gap: 2px;
  line-height: 1.1;
  display: grid;
}

.brand-copy strong {
  letter-spacing: 0;
  font-size: 19px;
  font-weight: 950;
}

.brand-copy small {
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 650;
}

@keyframes brand-line-write {
  0%, 16% {
    stroke-dashoffset: 24px;
    opacity: .45;
  }

  38%, 82% {
    stroke-dashoffset: 0;
    opacity: 1;
  }

  100% {
    stroke-dashoffset: 0;
    opacity: .7;
  }
}

@keyframes brand-sign-write {
  0%, 42% {
    stroke-dashoffset: 28px;
    opacity: 0;
  }

  64%, 86% {
    stroke-dashoffset: 0;
    opacity: 1;
  }

  100% {
    stroke-dashoffset: 0;
    opacity: .75;
  }
}

.login-shell {
  place-items: center;
  min-height: 100vh;
  padding: 24px;
  display: grid;
}

.login-panel {
  border-radius: var(--radius);
  gap: 24px;
  width: min(460px, 100%);
  padding: 22px;
  display: grid;
}

.login-copy {
  gap: 10px;
  display: grid;
}

.login-copy h2 {
  max-width: 360px;
  font-size: 32px;
  line-height: 1.08;
}

.login-copy p {
  color: var(--ink-muted);
  line-height: 1.55;
}

.action-wide {
  width: 100%;
}

.secure-note {
  align-items: center;
  gap: 8px;
  display: flex;
}

.app-shell {
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 16px;
  min-height: 100vh;
  padding: 16px;
  display: grid;
}

.sidebar {
  border-radius: var(--radius);
  align-content: start;
  align-self: start;
  gap: 16px;
  margin: 0;
  padding: 0 16px 16px;
  display: grid;
}

.panel-section {
  gap: 12px;
  display: grid;
}

.panel-section h2, .properties h2 {
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink-muted);
  font-size: 14px;
}

.upload-box {
  text-align: center;
  min-height: 118px;
  color: var(--primary);
  cursor: pointer;
  background: #eff6ff;
  border: 1px dashed #93c5fd;
  border-radius: 14px;
  place-items: center;
  padding: 16px;
  display: grid;
}

.upload-box input {
  display: none;
}

.upload-box small {
  color: var(--ink-muted);
}

.status-line {
  border: 1px solid var(--line);
  border-radius: 10px;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
}

.status-line.ok {
  color: #166534;
  background: #f0fdf4;
  border-color: #86efac;
}

.status-line.error {
  color: #991b1b;
  background: #fef2f2;
  border-color: #fecaca;
}

.login-nudge {
  color: #1e40af;
  background: #eff6ff;
  border: 1px solid #93c5fd;
  border-radius: 12px;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px;
  font-size: 13px;
  display: flex;
}

.login-nudge p {
  margin: 0;
  line-height: 1.4;
}

.login-nudge button {
  align-self: flex-start;
}

.field-stack {
  gap: 10px;
  display: grid;
}

.insert-field {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
  display: grid;
}

.insert-actions {
  gap: 6px;
  padding-bottom: 1px;
  display: flex;
}

.icon-button {
  width: 42px;
  height: 42px;
  color: var(--primary);
  border-color: var(--line);
  background: #fff;
  place-items: center;
  padding: 0;
  display: inline-grid;
}

.field-name-input {
  min-height: 0;
  color: var(--ink-muted);
  background: none;
  border: 0;
  padding: 0;
  font-size: 14px;
  font-weight: 700;
}

.signature-upload {
  border: 1px solid var(--line);
  min-height: 42px;
  color: var(--ink);
  cursor: pointer;
  background: #fff;
  border-radius: 12px;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  display: flex;
}

.signature-upload input, .signature-draw-mobile, .signature-drawer-backdrop {
  display: none;
}

.signature-preview {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 10px;
}

.signature-preview img {
  object-fit: contain;
  max-width: 100%;
  max-height: 90px;
  display: block;
}

.sticker {
  text-align: left;
  color: var(--ink);
  border-color: var(--line);
  background: #fff;
  align-items: center;
  gap: 8px;
  display: flex;
}

.workspace {
  grid-template-rows: auto minmax(0, 1fr);
  gap: 16px;
  min-height: calc(100vh - 32px);
  margin: 0;
  display: grid;
}

.topbar {
  border-radius: var(--radius);
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  height: 64px;
  margin: 0;
  padding: 0 14px;
  display: flex;
}

.user-chip, .toolbar-actions, .price-chip {
  align-items: center;
  gap: 10px;
  display: flex;
}

.toolbar-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.user-chip {
  min-width: 0;
  color: var(--ink-muted);
}

.user-chip span {
  color: var(--ink);
  font-weight: 700;
}

.user-chip b, .price-chip {
  color: var(--primary);
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
}

.editor-grid {
  grid-template-columns: minmax(0, 1fr) 230px;
  align-items: start;
  gap: 16px;
  display: grid;
}

.pdf-stage, .properties {
  border-radius: var(--radius);
}

.pdf-stage {
  place-items: start center;
  padding: 12px;
  display: grid;
}

.empty-document {
  aspect-ratio: 1 / 1.35;
  border: 1px solid var(--line);
  text-align: center;
  width: min(560px, 100%);
  color: var(--ink-muted);
  background: #fff;
  border-radius: 8px;
  align-content: center;
  place-items: center;
  gap: 12px;
  display: grid;
  box-shadow: 0 20px 50px #0f172a1f;
}

.empty-document h2 {
  color: var(--ink);
}

.pdf-editor {
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  display: grid;
}

.pdf-editor-toolbar {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px;
  display: flex;
}

.pdf-editor-page-actions, .pdf-editor-zoom {
  align-items: center;
  gap: 10px;
  display: flex;
}

.pdf-editor-page-actions span, .pdf-editor-zoom b {
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 800;
}

.pdf-editor-zoom {
  grid-auto-flow: column;
  font-size: 13px;
}

.pdf-editor-zoom input {
  width: 150px;
  padding: 0;
}

.pdf-editor-status {
  color: var(--primary);
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 800;
}

.pdf-editor-status[hidden] {
  visibility: hidden;
  border: 0;
  min-height: 0;
  padding: 0;
  display: block;
}

.pdf-editor-scroll {
  border: 1px solid var(--line);
  background: #dbe3ef;
  border-radius: 12px;
  padding: 10px;
}

.pdf-editor-page {
  background: #fff;
  margin: 0 auto;
  position: relative;
  box-shadow: 0 20px 50px #0f172a33;
}

.pdf-editor-canvas, .pdf-editor-overlay {
  position: absolute;
  inset: 0;
}

.pdf-editor-canvas {
  display: block;
}

.sr-only {
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  position: absolute;
  overflow: hidden;
}

.properties {
  align-content: start;
  gap: 14px;
  padding: 18px;
  display: grid;
}

.tool-row {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  font-weight: 700;
  display: flex;
}

.tool-row.active {
  color: var(--primary);
  background: #eff6ff;
  border-color: #93c5fd;
}

.action-toast {
  z-index: 60;
  min-width: 260px;
  max-width: min(360px, 100vw - 32px);
  color: var(--primary);
  background: linear-gradient(90deg, #2563eb24, #0000 36%), #fff;
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 14px;
  animation: 2.2s both toast-pop;
  display: flex;
  position: fixed;
  bottom: 24px;
  right: 24px;
  box-shadow: 0 18px 50px #0f172a2e;
}

.action-toast span {
  gap: 2px;
  display: grid;
}

.action-toast b {
  color: var(--ink);
  font-size: 14px;
}

.action-toast small {
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 700;
}

@keyframes toast-pop {
  0% {
    opacity: 0;
    transform: translateY(14px)scale(.98);
  }

  12%, 82% {
    opacity: 1;
    transform: translateY(0)scale(1);
  }

  100% {
    opacity: 0;
    transform: translateY(10px)scale(.99);
  }
}

.preview-modal {
  z-index: 50;
  background: #eef3f9;
  grid-template-rows: auto minmax(0, 1fr);
  display: grid;
  position: fixed;
  inset: 0;
}

.preview-bar {
  border-bottom: 1px solid var(--line);
  background: #fffffff0;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 10px 14px;
  display: flex;
}

.preview-canvas-wrap {
  align-content: start;
  justify-items: center;
  min-height: 0;
  padding: 16px;
  display: grid;
  overflow: auto;
}

.preview-page {
  background: #fff;
  position: relative;
  box-shadow: 0 18px 60px #0f172a38;
}

.preview-page .pdf-editor-canvas {
  z-index: 0;
}

.preview-element {
  z-index: 2;
  color: var(--ink);
  white-space: pre-wrap;
  align-items: center;
  padding: 6px;
  line-height: 1.15;
  display: flex;
  position: absolute;
  overflow: hidden;
}

.preview-element-mask {
  background: #fff;
  padding: 0;
}

.preview-element-signature {
  padding: 0;
}

.preview-element-signature img {
  object-fit: contain;
  width: 100%;
  height: 100%;
}

.preview-demo-watermark {
  z-index: 12;
  pointer-events: none;
  color: #33415538;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
  text-shadow: 0 1px #ffffff73;
  -webkit-user-select: none;
  user-select: none;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  align-content: space-around;
  gap: 34px 22px;
  padding: 5%;
  font-size: clamp(16px, 2.5vw, 34px);
  font-weight: 800;
  display: grid;
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.preview-demo-watermark span {
  white-space: nowrap;
  display: block;
  transform: rotate(-24deg);
}

.preview-button-short {
  display: none;
}

@media (max-width: 980px) {
  html, body {
    overflow: hidden auto;
  }

  .app-shell, .editor-grid {
    grid-template-columns: 1fr;
  }

  .app-shell {
    gap: 14px;
    width: 100%;
    max-width: 100vw;
    height: auto;
    min-height: 100vh;
    padding: 14px;
    overflow: hidden visible;
  }

  .sidebar, .workspace, .topbar, .editor-grid, .pdf-stage, .properties {
    width: 100%;
    min-width: 0;
  }

  .sidebar {
    gap: 18px;
    min-height: auto;
    max-height: none;
    padding: 16px;
    position: static;
  }

  .brand {
    width: 100%;
    height: auto;
    min-height: 56px;
  }

  .brand-mark, .brand-copy {
    min-width: 0;
  }

  .brand-copy strong, .brand-copy small {
    overflow-wrap: anywhere;
  }

  .brand-icon {
    border-radius: 16px;
    width: 50px;
    height: 50px;
  }

  .brand-icon svg {
    width: 35px;
    height: 35px;
  }

  .brand-copy strong {
    font-size: 18px;
  }

  .brand-copy small {
    font-size: 12px;
  }

  .panel-section {
    gap: 10px;
    width: 100%;
    min-width: 0;
  }

  .upload-box {
    width: 100%;
    max-width: 100%;
    min-height: 104px;
    padding: 14px;
  }

  .status-line, .field-stack, .insert-field, .signature-upload, .signature-draw-mobile, .signature-preview, .sticker, .action-wide {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .workspace {
    gap: 14px;
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    height: auto;
    min-height: 0;
    padding: 14px;
  }

  .user-chip {
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
  }

  .user-chip span {
    overflow-wrap: anywhere;
    min-width: 0;
  }

  .toolbar-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    display: grid;
  }

  .toolbar-actions > *, .toolbar-actions form, .toolbar-actions form button {
    width: 100%;
    min-width: 0;
  }

  .toolbar-actions button, .toolbar-actions .price-chip {
    min-height: 44px;
  }

  .price-chip {
    justify-content: center;
  }

  .editor-grid {
    gap: 14px;
  }

  .pdf-stage {
    align-items: start;
    height: auto;
    min-height: 360px;
    padding: 10px;
  }

  .preview-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .pdf-editor {
    gap: 8px;
  }

  .pdf-editor-toolbar {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 10px;
    padding: 10px;
    display: grid;
  }

  .pdf-editor-page-actions, .pdf-editor-zoom {
    justify-content: space-between;
  }

  .pdf-editor-zoom {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    display: grid;
  }

  .pdf-editor-zoom input {
    width: 100%;
  }

  .pdf-editor-scroll {
    max-width: 100%;
    padding: 8px;
    overflow-x: auto;
  }

  .properties {
    gap: 12px;
    padding: 16px;
  }
}

@media (max-width: 980px) and (max-height: 520px) and (orientation: landscape) {
  .preview-modal {
    grid-template-rows: auto minmax(0, 1fr);
    height: 100dvh;
    min-height: 100svh;
    overflow: hidden;
  }

  .preview-bar {
    grid-template-columns: auto minmax(120px, 1fr) auto;
    align-items: center;
    gap: 8px;
    min-height: 0;
    padding: 6px 8px;
    display: grid;
  }

  .preview-bar .pdf-editor-page-actions {
    white-space: nowrap;
    gap: 6px;
  }

  .preview-bar .pdf-editor-page-actions button, .preview-bar .toolbar-actions button {
    min-height: 36px;
    padding: 7px 9px;
    font-size: 12px;
  }

  .preview-button-full, .preview-bar .price-chip, .preview-bar .zoom-label {
    display: none;
  }

  .preview-button-short {
    display: inline;
  }

  .preview-bar .pdf-editor-zoom {
    grid-template-columns: minmax(80px, 1fr) auto;
    gap: 8px;
    min-width: 0;
    display: grid;
  }

  .preview-bar .pdf-editor-zoom input {
    width: 100%;
    min-width: 0;
  }

  .preview-bar .toolbar-actions {
    align-items: center;
    gap: 6px;
    width: auto;
    display: flex;
  }

  .preview-bar .toolbar-actions .primary {
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 150px;
    overflow: hidden;
  }

  .preview-bar .toolbar-actions .icon-button {
    width: 36px;
    min-width: 36px;
    padding: 0;
  }

  .preview-canvas-wrap {
    align-content: center;
    min-height: 0;
    padding: 8px;
    overflow: auto;
  }
}

@media (max-width: 640px) {
  button, .primary, a.primary, .secondary {
    min-height: 44px;
  }

  .app-shell {
    gap: 10px;
    padding: 10px;
  }

  .sidebar, .topbar, .pdf-stage, .properties {
    border-radius: 10px;
  }

  .toolbar-actions {
    grid-template-columns: 1fr;
  }

  .insert-field {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .insert-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-bottom: 0;
    display: grid;
  }

  .icon-button {
    width: 100%;
  }

  .pdf-stage {
    min-height: 320px;
  }

  .empty-document {
    aspect-ratio: auto;
    min-height: 360px;
  }

  .preview-bar {
    padding: 12px;
  }

  .preview-bar .toolbar-actions {
    grid-template-columns: 1fr;
  }

  .action-toast {
    max-width: calc(100vw - 20px);
    bottom: 10px;
    right: 10px;
  }
}

@media (max-width: 760px), (max-width: 980px) and (max-height: 520px) and (orientation: landscape) {
  .signature-draw-mobile {
    display: inline-flex;
  }

  .signature-drawer-backdrop {
    z-index: 90;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    background: #0f172a6b;
    place-items: stretch stretch;
    padding: 12px;
    display: grid;
    position: fixed;
    inset: 0;
  }

  .signature-drawer {
    background: linear-gradient(#fff 0%, #f8fafc 100%);
    border: 1px solid #94a3b857;
    border-radius: 18px;
    grid-template-rows: auto auto minmax(220px, 1fr) auto;
    gap: 12px;
    width: 100%;
    min-width: 0;
    max-width: 520px;
    max-height: 100%;
    margin: auto;
    padding: 14px;
    display: grid;
    box-shadow: 0 22px 70px #0f172a3d;
  }

  .signature-drawer-header {
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    display: flex;
  }

  .signature-drawer-header span, .signature-landscape-note {
    align-items: center;
    gap: 8px;
    display: inline-flex;
  }

  .signature-drawer-header b {
    color: var(--ink);
    font-size: 17px;
  }

  .signature-landscape-note {
    color: var(--ink-muted);
    background: #ecfdf5ad;
    border: 1px solid #1c6a8529;
    border-radius: 12px;
    margin: 0;
    padding: 10px 12px;
    font-size: 13px;
    line-height: 1.35;
  }

  .signature-canvas-wrap {
    background-color: #fff;
    background-image: linear-gradient(#0000 calc(100% - 1px), #94a3b833 1px), none;
    background-position: 0 0, 0 0;
    background-repeat: repeat, repeat;
    background-size: 100% 64px;
    background-attachment: scroll, scroll;
    background-origin: padding-box, padding-box;
    background-clip: border-box, border-box;
    border: 1px solid #94a3b86b;
    border-radius: 14px;
    min-height: 220px;
    position: relative;
    overflow: hidden;
  }

  .signature-baseline {
    z-index: 0;
    pointer-events: none;
    background: #64748b52;
    height: 1px;
    position: absolute;
    bottom: 34%;
    left: 18px;
    right: 18px;
  }

  .signature-baseline span {
    color: #64748b9e;
    letter-spacing: 0;
    font-size: 12px;
    font-weight: 700;
    position: absolute;
    bottom: 8px;
    right: 0;
  }

  .signature-canvas {
    z-index: 1;
    touch-action: none;
    width: 100%;
    height: 100%;
    display: block;
    position: relative;
  }

  .signature-drawer-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    display: grid;
  }

  .signature-drawer-actions .primary {
    grid-column: 1 / -1;
  }
}

@media (max-width: 980px) and (max-height: 520px) and (orientation: landscape) {
  .signature-draw-mobile {
    display: inline-flex;
  }

  .signature-drawer-backdrop {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: #fff;
    height: 100dvh;
    min-height: 100svh;
    padding: 0;
    overflow: hidden;
  }

  .signature-drawer {
    width: 100%;
    max-width: none;
    height: 100dvh;
    min-height: 100svh;
    max-height: none;
    box-shadow: none;
    box-sizing: border-box;
    padding: 10px 12px max(10px, env(safe-area-inset-bottom));
    background: #fff;
    border: 0;
    border-radius: 0;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 8px;
    margin: 0;
    overflow: hidden;
  }

  .signature-drawer-header {
    min-height: 40px;
  }

  .signature-landscape-note {
    display: none;
  }

  .signature-canvas-wrap {
    height: 100%;
    min-height: 0;
  }

  .signature-drawer-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-self: end;
    gap: 16px;
  }

  .signature-drawer-actions .primary {
    grid-column: auto;
  }
}

/*# sourceMappingURL=%5Broot-of-the-server%5D__0uhej2v._.css.map*/