/* Hallmark · redesign: full · shape: app screen · genre: modern-minimal · theme: SignerEC · signature: document workbench · v2.0.0 */
/* Critique · The file, preview or register anchors each screen; a capped shell puts navigation and account actions in one place. */

@import url("external-signers.css");

@font-face {
    font-family: Manrope;
    src: url("fonts/manrope-latin-400-normal.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: Manrope;
    src: url("fonts/manrope-latin-600-normal.woff2") format("woff2");
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: Manrope;
    src: url("fonts/manrope-latin-700-normal.woff2") format("woff2");
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: "Space Grotesk";
    src: url("fonts/space-grotesk-latin-600-normal.woff2") format("woff2");
    font-weight: 600;
    font-display: swap;
}

:root {
    color-scheme: light;
    --site-ink: #0e2445;
    --site-accent: #2457d6;
    --site-accent-strong: #183e9b;
    --site-accent-soft: #e5edfd;
    --site-background: #f4f6fa;
    --site-surface: #fff;
    --site-muted: #52627a;
    --site-line: #dce4ef;
    --site-control-line: #a0aec3;
    --site-night: #0e2445;
    --site-success: #215d42;
    --site-error: #972b40;
    --site-radius: .7rem;
    --site-shadow: 0 12px 32px #0e244510;
    --site-gutter: clamp(1rem, 3.4vw, 3rem);
    --site-content-width: 74rem;
    --site-header-size: 4.25rem;
    --site-font-body: Manrope, "Segoe UI", system-ui, sans-serif;
    --site-font-heading: "Space Grotesk", "Segoe UI", sans-serif;
    --site-focus-on-night: #a8c4ff;
    --site-on-night: #e1eafa;
    --site-on-night-soft: #dde8fc;
    --site-on-night-muted: #b6c7e4;
    --site-on-night-divider: #dce4ef28;
    --site-on-night-hover: #ffffff16;
    --site-menu-backdrop: #0e244579;
    --site-dialog-backdrop: #0e24458c;
    --site-popover-shadow: #0e244519;
    --site-notice-shadow: #0e244528;
    --site-success-muted: #18513b;
    --site-success-surface: #e8f6ee;
    --site-success-fill: #dff3e9;
    --site-error-surface: #fcecf0;
    --site-error-strong: #761d31;
    --site-warning: #754b07;
    --site-warning-surface: #ffefc9;
    --site-tab-border: #eaf0f7;
    --site-navy-light: #416397;
    --site-navy-medium: #27466e;
    font-family: var(--site-font-body);
    color: var(--site-ink);
    background: var(--site-background);
    line-height: 1.5;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
body { margin: 0; }
button, input, select { font: inherit; }

:where(a, button, input, select, summary):focus-visible {
    outline: 3px solid var(--site-accent);
    outline-offset: 3px;
}

.skip-link {
    position: fixed;
    z-index: 2;
    inset: .6rem auto auto .6rem;
    padding: .65rem 1rem;
    border-radius: .5rem;
    color: var(--site-surface);
    background: var(--site-accent-strong);
    transform: translateY(-160%);
}

.skip-link:focus { transform: none; }

.site-header {
    border-bottom: 1px solid var(--site-line);
    background: var(--site-surface);
}

.site-header__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .5rem 1rem;
    width: min(100% - 2 * var(--site-gutter), var(--site-content-width));
    min-height: var(--site-header-size);
    margin-inline: auto;
    padding-block: .55rem;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    min-height: 2.75rem;
    color: inherit;
    font-size: 1.12rem;
    font-weight: 700;
    letter-spacing: -.025em;
    text-decoration: none;
    white-space: nowrap;
}

.site-brand__mark {
    display: grid;
    width: 2.2rem;
    aspect-ratio: 1;
    place-items: center;
    border-radius: .5rem;
    color: var(--site-surface);
    background: var(--site-accent);
}

.site-brand__mark svg { width: 1.15rem; height: 1.15rem; }

.site-workspace #main-content { min-width: 0; }

.site-nav, .site-nav__group { display: grid; gap: .2rem; }
.site-nav__group + .site-nav__group { margin-top: .85rem; }
.site-nav__label { padding: .25rem .75rem; color: var(--site-muted); font-size: .76rem; font-weight: 700; }
.site-nav :is(a, button) {
    display: flex;
    align-items: center;
    gap: .65rem;
    width: 100%;
    min-height: 2.75rem;
    padding: .3rem .75rem;
    border: 0;
    border-radius: .45rem;
    color: inherit;
    background: transparent;
    font-size: .88rem;
    font-weight: 650;
    text-align: start;
    text-decoration: none;
    cursor: pointer;
}

.site-nav :is([aria-current="page"], a:hover, button:hover) {
    color: var(--site-accent-strong);
    background: var(--site-accent-soft);
}

.site-nav .account-action-icon { font-size: 1.05rem; }


.site-workspace .site-header { position: sticky; top: 0; z-index: 3; }

@media (min-width: 56.001rem) {
    .site-workspace .site-header__inner {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr) auto;
        column-gap: clamp(1rem, 3vw, 2.65rem);
        align-items: center;
        min-height: var(--site-header-size);
    }
    .site-header__inner > .site-nav {
        display: flex;
        justify-content: flex-start;
        gap: .35rem;
    }
    .site-header__inner > .site-nav .site-nav__group { display: flex; gap: .2rem; margin: 0; }
    .site-header__inner > .site-nav .site-nav__label { display: none; }
    .site-header__inner > .site-nav a { width: auto; white-space: nowrap; }
    .site-header__inner > .site-nav a[aria-current="page"] { box-shadow: inset 0 -3px var(--site-accent); }
}

.site-menu-drawer {
    width: min(18rem, 88%);
    height: 100dvh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: .3rem .75rem 1.2rem;
    border: 0;
    color: var(--site-on-night);
    background: var(--site-night);
}

.site-menu-drawer::backdrop { background: var(--site-menu-backdrop); }
body:has(.site-menu-drawer[open]) { overflow-y: hidden; }
.site-menu-drawer__head { display: flex; align-items: center; justify-content: space-between; gap: .4rem; padding: .5rem 0 .8rem; margin-bottom: .7rem; border-bottom: 1px solid var(--site-on-night-divider); }
.site-menu-drawer__head .account-button { padding-inline: .45rem; }

:where(.site-workspace .site-header, .site-menu-drawer) :where(a, button):focus-visible {
    outline-color: var(--site-focus-on-night);
}

.site-menu-drawer .site-nav__label { color: var(--site-on-night-muted); }
.site-menu-drawer .site-nav :is(a:hover, button:hover) { background: var(--site-on-night-hover); color: var(--site-surface); }
.site-menu-drawer .site-nav [aria-current="page"] { background: var(--site-accent); color: var(--site-surface); }



.site-tooltip {
    position: fixed;
    z-index: 3;
    max-inline-size: min(22rem, 95%);
    padding: .3rem .55rem;
    border-radius: .4rem;
    color: var(--site-surface);
    background: var(--site-night);
    font-size: .8rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
    pointer-events: none;
}


.account-sections { display: grid; gap: 1rem; }

.account-count {
    display: inline-grid;
    min-width: 1.65rem;
    min-height: 1.65rem;
    place-items: center;
    padding-inline: .35rem;
    border-radius: 1rem;
    color: var(--site-accent-strong);
    background: var(--site-accent-soft);
    font-size: .8rem;
    font-weight: 700;
}

.account-form { display: grid; gap: .45rem; }
.account-form label { font-size: .9rem; font-weight: 650; }

.account-form input:not([type="checkbox"]),
.smtp-form select {
    width: 100%;
    min-height: 2.9rem;
    margin-bottom: .45rem;
    padding: .55rem .8rem;
    border: 1px solid var(--site-muted);
    border-radius: .65rem;
    color: var(--site-ink);
    background: var(--site-surface);
}

.document-tabs.settings-nav {
    margin-block-end: 1rem;
    padding-inline: .6rem;
    border: 1px solid var(--site-line);
    border-radius: var(--site-radius);
    background: var(--site-surface);
}

.smtp-workspace .smtp-tabs {
    margin: 0 0 1rem;
    padding-inline: 0;
}

.smtp-pane h2 { margin-block-end: .65rem; }
.smtp-workspace:has(.smtp-tabs:not([hidden])) .smtp-pane h2 { display: none; }
.smtp-form { gap: .75rem; }
.smtp-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem .75rem; }
.smtp-field { display: grid; gap: .25rem; }
.smtp-field--wide { grid-column: 1 / -1; }
.smtp-form .smtp-field :is(input, select) { margin: 0; }
.smtp-fields .account-hint { margin: 0; }
.smtp-form > button { justify-self: start; }
.smtp-form button:disabled { opacity: .55; cursor: not-allowed; color: var(--site-muted); background: var(--site-background); }
.smtp-check { display: flex; align-items: center; gap: .45rem; min-height: 2.4rem; }

.smtp-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .35rem .7rem;
    padding-block-start: .6rem;
    border-top: 1px solid var(--site-line);
}

#smtp-test .smtp-form { max-inline-size: 31rem; }

.account-button {
    min-height: 2.75rem;
    padding: .55rem 1rem;
    border: 1px solid transparent;
    border-radius: .65rem;
    color: var(--site-surface);
    background: var(--site-accent);
    font-weight: 680;
    cursor: pointer;
}

.account-button:hover,
.account-button:active { background: var(--site-accent-strong); }

.account-button--danger { background: var(--site-error); }
.account-button--danger:is(:hover, :active) { background: var(--site-error-strong); }

.account-button--secondary {
    border-color: var(--site-control-line);
    color: var(--site-ink);
    background: var(--site-surface);
}

.account-button--secondary:is(:hover, :active) {
    color: var(--site-accent-strong);
    background: var(--site-accent-soft);
}

.file-picker {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem .65rem;
    min-width: 0;
    padding: .35rem;
    border: 1px solid var(--site-muted);
    border-radius: .65rem;
    background: var(--site-surface);
    font-size: .9rem;
}

.file-picker > input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.file-picker:has(input:focus-visible) {
    outline: 2px solid var(--site-accent);
    outline-offset: 2px;
}

.file-picker:has(input[aria-invalid="true"]) { border-color: var(--site-error); }

.file-picker:hover .file-picker__button {
    color: var(--site-accent-strong);
    background: var(--site-accent-soft);
}

.file-picker__status {
    min-width: 0;
    color: var(--site-muted);
    overflow-wrap: anywhere;
}

.account-create-form { max-inline-size: 32rem; }
.account-create-form > button { justify-self: start; }

.account-table-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-block-end: 1rem;
}

.account-table-heading h2 { margin: 0; }

.account-icon-button:not([hidden]) {
    display: inline-grid;
    inline-size: 2.75rem;
    block-size: 2.75rem;
    padding: 0;
    place-items: center;
    text-decoration: none;
}

.button-with-icon:not([hidden]) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
}

.account-action-icon {
    inline-size: 1em;
    block-size: 1em;
    flex: none;
    fill: currentColor;
}

.account-action--danger,
.account-action--danger:is(:hover, :active) { color: var(--site-error); }

.account-table-toolbar,
.account-table-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: .75rem 1rem;
}

.account-table-toolbar { margin-block-end: .85rem; }

.account-table-toolbar label {
    display: grid;
    gap: .3rem;
    font-size: .85rem;
    font-weight: 650;
}

.account-table-toolbar label:first-child {
    flex: 1 1 13rem;
    max-inline-size: 24rem;
    min-inline-size: 0;
}

.account-table-toolbar :is(input, select) {
    width: 100%;
    min-height: 2.75rem;
    padding: .45rem .65rem;
    border: 1px solid var(--site-muted);
    border-radius: .55rem;
    color: var(--site-ink);
    background: var(--site-surface);
    font-weight: 400;
}

.account-table-footer {
    align-items: center;
    margin-block-start: .85rem;
}

.account-table-footer p {
    margin: 0;
    color: var(--site-muted);
    font-size: .85rem;
}

.account-table-pagination { display: flex; gap: .45rem; }

.account-table-sort:disabled,
.account-table-pagination button:disabled {
    cursor: not-allowed;
    color: var(--site-muted);
    background: var(--site-background);
    opacity: .55;
}

.account-table-sort {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    min-height: 1.75rem;
    padding: 0;
    border: 0;
    color: inherit;
    background: transparent;
    font: inherit;
    text-align: start;
    cursor: pointer;
}

.account-table-sort:enabled span::before { content: "↕"; }
.account-table th[aria-sort] .account-table-sort { color: var(--site-accent-strong); }
.account-table th[aria-sort="ascending"] span::before { content: "↑"; }
.account-table th[aria-sort="descending"] span::before { content: "↓"; }

.account-table {
    width: 100%;
    min-inline-size: 30rem;
    border-collapse: collapse;
    text-align: start;
}

.account-table :is(th, td) {
    padding: .75rem .85rem;
    border-block-end: 1px solid var(--site-line);
    vertical-align: top;
    overflow-wrap: anywhere;
}

.account-table th { text-align: start; }

.account-table thead th {
    color: var(--site-muted);
    background: var(--site-background);
    font-size: .85rem;
    font-weight: 650;
    white-space: nowrap;
}

.account-table tbody tr:last-child > * { border-block-end: 0; }
.account-table tbody th {
    min-inline-size: 12rem;
    font-weight: 650;
}

.account-table__empty { color: var(--site-muted); }
.account-table .account-state {
    display: inline-block;
    white-space: nowrap;
}

.account-table__actions { inline-size: 8rem; min-inline-size: 8rem; }

.account-table__dates {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .25rem .5rem;
    margin: 0;
    font-size: .9rem;
    white-space: nowrap;
}

.account-table__dates dt { color: var(--site-muted); }
.account-table__dates dd { margin: 0; }

.account-dialog {
    --dialog-gutter: clamp(1rem, 4vw, 1.65rem);
    width: min(calc(100% - 2rem), 36rem);
    max-height: calc(100dvh - 2rem);
    padding: 0 var(--dialog-gutter) var(--dialog-gutter);
    border: 1px solid var(--site-line);
    border-radius: var(--site-radius);
    color: var(--site-ink);
    background: var(--site-surface);
    overscroll-behavior: contain;
}

.account-dialog::backdrop { background: var(--site-dialog-backdrop); }
body:has(.account-dialog[open]) { overflow-y: hidden; }

.account-dialog__close {
    position: absolute;
    inset-block-start: .65rem;
    inset-inline-end: .65rem;
    min-height: 2.75rem;
    padding: .4rem .65rem;
    border: 1px solid var(--site-on-night-divider);
    border-radius: var(--site-radius);
    color: var(--site-surface);
    background: var(--site-navy-medium);
    cursor: pointer;
}

.account-dialog__close:is(:hover, :active) { background: var(--site-navy-light); }
.account-dialog__close:focus-visible { outline-color: var(--site-focus-on-night); }

.account-dialog .document-panel {
    padding: 0;
    border: 0;
    box-shadow: none;
}

.account-dialog > h2,
.account-dialog [data-dialog-content] > :is(h2, h3) {
    display: flex;
    align-items: center;
    gap: .55rem;
    min-block-size: 4.25rem;
    min-inline-size: 0;
    margin-block: 0 1.2rem;
    margin-inline: calc(-1 * var(--dialog-gutter));
    padding-block: .85rem;
    padding-inline: var(--dialog-gutter) calc(var(--dialog-gutter) + 5rem);
    color: var(--site-surface);
    background: var(--site-night);
    font-size: 1.35rem;
    line-height: 1.15;
    overflow-wrap: break-word;
}

.account-dialog :is(h2, h3) > svg { flex: none; }

.account-dialog__subject {
    margin: 0 0 1rem;
    color: var(--site-muted);
    overflow-wrap: anywhere;
}

.account-dialog .account-form { row-gap: .6rem; }
.account-dialog form > .account-button { justify-self: end; }
.account-dialog .certificate-actions { justify-content: flex-end; }

@media (max-width: 36rem) {
    .account-dialog {
        width: min(calc(100% - 1rem), 34rem);
        max-height: calc(100dvh - 1rem);
        margin-block-end: .5rem;
    }

    .account-dialog form > .account-button { justify-self: stretch; }
    .account-dialog .certificate-actions > .account-button { inline-size: 100%; justify-content: center; }
}

.account-action-fallback[open] > section { margin-block-start: .75rem; }
.account-action-fallback h3 { margin: 0 0 .5rem; font-size: 1rem; }

.saved-certificate__delete {
    display: grid;
    gap: .55rem;
}

.saved-certificate__delete label {
    display: flex;
    align-items: center;
    gap: .5rem;
    min-height: 2.75rem;
    font-size: .9rem;
}

.account-feedback {
    margin: 0 0 1rem;
    padding: .75rem 1rem;
    border-inline-start: .25rem solid currentColor;
    border-radius: .55rem;
    color: var(--site-success);
    background: var(--site-success-surface);
}

.account-feedback--error {
    color: var(--site-error);
    background: var(--site-error-surface);
}

.account-hint {
    margin: 0 0 .5rem;
    color: var(--site-muted);
    font-size: .9rem;
}

.account-state {
    padding: .18rem .55rem;
    border-radius: 1rem;
    color: var(--site-muted);
    background: var(--site-background);
    font-size: .8rem;
}

.account-state--active { color: var(--site-success); background: var(--site-success-surface); }
.account-row__actions { display: flex; flex-wrap: wrap; gap: .5rem; }


:is(h1, h2, h3) { font-family: var(--site-font-heading); font-weight: 600; }

.document-page {
    width: min(100% - 2 * var(--site-gutter), var(--site-content-width));
    margin: 0 auto;
    padding-block: clamp(1.25rem, 3vw, 2.45rem) 2rem;
}

.document-page [hidden] { display: none !important; }
.document-page--narrow { max-width: 33rem; }

.document-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .75rem 1.25rem;
    margin-bottom: 1.35rem;
}

.document-heading h1 {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    line-height: 1.04;
    letter-spacing: -.052em;
    overflow-wrap: anywhere;
}

.document-heading p {
    margin: .45rem 0 0;
    color: var(--site-muted);
    overflow-wrap: anywhere;
}

.document-page a.account-button { text-decoration: none; }
.document-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .9rem 1.5rem;
    padding: 1rem clamp(.85rem, 3vw, 1.6rem);
    margin-block-end: 1.25rem;
    border-radius: var(--site-radius);
    border: 1px solid var(--site-night);
    color: var(--site-surface);
    background: var(--site-night);
}

.document-band__plan { display: flex; align-items: center; gap: .75rem; min-width: 0; color: inherit; text-decoration: none; }
.document-band a:hover strong { text-decoration: underline; }
.document-band__icon,
.document-empty__icon {
    display: grid;
    flex: none;
    width: 2.75rem;
    height: 2.75rem;
    place-items: center;
    border-radius: .75rem;
    font-size: 1.2rem;
}
.document-band__icon { color: var(--site-accent-soft); background: var(--site-navy-medium); }
.document-band__plan small { display: block; color: var(--site-on-night-soft); }
.document-band__plan strong { display: block; font-size: 1.13rem; overflow-wrap: anywhere; }
.document-band p { margin: 0; color: var(--site-on-night-soft); font-size: .9rem; }
.document-band dl { display: flex; flex-wrap: wrap; gap: .75rem 1.65rem; margin: 0; }
.document-band dl > div { border-inline-start: 1px solid var(--site-navy-light); padding-inline-start: 1rem; }
.document-band dt { font-size: .8rem; color: var(--site-on-night-soft); }
.document-band dd { margin: 0; font-size: 1.3rem; font-weight: 750; font-variant-numeric: tabular-nums; }

.document-inbox,
.document-panel {
    min-width: 0;
    border: 1px solid var(--site-line);
    border-radius: var(--site-radius);
    background: var(--site-surface);
}

.document-panel { padding: clamp(.9rem, 2.4vw, 1.4rem); }
.document-inbox .document-panel { border: 0; background: transparent; }
.document-inbox .document-panel + .document-panel { border-top: 1px solid var(--site-line); }
.document-panel h2 { margin: 0 0 .75rem; font-size: 1.12rem; letter-spacing: -.02em; }
.document-panel__heading { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-bottom: .75rem; }
.document-panel__heading h2, .document-panel .account-table-heading h2 { margin: 0; }
.document-panel .account-table-heading h2 { display: flex; align-items: center; gap: .5rem; }

.document-tabs { display: flex; gap: clamp(.2rem, 3vw, 1.2rem); padding-inline: clamp(.6rem, 2.4vw, 1.4rem); border-bottom: 1px solid var(--site-line); }
.document-tabs :is(button, a) {
    display: inline-flex;
    align-items: center;
    min-height: 3.1rem;
    gap: .45rem;
    padding: .4rem .5rem;
    border: 0;
    border-bottom: 3px solid transparent;
    color: var(--site-muted);
    background: transparent;
    font-weight: 690;
    cursor: pointer;
    text-decoration: none;
}
.document-tabs :is([aria-pressed="true"], [aria-selected="true"], [aria-current="page"]) { color: var(--site-accent-strong); border-bottom-color: var(--site-accent); }
.document-tabs :is(button, a):hover { color: var(--site-accent-strong); }
.document-inbox > .document-tabs:not([hidden]) ~ .document-panel > h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.document-inbox .document-tabs:not([hidden]) ~ .document-panel { border-top: 0; }

.document-empty { display: grid; justify-items: center; gap: .45rem; min-height: 9rem; align-content: center; text-align: center; padding: .9rem .4rem; }
.document-empty__icon { color: var(--site-accent-strong); background: var(--site-accent-soft); margin-bottom: .15rem; }
.document-empty p, .document-receipt p { margin: 0; color: var(--site-muted); }
.document-table-frame { position: relative; border: 1px solid var(--site-line); border-radius: .7rem; overflow: hidden; }
.document-table { min-width: 0; }
.document-table :is(th, td) { vertical-align: middle; }
.document-table tbody th { min-width: 0; }
.document-table thead th { white-space: normal; }
.document-table tbody a:not(.account-button) { color: var(--site-ink); text-underline-offset: .18em; }
.document-table tbody a:not(.account-button):hover { color: var(--site-accent); }
.document-row-action { width: 3.5rem; text-align: end; }
.document-table details[open] { min-width: min(30vw, 12rem); }
.document-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.document-state {
    display: inline-block;
    padding: .18rem .55rem;
    border-radius: .4rem;
    color: var(--site-warning);
    background: var(--site-warning-surface);
    font-size: .78rem;
    font-weight: 720;
    line-height: 1.3;
}
.document-state--done { background: var(--site-success-fill); color: var(--site-success-muted); }
.document-state--muted { background: var(--site-tab-border); color: var(--site-muted); }

.document-admin { display: grid; grid-template-columns: minmax(0, 1fr) minmax(14rem, 19rem); align-items: start; gap: 1rem; }
.plan-header-actions { display: flex; flex-wrap: wrap; gap: .55rem; }
.account-table-toolbar.plan-client-search { align-items: end; justify-content: start; }
.plan-client-search label:first-child { flex: 1 1 14rem; max-width: 28rem; min-width: 0; }
.plan-client-search .document-back { margin-bottom: .5rem; }
.plan-client-table th[scope="row"] { overflow-wrap: anywhere; }
.library-signer-list { display: grid; gap: .45rem; }
.library-signer-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.document-form select, .document-form textarea, .library-action-section :is(select, textarea) {
    width: 100%;
    min-height: 2.9rem;
    margin-bottom: .45rem;
    padding: .55rem .8rem;
    border: 1px solid var(--site-muted);
    border-radius: .65rem;
    color: var(--site-ink);
    background: var(--site-surface);
    font: inherit;
}
.document-form textarea:focus-visible, .library-action-section textarea:focus-visible { outline: 3px solid var(--site-accent); outline-offset: 3px; }
.document-form button, .document-plan-fields button { justify-self: start; }
.document-dialog { max-width: 31rem; }
.document-page > .document-form { margin-top: 1rem; }
.document-assignment > :is(a, form) { margin-bottom: .8rem; }
.document-download svg { transform: rotate(90deg); }
.document-assignment > a, .document-assignment > form > button { width: 100%; text-align: center; }
.document-delete { margin-top: .85rem; padding-top: .85rem; border-top: 1px solid var(--site-line); }
.document-back { display: inline-flex; align-items: center; gap: .25rem; padding: .15rem 0; margin-bottom: .65rem; color: var(--site-accent-strong); text-decoration: none; }
.document-back:hover { text-decoration: underline; }
.document-progress-count { color: var(--site-muted); font-size: .85rem; }

.document-timeline { margin: 0; padding: 0; list-style: none; }
.document-timeline li { display: grid; grid-template-columns: 2rem minmax(0, 1fr) auto; align-items: center; gap: .75rem; padding-block: .7rem; border-top: 1px solid var(--site-line); }
.document-timeline__step { display: grid; place-items: center; width: 2rem; aspect-ratio: 1; border-radius: 50%; background: var(--site-accent-soft); color: var(--site-accent-strong); font-weight: 700; }
.document-timeline__step--done { color: var(--site-success-muted); background: var(--site-success-fill); }
.document-timeline strong { overflow-wrap: anywhere; }
.document-timeline small { display: block; color: var(--site-muted); }

.document-meters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.document-meter h2 { display: flex; gap: .5rem; align-items: center; }
.document-meter h2 svg { color: var(--site-accent); }
.document-meter strong { display: block; margin-bottom: .45rem; font-size: clamp(1.45rem, 3vw, 2rem); font-variant-numeric: tabular-nums; }
.document-meter strong small { font-size: .9rem; color: var(--site-muted); font-weight: 600; }
.document-meter meter { width: 100%; height: .8rem; accent-color: var(--site-accent); margin-bottom: .45rem; }
.document-meter meter::-webkit-meter-optimum-value { background: var(--site-accent); }
.document-meter meter::-moz-meter-bar { background: var(--site-accent); }
.document-receipt { display: grid; justify-items: center; gap: .65rem; text-align: center; padding-block: 2rem; }
.document-receipt h1 { margin: 0; font-size: 1.7rem; letter-spacing: -.035em; }
.document-receipt__icon--done { color: var(--site-success-muted); background: var(--site-success-fill); }
.document-receipt p { overflow-wrap: anywhere; max-width: 100%; }

@media (max-width: 57rem) {
    .document-admin { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 38rem) {
    .document-meters { grid-template-columns: minmax(0, 1fr); }
    .document-table :is(th, td) { padding: .5rem .3rem; font-size: .8rem; }
    .document-table .account-table-sort { gap: .13rem; overflow-wrap: anywhere; }
    .document-band dl { gap: .75rem; }
    .document-band dl > div { padding-inline-start: .55rem; }
    .document-band dd { font-size: 1.12rem; }
}

.site-navigation-toggle:not([hidden]) { display: inline-flex; }
.document-table-unit { display: block; color: var(--site-muted); font-size: .75rem; }

@media (max-width: 56rem) {
    .site-header__inner > .site-nav { width: 100%; padding-block: .55rem; border-top: 1px solid var(--site-line); }
}

@media (max-width: 38rem) {
    .document-page--admin .document-table { table-layout: fixed; }
    .document-page--admin .document-table thead th:first-child { width: 29%; }
    .document-page--admin .document-table thead th:last-child { width: 3.1rem; }
    .document-page--admin .document-table th button span { display: none; }
    .document-page--admin .document-table th[aria-sort] button span { display: inline; }
}


@media (max-width: 26rem) {
    .document-timeline li { grid-template-columns: 2rem minmax(0, 1fr); gap: .25rem .65rem; }
    .document-timeline__step { grid-row: 1 / span 2; }
    .document-timeline .document-state { justify-self: start; }
}


.document-table-frame:focus-visible {
    outline: 3px solid var(--site-accent);
    outline-offset: 3px;
}

@media (max-width: 62rem) {
    .document-table--certificates :is(thead, tbody) { display: block; }
    .document-table--certificates thead tr {
        display: flex;
        flex-wrap: wrap;
        gap: .15rem .5rem;
        border-bottom: 1px solid var(--site-line);
        padding: .4rem .65rem;
        background: var(--site-background);
    }
    .document-table--certificates thead th { padding: 0; border: 0; }
    .document-table--certificates thead th:last-child { display: none; }
    .document-table--certificates tbody tr {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        border-block-end: 1px solid var(--site-line);
        padding: .45rem .65rem;
        gap: .2rem .7rem;
    }
    .document-table--certificates tbody tr:last-child { border: 0; }
    .document-table--certificates tbody :is(th, td) { min-width: 0; padding: .25rem 0; border: 0; }
    .document-table--certificates tbody :is(th, .account-table__actions, .account-table__empty td) { grid-column: 1 / -1; width: auto; }
    .document-table--certificates [data-label]::before {
        display: block;
        content: attr(data-label);
        margin-bottom: .15rem;
        color: var(--site-muted);
        font-size: .73rem;
        font-weight: 650;
    }
}

@media (max-width: 38rem) {
    .smtp-fields { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 38rem) {
    .document-tabs.settings-nav a { font-size: .875rem; white-space: nowrap; }
    .document-page .account-table-toolbar { gap: .55rem; }
    .document-page .account-table-toolbar label:first-child { flex-basis: 8rem; }
    .document-table--certificates .account-table__dates { white-space: normal; }
}

@media (max-width: 26rem) {
    .document-table--certificates .certificate-validity { grid-column: 1 / -1; }
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
}

.site-content { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.site-content #main-content { flex: 1; }
.site-footer {
    padding: .85rem var(--site-gutter);
    border-top: 1px solid var(--site-line);
    color: var(--site-muted);
    background: var(--site-surface);
}

.landing-footer {
    flex: none;
    margin-block-start: auto;
    padding-block: 1.5rem;
    color: var(--site-muted);
    background: var(--site-surface);
}

.landing-footer .landing-frame,
.landing-footer__details,
.landing-footer__country {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.landing-footer .landing-frame {
    justify-content: space-between;
    gap: .5rem 1.25rem;
    width: min(calc(100% - var(--site-gutter) * 2), var(--site-content-width));
    margin-inline: auto;
}

.landing-footer__details { gap: .4rem clamp(.65rem, 2vw, 1.5rem); }
.landing-footer__country { gap: .45rem; font-size: .88rem; }
.landing-footer__country .landing-icon { width: .85rem; height: .85rem; flex: none; color: var(--site-error); fill: currentColor; }
.landing-footer__country img { display: block; border-radius: .15rem; }

.landing-footer strong {
    color: var(--site-ink);
    font-family: var(--site-font-heading);
    font-size: 1.2rem;
    font-weight: 600;
}


.site-topbar-host:empty { display: none; }

.site-topbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .55rem;
}

.site-popover { position: relative; }
.site-popover__trigger {
    display: flex;
    min-width: 2.75rem;
    min-height: 2.75rem;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: .25rem .5rem;
    border: 1px solid var(--site-line);
    border-radius: .55rem;
    color: var(--site-ink);
    background: var(--site-surface);
    cursor: pointer;
    list-style: none;
}

.site-popover__trigger::-webkit-details-marker { display: none; }
.site-popover[open] .site-popover__trigger, .site-popover__trigger:hover { background: var(--site-accent-soft); }
.site-notification-trigger { position: relative; font-size: 1.1rem; }
.site-notification-count {
    position: absolute;
    inset: -.22rem -.27rem auto auto;
    min-width: 1.15rem;
    min-height: 1.15rem;
    padding-inline: .15rem;
    border: 1px solid var(--site-surface);
    border-radius: 1rem;
    color: var(--site-surface);
    background: var(--site-accent);
    font-size: .67rem;
    font-weight: 700;
    text-align: center;
}

.site-user-avatar {
    display: inline-grid;
    width: 1.75rem;
    height: 1.75rem;
    flex: none;
    place-items: center;
    border-radius: 50%;
    color: var(--site-accent-strong);
    background: var(--site-accent-soft);
    font-size: .8rem;
    font-weight: 700;
}

.site-account-trigger__text { font-size: .85rem; font-weight: 700; }
.site-account-chevron { font-size: .75rem; transform: rotate(90deg); }

.site-popover__panel {
    position: absolute;
    z-index: 1;
    inset: calc(100% + .45rem) 0 auto auto;
    display: grid;
    width: 17rem;
    gap: .15rem;
    padding: .55rem;
    border-radius: var(--site-radius);
    background: var(--site-surface);
    box-shadow: 0 .55rem 1.5rem var(--site-popover-shadow);
}

.site-notification-panel { width: 20rem; }
.site-popover__panel h2 { margin: .25rem .5rem .35rem; font-size: 1.05rem; }
.site-popover__panel p { margin: .3rem .5rem; color: var(--site-muted); font-size: .83rem; overflow-wrap: anywhere; }
.site-popover__panel ul { margin: 0; padding: 0; list-style: none; }
.site-popover__panel :is(a, button) {
    display: flex;
    width: 100%;
    min-height: 2.75rem;
    align-items: center;
    gap: .55rem;
    padding: .35rem .5rem;
    border: 0;
    border-radius: .4rem;
    color: var(--site-ink);
    background: transparent;
    font-size: .85rem;
    font-weight: 650;
    text-align: start;
    text-decoration: none;
    overflow-wrap: anywhere;
    cursor: pointer;
}

.site-popover__panel :is(a:hover, button:hover, [aria-current="page"]) { color: var(--site-accent-strong); background: var(--site-accent-soft); }
.site-popover__panel .site-popover__footer { margin-top: .25rem; border-top: 1px solid var(--site-line); color: var(--site-accent-strong); }
.site-account-panel .site-account-email { padding-block-end: .5rem; border-bottom: 1px solid var(--site-line); }
.profile-account { display: grid; gap: .75rem; margin: 0; }
.profile-account dt { color: var(--site-muted); font-size: .85rem; }
.profile-account dd { margin: 0; font-weight: 650; overflow-wrap: anywhere; }
.profile-plan-name { margin: 0 0 .8rem; font-weight: 700; }

@media (max-width: 56rem) {
    .site-header__inner { position: relative; }
    .site-topbar .site-popover { position: static; }
    .site-topbar .site-popover__panel { inset-inline-end: 0; max-width: 100%; }
    .site-header__inner .site-navigation-toggle { margin-inline-start: auto; padding-inline: .6rem; }
}

@media (max-width: 30rem) {
    .library-tabs--extended .account-action-icon { display: none; }
    .library-tabs--extended { flex-wrap: wrap; }
    .site-header__inner .site-brand { font-size: .93rem; gap: .35rem; }
    .site-header__inner { column-gap: .35rem; }
    .site-account-trigger__text, .site-account-chevron { display: none; }
    .site-header__inner .site-topbar { gap: .35rem; }
}

@media (max-width: 22rem) {
    .site-header__inner:has(.site-topbar) .site-brand { font-size: 0; gap: 0; }
}

.site-feedback-fallback { width: min(100% - 2 * var(--site-gutter), var(--site-content-width)); margin: .75rem auto 0; }
.site-feedback-fallback[hidden] { display: none; }

.library-page .library-heading { margin-block-end: 1.15rem; }
.library-heading p { margin-block-end: 0; }
.document-panel.library-panel { padding: 0; border-radius: .85rem; }
.library-workspace-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .5rem;
    padding-inline: clamp(.65rem, 2vw, 1.25rem);
    border-bottom: 1px solid var(--site-line);
}
.library-tabs { padding-inline: 0; border-bottom: 0; }
.library-tabs a { min-height: 2.9rem; }
.library-total { color: var(--site-muted); font-size: .8rem; white-space: nowrap; }
.library-request-list { padding: 1rem clamp(.65rem, 2vw, 1.25rem); }
.library-compact-meta, .library-compact-state { display: none; }
.library-table-frame { border-width: 1px 0; border-radius: 0; }
.library-table { table-layout: fixed; }
.library-table :is(th, td) { padding: .5rem .72rem; }
.library-table thead th { font-size: .75rem; font-weight: 750; }
.library-table .library-date { width: 9rem; white-space: nowrap; }
.library-table .library-state-column { width: 8.6rem; }
.library-table .library-owner { width: 12rem; overflow-wrap: anywhere; }
.library-table .library-select { width: 3rem; text-align: center; padding-inline: .25rem; }
.library-select-target { display: grid; min-height: 2.75rem; place-items: center; cursor: pointer; }
.library-select input { width: 1.05rem; height: 1.05rem; accent-color: var(--site-accent); cursor: pointer; }
.library-table tbody tr { cursor: pointer; }
.library-table tbody tr:hover > * { background: var(--site-background); }
.library-table tr:has([data-library-document]:checked) > * { background: var(--site-accent-soft); }
.library-table tr:has([data-library-document]:checked) > :first-child { box-shadow: inset 3px 0 var(--site-accent); }
.library-document { display: flex; align-items: center; gap: .65rem; }
.library-file-icon { flex: none; display: grid; width: 2rem; height: 2rem; place-items: center; border: 1px solid var(--site-line); border-radius: .5rem; color: var(--site-accent-strong); background: var(--site-surface); }
.library-file-info { min-width: 0; }
.library-table .library-document-title { display: block; overflow-wrap: anywhere; text-decoration: none; }
.library-table .library-document-title:hover { text-decoration: underline; }
.library-table .document-table-unit { overflow-wrap: anywhere; }
.library-filters { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; align-items: end; gap: .55rem; padding: .85rem clamp(.65rem, 2vw, 1.25rem); }
.library-filters label { display: grid; min-width: 0; gap: .2rem; color: var(--site-ink); font-size: .8rem; font-weight: 700; }
.library-filters :is(input, select) { width: 100%; min-height: 2.75rem; border: 1px solid var(--site-muted); border-radius: .65rem; padding: .35rem .55rem; background: var(--site-surface); color: var(--site-ink); }
.library-search-label { position: relative; }
.library-search-label .account-action-icon { position: absolute; inset-inline-start: .7rem; top: .9rem; color: var(--site-muted); }
.library-search-label input { padding-inline-start: 2.05rem; }
.library-filters > a { justify-self: start; color: var(--site-accent-strong); font-size: .8rem; }
.library-toolbar { padding: .55rem clamp(.65rem, 2vw, 1.25rem); border-top: 1px solid var(--site-line); background: var(--site-background); }
.library-selection { margin: 0 0 .28rem; overflow-wrap: anywhere; font-size: .82rem; font-weight: 750; }
.library-toolbar-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .65rem; }
.library-action-group { display: flex; align-items: center; gap: .25rem; }
.library-action-group + .library-action-group { padding-inline-start: .65rem; border-inline-start: 1px solid var(--site-line); }
.library-toolbar-actions button { min-width: 0; padding: .35rem .55rem; font-size: .77rem; line-height: 1.2; text-align: center; }
.library-action-secondary { color: var(--site-ink); background: transparent; }
.library-action-secondary:is(:hover, :active) { color: var(--site-accent-strong); background: var(--site-accent-soft); }
.library-action-secondary[data-library-action="delete"] { color: var(--site-error); }
.library-toolbar-actions button:disabled { opacity: .55; cursor: not-allowed; color: var(--site-muted); background: var(--site-background); }
.library-pagination, .library-pagination nav { display: flex; align-items: center; gap: .55rem; }
.library-pagination {
    justify-content: space-between;
    flex-wrap: wrap;
    padding: .45rem clamp(.65rem, 2vw, 1.25rem);
    color: var(--site-muted);
    font-size: .82rem;
}
.library-pagination [aria-current="page"] { color: var(--site-ink); font-weight: 700; white-space: nowrap; }
.library-pagination button:disabled { opacity: .55; cursor: not-allowed; color: var(--site-muted); background: var(--site-background); }
.library-action-section { padding-block: .75rem; border-block-start: 1px solid var(--site-line); }
.library-action-section > button { justify-self: start; }
#library-operation .account-dialog__subject { overflow-wrap: anywhere; }
.library-history { margin: 0; padding: 0; list-style: none; }
.library-history li { display: flex; gap: .75rem; align-items: center; justify-content: space-between; padding: .65rem 0; }
.library-history li + li { border-top: 1px solid var(--site-line); }
.library-history li > div { min-width: 0; overflow-wrap: anywhere; }
.library-history li > a { flex: none; }
.employee-table { table-layout: fixed; }
.employee-table tbody th { overflow-wrap: anywhere; }
.employee-table .employee-status { width: 7rem; }
.employee-table .employee-actions { width: 7.25rem; text-align: end; }
.employee-row-actions { display: flex; justify-content: flex-end; gap: .35rem; }
.version-signers { margin-block-start: .4rem; font-size: .84rem; }
.version-signers summary { cursor: pointer; font-weight: 700; }
.version-signers p { margin: .2rem 0 0; color: var(--site-muted); }

@media (min-width: 56.001rem) {
    .library-toolbar { position: sticky; top: var(--site-header-size); z-index: 1; }
}

@media (max-width: 64rem) {
    .library-table .library-state-column { display: none; }
    .library-compact-state { display: inline-block; margin-top: .25rem; }
    .library-toolbar-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .2rem; }
    .library-action-group { display: contents; }
}

@media (max-width: 48rem) {
    .library-table :is(.library-date, .library-owner) { display: none; }
    .library-compact-meta { display: grid; }
}

@media (max-width: 38rem) {
    .employee-table .employee-status { width: 5.25rem; }
    .employee-table .employee-actions { width: 6.5rem; }
    .library-heading { flex-wrap: nowrap; }
    .library-heading h1 { font-size: clamp(1.33rem, 6vw, 1.7rem); }
    .library-heading .account-row__actions { flex: none; flex-wrap: nowrap; gap: .3rem; }
    .library-heading .account-button { padding-inline: .55rem; font-size: .79rem; }
    .library-filters { grid-template-columns: minmax(0, 1fr) 5rem; }
    .library-filters .library-search-label { grid-column: 1; grid-row: 1; }
    .library-filters > button { grid-column: 2; grid-row: 1; padding-inline: .3rem; }
    .library-tabs { gap: .25rem; }
    .library-tabs a { padding-inline: .25rem; font-size: .82rem; }
    .library-total { font-size: .72rem; }
    .library-table :is(th, td) { padding: .45rem .35rem; }
    .library-document { gap: .45rem; }
    .library-file-icon { width: 1.65rem; height: 1.65rem; }
    .library-toolbar-actions button { flex-direction: column; gap: .18rem; padding: .35rem .12rem; }
}

@media (max-width: 30rem) {
    .library-total { padding: .12rem .45rem; border-radius: .9rem; color: var(--site-accent-strong); background: var(--site-accent-soft); }
    .library-total-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}
