/* The client portal (portal.go): aurora glass. Slow coloured light drifts
   behind frosted glass cards; the firm's colour (--accent) leads the light
   and the main button. Dark, calm, legible. System fonts only: nothing
   loads from other sites. */
:root {
  color-scheme: dark;
  --accent: #5b7cff; --accent-ink: #fff;
  --bg: #05060b;
  --ink: #f2f4fa; --muted: rgb(226 230 245 / .62); --faint: rgb(226 230 245 / .4);
  --glass: rgb(255 255 255 / .06); --glass-hi: rgb(255 255 255 / .1); --edge: rgb(255 255 255 / .12); --edge-hi: rgb(255 255 255 / .22);
  --ok: #4ade80; --bad: #ff8a80; --wait: #fcd34d;
  --a2: #8b5cf6; --a3: #06b6d4; --a4: #f472b6;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; min-height: 100vh; color: var(--ink); font: 15px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif; -webkit-font-smoothing: antialiased; background: transparent; }
a { color: color-mix(in srgb, var(--accent) 55%, white); }
svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid color-mix(in srgb, var(--accent) 70%, white); outline-offset: 2px; }

/* The aurora: four blurred lights drifting slowly, a fine grain over them. */
.pt-aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: radial-gradient(120% 90% at 50% 0%, #0d1024 0%, var(--bg) 60%); }
.pt-aurora i { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; mix-blend-mode: screen; will-change: transform; }
.pt-aurora .a1 { width: 62vmax; height: 62vmax; top: -26vmax; left: -18vmax; background: radial-gradient(circle, var(--accent) 0%, transparent 62%); animation: pt-d1 34s ease-in-out infinite alternate; }
.pt-aurora .a2 { width: 58vmax; height: 58vmax; top: -10vmax; right: -24vmax; background: radial-gradient(circle, var(--a2) 0%, transparent 62%); animation: pt-d2 40s ease-in-out infinite alternate; }
.pt-aurora .a3 { width: 52vmax; height: 52vmax; bottom: -28vmax; left: 8vmax; background: radial-gradient(circle, var(--a3) 0%, transparent 62%); opacity: .4; animation: pt-d3 46s ease-in-out infinite alternate; }
.pt-aurora .a4 { width: 38vmax; height: 38vmax; bottom: -14vmax; right: 4vmax; background: radial-gradient(circle, var(--a4) 0%, transparent 62%); opacity: .28; animation: pt-d4 38s ease-in-out infinite alternate; }
.pt-aurora::after { content: ""; position: absolute; inset: 0; opacity: .06; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
@keyframes pt-d1 { to { transform: translate(16vmax, 12vmax) scale(1.12); } }
@keyframes pt-d2 { to { transform: translate(-14vmax, 16vmax) scale(.92); } }
@keyframes pt-d3 { to { transform: translate(18vmax, -12vmax) scale(1.18); } }
@keyframes pt-d4 { to { transform: translate(-16vmax, -10vmax) scale(1.1); } }

/* Frosted glass. */
.pt-glass { background: linear-gradient(160deg, var(--glass-hi), var(--glass) 40%); border: 1px solid var(--edge); border-radius: 22px;
  -webkit-backdrop-filter: blur(28px) saturate(150%); backdrop-filter: blur(28px) saturate(150%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .12), 0 30px 80px rgb(0 0 0 / .45); }

/* Sign-in, invite, the front door: one card in the middle. */
.pt-center { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 32px 16px; }
.pt-card { width: min(440px, 100%); padding: 32px 30px 26px; animation: pt-rise .6s cubic-bezier(.2,.8,.2,1) both; }
@keyframes pt-rise { from { opacity: 0; transform: translateY(14px) scale(.985); } }
.pt-mark { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.pt-mark img, .pt-mark i, .pt-brand img, .pt-brand i { width: 42px; height: 42px; border-radius: 13px; flex: none; object-fit: contain; }
.pt-mark img, .pt-brand img { background: #fff; padding: 4px; }
.pt-mark i, .pt-brand i { display: grid; place-items: center; font-style: normal; font-weight: 750; font-size: 18px; color: var(--accent-ink);
  background: linear-gradient(140deg, color-mix(in srgb, var(--accent) 80%, white), color-mix(in srgb, var(--accent) 70%, black));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .35), 0 8px 24px color-mix(in srgb, var(--accent) 45%, transparent); }
.pt-mark span, .pt-brand span { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.pt-mark b, .pt-brand b { font-size: 16px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-mark small, .pt-brand small { color: var(--muted); font-size: 12px; }
.pt-card h1 { margin: 0 0 8px; font-size: 26px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.pt-sub { margin: 0 0 22px; color: var(--muted); }
.pt-form { display: flex; flex-direction: column; gap: 14px; }
.pt-form label { display: flex; flex-direction: column; gap: 7px; font-size: 13px; font-weight: 600; color: var(--muted); }
.pt-form input { padding: 13px 14px; border-radius: 13px; border: 1px solid var(--edge); background: rgb(0 0 0 / .28); color: var(--ink); font-weight: 400; transition: border-color .15s, background-color .15s, box-shadow .15s; }
.pt-form input::placeholder { color: var(--faint); }
.pt-form input:focus { outline: none; border-color: color-mix(in srgb, var(--accent) 70%, white); background: rgb(0 0 0 / .4); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }

/* The passkey button glows; the rest are quieter. */
.pt-passkey, .pt-primary { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 18px; border: 0; border-radius: 14px; cursor: pointer;
  font-weight: 650; color: var(--accent-ink);
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 85%, white), var(--accent) 45%, color-mix(in srgb, var(--accent) 70%, var(--a2)));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .35), 0 10px 30px color-mix(in srgb, var(--accent) 45%, transparent), 0 0 0 1px color-mix(in srgb, var(--accent) 50%, transparent);
  transition: transform .15s, box-shadow .2s, filter .15s; }
.pt-passkey { animation: pt-glow 3.2s ease-in-out infinite; }
.pt-passkey:hover, .pt-primary:hover { transform: translateY(-1px); filter: brightness(1.08); }
.pt-passkey:active, .pt-primary:active { transform: translateY(0) scale(.985); }
/* Sign in again, on a bank connection the bank wants signed in to again: a small button in its row. */
.pt-primary.pt-mend { width: auto; flex: none; padding: 9px 14px; font-size: 13px; border-radius: 10px; }
.pt-primary:disabled { opacity: .45; cursor: not-allowed; transform: none; filter: none; box-shadow: none; }
/* A new password's rules, ticked off as they're met. */
.pt-rules { list-style: none; margin: -2px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 7px 14px; font-size: 12.5px; color: var(--faint); }
.pt-rules li { position: relative; padding-left: 21px; transition: color .15s; }
.pt-rules li::before { content: ""; position: absolute; left: 0; top: 50%; width: 14px; height: 14px; margin-top: -7px; box-sizing: border-box; border-radius: 50%; border: 1.5px solid currentColor; transition: background-color .15s, border-color .15s; }
.pt-rules li.ok { color: var(--ok); }
.pt-rules li.ok::before { background: var(--ok); border-color: var(--ok); }
.pt-rules li.ok::after { content: ""; position: absolute; left: 5px; top: 50%; width: 3px; height: 6px; margin-top: -4.5px; border: solid #06210f; border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); }
@media (max-width: 520px) { .pt-rules { grid-template-columns: 1fr; } }
.pt-passkey.busy { opacity: .75; cursor: progress; }
.pt-passkey svg { width: 20px; height: 20px; }
@keyframes pt-glow { 50% { box-shadow: inset 0 1px 0 rgb(255 255 255 / .35), 0 14px 44px color-mix(in srgb, var(--accent) 65%, transparent), 0 0 0 1px color-mix(in srgb, var(--accent) 60%, transparent); } }
.pt-ghostbtn { width: 100%; padding: 13px 18px; border-radius: 14px; border: 1px solid var(--edge-hi); background: rgb(255 255 255 / .06); color: var(--ink); font-weight: 600; cursor: pointer; transition: background-color .15s, border-color .15s; }
.pt-ghostbtn:hover { background: rgb(255 255 255 / .11); border-color: rgb(255 255 255 / .3); }
.pt-or { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--faint); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.pt-or::before, .pt-or::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--edge-hi), transparent); }
.pt-pkwrap .pt-err { margin: 12px 0 0; }

.pt-err { margin: 0 0 16px; padding: 11px 13px; border-radius: 12px; color: var(--bad); background: color-mix(in srgb, var(--bad) 12%, transparent); border: 1px solid color-mix(in srgb, var(--bad) 25%, transparent); font-size: 14px; }
.pt-ok { margin: 0; padding: 13px 15px; border-radius: 12px; color: var(--ok); background: color-mix(in srgb, var(--ok) 10%, transparent); border: 1px solid color-mix(in srgb, var(--ok) 22%, transparent); }
.pt-fine { margin: 18px 0 0; color: var(--faint); font-size: 12.5px; }
.pt-form .pt-fine { margin: -4px 0 0; }
.pt-legal { margin: 0; color: var(--faint); font-size: 12px; text-align: center; display: flex; align-items: center; gap: 6px; }
.pt-legal::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }

/* Home. */
.pt-top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px max(16px, calc((100vw - 1180px) / 2)); background: linear-gradient(rgb(5 6 11 / .65), rgb(5 6 11 / .2));
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border-bottom: 1px solid rgb(255 255 255 / .06); }
.pt-brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; min-width: 0; }
.pt-brand img, .pt-brand i { width: 38px; height: 38px; border-radius: 12px; font-size: 16px; }
.pt-out { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.pt-out button { border: 1px solid var(--edge); background: var(--glass); border-radius: 11px; padding: 7px 13px; cursor: pointer; }
.pt-out button:hover { background: var(--glass-hi); }
.pt-out a { border: 1px solid var(--edge); background: var(--glass); border-radius: 11px; padding: 7px 13px; color: var(--ink); text-decoration: none; }
.pt-out a:hover { background: var(--glass-hi); }
/* The team's read-only look at a client's portal (portal.go clientPortalPreview). */
.pt-preview { width: min(1180px, calc(100vw - 32px)); margin: 16px auto 0; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px;
  border: 1px solid rgb(252 211 77 / .35); background: rgb(252 211 77 / .1); color: var(--wait); font-size: 13.5px; line-height: 1.45; }
.pt-preview svg { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pt-preview + .pt-shell { margin-top: 14px; }
.pt-drop.off { cursor: default; opacity: .55; }
.pt-sec button:disabled { opacity: .5; cursor: default; transform: none; filter: none; }
/* The page and its sidebar, on the right. */
.pt-shell { width: min(1180px, calc(100vw - 32px)); margin: 18px auto 56px; display: grid; grid-template-columns: minmax(0, 1fr) 264px; gap: 22px; align-items: start; }
.pt-app { min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.pt-side { position: sticky; top: 86px; display: flex; flex-direction: column; gap: 14px; }
.pt-nav { display: flex; flex-direction: column; gap: 2px; padding: 8px; }
.pt-nav a { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 12px; color: var(--muted); text-decoration: none; font-size: 14.5px; font-weight: 550; transition: background-color .15s, color .15s; }
.pt-nav a:hover { background: var(--glass-hi); color: var(--ink); }
.pt-nav a.on { background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent); }
.pt-nav a svg { width: 18px; height: 18px; flex: none; }
.pt-nav a span { flex: 1; min-width: 0; }
.pt-badge { font-style: normal; font-size: 11.5px; font-weight: 700; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center; background: rgb(255 255 255 / .12); color: var(--ink); }
.pt-badge.new { background: var(--accent); color: var(--accent-ink); }
.pt-badge.bad { background: color-mix(in srgb, var(--bad) 22%, transparent); color: var(--bad); }
.pt-company { display: flex; flex-direction: column; gap: 6px; }
.pt-company small, .pt-contact > small { color: var(--faint); font-size: 11px; text-transform: uppercase; letter-spacing: .09em; font-weight: 650; }
.pt-company select { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--edge); background: rgb(0 0 0 / .3); color: var(--ink); font: inherit; }
.pt-contact { padding: 16px; display: flex; flex-direction: column; gap: 7px; font-size: 13px; }
.pt-contact b { font-size: 14.5px; margin-bottom: 2px; }
.pt-contact a { display: flex; align-items: center; gap: 8px; color: var(--muted); text-decoration: none; overflow-wrap: anywhere; }
.pt-contact a:hover { color: var(--ink); }
.pt-contact a svg { width: 15px; height: 15px; flex: none; }
.pt-contact .pt-contactmsg { margin-top: 6px; justify-content: center; padding: 8px; border-radius: 10px; border: 1px solid var(--edge); background: var(--glass); color: var(--ink); }
.pt-pagehead { padding: 10px 2px 2px; }
.pt-pagehead h1 { margin: 0 0 4px; font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
.pt-pagehead p { margin: 0; color: var(--muted); max-width: 640px; }

/* Home: what needs them, and a tile for each part. */
.pt-attnlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pt-attn { display: flex; align-items: center; gap: 13px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--edge); background: rgb(0 0 0 / .18); color: var(--ink); text-decoration: none; transition: background-color .15s, border-color .15s, transform .15s; }
.pt-attn:hover { background: var(--glass-hi); transform: translateX(2px); }
.pt-attn > svg { width: 16px; height: 16px; color: var(--faint); flex: none; }
.pt-attnic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex: none; background: rgb(255 255 255 / .08); }
.pt-attnic svg { width: 18px; height: 18px; }
.pt-attn.new .pt-attnic { background: color-mix(in srgb, var(--accent) 28%, transparent); color: color-mix(in srgb, var(--accent) 60%, white); }
.pt-attn.warn .pt-attnic { background: color-mix(in srgb, var(--wait) 18%, transparent); color: var(--wait); }
.pt-attn.bad .pt-attnic { background: color-mix(in srgb, var(--bad) 18%, transparent); color: var(--bad); }
.pt-attntx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pt-attntx small { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.pt-tile { display: flex; gap: 13px; padding: 18px; color: var(--ink); text-decoration: none; transition: transform .2s cubic-bezier(.2,.8,.2,1), background-color .2s; animation: pt-rise .5s cubic-bezier(.2,.8,.2,1) both; }
.pt-tile:hover { transform: translateY(-2px); background: var(--glass-hi); }
.pt-tileic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; background: rgb(255 255 255 / .08); }
.pt-tileic svg { width: 19px; height: 19px; }
.pt-tile.new .pt-tileic { background: color-mix(in srgb, var(--accent) 30%, transparent); }
.pt-tile.warn .pt-tileic { background: color-mix(in srgb, var(--wait) 18%, transparent); color: var(--wait); }
.pt-tiletx { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pt-tiletx small { color: var(--faint); font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; font-weight: 650; }
.pt-tiletx b { font-size: 18px; font-weight: 650; letter-spacing: -.01em; }
.pt-tiletx span { color: var(--muted); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }

/* Messages. */
.pt-chat { padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.pt-thread { display: flex; flex-direction: column; gap: 12px; padding: 22px; min-height: 320px; max-height: calc(100vh - 330px); overflow-y: auto; }
.pt-chatempty { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 40px 16px; color: var(--muted); margin: auto; }
.pt-chatempty > svg { width: 34px; height: 34px; color: color-mix(in srgb, var(--accent) 60%, white); }
.pt-chatempty b { color: var(--ink); font-size: 16px; }
.pt-chatempty span { max-width: 420px; }
.pt-chatempty .pt-linkbtn { margin-top: 8px; color: var(--ink); text-decoration: none; }
.pt-msgday { text-align: center; }
.pt-msgday span { font-size: 11.5px; color: var(--faint); padding: 3px 11px; border-radius: 999px; background: rgb(255 255 255 / .06); }
.pt-msg { max-width: min(560px, 84%); align-self: flex-start; display: flex; flex-direction: column; gap: 5px; }
.pt-msg.us { align-self: flex-end; align-items: flex-end; }
.pt-msgmeta { display: flex; gap: 8px; align-items: baseline; font-size: 12px; color: var(--faint); }
.pt-msgmeta b { color: var(--muted); font-weight: 600; }
.pt-msgbody { white-space: pre-wrap; overflow-wrap: anywhere; padding: 10px 14px; border-radius: 16px 16px 16px 5px; background: rgb(255 255 255 / .09); border: 1px solid rgb(255 255 255 / .08); line-height: 1.5; }
.pt-msg.us .pt-msgbody { border-radius: 16px 16px 5px 16px; background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 70%, var(--a2))); color: var(--accent-ink); border-color: transparent; }
.pt-msgfiles { display: flex; flex-direction: column; gap: 5px; }
.pt-msg.us .pt-msgfiles { align-items: flex-end; }
.pt-msgfile { display: inline-flex; align-items: center; gap: 8px; max-width: 320px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--edge); background: rgb(0 0 0 / .25); color: var(--ink); text-decoration: none; font-size: 13px; }
.pt-msgfile:hover { background: var(--glass-hi); }
.pt-msgfile svg { width: 15px; height: 15px; flex: none; color: var(--muted); }
.pt-msgfile span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.pt-msgfile small { color: var(--faint); flex: none; }
.pt-msgseen { display: inline-flex; align-items: center; gap: 4px; color: var(--faint); font-size: 11.5px; }
.pt-msgseen svg { width: 12px; height: 12px; }
.pt-composer { border-top: 1px solid var(--edge); padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; background: rgb(0 0 0 / .18); }
.pt-composer.over { outline: 2px dashed color-mix(in srgb, var(--accent) 70%, white); outline-offset: -6px; }
.pt-composebar { display: flex; align-items: flex-end; gap: 8px; }
.pt-composebar textarea { flex: 1; min-width: 0; resize: none; min-height: 44px; max-height: 220px; padding: 11px 14px; border-radius: 14px; border: 1px solid var(--edge); background: rgb(0 0 0 / .3); color: var(--ink); font: inherit; line-height: 1.45; }
.pt-composebar textarea:focus { outline: none; border-color: color-mix(in srgb, var(--accent) 70%, white); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent); }
.pt-attach, .pt-send { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 14px; border: 1px solid var(--edge); background: var(--glass); cursor: pointer; }
.pt-attach:hover { background: var(--glass-hi); }
.pt-send { border: 0; background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 40%, transparent); }
.pt-send:disabled { opacity: .5; cursor: default; }
.pt-attach svg, .pt-send svg { width: 19px; height: 19px; }
.pt-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pt-chips:empty { display: none; }
.pt-chip { display: inline-flex; align-items: center; gap: 7px; max-width: 280px; padding: 5px 6px 5px 11px; border-radius: 999px; border: 1px solid var(--edge); background: rgb(255 255 255 / .06); font-size: 12.5px; }
.pt-chip svg { width: 14px; height: 14px; flex: none; }
.pt-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.pt-chip small { color: var(--faint); }
.pt-chip button { border: 0; background: none; padding: 2px; cursor: pointer; color: var(--muted); display: grid; }
.pt-chatnote { margin: 0; padding: 14px 18px; border-top: 1px solid var(--edge); color: var(--wait); font-size: 13px; }

/* Statements: the grid. */
.pt-ghead { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.pt-ghead .pt-linkbtn { color: var(--ink); text-decoration: none; }
.pt-gwrap { overflow-x: auto; border: 1px solid var(--edge); border-radius: 14px; }
.pt-grid { border-collapse: separate; border-spacing: 0; width: 100%; min-width: max-content; font-size: 13px; }
.pt-grid th, .pt-grid td { padding: 7px 10px; border-bottom: 1px solid rgb(255 255 255 / .06); text-align: left; vertical-align: middle; }
.pt-grid thead th { position: sticky; top: 0; background: #11131d; z-index: 1; border-bottom: 1px solid var(--edge); }
.pt-gcorner, .pt-gmonth { position: sticky; left: 0; background: #11131d; z-index: 2; width: 70px; }
.pt-gmonth { font-weight: 600; color: var(--muted); }
.pt-gacct { min-width: 150px; }
.pt-gacct img { width: 20px; height: 20px; border-radius: 5px; background: #fff; padding: 2px; object-fit: contain; vertical-align: middle; margin-right: 7px; }
.pt-gacct b { vertical-align: middle; }
.pt-gacct small { display: block; color: var(--faint); font-weight: 400; font-size: 11.5px; margin-top: 2px; }
.pt-gyear th { background: rgb(255 255 255 / .04); font-weight: 700; padding: 6px 10px; position: sticky; left: 0; }
.pt-gok button, .pt-gok > span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 9px; border: 1px solid color-mix(in srgb, var(--ok) 30%, transparent); background: color-mix(in srgb, var(--ok) 10%, transparent); color: var(--ok); font-size: 12.5px; cursor: pointer; }
.pt-gok > span { cursor: default; }
.pt-gok button:hover { background: color-mix(in srgb, var(--ok) 18%, transparent); }
.pt-gok svg { width: 13px; height: 13px; }
.pt-gok button + button { margin-left: 4px; }
.pt-gmiss span { display: inline-block; padding: 5px 10px; border-radius: 9px; border: 1px dashed color-mix(in srgb, var(--bad) 55%, transparent); background: color-mix(in srgb, var(--bad) 10%, transparent); color: var(--bad); font-size: 12.5px; font-weight: 600; }

@media (max-width: 900px) {
  .pt-shell { grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 10px; }
  .pt-side { position: static; order: -1; min-width: 0; }
  .pt-nav { flex-direction: row; overflow-x: auto; padding: 6px; scrollbar-width: none; }
  .pt-nav a { flex: none; padding: 8px 12px; }
  .pt-contact { display: none; }
  .pt-thread { max-height: calc(100vh - 300px); }
}
.pt-loading { color: var(--muted); text-align: center; padding: 48px; }
.pt-orgs { display: flex; gap: 6px; flex-wrap: wrap; }
.pt-orgs button { border: 1px solid var(--edge); background: var(--glass); border-radius: 999px; padding: 8px 15px; cursor: pointer; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.pt-orgs button.on { color: var(--accent-ink); background: var(--accent); border-color: transparent; box-shadow: 0 6px 20px color-mix(in srgb, var(--accent) 40%, transparent); }
.pt-hello { padding: 10px 2px 2px; }
.pt-hello h1 { margin: 0 0 4px; font-size: 32px; font-weight: 700; letter-spacing: -.025em; }
.pt-hello p { margin: 0; color: var(--muted); }
.pt-sec { padding: 22px 24px; animation: pt-rise .5s cubic-bezier(.2,.8,.2,1) both; }
.pt-sec + .pt-sec { animation-delay: .06s; }
.pt-sec h2 { margin: 0 0 12px; font-size: 17px; font-weight: 650; }
.pt-sec h3 { margin: 20px 0 8px; font-size: 11.5px; color: var(--faint); font-weight: 650; text-transform: uppercase; letter-spacing: .09em; }
.pt-sec .pt-sub { margin-bottom: 14px; }
.pt-good { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--ok); font-weight: 600; }

.pt-needs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pt-needs li { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-radius: 16px; background: rgb(0 0 0 / .22); border: 1px solid rgb(255 255 255 / .06); }
.pt-acct { display: flex; align-items: center; gap: 10px; }
.pt-acct img { width: 26px; height: 26px; border-radius: 7px; object-fit: contain; background: #fff; padding: 2px; }
.pt-months { display: flex; flex-wrap: wrap; gap: 6px; }
.pt-month { font-size: 12.5px; padding: 4px 11px; border-radius: 999px; color: #ffc4be; background: color-mix(in srgb, var(--bad) 16%, transparent); border: 1px solid color-mix(in srgb, var(--bad) 24%, transparent); }
.pt-month.more { color: var(--muted); background: transparent; border-color: transparent; }

.pt-drop { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 34px 16px; border: 1.5px dashed rgb(255 255 255 / .2); border-radius: 18px; text-align: center; cursor: pointer; color: var(--muted);
  background: rgb(0 0 0 / .18); transition: border-color .2s, background-color .2s, transform .15s; }
.pt-drop svg { width: 30px; height: 30px; color: color-mix(in srgb, var(--accent) 60%, white); filter: drop-shadow(0 4px 14px color-mix(in srgb, var(--accent) 60%, transparent)); }
.pt-drop b { color: var(--ink); font-size: 15.5px; }
.pt-drop:hover, .pt-drop.over { border-color: color-mix(in srgb, var(--accent) 70%, white); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.pt-drop.over { transform: scale(1.01); }

.pt-uploads, .pt-invoices, .pt-keys { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.pt-up, .pt-key { display: flex; align-items: center; gap: 12px; padding: 11px 2px; border-top: 1px solid rgb(255 255 255 / .07); }
.pt-up:first-child, .pt-key:first-child { border-top: 0; }
.pt-up > svg, .pt-key > svg { color: var(--muted); }
.pt-upname { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pt-upname b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-upname small { color: var(--faint); font-size: 12px; }
.pt-upstate { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; white-space: nowrap; }
.pt-up.ok .pt-upstate { color: var(--ok); }
.pt-up.bad .pt-upstate { color: var(--bad); }
.pt-up.wait .pt-upstate { color: var(--wait); }
.pt-up.wait .pt-upstate svg { animation: pt-spin 1.6s linear infinite; }
@keyframes pt-spin { to { transform: rotate(360deg); } }

.pt-inv { width: 100%; display: flex; align-items: center; gap: 12px; padding: 13px 2px; border: 0; border-top: 1px solid rgb(255 255 255 / .07); background: none; text-align: left; cursor: pointer; border-radius: 0; }
.pt-invoices li:first-child .pt-inv { border-top: 0; }
.pt-inv:hover .pt-invname b { text-decoration: underline; }
.pt-inv > svg { color: var(--muted); }
.pt-invname { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pt-invname small { color: var(--faint); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-invdate { color: var(--muted); font-size: 13px; white-space: nowrap; }
.pt-invamt { white-space: nowrap; font-variant-numeric: tabular-nums; }
.pt-pill { font-size: 12px; font-weight: 650; padding: 3px 11px; border-radius: 999px; background: rgb(255 255 255 / .08); white-space: nowrap; }
.pt-pill.paid { color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, transparent); }
.pt-pill.overdue { color: var(--bad); background: color-mix(in srgb, var(--bad) 14%, transparent); }

/* Passkeys on the home page. */
.pt-keytip { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.pt-keytip p { flex: 1 1 260px; margin: 0; color: var(--muted); }
.pt-keytip .pt-passkey { width: auto; animation: none; }
.pt-key .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pt-key small { color: var(--faint); font-size: 12px; }
.pt-linkbtn { display: inline-flex; align-items: center; gap: 7px; }
.pt-key button, .pt-linkbtn { border: 1px solid var(--edge); background: var(--glass); border-radius: 10px; padding: 6px 12px; cursor: pointer; font-size: 13px; }
.pt-key button:hover, .pt-linkbtn:hover { background: var(--glass-hi); }

/* The aviation site (portalaero.go): their POs and the documents' tree. */
.pt-aog { font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .06em; padding: 2px 7px; border-radius: 6px; background: var(--bad); color: #1a0503; margin-left: 8px; vertical-align: middle; }
.pt-polist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.pt-po { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--edge); background: rgb(0 0 0 / .2); color: var(--ink); text-align: left; cursor: pointer; }
.pt-po:hover { background: var(--glass-hi); }
.pt-po.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.pt-po b { font-size: 15px; }
.pt-po small { color: var(--faint); font-size: 12.5px; }
.pt-pohead { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.pt-pohead h2 { margin: 0 0 2px; font-size: 21px; }
.pt-pohead .pt-sub { margin: 0; }
.pt-pohead .pt-linkbtn { color: var(--ink); text-decoration: none; }
.pt-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.pt-steps li { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--faint); min-width: 0; }
.pt-steps li i { height: 6px; border-radius: 3px; background: rgb(255 255 255 / .1); }
.pt-steps li.done { color: var(--ink); font-weight: 600; }
.pt-steps li.done i { background: var(--accent); }
.pt-tbl { border-collapse: collapse; width: 100%; min-width: 600px; font-size: 13.5px; }
.pt-tbl th, .pt-tbl td { padding: 10px 12px; text-align: left; border-bottom: 1px solid rgb(255 255 255 / .07); }
.pt-tbl th { font-size: 11px; color: var(--faint); text-transform: uppercase; letter-spacing: .07em; font-weight: 650; }
.pt-tbl .r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pt-tbl tfoot td { font-weight: 650; border-bottom: 0; }
.pt-pn { font-family: ui-monospace, "SF Mono", Consolas, monospace; font-size: 13px; }
.pt-docs { display: flex; flex-direction: column; gap: 14px; }
.pt-docsearch { display: flex; align-items: center; gap: 10px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--edge); background: rgb(0 0 0 / .25); color: var(--muted); }
.pt-docsearch input { flex: 1; min-width: 0; min-height: 44px; border: 0; background: none; color: var(--ink); font: inherit; outline: none; }
.pt-docgrid { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); gap: 16px; align-items: start; }
.pt-tree, .pt-tree ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1px; }
.pt-tree ul ul .pt-tr { padding-left: 50px; }
.pt-tree ul .pt-tr.k { padding-left: 28px; }
.pt-tr { width: 100%; min-height: 40px; display: flex; align-items: center; gap: 8px; padding: 6px 10px; border: 0; border-radius: 10px; background: none; color: var(--ink); text-align: left; cursor: pointer; font-size: 13.5px; }
.pt-tr:hover { background: var(--glass-hi); }
.pt-tr.g { font-weight: 650; }
.pt-tr.g svg { width: 14px; height: 14px; color: var(--muted); transition: transform .15s; }
.pt-tr.g.open svg { transform: rotate(90deg); }
.pt-tr.k svg { width: 15px; height: 15px; color: var(--muted); }
.pt-tr.s { color: var(--muted); }
.pt-tr span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-tr small { color: var(--faint); font-size: 12px; font-variant-numeric: tabular-nums; }
.pt-tr.on { background: color-mix(in srgb, var(--accent) 20%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent); color: var(--ink); }
.pt-docfiles h3 { margin: 4px 0 6px; text-transform: none; letter-spacing: 0; font-size: 15px; color: var(--ink); }
.pt-docacts { display: inline-flex; gap: 6px; flex: none; }
.pt-docacts a.pt-linkbtn { color: var(--ink); text-decoration: none; }
@media (max-width: 760px) {
  .pt-docgrid { grid-template-columns: minmax(0, 1fr); }
  .pt-steps li { font-size: 11px; }
  .pt-up { flex-wrap: wrap; }
}

.pt-dlg { width: min(920px, calc(100vw - 24px)); height: min(92vh, 1100px); padding: 0; border: 1px solid var(--edge); border-radius: 20px; background: #0d0f17; color: var(--ink); overflow: hidden; }
.pt-dlg[open] { display: flex; flex-direction: column; }
.pt-dlg::backdrop { background: rgb(0 0 0 / .6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.pt-dlghead { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--edge); }
.pt-dlghead b { flex: 1; }
.pt-dlghead button { border: 0; background: none; cursor: pointer; padding: 4px; }
.pt-dlg iframe { flex: 1; width: 100%; border: 0; background: #fff; }

.pt-foot { color: var(--faint); font-size: 13px; text-align: center; padding: 10px; }
.pt-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 16px); opacity: 0; pointer-events: none; max-width: calc(100vw - 32px); padding: 11px 18px; border-radius: 14px;
  background: rgb(20 23 34 / .92); border: 1px solid var(--edge); color: var(--ink); font-size: 14px; box-shadow: 0 16px 40px rgb(0 0 0 / .5);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); transition: opacity .2s, transform .2s; }
.pt-toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 600px) {
  .pt-card { padding: 26px 20px 22px; border-radius: 20px; }
  .pt-card h1 { font-size: 23px; }
  .pt-top { padding: 12px 16px; }
  .pt-out span { display: none; }
  .pt-hello h1 { font-size: 26px; }
  .pt-sec { padding: 18px; }
  .pt-inv { flex-wrap: wrap; }
  .pt-invdate { order: 5; width: 100%; padding-left: 30px; }
  .pt-aurora i { filter: blur(70px); }
}
@media (prefers-reduced-motion: reduce) {
  .pt-aurora i, .pt-passkey, .pt-card, .pt-sec, .pt-up.wait .pt-upstate svg { animation: none !important; }
  .pt-drop, .pt-toast, .pt-passkey, .pt-primary, .pt-tr.g svg { transition: none; }
}
