/* Client portal. Tokens follow v2.css: porcelain ground, ink text, cobalt only for accents. */
:root {
  --ground: #E8E7E4; --paper: #F4F4F1; --white: #FFFFFF; --ink: #1D242A; --muted: #5E666D;
  --line: rgba(29,36,42,.14); --control: #7A848D; --accent: #2346D8; --accent-hover: #1834AE;
  --ok: #2E7D52; --ok-bg: #E7F2EC; --warn: #8A5300; --warn-bg: #FFF4E0; --error: #B42318; --error-bg: #FBEFEE;
  --sans: "Inter", "Source Sans 3", "PingFang SC", "Noto Sans SC", "Hiragino Sans GB", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --pad: 48px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html[lang="en"] .zh { display: none !important; }
html[lang="zh-CN"] .en { display: none !important; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; letter-spacing: 0; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p, ol, ul, dl, dd, figure { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pt-ic { width: 18px; height: 18px; flex: none; }
.pt-wrap { width: 100%; max-width: calc(1200px + var(--pad) * 2); margin: 0 auto; padding: 0 var(--pad); }
.pt-mono { font-family: var(--mono); font-size: .875em; }
.pt-muted { color: var(--muted); }
.pt-small { font-size: 13px; }
.pt-sub { display: block; font-size: 12px; color: var(--muted); }

/* Top bar */
.pt-top { background: var(--white); border-bottom: 1px solid var(--line); }
.pt-top-in { height: 64px; display: flex; align-items: center; gap: 16px; }
.pt-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.pt-brand img { width: 24px; height: 24px; }
.pt-brand b { font-size: 16px; font-weight: 600; }
.pt-section { padding-left: 16px; border-left: 1px solid var(--line); font-size: 14px; color: var(--muted); white-space: nowrap; }
.pt-top-r { margin-left: auto; display: flex; align-items: center; gap: 16px; min-width: 0; }
.lang { display: flex; gap: 2px; }
.lang button { border: 0; background: none; font: inherit; font-size: 14px; color: var(--muted); padding: 6px; cursor: pointer; min-height: 36px; }
.lang button[aria-pressed="true"] { color: var(--ink); font-weight: 600; }
.lang span { color: var(--line); align-self: center; }
.pt-who { font-size: 14px; max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-icon-btn { width: 40px; height: 40px; flex: none; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 4px; background: none; color: var(--ink); cursor: pointer; padding: 0; }
.pt-icon-btn:hover { border-color: var(--line); background: var(--paper); }
.pt-icon-btn svg { width: 18px; height: 18px; }

.pt-main { flex: 1; padding-bottom: 72px; }
.pt-main:focus { outline: none; }
.pt-foot { padding: 20px 0 28px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }
.pt-foot-in { display: flex; gap: 8px 24px; flex-wrap: wrap; justify-content: space-between; }

/* Buttons and form controls */
.pt-btn, .pt-btn-line { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 4px; font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease; }
.pt-btn { border: 0; background: var(--ink); color: #fff; }
.pt-btn:hover { background: var(--accent); }
.pt-btn[disabled], .pt-btn-line[disabled] { opacity: .6; cursor: progress; }
.pt-btn-line { border: 1px solid var(--control); background: var(--white); color: var(--ink); }
.pt-btn-line:hover { border-color: var(--accent); color: var(--accent); }
.pt-btn-line[aria-expanded="true"] { border-color: var(--ink); }
.pt-btn-sm { min-height: 36px; padding: 0 12px; font-size: 14px; }
.pt-btn-wide { width: 100%; margin-top: 8px; }
.pt-btn svg, .pt-btn-line svg { width: 16px; height: 16px; }
.pt-link { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.pt-link:hover { color: var(--accent); text-decoration-color: currentColor; }
input[type="text"], input[type="password"], textarea { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--control); border-radius: 4px; background: var(--white); color: var(--ink); font: inherit; font-size: 16px; }
textarea { resize: vertical; }
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
.pt-field { display: flex; flex-direction: column; gap: 6px; margin-top: 18px; }
.pt-field label { font-size: 14px; font-weight: 500; }
.pt-pw { position: relative; }
.pt-pw input { padding-right: 48px; }
.pt-eye { position: absolute; right: 2px; top: 2px; width: 40px; height: 40px; border: 0; background: none; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; border-radius: 4px; }
.pt-eye:hover { color: var(--ink); }
.pt-hint { margin-top: 6px; font-size: 13px; color: var(--muted); }
.pt-err { margin-top: 16px; display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-left: 3px solid var(--error); background: var(--error-bg); color: var(--error); font-size: 14px; }
.pt-err svg { margin-top: 3px; width: 16px; height: 16px; }
.pt-note { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; font-size: 14px; color: var(--muted); }
.pt-note svg { margin-top: 3px; width: 16px; height: 16px; }

/* Sign-in */
.pt-auth { padding: 88px var(--pad) 40px; display: flex; justify-content: center; }
.pt-auth-box { width: min(420px, 100%); }
.pt-auth h1 { font-size: 32px; line-height: 1.25; font-weight: 600; }
.pt-form { margin-top: 12px; display: flex; flex-direction: column; }
.pt-form .pt-btn { margin-top: 24px; }

/* Page heads */
.pt-head { background: var(--white); border-bottom: 1px solid var(--line); }
.pt-head-in { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; padding-top: 40px; padding-bottom: 32px; align-items: start; }
.pt-head h1, .pt-title h1 { font-size: 32px; line-height: 1.25; font-weight: 600; }
.pt-head h1 { margin-bottom: 4px; }
.pt-title { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; padding: 8px 0 24px; }
.pt-title h1 { width: 100%; font-size: 28px; }
.pt-h2 { font-size: 20px; font-weight: 600; line-height: 1.35; }
.pt-h3 { font-size: 16px; font-weight: 600; }
.pt-label { font-size: 12px; font-weight: 500; color: var(--muted); margin-bottom: 6px; }
.pt-live { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.pt-title .pt-live { margin: 0 0 0 auto; }
.pt-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.pt-live.is-off i { background: var(--warn); }
.pt-crumb { display: flex; flex-wrap: wrap; gap: 6px; padding: 24px 0 8px; font-size: 14px; color: var(--muted); }
.pt-crumb a { color: var(--muted); }
.pt-crumb a:hover { color: var(--accent); }
.pt-crumb [aria-current] { color: var(--ink); font-family: var(--mono); font-size: 13px; }
.pt-band { padding-top: 40px; }
.pt-band > .pt-h2, .pt-band-head { margin-bottom: 14px; }
.pt-band-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.pt-empty { padding: 32px 0; }

.pt-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 4px; font-size: 12px; line-height: 1.6; white-space: nowrap; background: var(--ground); color: var(--ink); }
.pt-chip svg { width: 14px; height: 14px; }
.pt-chip.is-kind { background: var(--white); border: 1px solid var(--line); }
.pt-chip.is-active { background: #E8EDFB; color: #1834AE; }
.pt-chip.is-done { background: var(--ok-bg); color: var(--ok); }
.pt-chip.is-cancelled { color: var(--muted); }
.pt-chip.is-warn { background: var(--warn-bg); color: var(--warn); white-space: normal; }

.pt-seg { display: inline-flex; border: 1px solid var(--control); border-radius: 4px; overflow: hidden; background: var(--white); }
.pt-seg button { border: 0; background: none; font: inherit; font-size: 14px; padding: 0 14px; min-height: 36px; cursor: pointer; color: var(--ink); }
.pt-seg button + button { border-left: 1px solid var(--line); }
.pt-seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* Lifecycle */
.pt-stages { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; }
.pt-stages li { display: flex; flex-direction: column; gap: 6px; padding-top: 10px; border-top: 3px solid var(--ground); min-width: 0; }
.pt-stages li.is-done { border-top-color: var(--ink); }
.pt-stages li.is-now { border-top-color: var(--accent); }
.pt-stage-n { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.pt-stage-t { font-size: 13px; line-height: 1.3; color: var(--muted); overflow-wrap: anywhere; }
.pt-stages li.is-done .pt-stage-t { color: var(--ink); }
.pt-stages li.is-now .pt-stage-t { color: var(--ink); font-weight: 600; }
.pt-stages.is-compact li { padding-top: 6px; gap: 2px; }
.pt-stages.is-compact .pt-stage-n { display: none; }
.pt-stages.is-compact .pt-stage-t { font-size: 12px; }

/* Project list */
.pt-projects { list-style: none; padding: 0; margin-top: 32px; display: flex; flex-direction: column; gap: 16px; }
.pt-project { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 20px 24px 22px; }
.pt-project.is-archived { background: transparent; }
.pt-project-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 14px; }
.pt-project-head h3 { font-size: 20px; font-weight: 600; }
.pt-project-head h3 a { text-decoration: none; }
.pt-project-head h3 a:hover { color: var(--accent); }
.pt-project-head .pt-small { margin-left: auto; }
.pt-project-body { margin-top: 18px; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 24px; align-items: end; }
.pt-current ul, .pt-archives ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.pt-current li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 15px; }
.pt-current li svg { color: var(--warn); width: 15px; height: 15px; }
.pt-archives li { display: flex; flex-direction: column; font-size: 14px; }
.pt-archives li .pt-muted { font-size: 13px; }
.pt-open { align-self: end; }

/* Owner card */
.pt-owner { border: 1px solid var(--line); border-radius: 6px; padding: 16px 18px; background: var(--paper); }
.pt-owner h2 { margin-bottom: 10px; color: var(--muted); font-size: 13px; font-weight: 500; }
.pt-owner-name { display: flex; align-items: center; gap: 8px; font-size: 17px; }
.pt-owner-act { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.pt-qr { margin-top: 12px; display: flex; gap: 12px; align-items: center; font-size: 13px; }
.pt-qr img { width: 112px; height: 112px; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.pt-ph { margin-top: 4px; display: inline-block; font-size: 12px; color: #7A4810; background: #F6EBDD; padding: 1px 6px; border-radius: 3px; }

/* Tables */
.pt-table-wrap { background: var(--white); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.pt-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pt-table th { text-align: left; font-weight: 500; font-size: 12px; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--paper); white-space: nowrap; }
.pt-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.pt-table tr:last-child td { border-bottom: 0; }
.pt-table .pt-sub { margin-top: 2px; }
.pt-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pt-time { white-space: nowrap; color: var(--muted); }

.pt-conv { list-style: none; padding: 0; background: var(--white); border: 1px solid var(--line); border-radius: 6px; }
.pt-conv li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 14px; }
.pt-conv li:first-child { border-top: 0; }
.pt-conv-p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Project / order detail */
.pt-grid { margin-top: 8px; display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: start; }
.pt-grid.is-single { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.pt-aside { display: flex; flex-direction: column; gap: 20px; padding-top: 40px; }
.pt-order-grid .pt-aside { padding-top: 24px; position: sticky; top: 16px; }
.pt-products { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.pt-products li { display: flex; justify-content: space-between; gap: 20px; padding: 16px 18px; background: var(--white); border: 1px solid var(--line); border-radius: 6px; }
.pt-product-t { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pt-dl { margin-top: 10px; display: grid; grid-template-columns: repeat(3, auto); gap: 4px 24px; font-size: 14px; }
.pt-dl dt { font-size: 12px; color: var(--muted); }
.pt-dl.is-inline { grid-template-columns: repeat(2, auto); justify-content: start; margin-top: 12px; }
.pt-seal { flex: none; width: 160px; }
.pt-seal img { width: 160px; height: 120px; object-fit: cover; border: 1px solid var(--line); border-radius: 4px; }
.pt-seal figcaption { margin-top: 4px; font-size: 12px; color: var(--muted); }
.pt-access-box { border-top: 1px solid var(--line); padding-top: 16px; }
.pt-access-box .pt-small { margin: 4px 0 8px; }
.pt-access { list-style: none; padding: 0; font-size: 13px; }
.pt-access li { display: flex; flex-direction: column; padding: 6px 0; border-top: 1px solid var(--line); }
.pt-access time { font-size: 12px; color: var(--muted); }

/* 24-hour clock */
.pt-clock { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: var(--white); border: 1px solid var(--line); border-radius: 6px; }
.pt-clock > div { padding: 16px 20px; min-width: 0; }
.pt-clock > div + div { border-left: 1px solid var(--line); }
.pt-clock dt { font-size: 12px; color: var(--muted); }
.pt-clock dd { margin-top: 4px; font-size: 20px; font-weight: 600; line-height: 1.3; font-variant-numeric: tabular-nums; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.pt-clock.is-delayed > div:nth-child(2) dd > span { color: var(--warn); }
.pt-was { font-size: 13px; font-weight: 400; color: var(--muted); }
.pt-countdown.is-over { color: var(--error); }
.pt-delay { margin-top: 12px; display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-left: 3px solid var(--warn); background: var(--warn-bg); color: #4A3000; font-size: 14px; }
.pt-delay svg { color: var(--warn); margin-top: 2px; }

/* Steps */
.pt-steps { list-style: none; padding: 24px 0 0; }
.pt-step { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 14px; position: relative; padding-bottom: 22px; }
.pt-step::before { content: ""; position: absolute; left: 11px; top: 26px; bottom: 0; width: 2px; background: var(--ground); }
.pt-step:last-child::before { display: none; }
.pt-step.is-done::before { background: var(--ink); }
.pt-step-mark { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--control); background: var(--paper); display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.pt-step-mark svg { width: 14px; height: 14px; }
.pt-step.is-done .pt-step-mark { background: var(--ink); border-color: var(--ink); }
.pt-step.is-now .pt-step-mark { border-color: var(--accent); box-shadow: inset 0 0 0 4px var(--paper); background: var(--accent); }
.pt-step-main { min-width: 0; display: flex; flex-direction: column; gap: 8px; padding-top: 1px; }
.pt-step-h { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; font-size: 16px; }
.pt-step.is-next .pt-step-h b { color: var(--muted); font-weight: 500; }
.pt-step.is-now .pt-step-h b { color: var(--ink); }
.pt-step-h time { font-size: 13px; color: var(--muted); }
.pt-machine { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.pt-machine b { font-size: 15px; }
.pt-progress { height: 8px; background: var(--ground); border-radius: 4px; overflow: hidden; max-width: 520px; }
.pt-progress i { display: block; height: 100%; background: var(--ink); }
.pt-step.is-now .pt-progress i { background: var(--accent); }
.pt-print-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-variant-numeric: tabular-nums; }
.pt-photos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; max-width: 640px; }
.pt-photos.is-one { grid-template-columns: minmax(0, 240px); }
.pt-photo { position: relative; }
.pt-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--line); border-radius: 4px; background: var(--white); }
.pt-photo figcaption { position: absolute; left: 6px; top: 6px; }
.pt-illus { display: inline-block; font-size: 11px; padding: 1px 6px; border-radius: 3px; background: var(--ink); color: #fff; }
.pt-video { width: 100%; max-width: 480px; border-radius: 4px; background: var(--ink); }
.pt-feedback { display: flex; flex-direction: column; gap: 8px; max-width: 560px; padding: 14px 16px; background: var(--white); border: 1px solid var(--line); border-radius: 6px; }
.pt-fb-ask { font-weight: 600; }
.pt-fb-act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.pt-feedback-done { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 15px; }
.pt-feedback-done svg { color: var(--ok); }
.pt-fb-note { width: 100%; font-size: 14px; color: var(--muted); white-space: pre-wrap; }

/* Replay */
.pt-replay { background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 16px; }
.pt-replay-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.pt-replay-stage { aspect-ratio: 8 / 5; background: var(--ground); border-radius: 4px; overflow: hidden; }
.pt-replay-img { width: 100%; height: 100%; object-fit: contain; }
.pt-replay-label { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--muted); min-height: 21px; }
.pt-replay-ctl { margin-top: 6px; display: flex; align-items: center; gap: 4px; }
.pt-play { background: var(--ink); color: #fff; }
.pt-play:hover { background: var(--accent); border-color: var(--accent); }
.pt-range { flex: 1; min-width: 0; accent-color: var(--ink); height: 32px; }
.pt-replay-note { margin-top: 10px; display: flex; gap: 6px; align-items: flex-start; font-size: 12px; color: var(--muted); }
.pt-replay-note svg { width: 14px; height: 14px; margin-top: 2px; }
.pt-replay-empty { aspect-ratio: 8 / 5; display: flex; flex-direction: column; gap: 10px; align-items: center; justify-content: center; text-align: center; padding: 24px; background: var(--paper); border: 1px dashed var(--control); border-radius: 4px; color: var(--muted); font-size: 14px; }
.pt-404 { padding-top: 80px; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.pt-404 h1 { font-size: 22px; font-weight: 600; }

@media (max-width: 1099px) {
  .pt-grid { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .pt-order-grid .pt-aside { position: static; }
  .pt-head-in { grid-template-columns: minmax(0, 1fr); }
  .pt-project-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pt-open { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 759px) {
  :root { --pad: 20px; }
  body { font-size: 15px; }
  .pt-top-in { height: 56px; gap: 10px; }
  .pt-section { padding-left: 10px; font-size: 13px; }
  .pt-who { display: none !important; }
  .pt-top-r { gap: 4px; }
  .pt-auth { padding-top: 48px; padding-left: 20px; padding-right: 20px; }
  .pt-auth h1, .pt-head h1 { font-size: 26px; }
  .pt-title h1 { font-size: 22px; }
  .pt-title .pt-live { margin-left: 0; }
  .pt-head-in { padding-top: 28px; padding-bottom: 24px; gap: 20px; }
  .pt-project { padding: 16px; }
  .pt-project-head .pt-small { margin-left: 0; width: 100%; }
  .pt-project-body { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  /* Eight stages: two rows of four on phones. */
  .pt-stages { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 10px; }
  .pt-clock { grid-template-columns: minmax(0, 1fr); }
  .pt-clock > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .pt-clock > div { padding: 12px 16px; }
  .pt-clock dd { font-size: 18px; }
  .pt-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pt-products li { flex-direction: column; }
  .pt-dl { grid-template-columns: repeat(2, auto); }
  /* Tables become stacked rows. */
  .pt-table thead { display: none; }
  .pt-table, .pt-table tbody, .pt-table tr, .pt-table td { display: block; width: 100%; }
  .pt-table tr { padding: 10px 14px; border-bottom: 1px solid var(--line); }
  .pt-table tr:last-child { border-bottom: 0; }
  .pt-table td { border: 0; padding: 3px 0; display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: 8px; text-align: left; white-space: normal; }
  .pt-table td::before { content: attr(data-th); font-size: 12px; color: var(--muted); }
  .pt-num { text-align: left; }
  .pt-conv li { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
  .pt-conv li .pt-conv-p { grid-column: 1 / -1; grid-row: 2; white-space: normal; }
  .pt-conv li .pt-small { grid-column: 1; grid-row: 3; }
  .pt-conv li button { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
h1[tabindex="-1"]:focus, h2[tabindex="-1"]:focus { outline: none; }
.pt-photo figcaption { top: auto; bottom: 6px; }
.pt-inline-note { display: flex; align-items: center; gap: 6px; }
@media (max-width: 759px) {
  .pt-table td > * { grid-column: 2; justify-self: start; }
  .pt-table td > .pt-sub { margin-top: 0; }
}
/* Keep content clear of the fixed chat launcher at the right edge on desktop. */
@media (min-width: 760px) { .pt-main .pt-wrap, .pt-head .pt-wrap { padding-right: max(var(--pad), 84px); } }
.pt-shipping { margin-bottom: 32px; }
.pt-shipping > p { margin-top: 8px; }
.pt-shipments { list-style: none; padding: 0; margin-top: 20px; }
.pt-shipments > li { padding: 20px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.pt-shipment-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.pt-shipment-head h3 { font-size: 18px; line-height: 1.4; }
.pt-tracking { display: block; margin: 8px 0; padding: 8px 10px; width: min(100%,32em); min-width: 0; font-family: var(--mono); font-size: 15px; color: var(--ink); background: var(--white); border: 1px solid var(--control); border-radius: 4px; }
.pt-shipment-actions { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.pt-shipping-empty { padding: 24px 0; }
.pt-shipment-actions a { text-decoration: none; }
.pt-source-progress { padding-bottom: 28px; }
.pt-source-list { list-style: none; padding: 0; margin: 20px 0 0; }
.pt-source-row { border-top: 1px solid var(--line); padding: 24px 0; }
.pt-source-row > .pt-link { display: inline-block; margin-top: 12px; }
.pt-source-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pt-source-head h3 { font-size: 20px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.pt-source-facts { display: grid; grid-template-columns: repeat(auto-fit,minmax(170px,1fr)); gap: 16px 24px; margin: 18px 0; }
.pt-source-facts dt { font-size: 13px; color: var(--muted); }
.pt-source-facts dd { margin: 4px 0 0; font-size: 15px; overflow-wrap: anywhere; }
.pt-source-lines { list-style: none; padding: 0; margin: 16px 0; }
.pt-source-lines li { display: flex; justify-content: space-between; gap: 20px; padding: 10px 0; font-size: 14px; border-bottom: 1px solid var(--line); }
.pt-source-lines b { font-weight: 500; text-align: right; }
.pt-source-notices { margin: 16px 0; padding-left: 20px; color: var(--muted); font-size: 14px; line-height: 1.65; }
@media (max-width: 479px) {
  .pt-source-head h3 { font-size: 18px; }
  .pt-source-facts { grid-template-columns: 1fr; gap: 12px; }
  .pt-source-lines li { gap: 12px; }
}
