/* VerifyMyList simple portal (/user, /partner) — shell + the v4 touches.
   Components (card, btn, badge, stat, alert, table, form) come from app.css;
   every colour here is a theme variable, so all 14 themes and dark mode apply. */

.pt-body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); }
.pt-skip { position: absolute; left: -999px; top: 0; z-index: 100; background: var(--primary); color: #fff; padding: .6rem 1rem; border-radius: 0 0 var(--radius-sm) 0; }
.pt-skip:focus { left: 0; }
:where(.pt-body) :focus-visible { outline: 3px solid rgba(var(--primary-rgb), .55); outline-offset: 2px; border-radius: 6px; }

/* ── shell ─────────────────────────────────────────────────────────── */
.pt-shell { display: grid; grid-template-columns: 272px minmax(0, 1fr); min-height: 100vh; }
.pt-sidebar { background: var(--bg-sidebar); color: var(--text-inverse); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.pt-brand { display: flex; align-items: center; gap: .7rem; padding: 1.25rem 1.25rem 1rem; color: #fff; text-decoration: none; }
.pt-brand:hover { text-decoration: none; color: #fff; }
.pt-brand-mark { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--primary); color: #fff; font-weight: 800; font-size: .95rem; letter-spacing: -.02em; }
.pt-brand-name { font-weight: 800; font-size: 1.05rem; letter-spacing: -.02em; }
.pt-brand-sub { font-size: .7rem; opacity: .6; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.pt-nav { padding: .25rem .75rem 1rem; flex: 1; }
.pt-nav-section { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; opacity: .5; padding: 1rem .6rem .4rem; }
.pt-nav-link { display: flex; gap: .7rem; align-items: flex-start; padding: .6rem .65rem; border-radius: 10px; color: rgba(255,255,255,.82); text-decoration: none; margin-bottom: 2px; border-left: 3px solid transparent; }
.pt-nav-link:hover { background: var(--bg-sidebar-hover); color: #fff; text-decoration: none; }
.pt-nav-link.active { background: rgba(var(--primary-rgb), .22); color: #fff; border-left-color: var(--primary); }
.pt-nav-icon { width: 20px; height: 20px; flex: none; margin-top: 1px; opacity: .9; }
.pt-nav-title { display: block; font-weight: 600; font-size: .9rem; line-height: 1.25; }
.pt-nav-desc { display: block; font-size: .74rem; opacity: .62; line-height: 1.3; margin-top: 1px; }
.pt-side-credits { margin: .75rem; padding: 1rem; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); }
.pt-side-credits .k { font-size: .72rem; opacity: .65; font-weight: 600; }
.pt-side-credits .v { font-size: 1.35rem; font-weight: 800; margin: .15rem 0 .6rem; letter-spacing: -.02em; color: #fff; }

.pt-scrim { display: none; }
.pt-main { display: flex; flex-direction: column; min-width: 0; }
.pt-topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: .75rem; padding: .7rem 1.5rem; background: var(--topbar-bg); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.pt-topbar-title { font-weight: 700; font-size: 1rem; margin-right: auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-menu-btn { display: none; }
.pt-pill { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .75rem; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-weight: 700; font-size: .82rem; text-decoration: none; white-space: nowrap; }
.pt-pill:hover { text-decoration: none; filter: brightness(.97); }
.pt-user { display: flex; align-items: center; gap: .55rem; }
.pt-avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: #fff; font-weight: 700; font-size: .8rem; }
.pt-user-name { font-size: .82rem; font-weight: 600; line-height: 1.2; }
.pt-user-mail { font-size: .72rem; color: var(--text-muted); }
.pt-content { width: 100%; max-width: 1180px; margin: 0 auto; padding: 1.5rem; flex: 1; }
.pt-footer { padding: 1rem 1.5rem; font-size: .76rem; color: var(--text-muted); border-top: 1px solid var(--border); display: flex; gap: 1rem; flex-wrap: wrap; justify-content: space-between; }

/* ── page building blocks ─────────────────────────────────────────── */
.pt-head { margin-bottom: 1.25rem; }
.pt-head h1 { margin: 0; font-size: 1.55rem; letter-spacing: -.03em; }
.pt-head p { margin: .3rem 0 0; color: var(--text-muted); }
.pt-help { display: flex; gap: .75rem; align-items: flex-start; padding: .85rem 1rem; border-radius: 12px; background: var(--info-soft); border: 1px solid rgba(var(--primary-rgb), .18); margin-bottom: 1.25rem; font-size: .88rem; }
.pt-help strong { display: block; margin-bottom: .1rem; }
.pt-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.pt-action { display: flex; gap: .9rem; align-items: flex-start; padding: 1.1rem; border-radius: var(--radius); background: var(--bg-elevated); border: 1px solid var(--border); color: var(--text); text-decoration: none; box-shadow: var(--shadow); transition: transform .15s, border-color .15s; }
.pt-action:hover { transform: translateY(-2px); border-color: var(--primary); text-decoration: none; color: var(--text); }
.pt-action-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; background: var(--primary-soft); color: var(--primary); }
.pt-action-icon.accent { background: var(--accent-soft); color: var(--accent); }
.pt-action-icon.green { background: var(--success-soft); color: var(--success); }
.pt-action h3 { margin: 0 0 .15rem; font-size: 1rem; }
.pt-action p { margin: 0; font-size: .84rem; color: var(--text-muted); }
.pt-grid { display: grid; gap: 1rem; }
.pt-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pt-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pt-grid.side { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.pt-big { font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.pt-muted { color: var(--text-muted); font-size: .85rem; }

/* result mix bars */
.pt-bars { display: grid; gap: .7rem; }
.pt-bar-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) 54px; gap: .7rem; align-items: center; font-size: .85rem; }
.pt-bar-track { height: 10px; border-radius: 999px; background: var(--bg-muted); overflow: hidden; }
.pt-bar-fill { height: 100%; border-radius: 999px; }
.pt-bar-row .num { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.fill-valid { background: var(--success); } .fill-invalid { background: var(--danger); }
.fill-catch { background: var(--warning); } .fill-risky { background: var(--accent); } .fill-unknown { background: var(--info); }

/* list rows */
.pt-list { list-style: none; margin: 0; padding: 0; }
.pt-list li { display: flex; align-items: center; gap: .9rem; padding: .8rem 0; border-top: 1px solid var(--border); }
.pt-list li:first-child { border-top: 0; }
.pt-list .grow { flex: 1; min-width: 0; }
.pt-list .name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-file-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--bg-muted); color: var(--text-muted); flex: none; }

/* forms + misc */
.pt-body .field input:not([type=checkbox]):not([type=radio]),
.pt-body .field select, .pt-body .field textarea { width: 100%; }
.pt-step { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.pt-step span { padding: .35rem .8rem; border-radius: 999px; font-size: .8rem; font-weight: 600; background: var(--bg-muted); color: var(--text-muted); }
.pt-step span.on { background: var(--primary); color: #fff; }
.pt-step span.done { background: var(--success-soft); color: var(--success); }
.pt-score { height: 10px; border-radius: 999px; background: var(--bg-muted); overflow: hidden; }
.pt-score > i { display: block; height: 100%; background: var(--success); border-radius: 999px; }
.pt-checks { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.pt-checks li { display: flex; gap: .55rem; align-items: center; font-size: .88rem; }
.pt-ok { color: var(--success); } .pt-no { color: var(--danger); } .pt-na { color: var(--text-muted); }
.pt-code { font-family: var(--mono); font-size: .82rem; background: var(--bg-muted); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: .6rem .8rem; word-break: break-all; }
.pt-key-once { border: 2px dashed var(--warning); background: var(--warning-soft); border-radius: var(--radius); padding: 1rem; margin-bottom: 1rem; }

/* ── auth (login / 2FA) ───────────────────────────────────────────── */
.pt-auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; }
.pt-auth-brand { background: linear-gradient(150deg, var(--bg-sidebar) 0%, #13306b 100%); color: #fff; padding: 3rem; display: flex; flex-direction: column; justify-content: space-between; }
.pt-auth-brand h2 { font-size: 2rem; letter-spacing: -.03em; margin: 2.5rem 0 .75rem; line-height: 1.15; }
.pt-auth-brand p { color: rgba(255, 255, 255, .78); max-width: 30rem; }
.pt-auth-points { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .6rem; }
.pt-auth-points li { display: flex; gap: .55rem; align-items: center; }
.pt-auth-form { display: grid; place-items: center; padding: 2rem 1.25rem; }
.pt-auth-card { width: 100%; max-width: 410px; }
.pt-auth-card h1 { margin: 0 0 .3rem; font-size: 1.6rem; letter-spacing: -.03em; }
.pt-auth-card .btn { width: 100%; padding: .7rem 1rem; font-size: .95rem; }
.pt-auth-alt { margin-top: 1.25rem; font-size: .84rem; color: var(--text-muted); text-align: center; }

/* ── responsive ───────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .pt-shell { grid-template-columns: minmax(0, 1fr); }
  .pt-sidebar { position: fixed; inset: 0 auto 0 0; width: 280px; z-index: 50; transform: translateX(-100%); transition: transform .2s; visibility: hidden; }
  .pt-nav-open .pt-sidebar { transform: none; visibility: visible; }
  .pt-nav-open .pt-scrim { display: block; position: fixed; inset: 0; background: rgba(2,6,23,.45); z-index: 40; }
  .pt-menu-btn { display: inline-flex; }
  .pt-actions, .pt-grid.cols-3, .pt-grid.side { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .pt-grid.cols-2 { grid-template-columns: minmax(0, 1fr); }
  .pt-auth { grid-template-columns: minmax(0, 1fr); }
  .pt-auth-brand { display: none; }
  .pt-user-name, .pt-user-mail, .pt-theme { display: none; }
  .pt-topbar { gap: .5rem; }
  .pt-content { padding: 1rem; }
  .pt-topbar { padding: .6rem 1rem; }
  .pt-bar-row { grid-template-columns: 84px minmax(0, 1fr) 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .pt-body *, .pt-body *::before, .pt-body *::after { transition: none !important; animation: none !important; }
}
