/* Vieta sign-in landing page (build 2026-11-17-b: apps open in a new tab; 2026-11-17-a: app list redesigned; 2026-11-16-b). Colours and font are variables: the client's
   /brand/theme.css (beside its auth Worker, AD24) sets its own; these defaults are the Pulse look. */
:root{--navy:#00285E;--sky:#6EC1F5;--ink:#172235;--muted:#5E6A7D;--line:#E3E8EF;--bg:#F4F6F9;--field:#A9B8C8;
  --hd-bg:var(--navy);--hd-ink:#fff;--hd-muted:#BFD3EA;--hd-line:rgba(255,255,255,.3);--accent:var(--navy)}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%}
body{background:var(--bg);color:var(--ink);font-family:var(--font,system-ui),system-ui,-apple-system,'Segoe UI',Roboto,Arial,sans-serif;font-size:15px;line-height:1.4}
button,input{font-family:inherit;font-size:inherit}
a:focus-visible,button:focus-visible,input:focus-visible{outline:3px solid var(--sky);outline-offset:2px}
.hd{background:var(--hd-bg);color:var(--hd-ink);display:flex;align-items:center;gap:16px;padding:0 24px;min-height:56px}
.brand{display:flex;align-items:center;gap:12px}
.brand img{display:block;height:var(--logo-h,34px);width:auto}
.brand span{font-weight:700;letter-spacing:.3px}
.brand img + span{border-left:1px solid var(--hd-line);padding-left:12px;font-size:12px;color:var(--hd-muted);text-transform:uppercase;letter-spacing:1.4px}
.who{margin-left:auto;display:flex;align-items:center;gap:12px;font-size:13px;color:var(--hd-muted)}
.who button{background:transparent;border:1px solid var(--hd-line);color:var(--hd-ink);border-radius:6px;padding:5px 10px;cursor:pointer}
.main{display:flex;justify-content:center;padding:64px 16px}
.box{background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 1px 2px rgba(16,24,40,.04),0 4px 16px rgba(16,24,40,.06);padding:28px 32px;width:100%;max-width:400px;display:flex;flex-direction:column;gap:12px;text-align:center}
.box.wide{max-width:760px;text-align:left}
.box-logo{display:block;margin:0 auto 4px;height:var(--box-logo-h,32px);width:auto;max-width:100%}
.note{color:var(--muted);font-size:13px}
.err{margin:0;font-size:13px;color:#B3261E;min-height:1.2em;text-align:left}
.err:empty{display:none}
.signin{display:flex;flex-direction:column;gap:12px;text-align:left}
.signin[hidden]{display:none}
.signin label{display:flex;flex-direction:column;gap:4px;font-size:13px;color:var(--muted)}
.signin input{height:40px;border:1px solid var(--field);border-radius:6px;padding:0 12px;color:var(--ink)}
.btn{background:var(--accent);color:#fff;border:1px solid var(--accent);border-radius:6px;padding:9px 16px;cursor:pointer;text-decoration:none;text-align:center}
.btn:disabled{opacity:.6}
.btn.primary{display:block;padding:11px 16px;font-weight:600}
.btn.secondary{align-self:flex-start;background:#fff;color:var(--accent)}
.link{background:none;border:0;color:var(--muted);font-size:13px;text-decoration:underline;cursor:pointer;padding:2px;align-self:center}
.link[hidden]{display:none}
.who .av{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:50%;background:var(--hd-line);color:var(--hd-ink);font-size:12px;font-weight:700;letter-spacing:.5px}
.who button:hover{background:var(--hd-line)}
/* The app list (2026-11-17-a): greeting, live apps, then test versions; one card per app. */
.apps{width:100%;max-width:1040px;display:flex;flex-direction:column;gap:32px}
.main:has(.apps){padding-top:48px}
.welcome h1{margin:0;font-size:28px;line-height:1.2;font-weight:700;color:var(--ink)}
.welcome p{margin:6px 0 0;color:var(--muted);font-size:15px}
.group h2{margin:0 0 4px;font-size:12px;font-weight:700;letter-spacing:1.2px;text-transform:uppercase;color:var(--muted)}
.group .gnote{margin:0 0 12px;font-size:13px;color:var(--muted)}
.group h2 + .tiles{margin-top:12px}
.tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:16px}
.tile{position:relative;display:flex;flex-direction:column;gap:14px;min-height:150px;padding:20px 20px 16px;background:#fff;border:1px solid var(--line);border-radius:12px;color:var(--ink);text-decoration:none;overflow:hidden;
  box-shadow:0 1px 2px rgba(16,24,40,.04);transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease}
.tile::before{content:'';position:absolute;left:0;top:0;right:0;height:4px;background:var(--accent)}
.tile.test::before{background:#E9A23B}
.tile:hover,.tile:focus-visible{transform:translateY(-2px);border-color:var(--accent);box-shadow:0 8px 24px rgba(16,24,40,.10)}
.tile .top{display:flex;align-items:flex-start;gap:14px}
.tile .ic{flex:none;display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:10px;background:#EEF2F8;background:color-mix(in srgb,var(--accent) 10%,#fff);color:var(--accent)}
.tile.test .ic{background:#FFF4E0;color:#9A5B00}
.tile svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.tile.test .top{padding-right:52px}
.tile .txt{display:flex;flex-direction:column;gap:4px;min-width:0}
.tile .name{font-size:17px;font-weight:700;color:var(--ink);line-height:1.25}
.tile .desc{font-size:13px;color:var(--muted)}
.tile .bottom{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:12px;border-top:1px solid var(--line)}
.tile .addr{font-size:12px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tile .go{flex:none;display:inline-flex;align-items:center;gap:4px;font-size:13px;font-weight:700;color:var(--accent)}
.tile .go svg{width:16px;height:16px;transition:transform .15s ease}
.tile:hover .go svg{transform:translateX(3px)}
.tag{font-style:normal;font-size:11px;font-weight:700;letter-spacing:.4px;text-transform:uppercase;color:#7A4B00;background:#FFF1D6;border:1px solid #F5D9A4;border-radius:999px;padding:2px 8px}
.tile .tag{position:absolute;top:16px;right:16px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.foot{margin:0;font-size:13px;color:var(--muted);text-align:center}
@media (max-width:600px){.main{padding:32px 12px}.welcome h1{font-size:23px}.hd{padding:0 14px}.brand img + span{display:none}.who span:not(.av){display:none}}
@media (prefers-reduced-motion:reduce){.tile,.tile .go svg{transition:none}.tile:hover{transform:none}}
