/* ============================================================
   SUSTENZA — SIGN IN / CREATE ACCOUNT
   ============================================================
   A full surface rather than a dropdown. Signing in is a task,
   not a menu: it deserves the whole window, one column, nothing
   competing with the two fields that matter.

   The measure is deliberately narrow (~340px of field). A login
   form is the one place where a wide input reads as harder, not
   easier - the eye has to travel for no reason, and every well
   made sign-in page on the web is about this width.

   Colours come from the marketing page's own tokens, so this
   surface belongs to the site rather than looking bolted on.
   ============================================================ */

.szauth{
  position:fixed;inset:0;z-index:1200;
  display:none;overflow-y:auto;
  background:var(--paper,#F5F6F2);
  color:var(--ink,#112C28);
  font-family:"IBM Plex Sans",system-ui,-apple-system,"Segoe UI",sans-serif;
  -webkit-font-smoothing:antialiased;
}
.szauth.is-open{display:block}
body.szauth-open{overflow:hidden}

/* a quiet wash so the card sits on something, not in a void */
.szauth::before{
  content:"";position:fixed;inset:0;pointer-events:none;
  background:
    radial-gradient(60rem 30rem at 50% -10%, rgba(28,122,85,.07), transparent 60%),
    radial-gradient(40rem 24rem at 90% 110%, rgba(184,136,47,.06), transparent 60%);
}

.szauth__wrap{
  position:relative;
  min-height:100%;display:flex;flex-direction:column;align-items:center;
  padding:clamp(28px,6vh,64px) 20px clamp(32px,8vh,72px);
}

/* ---- masthead ---- */
.szauth__brand{
  display:inline-flex;align-items:center;gap:9px;
  margin-bottom:clamp(20px,4vh,30px);
}
.szauth__brand img{width:38px;height:auto;display:block}
.szauth__brand b{font-size:17px;font-weight:600;letter-spacing:-.02em}

.szauth__h{
  width:100%;max-width:352px;text-align:center;
  font-size:clamp(21px,3vw,25px);font-weight:600;letter-spacing:-.022em;
  line-height:1.2;margin:0 0 6px;
}
.szauth__sub{
  width:100%;max-width:352px;text-align:center;
  font-size:13.6px;line-height:1.55;color:var(--muted,#3C4843);
  margin:0 0 22px;
}

/* ---- the card ---- */
.szauth__card{
  width:100%;max-width:352px;
  background:var(--surface,#fff);
  border:1px solid var(--hairline,#DCE1DB);
  border-radius:14px;
  padding:22px 20px;
  box-shadow:0 1px 2px rgba(17,44,40,.05), 0 10px 26px -14px rgba(17,44,40,.22);
}
.szauth__alt{
  width:100%;max-width:352px;margin-top:14px;padding:15px 20px;
  background:transparent;border:1px solid var(--hairline,#DCE1DB);border-radius:14px;
  text-align:center;font-size:13.4px;color:var(--muted,#3C4843);line-height:1.6;
}
.szauth__alt a{color:var(--verified,#1C7A55);font-weight:600;text-decoration:none}
.szauth__alt a:hover{text-decoration:underline}

/* ---- fields ---- */
.szauth__row{margin-bottom:15px}
.szauth__row:last-of-type{margin-bottom:0}
.szauth__two{display:grid;grid-template-columns:1fr 1fr;gap:11px}
.szauth__lab{
  display:flex;align-items:baseline;justify-content:space-between;gap:10px;
  font-size:13.2px;font-weight:500;margin:0 0 6px;
}
.szauth__lab a{
  font-size:12.2px;font-weight:500;color:var(--verified,#1C7A55);text-decoration:none;
}
.szauth__lab a:hover{text-decoration:underline}
.szauth__in{
  width:100%;min-height:44px;padding:11px 13px;
  background:var(--paper,#F5F6F2);
  border:1px solid var(--hairline,#DCE1DB);border-radius:8px;
  font:inherit;font-size:15px;color:var(--ink,#112C28);
  transition:border-color .14s ease, box-shadow .14s ease, background .14s ease;
}
.szauth__in::placeholder{color:var(--muted-2,#48524D);opacity:.62}
.szauth__in:focus{
  outline:none;background:var(--surface,#fff);
  border-color:var(--verified,#1C7A55);
  box-shadow:0 0 0 3px rgba(28,122,85,.16);
}
.szauth__in[aria-invalid="true"]{
  border-color:#B3261E;background:#FDF6F5;
}
.szauth__in[aria-invalid="true"]:focus{box-shadow:0 0 0 3px rgba(179,38,30,.15)}

/* password field with its reveal control */
.szauth__pw{position:relative}
.szauth__pw .szauth__in{padding-right:66px}
.szauth__eye{
  position:absolute;right:5px;top:50%;transform:translateY(-50%);
  min-height:34px;padding:6px 10px;border:none;border-radius:7px;
  background:transparent;cursor:pointer;
  font:inherit;font-size:12.2px;font-weight:600;color:var(--muted-2,#48524D);
}
.szauth__eye:hover{background:rgba(17,44,40,.06);color:var(--ink,#112C28)}

/* per-field message */
.szauth__msg{
  display:block;margin-top:6px;font-size:12.2px;line-height:1.45;color:#B3261E;
}
.szauth__hintline{
  display:flex;align-items:center;gap:7px;
  margin-top:8px;font-size:12.2px;line-height:1.45;color:var(--muted-2,#48524D);
}
.szauth__hintline b{
  display:inline-flex;align-items:center;justify-content:center;
  width:15px;height:15px;border-radius:50%;flex:none;
  border:1.5px solid var(--hairline,#DCE1DB);font-size:9px;color:transparent;
}
.szauth__hintline.ok{color:var(--verified,#1C7A55)}
.szauth__hintline.ok b{
  background:var(--verified,#1C7A55);border-color:var(--verified,#1C7A55);color:#fff;
}

/* ---- buttons ---- */
.szauth__go{
  width:100%;min-height:46px;margin-top:18px;
  display:inline-flex;align-items:center;justify-content:center;gap:9px;
  background:var(--ink,#112C28);color:var(--paper,#F5F6F2);
  border:1px solid var(--ink,#112C28);border-radius:9px;cursor:pointer;
  font:inherit;font-size:14.6px;font-weight:600;letter-spacing:-.005em;
  transition:opacity .15s ease, transform .12s ease;
}
.szauth__go:hover{opacity:.9}
.szauth__go:active{transform:translateY(1px)}
.szauth__go[disabled]{opacity:.55;cursor:default;transform:none}
.szauth__go .szauth__spin{
  width:15px;height:15px;border-radius:50%;flex:none;
  border:2px solid rgba(255,255,255,.35);border-top-color:#fff;
  animation:szauth-spin .7s linear infinite;
}
@keyframes szauth-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){
  .szauth__go .szauth__spin{animation-duration:2.4s}
  .szauth__go:active{transform:none}
}

.szauth__or{
  display:flex;align-items:center;gap:12px;
  margin:18px 0 0;font-size:11.6px;font-weight:600;letter-spacing:.06em;
  text-transform:uppercase;color:var(--muted-2,#48524D);
}
.szauth__or::before,.szauth__or::after{
  content:"";flex:1;height:1px;background:var(--hairline,#DCE1DB);
}
.szauth__ghost{
  width:100%;min-height:44px;margin-top:14px;
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  background:var(--surface,#fff);color:var(--ink,#112C28);
  border:1px solid var(--hairline,#DCE1DB);border-radius:9px;cursor:pointer;
  font:inherit;font-size:13.8px;font-weight:600;
  transition:border-color .15s ease, background .15s ease;
}
.szauth__ghost:hover{border-color:var(--muted-2,#48524D);background:var(--paper,#F5F6F2)}
.szauth__ghost svg{width:15px;height:15px}

/* ---- banners ---- */
.szauth__err,.szauth__ok{
  display:flex;align-items:flex-start;gap:9px;
  margin:0 0 16px;padding:11px 13px;border-radius:9px;
  font-size:13px;line-height:1.5;
}
.szauth__err{background:#FDF1F0;border:1px solid #F0D3D0;color:#8C2F27}
.szauth__ok{background:var(--verified-soft,#E2F0E8);border:1px solid rgba(28,122,85,.22);color:#12503A}
.szauth__err svg,.szauth__ok svg{width:16px;height:16px;flex:none;margin-top:1px}
.szauth__err b,.szauth__ok b{font-weight:600}

/* ---- footer ---- */
.szauth__foot{
  width:100%;max-width:352px;margin-top:22px;
  display:flex;align-items:center;justify-content:center;gap:14px;flex-wrap:wrap;
  font-size:12.2px;color:var(--muted-2,#48524D);
}
.szauth__foot a{color:var(--muted-2,#48524D);text-decoration:none}
.szauth__foot a:hover{color:var(--ink,#112C28);text-decoration:underline}

.szauth__close{
  position:absolute;top:16px;right:18px;
  display:inline-flex;align-items:center;gap:7px;
  min-height:38px;padding:8px 12px;border-radius:8px;
  border:1px solid transparent;background:transparent;cursor:pointer;
  font:inherit;font-size:12.8px;font-weight:500;color:var(--muted-2,#48524D);
}
.szauth__close:hover{border-color:var(--hairline,#DCE1DB);color:var(--ink,#112C28)}
.szauth__close svg{width:15px;height:15px}

.szauth__sr{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;
  overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;
}

@media (max-width:420px){
  .szauth__two{grid-template-columns:1fr}
  .szauth__card{padding:19px 16px}
  .szauth__close{top:10px;right:10px}
}

/* ---- the optional marker and the code box ---- */
.szauth__opt{
  font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;
  color:var(--muted-2,#48524D);background:rgba(17,44,40,.06);
  padding:2px 7px;border-radius:999px;
}
.szauth__code{
  font-size:22px;font-weight:600;letter-spacing:.34em;text-align:center;
  font-variant-numeric:tabular-nums;padding-left:8px;
}
.szauth__code::placeholder{letter-spacing:.2em}
.szauth__dev{
  margin:0 0 14px;padding:10px 12px;border-radius:9px;
  background:#FBF6E9;border:1px solid #EBDCB8;color:#5E4A1E;
  font-size:12.4px;line-height:1.55;
}
.szauth__dev code{
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:11.6px;
  background:rgba(0,0,0,.05);padding:1px 5px;border-radius:4px;
}
.szauth__card .szauth__ghost + .szauth__ghost{margin-top:8px}

/* Forgotten password, set a new one */
.szauth__lab .szauth__forgot{margin-left:auto;padding:0;border:0;background:none;font:inherit;font-size:12.5px;font-weight:600;
  color:var(--verified, #1F7A5C);cursor:pointer;text-decoration:underline;text-underline-offset:3px;}
.szauth__lab .szauth__forgot:focus-visible{outline:2px solid currentColor;outline-offset:2px;border-radius:3px;}
.szauth__fine{margin:10px 0 0;font-size:12.5px;line-height:1.5;color:var(--muted-2, #6B7671);text-align:center;}

/* Sign-up consent line under Create account. */
.szauth__legal{margin:10px 0 0; font-size:12px; line-height:1.5; color:var(--muted,#46524D); text-align:center;}
.szauth__legal a{color:inherit; text-decoration:underline;}

/* Sign in with Google: shown by sz-auth.js only when the engine has a client id. */
.szauth__google[hidden]{display:none}
.szauth__google{margin:0 0 4px}
.szauth__gbtn{display:flex;justify-content:center;min-height:44px}
.szauth__google .szauth__legal{margin:10px 0 0;text-align:center}
.szauth__google .szauth__or{margin:16px 0 4px}

/* THE SESSION WINDOW (25 Oct 2026): sz-pro.js sessionChoice(). The site's own tokens, so it follows the light and
   dark themes; one column on a phone, the actions reachable with the keyboard up, scrolling inside itself. */
dialog.szsess{
  width:min(560px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto;overscroll-behavior:contain;
  margin:auto;padding:22px 22px calc(18px + env(safe-area-inset-bottom,0px));box-sizing:border-box;
  border:1px solid #C9D2CC;border-radius:16px;
  /* solid colours on purpose: the site's --surface is translucent outside the workspace, and a see-through
     window over the page is unreadable */
  background:#FFFFFF;color:#14271B;
  box-shadow:0 24px 60px rgba(9,21,18,.28);font:inherit;
}
html[data-theme="dark"] dialog.szsess{background:#10201B;color:#E8EFEA;border-color:#355149}
html[data-theme="dark"] .szsess__row{background:#16291F;border-color:#355149}
html[data-theme="dark"] .szsess__desc,html[data-theme="dark"] .szsess__when{color:#A9B8AF}
html[data-theme="dark"] .szsess__btn{background:#E8EFEA;border-color:#E8EFEA;color:#10201B}
html[data-theme="dark"] .szsess__btn--ghost{background:transparent;color:#E8EFEA}
dialog.szsess::backdrop{background:rgba(9,21,18,.45)}
.szsess__title{margin:0 0 6px;font-size:20px;line-height:1.25;letter-spacing:-.01em;text-wrap:balance}
.szsess__desc{margin:0 0 16px;font-size:14.5px;line-height:1.5;color:#46524D}
.szsess__list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.szsess__row{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;padding:12px 14px;
  border:1px solid #C9D2CC;border-radius:12px;background:#F5F6F2}
.szsess__row.is-current{border-color:var(--verified,#1F7A5C)}
.szsess__text{display:flex;flex-direction:column;gap:2px;flex:1 1 200px;min-width:0}
.szsess__name{display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-size:15px}
.szsess__tag{font-style:normal;font-size:11.5px;font-weight:600;letter-spacing:.02em;padding:1px 8px;border-radius:999px;
  color:var(--verified,#1F7A5C);border:1px solid currentColor}
.szsess__when{font-size:13px;color:#46524D;overflow-wrap:anywhere}
.szsess__btn{min-height:44px;padding:10px 16px;border-radius:10px;border:1px solid #14271B;
  background:#14271B;color:#FFFFFF;font:inherit;font-size:14px;font-weight:600;cursor:pointer}
.szsess__btn--ghost{background:transparent;color:#14271B}
.szsess__btn--danger{background:#B3261E;border-color:#B3261E;color:#fff}
.szsess__btn--danger-ghost{background:transparent;border-color:#B3261E;color:#B3261E}
.szsess__btn:disabled{opacity:.55;cursor:default}
.szsess__btn:focus-visible{outline:3px solid var(--verified,#1F7A5C);outline-offset:2px}
.szsess__confirm{flex:1 1 100%;display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding-top:10px;
  border-top:1px dashed var(--hairline,#C9D2CC)}
.szsess__ask{flex:1 1 180px;font-size:14px;font-weight:600}
.szsess__actions{display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;gap:10px;margin-top:18px}
.szsess__allrow{display:flex;flex-wrap:wrap;gap:8px;flex:1 1 auto}
.szsess__cancel{margin-left:auto}
@media (max-width:480px){
  dialog.szsess{padding:18px 16px calc(16px + env(safe-area-inset-bottom,0px));border-radius:14px}
  .szsess__row .szsess__btn{flex:1 1 100%}
  .szsess__actions{flex-direction:column-reverse;align-items:stretch}
  .szsess__cancel{margin-left:0}
  .szsess__actions .szsess__btn{width:100%}
}
html[data-theme="dark"] .szsess__btn--danger-ghost{color:#F2B8B5;border-color:#F2B8B5}
@media (prefers-reduced-motion:no-preference){dialog.szsess[open]{animation:szsess-in .16s ease-out}}
@keyframes szsess-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

/* Touch controls respond without double-tap delay; body text remains selectable. */
.szsess button{touch-action:manipulation;-webkit-user-select:none;user-select:none;}

/* ---- the optional username: a live line under the field (30 Oct 2026) ---- */
.szauth__msg.is-ok{color:var(--verified,#1C7A55)}
.szauth__msg.is-wait{color:var(--muted-2,#48524D)}
.szauth__fine--tight{margin:7px 0 0;font-size:12.2px;line-height:1.45;text-align:left}

.szauth__req{margin-left:3px;color:#B3261E;font-weight:700}
