:root {
    --ink: #17202a;
    --muted: #6b7280;
    --line: #d8dee7;
    --soft: #f4f6f8;
    --panel: #ffffff;
    --blue: #2f6fa5;
    --blue-dark: #245579;
    --gold: #f3c744;
    --gold-dark: #b58a00;
    --green: #1f8a5b;
    --red: #b33a3a;
    --field: #ffe991;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background:
        linear-gradient(180deg, #f6f9fc 0%, #eef3f8 44%, #e9eef5 100%);
    color: var(--ink);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    color: var(--blue);
    text-decoration: none;
}

main {
    flex: 1 0 auto;
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 32px 0 60px;
}

.site-footer {
    background: #111c27;
    border-top: 1px solid rgb(255 255 255 / 8%);
    color: #d7e1ea;
    margin-top: 28px;
}

.footer-inner {
    display: grid;
    gap: 44px;
    grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
    margin: 0 auto;
    padding: 44px 0 34px;
    width: min(1180px, calc(100% - 40px));
}

.footer-brand {
    color: #fff;
    min-width: 0;
}

.footer-brand strong {
    color: #fff;
}

.footer-brand small {
    color: #aebdcb;
}

.footer-brand-block p {
    color: #aebdcb;
    line-height: 1.7;
    margin: 18px 0 0;
    max-width: 360px;
}

.footer-links {
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.footer-links div {
    display: grid;
    gap: 9px;
}

.footer-links h2 {
    color: #fff;
    font-size: 13px;
    letter-spacing: .08em;
    margin: 0 0 4px;
    text-transform: uppercase;
}

.footer-links a {
    color: #c4d1dd;
    font-weight: 700;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    align-items: center;
    border-top: 1px solid rgb(255 255 255 / 10%);
    color: #9aabba;
    display: flex;
    justify-content: space-between;
    margin: 0 auto;
    padding: 16px 0 20px;
    width: min(1180px, calc(100% - 40px));
}

.topbar {
    align-items: center;
    background: #fff;
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 24px;
    min-height: 72px;
    padding: 0 28px;
    position: sticky;
    top: 0;
    z-index: 10;
}

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

.brand-mark {
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: inline-flex;
    height: 38px;
    justify-content: center;
    overflow: hidden;
    padding: 4px;
    width: 38px;
}

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

.brand small,
td small {
    color: var(--muted);
    display: block;
    font-size: 12px;
    margin-top: 2px;
}

.main-nav {
    display: flex;
    flex: 1;
    gap: 6px;
}

.main-nav a {
    border-radius: 7px;
    color: #475569;
    font-weight: 700;
    padding: 10px 13px;
}

.main-nav a.active,
.main-nav a:hover {
    background: #eaf2f8;
    color: var(--blue-dark);
}

.button,
button {
    border: 0;
    border-radius: 7px;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 800;
    justify-content: center;
    padding: 10px 15px;
}

.button.primary,
button.primary {
    background: var(--blue);
    color: #fff;
}

.button.warning,
button.warning {
    background: var(--gold);
    color: #1f2937;
}

.button.ghost,
button.ghost {
    background: #fff;
    border: 1px solid var(--line);
    color: var(--ink);
}

.button.danger,
button.danger {
    background: #fff0f0;
    color: var(--red);
}

.button.large,
button.large {
    padding: 13px 18px;
}

.form-actions {
    display: flex;
    gap: 10px;
}

.form-actions.split > * {
    flex: 1;
}

.button.full {
    width: 100%;
}

.hero {
    align-items: stretch;
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
    min-height: 440px;
}

.hero-copy {
    align-content: center;
    display: grid;
}

.eyebrow {
    color: var(--blue-dark);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    margin: 0 0 8px;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

.hero h1 {
    font-size: clamp(42px, 5vw, 68px);
    line-height: 1;
    margin-bottom: 18px;
    max-width: 760px;
}

.hero p {
    color: #415063;
    font-size: 18px;
    line-height: 1.6;
    max-width: 650px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

.hero-product {
    align-self: center;
    background: #ced7df;
    border: 1px solid #b9c6d1;
    border-radius: 8px;
    box-shadow: 0 24px 60px rgb(32 50 70 / 20%);
    min-height: 360px;
    overflow: hidden;
}

.mini-toolbar {
    background: var(--blue);
    display: flex;
    gap: 8px;
    padding: 14px;
}

.mini-toolbar span {
    background: #fff;
    border-radius: 999px;
    height: 9px;
    opacity: .85;
    width: 72px;
}

.mini-doc {
    background: #fff;
    margin: 24px auto;
    min-height: 280px;
    padding: 44px 52px;
    width: 78%;
}

.mini-doc h3 {
    text-align: center;
}

mark {
    background: var(--field);
    border-radius: 3px;
    color: #805f00;
    display: inline-block;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    min-width: 64px;
    padding: 3px 8px;
}

mark.wide {
    min-width: 150px;
}

.signature-line {
    border-bottom: 2px solid #111827;
    margin-top: 42px;
}

.public-hero {
    align-items: center;
    display: grid;
    gap: 42px;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
    min-height: 620px;
    position: relative;
}

.public-hero::before {
    background: linear-gradient(135deg, rgb(47 111 165 / 14%), rgb(243 199 68 / 13%));
    border: 1px solid rgb(47 111 165 / 12%);
    border-radius: 8px;
    content: "";
    inset: 22px -24px auto auto;
    height: 320px;
    position: absolute;
    width: 460px;
    z-index: -1;
}

.trust-pill {
    align-items: center;
    background: #fff;
    border: 1px solid #d6e0ea;
    border-radius: 999px;
    box-shadow: 0 10px 24px rgb(32 50 70 / 8%);
    color: #38516a;
    display: inline-flex;
    font-size: 13px;
    font-weight: 900;
    gap: 9px;
    margin-bottom: 18px;
    padding: 8px 12px;
    width: fit-content;
}

.trust-pill span {
    background: var(--green);
    border-radius: 999px;
    height: 9px;
    width: 9px;
}

.public-hero h1 {
    font-size: clamp(48px, 5.4vw, 78px);
    letter-spacing: 0;
    line-height: .94;
    margin-bottom: 18px;
    max-width: 760px;
}

.public-hero p {
    color: #415063;
    font-size: 18px;
    line-height: 1.65;
    max-width: 680px;
}

.public-hero-visual {
    background: linear-gradient(180deg, #fff, #f7fafc);
    border: 1px solid #bccbda;
    border-radius: 8px;
    box-shadow: 0 34px 90px rgb(32 50 70 / 24%);
    overflow: hidden;
    position: relative;
}

.public-hero-visual::after {
    background: #fff;
    border: 1px solid #cfdae6;
    border-radius: 8px;
    bottom: 18px;
    box-shadow: 0 18px 40px rgb(32 50 70 / 16%);
    color: var(--green);
    content: "Signed PDF ready";
    font-size: 12px;
    font-weight: 900;
    padding: 10px 12px;
    position: absolute;
    right: 18px;
}

.visual-top {
    align-items: center;
    background: #6f9bc2;
    color: #fff;
    display: flex;
    font-weight: 900;
    justify-content: space-between;
    padding: 14px 18px;
}

.visual-body {
    background:
        linear-gradient(135deg, #edf2f7, #dfe8f1);
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr 150px;
    padding: 22px;
}

.visual-doc {
    background: #fff;
    border: 1px solid #d8dee7;
    box-shadow: 0 16px 36px rgb(32 50 70 / 12%);
    display: grid;
    gap: 11px;
    min-height: 300px;
    padding: 28px;
}

.visual-doc em {
    color: var(--blue-dark);
    font-style: normal;
    font-weight: 900;
    justify-self: center;
    margin-bottom: 10px;
}

.visual-doc span {
    background: #dbe4ee;
    border-radius: 3px;
    height: 10px;
    width: 86%;
}

.visual-doc span:nth-child(2) {
    width: 62%;
}

.visual-doc span:nth-child(3) {
    margin-bottom: 36px;
    width: 74%;
}

.visual-doc mark {
    background: #fff7d7;
    border: 1px dashed #c99a08;
    width: 48%;
}

.visual-doc mark.wide {
    width: 76%;
}

.visual-panel {
    background: #fff;
    border: 1px solid #d8dee7;
    border-radius: 8px;
    display: grid;
    gap: 9px;
    padding: 14px;
}

.visual-panel small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
}

.visual-panel p {
    background: #f4f7fb;
    border-radius: 6px;
    color: var(--ink);
    font-size: 12px;
    margin: 0;
    padding: 8px;
}

.meter {
    background: #e7edf4;
    border-radius: 999px;
    height: 10px;
    overflow: hidden;
}

.meter span {
    background: var(--green);
    display: block;
    height: 100%;
    width: 68%;
}

.public-stats,
.feature-grid,
.use-case-grid {
    display: grid;
    gap: 16px;
}

.public-stats {
    grid-template-columns: repeat(4, 1fr);
    margin: 10px 0 52px;
}

.public-stats div,
.feature-grid article,
.workflow-track div,
.security-list,
.use-case-grid article,
.public-cta {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 12px 28px rgb(32 50 70 / 8%);
}

.public-stats div {
    background: linear-gradient(180deg, #fff, #f8fbfd);
    padding: 22px;
}

.public-stats strong {
    color: var(--blue);
    display: block;
    font-size: 36px;
}

.public-stats span {
    color: var(--muted);
    font-weight: 800;
}

.public-section,
.workflow-section,
.public-split,
.public-cta {
    margin-top: 58px;
}

.section-kicker {
    margin-bottom: 22px;
    max-width: 720px;
}

.section-kicker h2,
.public-split h2,
.public-cta h2 {
    font-size: clamp(30px, 3vw, 44px);
    letter-spacing: 0;
    line-height: 1.05;
    margin-bottom: 10px;
}

.section-kicker p,
.public-split p,
.public-cta p {
    color: #526173;
    line-height: 1.65;
}

.feature-grid {
    grid-template-columns: repeat(3, 1fr);
}

.feature-grid article {
    position: relative;
    padding: 22px;
}

.feature-grid article::before {
    background: linear-gradient(180deg, var(--blue), var(--blue-dark));
    border-radius: 8px 0 0 8px;
    content: "";
    inset: 0 auto 0 0;
    position: absolute;
    width: 4px;
}

.feature-grid article span {
    color: var(--gold-dark);
    display: block;
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 18px;
}

.feature-grid b {
    display: block;
    font-size: 18px;
    margin-bottom: 9px;
}

.feature-grid p {
    color: #526173;
    line-height: 1.55;
    margin: 0;
}

.workflow-track {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(5, 1fr);
    position: relative;
}

.workflow-track div {
    padding: 18px;
    z-index: 1;
}

.workflow-track div:nth-child(even) {
    transform: translateY(18px);
}

.workflow-track span {
    color: var(--gold-dark);
    display: block;
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 20px;
}

.workflow-track b {
    display: block;
    font-size: 18px;
    margin-bottom: 8px;
}

.workflow-track p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
    margin: 0;
}

.public-split {
    align-items: start;
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(0, .85fr) minmax(360px, 1fr);
}

.security-list {
    display: grid;
    gap: 12px;
    padding: 20px;
}

.security-list p {
    border-bottom: 1px solid #e5ebf2;
    display: grid;
    gap: 4px;
    margin: 0;
    padding-bottom: 12px;
}

.security-list p:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.security-list span {
    color: var(--muted);
}

.use-case-grid {
    grid-template-columns: repeat(6, 1fr);
}

.use-case-grid article {
    color: var(--blue-dark);
    font-weight: 900;
    padding: 18px;
    text-align: center;
}

.public-cta {
    background:
        linear-gradient(135deg, #173553, #2f6fa5);
    color: #fff;
    margin-bottom: 16px;
    padding: 34px;
    text-align: center;
}

.public-cta p {
    color: #dceaf5;
    margin-inline: auto;
    max-width: 620px;
}

.public-cta .button.primary {
    background: var(--gold);
    color: #17202a;
}

.library-hero {
    align-items: stretch;
    background:
        linear-gradient(135deg, rgb(47 111 165 / 12%), rgb(243 199 68 / 14%)),
        #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 26px;
    grid-template-columns: minmax(0, 1fr) 360px;
    padding: 44px;
}

.library-hero h1,
.library-detail-hero h1 {
    font-size: clamp(38px, 4vw, 60px);
    line-height: 1.02;
    margin-bottom: 16px;
}

.library-hero p,
.library-detail-hero p,
.library-title p {
    color: #526173;
    font-size: 17px;
    line-height: 1.65;
    max-width: 760px;
}

.library-metrics {
    display: grid;
    gap: 12px;
}

.library-metrics div,
.template-preview-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 16px 38px rgb(32 50 70 / 10%);
    padding: 20px;
}

.library-metrics strong {
    color: var(--blue);
    display: block;
    font-size: 36px;
    line-height: 1;
}

.library-metrics span,
.library-card small,
.template-preview-card small,
.library-field-list span,
.library-field-list small {
    color: var(--muted);
}

.library-country-grid,
.library-template-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.library-template-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.library-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 10px;
    padding: 22px;
}

.library-card > span {
    color: var(--gold-dark);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.library-card h2,
.library-card h3,
.library-card p {
    margin: 0;
}

.library-card p {
    color: #526173;
    line-height: 1.55;
}

.library-card.compact {
    min-height: 190px;
}

.library-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.library-tags small {
    background: #eaf2f8;
    border: 1px solid #d3e3f0;
    border-radius: 999px;
    color: var(--blue-dark);
    font-weight: 800;
    padding: 6px 9px;
}

.library-tags.large small {
    font-size: 14px;
    padding: 9px 12px;
}

.breadcrumb {
    align-items: center;
    display: flex;
    gap: 8px;
    font-weight: 800;
    margin-bottom: 22px;
}

.breadcrumb span {
    color: var(--muted);
}

.library-detail-hero {
    align-items: start;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(0, 1fr) 390px;
    padding: 38px;
}

.library-detail-hero form {
    margin: 0;
}

.template-preview-card {
    display: grid;
    gap: 12px;
}

.template-preview-card > strong {
    font-size: 20px;
}

.template-preview-card div,
.library-field-list div {
    border: 1px solid var(--line);
    border-radius: 7px;
    display: grid;
    gap: 3px;
    padding: 12px;
}

.template-preview-card span,
.library-field-list b {
    font-weight: 900;
}

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

.pricing-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.pricing-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 12px;
    padding: 22px;
}

.pricing-card.featured {
    border-color: var(--blue);
    box-shadow: 0 18px 45px rgb(47 111 165 / 16%);
}

.pricing-card span {
    color: var(--blue-dark);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.pricing-card strong {
    font-size: 30px;
}

.pricing-card ul {
    color: #526173;
    line-height: 1.7;
    margin: 0;
    padding-left: 18px;
}

.legal-page {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 14px 34px rgb(32 50 70 / 8%);
    color: #263241;
    display: grid;
    gap: 22px;
    margin: 24px auto;
    max-width: 920px;
    padding: 42px;
}

.legal-hero {
    border-bottom: 1px solid #e4ebf2;
    padding-bottom: 18px;
}

.legal-hero h1 {
    font-size: clamp(38px, 4vw, 58px);
    line-height: 1;
    margin-bottom: 10px;
}

.legal-hero p,
.legal-page section p {
    color: #526173;
    line-height: 1.7;
}

.legal-page section {
    display: grid;
    gap: 8px;
}

.legal-page h2 {
    font-size: 22px;
    margin: 0;
}

.legal-page p {
    margin: 0;
}

.admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-tabs a {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 7px;
    font-weight: 800;
    padding: 9px 12px;
}

.admin-inline-form {
    align-items: end;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(130px, 1.2fr) repeat(5, minmax(90px, 1fr)) auto auto;
}

.admin-inline-form label {
    min-width: 0;
}

.admin-create-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    margin-bottom: 16px;
    padding: 18px;
}

.admin-user-create-form {
    align-items: end;
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, minmax(160px, 1fr));
}

.admin-user-create-form > div {
    align-self: center;
    grid-column: span 2;
}

.admin-user-create-form h2 {
    font-size: 22px;
    margin: 0;
}

.check.compact {
    align-items: center;
    display: flex;
    gap: 6px;
}

.admin-log-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-log-grid h2 {
    margin: 16px 16px 0;
}

.stats-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, 1fr);
    margin: 28px 0;
}

.stats-grid div,
.template-card,
.table-wrap,
.panel-form {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.stats-grid div {
    padding: 22px;
}

.stats-grid strong {
    display: block;
    font-size: 34px;
}

.stats-grid span {
    color: var(--muted);
}

.section-head,
.page-title {
    align-items: end;
    display: flex;
    justify-content: space-between;
    margin: 30px 0 16px;
}

.section-head h2,
.page-title h1 {
    margin: 0;
}

.template-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.template-card {
    min-height: 190px;
    padding: 18px;
}

.file-badge,
.status {
    background: #eaf2f8;
    border-radius: 999px;
    color: var(--blue-dark);
    display: inline-flex;
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 16px;
    padding: 5px 10px;
    text-transform: uppercase;
}

.template-card p {
    color: var(--muted);
    min-height: 44px;
}

.card-actions,
.row-actions {
    display: flex;
    gap: 12px;
    font-weight: 800;
}

td.row-actions {
    display: table-cell;
    white-space: nowrap;
    width: 1%;
}

td.row-actions a {
    display: inline-flex;
    align-items: center;
}

td.row-actions a + a {
    margin-left: 12px;
}

.table-wrap {
    overflow: auto;
}

table {
    border-collapse: collapse;
    width: 100%;
}

th,
td {
    border-bottom: 1px solid var(--line);
    padding: 15px;
    text-align: left;
    vertical-align: middle;
}

th {
    color: var(--muted);
    font-size: 12px;
    letter-spacing: .06em;
    text-transform: uppercase;
}

tr:last-child td {
    border-bottom: 0;
}

.notice {
    background: #fff8d7;
    border: 1px solid #ead17a;
    border-radius: 8px;
    margin-bottom: 16px;
    padding: 12px 14px;
}

.form-shell {
    display: grid;
    min-height: calc(100vh - 150px);
    place-items: center;
}

.panel-form {
    display: grid;
    gap: 14px;
    max-width: 560px;
    padding: 26px;
    width: 100%;
}

label {
    color: #344054;
    display: grid;
    font-size: 13px;
    font-weight: 800;
    gap: 7px;
}

input,
textarea,
select {
    background: #fff;
    border: 1px solid #cfd7e2;
    border-radius: 6px;
    color: var(--ink);
    font: inherit;
    padding: 10px 11px;
}

textarea {
    min-height: 96px;
    resize: vertical;
}

.editor-body {
    background: #eef2f6;
    min-height: 100vh;
    overflow: hidden;
}

.editor-top {
    align-items: center;
    background: #6f9bc2;
    color: #fff;
    display: flex;
    gap: 12px;
    height: 58px;
    padding: 0 16px;
}

.editor-back {
    color: #fff;
    font-size: 34px;
    line-height: 1;
}

.editor-spacer {
    flex: 1;
}

.icon-button {
    align-items: center;
    background: transparent;
    color: #fff;
    font-size: 24px;
    height: 38px;
    padding: 0;
    width: 38px;
}

.editor-top select {
    height: 36px;
    padding: 5px 8px;
}

.editor-grid {
    display: grid;
    grid-template-columns: 224px minmax(0, 1fr) 280px;
    height: calc(100vh - 58px);
}

.pdfme-editor-grid {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr) 320px;
    height: calc(100vh - 58px);
    min-height: 0;
}

.pdfme-workspace {
    background: #e8edf3;
    min-width: 0;
    overflow: auto;
    padding: 0 42px 64px;
}

.viewer-page-toolbar {
    align-items: center;
    background: rgb(248 250 252 / 96%);
    border: 1px solid #cbd5e1;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 20px rgb(15 23 42 / 10%);
    display: grid;
    gap: 8px;
    grid-template-columns: auto auto auto auto auto 1fr auto auto auto;
    margin: 0 auto 18px;
    max-width: 960px;
    padding: 7px 9px;
    position: sticky;
    top: 0;
    z-index: 20;
}

.viewer-page-toolbar label {
    align-items: center;
    display: flex;
    flex-direction: row;
    gap: 6px;
    white-space: nowrap;
}

.viewer-page-toolbar select {
    height: 32px;
    min-width: 102px;
    padding: 4px 8px;
}

.viewer-page-toolbar button {
    border-radius: 6px;
    font-size: 13px;
    min-height: 32px;
    padding: 5px 9px;
}

.editor-debug-panel {
    background: #111827;
    border: 1px solid #334155;
    border-radius: 6px;
    color: #dbeafe;
    display: grid;
    gap: 8px;
    margin: 0 auto 18px;
    max-width: 816px;
    padding: 8px 10px;
}

.editor-debug-panel strong {
    color: #fff;
    font-size: 13px;
}

.editor-debug-panel button {
    justify-self: start;
    padding: 4px 10px;
}

.editor-debug-panel pre {
    background: rgb(15 23 42 / 80%);
    border-radius: 4px;
    color: #bfdbfe;
    font: 12px/1.45 Consolas, "Courier New", monospace;
    margin: 0;
    max-height: 82px;
    overflow: auto;
    padding: 8px;
    white-space: pre-wrap;
}

.pdfme-designer {
    background: transparent !important;
    min-height: 100%;
    overflow: visible !important;
}

.pdfme-designer.is-hidden-engine {
    height: 0 !important;
    min-height: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
    position: absolute !important;
    width: 0 !important;
}

.clean-template-designer {
    --clean-zoom: 1;
    display: grid;
    justify-content: center;
    min-width: max-content;
    transform-origin: top center;
}

.clean-page-sheet {
    background: #fff;
    box-shadow: 0 10px 34px rgb(15 23 42 / 16%);
    margin: 0 auto 36px;
    overflow: hidden;
    position: relative;
    transform: scale(var(--clean-zoom));
    transform-origin: top center;
}

.clean-page-sheet canvas {
    display: block;
    height: 100%;
    width: 100%;
}

.clean-field-layer {
    inset: 0;
    position: absolute;
}

.clean-field-marker {
    background: rgb(255 249 224 / 92%);
    border: 1px dashed #d6ae19;
    border-radius: 3px;
    color: #6d5200;
    display: grid;
    font: inherit;
    gap: 2px;
    justify-content: stretch;
    overflow: hidden;
    padding: 5px 7px;
    position: absolute;
    text-align: left;
    touch-action: none;
    user-select: none;
}

.clean-field-marker:hover {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgb(47 111 165 / 16%);
}

.clean-field-marker.is-selected {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgb(47 111 165 / 20%);
}

.clean-field-marker strong {
    font-size: 12px;
    line-height: 1.1;
}

.clean-field-marker small {
    font-size: 10px;
    font-weight: 800;
    line-height: 1.1;
}

.clean-field-marker.is-required::before {
    color: var(--red);
    content: "*";
    font-size: 15px;
    font-weight: 900;
    left: -1px;
    position: absolute;
    top: -7px;
}

.document-edit-marker {
    background: rgb(255 255 255 / 82%);
    border: 1px solid #7c8da5;
    border-radius: 3px;
    color: var(--ink);
    align-items: center;
    display: flex;
    font: inherit;
    overflow: hidden;
    padding: 4px 6px;
    position: absolute;
    text-align: left;
    touch-action: none;
    user-select: none;
}

.document-edit-marker:hover {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgb(47 111 165 / 15%);
}

.document-edit-marker.text-edit span:first-child {
    font-size: inherit;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.document-edit-marker .clean-resize-handle {
    flex: 0 0 auto;
}

.document-edit-marker.image-edit {
    display: grid;
    padding: 0;
}

.sign-html-layer .document-edit-marker {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
}

.sign-html-layer .document-edit-marker:hover {
    border: 0;
    box-shadow: none;
}

.sign-html-layer .document-edit-marker .clean-resize-handle {
    display: none;
}

.document-edit-marker.image-edit img {
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.clean-resize-handle {
    background: var(--blue);
    border: 2px solid #fff;
    bottom: -6px;
    cursor: nwse-resize;
    height: 12px;
    position: absolute;
    right: -6px;
    width: 12px;
}

.pdfme-meta-panel {
    overflow: auto;
}

.pdfme-field-catalog {
    border-right: 1px solid #c8d0da;
}

.editor-tool-group,
.labeled-field-list {
    display: grid;
    gap: 8px;
}

.editor-tool-group {
    margin-bottom: 16px;
}

.editor-tool-group button,
.labeled-field-list button {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 7px;
    color: var(--ink);
    display: grid;
    gap: 3px;
    justify-content: stretch;
    padding: 10px;
    text-align: left;
}

.editor-tool-group button:hover,
.labeled-field-list button:hover {
    border-color: var(--blue);
    box-shadow: 0 0 0 2px rgb(47 111 165 / 12%);
}

.editor-tool-group span,
.labeled-field-list span {
    font-size: 13px;
    font-weight: 900;
}

.editor-tool-group small,
.labeled-field-list small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.35;
}

.pdfme-designer [class*="ruler" i],
.pdfme-designer [data-testid*="ruler" i],
.pdfme-designer [aria-label*="ruler" i],
.pdfme-designer [title*="ruler" i],
.pdfme-designer canvas[height="30"],
.pdfme-designer canvas[width][height="30"],
.pdfme-designer canvas[width="30"],
.pdfme-designer canvas[height][width="30"] {
    display: none !important;
    height: 0 !important;
    width: 0 !important;
}

.pdfme-designer [class*="sidebar" i],
.pdfme-designer [class*="field-list" i],
.pdfme-designer [class*="fields-list" i],
.pdfme-designer [aria-label*="fields" i],
.pdfme-designer [title*="fields" i],
.pdfme-designer [class*="zoom" i],
.pdfme-designer [aria-label*="zoom" i],
.pdfme-designer [title*="zoom" i] {
    display: none !important;
}

.pdfme-designer > div,
.pdfme-designer main,
.pdfme-designer section {
    background: transparent !important;
    overflow: visible !important;
}

.pdfme-designer canvas,
.pdfme-designer [class*="page" i] {
    background: #fff !important;
}

.pdfme-designer [class*="page" i] {
    box-shadow: 0 8px 28px rgb(15 23 42 / 14%) !important;
    margin: 0 auto 34px !important;
}

.pdfme-designer [style*="overflow: auto"],
.pdfme-designer [style*="overflow:auto"],
.pdfme-designer [style*="overflow-y: auto"],
.pdfme-designer [style*="overflow-y:auto"],
.pdfme-designer [style*="overflow: scroll"],
.pdfme-designer [style*="overflow:scroll"],
.pdfme-designer [style*="overflow-y: scroll"],
.pdfme-designer [style*="overflow-y:scroll"] {
    overflow: visible !important;
}

.pdfme-workspace::-webkit-scrollbar,
.pdfme-meta-panel::-webkit-scrollbar,
.pdfme-field-catalog::-webkit-scrollbar {
    height: 12px;
    width: 12px;
}

.pdfme-workspace::-webkit-scrollbar-thumb,
.pdfme-meta-panel::-webkit-scrollbar-thumb,
.pdfme-field-catalog::-webkit-scrollbar-thumb {
    background: #aab6c5;
    border: 3px solid #e8edf3;
    border-radius: 999px;
}

.panel-help,
.empty-state {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.field-meta-card,
.send-recipient-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 0;
    overflow: hidden;
    padding: 0;
}

.field-meta-card {
    border-left: 5px solid #93a3b5;
    margin-bottom: 7px;
}

.send-recipient-card {
    gap: 9px;
    padding: 10px;
}

.field-meta-card.is-required {
    border-left-color: var(--gold-dark);
}

.field-meta-card.pulse {
    box-shadow: 0 0 0 3px rgb(47 111 165 / 18%);
}

.field-meta-card.is-active {
    background: #fff7e6;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgb(245 167 66 / 22%);
}

.field-meta-summary {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 0;
    color: var(--ink);
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(0, 1fr) auto;
    justify-items: stretch;
    padding: 9px 10px 5px;
    text-align: left;
    width: 100%;
}

.field-meta-summary:hover {
    background: #f8fafc;
}

.field-meta-summary > span:first-child {
    min-width: 0;
}

.field-meta-summary strong,
.field-meta-summary small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.field-meta-badges {
    align-items: end;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.field-meta-badges em {
    background: #eef4fb;
    border: 1px solid #d7e2ee;
    border-radius: 999px;
    color: #334155;
    font-size: 10px;
    font-style: normal;
    font-weight: 900;
    line-height: 1;
    padding: 4px 6px;
}

.field-meta-brief {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    overflow: hidden;
    padding: 0 10px 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.field-meta-details {
    border-top: 1px solid #e6edf5;
    display: grid;
    gap: 9px;
    padding: 10px;
}

.field-meta-details[hidden] {
    display: none;
}

.editor-context-menu {
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    box-shadow: 0 16px 40px rgb(15 23 42 / 22%);
    display: none;
    min-width: 178px;
    overflow: hidden;
    position: fixed;
    z-index: 1000;
}

.editor-context-menu.is-open {
    display: grid;
}

.editor-context-menu button {
    background: #fff;
    border: 0;
    border-radius: 0;
    color: var(--ink);
    justify-content: flex-start;
    padding: 10px 12px;
    text-align: left;
}

.editor-context-menu button:hover {
    background: #eef5fb;
}

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

.page-count {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    padding: 2px 1px 4px;
    text-transform: uppercase;
}

.page-list button {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 7px;
    color: var(--ink);
    justify-content: flex-start;
    padding: 8px 10px;
}

.page-list button.active {
    border-color: var(--blue);
    box-shadow: 0 0 0 2px rgb(47 111 165 / 14%);
}

.field-meta-card strong {
    font-size: 13px;
}

.field-meta-card small {
    color: var(--muted);
    font-size: 11px;
}

.recipient-choice-group {
    display: grid;
    gap: 6px;
}

.recipient-choice-group > span {
    font-size: 13px;
    font-weight: 800;
}

.recipient-choice {
    align-items: center;
    background: #fff;
    border: 1px solid #d8e0ea;
    border-radius: 6px;
    display: grid;
    gap: 8px;
    grid-template-columns: 18px minmax(0, 1fr);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    min-height: 42px;
    padding: 8px 10px;
    width: 100%;
}

.recipient-choice:has(input:checked) {
    background: #eef7ff;
    border-color: #93bddf;
}

.recipient-choice input {
    accent-color: var(--gold-dark);
    height: 16px;
    margin: 0;
    min-width: 16px;
    width: 16px;
}

.recipient-choice-name {
    color: var(--ink);
    display: block;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.field-flag-row {
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr 1fr;
}

.recipient-send-list {
    display: grid;
    gap: 12px;
}

.field-palette,
.properties-panel {
    background: #f8fafc;
    border-right: 1px solid #c8d0da;
    overflow: auto;
    padding: 12px;
}

.properties-panel {
    border-left: 1px solid #c8d0da;
    border-right: 0;
}

.field-palette input,
.field-palette select,
.properties-panel input,
.properties-panel select,
.properties-panel textarea {
    width: 100%;
}

.field-palette h3,
.properties-panel h3 {
    font-size: 13px;
    margin: 15px 0 9px;
}

.palette-list {
    display: grid;
    gap: 6px;
}

.palette-list button {
    align-items: center;
    background: transparent;
    border-radius: 5px;
    color: #2b3440;
    display: grid;
    font-size: 13px;
    font-weight: 600;
    grid-template-columns: 28px 1fr;
    justify-content: start;
    padding: 7px 6px;
    text-align: left;
}

.palette-list button:hover {
    background: #e9eff5;
}

.palette-list span {
    align-items: center;
    background: #f7d95a;
    border: 1px solid #d3b535;
    border-radius: 3px;
    color: #554200;
    display: inline-flex;
    font-size: 11px;
    font-weight: 900;
    height: 22px;
    justify-content: center;
    width: 22px;
}

.document-stage {
    overflow: hidden;
}

.stage-scroll {
    height: 100%;
    overflow: auto;
    padding: 34px 0 70px;
}

.document-pages {
    --editor-zoom: 1;
    display: grid;
    justify-content: center;
}

.document-page {
    background: #fff;
    box-shadow: 0 1px 4px rgb(15 23 42 / 18%);
    margin: 0 auto 26px;
    overflow: hidden;
    position: relative;
    transform: scale(var(--editor-zoom));
    transform-origin: top center;
    width: 816px;
}

.pdf-page-canvas {
    display: block;
    inset: 0;
    position: absolute;
}

.page-number {
    background: rgb(23 32 42 / 72%);
    border-radius: 0 0 4px 0;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    left: 0;
    padding: 4px 7px;
    position: absolute;
    top: 0;
    z-index: 3;
}

.doc-fallback {
    align-content: center;
    color: #334155;
    display: grid;
    height: 100%;
    justify-items: center;
    padding: 80px;
    text-align: center;
}

.field-layer {
    inset: 0;
    position: absolute;
    z-index: 2;
}

.document-loading,
.document-error {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted);
    font-weight: 800;
    padding: 28px;
    text-align: center;
}

.field-box {
    align-items: center;
    background: rgb(255 233 145 / 88%);
    border: 1px solid #d6ae19;
    border-radius: 2px;
    color: #725500;
    cursor: move;
    display: flex;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 13px;
    min-height: 20px;
    min-width: 20px;
    overflow: hidden;
    padding: 2px 6px;
    position: absolute;
    user-select: none;
    touch-action: none;
}

.field-box.selected {
    box-shadow: 0 0 0 2px #2266aa;
}

.field-box.required::after {
    color: var(--red);
    content: "*";
    font-family: sans-serif;
    font-weight: 900;
    margin-left: 4px;
}

.resize-handle {
    background: #2266aa;
    bottom: -4px;
    cursor: nwse-resize;
    height: 9px;
    position: absolute;
    right: -4px;
    width: 9px;
}

.properties-panel {
    display: grid;
    align-content: start;
    gap: 11px;
}

.text-style-panel {
    background: #fff;
    border: 1px solid var(--line);
    border-left: 5px solid var(--blue);
    border-radius: 8px;
    display: grid;
    gap: 10px;
    padding: 10px;
}

.text-style-panel[hidden] {
    display: none;
}

.text-style-panel h3 {
    margin-top: 0;
}

.compact-control-grid {
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr 64px;
}

.style-toggle-row {
    display: grid;
    gap: 7px;
    grid-template-columns: repeat(3, 1fr);
}

.style-toggle-row button {
    background: #eef2f6;
    border: 1px solid #d8e0ea;
    color: var(--ink);
    min-height: 34px;
    padding: 6px;
}

.style-toggle-row button.active {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
}

.check {
    align-items: center;
    display: flex;
    flex-direction: row;
    gap: 8px;
}

.check input {
    width: auto;
}

.property-row {
    display: grid;
    gap: 9px;
    grid-template-columns: 1fr 1fr;
}

#recipientList {
    display: grid;
    gap: 8px;
}

.recipient-pill {
    align-items: start;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 7px;
    display: grid;
    gap: 8px;
    grid-template-columns: 16px 1fr auto;
    padding: 8px;
}

.recipient-color {
    border-radius: 999px;
    height: 12px;
    margin-top: 11px;
    width: 12px;
}

.recipient-fields {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.recipient-fields input {
    min-width: 0;
    width: 100%;
}

.recipient-pill button {
    background: transparent;
    color: var(--red);
    margin-top: 8px;
    padding: 0 4px;
}

.sign-shell {
    display: grid;
    gap: 18px;
}

.sign-head {
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    padding: 20px;
}

.sign-progress {
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 10px;
    grid-template-columns: auto auto minmax(0, 1fr);
    padding: 12px 14px;
    position: sticky;
    top: 72px;
    z-index: 8;
}

.sign-progress strong {
    font-size: 13px;
}

#signProgressText {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

#signFieldChecklist {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

#signFieldChecklist button {
    align-items: center;
    background: #fff8d7;
    border: 1px solid #d6ae19;
    border-radius: 7px;
    color: #6d5200;
    display: inline-flex;
    font-size: 12px;
    gap: 7px;
    padding: 7px 9px;
}

#signFieldChecklist button.complete {
    background: #e8f7ef;
    border-color: #85c7a2;
    color: var(--green);
}

#signFieldChecklist span {
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.sign-document {
    background: #d9dde2;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    justify-content: center;
    max-height: none;
    overflow: visible;
    padding: 28px 0 10px;
    position: relative;
}

.sign-fallback {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    justify-self: center;
    margin-bottom: 14px;
    padding: 12px;
}

.sign-fallback[hidden] {
    display: none;
}

.sign-document .document-pages {
    --editor-zoom: 1;
}

.sign-canvas-page {
    background: #fff;
    box-shadow: 0 1px 4px rgb(15 23 42 / 18%);
    margin: 0 auto 28px;
    overflow: hidden;
    position: relative;
}

.sign-canvas-page canvas {
    display: block;
}

.sign-html-layer {
    inset: 0;
    position: absolute;
}

.sign-overlay-field {
    background: rgb(255 249 224 / 94%);
    border: 1px solid #d6ae19;
    border-radius: 2px;
    display: grid;
    padding: 2px;
    position: absolute;
    transition: box-shadow .12s ease, background .12s ease, border-color .12s ease;
}

.sign-overlay-field:hover,
.sign-overlay-field.is-active {
    background: #fff;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgb(47 111 165 / 18%);
}

.sign-overlay-field.is-complete {
    background: rgb(232 247 239 / 94%);
    border-color: #68ae88;
}

.sign-overlay-field.is-required::after {
    color: var(--red);
    content: "*";
    font-weight: 900;
    position: absolute;
    right: 3px;
    top: -1px;
}

.sign-overlay-field input,
.sign-overlay-field textarea {
    background: transparent;
    border: 0;
    border-radius: 1px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 800;
    height: 100%;
    min-height: 0;
    padding: 3px 6px;
    width: 100%;
}

.sign-overlay-field textarea {
    line-height: 1.25;
    resize: none;
}

.sign-overlay-field input:focus,
.sign-overlay-field textarea:focus,
.sign-overlay-field select:focus {
    outline: 0;
}

.sign-overlay-field select {
    background: transparent;
    border: 0;
    color: var(--ink);
    font-size: 13px;
    font-weight: 800;
    height: 100%;
    min-height: 0;
    padding: 2px 6px;
    width: 100%;
}

.sign-overlay-field.radio-field {
    gap: 2px;
    overflow: hidden;
}

.sign-overlay-field.radio-field > span {
    color: #6d5200;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    padding: 1px 5px 0;
}

.sign-radio-options {
    align-content: start;
    display: grid;
    gap: 1px;
    overflow: hidden;
}

.sign-radio-options label {
    align-items: center;
    display: flex;
    font-size: 11px;
    font-weight: 800;
    gap: 4px;
    line-height: 1.1;
    min-width: 0;
}

.sign-radio-options input[type="radio"] {
    flex: 0 0 auto;
    height: 12px;
    padding: 0;
    width: 12px;
}

.sign-overlay-field.signature-field {
    gap: 2px;
}

.sign-overlay-field.signature-field span {
    color: #6d5200;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    padding: 2px 6px 0;
}

.sign-overlay-field.signature-field input {
    font-family: "Segoe Script", "Brush Script MT", cursive;
    font-size: 18px;
}

.signature-trigger {
    align-items: center;
    background: transparent;
    border: 0;
    color: #6d5200;
    display: flex;
    font-weight: 900;
    height: 100%;
    justify-content: flex-start;
    overflow: hidden;
    padding: 2px 6px;
    width: 100%;
}

.signature-trigger.has-signature {
    color: #111827;
    justify-content: center;
}

.signature-trigger img {
    max-height: 100%;
    max-width: 100%;
}

.typed-signed-value {
    font-family: "Segoe Script", "Brush Script MT", cursive;
    font-size: 20px;
    line-height: 1;
}

.signature-modal {
    align-items: center;
    background: rgb(15 23 42 / 52%);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 20px;
    position: fixed;
    z-index: 100;
}

.signature-dialog {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 18px 60px rgb(15 23 42 / 28%);
    display: grid;
    gap: 14px;
    max-width: 620px;
    padding: 20px;
    width: min(100%, 620px);
}

.signature-dialog h3 {
    margin: 0;
}

.signature-tabs {
    display: flex;
    gap: 8px;
}

.signature-tabs button {
    background: #eef2f6;
    color: var(--ink);
    padding: 8px 12px;
}

.signature-tabs button.active {
    background: var(--blue);
    color: #fff;
}

.signature-mode {
    display: grid;
    gap: 10px;
}

.signature-mode[hidden] {
    display: none !important;
}

.typed-signature-preview {
    border: 1px dashed #a8b3c2;
    border-radius: 6px;
    font-family: "Segoe Script", "Brush Script MT", cursive;
    font-size: 34px;
    min-height: 88px;
    padding: 18px;
}

#drawSignature {
    border: 1px solid #a8b3c2;
    border-radius: 6px;
    height: 170px;
    touch-action: none;
    width: 100%;
}

#uploadSignaturePreview {
    border: 1px dashed #a8b3c2;
    border-radius: 6px;
    max-height: 150px;
    max-width: 100%;
    object-fit: contain;
}

.signature-dialog-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

#finishSigning:disabled {
    cursor: not-allowed;
    opacity: .52;
}

.sign-field {
    align-items: stretch;
    background: rgb(255 233 145 / 82%);
    border: 1px solid #d6ae19;
    border-radius: 2px;
    display: grid;
    padding: 2px;
    position: absolute;
}

.sign-field.required::after {
    color: var(--red);
    content: "*";
    font-size: 15px;
    font-weight: 900;
    line-height: 1;
    position: absolute;
    right: 3px;
    top: 1px;
}

.sign-field input,
.sign-field select {
    background: rgb(255 255 255 / 82%);
    border: 0;
    border-radius: 1px;
    font-size: 13px;
    height: 100%;
    min-height: 0;
    padding: 3px 6px;
    width: 100%;
}

.sign-check {
    align-items: center;
    display: flex;
    flex-direction: row;
    font-size: 12px;
    gap: 4px;
    height: 100%;
    overflow: hidden;
}

.sign-check input {
    height: 16px;
    min-width: 16px;
    width: 16px;
}

@media (max-width: 920px) {
    .topbar,
    .section-head,
    .page-title,
    .sign-head {
        align-items: stretch;
        flex-direction: column;
    }

    .hero,
    .public-hero,
    .public-split,
    .stats-grid,
    .public-stats,
    .feature-grid,
    .workflow-track,
    .use-case-grid,
    .library-hero,
    .library-country-grid,
    .library-template-grid,
    .library-detail-hero,
    .library-field-list,
    .pricing-grid,
    .admin-inline-form,
    .admin-user-create-form,
    .admin-log-grid {
        grid-template-columns: 1fr;
    }

    .admin-user-create-form > div {
        grid-column: auto;
    }

    .footer-inner,
    .footer-links {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .visual-body {
        grid-template-columns: 1fr;
    }

    .editor-grid {
        grid-template-columns: 190px minmax(540px, 1fr) 250px;
    }
}
