/* Notarizr title portal. Uses the theme's --nz-* tokens (style.css). Mobile first. */

.tp {
	--tp-line: #E4DED6;
	--tp-field: #D6D0C6;
	--tp-radius: 16px;
	--tp-ok: #0F7A4A;
	--tp-ok-bg: #E6F6EE;
	--tp-warn: #8A5300;
	--tp-warn-bg: #FFF4E0;
	--tp-bad: #B42318;
	--tp-bad-bg: #FDECEA;
	background: var(--nz-sand);
	color: var(--nz-ink);
	font-family: var(--nz-font);
	padding-bottom: 64px;
	min-height: 60vh;
}
.tp *, .tp *::before, .tp *::after { box-sizing: border-box; }
.tp [hidden] { display: none !important; }
.tp h1, .tp h2, .tp h3 { font-family: var(--nz-font); color: var(--nz-ink); letter-spacing: -.01em; }
.tp a { color: var(--nz-blue); }
.tp-wrap { max-width: 1160px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.tp-i { flex: none; vertical-align: middle; }
.tp-sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); border: 0; white-space: nowrap; }
.tp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tp-muted { color: var(--nz-muted); }
.tp-eyebrow { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--nz-blue); }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.tp .tp-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 46px; padding: 11px 20px; border-radius: 10px; border: 1.5px solid transparent;
	font: 700 15px/1.2 var(--nz-font); text-decoration: none; cursor: pointer; white-space: nowrap;
	transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
}
.tp .tp-btn--gold { background: var(--nz-gold); color: var(--nz-ink); box-shadow: 0 6px 18px rgba(255, 145, 77, .26); }
.tp .tp-btn--gold:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(255, 145, 77, .36); color: var(--nz-ink); }
.tp .tp-btn--blue { background: var(--nz-blue); color: #fff; }
.tp .tp-btn--blue:hover { background: var(--nz-navy2); color: #fff; }
.tp .tp-btn--line { background: #fff; border-color: var(--nz-ink); color: var(--nz-ink); }
.tp .tp-btn--line:hover { background: var(--nz-ink); color: #fff; }
.tp .tp-btn--sm { min-height: 38px; padding: 8px 14px; font-size: 14px; }
.tp .tp-btn--lg { min-height: 54px; font-size: 17px; padding: 14px 26px; }
.tp .tp-btn--block { width: 100%; }
.tp .tp-btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.tp a:focus-visible, .tp button:focus-visible, .tp input:focus-visible, .tp select:focus-visible, .tp textarea:focus-visible, .tp label:focus-visible { outline: 2px solid var(--nz-blue); outline-offset: 2px; }

/* ── Cards, notes, forms ─────────────────────────────────────────────── */
.tp-card { background: #fff; border: 1px solid var(--tp-line); border-radius: var(--tp-radius); padding: 20px; box-shadow: 0 1px 2px rgba(15, 30, 61, .04); }
.tp-card h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 17px; font-weight: 800; }
.tp-card h2 .tp-i { color: var(--nz-blue); }

.tp-note { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 18px; padding: 12px 14px; border-radius: 12px; font-size: 15px; border: 1px solid transparent; }
.tp-note p { margin: 0; }
.tp-note p + p { margin-top: 4px; }
.tp-note .tp-i { margin-top: 2px; }
.tp-note--ok { background: var(--tp-ok-bg); color: var(--tp-ok); border-color: #BFE6D2; }
.tp-note--warn { background: var(--tp-warn-bg); color: var(--tp-warn); border-color: #F5D9A8; }
.tp-note--error { background: var(--tp-bad-bg); color: var(--tp-bad); border-color: #F6C4BE; }

.tp-form { display: grid; gap: 16px; }
.tp-field { display: grid; gap: 6px; min-width: 0; }
.tp-field label, .tp-label { font-size: 14px; font-weight: 700; color: var(--nz-ink); margin: 0; }
.tp-label { margin-top: 4px; }
.tp-opt { font-weight: 500; color: var(--nz-muted); font-size: 13px; }
.tp-hint { margin: 0; font-size: 13px; color: var(--nz-muted); }
.tp input[type=text], .tp input[type=email], .tp input[type=tel], .tp input[type=password], .tp input[type=date], .tp input[type=time], .tp select, .tp textarea {
	width: 100%; min-height: 48px; padding: 11px 14px; border: 1.5px solid var(--tp-field); border-radius: 10px;
	background: #fff; color: var(--nz-ink); font: 500 16px/1.4 var(--nz-font); box-shadow: none; margin: 0;
	-webkit-appearance: none; appearance: none;
}
.tp select { padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%230F1E3D' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.tp textarea { min-height: 104px; resize: vertical; }
.tp input:focus, .tp select:focus, .tp textarea:focus { border-color: var(--nz-blue); box-shadow: 0 0 0 3px rgba(29, 78, 216, .15); outline: none; }
.tp-grid2, .tp-grid3 { display: grid; gap: 16px; }
.tp-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.tp-row--between { justify-content: space-between; font-size: 14px; }
.tp-check, .tp-radio { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; font-weight: 500; cursor: pointer; line-height: 1.45; }
.tp-check input, .tp-radio input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--nz-blue); }
.tp-checks, .tp-radios { display: grid; gap: 10px; }
.tp-radio--card { padding: 14px; border: 1.5px solid var(--tp-field); border-radius: 12px; }
.tp-radio--card:has(input:checked) { border-color: var(--nz-blue); background: var(--nz-sky); }
.tp-radio--card span { display: grid; gap: 2px; }
.tp-radio--card small { color: var(--nz-muted); font-size: 13px; }

/* ── Signed-out screen ───────────────────────────────────────────────── */
.tp-auth { background: radial-gradient(1200px 500px at 0% 0%, #1E3A8A 0%, rgba(30, 58, 138, 0) 60%), linear-gradient(160deg, var(--nz-navy) 0%, var(--nz-night) 100%); color: #fff; padding: 36px 0 56px; margin-bottom: -64px; }
.tp-auth__in { display: grid; gap: 28px; align-items: start; }
.tp-auth__pitch h1 { color: #fff; font-size: 32px; line-height: 1.12; font-weight: 800; margin: 0 0 14px; }
.tp-auth__pitch .tp-eyebrow { color: #FFB257; }
.tp-auth__lead { color: #C9D5EE; font-size: 16px; margin: 0 0 22px; max-width: 520px; }
.tp-auth__points { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.tp-auth__points li { display: flex; gap: 12px; align-items: flex-start; color: #DCE5F7; font-size: 15px; }
.tp-auth__points strong { color: #fff; }
.tp-auth__points .tp-i { color: #FFB257; margin-top: 1px; }
.tp-auth__card { padding: 8px 20px 24px; color: var(--nz-ink); box-shadow: var(--nz-shadow); }
.tp-auth__card h2 { font-size: 22px; margin: 18px 0 6px; display: block; }
.tp-auth__card .tp-muted { margin: 0 0 14px; font-size: 14px; }
.tp-auth__card .tp-form { margin-top: 14px; }
/* Phones and small tablets: headline, then the sign-in card, then the selling points, so the form is on the first screen. */
@media (max-width: 899px) {
	.tp-auth__in { gap: 0; }
	.tp-auth__pitch { display: contents; }
	.tp-auth__pitch .tp-eyebrow { order: 1; }
	.tp-auth__pitch h1 { order: 2; font-size: 28px; margin-bottom: 18px; }
	.tp-auth__card { order: 3; }
	.tp-auth__lead { order: 4; margin: 28px 0 18px; }
	.tp-auth__points { order: 5; }
}

.tp-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-top: 12px; background: var(--nz-sand); border-radius: 12px; }
.tp-seg label { display: flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 10px; border-radius: 9px; font-size: 14px; font-weight: 700; color: var(--nz-muted); cursor: pointer; text-align: center; }
#tp-role-title:checked ~ .tp-seg .tp-seg__title, #tp-role-notary:checked ~ .tp-seg .tp-seg__notary { background: #fff; color: var(--nz-ink); box-shadow: 0 1px 3px rgba(15, 30, 61, .12); }
#tp-role-title:focus-visible ~ .tp-seg .tp-seg__title, #tp-role-notary:focus-visible ~ .tp-seg .tp-seg__notary { outline: 2px solid var(--nz-blue); outline-offset: 2px; }
#tp-role-title:checked ~ .tp-pane--notary, #tp-role-notary:checked ~ .tp-pane--title { display: none; }
#tp-mode-signin:checked ~ .tp-mode--signup, #tp-mode-signup:checked ~ .tp-mode--signin { display: none; }
.tp-switch { margin: 18px 0 0; text-align: center; font-size: 14px; color: var(--nz-muted); }
.tp-switch label { color: var(--nz-blue); font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* The agent portal's own login form, sitting in the notary tab. */
.tp-pane--notary .ap-wrap { max-width: none; margin: 0; padding: 0; }
.tp-pane--notary .ap-login-card { box-shadow: none; border: 0; padding: 0; margin: 0; max-width: none; background: transparent; }
.tp-pane--notary .ap-login-brand { display: none; }

/* ── Pending ─────────────────────────────────────────────────────────── */
.tp-pending { padding-top: 32px; max-width: 720px; }
.tp-pending__card { padding: 28px 22px; }
.tp-pending__card h1 { font-size: 26px; line-height: 1.2; margin: 0 0 10px; }
.tp-pending__card > p { color: var(--nz-body); }
.tp-pending__icon { display: inline-flex; width: 56px; height: 56px; align-items: center; justify-content: center; border-radius: 16px; background: var(--nz-sky); color: var(--nz-blue); margin-bottom: 16px; }
.tp-pending__icon--no { background: var(--tp-bad-bg); color: var(--tp-bad); }
.tp-link-quiet { display: inline-flex; gap: 6px; align-items: center; color: var(--nz-muted) !important; font-size: 14px; }

.tp-steps { list-style: none; margin: 20px 0; padding: 0; display: grid; gap: 14px; }
.tp-steps li { display: flex; gap: 12px; align-items: flex-start; }
.tp-steps li > span { display: inline-flex; width: 30px; height: 30px; flex: none; align-items: center; justify-content: center; border-radius: 50%; background: var(--nz-sand); border: 1.5px solid var(--tp-line); font-size: 13px; font-weight: 800; color: var(--nz-muted); }
.tp-steps li.is-done > span { background: var(--tp-ok); border-color: var(--tp-ok); color: #fff; }
.tp-steps li.is-now > span { background: var(--nz-gold); border-color: #FFB257; color: var(--nz-ink); }
.tp-steps strong { display: block; font-size: 15px; }
.tp-steps small { color: var(--nz-muted); font-size: 13px; }

.tp-dl { display: grid; gap: 12px; margin: 0; }
.tp-dl div { min-width: 0; }
.tp-dl dt { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--nz-muted); margin: 0 0 2px; }
.tp-dl dd { margin: 0; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.tp-pending .tp-dl { padding: 16px; background: var(--nz-sand); border-radius: 12px; margin: 0 0 18px; }

/* ── Portal bar & page heads ─────────────────────────────────────────── */
.tp-preview { background: #FFF4E0; color: var(--tp-warn); font-size: 14px; padding: 8px 16px; text-align: center; }
.tp-bar { background: #fff; border-bottom: 1px solid var(--tp-line); }
.tp-bar__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.tp-bar__who { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--nz-ink) !important; text-decoration: none; }
.tp-bar__mark { display: inline-flex; width: 38px; height: 38px; flex: none; align-items: center; justify-content: center; border-radius: 10px; background: var(--nz-navy); color: #fff; font-weight: 800; }
.tp-bar__text { display: grid; min-width: 0; line-height: 1.25; }
.tp-bar__text strong { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp-bar__text span { font-size: 12px; color: var(--nz-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tp-bar__nav { display: flex; align-items: center; gap: 6px; flex: none; }
.tp-bar__nav > a:not(.tp-btn) { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 10px; border-radius: 8px; font-size: 14px; font-weight: 700; color: var(--nz-ink); text-decoration: none; }
.tp-bar__nav > a:not(.tp-btn):hover, .tp-bar__nav > a[aria-current]:not(.tp-btn) { background: var(--nz-sand); }
.tp-bar__nav > a:first-child { display: none; }
.tp-bar__out span { display: none; }

.tp-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; padding: 24px 0 18px; }
.tp-head h1 { margin: 0; font-size: 28px; line-height: 1.15; font-weight: 800; }
.tp-head__meta { margin: 6px 0 0; color: var(--nz-body); font-size: 15px; }
.tp-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 10px; font-size: 14px; font-weight: 700; text-decoration: none; color: var(--nz-muted) !important; }
.tp-back:hover { color: var(--nz-ink) !important; }

/* ── Chips ───────────────────────────────────────────────────────────── */
.tp-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; line-height: 1.2; white-space: nowrap; background: var(--nz-sand); color: var(--nz-body); }
.tp-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.tp-chip--new { background: var(--nz-sky); color: var(--nz-blue); }
.tp-chip--assigned { background: #F1EBFF; color: #6532C8; }
.tp-chip--scheduled { background: var(--tp-warn-bg); color: var(--tp-warn); }
.tp-chip--signed { background: var(--tp-ok-bg); color: var(--tp-ok); }
.tp-chip--shipped { background: #E2F3F5; color: #0E6470; }
.tp-chip--completed { background: var(--tp-ok); color: #fff; }
.tp-chip--hold { background: #EEECE8; color: #57534E; }
.tp-chip--cancelled { background: var(--tp-bad-bg); color: var(--tp-bad); }
.tp-chip--pay-awaiting, .tp-chip--pay-invoiced { background: var(--tp-warn-bg); color: var(--tp-warn); }
.tp-chip--pay-paid { background: var(--tp-ok-bg); color: var(--tp-ok); }
.tp-chip--pay-invoice_later { background: var(--nz-sky); color: var(--nz-navy2); }
.tp-chip--pay-quote, .tp-chip--pay-refunded { background: #EEECE8; color: #57534E; }

/* ── Dashboard ───────────────────────────────────────────────────────── */
.tp-filter { display: flex; gap: 6px; overflow-x: auto; margin: 0 -16px 16px; padding: 2px 16px; scrollbar-width: none; }
.tp-filter::-webkit-scrollbar { display: none; }
.tp-filter a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--tp-line); background: #fff; color: var(--nz-ink); text-decoration: none; font-size: 14px; font-weight: 700; white-space: nowrap; }
.tp-filter a span { display: inline-flex; min-width: 22px; height: 22px; padding: 0 6px; align-items: center; justify-content: center; border-radius: 999px; background: var(--nz-sand); font-size: 12px; }
.tp-filter a[aria-current] { background: var(--nz-ink); border-color: var(--nz-ink); color: #fff; }
.tp-filter a[aria-current] span { background: rgba(255, 255, 255, .18); }
.tp-filter a.has-due span { background: #FFB257; color: var(--nz-ink); }

.tp-orders { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tp-order {
	position: relative; display: grid; gap: 10px 14px; align-items: center;
	grid-template-columns: 1fr auto; grid-template-areas: "who status" "when pay" "id id";
	padding: 16px; background: #fff; border: 1px solid var(--tp-line); border-radius: 14px;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.tp-order:hover { border-color: #C9D5EE; box-shadow: 0 8px 22px rgba(15, 30, 61, .07); }
.tp-order--cancelled { opacity: .7; }
.tp-order__id { grid-area: id; display: flex; gap: 10px; align-items: baseline; padding-top: 10px; border-top: 1px dashed var(--tp-line); font-size: 13px; }
.tp-order__link { font-weight: 800; color: var(--nz-ink) !important; text-decoration: none; }
.tp-order__link::after { content: ""; position: absolute; inset: 0; border-radius: 14px; }
.tp-order__id small, .tp-order__who small { color: var(--nz-muted); font-size: 13px; }
.tp-order__who { grid-area: who; display: grid; min-width: 0; }
.tp-order__who strong { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-order__when { grid-area: when; display: flex; gap: 8px; align-items: center; font-size: 14px; font-weight: 700; color: var(--nz-ink); }
.tp-order__when .tp-i { color: var(--nz-muted); }
.tp-order__when small { display: block; font-weight: 500; color: var(--nz-muted); font-size: 12px; }
.tp-order__status { grid-area: status; justify-self: end; }
.tp-order__pay { grid-area: pay; justify-self: end; position: relative; z-index: 1; }
.tp-none { color: var(--nz-muted); text-align: center; padding: 28px; }

.tp-empty { text-align: center; padding: 36px 22px; }
.tp-empty h2 { display: block; font-size: 22px; margin-bottom: 6px; }
.tp-empty > p { color: var(--nz-body); margin: 0; }
.tp-empty .tp-steps { text-align: left; max-width: 760px; margin: 22px auto 26px; }

/* ── New order ───────────────────────────────────────────────────────── */
.tp-new__form { gap: 16px; }
.tp-new__main { display: grid; gap: 16px; min-width: 0; }
.tp-sect { border: 1px solid var(--tp-line); margin: 0; padding: 20px; display: grid; gap: 16px; min-width: 0; }
.tp-sect legend { float: left; width: 100%; display: flex; align-items: center; gap: 10px; padding: 0; margin: 0; font-size: 17px; font-weight: 800; }
.tp-sect legend + * { clear: both; }
.tp-sect__n { display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center; border-radius: 8px; background: var(--nz-navy); color: #fff; font-size: 13px; }

.tp-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tp-choice > label { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 8px 12px; border: 1.5px solid var(--tp-field); border-radius: 10px; font-size: 14px; font-weight: 700; cursor: pointer; text-align: center; color: var(--nz-body); }
.tp-choice > input:checked + label { border-color: var(--nz-blue); background: var(--nz-sky); color: var(--nz-ink); }
.tp-choice > input:focus-visible + label { outline: 2px solid var(--nz-blue); outline-offset: 2px; }
.tp-choice__more { grid-column: 1 / -1; display: none; margin-top: 8px; }
#tp-loc-other:checked ~ .tp-choice__more { display: grid; }

.tp-drop { position: relative; border: 2px dashed #C9D5EE; border-radius: 14px; background: var(--nz-sky); transition: border-color .15s ease, background-color .15s ease; }
.tp-drop.is-over { border-color: var(--nz-blue); background: #E2ECFF; }
.tp-drop input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.tp-drop > label { display: grid; justify-items: center; gap: 4px; padding: 26px 16px; text-align: center; cursor: pointer; pointer-events: none; }
.tp-drop > label .tp-i { color: var(--nz-blue); margin-bottom: 4px; }
.tp-drop > label strong { font-size: 15px; }
.tp-drop > label small { font-size: 13px; color: var(--nz-muted); }
.tp-drop--sm > label { padding: 16px 12px; }
.tp-drop.has-files input[type=file] { height: 100%; }
.tp-queue { list-style: none; margin: 0; padding: 0 12px 12px; display: grid; gap: 6px; position: relative; z-index: 1; }
.tp-queue li { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 9px 10px 9px 12px; background: #fff; border: 1px solid var(--tp-line); border-radius: 10px; font-size: 14px; }
.tp-queue li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.tp-queue li small { color: var(--nz-muted); font-size: 12px; white-space: nowrap; }
.tp-queue li.is-bad { border-color: #F6C4BE; background: var(--tp-bad-bg); }
.tp-queue li.is-bad small { color: var(--tp-bad); }
.tp-queue li.is-done small { color: var(--tp-ok); font-weight: 700; }
.tp-queue button { width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: var(--nz-muted); cursor: pointer; font-size: 18px; line-height: 1; }
.tp-queue button:hover { background: var(--nz-sand); color: var(--nz-ink); }

.tp-summary { display: grid; gap: 12px; }
.tp-summary h2 { margin: 4px 0 0; }
.tp-summary__quote { margin: 0; padding: 12px 14px; border-radius: 10px; background: var(--nz-sand); font-size: 14px; color: var(--nz-body); }
.tp-lines { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.tp-lines li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--tp-line); }
.tp-lines li span:last-child { font-weight: 700; white-space: nowrap; }
.tp-lines__total { border-bottom: 0 !important; font-size: 18px; font-weight: 800; padding-top: 10px !important; }
.tp-summary .tp-muted { margin: 0; font-size: 14px; display: flex; gap: 8px; }
.tp-progress { display: grid; gap: 6px; }
.tp-progress__bar { height: 8px; border-radius: 999px; background: var(--nz-sand); overflow: hidden; }
.tp-progress__bar span { display: block; height: 100%; width: 0; background: var(--nz-blue); transition: width .2s ease; }
.tp-progress p { margin: 0; font-size: 13px; color: var(--nz-muted); }

/* ── Order detail ────────────────────────────────────────────────────── */
.tp-head--order { align-items: flex-start; }
.tp-head--order h1 { overflow-wrap: anywhere; }

.tp-track { list-style: none; margin: 0 0 18px; padding: 18px 20px; display: grid; gap: 0; background: #fff; border: 1px solid var(--tp-line); border-radius: var(--tp-radius); }
.tp-track li { position: relative; display: grid; grid-template-columns: 28px 1fr; column-gap: 12px; padding-bottom: 12px; }
.tp-track li:last-child { padding-bottom: 0; }
.tp-track li::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--tp-line); }
.tp-track li:last-child::before { display: none; }
.tp-track li.is-done::before { background: var(--tp-ok); }
.tp-track__dot { grid-row: span 2; display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center; border-radius: 50%; border: 2px solid var(--tp-line); background: #fff; color: #fff; position: relative; z-index: 1; }
.tp-track li.is-done .tp-track__dot { background: var(--tp-ok); border-color: var(--tp-ok); }
.tp-track li.is-now .tp-track__dot { border-color: #FFB257; background: var(--nz-gold); box-shadow: 0 0 0 5px rgba(255, 178, 87, .22); }
.tp-track.is-paused li.is-now .tp-track__dot { background: #EEECE8; border-color: #A8A29E; box-shadow: none; }
.tp-track strong { font-size: 15px; line-height: 28px; }
.tp-track li:not(.is-done):not(.is-now) strong { color: var(--nz-muted); font-weight: 600; }
.tp-track small { font-size: 12px; color: var(--nz-muted); }

.tp-detail__grid { display: grid; gap: 16px; }
.tp-detail__main, .tp-detail__side { display: grid; gap: 16px; align-content: start; min-width: 0; }
.tp-detail__side { order: -1; } /* Phones: payment and documents first. */
.tp-dl--2 { grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.tp-dl__wide { grid-column: 1 / -1; }
.tp-paycard { display: grid; gap: 12px; }
.tp-paycard h2 { margin-bottom: 2px; }
.tp-paycard__state { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tp-paycard__state small { color: var(--nz-muted); font-size: 13px; }
.tp-filelist { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; }
.tp-filelist a { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--tp-line); text-decoration: none; color: var(--nz-ink) !important; font-size: 14px; font-weight: 600; }
.tp-filelist a:hover { border-color: #C9D5EE; background: var(--nz-sky); }
.tp-filelist a .tp-i { color: var(--nz-blue); margin-top: 1px; }
.tp-filelist span { display: grid; min-width: 0; overflow-wrap: anywhere; }
.tp-filelist small { color: var(--nz-muted); font-weight: 500; font-size: 12px; }
.tp-upload { display: grid; gap: 10px; }

/* ── Larger screens ──────────────────────────────────────────────────── */
@media (min-width: 640px) {
	.tp-grid2 { grid-template-columns: 1fr 1fr; }
	.tp-grid2--wide { grid-template-columns: 2fr 1fr; }
	.tp-grid3 { grid-template-columns: 2fr 1.2fr 1fr; }
	.tp-bar__nav > a:first-child { display: inline-flex; }
	.tp-bar__out span { display: inline; }
	.tp-card { padding: 24px; }
	.tp-sect { padding: 24px; }
	.tp-steps--row { grid-template-columns: repeat(3, 1fr); }
	.tp-pending .tp-dl { grid-template-columns: repeat(3, 1fr); }
	.tp-filter { margin-left: 0; margin-right: 0; padding: 2px 0; }
}

@media (min-width: 768px) {
	.tp-track { grid-template-columns: repeat(6, 1fr); padding: 22px 24px; }
	.tp-track li { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 0 4px; row-gap: 2px; }
	.tp-track li::before { left: calc(50% + 14px); right: calc(-50% + 14px); top: 13px; bottom: auto; width: auto; height: 2px; }
	.tp-track__dot { grid-row: auto; margin-bottom: 8px; }
	.tp-track strong { line-height: 1.3; font-size: 14px; }
}

@media (min-width: 900px) {
	.tp-wrap { padding-left: 24px; padding-right: 24px; }
	.tp-auth { padding: 64px 0 96px; }
	.tp-auth__in { grid-template-columns: 1.05fr 1fr; gap: 56px; }
	.tp-auth__pitch { padding-top: 28px; position: sticky; top: 24px; }
	.tp-auth__pitch h1 { font-size: 46px; }
	.tp-auth__lead { font-size: 18px; }
	.tp-auth__card { padding: 10px 32px 32px; }
	.tp-head { padding: 34px 0 22px; }
	.tp-head h1 { font-size: 34px; }

	.tp-order {
		grid-template-columns: 130px minmax(0, 1.6fr) minmax(0, 1fr) 150px 150px;
		grid-template-areas: "id who when status pay";
		padding: 14px 18px;
	}
	.tp-order__id { display: grid; gap: 0; padding-top: 0; border-top: 0; font-size: 14px; }
	.tp-order__status { justify-self: start; }

	.tp-new__form { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; gap: 20px; }
	.tp-new__side { position: sticky; top: 20px; }
	.tp-detail__grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 20px; }
	.tp-detail__side { order: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.tp * { transition: none !important; }
}
