.fwb-open {
  overflow: hidden !important;
}

.fwb-shell,
.fwb-shell *,
.fwb-shell *::before,
.fwb-shell *::after {
  box-sizing: border-box;
}

.fwb-shell {
  --fwb-ink: #14231f;
  --fwb-muted: #64746f;
  --fwb-line: #dce6e2;
  --fwb-soft: #f4f8f6;
  --fwb-brand: #087563;
  --fwb-brand-dark: #075b4e;
  --fwb-accent: #f2a93b;
  --fwb-danger: #b42318;
  --fwb-shadow: 0 28px 80px rgb(9 42 35 / 20%);
  position: fixed;
  inset: 0;
  z-index: 12000;
  color: var(--fwb-ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

.fwb-shell[hidden] {
  display: none !important;
}

.fwb-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 10%, rgb(74 222 179 / 18%), transparent 32rem),
    rgb(5 26 22 / 72%);
  backdrop-filter: blur(9px);
}

.fwb-dialog {
  position: absolute;
  inset: clamp(10px, 2vw, 24px);
  display: flex;
  flex-direction: column;
  max-width: 1600px;
  margin: auto;
  overflow: hidden;
  background: #f7faf9;
  border: 1px solid rgb(255 255 255 / 56%);
  border-radius: 24px;
  box-shadow: var(--fwb-shadow);
}

.fwb-dialog:focus {
  outline: none;
}

.fwb-header {
  display: grid;
  grid-template-columns: minmax(170px, 0.7fr) minmax(260px, 1.6fr) auto;
  align-items: center;
  gap: 24px;
  min-height: 86px;
  padding: 14px 22px;
  color: white;
  background:
    linear-gradient(115deg, rgb(4 91 76 / 98%), rgb(8 117 99 / 96%)),
    var(--fwb-brand);
}

.fwb-brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.fwb-brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: #064e42;
  font-size: 21px;
  font-weight: 900;
  background: linear-gradient(145deg, #fff, #d8fbef);
  border-radius: 12px;
  box-shadow: 0 6px 18px rgb(0 31 25 / 22%);
}

.fwb-brand-copy {
  display: flex;
  flex-direction: column;
}

.fwb-brand-copy b {
  font-size: 16px;
  letter-spacing: -0.02em;
}

.fwb-brand-copy small {
  color: rgb(255 255 255 / 72%);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.fwb-heading-copy {
  min-width: 0;
}

.fwb-heading-copy h1 {
  margin: 0;
  overflow: hidden;
  font-size: clamp(19px, 2vw, 27px);
  line-height: 1.12;
  letter-spacing: -0.035em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fwb-heading-copy p {
  margin: 5px 0 0;
  overflow: hidden;
  color: rgb(255 255 255 / 75%);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fwb-icon-button {
  display: inline-grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  color: inherit;
  font: inherit;
  font-size: 24px;
  line-height: 1;
  background: rgb(255 255 255 / 14%);
  border: 1px solid rgb(255 255 255 / 24%);
  border-radius: 12px;
  cursor: pointer;
  transition:
    transform 140ms ease,
    background 140ms ease;
}

.fwb-icon-button:hover:not(:disabled) {
  background: rgb(255 255 255 / 24%);
  transform: translateY(-1px);
}

.fwb-icon-button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.fwb-icon-button:focus-visible,
.fwb-button:focus-visible,
.fwb-text-button:focus-visible,
.fwb-file-button:focus-within {
  outline: 3px solid #f8c56f;
  outline-offset: 2px;
}

.fwb-privacy {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  color: #31534a;
  background: #eaf8f3;
  border-bottom: 1px solid #d5ebe3;
}

.fwb-privacy-icon {
  display: grid;
  flex: 0 0 24px;
  place-items: center;
  width: 24px;
  height: 24px;
  color: white;
  font-size: 12px;
  font-weight: 900;
  background: var(--fwb-brand);
  border-radius: 50%;
}

.fwb-privacy div {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 8px;
  font-size: 11px;
  line-height: 1.35;
}

.fwb-privacy strong {
  color: #123d33;
}

.fwb-workspace {
  display: grid;
  flex: 1 1 auto;
  grid-template-columns: minmax(420px, 0.93fr) minmax(460px, 1.07fr);
  min-height: 0;
}

.fwb-panel {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
}

.fwb-panel-editor {
  background: white;
  border-right: 1px solid var(--fwb-line);
}

.fwb-panel-preview {
  background:
    linear-gradient(rgb(255 255 255 / 18%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 18%) 1px, transparent 1px),
    #eaf0ed;
  background-size: 24px 24px;
}

.fwb-panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 67px;
  padding: 12px 20px;
  background: rgb(255 255 255 / 84%);
  border-bottom: 1px solid var(--fwb-line);
  backdrop-filter: blur(8px);
}

.fwb-panel-heading > div > span {
  display: block;
  margin-bottom: 2px;
  color: var(--fwb-brand);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.fwb-panel-heading h2 {
  margin: 0;
  color: #20302c;
  font-size: 14px;
  line-height: 1.25;
}

.fwb-local-pill,
.fwb-live-pill {
  flex: 0 0 auto;
  padding: 5px 8px;
  color: #32635a;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #eaf8f3;
  border: 1px solid #cde9df;
  border-radius: 999px;
}

.fwb-live-pill::before {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 5px;
  background: #12a17f;
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 3px rgb(18 161 127 / 14%);
}

.fwb-editor,
.fwb-preview-pane {
  min-height: 0;
  padding: 20px;
  overflow: auto;
  overscroll-behavior: contain;
}

.fwb-form {
  display: grid;
  gap: 18px;
}

.fwb-fieldset {
  min-width: 0;
  margin: 0 0 18px;
  padding: 16px;
  background: white;
  border: 1px solid var(--fwb-line);
  border-radius: 16px;
  box-shadow: 0 5px 18px rgb(20 50 43 / 4%);
}

.fwb-fieldset legend {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px 0 0;
  color: #20332e;
  font-size: 13px;
  font-weight: 800;
}

.fwb-fieldset legend span {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  color: var(--fwb-brand);
  font-size: 9px;
  background: #e8f6f1;
  border-radius: 8px;
}

.fwb-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.fwb-field {
  min-width: 0;
}

.fwb-field-full {
  grid-column: 1 / -1;
}

.fwb-field > label:not(.fwb-dropzone) {
  display: flex;
  align-items: center;
  gap: 3px;
  margin: 0 0 6px;
  color: #3a4e48;
  font-size: 11px;
  font-weight: 700;
}

.fwb-field label em {
  color: #c24136;
  font-style: normal;
}

.fwb-sensitive {
  margin-left: auto;
  padding: 2px 5px;
  color: #87520b;
  font-size: 8px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: #fff7e6;
  border-radius: 4px;
}

.fwb-field input:not([type="checkbox"]):not([type="color"]),
.fwb-field select,
.fwb-field textarea,
.fwb-overlay-list-item input {
  width: 100%;
  min-height: 41px;
  padding: 9px 11px;
  color: var(--fwb-ink);
  font: inherit;
  font-size: 12px;
  line-height: 1.45;
  background: #fbfdfc;
  border: 1px solid #cfdcd7;
  border-radius: 9px;
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease,
    background 140ms ease;
}

.fwb-field textarea {
  min-height: 74px;
  resize: vertical;
}

.fwb-field input[type="color"] {
  width: 100%;
  height: 41px;
  padding: 4px;
  background: white;
  border: 1px solid #cfdcd7;
  border-radius: 9px;
}

.fwb-field input:focus,
.fwb-field select:focus,
.fwb-field textarea:focus,
.fwb-overlay-list-item input:focus {
  background: white;
  border-color: var(--fwb-brand);
  outline: none;
  box-shadow: 0 0 0 3px rgb(8 117 99 / 12%);
}

.fwb-field-invalid input:not([type="checkbox"]),
.fwb-field-invalid select,
.fwb-field-invalid textarea {
  border-color: var(--fwb-danger);
  box-shadow: 0 0 0 3px rgb(180 35 24 / 9%);
}

.fwb-field-error {
  display: none;
  margin: 5px 0 0;
  color: var(--fwb-danger);
  font-size: 10px;
}

.fwb-field-invalid .fwb-field-error {
  display: block;
}

.fwb-hint {
  display: block;
  margin-top: 5px;
  color: var(--fwb-muted);
  font-size: 10px;
}

.fwb-field-check {
  padding-top: 4px;
}

.fwb-field-check > input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.fwb-field-check > label {
  display: grid !important;
  grid-template-columns: auto 1fr auto;
  align-items: start !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 10px 11px;
  line-height: 1.45;
  background: #f5f9f7;
  border: 1px solid #d7e3df;
  border-radius: 10px;
  cursor: pointer;
}

.fwb-checkbox-box {
  position: relative;
  width: 18px;
  height: 18px;
  background: white;
  border: 1.5px solid #9eafa9;
  border-radius: 5px;
}

.fwb-field-check > input:checked + label .fwb-checkbox-box {
  background: var(--fwb-brand);
  border-color: var(--fwb-brand);
}

.fwb-field-check > input:checked + label .fwb-checkbox-box::after {
  position: absolute;
  top: 2px;
  left: 5px;
  width: 5px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  content: "";
  transform: rotate(45deg);
}

.fwb-field-check > input:focus-visible + label {
  outline: 3px solid rgb(8 117 99 / 16%);
  outline-offset: 2px;
}

.fwb-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.fwb-button,
.fwb-file-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  color: #24423a;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  background: white;
  border: 1px solid #cbdad5;
  border-radius: 10px;
  cursor: pointer;
  transition:
    transform 140ms ease,
    box-shadow 140ms ease,
    border-color 140ms ease;
}

.fwb-button:hover,
.fwb-file-button:hover {
  border-color: #99bdb2;
  box-shadow: 0 6px 14px rgb(14 62 50 / 8%);
  transform: translateY(-1px);
}

.fwb-button-primary {
  color: white;
  background: linear-gradient(135deg, var(--fwb-brand), var(--fwb-brand-dark));
  border-color: var(--fwb-brand-dark);
  box-shadow: 0 7px 16px rgb(8 117 99 / 18%);
}

.fwb-draft-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  background: #f8faf9;
  border: 1px solid var(--fwb-line);
  border-radius: 12px;
}

.fwb-draft-tools > div:first-child {
  display: grid;
  gap: 2px;
}

.fwb-draft-tools strong {
  font-size: 11px;
}

.fwb-draft-tools small {
  max-width: 340px;
  color: var(--fwb-muted);
  font-size: 9px;
  line-height: 1.4;
}

.fwb-draft-actions,
.fwb-inline-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
}

.fwb-text-button {
  padding: 5px 7px;
  color: var(--fwb-brand-dark);
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

.fwb-text-button:hover {
  background: #e9f4f0;
}

.fwb-text-danger {
  color: var(--fwb-danger);
}

.fwb-status {
  min-height: 35px;
  padding: 9px 22px;
  color: #31534a;
  font-size: 11px;
  font-weight: 650;
  background: #eef5f2;
  border-top: 1px solid #d6e4df;
}

.fwb-status[data-kind="success"] {
  color: #067255;
  background: #eaf9f3;
}

.fwb-status[data-kind="warning"] {
  color: #88530b;
  background: #fff8e8;
}

.fwb-status[data-kind="error"] {
  color: #9f271f;
  background: #fff0ef;
}

.fwb-paper {
  position: relative;
  width: min(100%, 760px);
  min-height: 920px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 54px);
  overflow: hidden;
  color: #182722;
  background: white;
  border: 1px solid #d9e1de;
  border-radius: 4px;
  box-shadow:
    0 2px 4px rgb(20 45 38 / 7%),
    0 18px 45px rgb(20 45 38 / 12%);
}

.fwb-paper:focus-visible {
  outline: 3px solid rgb(8 117 99 / 24%);
  outline-offset: 3px;
}

.fwb-paper-watermark {
  position: absolute;
  top: 43%;
  left: 50%;
  color: rgb(8 117 99 / 3.5%);
  font-size: clamp(72px, 10vw, 130px);
  font-weight: 900;
  letter-spacing: 0.1em;
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(-28deg);
}

.fwb-paper-header {
  position: relative;
  padding-bottom: 20px;
  border-bottom: 2px solid #193c33;
}

.fwb-paper-kicker {
  display: block;
  margin-bottom: 10px;
  color: var(--fwb-brand);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.17em;
}

.fwb-paper-header h3 {
  margin: 0;
  color: #13251f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(23px, 3vw, 32px);
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.fwb-paper-header > p {
  margin: 7px 0 14px;
  color: #61706b;
  font-size: 11px;
}

.fwb-paper-notice {
  display: inline-block;
  padding: 6px 8px;
  color: #07604f;
  font-size: 8px;
  line-height: 1.35;
  letter-spacing: 0.07em;
  background: #e9f7f2;
  border: 1px solid #c9e9de;
  border-radius: 5px;
}

.fwb-paper-lead,
.fwb-paper-paragraph {
  position: relative;
  margin: 18px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  line-height: 1.7;
}

.fwb-paper-section {
  position: relative;
  margin-top: 23px;
}

.fwb-paper-section h4 {
  margin: 0 0 10px;
  color: #0b6958;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.fwb-paper-section dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid #dce4e1;
  border-left: 1px solid #dce4e1;
}

.fwb-paper-section dl > div {
  min-width: 0;
  padding: 9px 10px;
  border-right: 1px solid #dce4e1;
  border-bottom: 1px solid #dce4e1;
}

.fwb-paper-section dt {
  margin-bottom: 3px;
  color: #70807a;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.fwb-paper-section dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 10px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.fwb-table-scroll {
  max-width: 100%;
  overflow: auto;
}

.fwb-paper table {
  width: 100%;
  border-collapse: collapse;
  font-size: 9px;
}

.fwb-paper th,
.fwb-paper td {
  min-width: 88px;
  padding: 7px 8px;
  overflow-wrap: anywhere;
  text-align: left;
  vertical-align: top;
  border: 1px solid #dce4e1;
}

.fwb-paper th {
  color: #33534b;
  font-size: 7px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: #f0f6f3;
}

.fwb-paper-facts {
  position: relative;
  padding-left: 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11px;
  line-height: 1.65;
}

.fwb-paper-facts li + li {
  margin-top: 8px;
}

.fwb-paper-checklist ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fwb-paper-checklist li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 7px;
  font-size: 10px;
  line-height: 1.45;
}

.fwb-paper-checklist li span {
  color: var(--fwb-brand);
  font-size: 14px;
}

.fwb-paper-declaration {
  padding: 13px;
  background: #f7faf9;
  border: 1px solid #dce6e2;
}

.fwb-paper-declaration p {
  margin: 6px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 9.5px;
  line-height: 1.55;
}

.fwb-signatures {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px 30px;
  margin-top: 52px;
}

.fwb-signatures > div > span {
  display: block;
  border-top: 1px solid #7c8985;
}

.fwb-signatures small {
  display: block;
  margin-top: 5px;
  color: #5e6b67;
  font-size: 8px;
}

.fwb-paper-footer {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 35px;
  padding-top: 10px;
  color: #88928f;
  font-size: 7px;
  border-top: 1px solid #e1e6e4;
}

.fwb-dropzone {
  display: grid;
  min-height: 180px;
  place-items: center;
  align-content: center;
  gap: 7px;
  padding: 24px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 10%, rgb(8 117 99 / 7%), transparent 60%),
    #fbfdfc;
  border: 1.5px dashed #9abdb2;
  border-radius: 16px;
  cursor: pointer;
}

.fwb-dropzone:hover,
.fwb-dropzone:focus-within {
  background-color: #f3faf7;
  border-color: var(--fwb-brand);
}

.fwb-dropzone input,
.fwb-file-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.fwb-drop-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: white;
  font-size: 11px;
  font-weight: 900;
  background: linear-gradient(145deg, #0b8d77, #075b4e);
  border-radius: 14px;
  box-shadow: 0 9px 22px rgb(8 117 99 / 20%);
}

.fwb-dropzone strong {
  font-size: 14px;
}

.fwb-dropzone small {
  color: var(--fwb-muted);
  font-size: 10px;
}

.fwb-overlay-controls {
  margin-top: 18px;
}

.fwb-overlay-controls[hidden],
.fwb-auto-exports[hidden] {
  display: none !important;
}

.fwb-callout {
  margin: 0 0 14px;
  padding: 11px 13px;
  color: #36524a;
  background: #f1f8f5;
  border-left: 3px solid var(--fwb-brand);
  border-radius: 0 9px 9px 0;
}

.fwb-callout strong {
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.fwb-callout p {
  margin: 3px 0 0;
  font-size: 10px;
  line-height: 1.45;
}

.fwb-subheading {
  margin: 21px 0 9px;
  font-size: 12px;
}

.fwb-overlay-list {
  display: grid;
  gap: 7px;
}

.fwb-overlay-list-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 8px;
  background: white;
  border: 1px solid var(--fwb-line);
  border-radius: 10px;
}

.fwb-overlay-list-item input {
  min-height: 34px;
  padding: 6px 8px;
  font-size: 10px;
}

.fwb-overlay-list-item small {
  display: block;
  margin-top: 3px;
  color: var(--fwb-muted);
  font-size: 8px;
}

.fwb-list-index {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  color: #126352;
  font-size: 9px;
  font-weight: 900;
  background: #e9f6f1;
  border-radius: 7px;
}

.fwb-remove-button {
  min-width: 30px;
  height: 30px;
  color: var(--fwb-danger);
  font-size: 18px;
  background: #fff4f3;
  border-color: #f3d0cd;
}

.fwb-overlay-stage {
  min-width: 100%;
}

.fwb-overlay-stage.fwb-empty {
  display: grid;
  min-height: 520px;
  place-items: center;
}

.fwb-empty-state {
  display: grid;
  max-width: 360px;
  place-items: center;
  gap: 7px;
  padding: 30px;
  text-align: center;
}

.fwb-empty-state > span {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  color: var(--fwb-brand);
  font-size: 20px;
  font-weight: 900;
  background: white;
  border: 1px solid #d7e5e0;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgb(20 50 43 / 8%);
}

.fwb-empty-state h3 {
  margin: 7px 0 0;
  font-size: 17px;
}

.fwb-empty-state p,
.fwb-muted {
  margin: 0;
  color: var(--fwb-muted);
  font-size: 10px;
  line-height: 1.5;
}

.fwb-page-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
}

.fwb-page-navigation .fwb-icon-button {
  color: #285047;
  background: white;
  border-color: #cfddd8;
}

.fwb-page-navigation span {
  min-width: 110px;
  color: #47635c;
  font-size: 10px;
  font-weight: 800;
  text-align: center;
}

.fwb-overlay-page {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
  background: white;
  box-shadow: 0 16px 40px rgb(20 45 38 / 16%);
}

.fwb-overlay-page canvas {
  display: block;
  max-width: 100%;
  height: auto;
  cursor: crosshair;
}

.fwb-overlay-page canvas:focus-visible {
  outline: 4px solid rgb(8 117 99 / 30%);
  outline-offset: -4px;
}

.fwb-overlay-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.fwb-overlay-marker {
  position: absolute;
  display: block;
  max-width: 60%;
  overflow: hidden;
  font-family: Arial, sans-serif;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: rgb(255 246 184 / 50%);
  outline: 1px dashed #e19a23;
  transform: translateY(-85%);
}

.fwb-file-button {
  position: relative;
  min-height: 32px;
  padding: 6px 9px;
  color: var(--fwb-brand-dark);
  font-size: 10px;
}

.fwb-inline-actions {
  margin-top: 9px;
}

.fwb-auto-paper {
  min-width: min(100%, 720px);
}

.fwb-auto-table {
  margin-top: 20px;
}

.fwb-preview-warning {
  margin-top: 16px;
  padding: 10px 12px;
  color: #7a4a09;
  background: #fff8e8;
  border: 1px solid #f0d9a8;
  border-radius: 8px;
}

.fwb-preview-warning strong {
  font-size: 10px;
}

.fwb-preview-warning p {
  margin: 3px 0 0;
  font-size: 9px;
}

.fwb-auto-empty {
  min-height: 500px;
  margin: auto;
}

@media (max-width: 980px) {
  .fwb-dialog {
    inset: 0;
    border: 0;
    border-radius: 0;
  }

  .fwb-workspace {
    grid-template-columns: 1fr;
    overflow: auto;
  }

  .fwb-panel {
    min-height: 620px;
  }

  .fwb-panel-editor {
    border-right: 0;
    border-bottom: 1px solid var(--fwb-line);
  }

  .fwb-editor,
  .fwb-preview-pane {
    overflow: visible;
  }

  .fwb-status {
    position: sticky;
    bottom: 0;
  }
}

@media (max-width: 620px) {
  .fwb-header {
    grid-template-columns: 1fr auto;
    gap: 12px;
    min-height: 72px;
    padding: 11px 14px;
  }

  .fwb-brand {
    display: none;
  }

  .fwb-heading-copy h1 {
    font-size: 18px;
  }

  .fwb-heading-copy p {
    font-size: 10px;
  }

  .fwb-privacy {
    align-items: flex-start;
    padding: 9px 14px;
  }

  .fwb-privacy div {
    display: grid;
  }

  .fwb-panel {
    min-height: auto;
  }

  .fwb-panel-heading {
    min-height: 58px;
    padding: 10px 14px;
  }

  .fwb-editor,
  .fwb-preview-pane {
    padding: 13px;
  }

  .fwb-fieldset {
    padding: 13px;
  }

  .fwb-field-grid {
    grid-template-columns: 1fr;
  }

  .fwb-field-full {
    grid-column: auto;
  }

  .fwb-draft-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .fwb-draft-actions {
    justify-content: flex-start;
  }

  .fwb-toolbar .fwb-button {
    flex: 1 1 42%;
  }

  .fwb-paper {
    min-height: 700px;
    padding: 25px 19px;
  }

  .fwb-paper-section dl {
    grid-template-columns: 1fr;
  }

  .fwb-signatures {
    grid-template-columns: 1fr;
  }

  .fwb-paper-footer {
    flex-direction: column;
  }

  .fwb-overlay-stage.fwb-empty,
  .fwb-auto-empty {
    min-height: 340px;
  }

  .fwb-status {
    padding: 8px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fwb-shell *,
  .fwb-shell *::before,
  .fwb-shell *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  body.fwb-printing > *:not(.fwb-shell) {
    display: none !important;
  }

  body.fwb-printing,
  body.fwb-printing .fwb-shell,
  body.fwb-printing .fwb-dialog,
  body.fwb-printing .fwb-workspace,
  body.fwb-printing .fwb-panel-preview,
  body.fwb-printing .fwb-preview-pane {
    position: static !important;
    display: block !important;
    width: auto !important;
    height: auto !important;
    max-width: none !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    color: #000 !important;
    background: #fff !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  body.fwb-printing .fwb-backdrop,
  body.fwb-printing .fwb-header,
  body.fwb-printing .fwb-privacy,
  body.fwb-printing .fwb-panel-editor,
  body.fwb-printing .fwb-panel-heading,
  body.fwb-printing .fwb-status {
    display: none !important;
  }

  body.fwb-printing .fwb-paper {
    width: 100% !important;
    min-height: 0 !important;
    padding: 12mm !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  body.fwb-printing .fwb-paper-section,
  body.fwb-printing .fwb-signatures {
    break-inside: avoid;
  }
}
