/* Agreement Signer */
@font-face{font-family:"AGS Dancing Script";src:url("../fonts/dancing-script-latin-400-normal.woff2") format("woff2");font-display:swap}
@font-face{font-family:"AGS Great Vibes";src:url("../fonts/great-vibes-latin-400-normal.woff2") format("woff2");font-display:swap}
@font-face{font-family:"AGS Caveat";src:url("../fonts/caveat-latin-400-normal.woff2") format("woff2");font-display:swap}
@font-face{font-family:"AGS Allura";src:url("../fonts/allura-latin-400-normal.woff2") format("woff2");font-display:swap}
@font-face{font-family:"AGS Homemade Apple";src:url("../fonts/homemade-apple-latin-400-normal.woff2") format("woff2");font-display:swap}

.ags-app{--ags-accent:#1f3a5f;--ags-line:#d8dde5;--ags-bg:#f6f7f9;--ags-hl:#fff3b0;color:#1d2330;font-size:16px;line-height:1.5}
.ags-app *{box-sizing:border-box}
.ags-app [hidden]{display:none!important}
.ags-loading,.ags-notice{padding:16px;background:var(--ags-bg);border:1px solid var(--ags-line);border-radius:8px}


.ags-wrap{max-width:920px;margin:24px auto}
.ags-doc-col{min-width:0}

/* Progress bar */
.ags-bar{position:sticky;top:var(--ags-sticky-top,0);z-index:20;display:flex;gap:12px;align-items:center;justify-content:space-between;background:#fff;border:1px solid var(--ags-line);border-radius:10px;padding:10px 14px;margin-bottom:14px;box-shadow:0 2px 10px rgba(20,30,50,.08)}
.ags-bar-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px}
.ags-prog-txt{font-size:14px}
.ags-prog{display:block;height:6px;background:#e6eaf0;border-radius:3px;overflow:hidden}
.ags-prog i{display:block;height:100%;width:0;background:#1d8a4a;transition:width .25s}
.ags-next{white-space:nowrap}

/* Signer details */
.ags-who{display:grid;grid-template-columns:1fr 1fr;gap:14px;background:#fff;border:1px solid var(--ags-line);border-radius:10px;padding:14px 16px 4px;margin-bottom:10px}
@media(max-width:640px){.ags-who{grid-template-columns:1fr}}
.ags-tip{margin:0 0 12px;font-size:14px;color:#4a5568}

/* The agreement as paper — white bg + dark text so theme cannot wash it out */
.ags-doc{background:#fff;color:#1d2330;border:1px solid var(--ags-line);border-radius:8px;padding:40px 44px;font-family:Georgia,"Times New Roman",serif;font-size:15px;line-height:1.65;overflow-wrap:anywhere}
@media(max-width:600px){.ags-doc{padding:20px 14px}}
.ags-doc h1,.ags-doc h2,.ags-doc h3,.ags-doc h4{font-family:inherit;line-height:1.3;margin:1.3em 0 .5em;color:#111}
.ags-doc h1{font-size:1.45em}
.ags-doc h2{font-size:1.25em}.ags-doc h3{font-size:1.12em}
.ags-doc p,.ags-doc li,.ags-doc td,.ags-doc th,.ags-doc span,.ags-doc div,.ags-doc strong,.ags-doc em,.ags-doc b{color:inherit}
.ags-doc p{margin:0 0 .85em}
.ags-doc ul,.ags-doc ol{margin:0 0 .85em 1.4em;padding:0}
.ags-doc table{border-collapse:collapse;width:100%;margin:0 0 1em;table-layout:fixed}
.ags-doc td,.ags-doc th{border:1px solid #999;padding:8px 10px;vertical-align:middle;text-align:left}
.ags-doc td:first-child,.ags-doc th:first-child{width:32%;min-width:140px;font-weight:600;color:#1d2330}
.ags-doc td:last-child,.ags-doc th:last-child{width:auto}
.ags-doc td>p:last-child{margin-bottom:0}
.ags-doc img{max-width:100%;height:auto}
.ags-doc .ags-subtitle{text-align:center;color:#555;font-style:italic}
.ags-val{border-bottom:1px solid #333;padding:0 2px;font-weight:600;white-space:pre-line;color:#1d2330}
.ags-blank{background:var(--ags-hl);border-bottom:1px dashed #b59b00;font-weight:400;color:#6b5a00;border-radius:2px}

/* Inline fields — one identical light style for every text input */
.ags-in{display:block;width:100%;font:inherit;font-size:14.5px;font-weight:600;color:#1d2330!important;background:#f4f7fb!important;border:1px solid #c5cdd8!important;border-radius:6px;padding:5px 8px;min-height:34px;margin:0;-webkit-text-fill-color:#1d2330}
.ags-in:focus{outline:2px solid var(--ags-accent);outline-offset:1px;background:#fff!important;border-color:#1f3a5f!important}
.ags-in.ags-invalid{background:#fff5f5!important;border-color:#d93025!important}
.ags-in::placeholder{color:#9aa3b2!important;-webkit-text-fill-color:#9aa3b2!important;opacity:1;font-weight:400}
textarea.ags-in{resize:vertical;min-height:64px;line-height:1.4}
.ags-in-line{margin-top:4px}
select.ags-in{display:inline-block;width:auto;min-width:160px}
/* Checkboxes / radios — native icons must stay visible */
.ags-cb{width:18px;height:18px;min-width:18px;min-height:18px;vertical-align:middle;margin:0 8px 0 0;accent-color:var(--ags-accent);cursor:pointer;-webkit-appearance:auto;appearance:auto;background:none;box-shadow:none;border:none}
.ags-cb.ags-invalid{outline:2px solid #d93025;outline-offset:1px}
.ags-box{font-family:"Segoe UI Symbol","DejaVu Sans","Apple Symbols",sans-serif;font-size:1.1em;margin-right:6px}
.ags-flash{animation:agsflash 1.5s ease-out 1}
@keyframes agsflash{0%,40%{box-shadow:0 0 0 4px rgba(224,195,74,.9);background-color:#fff6c8}100%{box-shadow:0 0 0 0 rgba(224,195,74,0)}}
.ags-counter,.ags-counter-cell{color:#6b7280;font:italic 13px/1.4 system-ui,sans-serif}
.ags-counter-cell{background:#f6f7f9}

/* Signature box inside the document */
.ags-sig-slot{display:block;min-width:220px;min-height:64px;cursor:pointer;border-radius:4px}
.ags-unsigned{border:2px dashed #d4a800;background:#fff6c8;color:#6b5a00;padding:14px;font:600 14px/1.3 system-ui,sans-serif;text-align:center;display:flex;align-items:center;justify-content:center}
.ags-unsigned:hover,.ags-unsigned:focus{background:#ffefa0;outline:none}
.ags-signed img{display:block;max-height:90px;max-width:300px;margin-bottom:2px}
.ags-sig-cap{display:block;font:11px/1.3 system-ui,sans-serif;color:#555;border-top:1px solid #333;padding-top:3px}
.ags-sig-change{display:inline-block;margin-top:4px;font:12px system-ui,sans-serif;color:var(--ags-accent);text-decoration:underline}
.ags-sig-end{margin-top:2.2em}
.ags-sig-end-title{font-weight:700;margin-bottom:6px!important}
.ags-locked .ags-sig-slot{cursor:default}
.ags-locked .ags-sig-change{display:none}

/* Final block */
.ags-final{background:#fff;border:1px solid var(--ags-line);border-radius:10px;padding:16px 18px;margin-top:16px}
.ags-field{margin:0 0 12px}
.ags-field label{display:block;font-size:14px;font-weight:600;margin-bottom:4px}
.ags-field input[type=text],.ags-field input[type=email],.ags-field input[type=tel],.ags-field input[type=date],.ags-field input[type=number],.ags-field select,.ags-field textarea{width:100%;padding:9px 11px;border:1px solid #b7bfcb;border-radius:7px;font:inherit;background:#fff;color:inherit}
.ags-field input:focus,.ags-field select:focus,.ags-field textarea:focus{outline:2px solid var(--ags-accent);outline-offset:1px}
.ags-field small,.ags-panel small{display:block;color:#5d6675;font-size:12.5px;margin-top:4px}
.ags-check label{display:flex;gap:8px;align-items:flex-start;font-weight:500}
.ags-check input{margin-top:4px}
.ags-req{color:#b3261e}
.ags-hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}

/* Signature modal */
.ags-modal{position:fixed;inset:0;z-index:100000;background:rgba(15,23,42,.55);display:flex;align-items:center;justify-content:center;padding:16px}
.ags-modal-card{background:#fff;border-radius:14px;width:100%;max-width:520px;max-height:calc(100vh - 32px);overflow:auto;padding:18px 20px;box-shadow:0 20px 60px rgba(0,0,0,.35)}
.ags-modal-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.ags-modal-head h3{margin:0;font-size:18px}
.ags-x{appearance:none;border:0;background:none;font-size:28px;line-height:1;cursor:pointer;color:#555;padding:0 6px}
.ags-modal-foot{display:flex;justify-content:flex-end;gap:10px;margin-top:14px}
.ags-saved{display:flex;align-items:center;gap:10px;background:var(--ags-bg);border:1px solid var(--ags-line);border-radius:8px;padding:8px 10px;margin-bottom:10px;font-size:13px}
.ags-saved img{max-height:36px;max-width:120px;background:#fff}
.ags-link{appearance:none;border:0;background:none;color:#b3261e;text-decoration:underline;cursor:pointer;font:inherit;font-size:12px}
body.ags-modal-open{overflow:hidden}

.ags-tabs{display:flex;gap:4px;border-bottom:1px solid var(--ags-line);margin-bottom:12px;flex-wrap:wrap}
.ags-tab{appearance:none;background:none;border:0;border-bottom:3px solid transparent;padding:8px 12px;font:inherit;font-weight:600;color:#5d6675;cursor:pointer}
.ags-tab.is-on{color:var(--ags-accent);border-bottom-color:var(--ags-accent)}
.ags-pad{display:block;width:100%;height:180px;border:2px dashed #aab3c2;border-radius:8px;background:#fff;touch-action:none;cursor:crosshair}
.ags-row{display:flex;gap:8px;align-items:center;margin:8px 0}
.ags-inks{margin-left:auto;display:flex;gap:8px}
.ags-ink{width:24px;height:24px;border-radius:50%;border:2px solid #fff;box-shadow:0 0 0 1px #99a;cursor:pointer}
.ags-ink.is-on{box-shadow:0 0 0 2px var(--ags-accent)}
.ags-styles{display:grid;gap:6px}
.ags-style{display:flex!important;align-items:center;gap:10px;border:1px solid var(--ags-line);border-radius:8px;padding:6px 12px;cursor:pointer;font-weight:400!important}
.ags-style:has(input:checked){border-color:var(--ags-accent);background:#eef3fa}
.ags-style-prev{font-size:30px;line-height:1.3}
.ags-inline{display:flex;gap:6px;align-items:center;font-size:14px;margin:6px 0}
.ags-up-prev{max-width:100%;max-height:120px;border:1px solid var(--ags-line);border-radius:6px;margin:6px 0;background:repeating-conic-gradient(#eee 0 25%,#fff 0 50%) 0 0/14px 14px}

.ags-btn{display:inline-block;appearance:none;border:1px solid var(--ags-accent);border-radius:8px;padding:10px 18px;font:inherit;font-weight:600;cursor:pointer;text-decoration:none;line-height:1.2}
.ags-btn-primary{background:var(--ags-accent);color:#fff}
.ags-btn-primary:hover{filter:brightness(1.12);color:#fff}
.ags-btn-primary:disabled{opacity:.5;cursor:not-allowed}
.ags-btn-ghost{background:#fff;color:var(--ags-accent);padding:7px 12px;font-size:14px}
.ags-actions{margin-top:14px}.ags-actions .ags-btn{width:100%;padding:13px}
.ags-status{min-height:1.4em;margin:10px 0 0;font-size:14px;color:#3a4558}
.ags-status.is-err{color:#b3261e;font-weight:600}
.ags-done h3{text-transform:none;letter-spacing:0;font-size:19px;color:#1d6b3a;margin-top:0}
.ags-list{padding-left:1.2em}

/* Off-screen layout used to render the PDF (white paper, fixed width, dark text) */
.ags-pdf{width:680px;background:#fff;color:#1d2330}
.ags-pdf .ags-doc{border:0;border-radius:0;padding:0;font-size:14px;line-height:1.55;color:#1d2330;background:#fff}
.ags-pdf .ags-doc p,.ags-pdf .ags-doc li,.ags-pdf .ags-doc td,.ags-pdf .ags-doc th,
.ags-pdf .ags-doc span,.ags-pdf .ags-doc div,.ags-pdf .ags-doc strong{color:inherit}
.ags-pdf .ags-val{border-bottom:0;font-weight:600;color:#0b2a6f}
.ags-pdf .ags-val-ml{white-space:pre-wrap;display:block}
.ags-pdf p .ags-val{border-bottom:1px solid #333;display:inline-block;min-width:60%}
.ags-pdf .ags-sig-slot{min-height:0;border:0;background:none;padding:0;display:block}
.ags-pdf .ags-counter,.ags-pdf .ags-counter-cell{color:#777}
.ags-pdf .ags-cert{margin-top:28px;padding-top:12px;border-top:2px solid #222;font:12px/1.5 system-ui,Arial,sans-serif;color:#222}
.ags-pdf .ags-cert h2{font-size:15px;margin:0 0 8px}
.ags-pdf .ags-cert table{border-collapse:collapse;width:100%}
.ags-pdf .ags-cert th,.ags-pdf .ags-cert td{border:1px solid #bbb;padding:5px 8px;text-align:left;vertical-align:top}
.ags-pdf .ags-cert th{width:32%;background:#f3f3f3}
.ags-pdf .ags-mono{font-family:monospace;font-size:10px;word-break:break-all}

/* ---- Theme-proofing: every surface sets its own background AND text colour, so dark or
   colourful themes cannot change headings, links or buttons inside the agreement. ---- */
.ags-app{color-scheme:light;--ags-ink:#1d2330;--ags-paper:#fff}
.ags-app,.ags-app .ags-who,.ags-app .ags-final,.ags-app .ags-bar,.ags-app .ags-modal-card,.ags-app .ags-doc,.ags-app .ags-done,.ags-app .ags-saved,.ags-app .ags-field label,.ags-app .ags-tip,.ags-app .ags-prog-txt{color:var(--ags-ink)}
.ags-app .ags-who,.ags-app .ags-final,.ags-app .ags-bar,.ags-app .ags-modal-card,.ags-app .ags-doc{background-color:var(--ags-paper)!important}
.ags-app .ags-tip{color:#4a5568}
.ags-app h1,.ags-app h2,.ags-app h3,.ags-app h4,.ags-app h5,.ags-app h6{color:var(--ags-ink)!important;text-shadow:none}
/* Document body: force dark ink on white paper (mammoth spans/divs inherit; themes cannot override) */
.ags-app .ags-doc{color:#1d2330!important;background-color:#fff!important}
.ags-app .ags-doc h1,.ags-app .ags-doc h2,.ags-app .ags-doc h3,.ags-app .ags-doc h4{color:#111!important}
.ags-app .ags-doc p,.ags-app .ags-doc li,.ags-app .ags-doc td,.ags-app .ags-doc th,
.ags-app .ags-doc span,.ags-app .ags-doc div,.ags-app .ags-doc strong,.ags-app .ags-doc em,.ags-app .ags-doc b{color:inherit!important}
.ags-app .ags-doc a{color:#1f3a5f!important}
.ags-app .ags-doc .ags-subtitle{color:#555!important}
.ags-app .ags-doc .ags-blank{color:#6b5a00!important}
.ags-app .ags-doc .ags-val{color:#1d2330!important}
.ags-app .ags-done h3{color:#1d6b3a!important}
.ags-app .ags-field small,.ags-app .ags-panel small{color:#5d6675}
.ags-app .ags-req{color:#b3261e}
.ags-app .ags-status{color:#3a4558}
.ags-app .ags-status.is-err{color:#b3261e}

/* Buttons: explicit colours on every state, for <button> and <a> alike */
.ags-app .ags-btn,.ags-app a.ags-btn{text-decoration:none!important;box-shadow:none;text-shadow:none;opacity:1}
.ags-app .ags-btn-primary,.ags-app a.ags-btn-primary,.ags-app a.ags-btn-primary:link,.ags-app a.ags-btn-primary:visited{background-color:#1f3a5f!important;border-color:#1f3a5f!important;color:#fff!important}
.ags-app .ags-btn-primary:hover,.ags-app .ags-btn-primary:focus,.ags-app a.ags-btn-primary:hover,.ags-app a.ags-btn-primary:focus,.ags-app a.ags-btn-primary:active{background-color:#2b4d7d!important;border-color:#2b4d7d!important;color:#fff!important;filter:none}
.ags-app .ags-btn-primary:disabled{background-color:#1f3a5f!important;color:#fff!important;opacity:.5}
.ags-app .ags-btn-ghost,.ags-app .ags-btn-ghost:hover{background-color:#fff!important;border-color:#1f3a5f!important;color:#1f3a5f!important}
.ags-app .ags-btn-ghost:hover{background-color:#eef3fa!important}
.ags-app .ags-tab{color:#5d6675!important;background-color:transparent!important}
.ags-app .ags-tab.is-on{color:#1f3a5f!important}
.ags-app .ags-x{color:#555!important;background:none!important}
.ags-app .ags-link{color:#b3261e!important;background:none!important}
.ags-app .ags-sig-change{color:#1f3a5f}

/* Text inputs — one identical light style (no yellow/green variants) */
.ags-app input[type=text],.ags-app input[type=email],.ags-app input[type=tel],.ags-app input[type=date],.ags-app input[type=number],
.ags-app textarea,.ags-app select,.ags-app .ags-in{
	color-scheme:only light!important;
	color:#1d2330!important;-webkit-text-fill-color:#1d2330!important;
	background-color:#f4f7fb!important;background-image:none!important;
	border:1px solid #c5cdd8!important;caret-color:#1d2330!important
}
.ags-app input[type=text]:focus,.ags-app input[type=email]:focus,.ags-app input[type=tel]:focus,
.ags-app input[type=date]:focus,.ags-app input[type=number]:focus,.ags-app textarea:focus,.ags-app select:focus,.ags-app .ags-in:focus{
	background-color:#fff!important;border-color:#1f3a5f!important
}
.ags-app .ags-in.ags-invalid{background-color:#fff5f5!important;border-color:#d93025!important}
.ags-app .ags-in::placeholder,.ags-app input::placeholder,.ags-app textarea::placeholder{
	color:#9aa3b2!important;-webkit-text-fill-color:#9aa3b2!important;opacity:1!important;font-weight:400!important
}
/* Checkboxes / radios — always show native check/radio icons */
.ags-app input[type=checkbox],.ags-app input[type=radio],.ags-app .ags-cb{
	-webkit-appearance:auto!important;appearance:auto!important;
	width:18px!important;height:18px!important;min-width:18px!important;min-height:18px!important;
	accent-color:#1f3a5f!important;background:none!important;box-shadow:none!important;
	border:none!important;opacity:1!important;filter:none!important;cursor:pointer
}
.ags-app .ags-unsigned{color:#6b5a00!important;background-color:#fff6c8!important}
.ags-app .ags-prog-txt{color:var(--ags-ink)}
/* Consistent table row spacing inside the document */
.ags-app .ags-doc table{table-layout:fixed}
.ags-app .ags-doc td:first-child{width:32%;vertical-align:middle}
/* Tip sits on the theme background, so give it its own light card (readable on dark themes) */
.ags-app .ags-tip{background:#fff!important;color:#1d2330!important;border:1px solid var(--ags-line);border-radius:8px;padding:10px 14px;margin:0 0 12px}

/* v2.1: countersign (admin) view, locked answers, fixed signature of the signer */
.wp-admin .ags-bar{top:32px}
.ags-app .ags-locked-in{cursor:not-allowed}
.ags-sig-slot[data-fixed]{cursor:default}
.ags-app .ags-counter{display:inline-block;padding:2px 8px;border:1px dashed #b59b00;border-radius:4px;background:#fff8d6!important;color:#6b5a00!important;font:13px system-ui,sans-serif}

/* An agreement's own page: centre the title and hide the theme's author / date line */
body.single-ags_agreement .entry-header,
body.single-ags_agreement .page-header,
body.single-ags_agreement .ast-single-entry-banner,
body.single-ags_agreement .post-header,
body.single-ags_agreement .hero-section,
body.single-ags_agreement .page-title-wrap,
body.single-ags_agreement .wp-block-post-title,
body.single-ags_agreement .entry-title,
body.single-ags_agreement .page-title,
body.single-ags_agreement .post-title,
body.single-ags_agreement h1.entry-title{text-align:center!important;margin-left:auto!important;margin-right:auto!important}
body.single-ags_agreement .entry-header,
body.single-ags_agreement .ast-single-entry-banner,
body.single-ags_agreement .hero-section{display:flex;flex-direction:column;align-items:center;justify-content:center}
body.single-ags_agreement .entry-meta,
body.single-ags_agreement .post-meta,
body.single-ags_agreement .post-meta-wrap,
body.single-ags_agreement .single-post-meta,
body.single-ags_agreement .posted-on,
body.single-ags_agreement .posted-by,
body.single-ags_agreement .byline,
body.single-ags_agreement .post-author,
body.single-ags_agreement .meta-author,
body.single-ags_agreement .entry-author,
body.single-ags_agreement .author-name,
body.single-ags_agreement .ast-author-avatar,
body.single-ags_agreement .ct-meta-element,
body.single-ags_agreement .nv-meta-list,
body.single-ags_agreement .wp-block-post-author,
body.single-ags_agreement .wp-block-post-date,
body.single-ags_agreement .wp-block-post-author-name{display:none!important}

/* ---------- v2.1.2 responsive polish ---------- */
.ags-app{-webkit-text-size-adjust:100%;text-size-adjust:100%}
.ags-wrap{width:100%}
.ags-app .ags-in,.ags-app input[type=date].ags-in{min-width:0;max-width:100%}
.ags-app input[type=date].ags-in{min-height:36px;display:block}
.ags-sig-slot{min-width:min(220px,100%);max-width:100%}
.ags-signed img{max-width:100%}
.ags-sig-slot:focus-visible,.ags-btn:focus-visible,.ags-tab:focus-visible{outline:3px solid var(--ags-accent);outline-offset:2px}
.ags-doc h1,.ags-doc h2,.ags-doc h3,.ags-doc h4{overflow-wrap:anywhere;hyphens:auto}
/* the theme's page title on an agreement page: scales with the screen, never overflows */
body.single-ags_agreement .entry-title,
body.single-ags_agreement .page-title,
body.single-ags_agreement .wp-block-post-title,
body.single-ags_agreement h1.entry-title{font-size:clamp(22px,4.6vw,40px)!important;line-height:1.25!important;overflow-wrap:anywhere;word-break:break-word;max-width:100%}

@media(max-width:700px){
	.ags-wrap{margin:12px auto}
	.ags-app{font-size:15px}
	.ags-bar{padding:8px 10px;gap:8px;border-radius:8px}
	.ags-prog-txt{font-size:13px}
	.ags-next{padding:7px 10px;font-size:13px}
	.ags-who{padding:12px 12px 2px}
	.ags-tip{font-size:13.5px}

	.ags-app .ags-doc{padding:16px 12px;font-size:14.5px;line-height:1.6}
	.ags-app .ags-doc h1{font-size:1.28em}
	.ags-app .ags-doc h2{font-size:1.14em}
	.ags-app .ags-doc h3,.ags-app .ags-doc h4{font-size:1.04em}
	.ags-app .ags-doc ul,.ags-app .ags-doc ol{margin-left:1.1em}

	/* 2-column tables: label above, value below */
	.ags-app .ags-doc table.ags-t2,.ags-app .ags-doc table.ags-t2 tbody,.ags-app .ags-doc table.ags-t2 tr,
	.ags-app .ags-doc table.ags-t2 td,.ags-app .ags-doc table.ags-t2 th{display:block;width:100%!important;min-width:0!important}
	.ags-app .ags-doc table.ags-t2 tr{margin:0 0 10px;border:1px solid #999;border-radius:6px;overflow:hidden}
	.ags-app .ags-doc table.ags-t2 td,.ags-app .ags-doc table.ags-t2 th{border:0;padding:8px 10px}
	.ags-app .ags-doc table.ags-t2 td:first-child,.ags-app .ags-doc table.ags-t2 th:first-child{background:#f3f5f8;font-size:13px;padding:6px 10px;border-bottom:1px solid #ddd}
	.ags-app .ags-doc table.ags-t2 td:only-child{border-bottom:0}
	.ags-app .ags-doc table.ags-t2 td:empty:not(.ags-counter-cell){display:none}
	.ags-app .ags-doc table.ags-t2 td.ags-counter-cell:empty::before{content:'To be completed by the company';font:italic 13px/1.4 system-ui,sans-serif;color:#6b7280}
	/* wider tables: keep the grid, scroll sideways inside the card */
	.ags-app .ags-doc table.ags-tn{display:block;overflow-x:auto;-webkit-overflow-scrolling:touch;table-layout:auto}
	.ags-app .ags-doc table.ags-tn td,.ags-app .ags-doc table.ags-tn th{min-width:90px!important;width:auto!important}

	/* inputs: 16px stops iOS zooming in on focus; comfortable tap size */
	.ags-app .ags-in,.ags-app .ags-who input,.ags-app .ags-field input[type=text],.ags-app .ags-field input[type=email]{font-size:16px!important;min-height:42px}
	.ags-app .ags-sig-slot{min-width:0;width:100%}
	.ags-app .ags-unsigned{padding:16px 10px}
	.ags-final{padding:14px 12px}
	.ags-actions .ags-btn{width:100%;text-align:center}
	.ags-done{padding:4px 0}
	.ags-done h3{font-size:1.1em}
	.ags-done .ags-btn{display:block;width:100%;margin:0 0 8px;text-align:center}

	/* signature pop-up becomes a bottom sheet */
	.ags-modal{align-items:flex-end;padding:0}
	.ags-modal-card{max-width:none;border-radius:14px 14px 0 0;max-height:92vh;padding:16px 14px}
	.ags-modal-foot .ags-btn{flex:1}
	.ags-tabs{gap:2px}
	.ags-tab{padding:9px 10px;font-size:14px}
}
@media(prefers-reduced-motion:reduce){.ags-flash{animation:none}.ags-prog i{transition:none}}
