/* Signatures - page of the generator. Same look and measures as the Signatures app (BASE/assets/base.css + assets/signatures.css),
   everything inside .sg-app so the theme of the site does not change it and it does not change the theme. */

.sg-app { --c-primary: #0093d0; --c-dark: #000;
  --c-page: #f8f9fa; --c-surface: #fff; --c-surface-2: #f8fafc; --c-surface-3: #f1f5f9;
  --c-border: #e2e8f0; --c-border-soft: #f1f5f9; --c-input-border: #cbd5e1;
  --c-text: #1e293b; --c-strong: #0f172a; --c-label: #334155; --c-muted: #64748b; --c-faint: #94a3b8;
  --c-header-border: rgba(15,23,42,.08); --c-header-hover: rgba(15,23,42,.06); --c-tool: var(--c-dark);
  color-scheme: light; }
.sg-app[data-theme="dark"] {
  --c-page: #121212; --c-surface: #1b1b1b; --c-surface-2: #222; --c-surface-3: #2c2c2c;
  --c-border: #333; --c-border-soft: #282828; --c-input-border: #4a4a4a;
  --c-text: #ededed; --c-strong: #fff; --c-label: #dcdcdc; --c-muted: #b0b0b0; --c-faint: #949494;
  --c-header-border: rgba(255,255,255,.08); --c-header-hover: rgba(255,255,255,.08); --c-tool: #ededed; color-scheme: dark; }
@media (prefers-color-scheme: dark) {
  .sg-app[data-theme="system"] {
    --c-page: #121212; --c-surface: #1b1b1b; --c-surface-2: #222; --c-surface-3: #2c2c2c;
    --c-border: #333; --c-border-soft: #282828; --c-input-border: #4a4a4a;
    --c-text: #ededed; --c-strong: #fff; --c-label: #dcdcdc; --c-muted: #b0b0b0; --c-faint: #949494;
    --c-header-border: rgba(255,255,255,.08); --c-header-hover: rgba(255,255,255,.08); --c-tool: #ededed; color-scheme: dark; }
}

.sg-app { container: sg / inline-size; position: relative; margin: 0 0 2rem; background: var(--c-page); color: var(--c-text); border: 1px solid var(--c-border); border-radius: 3px; overflow: hidden;
  font: 18px/1.55 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; text-align: left; -webkit-font-smoothing: antialiased; }
.sg-app *, .sg-app *::before, .sg-app *::after { box-sizing: border-box; }
.sg-app [hidden] { display: none !important; }
.sg-app a { color: var(--c-primary); }
.sg-app img { max-width: 100%; }
.sg-app h2, .sg-app p, .sg-app ol, .sg-app form { margin-top: 0; }
.sg-app .sg-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sg-app .sg-ic { width: 20px; height: 20px; flex: none; }
.sg-app .sg-ic-sm { width: 16px; height: 16px; vertical-align: -3px; }
.sg-app .sg-hp { display: none !important; }
.sg-app .sg-center { text-align: center; }

/* full page (block option "Full page", shortcode full="1"): like the stand-alone app */
.sg-app.sg-full { width: 100%; max-width: none; min-height: 100vh; margin: 0; border: 0; border-radius: 0; }
.sg-app.sg-full .sg-head-in { max-width: 80rem; margin: 0 auto; padding: 0 1rem; box-sizing: border-box; } /* boxed like the page; from 901px the band itself is boxed too (rule below) */
.sg-app.sg-full .sg-main { max-width: 80rem; margin: 0 auto; padding: 2.2rem 1rem 2rem; }

/* header: logo, title band, the person, tools */
.sg-head { background: rgba(0,0,0,.06); border-bottom: 1px solid var(--c-header-border); }
.sg-head-in { display: flex; align-items: stretch; gap: 1rem; min-height: 76px; padding: 0 0 0 1rem; }
.sg-app[data-theme="dark"] .sg-head { background: rgba(255,255,255,.03); }
.sg-logo { display: flex; align-items: center; padding: .25rem 0; }
.sg-logo img { display: block; max-height: 64px; max-width: 220px; width: auto; height: auto; }
.sg-blocks { display: flex; flex: 0 1 auto; align-self: stretch; }
.sg-block-dark, .sg-block-primary { display: flex; flex-direction: column; justify-content: center; color: #fff; padding: .75rem 2rem; }
.sg-block-dark { background: var(--c-dark); min-width: 215px; }
.sg-block-primary { background: var(--c-primary); min-width: 228px; }
.sg-block-title { font-size: 17px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; }
.sg-block-sub { margin-top: .2rem; font-size: 13px; line-height: 1.3; letter-spacing: .1em; text-transform: uppercase; opacity: .7; } /* = .da-block-sub */
.sg-head.sg-head-min { background: none; border: 0; margin-bottom: .6rem; } /* = .da-head-min: top bar off */
.sg-head.sg-head-min .sg-head-in { min-height: 0; justify-content: flex-end; }
.sg-app[data-theme="dark"] .sg-head.sg-head-min { background: none; }
.sg-head-min .sg-toolbar { margin: 0; }
.sg-block-count { display: flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 18px; line-height: 1.3; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; } /* = .da-block-count */
.sg-block-date { margin-top: .2rem; padding-left: 30px; font-size: 14px; line-height: 1.3; letter-spacing: .04em; opacity: .9; font-weight: 500; } /* = .da-block-date (email: not uppercase) */
.sg-toolbar { margin-left: auto; display: flex; align-items: center; gap: .35rem; padding-right: .5rem; }
.sg-app .sg-tool { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 .5rem; margin: 0;
  border: 0; border-radius: 4px; background: none; box-shadow: none; color: var(--c-tool); cursor: pointer; text-decoration: none; font: inherit; }
.sg-app .sg-tool:hover { background: var(--c-header-hover); color: var(--c-primary); }
.sg-app .sg-th { display: none; }
.sg-app[data-theme="light"] .sg-th-light, .sg-app[data-theme="system"] .sg-th-light, .sg-app[data-theme="dark"] .sg-th-dark { display: inline-flex; }
@media (prefers-color-scheme: dark) {
  .sg-app[data-theme="system"] .sg-th-light { display: none; }
  .sg-app[data-theme="system"] .sg-th-dark { display: inline-flex; }
}

/* content */
.sg-main { padding: 1.5rem; }
.sg-card { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: 3px; box-shadow: 0 1px 2px rgba(0,0,0,.04); padding: 1.5rem; margin: 0 0 1.5rem; }
.sg-app .sg-h2 { display: flex; align-items: center; gap: .5rem; margin: 0 0 1rem; padding: 0; font-size: 18px; font-weight: 700; line-height: 1.3; color: var(--c-strong); text-transform: uppercase; letter-spacing: .06em; }
.sg-app .sg-h2 .sg-ic { color: var(--c-primary); }
.sg-footer { margin-top: 1rem; color: var(--c-muted); font-size: 16px; text-align: center; }
.sg-alert { padding: .8rem 1rem; border-radius: 4px; margin: 0 0 1rem; font-size: 17px; border: 1px solid; }
.sg-alert-success { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.sg-alert-error { background: #fef2f2; border-color: #fecaca; color: #991b1b; }

/* form */
.sg-app .sg-form label { display: block; margin: 0 0 .9rem; font-size: 16px; font-weight: 600; color: var(--c-label); }
.sg-app .sg-form input[type=text], .sg-app .sg-form input[type=email], .sg-app .sg-form input[type=url], .sg-app .sg-form input[type=tel] {
  display: block; width: 100%; height: auto; margin: .3rem 0 0; padding: .55rem .7rem; border: 1px solid var(--c-input-border); border-radius: 4px; box-shadow: none;
  font: inherit; font-size: 17px; line-height: 1.4; background: var(--c-surface); color: var(--c-text); }
.sg-app .sg-form input:focus { outline: 2px solid var(--c-primary); outline-offset: -1px; border-color: transparent; }
.sg-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1.25rem; }
.sg-box { margin: .4rem 0 1rem; }
.sg-label { display: block; margin-bottom: .5rem; font-size: 16px; font-weight: 700; color: var(--c-label); }
.sg-actions { margin: 1.2rem 0 0; }
.sg-app .sg-btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; margin: 0; padding: .6rem 1.1rem; border: 1px solid var(--c-input-border); border-radius: 4px; box-shadow: none;
  background: var(--c-surface); color: var(--c-strong); font: inherit; font-size: 16px; font-weight: 700; line-height: 1.3; text-decoration: none; text-transform: none; letter-spacing: .02em; cursor: pointer; }
.sg-app .sg-form label.sg-btn { display: inline-flex; margin: 0; color: var(--c-strong); }
.sg-app .sg-btn:hover { border-color: var(--c-primary); color: var(--c-primary); background: var(--c-surface); }
.sg-app .sg-btn-primary, .sg-app .sg-btn-primary:hover { background: var(--c-primary); border-color: var(--c-primary); color: #fff; }
.sg-app .sg-btn-primary:hover { filter: brightness(.92); }
.sg-app .sg-btn-sm { padding: .35rem .7rem; font-size: 15px; }
.sg-app .sg-btn-lg { padding: .75rem 1.4rem; font-size: 17px; }
.sg-app .sg-btn-danger:hover { border-color: #dc2626; color: #dc2626; }
.sg-delete { margin: 1rem 0 0; text-align: right; }

/* "i" with the explanation */
.sg-tip { position: relative; display: inline-flex; vertical-align: middle; color: var(--c-primary); cursor: help; }
.sg-tip::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 8px); z-index: 50; transform: translateX(-50%);
  width: max-content; max-width: 280px; padding: 8px 10px; border-radius: 6px; background: #1d2327; color: #fff;
  font-size: 14px; font-weight: 400; line-height: 1.45; text-transform: none; letter-spacing: 0; white-space: normal; display: none; pointer-events: none; }
.sg-tip:hover::after, .sg-tip:focus::after { display: block; }
@media (max-width: 782px) { .sg-tip::after { left: auto; right: -8px; transform: none; max-width: min(280px, 80vw); } }

/* switch */
.sg-app .sg-switch-row, .sg-app .sg-form label.sg-switch-row { position: relative; display: inline-flex; align-items: center; gap: .6rem; margin: 0; cursor: pointer; font-size: 16px; font-weight: 500; color: var(--c-text); }
.sg-app .sg-switch-row input.sg-sw { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.sg-sw-track { position: relative; display: block; flex: none; width: 46px; height: 26px; border-radius: 999px; background: var(--c-surface-3); border: 1px solid var(--c-input-border); transition: background .18s, border-color .18s; }
.sg-sw-thumb { display: block; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.35); transition: transform .18s cubic-bezier(.2,.8,.2,1); }
.sg-switch-row input.sg-sw:checked + .sg-sw-track { background: var(--c-primary); border-color: var(--c-primary); }
.sg-switch-row input.sg-sw:checked + .sg-sw-track .sg-sw-thumb { transform: translateX(20px); }
.sg-switch-row input.sg-sw:focus-visible + .sg-sw-track { outline: 2px solid var(--c-primary); outline-offset: 2px; }

/* photo */
.sg-photo-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.sg-app .sg-photo-preview { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; background: var(--c-surface-3); }
.sg-app .sg-photo-preview.is-empty { display: none; }
.sg-crop-area { margin-top: 1rem; }
.sg-crop-stage { max-width: 420px; max-height: 420px; }
.sg-crop-stage img { display: block; max-width: 100%; }
.sg-crop-area .cropper-view-box, .sg-crop-area .cropper-face { border-radius: 50%; }
.sg-crop-tools { display: flex; flex-wrap: wrap; gap: .5rem; margin: .8rem 0 0; }

/* signature to copy: always on white, as it arrives in emails */
.sg-copy-panel { margin: 0 0 1.5rem; padding: 1.1rem 1.25rem; border-radius: 8px; background: var(--c-surface); border: 1px solid var(--c-border); }
.sg-copy-panel.is-saved { border-color: #16a34a; background: color-mix(in srgb, #16a34a 8%, var(--c-surface)); }
.sg-app .sg-copy-title { display: flex; align-items: center; gap: .5rem; margin: 0 0 .9rem; padding: 0; font-size: 1.15rem; font-weight: 700; line-height: 1.3; color: var(--c-strong); }
.sg-copy-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-bottom: .9rem; }
.sg-copy-status { font-weight: 700; font-size: 16px; color: #16a34a; }
.sg-copy-status.is-error { color: #dc2626; }
.sg-paper { overflow-x: auto; padding: 24px; border-radius: 8px; background: #fff; color: #333; border: 1px solid var(--c-border); }
.sg-paper table { width: auto; margin: 0; border: 0; border-collapse: separate; background: none; table-layout: auto; }
.sg-paper table[width="100%"] { width: 100%; }
.sg-paper table[width="440"] { width: 440px; }
.sg-paper td { border: 0; padding: 0; background: none; vertical-align: middle; }
.sg-paper img { display: inline; max-width: none; height: auto; margin: 0; border: 0; box-shadow: none; border-radius: 0; } /* the theme may make every img a block (evenue: img{display:block}); the signature sets display:block itself where it wants it */
.sg-paper a { box-shadow: none; text-decoration: none; }
.sg-guide { margin: 1rem 0 0; font-size: 16px; }
.sg-guide summary { display: inline-flex; align-items: center; gap: .4rem; cursor: pointer; font-weight: 700; color: var(--c-primary); }
.sg-guide ol { margin: .7rem 0 0 1.3rem; padding: 0; }
.sg-guide li { margin-bottom: .4rem; }
.sg-app .sg-guide-more { margin: .6rem 0 0; }

/* versions of the signature (full / reply): switch with positions */
.sg-tabs { position: relative; display: inline-flex; margin: 0 0 .9rem; padding: 3px; border-radius: 999px; background: var(--c-surface-3); box-shadow: inset 0 0 0 1px var(--c-border); }
.sg-app .sg-tab { margin: 0; padding: 0 16px; height: 36px; border: 0; border-radius: 999px; background: none; box-shadow: none; color: var(--c-muted); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.sg-app .sg-tab:hover { color: var(--c-strong); background: none; }
.sg-app .sg-tab.is-on { background: #fff; color: #1d2327; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); } /* neutral: amber only for PRO, the tabs on top and the company choice */

/* administrators: whose signature */
.sg-manager { padding: 1rem 1.5rem; }
.sg-manager-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .8rem; margin: 0; }
.sg-app .sg-manager-form label { flex: 1 1 320px; margin: 0; font-size: 16px; font-weight: 600; color: var(--c-label); }
.sg-app .sg-manager-form input { display: block; width: 100%; margin: .3rem 0 0; padding: .55rem .7rem; border: 1px solid var(--c-input-border); border-radius: 4px; font: inherit; font-size: 17px; background: var(--c-surface); color: var(--c-text); }

/* sign-in box: like the app (BASE/_doc/LOGIN.md) */
.sg-login { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2.5rem 1rem 1.5rem; }
.sg-app.sg-full .sg-login { min-height: 100vh; }
.sg-login-box { width: 100%; max-width: 440px; padding: 34px 36px 30px; border-radius: 5px; background: var(--c-surface); box-shadow: 0 0 3px rgba(0,0,0,.6); }
.sg-login-logo { display: block; margin: 0 0 26px; text-align: center; text-decoration: none; }
.sg-login-logo img { display: block; max-width: 260px; max-height: 72px; width: auto; height: auto; margin: 0 auto; object-fit: contain; }
.sg-app .sg-login-title { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; padding: 0; background: none; color: var(--c-strong); font-size: 18px; font-weight: 400; line-height: 1.3; text-transform: uppercase; letter-spacing: 0; }
.sg-login-tag { display: inline-block; padding: 2px 8px; border-radius: 5px; background: #1a1918; color: #fff; font-weight: 700; white-space: nowrap; } /* fondo PIENO (come BASE): nel tema chiaro il trasparente diventava grigio */
.sg-app .sg-login-help { margin: 0 0 18px; color: var(--c-muted); font-size: 15px; line-height: 1.45; }
.sg-app .sg-login-box input.sg-login-email { display: block; width: 100%; height: 46px; margin: 0; padding: 0 12px; border: 1px solid transparent; border-radius: 5px; box-shadow: none;
  background: var(--c-surface-3); color: var(--c-strong); font: inherit; font-size: 18px; font-weight: 700; }
.sg-app .sg-login-box input.sg-login-email::placeholder { font-weight: 400; color: var(--c-muted); opacity: 1; }
.sg-app .sg-login-box input.sg-login-email:focus { outline: none; border-color: var(--c-primary); }
.sg-app .sg-login-box input:-webkit-autofill { -webkit-box-shadow: 0 0 0 100px var(--c-surface-3) inset; -webkit-text-fill-color: var(--c-strong); }
.sg-app .sg-btn-login { width: 100%; height: 46px; margin: 26px 0 0; padding: 0 18px; border: 0; border-radius: 5px; font-size: 20px; }
.sg-app .sg-login-admin { margin: 18px 0 0; text-align: center; font-size: 14px; }
.sg-app .sg-login-admin a { color: var(--c-muted); text-decoration: none; }
.sg-app .sg-login-admin a:hover { color: var(--c-primary); }
.sg-login-tools { display: flex; justify-content: center; margin: 18px auto 0; }
.sg-login-tools .sg-tool { color: var(--c-faint); }

/* logo for the dark theme */
.sg-app .sg-logo-dark { display: none; }
.sg-app[data-theme="dark"] .sg-has-dark { display: none; }
.sg-app[data-theme="dark"] .sg-logo-dark { display: block; }
@media (prefers-color-scheme: dark) {
  .sg-app[data-theme="system"] .sg-has-dark { display: none; }
  .sg-app[data-theme="system"] .sg-logo-dark { display: block; }
  .sg-app[data-theme="system"] .sg-head { background: rgba(255,255,255,.03); }
}
.sg-app .sg-tool-lang { font-size: 15px; font-weight: 800; letter-spacing: .06em; }
.sg-login-tools .sg-tool-lang { font-size: 13px; }

/* tablet and phone */
/* narrow: by the width of the page column (container), not of the screen. Same steps as the Download Area bar */
@container sg (min-width: 681px) and (max-width: 1100px) {
  .sg-block-dark, .sg-block-primary { padding: .75rem 1.2rem; min-width: 0; }
  .sg-block-title { letter-spacing: .12em; }
}
@container sg (max-width: 680px) {
  .sg-head { padding: 1rem 1rem 0; }
  .sg-head-in, .sg-app.sg-full .sg-head-in { flex-direction: column; align-items: center; gap: .5rem; padding: 0; }
  .sg-toolbar { margin: 0; padding: 0; }
  .sg-logo img { max-width: 180px; max-height: 52px; }
  .sg-head-in > .sg-blocks { flex: none; flex-direction: column; align-self: stretch; margin: 0 -1rem; }
  .sg-block-dark, .sg-block-primary { align-items: center; text-align: center; padding: 1rem; min-width: 0; }
  .sg-block-title { white-space: normal; }
  .sg-block-count span, .sg-block-date { overflow-wrap: anywhere; white-space: normal; }
  .sg-block-date { padding-left: 0; }
}
@container sg (max-width: 600px) {
  .sg-main, .sg-app.sg-full .sg-main { padding: 1rem .75rem; }
  .sg-card { padding: 1.1rem; }
  .sg-grid2 { grid-template-columns: 1fr; }
  .sg-paper { padding: 12px; }
  .sg-login { padding: 1.5rem .75rem 1rem; justify-content: flex-start; }
  .sg-login-box { padding: 28px 22px 24px; }
}
@media (prefers-reduced-motion: reduce) { .sg-sw-track, .sg-sw-thumb { transition: none; } }

/* version + "i" with the news (administrators only), like the footer of the Download Area app */
.sg-app .sg-version { display: flex; justify-content: center; align-items: center; gap: 4px; margin: .8rem 0 0; color: var(--c-muted); font-size: 14px; }
.sg-info-wrap { position: relative; display: inline-flex; vertical-align: middle; }
.sg-app .sg-info-btn { display: inline-flex; margin: 0; padding: 2px; border: 0; border-radius: 50%; background: none; box-shadow: none; color: var(--c-muted); cursor: pointer; }
.sg-app .sg-info-btn:hover, .sg-app .sg-info-btn:focus { background: none; color: var(--c-primary); }
.sg-ic-sm { width: 16px; height: 16px; }
.sg-info-pop { display: none; position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); z-index: 40; width: min(440px, 86vw); max-height: 60vh; overflow: auto; padding: .9rem 1rem; border: 1px solid var(--c-border); border-radius: 8px; background: var(--c-surface); box-shadow: 0 8px 28px rgba(0, 0, 0, .18); color: var(--c-text); font-size: 14px; line-height: 1.45; text-align: left; }
.sg-info-wrap:hover .sg-info-pop, .sg-info-wrap:focus-within .sg-info-pop { display: block; }
.sg-cl-ver { display: block; margin: .6rem 0 .25rem; }
.sg-cl-ver:first-child { margin-top: 0; }
.sg-cl-date { color: var(--c-muted); }
.sg-cl-list { display: block; margin: 0 0 .4rem; }
.sg-cl-item { display: grid; grid-template-columns: 4.8rem 1fr; gap: .4rem; align-items: baseline; padding: .18rem 0; }
.sg-cl-type { font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--c-muted); text-transform: uppercase; }
/* "New signature" / "Cancel" are links that look like buttons */
.sg-app a.sg-btn { display: inline-flex; align-items: center; text-decoration: none; }

/* full page: menu of the site above the page (the header of the theme is covered). Copied from Advanced Download Area 1.7.1 (.da-sitebar) */
.sg-app .sg-sitebar { --sg-sb: var(--c-surface); --sg-sb-line: rgba(15, 23, 42, .08); --sg-sb-fg: rgba(17, 17, 17, .62); --sg-sb-on: #111; --sg-sb-pop: var(--c-surface); --sg-sb-shadow: 0 18px 40px -14px rgba(15, 23, 42, .22); position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 50; background: var(--sg-sb); border-bottom: 1px solid var(--sg-sb-line); font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1; }
.sg-app .sg-sitebar-in { display: flex; align-items: center; gap: 16px; height: 38px; max-width: 80rem; margin: 0 auto; padding: 0 1rem; box-sizing: border-box; }
.sg-app .sg-sitebar a { color: var(--sg-sb-fg); transition: color .15s; text-decoration: none; white-space: nowrap; }
.sg-app .sg-sitebar a:hover,
.sg-app .sg-sitebar a:focus-visible,
.sg-app .sg-sitebar a[aria-current] { color: var(--sg-sb-on); }
.sg-app .sg-sitebar-home { display: flex; flex: none; margin-left: auto; }
.sg-app .sg-sitebar svg { display: block; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sg-app .sg-sitebar-home svg[fill] { width: 21px; height: 16px; fill: currentColor; stroke: none; }
.sg-app .sg-sitebar-nav { display: flex; align-items: center; gap: 20px; min-width: 0; }
.sg-app .sg-sitebar-sub { position: relative; display: flex; align-items: center; height: 38px; }
.sg-app .sg-sitebar-sub > a::after { content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 0 3px 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.sg-app .sg-sitebar-drop { position: absolute; top: 100%; left: -14px; z-index: 10; display: none; flex-direction: column; min-width: 13rem; padding: 6px 0; background: var(--sg-sb-pop); border: 1px solid var(--sg-sb-line); border-top: 0; border-radius: 0 0 8px 8px; box-shadow: var(--sg-sb-shadow); }
.sg-app .sg-sitebar-sub:hover .sg-sitebar-drop,
.sg-app .sg-sitebar-sub:focus-within .sg-sitebar-drop { display: flex; }
.sg-app .sg-sitebar-drop a { padding: 11px 14px; }
.sg-app .sg-sitebar-more { display: none; }
.sg-app .sg-sitebar-more summary { display: flex; align-items: center; gap: 6px; padding: 8px 0 8px 8px; color: var(--sg-sb-fg); cursor: pointer; list-style: none; }
.sg-app .sg-sitebar-more summary::-webkit-details-marker { display: none; }
.sg-app .sg-sitebar-more summary:hover,
.sg-app .sg-sitebar-more[open] summary { color: var(--sg-sb-on); }
.sg-app .sg-sitebar-more summary svg { width: 12px; height: 12px; stroke-width: 2; }
.sg-app .sg-sitebar-list { position: absolute; top: 100%; left: 0; right: 0; display: flex; flex-direction: column; padding: 6px 1rem 12px; background: var(--sg-sb-pop); border-bottom: 1px solid var(--sg-sb-line); box-shadow: var(--sg-sb-shadow); font-size: 16px; }
.sg-app .sg-sitebar-list a { padding: 12px 0; }
.sg-app .sg-sitebar-kids { display: flex; flex-direction: column; padding-left: 1rem; font-size: 15px; }
.sg-app .sg-sitebar-kids a { padding: 9px 0; }

/* menu bar: light glass on the light theme, grey glass on the dark one (Patrick 21/11: not black, not grey on light) */
.sg-app[data-theme="dark"] .sg-sitebar { --sg-sb: var(--c-surface); --sg-sb-line: rgba(255, 255, 255, .08); --sg-sb-fg: rgba(255, 255, 255, .72); --sg-sb-on: #fff; --sg-sb-pop: var(--c-surface); --sg-sb-shadow: 0 20px 30px -16px rgba(0, 0, 0, .7); }
@media (prefers-color-scheme: dark) { .sg-app[data-theme="system"] .sg-sitebar { --sg-sb: var(--c-surface); --sg-sb-line: rgba(255, 255, 255, .08); --sg-sb-fg: rgba(255, 255, 255, .72); --sg-sb-on: #fff; --sg-sb-pop: var(--c-surface); --sg-sb-shadow: 0 20px 30px -16px rgba(0, 0, 0, .7); } }
@container sg (max-width: 900px) {
	.sg-app .sg-sitebar-nav { display: none; }
	.sg-app .sg-sitebar-home { margin-left: 0; }
	.sg-app .sg-sitebar-more { display: block; margin-left: auto; }
}
.sg-app a.sg-logo { text-decoration: none; box-shadow: none; }
@container sg (max-width: 900px) { .sg-app.sg-full .sg-head-in { padding-right: 0; } } /* phone and small tablet: title band to the edge, as before (like Advanced Download Area) */
.sg-app.sg-full .sg-sitebar-in { max-width: 80rem; margin: 0 auto; padding: 0 1rem; box-sizing: border-box; } /* full page: bands from edge to edge (like the app), their content boxed like the page (like Advanced Download Area 1.7.8) */

/* Short section "Always up-to-date signature" (Frontend::support_table()); on phones one block per program */
.sg-app .sg-support { margin-top: 1.2rem; }
.sg-app .sg-support .sg-h3 { margin: 0 0 .5rem; font-size: 17px; font-weight: 700; color: var(--c-strong); }
.sg-app .sg-support table { width: 100%; border-collapse: collapse; font-size: 17px; line-height: 1.45; }
.sg-app .sg-support th, .sg-app .sg-support td { padding: .6rem .5rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--c-border); }
.sg-app .sg-support thead th { font-size: 15px; color: var(--c-muted); font-weight: 700; }
.sg-app .sg-support thead th:nth-child(2) { white-space: nowrap; }
.sg-app .sg-support tbody th { color: var(--c-strong); font-weight: 700; }
.sg-app .sg-support td.sg-support-mk { text-align: center; white-space: nowrap; }
.sg-app .sg-b { display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px 4px 8px; border-radius: 999px; font-size: 15px; font-weight: 700; line-height: 1.2; white-space: nowrap; }
.sg-app .sg-b svg { width: 17px; height: 17px; flex: none; }
.sg-app .sg-b-yes { background: rgba(22,163,74,.14); color: #15803d; }
.sg-app .sg-b-once { padding-left: 11px; background: rgba(100,116,139,.16); color: var(--c-text); }
.sg-app .sg-support-sub { margin: 0 0 .6rem; font-size: 17px; color: var(--c-text); }
.sg-app .sg-support-notes { margin-top: .6rem; font-size: 14px; color: var(--c-muted); }
.sg-app .sg-support-notes p { margin: 0 0 .25rem; }
.sg-app .sg-srv-tip { background: color-mix(in srgb, #16a34a 9%, var(--c-surface, #fff)); }
.sg-app .sg-srv-tip .sg-h3 { margin: 0 0 .3rem; font-size: 18px; font-weight: 700; color: var(--c-strong); }
.sg-app .sg-srv-tip p { margin: 0; font-size: 17px; }
.sg-app .sg-srv-tip ul { margin: .6rem 0 0; padding-left: 1.2em; font-size: 16px; line-height: 1.5; }
.sg-app .sg-srv-tip li + li { margin-top: .3rem; }
.sg-app .sg-support-box { display: flex; align-items: center; gap: 1rem; margin-top: .9rem; padding: .9rem 1.1rem; border-radius: 8px; background: color-mix(in srgb, #16a34a 9%, var(--c-surface, #fff)); }
.sg-app .sg-support-box p { flex: 1; margin: 0; font-size: 16px; line-height: 1.45; color: var(--c-text); }
.sg-app .sg-support-box b { display: block; color: var(--c-strong); }
.sg-app .sg-support-box .sg-btn { flex: none; white-space: nowrap; text-decoration: none; }
@container sg (max-width: 600px) {
  .sg-app .sg-support table, .sg-app .sg-support tbody, .sg-app .sg-support tr, .sg-app .sg-support th, .sg-app .sg-support td { display: block; }
  .sg-app .sg-support thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .sg-app .sg-support tr { padding: .5rem 0; border-bottom: 1px solid var(--c-border); }
  .sg-app .sg-support th, .sg-app .sg-support td { border: 0; padding: .15rem 0; }
  .sg-app .sg-support td.sg-support-mk { text-align: left; }
  .sg-app .sg-support td.sg-support-mk::before { content: attr(data-label) " "; font-size: 15px; color: var(--c-muted); }
  .sg-app .sg-support-box { flex-direction: column; align-items: stretch; }
}
.sg-app[data-theme="dark"] .sg-b-yes { color: #5fe096; }
@media (prefers-color-scheme: dark) { .sg-app[data-theme="system"] .sg-b-yes { color: #5fe096; } }

/* Administrator: switch "Select or create" | "Created signatures (N)" (like the app, grey track and white thumb); grid of tiles with the real preview */
.sg-app .sg-seg { position: relative; display: flex; width: 100%; margin: 0 0 1rem; padding: 3px; border-radius: 999px; background: var(--c-surface-3); box-shadow: inset 0 0 0 1px var(--c-border); box-sizing: border-box; }
.sg-app .sg-seg input { position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0; margin: 0; }
.sg-app .sg-seg label { position: relative; z-index: 1; flex: 1 1 0; min-width: 0; margin: 0; height: 42px; line-height: 42px; border-radius: 999px; text-align: center; font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--c-muted); cursor: pointer; transition: color .2s; }
.sg-app .sg-seg input:checked + label { color: #1d2327; }
.sg-app .sg-seg input:focus-visible + label { outline: 2px solid var(--c-primary); outline-offset: 2px; }
.sg-app .sg-seg-thumb { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px) / 2); border-radius: 999px; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s ease; }
.sg-app .sg-seg input:nth-of-type(2):checked ~ .sg-seg-thumb { transform: translateX(100%); }
@media (prefers-reduced-motion: reduce) { .sg-app .sg-seg-thumb, .sg-app .sg-seg label { transition: none; } }
.sg-app .sg-list { display: none; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.sg-app .sg-manager:has(#sg-sm-list:checked) .sg-list { display: grid; }
.sg-app .sg-manager:has(#sg-sm-list:checked) .sg-manager-form { display: none; }
.sg-app .sg-main:has(#sg-sm-list:checked) .sg-manager ~ * { display: none; }
.sg-app .sg-tile { display: flex; flex-direction: column; border-radius: 8px; background: var(--c-surface-2); box-shadow: 0 0 0 1px var(--c-border); overflow: hidden; }
.sg-app .sg-tile.is-cur { box-shadow: 0 0 0 2px var(--c-primary); }
.sg-app .sg-tile-paper { height: 230px; overflow: hidden; padding: 18px 18px 0; background: #fff; pointer-events: none; }
.sg-app .sg-tile-zoom { zoom: .68; width: 600px; }
.sg-app .sg-tile-info { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin: 0; padding: .7rem .8rem; border-top: 1px solid var(--c-border); }
.sg-app .sg-tile-who { min-width: 0; }
.sg-app .sg-tile-who b { display: block; color: var(--c-strong); font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-app .sg-tile-who small { display: block; color: var(--c-muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-app .sg-tile-info .sg-btn { flex: none; }
@container sg (max-width: 1000px) { .sg-app .sg-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container sg (max-width: 600px) { .sg-app .sg-list { grid-template-columns: 1fr; } .sg-app .sg-seg label { font-size: 14px; } .sg-app .sg-tile-paper { height: 200px; } .sg-app .sg-tile-zoom { zoom: .6; } }
/* field to select or create a signature: highlighted, different from the other fields */
.sg-app .sg-manager-form input.sg-pick-field { border: 2px solid #f5b301; background: rgba(245, 179, 1, .1); }
/* fields of the form with a background that stands out from the page: darker in the light theme, lighter in the dark one */
.sg-app .sg-form :is(input[type=text], input[type=email], input[type=url], input[type=tel], select, textarea) { background: var(--c-surface-3); }
/* Fields without label: the name of the field is the placeholder, the "i" sits inside the field on the right (22/11) */
.sg-app .sg-fld { position: relative; display: block; margin: 0 0 .9rem; }
.sg-app .sg-form .sg-fld input, .sg-app .sg-manager-form .sg-fld input { margin-top: 0; padding-right: 2.8rem; }
.sg-app .sg-fld .sg-tip { position: absolute; top: 50%; right: .6rem; transform: translateY(-50%); }
.sg-app .sg-fld input::placeholder { color: var(--c-muted); opacity: 1; }
.sg-app .sg-manager-form .sg-fld { flex: 1 1 320px; margin: 0; }
/* Boxes (photo, company, banners) as wide as their content, not the whole page */
.sg-app .sg-form .sg-box { width: fit-content; max-width: 100%; }
.sg-app .sg-photo-row .sg-tip { align-self: center; }
