/* Client portal. Reuses admin.css shell/components (.ad-shell/.ad-side/.ad-nav/
   .ad-panel/.ad-field/.btn/.badge); this file adds the portal-specific bits:
   split-screen auth, dashboard hero, status stepper. */

/* ---- sidebar polish (distinguish portal from admin) ---- */
.ad-side .ad-brand em { color: var(--sage); }
.pt-side-foot {
  margin-top: auto; padding: 14px 12px 4px; border-top: 1px solid rgba(255,255,255,0.08);
  color: #96A3BC; font-size: 0.76rem; line-height: 1.4;
}
.pt-side-foot strong { color: #fff; display: block; font-size: 0.86rem; font-weight: 600; }

/* Use the full width — no narrow centred column leaving big side gaps. */
.ad-content { max-width: none; }

/* ---- Classic, plain portal blocks (simple boxes, headers, tables) ---- */
.pt-box { background: #fff; border: 1px solid var(--border); border-radius: 4px; margin-bottom: 16px; }
.pt-box > h2 {
  margin: 0; padding: 10px 14px; font-size: 0.95rem; font-weight: 700; color: var(--ink);
  background: #EBF1FC; border-bottom: 1px solid var(--border); border-radius: 4px 4px 0 0;
}
.pt-box__body { padding: 14px; }
.pt-box__body > p { margin: 0 0 10px; color: var(--muted); font-size: 0.9rem; }
.pt-box .ad-table-wrap { border: 0; border-radius: 0; box-shadow: none; }

/* ---- Solid colour tiles (flat colours, no gradients) ---- */
.pt-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 14px; margin-bottom: 18px; }
.pt-tile {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 20px; border-radius: 6px; color: #fff;
  box-shadow: 0 1px 3px rgba(11, 17, 29,0.16);
  transition: transform .15s, box-shadow .15s, filter .15s;
}
a.pt-tile:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(11, 17, 29,0.22); filter: brightness(1.06); }
.pt-tile__ic { flex: none; display: grid; place-items: center; }
.pt-tile__ic .ic { width: 42px; height: 42px; stroke-width: 1.7; }
.pt-tile b { display: block; font-size: 1.75rem; font-weight: 700; line-height: 1.1; }
.pt-tile span { display: block; font-size: 0.85rem; opacity: 0.9; margin-top: 2px; }
.pt-tile strong { display: block; font-size: 1.2rem; font-weight: 700; line-height: 1.2; }
/* Flat colour variants — the brand palette is a green ladder (deep navy-green
   through primary green to sage), so the tiles stay in it instead of using the
   old mustard/slate/blue that belonged to no part of the site. */
.pt-tile--action { background: #214B9E; }
.pt-tile--slate  { background: #214B9E; }   /* primary green */
.pt-tile--blue   { background: #1F4798; }   /* mid green */
.pt-tile--gold   { background: #142E62; }   /* deepest — carries the money figure */
.pt-tile--refer  { background: #5C8CEB; color: var(--ink); }   /* sage, dark text */
.pt-tile--refer span { opacity: 0.75; }

/* plain link list */
.pt-links { list-style: none; margin: 0; padding: 0; }
.pt-links li { border-bottom: 1px dotted var(--border); }
.pt-links li:last-child { border-bottom: 0; }
.pt-links a { display: block; padding: 9px 2px; font-size: 0.9rem; font-weight: 600; color: var(--green); }
.pt-links a:hover { text-decoration: underline; }
.pt-links small { display: block; font-weight: 400; color: var(--muted-2); font-size: 0.8rem; margin-top: 1px; }

/* organized shortcut cards */
.pt-shortcuts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.pt-shortcut {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border: 1px solid var(--border); border-radius: 6px;
  background: #fff; color: var(--ink);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.pt-shortcut:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(11, 17, 29,0.12); border-color: var(--green); }
.pt-shortcut__ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; background: rgba(31,122,77,0.10); color: var(--green); }
.pt-shortcut__ic .ic { width: 20px; height: 20px; }
.pt-shortcut b { display: block; font-size: 0.92rem; font-weight: 600; color: var(--green); }
.pt-shortcut small { display: block; color: var(--muted-2); font-size: 0.78rem; margin-top: 1px; }

/* page heading */
.pt-title { margin: 0 0 4px; font-size: 1.3rem; color: var(--ink); }
.pt-sub { margin: 0 0 18px; color: var(--muted); font-size: 0.9rem; }

/* ---- dashboard header (clean, no heavy hero block) ---- */
.pt-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding-bottom: 20px; margin-bottom: 22px; border-bottom: 1px solid var(--border);
}
.pt-head h1 { margin: 0 0 4px; font-size: 1.5rem; letter-spacing: -0.02em; color: var(--ink); }
.pt-head p { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* current-request status strip */
.pt-current__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.pt-current__eyebrow { display: block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green); margin-bottom: 5px; }
.pt-current h2 { margin: 0; font-size: 1.12rem; }

/* dashboard two-column: main list + quick actions */
/* minmax(0,…) lets the table column shrink (it scrolls) instead of squeezing
   the sidebar; the actions column keeps a usable minimum width. */
.pt-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(255px, 1fr); gap: 20px; align-items: start; }
.pt-panel-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
@media (max-width: 900px) { .pt-grid { grid-template-columns: 1fr; } }

/* quick action list */

.pt-back { display: inline-block; margin-bottom: 16px; color: var(--muted); font-size: 0.88rem; font-weight: 500; }
.pt-back:hover { color: var(--green); }

.pt-note { background: var(--green-050); border-left: 3px solid var(--green); padding: 12px 14px; border-radius: 8px; }

/* Tax organizer: numbered form list + how-to steps */
.pt-steps-list { list-style: none; counter-reset: org; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.pt-steps-list li {
  counter-increment: org; position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 16px 18px 16px 56px; border: 1px solid var(--border); border-radius: 12px; background: var(--white);
}
.pt-steps-list li::before {
  content: counter(org); position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; border-radius: 50%; background: var(--green-050); color: var(--green);
  display: grid; place-items: center; font-weight: 700; font-size: 0.82rem;
}
.pt-steps-list strong { display: block; font-size: 0.98rem; }
.pt-steps-list p { margin: 3px 0 0; font-size: 0.87rem; color: var(--muted); }
.pt-filemeta { display: block; margin-top: 4px; font-size: 0.78rem; color: var(--muted-2); }
.pt-howto { margin: 0; padding-left: 20px; color: var(--muted); font-size: 0.92rem; line-height: 1.9; }
.pt-howto a { color: var(--green); font-weight: 600; }

/* Client dashboard deadline banner */
/* Deadline banner — deep teal-blue so it reads as information, distinct from
   the site's greens and from the amber used for warnings. */
.pt-deadline {
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
  background: #E5EDFC;
  border: 1px solid #B9CDF6;
  border-left: 4px solid #214B9E;
  border-radius: 12px;
  padding: 15px 18px; margin-bottom: 20px;
}
.pt-deadline .ic {
  width: 34px; height: 34px; flex: none; padding: 7px;
  border-radius: 9px; background: #214B9E; color: #fff;
}
.pt-deadline strong { display: block; font-size: 0.92rem; color: #142E62; margin-bottom: 3px; }
.pt-deadline span { font-size: 0.9rem; color: #314C82; line-height: 1.55; }

/* request actions + closed state */
.pt-app-actions {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: #F3F6FD; border: 1px solid #CDDCF9; border-radius: 12px; padding: 14px 18px;
}
.pt-app-actions strong { display: block; font-size: 0.92rem; }
.pt-app-actions p { margin: 2px 0 0; color: var(--muted); font-size: 0.84rem; }
.pt-closed { display: flex; align-items: center; gap: 9px; padding: 13px 16px; border-radius: 12px; font-weight: 600; font-size: 0.9rem; }
.pt-closed .ic { width: 18px; height: 18px; }
.pt-closed--done { background: var(--green-050); color: #0a7a3e; border: 1px solid #bfe8cf; }
.pt-closed--cancel { background: #EBEEF4; color: var(--muted); border: 1px solid var(--border); }

/* chat composer feels like a message box */
.tk-reply { margin-top: 16px; }
.tk-reply textarea { min-height: 74px; }


/* Footer sits at the bottom of the viewport on short pages. A growing spacer
   does it rather than `margin-top:auto` on the footer — auto collapses to 0
   once the page is tall, which would lose the 34px gap above the divider.
   padding-bottom moves off .ad-content and onto the footer so it can reach
   the true bottom edge instead of floating 70px above it. */
.ad-main > .ad-content { flex: 1; display: flex; flex-direction: column; padding-bottom: 0; }
.pt-fill { flex: 1 1 auto; min-height: 0; }


.pt-content-foot {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
  margin-top: 34px; padding: 18px 0 22px; border-top: 1px solid rgba(11, 17, 29,0.14);
  color: var(--muted-2); font-size: 0.84rem;
}
.pt-content-foot a { color: var(--muted); font-weight: 500; }
.pt-content-foot a:hover { color: var(--green); }

/* ---- status stepper ---- */
.pt-steps { display: flex; list-style: none; padding: 0; margin: 4px 0 0; gap: 6px; flex-wrap: wrap; }
.pt-steps li { flex: 1; min-width: 120px; display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--muted-2); font-weight: 500; }
.pt-steps__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--border); flex: none; }
.pt-steps li.is-done { color: var(--ink); }
.pt-steps li.is-done .pt-steps__dot { background: var(--green); }
.pt-steps li.is-current { color: var(--green); font-weight: 700; }
.pt-steps li.is-current .pt-steps__dot { box-shadow: 0 0 0 3px var(--green-050); }

/* ---- Split-screen auth (log in / create account / password reset) ----
   Matches the public site: Chasetaxllc navy + brand blue, Plus Jakarta Sans
   headlines and text. Tokens are re-pointed on these pages only,
   so the admin and the signed-in portal keep their own look. */
.pt-auth-page {
  --navy: #081936; --navy-800: #040d1f; --navy-700: #123271;
  --gold: #81A6EF; --gold-300: #B0C7F5; --gold-050: #EDF2FD; --gold-ink: #1F55C0;
  --green: #0a5e9f; --green-050: #e8f2fa;   /* Chasetaxllc brand blue */
  --ink: #0B1833; --muted: #565F70; --muted-2: #8790A3; --border: #E3EAF7;
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  background: #F6F9FE;
}
.pt-auth { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 14px; min-height: 100vh; padding: 14px; }

/* Left: navy brand panel */
.pt-auth__aside {
  position: sticky; top: 14px; align-self: start; min-height: calc(100vh - 28px);
  overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  padding: 38px 46px 30px; border-radius: 26px; color: #C3CAD9;
  background:
    radial-gradient(45% 35% at 8% 100%, rgba(30, 96, 227,0.20), transparent 70%),
    radial-gradient(120% 80% at 92% 0%, var(--navy-700), var(--navy) 50%, var(--navy-800));
}
/* faint ledger grid, and a city skyline along the foot */
.pt-auth__aside::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: radial-gradient(ellipse at 25% 20%, #000 15%, transparent 70%);
          mask-image: radial-gradient(ellipse at 25% 20%, #000 15%, transparent 70%);
}
.pt-auth__aside::after {
  content: ""; position: absolute; z-index: -1; right: 0; bottom: 0; width: 78%; aspect-ratio: 640 / 200;
  background: rgba(255,255,255,0.05);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 200'%3E%3Cpath d='M0 120h34V200H0zM38 90h26V200H38zM68 140h40V200H68zM112 70h30V200H112zM146 110h44V200H146zM200 100h60V200H200zM212 70h36V200H212zM220 45h20V200H220zM228 12h4V200H228zM264 125h36V200H264zM304 95h24V200H304zM332 135h50V200H332zM386 80h32V200H386zM399 52h4V200H399zM422 115h40V200H422zM466 60h28V200H466zM498 130h46V200H498zM548 100h30V200H548zM582 145h58V200H582zM466 60l14-22 14 22z'/%3E%3C/svg%3E") no-repeat right bottom / contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 200'%3E%3Cpath d='M0 120h34V200H0zM38 90h26V200H38zM68 140h40V200H68zM112 70h30V200H112zM146 110h44V200H146zM200 100h60V200H200zM212 70h36V200H212zM220 45h20V200H220zM228 12h4V200H228zM264 125h36V200H264zM304 95h24V200H304zM332 135h50V200H332zM386 80h32V200H386zM399 52h4V200H399zM422 115h40V200H422zM466 60h28V200H466zM498 130h46V200H498zM548 100h30V200H548zM582 145h58V200H582zM466 60l14-22 14 22z'/%3E%3C/svg%3E") no-repeat right bottom / contain;
}

.pt-auth__brand { display: inline-flex; align-items: center; gap: 12px; align-self: flex-start; }
.pt-auth__mark { display: grid; place-items: center; width: 54px; height: 54px; padding: 6px; background: #fff; border-radius: 15px; box-shadow: 0 12px 28px -12px rgba(0,0,0,0.5); transition: transform 0.5s var(--ease); }
.pt-auth__mark img { width: 100%; height: 100%; object-fit: contain; }
.pt-auth__brand:hover .pt-auth__mark { transform: rotate(-7deg) scale(1.05); }
.pt-auth__wm strong { display: block; font-family: var(--display); font-size: 1.18rem; font-weight: 800; letter-spacing: -0.01em; color: #fff; line-height: 1.1; }
.pt-auth__wm small { display: block; margin-top: 3px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-300); }

.pt-auth__pitch h2 {
  margin: 0 0 16px; max-width: 14ch;
  font-family: var(--display); font-weight: 700; font-size: clamp(2.1rem, 3.3vw, 3rem);
  line-height: 1.04; letter-spacing: -0.035em; color: #fff;
}
.pt-auth__pitch h2 span { background: linear-gradient(100deg, var(--gold-300), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pt-auth__pitch > p { max-width: 44ch; margin: 0 0 22px; font-size: 1.02rem; line-height: 1.65; color: #C3CAD9; }
.pt-auth__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pt-auth__chips li {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px;
  border-radius: 999px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.13);
  font-size: 0.82rem; font-weight: 600; color: #E5E9F0; transition: border-color 0.25s, background 0.25s;
}
.pt-auth__chips li:hover { border-color: rgba(30, 96, 227,0.7); background: rgba(30, 96, 227,0.1); }
.pt-auth__chips .ic { width: 15px; height: 15px; color: var(--gold); }

/* A request moving along — what the portal shows once you're in. */
.pt-preview {
  width: 100%; max-width: 440px; padding: 18px 18px 16px;
  background: #fff; border-radius: 18px; color: var(--ink);
  box-shadow: 0 30px 60px -24px rgba(0,0,0,0.55);
  rotate: -2deg; transition: rotate 0.6s var(--ease), translate 0.6s var(--ease);
  animation: ptFloat 6s ease-in-out infinite;
}
.pt-preview:hover { rotate: 0deg; }
@keyframes ptFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
.pt-preview__head { display: flex; align-items: center; gap: 12px; }
.pt-preview__ic { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--navy); color: var(--gold); }
.pt-preview__ic .ic { width: 19px; height: 19px; }
.pt-preview__head strong { display: block; font-size: 0.92rem; color: var(--navy); }
.pt-preview__head small { display: block; font-size: 0.76rem; color: var(--muted); }
.pt-preview__live {
  margin-left: auto; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px;
  border-radius: 999px; background: var(--gold-050); color: var(--gold-ink); font-size: 0.72rem; font-weight: 700; white-space: nowrap;
}
.pt-preview__live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); animation: ptPing 1.8s ease-out infinite; }
@keyframes ptPing { 0% { box-shadow: 0 0 0 0 rgba(30, 96, 227,0.6); } 80%, 100% { box-shadow: 0 0 0 6px rgba(30, 96, 227,0); } }
.pt-preview__bar { height: 6px; margin: 16px 0 14px; border-radius: 6px; background: #E7EAF1; overflow: hidden; }
.pt-preview__bar span { display: block; width: 62%; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--gold-300), var(--gold)); animation: ptFill 1.6s 0.4s var(--ease) both; }
@keyframes ptFill { from { width: 0; } }
.pt-preview__steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; padding: 0; list-style: none; }
.pt-preview__steps li { display: flex; align-items: center; gap: 7px; font-size: 0.74rem; font-weight: 600; color: var(--muted-2); }
.pt-preview__steps .ic { flex: none; width: 24px; height: 24px; padding: 5px; border-radius: 50%; background: #E7EAF1; color: var(--muted-2); }
.pt-preview__steps .is-done { color: var(--ink); }
.pt-preview__steps .is-done .ic { background: #E4F5EC; color: #1F9D61; }
.pt-preview__steps .is-now { color: var(--navy); }
.pt-preview__steps .is-now .ic { background: var(--gold-050); color: var(--gold-ink); }

.pt-auth__foot { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 0.8rem; }
.pt-auth__foot-ic { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.08); border: 1px solid rgba(30, 96, 227,0.45); color: var(--gold); }
.pt-auth__foot-ic .ic { width: 17px; height: 17px; }
.pt-auth__foot strong { display: block; color: #fff; font-size: 0.86rem; }
.pt-auth__foot small { display: block; color: #7081A3; font-size: 0.76rem; }

/* Right: the form card */
.pt-auth__main {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  padding: 64px 24px 32px;
  background: radial-gradient(50% 40% at 85% 0%, rgba(30, 96, 227,0.12), transparent 70%);
  border-radius: 26px;
}
.pt-auth__back { position: absolute; top: 22px; left: 26px; display: inline-flex; align-items: center; gap: 8px; font-size: 0.86rem; font-weight: 600; color: var(--muted); transition: color 0.2s; }
.pt-auth__back .ic { width: 16px; height: 16px; transform: scaleX(-1); transition: transform 0.3s var(--ease); }
.pt-auth__back:hover { color: var(--navy); }
.pt-auth__back:hover .ic { transform: scaleX(-1) translateX(4px); }
.pt-auth__card {
  position: relative; width: 100%; max-width: 460px; text-align: left;
  padding: 32px 34px 30px; background: #fff;
  border: 1px solid var(--border); border-radius: 24px;
  box-shadow: 0 34px 70px -34px rgba(5, 8, 15,0.4);
}
/* gold rule along the card's top edge */
.pt-auth__card::before { content: ""; position: absolute; top: -1px; left: 34px; right: 34px; height: 3px; border-radius: 0 0 3px 3px; background: linear-gradient(90deg, var(--gold-300), var(--gold)); }
.pt-auth__logo { display: none; width: 58px; height: 58px; object-fit: contain; margin: 0 0 18px; mix-blend-mode: multiply; filter: brightness(1.02); }

/* Log in | Create account switcher */
.pt-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 0 0 26px; padding: 5px; border-radius: 14px; background: #F3F4F7; }
.pt-tabs a { padding: 10px; border-radius: 10px; text-align: center; font-size: 0.9rem; font-weight: 600; color: var(--muted); transition: color 0.2s, background 0.25s, box-shadow 0.25s; }
.pt-tabs a:hover { color: var(--navy); }
.pt-tabs a.is-on { background: #fff; color: var(--navy); box-shadow: 0 6px 14px -6px rgba(5, 8, 15,0.25); }

.pt-auth__card h1 { margin: 0 0 6px; font-family: var(--display); font-size: 2rem; font-weight: 700; letter-spacing: -0.035em; line-height: 1.1; color: var(--navy); }
.pt-auth__card .sub { margin: 0 0 24px; font-size: 0.95rem; color: var(--muted); }
.pt-auth__card .ad-field { margin-bottom: 16px; text-align: left; }
.pt-auth__card label { display: flex; align-items: baseline; gap: 4px; font-size: 0.86rem; font-weight: 600; color: var(--ink); }
.pt-req { color: #C0392B; }

/* Inputs: cool fill, navy border + gold ring on focus */
.pt-auth .ad-field input, .pt-auth .ad-field select {
  height: 52px; border-radius: 12px; border: 1.5px solid var(--border); background: #F2F6FD;
  font-family: inherit; font-size: 0.95rem; color: var(--ink);
  transition: border-color 0.18s, box-shadow 0.18s, background-color 0.18s;
}
.pt-auth .ad-field input::placeholder { color: #9EAAC1; }
.pt-auth .ad-field input:hover, .pt-auth .ad-field select:hover { border-color: #C8CFDC; }
.pt-auth .ad-field input:focus, .pt-auth .ad-field select:focus {
  background: #fff; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(30, 96, 227,0.22); outline: none;
}
.pt-input { position: relative; display: flex; align-items: center; }
.pt-input__ic { position: absolute; left: 15px; display: grid; place-items: center; color: var(--muted-2); pointer-events: none; transition: color 0.18s; }
.pt-input__ic .ic { width: 18px; height: 18px; }
.pt-input:focus-within .pt-input__ic { color: var(--gold-ink); }
.pt-input input { width: 100%; padding-left: 44px; padding-right: 14px; }
.pt-input:has(.pt-input__eye) input { padding-right: 46px; }
.pt-input__eye { position: absolute; right: 9px; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 9px; background: none; color: var(--muted-2); cursor: pointer; }
.pt-input__eye .ic { width: 18px; height: 18px; }
.pt-input__eye:hover, .pt-input__eye.is-on { color: var(--navy); background: var(--green-050); }

.pt-auth__forgot { margin-left: auto; font-size: 0.8rem; font-weight: 600; color: var(--gold-ink); }
.pt-auth__forgot:hover { text-decoration: underline; }

/* password strength */
.pt-meter { display: flex; align-items: center; gap: 10px; margin: -4px 0 20px; }
.pt-meter__bars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; width: 150px; }
.pt-meter__bars i { height: 5px; border-radius: 3px; background: #DBE0E9; transition: background 0.3s; }
.pt-meter__label { font-size: 0.78rem; font-weight: 600; color: var(--muted-2); }
.pt-meter[data-score="0"] i:nth-child(-n+1), .pt-meter[data-score="1"] i:nth-child(-n+1) { background: #D9534F; }
.pt-meter[data-score="2"] i:nth-child(-n+2) { background: #3973E7; }
.pt-meter[data-score="3"] i:nth-child(-n+3) { background: var(--gold); }
.pt-meter[data-score="4"] i { background: #1F9D61; }
.pt-meter[data-score="0"] .pt-meter__label, .pt-meter[data-score="1"] .pt-meter__label { color: #C0392B; }
.pt-meter[data-score="4"] .pt-meter__label { color: #1F9D61; }

/* primary button: navy, gold arrow, a light sweep on hover */
.pt-auth__btn, .pt-auth__card .btn--primary {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; height: 54px; border: 0; border-radius: 14px; cursor: pointer;
  background: linear-gradient(100deg, var(--navy-800), var(--navy) 50%, var(--navy-700)); color: #fff;
  font-family: inherit; font-size: 1rem; font-weight: 700;
  box-shadow: 0 14px 28px -14px rgba(5, 8, 15,0.8);
  transition: box-shadow 0.25s, transform 0.25s var(--ease);
}
.pt-auth__btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 35%, rgba(92, 140, 235,0.4) 50%, transparent 65%); transform: translateX(-120%); transition: transform 0.8s var(--ease); }
.pt-auth__btn:hover::before { transform: translateX(120%); }
.pt-auth__btn .ic { width: 18px; height: 18px; color: var(--gold); transition: transform 0.3s var(--ease); }
.pt-auth__btn:hover, .pt-auth__card .btn--primary:hover { transform: translateY(-2px); box-shadow: 0 20px 34px -14px rgba(5, 8, 15,0.85); }
.pt-auth__btn:hover .ic { transform: translateX(4px); }
.pt-auth__btn:focus-visible, .pt-auth__card .btn--primary:focus-visible { outline: 3px solid rgba(30, 96, 227,0.6); outline-offset: 2px; }

.pt-auth__or { display: flex; align-items: center; gap: 14px; margin: 22px 0; color: var(--muted-2); font-size: 0.84rem; }
.pt-auth__or::before, .pt-auth__or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.pt-auth__alt {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; height: 52px; border-radius: 14px;
  border: 1.5px solid var(--border); background: #fff; color: var(--navy);
  font-weight: 700; font-size: 0.95rem;
  transition: border-color 0.2s, background-color 0.2s;
}
.pt-auth__alt .ic { width: 18px; height: 18px; transform: scaleX(-1); } /* only used for "Back to log in" */
.pt-auth__alt:hover { border-color: var(--navy); background: var(--green-050); }
.pt-auth__switch { margin: 20px 0 0; text-align: center; font-size: 0.9rem; color: var(--muted); }
.pt-auth__switch a { font-weight: 700; color: var(--navy); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.pt-auth__safe { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 0.82rem; color: var(--muted-2); }
.pt-auth__safe .ic { width: 15px; height: 15px; color: var(--gold-ink); }
.pt-auth .ad-flash { border-radius: 12px; }

@media (max-width: 1180px) {
  .pt-auth__aside { padding: 32px 34px 26px; }
}
@media (max-width: 980px) {
  .pt-auth { grid-template-columns: 1fr; padding: 0; }
  .pt-auth__aside { display: none; }
  .pt-auth__main { min-height: 100vh; padding: 64px 16px 28px; border-radius: 0; }
  .pt-auth__back { top: 20px; left: 18px; }
  .pt-auth__logo { display: block; }
}
@media (max-width: 520px) {
  .pt-auth__card { padding: 26px 20px 24px; border-radius: 20px; }
  .pt-auth__card::before { left: 20px; right: 20px; }
  .pt-auth .ad-field-row { grid-template-columns: 1fr; gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .pt-preview, .pt-preview__live::before, .pt-preview__bar span { animation: none; }
}

/* ---- Formal invoice document (screen + print/PDF) ---- */
.inv-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; max-width: 820px; margin: 0 0 16px; }
.inv-sheet { max-width: 820px; }
.inv-doc {
  background: #fff; border: 1px solid var(--border); border-radius: 6px;
  padding: 40px 44px; color: var(--ink); font-size: 0.9rem; line-height: 1.5;
}
.inv-doc__head { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; border-bottom: 2px solid var(--green); padding-bottom: 20px; margin-bottom: 22px; }
.inv-doc__logo { height: 54px; width: auto; margin-bottom: 8px; }
.inv-doc__firmname { font-family: "Bricolage Grotesque", Georgia, serif; font-size: 1.35rem; font-weight: 800; color: var(--green); letter-spacing: 0.01em; }
.inv-doc__firmmeta { color: var(--muted-2); font-size: 0.82rem; margin-top: 6px; }
.inv-doc__firmmeta div { margin-top: 1px; }
.inv-doc__title { text-align: right; min-width: 240px; }
.inv-doc__word { font-size: 1.9rem; font-weight: 700; letter-spacing: 0.12em; color: var(--ink); margin-bottom: 8px; }
.inv-doc__meta { margin-left: auto; border-collapse: collapse; font-size: 0.84rem; }
.inv-doc__meta th { text-align: right; color: var(--muted-2); font-weight: 500; padding: 2px 10px 2px 0; }
.inv-doc__meta td { text-align: right; font-weight: 600; padding: 2px 0; }
.inv-doc__billto { margin-bottom: 22px; }
.inv-doc__label { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.72rem; color: var(--muted-2); font-weight: 600; margin-bottom: 4px; }
.inv-doc__client { font-size: 1.05rem; font-weight: 700; }
.inv-doc__lines { width: 100%; border-collapse: collapse; margin-bottom: 4px; }
.inv-doc__lines thead th { text-align: left; background: var(--green); color: #fff; padding: 10px 12px; font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase; }
.inv-doc__lines tbody td { padding: 14px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.inv-doc__sub { color: var(--muted-2); font-size: 0.82rem; margin-top: 4px; }
.inv-doc__lines tfoot th, .inv-doc__lines tfoot td { padding: 8px 12px; }
.inv-doc__lines .ta-r { text-align: right; }
.inv-doc__total th, .inv-doc__total td { font-size: 1.15rem; font-weight: 700; color: var(--green); border-top: 2px solid var(--green); }
.inv-doc__paid th, .inv-doc__paid td { color: #1f7a4d; font-weight: 600; }
.inv-doc__foot { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.85rem; }
.inv-doc__thanks { color: var(--muted-2); font-size: 0.8rem; margin-top: 10px; }

/* Standalone print page + browser print/Save-as-PDF */
body.inv-print { background: #fff; padding: 24px; }
body.inv-print .inv-doc { border: 0; padding: 20px 8px; max-width: 800px; margin: 0 auto; }
@media print {
  body.inv-print { padding: 0; }
  .inv-doc { border: 0; padding: 0; }
  .inv-doc__head { break-inside: avoid; }
  .badge { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .inv-doc__lines thead th, .inv-doc__total th, .inv-doc__total td { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

@media (max-width: 560px) {
  .inv-doc { padding: 24px 18px; }
  .inv-doc__title { text-align: left; min-width: 0; }
  .inv-doc__meta, .inv-doc__meta th, .inv-doc__meta td { text-align: left; margin-left: 0; }
}

/* ---- Financial-year selector (sidebar) ---- */
.pt-fy { padding: 4px 14px 12px; }
.pt-fy label { display: block; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.66rem; color: #7081A3; font-weight: 600; margin-bottom: 5px; }
.pt-fy select {
  width: 100%; padding: 7px 10px; border-radius: 5px; cursor: pointer;
  background: rgba(255,255,255,0.06); color: #fff;
  border: 1px solid rgba(255,255,255,0.14); font: inherit; font-size: 0.85rem;
}
.pt-fy select option { color: #101828; }

/* ---- Journey progress bar (Registered → Completed) ---- */
.pt-progress { margin: 0 0 18px; }
.pt-progress__bar { position: relative; height: 10px; background: #E2E6EF; border-radius: 6px; margin: 6px 6px 12px; }
.pt-progress__fill { position: absolute; inset: 0 auto 0 0; height: 100%; background: #2162E4; border-radius: 6px; transition: width .5s ease; min-width: 10px; }
.pt-progress__dot {
  position: absolute; top: 50%; width: 14px; height: 14px; border-radius: 50%;
  background: #fff; border: 2px solid #C7CEDC; transform: translate(-50%, -50%); z-index: 1;
}
.pt-progress__dot.is-done { background: #2350AA; border-color: #2350AA; }
.pt-progress__dot.is-current { background: #fff; border-color: #2350AA; box-shadow: 0 0 0 3px rgba(33, 75, 158,0.25); }
.pt-progress__labels { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.pt-progress__labels span {
  font-size: 0.72rem; color: var(--muted-2); text-align: center; line-height: 1.25;
}
.pt-progress__labels span:first-child { text-align: left; }
.pt-progress__labels span:last-child { text-align: right; }
.pt-progress__labels span.is-done { color: var(--muted); }
.pt-progress__labels span.is-current { color: #1F4798; font-weight: 700; }
@media (max-width: 560px) { .pt-progress__labels span { font-size: 0.62rem; } }

/* logos in the admin/portal sidebars now stand alone */
.ad-brand img { max-width: 100%; height: auto; }
/* ---- Portal topbar: search, bell, who ---- */
.pt-top { gap: 14px; }
.pt-search {
  flex: 1; max-width: 430px; position: relative;
  display: flex; align-items: center;
}
.pt-search .ic {
  position: absolute; left: 13px; width: 17px; height: 17px;
  color: var(--muted-2); pointer-events: none;
}
.pt-search input {
  width: 100%; height: 40px; padding: 0 14px 0 38px;
  border: 1px solid var(--border); border-radius: 10px;
  background: #F5F7FA; font: inherit; font-size: 0.88rem; color: var(--ink);
}
.pt-search input:focus {
  outline: none; background: #fff;
  border-color: var(--green); box-shadow: 0 0 0 3px rgba(31,122,77,0.10);
}
.pt-bell {
  position: relative; flex: none; margin-left: auto;
  display: grid; place-items: center; width: 40px; height: 40px;
  border: 1px solid var(--border); border-radius: 10px;
  background: #fff; color: var(--muted);
}
.pt-bell:hover { color: var(--green); border-color: var(--green); }
.pt-bell .ic { width: 19px; height: 19px; }
.pt-bell b {
  position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px;
  padding: 0 5px; border-radius: 9px; background: #d9534f; color: #fff;
  font-size: 0.66rem; font-weight: 700; line-height: 18px; text-align: center;
}
.pt-who { display: flex; align-items: center; gap: 10px; flex: none; }
.pt-who__av {
  display: grid; place-items: center; width: 38px; height: 38px; flex: none;
  border-radius: 50%; background: var(--green); color: #fff;
  font-weight: 700; font-size: 0.95rem;
}
.pt-who__txt strong { display: block; font-size: 0.86rem; color: var(--ink); line-height: 1.25; }
.pt-who__txt small { display: block; font-size: 0.75rem; color: var(--muted-2); }

/* ---- Dashboard: welcome bar, stat cards, two-column body ---- */
.pt-welcome {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; flex-wrap: wrap; margin-bottom: 20px;
}
.pt-welcome h1 { font-size: 1.6rem; margin: 0 0 4px; color: var(--ink); }
.pt-welcome p { margin: 0; color: var(--muted-2); font-size: 0.92rem; }
.pt-cta {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  padding: 12px 20px; border-radius: 10px;
  background: var(--green); color: #fff; font-weight: 600; font-size: 0.9rem;
  box-shadow: 0 6px 16px rgba(31,122,77,0.22);
}
.pt-cta:hover { background: #1F4798; color: #fff; }
.pt-cta .ic { width: 17px; height: 17px; }

/* Deadline banner button */
.pt-deadline__txt { flex: 1; min-width: 200px; }
.pt-deadline__btn {
  display: inline-flex; align-items: center; gap: 7px; flex: none;
  padding: 9px 14px; border-radius: 9px;
  background: #fff; border: 1px solid #B9CDF6;
  color: #142E62; font-size: 0.82rem; font-weight: 600; white-space: nowrap;
}
.pt-deadline__btn:hover { background: #214B9E; border-color: #214B9E; color: #fff; }
.pt-deadline__btn .ic { width: 15px; height: 15px; padding: 0; background: none; border-radius: 0; color: inherit; }

/* Stat cards */
.pt-cards {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 14px; margin-bottom: 20px;
}
.pt-card {
  position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  padding: 18px 18px 30px;
  transition: box-shadow .2s ease, transform .2s ease;
}
.pt-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(11, 17, 29,0.09); }
.pt-card__ic {
  display: grid; place-items: center; width: 42px; height: 42px;
  border-radius: 12px; margin-bottom: 14px;
}
.pt-card__ic .ic { width: 20px; height: 20px; }
.pt-card__ic--green  { background: rgba(33, 75, 158,0.12);  color: #214B9E; }
.pt-card__ic--amber  { background: rgba(33, 97, 228,0.14); color: #2452AE; }
.pt-card__ic--blue   { background: rgba(40, 72, 135,0.12);  color: #284887; }
.pt-card b { display: block; font-size: 1.9rem; font-weight: 700; line-height: 1; color: var(--ink); }
.pt-card__label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--ink); margin-top: 6px; }
.pt-card small { display: block; font-size: 0.76rem; color: var(--muted-2); margin-top: 2px; }
.pt-card__spark {
  position: absolute; left: 0; right: 0; bottom: 0;
  width: 100%; height: 26px; pointer-events: none;
}

/* Two columns: table left, amount due right.
   minmax(0,…) on the main column stops the table forcing it wider and
   crushing the sidebar. */
.pt-cols {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(270px, 1fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 26px;
}
.pt-cols--solo { grid-template-columns: 1fr; }
.pt-cols .ad-table-wrap { border: 0; border-radius: 0; box-shadow: none; }

.pt-panel {
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  overflow: hidden;
}
.pt-panel__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--border);
}
.pt-panel__head h2 {
  display: flex; align-items: center; gap: 9px;
  margin: 0; font-size: 1rem; color: var(--ink);
}
.pt-panel__head h2 .ic { width: 18px; height: 18px; color: var(--green); }
.pt-panel__head a {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.82rem; font-weight: 600; color: var(--green);
}
.pt-panel__head a .ic { width: 14px; height: 14px; }
.pt-panel .ad-empty { padding: 26px 18px; }

/* Amount-due card */
.pt-due {
  position: relative;
  background: linear-gradient(160deg, #1F4798 0%, #142E62 100%);
  border-radius: 14px; padding: 20px; color: #fff;
}
.pt-due__head {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: #8DAEF1;
}
.pt-due__head .ic { width: 16px; height: 16px; }
.pt-due__ic {
  position: absolute; top: 16px; right: 16px;
  display: grid; place-items: center; width: 38px; height: 38px;
  border-radius: 11px; background: rgba(255,255,255,0.12); color: #C0D2F7;
}
.pt-due__ic .ic { width: 19px; height: 19px; }
.pt-due__amt {
  font-family: var(--font-head, inherit);
  font-size: 2.1rem; font-weight: 700; color: #fff;
  margin: 16px 0 2px; line-height: 1;
}
.pt-due__note { margin: 0 0 18px; font-size: 0.84rem; color: #8DAEF1; }
.pt-due__btns { display: flex; flex-direction: column; gap: 9px; }
.pt-due__pay, .pt-due__view {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 11px 14px; border-radius: 10px;
  font-size: 0.88rem; font-weight: 600;
}
.pt-due__pay { background: #A7C1F4; color: #142E62; }
.pt-due__pay:hover { background: #8AACF1; color: #142E62; }
.pt-due__pay .ic { width: 15px; height: 15px; }
.pt-due__view { border: 1px solid rgba(255,255,255,0.35); color: #fff; }
.pt-due__view:hover { background: rgba(255,255,255,0.10); color: #fff; }

/* Service cell in the applications table */
.pt-svc { display: flex; align-items: center; gap: 11px; }
.pt-svc__ic {
  display: grid; place-items: center; width: 34px; height: 34px; flex: none;
  border-radius: 10px; background: rgba(31,122,77,0.10); color: var(--green);
}
.pt-svc__ic .ic { width: 17px; height: 17px; }
.pt-svc strong { display: block; font-size: 0.88rem; }
.pt-svc small { display: block; font-size: 0.75rem; color: var(--muted-2); margin-top: 1px; }

@media (max-width: 1000px) {
  .pt-cols { grid-template-columns: 1fr; }
  .pt-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .pt-search { display: none; }
  .pt-who__txt { display: none; }
}
@media (max-width: 460px) {
  .pt-cards { grid-template-columns: 1fr; }
  .pt-cta { width: 100%; justify-content: center; }
}

/* ============================================================
   ON-GREEN OVERRIDES
   Kept last in the file on purpose: several of these elements
   set their own colour further up, and equal specificity means
   whichever rule comes last wins.
   ============================================================ */

/* A soft warm wash, and only on the dashboard (body.pt-dash — set in
   portal-head.php). Every other portal page keeps the default --bg.
   Light enough that the normal dark text still reads, so nothing else needs
   recolouring. */
body.pt-dash { background: #E1EAFB; }

/* The one thing that does collide: the deadline banner's own pale blue sat on
   grey before. Nudge its border so it still separates from the wash. */
body.pt-dash .pt-deadline { border-color: #95B4F2; }

/* Bare form controls have no background of their own. */
.ad-filters select,
.ad-filters input[type="search"] { background: #fff; }

/* Inline notes that live outside a panel (search results, the invoice payment
   note). Plain muted text — they sit on the neutral background now. */
.pt-onbg   { color: var(--muted); }
.pt-onbg a { color: var(--green); font-weight: 600; }

/* ---- Dashboard-only floating "Refer & Earn" shortcut ----
   Lives in index.php, so it never appears on the other portal pages. */
.pt-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 20px 12px 14px;
  border-radius: 999px;
  background: linear-gradient(160deg, #214B9E 0%, #1F4798 100%);
  color: #fff;
  box-shadow: 0 10px 26px rgba(11, 17, 29,0.34);
  transition: transform .18s ease, box-shadow .18s ease;
}
.pt-fab:hover {
  color: #fff; transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(11, 17, 29,0.42);
}
.pt-fab__ic {
  display: grid; place-items: center; width: 38px; height: 38px; flex: none;
  border-radius: 50%; background: rgba(255,255,255,0.16);
}
.pt-fab__ic .ic { width: 20px; height: 20px; }
.pt-fab__txt strong { display: block; font-size: 0.92rem; font-weight: 700; line-height: 1.2; }
.pt-fab__txt small  { display: block; font-size: 0.76rem; color: #AAC3F5; margin-top: 1px; }
/* gentle attention nudge shortly after the page settles, once only */
@keyframes ptFabIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.pt-fab { animation: ptFabIn .45s var(--ease, ease) .5s both; }
@media (prefers-reduced-motion: reduce) { .pt-fab { animation: none; } }
/* Collapse to a circle on phones so it doesn't cover the content. */
@media (max-width: 560px) {
  .pt-fab { right: 14px; bottom: 14px; padding: 0; width: 54px; height: 54px; justify-content: center; gap: 0; }
  .pt-fab__txt { display: none; }
  .pt-fab__ic { width: 30px; height: 30px; background: none; }
}

/* ---- Client upload form (type + file + comments) ---- */
.pt-upload {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px; align-items: start;
}
.pt-upload .ad-field { margin-bottom: 14px; }
.pt-upload__full { grid-column: 1 / -1; }
.pt-upload__actions { grid-column: 1 / -1; }
.pt-upload textarea { min-height: 88px; resize: vertical; }
.pt-req { color: #c0392b; font-weight: 700; }

/* Country code + national number as one control. */
.pt-phone { display: flex; gap: 8px; align-items: stretch; }
.pt-phone__cc { flex: 0 0 11.5rem; min-width: 0; }
.pt-phone input { flex: 1 1 auto; min-width: 0; }
@media (max-width: 420px) {
  .pt-phone { flex-wrap: wrap; }
  .pt-phone__cc { flex: 1 1 100%; }
}
/* client's own note under an uploaded file */
.pt-doc-note {
  margin-top: 6px; padding: 7px 10px;
  background: var(--bg); border-left: 3px solid var(--border);
  border-radius: 0 7px 7px 0;
  font-size: 0.82rem; color: var(--muted); line-height: 1.5;
}
@media (max-width: 640px) {
  .pt-upload { grid-template-columns: 1fr; }
}

/* "Some records are hidden by the year filter" banner */
.pt-fynote {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-bottom: 16px; padding: 12px 16px;
  background: #E4ECFC; border: 1px solid #BBCFF7; border-left: 4px solid #2161E4;
  border-radius: 10px; color: #1F4798; font-size: 0.88rem;
}
.pt-fynote strong { color: #1F4798; }
.pt-fynote a { color: #1F4798; font-weight: 700; text-decoration: underline; }

/* ---------- personal details form ---------- */
.pd-req { color: var(--red, #D93636); font-weight: 700; }
.pd-opt { color: var(--muted-2); font-weight: 500; font-size: 0.78rem; margin-left: 4px; }
.pd-secure { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; color: #0a7a3e; font-weight: 600; font-size: 0.82rem; }
.pd-secure .ic { width: 14px; height: 14px; }
.pd-sec { border: 1px solid var(--border); border-radius: 12px; padding: 18px 18px 4px; margin: 0 0 16px; min-width: 0; }
.pd-sec legend { padding: 0 8px; font-weight: 700; font-size: 0.95rem; color: var(--ink, #0F1E3A); }
.pd-dep { border-top: 1px dashed var(--border); padding-top: 14px; margin-top: 6px; }
.pd-dep h3 { font-size: 0.9rem; margin: 0 0 10px; }
.pd-actions { display: flex; justify-content: flex-end; padding-top: 4px; }

/* ---------- dashboard: tax return progress ---------- */
.pt-return { margin-bottom: 18px; }
.pt-return__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.pt-return__note { margin: 4px 0 0; color: var(--muted); font-size: 0.92rem; }
.pt-track { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; list-style: none; margin: 18px 0 0; padding: 0; counter-reset: st; }
.pt-track li { position: relative; padding-top: 30px; font-size: 0.8rem; font-weight: 600; color: var(--muted-2); text-align: center; }
.pt-track li::before { counter-increment: st; content: counter(st); position: absolute; top: 0; left: 50%; translate: -50% 0; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #EEF2F8; color: var(--muted-2); font-size: 0.75rem; z-index: 1; }
.pt-track li::after { content: ""; position: absolute; top: 11px; left: -50%; width: 100%; height: 2px; background: #E2E9F2; }
.pt-track li:first-child::after { display: none; }
.pt-track li.is-done, .pt-track li.is-now { color: var(--ink, #0F1E3A); }
.pt-track li.is-done::before { content: "✓"; background: #22C55E; color: #fff; }
.pt-track li.is-done::after, .pt-track li.is-now::after { background: #22C55E; }
.pt-track li.is-now::before { background: var(--green); color: #fff; box-shadow: 0 0 0 4px rgba(59,111,224,.18); }
@media (max-width: 560px) { .pt-track li { font-size: 0.7rem; } }

/* ---------- dashboard: tax return status ---------- */
.pt-return__eyebrow { display: block; font-size: 0.78rem; font-weight: 700; color: var(--muted-2); text-transform: uppercase; letter-spacing: .05em; }
.pt-return__status { margin: 4px 0 0; font-size: 1.45rem; letter-spacing: -.02em; }
.pt-return__acts { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.pt-return__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
.pt-return__cols h3 { margin: 0 0 10px; font-size: 0.9rem; }
.pt-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pt-steps li { padding: 8px 12px; border-radius: 9px; background: var(--bg); font-size: 0.86rem; color: var(--muted); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pt-steps li.is-now { background: var(--green-050, #EEF3FD); color: var(--ink, #0F1E3A); font-weight: 700; box-shadow: inset 3px 0 0 var(--green); }
.pt-history { list-style: none; margin: 0; padding: 0 0 0 16px; border-left: 2px solid var(--border); display: grid; gap: 12px; }
.pt-history li { position: relative; display: grid; gap: 1px; font-size: 0.86rem; }
.pt-history li::before { content: ""; position: absolute; left: -22px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 3px #fff; }
.pt-history li:first-child::before { background: var(--green); box-shadow: 0 0 0 3px #fff, 0 0 0 6px rgba(59,111,224,.2); }
.pt-history time { font-size: 0.78rem; color: var(--muted-2); }
.pt-return__help { margin: 18px 0 0; font-size: 0.84rem; color: var(--muted); }
.pt-return__help a { color: var(--green); font-weight: 700; }
@media (max-width: 760px) { .pt-return__cols { grid-template-columns: 1fr; } .pt-return__acts { align-items: flex-start; } }
.ad-panel h2.pt-return__status { font-size: 1.45rem; }

/* ---------- Messages → Email us ---------- */
.mail-panel { max-width: 560px; text-align: center; padding: 36px 28px; }
.mail-panel__ic { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 16px; background: var(--green-050, #EEF3FD); color: var(--green); margin-bottom: 12px; }
.mail-panel__ic .ic { width: 28px; height: 28px; }
.mail-panel h2 { margin: 0 0 6px; font-size: 1.3rem; }
.mail-panel p { color: var(--muted); margin: 0 auto; max-width: 42ch; }
.mail-panel__to { margin-top: 12px !important; font-weight: 700; color: var(--ink, #0F1E3A) !important; font-size: 1.02rem; }
.mail-panel__btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 20px 0 16px; }
.mail-panel .ad-hint a { color: var(--green); font-weight: 600; }

/* ---------- new documents from the team ---------- */
.ad-nav a.pt-nav-new { background: rgba(239,68,68,.16); color: #FECACA; }
.ad-nav a.pt-nav-new .ic { color: #FCA5A5; }
.pt-nav-new__badge { margin-left: auto; background: #EF4444 !important; color: #fff !important; animation: ptPulse 2s ease-in-out infinite; }
@keyframes ptPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(239,68,68,.6); } 50% { box-shadow: 0 0 0 6px rgba(239,68,68,0); } }
.pt-newdocs { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; padding: 14px 18px; border-radius: 14px; background: #FEF2F2; border: 1px solid #FECACA; border-left: 5px solid #EF4444; text-decoration: none; color: inherit; }
.pt-newdocs:hover { background: #FEE2E2; }
.pt-newdocs__ic { position: relative; display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 12px; background: #fff; color: #DC2626; }
.pt-newdocs__ic .ic { width: 20px; height: 20px; }
.pt-newdocs__ic b { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: #EF4444; color: #fff; font-size: .72rem; line-height: 20px; text-align: center; }
.pt-newdocs__txt { flex: 1; display: grid; gap: 2px; }
.pt-newdocs__txt strong { color: #991B1B; }
.pt-newdocs__txt small { color: #7F1D1D; opacity: .8; }
@media (prefers-reduced-motion: reduce) { .pt-nav-new__badge { animation: none; } }
