.ga-sign-page {
    --ga-ink: #17202d;
    --ga-muted: #5f7184;
    --ga-line: #d8dee8;
    --ga-paper: #ffffff;
    --ga-sage: #2f766b;
    --ga-teal: #165ec9;
    --ga-clay: #b85c45;
    --ga-header-offset: 70px;
    min-height: calc(100vh - var(--ga-header-offset));
    padding: calc(var(--ga-header-offset) + 16px) 12px 28px;
    background: #f4f7fb;
    scroll-margin-top: var(--ga-header-offset);
}

.ga-work-page {
    background:
        linear-gradient(180deg, rgba(240, 246, 244, 0.96), rgba(244, 247, 251, 0.98) 44%, rgba(238, 243, 248, 0.98)),
        #f4f7fb;
}

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

.ga-sign-shell {
    width: min(1200px, 100%);
    margin: 0 auto;
}

.ga-sign-topbar,
.ga-panel {
    border: 1px solid #d8dee8;
    border-radius: 8px;
}

.ga-sign-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    padding: 11px 13px;
}

.ga-work-page .ga-sign-topbar {
    align-items: stretch;
    padding: 15px;
    border-color: rgba(31, 49, 64, 0.12);
    box-shadow: 0 16px 42px rgba(31, 49, 64, 0.1);
}

.ga-work-title-wrap {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 13px;
    align-items: center;
}

.ga-work-mark {
    display: grid;
    align-content: space-between;
    min-height: 86px;
    padding: 10px;
    border: 1px solid #dce7e4;
    border-radius: 8px;
    background: #eef7f4;
    color: var(--ga-sage);
}

.ga-work-mark span {
    font-size: 23px;
    font-weight: 900;
    line-height: 1;
}

.ga-work-mark strong {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0;
}

.ga-sign-title p {
    margin: 0 0 3px;
    color: #4d647b;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0;
}

.ga-sign-title h1 {
    margin: 0;
    color: #17202d;
    font-size: 23px;
    font-weight: 700;
    letter-spacing: 0;
}

.ga-work-page .ga-sign-title h1 {
    font-size: 27px;
    line-height: 1.18;
}

.ga-work-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 9px;
}

.ga-work-meta span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 9px;
    border: 1px solid #dce7e4;
    border-radius: 999px;
    background: #f4faf7;
    color: #376d64;
    font-size: 12px;
    font-weight: 900;
}

.ga-work-seo-summary {
    max-width: 760px;
    margin: 9px 0 0;
    color: #506173;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.55;
}

.ga-sign-actions,
.ga-doc-card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ga-link-btn,
.ga-primary-btn,
.ga-secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 40px;
    padding: 0 12px;
    border: 1px solid #c8d1dc;
    border-radius: 7px;
    background: #ffffff;
    color: #1e2a38;
    cursor: pointer;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0;
    text-decoration: none;
}

.ga-sign-actions .ga-link-btn {
    min-width: 82px;
    padding: 0 10px;
}

.ga-sign-actions .ga-icon-action {
    width: 40px;
    min-width: 40px;
    padding: 0;
}

.ga-primary-btn {
    border-color: #165ec9;
    background: #165ec9;
    color: #ffffff;
}

.ga-secondary-btn:hover,
.ga-link-btn:hover {
    border-color: #6b7f98;
    background: #eef3f8;
}

.ga-primary-btn:hover {
    border-color: #0e4fae;
    background: #0e4fae;
}

.ga-danger-ghost-btn {
    border-color: #e5c4bc;
    color: #9d4634;
}

.ga-danger-ghost-btn:hover {
    border-color: #c97966;
    background: #fff2ef;
}

.ga-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    min-width: 40px;
    height: 40px;
    border: 1px solid #c8d1dc;
    border-radius: 7px;
    background: #ffffff;
    color: #29384a;
    cursor: pointer;
}

.ga-render-modal {
    position: fixed;
    inset: 0;
    z-index: 1600;
    display: grid;
    place-items: center;
    padding: 16px;
    background: rgba(23, 32, 45, 0.42);
}

.ga-render-modal[hidden] {
    display: none;
}

.ga-render-modal__panel {
    display: grid;
    justify-items: center;
    width: min(320px, 100%);
    padding: 22px 18px;
    border: 1px solid #d8dee8;
    border-radius: 8px;
    background: #ffffff;
    color: var(--ga-ink);
    box-shadow: 0 18px 46px rgba(18, 28, 40, 0.24);
    text-align: center;
}

.ga-render-modal__panel strong {
    margin-top: 12px;
    font-size: 17px;
    font-weight: 900;
}

.ga-render-modal__panel p {
    margin: 7px 0 0;
    color: var(--ga-muted);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.45;
}

.ga-render-modal__panel .ga-primary-btn {
    margin-top: 14px;
    width: 100%;
}

.ga-render-spinner {
    width: 38px;
    height: 38px;
    border: 4px solid #dce6f2;
    border-top-color: #165ec9;
    border-radius: 999px;
    animation: ga-render-spin 0.85s linear infinite;
}

.ga-render-modal.is-ready .ga-render-spinner {
    border-color: #b7ded5;
    border-top-color: #2f766b;
    animation: none;
}

@keyframes ga-render-spin {
    to {
        transform: rotate(360deg);
    }
}

.ga-work-mode-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}

.ga-work-mode-switch button {
    display: grid;
    gap: 4px;
    min-height: 58px;
    padding: 10px 12px;
    border: 1px solid #d8dee8;
    border-radius: 8px;
    background: #ffffff;
    color: #17202d;
    cursor: pointer;
    text-align: left;
}

.ga-work-mode-switch button strong {
    font-size: 14px;
    font-weight: 900;
}

.ga-work-mode-switch button span {
    color: #66778a;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
}

.ga-work-mode-switch button.is-active {
    border-color: #2f766b;
    background: #eef7f4;
    color: #205b51;
    box-shadow: 0 0 0 3px rgba(47, 118, 107, 0.11);
}

.ga-work-mode-switch button.is-active span {
    color: #38665f;
}

.ga-workbench {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(250px, 310px);
    gap: 12px;
    align-items: start;
}

.ga-work-page .ga-workbench {
    grid-template-columns: minmax(0, 1fr) minmax(270px, 320px);
}

.ga-agency-home {
    --ga-home-ink: #1d2834;
    --ga-home-muted: #657589;
    --ga-home-line: #d9e1ea;
    --ga-home-paper: #ffffff;
    --ga-home-wash: #f4f7fb;
    --ga-home-sage: #3f7f72;
    --ga-home-teal: #1d6f86;
    --ga-home-clay: #b8624b;
    background:
        linear-gradient(180deg, rgba(244, 247, 251, 0.94), rgba(238, 243, 248, 0.96)),
        #f4f7fb;
}

.ga-agency-home .ga-sign-shell {
    width: min(1180px, 100%);
}

.ga-agency-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: stretch;
    min-height: 172px;
    margin-bottom: 14px;
    padding: 18px;
    border: 1px solid rgba(31, 49, 64, 0.12);
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(246, 250, 252, 0.9)),
        var(--ga-home-paper);
    box-shadow: 0 18px 46px rgba(31, 49, 64, 0.1);
}

.ga-agency-hero__left {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
}

.ga-agency-rail {
    display: grid;
    align-content: space-between;
    min-height: 126px;
    padding: 13px 10px;
    border: 1px solid #dce5eb;
    border-radius: 8px;
    background: #eef5f2;
    color: #2f6258;
}

.ga-agency-rail span {
    font-size: 26px;
    font-weight: 900;
    line-height: 1;
}

.ga-agency-rail strong {
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
}

.ga-agency-copy {
    min-width: 0;
}

.ga-agency-copy p {
    margin: 0 0 8px;
    color: var(--ga-home-sage);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
}

.ga-agency-copy h1 {
    margin: 0;
    color: var(--ga-home-ink);
    font-size: 32px;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.18;
}

.ga-agency-copy span {
    display: block;
    max-width: 660px;
    margin-top: 10px;
    color: var(--ga-home-muted);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.55;
}

.ga-agency-hero__actions {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
}

.ga-agency-workspace {
    padding: 15px;
    border: 1px solid var(--ga-home-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 32px rgba(31, 49, 64, 0.08);
}

.ga-agency-workspace__head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    padding: 4px 3px 14px;
    border-bottom: 1px solid #e6edf3;
}

.ga-agency-workspace__head span {
    color: var(--ga-home-teal);
    font-size: 12px;
    font-weight: 900;
}

.ga-agency-workspace__head h2 {
    margin: 3px 0 0;
    color: var(--ga-home-ink);
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 0;
}

.ga-agency-workspace__head p {
    max-width: 470px;
    margin: 0;
    color: var(--ga-home-muted);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
    text-align: right;
}

.ga-agency-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.ga-agency-card {
    position: relative;
    display: grid;
    grid-template-rows: auto auto auto 1fr auto;
    gap: 11px;
    min-height: 238px;
    padding: 16px;
    border: 1px solid #d8e1ea;
    border-radius: 8px;
    background: #ffffff;
    color: var(--ga-home-ink);
    text-decoration: none;
    overflow: hidden;
}

.ga-agency-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: var(--ga-home-sage);
}

.ga-agency-card--dev {
    background: #fbfcfd;
    color: #4f5f70;
}

.ga-agency-card--dev::before {
    background: #b8c4cf;
}

.ga-agency-card--ready:hover {
    border-color: #7ea69e;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(31, 49, 64, 0.12);
}

.ga-agency-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.ga-agency-kicker,
.ga-agency-badge {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0;
}

.ga-agency-kicker {
    background: #f2f6f4;
    color: #345d56;
}

.ga-agency-badge {
    background: #edf4ff;
    color: #165ec9;
}

.ga-agency-card--dev .ga-agency-badge {
    background: #eef1f5;
    color: #6b7888;
}

.ga-agency-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: #e8f3ef;
    color: var(--ga-home-sage);
    font-size: 20px;
}

.ga-agency-card:nth-child(2) .ga-agency-card__icon {
    background: #edf5f8;
    color: var(--ga-home-teal);
}

.ga-agency-card:nth-child(3) .ga-agency-card__icon {
    background: #f8efec;
    color: var(--ga-home-clay);
}

.ga-agency-card strong {
    font-size: 21px;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.2;
}

.ga-agency-card small {
    color: var(--ga-home-muted);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.48;
}

.ga-agency-action {
    align-self: end;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    width: 100%;
    padding: 0 12px;
    border: 1px solid #2f766b;
    border-radius: 7px;
    background: #2f766b;
    color: #ffffff;
    font-size: 14px;
    font-weight: 900;
}

.ga-agency-action-stack {
    display: grid;
    gap: 7px;
    align-self: end;
}

.ga-agency-action-stack .ga-agency-action {
    text-decoration: none;
}

.ga-agency-action--sub {
    border-color: #cbd5e1;
    background: #ffffff;
    color: #1e2a38;
}

.ga-agency-action--disabled {
    border-color: #d4dbe3;
    background: #eef2f6;
    color: #758293;
}

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

.ga-output-panel {
    position: sticky;
    top: calc(var(--ga-header-offset) + 12px);
}

.ga-mobile-output-bar,
.ga-mobile-output-sheet {
    display: none;
}

.ga-panel {
    padding: 12px;
}

.ga-work-page .ga-panel {
    border-color: #dce4ec;
    box-shadow: 0 8px 24px rgba(31, 49, 64, 0.06);
}

.ga-work-page .ga-input-panel > .ga-panel {
    position: relative;
    overflow: hidden;
}

.ga-work-page .ga-input-panel > .ga-panel::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: #dfece8;
}

.ga-work-page .ga-input-panel > .ga-panel:nth-child(2)::before {
    background: #e1eafa;
}

.ga-work-page .ga-input-panel > .ga-panel:nth-child(3)::before {
    background: #f5e3dd;
}

.ga-work-page .ga-input-panel > .ga-panel:nth-child(4)::before {
    background: #e4edf4;
}

.ga-panel-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.ga-panel-head strong {
    color: #17202d;
    font-size: 15px;
}

.ga-work-page .ga-panel-head strong {
    font-size: 16px;
}

.ga-panel-head span {
    color: #6b7b8b;
    font-size: 12px;
    white-space: nowrap;
}

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

.ga-field,
.ga-field-single {
    display: grid;
    gap: 5px;
}

.ga-field-single {
    margin-top: 10px;
}

.ga-field span,
.ga-check span,
.ga-choice span,
.ga-signature-head span {
    color: #3b4857;
    font-size: 12px;
    font-weight: 800;
}

.ga-field input {
    width: 100%;
    height: 40px;
    padding: 0 10px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    color: #15202d;
    font-size: 14px;
}

.ga-work-page .ga-field input,
.ga-work-page .ga-check,
.ga-work-page .ga-choice,
.ga-work-page .ga-doc-card,
.ga-work-page .ga-signature-item {
    background: #ffffff;
}

.ga-field input:focus {
    border-color: #165ec9;
    box-shadow: 0 0 0 3px rgba(22, 94, 201, .12);
    outline: 0;
}

.ga-field input[readonly] {
    background: #f1f5f9;
    color: #526173;
}

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

.ga-common-options {
    margin-top: 10px;
}

.ga-relation-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.ga-check {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 10px;
    border: 1px solid #d8dee8;
    border-radius: 7px;
    background: #fbfcfe;
    cursor: pointer;
}

.ga-check input {
    width: 18px;
    height: 18px;
}

.ga-choice {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 10px;
    border: 1px solid #d8dee8;
    border-radius: 7px;
    background: #fbfcfe;
    cursor: pointer;
}

.ga-choice:has(input:checked) {
    border-color: #2f766b;
    background: #eef7f4;
}

.ga-choice input {
    width: 18px;
    height: 18px;
}

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

.ga-signature-item {
    border: 1px solid #d8dee8;
    border-radius: 7px;
    background: #fbfcfe;
    overflow: hidden;
}

.ga-work-page .ga-signature-item:focus-within {
    border-color: #2f766b;
    box-shadow: 0 0 0 3px rgba(47, 118, 107, 0.1);
}

.ga-signature-item-wide {
    grid-column: 1 / -1;
}

.ga-signature-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 9px;
    border-bottom: 1px solid #e2e7ef;
}

.ga-signature-head button {
    height: 28px;
    padding: 0 9px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #ffffff;
    color: #435266;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
}

.ga-sign-pad {
    display: block;
    width: 100%;
    height: 178px;
    background: #ffffff;
    touch-action: none;
}

.ga-pad-guide {
    margin: 6px 9px 0;
    color: #165ec9;
    font-size: 12px;
    font-weight: 800;
}

.ga-doc-actions {
    display: grid;
    gap: 9px;
}

.ga-doc-group {
    display: grid;
    gap: 8px;
}

.ga-doc-group-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 34px;
    padding: 0 10px;
    border: 1px solid #d8dee8;
    border-radius: 7px;
    background: #f7f9fc;
    color: #17202d;
    cursor: pointer;
    font-size: 13px;
    font-weight: 900;
}

.ga-doc-group-title i {
    color: #718196;
    font-size: 11px;
    transition: transform 0.16s ease;
}

.ga-doc-group.is-active .ga-doc-group-title {
    border-color: #2f766b;
    background: #eef7f4;
    color: #205b51;
    box-shadow: 0 0 0 3px rgba(47, 118, 107, 0.12);
}

.ga-doc-group-list {
    display: grid;
    gap: 8px;
}

.ga-doc-group.is-collapsed .ga-doc-group-list {
    display: none;
}

.ga-doc-group.is-collapsed .ga-doc-group-title i {
    transform: rotate(-90deg);
}

.ga-doc-card {
    display: grid;
    gap: 9px;
    padding: 10px;
    border: 1px solid #d8dee8;
    border-radius: 7px;
    background: #fbfcfe;
}

.ga-work-page .ga-output-panel .ga-panel {
    border-color: #cfdbe6;
}

.ga-doc-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: max-content;
    min-height: 28px;
    padding: 0 8px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    background: #ffffff;
    color: #334155;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.ga-doc-toggle input {
    width: 16px;
    height: 16px;
}

.ga-doc-card strong,
.ga-doc-card span {
    display: block;
}

.ga-doc-card strong {
    color: #17202d;
    font-size: 14px;
    line-height: 1.35;
}

.ga-doc-card span {
    margin-top: 3px;
    color: #66778a;
    font-size: 12px;
    line-height: 1.4;
}

.ga-doc-card-actions .ga-primary-btn,
.ga-doc-card-actions .ga-secondary-btn {
    flex: 1;
}

.ga-status {
    min-height: 36px;
    margin: 10px 0 0;
    color: #536274;
    font-size: 12px;
    line-height: 1.45;
}

.ga-panel-subhead {
    margin: 14px 0 8px;
    color: #17202d;
    font-size: 13px;
    font-weight: 800;
}

.ga-esign-form-groups,
.ga-esign-form-group {
    display: grid;
    gap: 8px;
}

.ga-esign-form-group > strong {
    display: block;
    color: #17202d;
    font-size: 12px;
    font-weight: 900;
}

.ga-esign-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
    gap: 12px;
    align-items: start;
}

.ga-esign-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.ga-esign-send-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    margin-top: 14px;
}

.ga-esign-mode-choice {
    width: auto;
}

.ga-esign-list-filters {
    display: grid;
    grid-template-columns: minmax(172px, .92fr) minmax(236px, 1.08fr);
    gap: 6px;
    align-items: end;
    margin: 0 0 10px;
}

.ga-esign-filter-preset {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: center;
    gap: 4px;
}

.ga-esign-filter-preset .ga-choice {
    justify-content: center;
    min-height: 34px;
    padding: 0 4px;
}

.ga-esign-filter-preset .ga-choice input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ga-esign-filter-range {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 6px;
    align-items: end;
}

.ga-esign-filter-input {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 5px;
}

.ga-esign-filter-input span {
    color: #3b4857;
    font-size: 11px;
    font-weight: 800;
}

.ga-esign-filter-input input {
    width: 100%;
    height: 34px;
    padding: 0 6px;
    border: 1px solid #cbd5e1;
    border-radius: 7px;
    background: #ffffff;
    color: #15202d;
    font-size: 12px;
}

.ga-esign-filter-input input:disabled {
    background: #eef2f6;
    color: #8a98aa;
}

.ga-esign-result-list {
    display: grid;
    gap: 8px;
}

.ga-esign-result-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    padding: 10px;
    border: 1px solid #d8dee8;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.58);
}

.ga-esign-result-main strong,
.ga-esign-result-main span,
.ga-esign-result-main small {
    display: block;
}

.ga-esign-result-main strong {
    color: #17202d;
    font-size: 14px;
}

.ga-esign-result-main span,
.ga-esign-result-main small {
    margin-top: 3px;
    color: #66778a;
    font-size: 12px;
}

.ga-esign-result-actions {
    display: grid;
    gap: 6px;
    justify-items: end;
}

.ga-esign-ready {
    color: #2f766b;
    font-size: 12px;
    font-weight: 800;
}

.ga-esign-expired-file {
    color: #9d4634;
    font-size: 12px;
    font-weight: 800;
}

.ga-esign-load-more {
    width: 100%;
    margin-top: 10px;
}

.ga-esign-summary {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
}

.ga-esign-summary div,
.ga-esign-file-card {
    padding: 10px;
    border: 1px solid #d8dee8;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.56);
}

.ga-esign-summary dt {
    color: #66778a;
    font-size: 12px;
    font-weight: 800;
}

.ga-esign-summary dd {
    margin: 4px 0 0;
    color: #17202d;
    font-size: 13px;
    font-weight: 800;
}

.ga-esign-file-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.ga-esign-file-card {
    display: grid;
    gap: 7px;
}

.ga-esign-file-card strong {
    color: #17202d;
    font-size: 15px;
}

.ga-esign-file-card span,
.ga-esign-file-card small {
    color: #66778a;
    font-size: 12px;
    overflow-wrap: anywhere;
}

.ga-customer-sign-page .ga-sign-shell {
    width: min(760px, 100%);
}

.ga-customer-form {
    display: grid;
    gap: 12px;
}

.ga-customer-step-panel[hidden],
.ga-customer-submit-bar[hidden] {
    display: none;
}

.ga-customer-flow-status {
    margin: 0;
}

.ga-customer-step-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}

.ga-consent-list {
    display: grid;
    gap: 8px;
}

.ga-consent-item {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 9px;
    align-items: start;
    padding: 11px 10px;
    border: 1px solid #d8dee8;
    border-radius: 7px;
    background: #ffffff;
}

.ga-consent-item input {
    width: 18px;
    height: 18px;
    margin-top: 1px;
}

.ga-consent-item strong,
.ga-consent-item small {
    display: block;
}

.ga-consent-item strong {
    color: #17202d;
    font-size: 14px;
    line-height: 1.35;
}

.ga-consent-item small {
    margin-top: 3px;
    color: #66778a;
    font-size: 12px;
    line-height: 1.45;
}

.ga-consent-all-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: stretch;
    margin-top: 12px;
}

.ga-consent-item-all {
    border-color: #b9d1c9;
    background: #f4faf8;
}

.ga-consent-viewer {
    margin: -3px 0 4px 31px;
    border: 1px solid #d8dee8;
    border-radius: 7px;
    background: #fbfcfe;
}

.ga-consent-viewer summary {
    padding: 8px 10px;
    color: #234155;
    cursor: pointer;
    font-size: 12px;
    font-weight: 900;
}

.ga-consent-viewer dl {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0 10px 10px;
}

.ga-consent-viewer-title {
    margin: 0;
    padding: 0 10px 8px;
    color: #172033;
    font-size: 12px;
    line-height: 1.45;
    font-weight: 900;
}

.ga-consent-viewer dl div {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 8px;
}

.ga-consent-viewer dt,
.ga-consent-viewer dd {
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
}

.ga-consent-viewer dt {
    color: #516175;
    font-weight: 900;
}

.ga-consent-viewer dd {
    color: #1f2b3a;
}

.ga-consent-viewer a {
    display: inline-flex;
    margin: 0 10px 10px;
    color: #165ec9;
    font-size: 12px;
    font-weight: 900;
    text-decoration: none;
}

.ga-customer-docs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.ga-customer-docs span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 9px;
    border: 1px solid #dce7e4;
    border-radius: 999px;
    background: #f4faf7;
    color: #376d64;
    font-size: 12px;
    font-weight: 800;
}

.ga-customer-summary,
.ga-customer-party {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.ga-customer-summary {
    margin-bottom: 8px;
}

.ga-customer-summary div,
.ga-customer-party div {
    min-height: 50px;
    padding: 9px 10px;
    border: 1px solid #d8dee8;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.72);
}

.ga-customer-summary span,
.ga-customer-party span {
    display: block;
    margin-bottom: 4px;
    color: #66778a;
    font-size: 12px;
    font-weight: 700;
}

.ga-customer-summary strong,
.ga-customer-party strong {
    display: block;
    color: #17202d;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.ga-customer-submit-bar {
    position: sticky;
    bottom: 0;
    z-index: 20;
    display: grid;
    gap: 6px;
    padding: 10px;
    border: 1px solid #d8dee8;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -8px 22px rgba(31, 49, 64, 0.1);
}

.ga-customer-complete,
.ga-customer-invalid {
    text-align: center;
}

.ga-customer-complete strong,
.ga-customer-invalid strong {
    display: block;
    color: #17202d;
    font-size: 20px;
}

.ga-customer-complete p,
.ga-customer-invalid p {
    color: #66778a;
    font-size: 14px;
}

@media (max-width: 1120px) {
    .ga-workbench {
        grid-template-columns: 1fr;
    }

    .ga-work-page .ga-workbench {
        grid-template-columns: 1fr;
    }

    .ga-esign-layout,
    .ga-esign-summary,
    .ga-esign-file-grid {
        grid-template-columns: 1fr;
    }

    .ga-agency-grid {
        grid-template-columns: 1fr;
    }

    .ga-output-panel {
        position: static;
    }

    .ga-field-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .ga-sign-page {
        --ga-header-offset: 45px;
        padding: calc(var(--ga-header-offset) + 10px) 8px calc(98px + env(safe-area-inset-bottom));
    }

    .ga-work-page {
        min-height: calc(100vh - var(--ga-header-offset));
    }

    .ga-sign-topbar {
        position: relative;
        align-items: stretch;
        flex-direction: column;
        padding: 10px;
    }

    .ga-sign-title h1 {
        font-size: 20px;
    }

    .ga-work-page .ga-sign-topbar {
        padding: 10px;
    }

    .ga-work-title-wrap {
        grid-template-columns: 72px minmax(0, 1fr);
        grid-template-rows: auto auto;
        gap: 8px 9px;
        min-height: 0;
        padding-right: 0;
    }

    .ga-work-mark {
        grid-column: 1 / 2;
        grid-row: 1;
        grid-template-columns: auto 1fr;
        align-items: center;
        min-height: 0;
        padding: 7px 8px;
    }

    .ga-sign-title {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .ga-work-mark span {
        font-size: 20px;
    }

    .ga-work-mark strong {
        font-size: 10px;
    }

    .ga-sign-title p,
    .ga-work-meta {
        display: none;
    }

    .ga-work-page .ga-sign-title h1 {
        font-size: 21px;
        line-height: 1.2;
    }

    .ga-work-mode-switch {
        grid-template-columns: 1fr;
        margin-bottom: 8px;
    }

    .ga-work-mode-switch button {
        min-height: 48px;
        padding: 9px 10px;
    }

    .ga-agency-hero {
        grid-template-columns: 1fr;
        min-height: 0;
        padding: 12px;
    }

    .ga-agency-hero__left {
        grid-template-columns: 1fr;
        gap: 11px;
    }

    .ga-agency-rail {
        grid-template-columns: auto 1fr;
        align-items: center;
        min-height: 0;
    }

    .ga-agency-copy h1 {
        font-size: 25px;
    }

    .ga-agency-copy span {
        font-size: 14px;
    }

    .ga-agency-hero__actions {
        justify-content: stretch;
    }

    .ga-agency-hero__actions .ga-link-btn {
        width: 100%;
    }

    .ga-agency-workspace {
        padding: 11px;
    }

    .ga-agency-workspace__head {
        display: grid;
        gap: 8px;
        align-items: start;
    }

    .ga-agency-workspace__head p {
        text-align: left;
    }

    .ga-sign-actions,
    .ga-doc-card-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .ga-work-page .ga-sign-actions {
        position: absolute;
        top: 10px;
        right: 10px;
        display: flex;
        gap: 5px;
    }

    .ga-work-page .ga-sign-actions .ga-link-btn,
    .ga-work-page .ga-sign-actions .ga-secondary-btn {
        width: 38px;
        min-width: 38px;
        min-height: 38px;
        padding: 0;
    }

    .ga-work-page .ga-sign-actions span {
        display: none;
    }

    .ga-work-page .ga-output-panel {
        display: none;
    }

    .ga-field-grid,
    .ga-esign-form-grid,
    .ga-check-grid,
    .ga-relation-options,
    .ga-customer-summary,
    .ga-customer-party,
    .ga-signature-grid {
        grid-template-columns: 1fr;
    }

    .ga-esign-result-card,
    .ga-esign-send-actions {
        grid-template-columns: 1fr;
        display: grid;
    }

    .ga-esign-result-actions {
        justify-items: stretch;
    }

    .ga-esign-list-filters {
        grid-template-columns: 1fr;
    }

    .ga-esign-filter-preset {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .ga-esign-filter-range {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .ga-esign-filter-preset .ga-choice {
        min-height: 38px;
        padding: 0 6px;
    }

    .ga-esign-filter-preset .ga-choice span {
        font-size: 12px;
    }

    .ga-panel {
        padding: 10px;
    }

    .ga-customer-step-actions,
    .ga-consent-all-row {
        grid-template-columns: 1fr;
        display: grid;
    }

    .ga-customer-step-actions .ga-primary-btn,
    .ga-consent-all-row .ga-primary-btn {
        width: 100%;
    }

    .ga-sign-pad {
        height: 162px;
    }

    .ga-mobile-output-bar {
        position: fixed;
        right: 8px;
        bottom: calc(8px + env(safe-area-inset-bottom));
        left: 8px;
        z-index: 1000;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
        padding: 7px;
        border: 1px solid #d4dde8;
        border-radius: 8px;
        background: #ffffff;
        box-shadow: 0 12px 28px rgba(31, 49, 64, 0.18);
    }

    .ga-mobile-output-bar button {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        min-width: 0;
        min-height: 44px;
        border: 1px solid #cbd5e1;
        border-radius: 7px;
        background: #f8fbfd;
        color: #243447;
        cursor: pointer;
        font-size: 13px;
        font-weight: 800;
        letter-spacing: 0;
    }

    .ga-mobile-output-bar button::before {
        content: "";
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 16px;
        height: 16px;
        border: 1px solid #9fb0c2;
        border-radius: 4px;
        background: #ffffff;
        color: transparent;
        font-size: 11px;
        font-weight: 800;
        line-height: 1;
    }

    .ga-mobile-output-bar button.is-checked {
        border-color: #165ec9;
        background: #edf4ff;
        color: #124a9c;
        box-shadow: inset 0 0 0 1px rgba(22, 94, 201, 0.08);
    }

    .ga-mobile-output-bar button.is-checked::before {
        content: "✓";
        border-color: #165ec9;
        background: #165ec9;
        color: #ffffff;
    }

    .ga-mobile-output-bar button.is-active {
        border-color: #2f766b;
        background: #eef7f4;
        color: #265f56;
        box-shadow: 0 0 0 3px rgba(47, 118, 107, 0.18);
    }

    .ga-mobile-output-bar button.is-active.is-checked {
        border-color: #2f766b;
        background: #e8f6f1;
        color: #205b51;
    }

    .ga-mobile-output-bar button.is-active.is-checked::before {
        background: #2f766b;
    }

    .ga-mobile-output-sheet {
        position: fixed;
        right: 8px;
        bottom: calc(70px + env(safe-area-inset-bottom));
        left: 8px;
        z-index: 1001;
        display: block;
        pointer-events: none;
    }

    .ga-mobile-output-sheet[hidden] {
        display: none;
    }

    .ga-mobile-output-sheet__inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto auto auto 40px;
        gap: 6px;
        align-items: center;
        width: 100%;
        padding: 7px;
        border: 1px solid #d4dde8;
        border-radius: 8px;
        background: #ffffff;
        box-shadow: 0 12px 28px rgba(31, 49, 64, 0.16);
        pointer-events: auto;
    }

    .ga-mobile-output-sheet__inner strong {
        min-width: 0;
        overflow: hidden;
        color: #17202d;
        font-size: 13px;
        font-weight: 900;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .ga-mobile-output-sheet__inner .ga-primary-btn,
    .ga-mobile-output-sheet__inner .ga-secondary-btn {
        min-height: 40px;
        padding: 0 12px;
    }

    .ga-mobile-output-sheet__inner .ga-primary-btn:disabled,
    .ga-mobile-output-sheet__inner .ga-secondary-btn:disabled {
        border-color: #d4dce6;
        background: #eef2f6;
        color: #8a98aa;
        cursor: not-allowed;
    }

    .ga-mobile-output-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
        min-height: 40px;
        padding: 0 9px;
        border: 1px solid #cbd5e1;
        border-radius: 7px;
        background: #f8fbfd;
        color: #243447;
        font-size: 13px;
        font-weight: 800;
        white-space: nowrap;
    }

    .ga-mobile-output-toggle input {
        width: 17px;
        height: 17px;
    }
}
