/* Vaayun customer portal — sign-in page + app shell. Builds on ../styles.css tokens. */

/* ============================================================ sign in / create account */
.au-body { background: var(--ink); }
.au { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); min-height: 100svh; }
.au-side { position: relative; overflow: hidden; background: var(--ink); color: var(--paper); padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; gap: 32px; }
.au-side > *:not(.au-art) { position: relative; z-index: 1; }
.au-art { position: absolute; right: -8%; bottom: -3%; width: 112%; height: auto; opacity: 0.95; pointer-events: none; z-index: 0; }
.cm-contours path { fill: none; stroke: rgba(238, 233, 222, 0.1); stroke-width: 1; }
.au-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--paper); align-self: flex-start; }
.au-brand img { height: 46px; width: auto; filter: invert(1) brightness(0.96) sepia(0.12); }
.au-brand .logo-text small { color: var(--ink-dim); }
.au-pitch { margin-top: clamp(24px, 8vh, 90px); max-width: 30em; }
.au-pitch .label { margin-bottom: 18px; }
.au-title { font-size: clamp(2.3rem, 4.4vw, 4rem); font-weight: 500; line-height: 1.02; letter-spacing: -0.045em; }
.au-title em { color: var(--orange); }
.au-lead { margin-top: 18px; max-width: 26em; color: var(--ink-dim); font-size: 1.05rem; line-height: 1.5; }
.au-points { margin-top: auto; max-width: 340px; border-top: 1px solid rgba(238, 233, 222, 0.2); }
.au-points li { display: flex; gap: 16px; align-items: baseline; padding: 13px 0; border-bottom: 1px solid rgba(238, 233, 222, 0.14); font-size: 14.5px; color: rgba(238, 233, 222, 0.9); }
.au-points span { font-family: var(--f-mono); font-size: 11px; font-weight: 500; color: var(--orange); }
.au-back { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.04em; color: var(--ink-dim); transition: color 0.25s; align-self: flex-start; }
.au-back:hover { color: var(--orange); }

.au-main { background: var(--paper); display: grid; place-items: center; padding: clamp(24px, 4vw, 56px); }
.au-card { width: min(440px, 100%); }
.au-demo { margin-bottom: 22px; padding: 11px 14px; border: 1px dashed var(--ink); background: rgba(255, 74, 28, 0.08); font-size: 13px; line-height: 1.4; }
.au-demo[hidden] { display: none; }
.au-tabs { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--ink); margin-bottom: 30px; }
.au-tab { padding: 12px; font-size: 14px; font-weight: 500; transition: background 0.3s, color 0.3s; }
.au-tab + .au-tab { border-left: 1px solid var(--ink); }
.au-tab:hover { background: rgba(15, 15, 13, 0.06); }
.au-tab.active { background: var(--ink); color: var(--paper); }
.au-h { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1.05; }
.au-sub { margin: 8px 0 26px; color: var(--mute); font-size: 15px; }
.au-card form { display: flex; flex-direction: column; gap: 14px; }
.au-card .au-name[hidden], .au-card .au-pass[hidden] { display: none; }
.au-card .cf-f[hidden] { display: none; }
.au-card .cf-f input[type="password"], .au-card .cf-f input[type="text"] { padding-right: 70px; }
.au-eye { position: absolute; right: 12px; top: 50%; translate: 0 -50%; z-index: 2; font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mute); padding: 6px 4px; }
.au-eye:hover { color: var(--ink); }
.au-row { display: flex; justify-content: flex-end; margin: -4px 0 4px; }
.au-row[hidden] { display: none; }
.au-link { font-size: 13.5px; font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(15, 15, 13, 0.35); transition: color 0.25s; }
.au-link:hover { color: var(--orange); text-decoration-color: var(--orange); }
.au-send { width: 100%; justify-content: space-between; margin-top: 6px; }
.au-foot { margin-top: 24px; font-size: 14px; color: var(--mute); }

/* one-time code (OTP) UI */
.au-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 22px; background: rgba(15, 15, 13, 0.06); border-radius: 999px; }
.au-seg[hidden] { display: none; }
.au-seg button { padding: 10px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 500; color: var(--mute); transition: background 0.3s var(--ease), color 0.3s; }
.au-seg button.on { background: var(--ink); color: var(--paper); }
.au-seg button:not(.on):hover { color: var(--ink); }
.au-hint { margin: -4px 0 2px; font-size: 13px; line-height: 1.45; color: var(--mute); }
.au-hint[hidden] { display: none; }
.au-card .cf-f .cf-l small { font-size: 0.85em; color: var(--mute); }
.au-card .cf-f.au-pass[hidden] { display: none; }
.au-backlink { margin-bottom: 18px; display: inline-block; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.04em; text-decoration: none; color: var(--mute); }
.au-backlink:hover { color: var(--orange); }
#auStepVerify[hidden], #auStepForm[hidden] { display: none; }
#auStepVerify > .au-sub b { color: var(--ink); font-weight: 600; word-break: break-all; }

.otp { display: grid; grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr)); gap: 8px; margin: 6px 0 20px; }
.otp input { width: 100%; aspect-ratio: 1 / 1.15; text-align: center; font: 500 clamp(1.15rem, 4.6vw, 1.6rem) var(--f-sans); letter-spacing: -0.02em; color: var(--ink); background: rgba(15, 15, 13, 0.045); border: 0; border-bottom: 2px solid rgba(15, 15, 13, 0.55); border-radius: 0; outline: 0; padding: 0; font-variant-numeric: tabular-nums; transition: background 0.25s, border-color 0.25s, transform 0.3s var(--ease); caret-color: var(--orange); }
.otp input:focus { background: var(--paper); border-bottom-color: var(--orange); box-shadow: 0 0 0 1px rgba(15, 15, 13, 0.2) inset; transform: translateY(-2px); }
.otp input:not(:placeholder-shown), .otp input:valid { }
.otp input.bad { border-bottom-color: #C4300E; background: rgba(255, 74, 28, 0.08); animation: au-shake 0.4s; }
@keyframes au-shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
.au-inbox { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin: 0 0 18px; padding: 12px 14px; border: 1px dashed var(--ink); background: rgba(255, 74, 28, 0.08); font-size: 13.5px; }
.au-inbox[hidden] { display: none; }
.au-inbox .tag { font-family: var(--f-mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 8px; background: var(--ink); color: var(--paper); }
.au-inbox p { flex: 1 1 200px; }
.au-inbox b { font-family: var(--f-mono); font-size: 1.1em; letter-spacing: 0.12em; }
.au-count { font-family: var(--f-mono); font-size: 12px; color: var(--mute); }
.au-link:disabled { opacity: 0.45; cursor: not-allowed; text-decoration: none; }
#auStepVerify .au-send { margin-top: 0; }
#auStepVerify .form-msg { margin-top: 12px; }

/* ============================================================ portal shell */
.pt-body { background: var(--paper); min-height: 100svh; }
.pt-bar { position: sticky; top: 0; z-index: 60; background: var(--paper); border-bottom: 1px solid var(--ink); }
.pt-bar-in { width: min(var(--max), 100% - var(--pad) * 2); margin-inline: auto; height: 68px; display: flex; align-items: center; gap: clamp(16px, 2.6vw, 40px); }
.pt-logo { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.pt-logo img { height: 42px; width: auto; }
.pt-logo .logo-text small { letter-spacing: 0.15em; }
.pt-nav { display: flex; gap: clamp(14px, 2vw, 30px); margin-inline: auto; }
.pt-nav a { position: relative; font-size: 14px; font-weight: 500; padding: 8px 0; color: rgba(15, 15, 13, 0.62); transition: color 0.25s; white-space: nowrap; }
.pt-nav a:hover, .pt-nav a.on { color: var(--ink); }
.pt-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease); }
.pt-nav a.on::after { transform: scaleX(1); }
.pt-user { display: flex; align-items: center; gap: 12px; flex: none; }
.pt-av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--paper); font-size: 13px; font-weight: 600; letter-spacing: 0.02em; }
.pt-who { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.pt-who b { font-size: 13.5px; font-weight: 600; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-who i { font-style: normal; font-family: var(--f-mono); font-size: 10.5px; color: var(--mute); max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-out { padding: 9px 16px; border: 1.5px solid var(--ink); border-radius: 999px; font-size: 13px; font-weight: 500; transition: background 0.3s, color 0.3s; }
.pt-out:hover { background: var(--ink); color: var(--paper); }

.pt-demo { background: var(--ink); color: var(--paper); font-size: 13px; }
.pt-demo[hidden] { display: none; }
.pt-demo-in { width: min(var(--max), 100% - var(--pad) * 2); margin-inline: auto; padding: 9px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.pt-demo b { color: var(--orange); font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.pt-demo span { color: var(--ink-dim); flex: 1 1 260px; }
.pt-demo button { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 3px; color: var(--paper); }
.pt-demo button:hover { color: var(--orange); }

.pt-main { padding: clamp(28px, 4vw, 56px) 0 clamp(64px, 8vw, 110px); min-height: 70svh; }
.pt-head { margin-bottom: clamp(26px, 3.4vw, 44px); }
.pt-head .label { margin-bottom: 14px; }
.pt-title { font-size: clamp(2.1rem, 4.2vw, 3.6rem); font-weight: 500; line-height: 1.02; letter-spacing: -0.045em; }
.pt-title em { color: var(--orange); }
.pt-sub { margin-top: 14px; max-width: 34em; color: var(--mute); font-size: 1.05rem; }
.pt-h2 { font-size: clamp(1.3rem, 2vw, 1.7rem); font-weight: 500; letter-spacing: -0.035em; margin-bottom: 16px; display: flex; align-items: baseline; gap: 12px; }
.pt-h2 small { font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.06em; color: var(--mute); text-transform: uppercase; }
.pt-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.pt-view { animation: pt-in 0.6s var(--ease) both; }
@keyframes pt-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* stat tiles */
.pt-stats { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--ink); margin-bottom: clamp(32px, 4vw, 52px); background: var(--paper); }
.pt-stat { padding: 22px 24px; border-left: 1px solid rgba(15, 15, 13, 0.35); display: flex; flex-direction: column; gap: 4px; }
.pt-stat:first-child { border-left: 0; }
.pt-stat b { font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 500; line-height: 1; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.pt-stat span { font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mute); }

.pt-cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(24px, 3.4vw, 52px); align-items: start; }

/* status badge */
.pt-badge { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border: 1px solid var(--ink); border-radius: 999px; font-family: var(--f-mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; background: var(--paper); }
.pt-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.pt-badge.requested::before { background: transparent; border: 1.5px solid var(--ink); }
.pt-badge.reviewed::before { background: var(--ink); }
.pt-badge.scheduled { border-color: var(--orange); }
.pt-badge.scheduled::before { background: transparent; border: 1.5px solid var(--orange); }
.pt-badge.in_progress { background: var(--orange); border-color: var(--orange); }
.pt-badge.in_progress::before { background: var(--ink); animation: blink 1s steps(2) infinite; }
.pt-badge.completed { background: var(--ink); color: var(--paper); }
.pt-badge.completed::before { background: #5CE08E; }
.pt-badge.cancelled { color: var(--mute); border-color: rgba(15, 15, 13, 0.35); }
.pt-badge.cancelled::before { background: var(--mute); }

/* booking card */
.pt-list { display: flex; flex-direction: column; gap: 12px; }
.pt-bk { display: block; padding: 20px 22px; border: 1px solid var(--ink); background: var(--paper); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.pt-bk:hover { transform: translate(-3px, -3px); box-shadow: 5px 5px 0 var(--orange); }
.pt-bk-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.pt-ref { font-family: var(--f-mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.04em; color: var(--mute); }
.pt-bk h3 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.15; }
.pt-meta { margin-top: 6px; font-size: 13.5px; color: var(--mute); }
.pt-prog { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-top: 16px; }
.pt-prog i { height: 3px; background: rgba(15, 15, 13, 0.18); }
.pt-prog i.on { background: var(--orange); }
.pt-next { margin-top: 10px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--mute); }

/* activity feed */
.pt-feed { border-top: 1px solid var(--ink); }
.pt-feed li { display: grid; grid-template-columns: 14px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid rgba(15, 15, 13, 0.25); font-size: 14px; }
.pt-feed .dot { width: 8px; height: 8px; margin-top: 6px; background: var(--orange); }
.pt-feed b { font-weight: 600; }
.pt-feed small { display: block; margin-top: 2px; font-family: var(--f-mono); font-size: 10.5px; color: var(--mute); letter-spacing: 0.03em; }

/* empty state */
.pt-empty { padding: clamp(32px, 5vw, 60px); border: 1px dashed var(--ink); text-align: center; }
.pt-empty h3 { font-size: 1.4rem; font-weight: 500; letter-spacing: -0.03em; }
.pt-empty p { margin: 8px auto 22px; max-width: 28em; color: var(--mute); }

/* services */
.pt-group { margin-bottom: clamp(32px, 4vw, 52px); }
.pt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pt-svc { display: flex; flex-direction: column; padding: 22px; border: 1px solid var(--ink); background: var(--paper); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.pt-svc:hover { transform: translate(-3px, -3px); box-shadow: 5px 5px 0 var(--orange); }
.pt-svc .n { font-family: var(--f-mono); font-size: 11px; font-weight: 500; color: var(--orange); letter-spacing: 0.05em; }
.pt-svc h3 { margin: 10px 0 8px; font-size: 1.25rem; font-weight: 500; letter-spacing: -0.03em; line-height: 1.15; }
.pt-svc p { color: var(--mute); font-size: 14.5px; flex: 1; }
.pt-svc-actions { display: flex; gap: 8px; margin-top: 18px; }
.pt-small { padding: 9px 16px; font-size: 13px; }

.pt-crumbs { display: flex; gap: 10px; margin-bottom: 22px; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; }
.pt-crumbs a:hover { color: var(--orange); }
.pt-crumbs span:last-child { color: var(--mute); }

.pt-detail { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.pt-box { border: 1px solid var(--ink); background: var(--paper); }
.pt-box-h { padding: 11px 16px; border-bottom: 1px solid var(--ink); font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; display: flex; justify-content: space-between; gap: 12px; }
.pt-box-h span:last-child { color: var(--mute); }
.pt-box-b { padding: 20px; }
.pt-side { position: sticky; top: 92px; }
.pt-ticks li { display: flex; gap: 12px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid rgba(15, 15, 13, 0.25); font-size: 15px; }
.pt-ticks li:first-child { border-top: 1px solid var(--ink); }
.pt-ticks li::before { content: ""; flex: none; width: 8px; height: 8px; background: var(--orange); transform: translateY(-1px); }
.pt-steps li { display: grid; grid-template-columns: 40px 1fr; gap: 6px; padding: 14px 0; border-bottom: 1px solid rgba(15, 15, 13, 0.25); }
.pt-steps li:first-child { border-top: 1px solid var(--ink); }
.pt-steps span { font-family: var(--f-mono); font-size: 11.5px; color: var(--orange); font-weight: 500; padding-top: 3px; }

/* booking form */
.pt-form { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.pt-fs { border: 0; padding: 0; min-width: 0; margin-bottom: 30px; }
.pt-fs legend { padding: 0; margin-bottom: 14px; width: 100%; font-family: var(--f-mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; display: flex; gap: 12px; }
.pt-fs legend i { font-style: normal; color: var(--orange); }
.pt-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pt-field { display: flex; flex-direction: column; gap: 6px; }
.pt-field > label, .pt-lab { font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mute); }
.pt-select, .pt-date { width: 100%; font: 400 1rem var(--f-sans); color: var(--ink); background: rgba(15, 15, 13, 0.045); border: 0; border-bottom: 1.5px solid rgba(15, 15, 13, 0.55); padding: 14px 14px; border-radius: 0; appearance: none; -webkit-appearance: none; outline: 0; transition: background 0.3s; }
.pt-select { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.pt-select:focus, .pt-date:focus { background-color: var(--paper); box-shadow: 0 0 0 1px rgba(15, 15, 13, 0.25) inset; border-bottom-color: var(--orange); }
.pt-field.bad .pt-select, .pt-field.bad .pt-date { background-color: rgba(255, 74, 28, 0.08); border-bottom-color: var(--orange); }
.pt-asap { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 13.5px; cursor: pointer; }
.pt-asap input { accent-color: var(--orange); width: 16px; height: 16px; }
.pt-form .cf-chips { margin-top: 4px; }
.pt-form .cf-chips legend { display: none; }
.pt-sum-row { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid rgba(15, 15, 13, 0.25); font-size: 14.5px; }
.pt-sum-row:first-child { border-top: 1px solid var(--ink); }
.pt-sum-row dt { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--mute); padding-top: 3px; }
.pt-sum-row dd { word-break: break-word; }
.pt-sum-row dd.ph { color: var(--mute); }

/* tracking */
.pt-track { padding: 26px 20px 8px; }
.pt-stepper { display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.pt-stepper::before { content: ""; position: absolute; left: 10%; right: 10%; top: 13px; height: 2px; background: rgba(15, 15, 13, 0.2); }
.pt-stepper .fill { position: absolute; left: 10%; top: 13px; height: 2px; background: var(--orange); transition: width 1s var(--ease); }
.pt-st { position: relative; text-align: center; padding: 0 4px 18px; }
.pt-st .pip { width: 28px; height: 28px; margin: 0 auto 10px; border-radius: 50%; border: 2px solid rgba(15, 15, 13, 0.3); background: var(--paper); display: grid; place-items: center; position: relative; z-index: 1; transition: all 0.5s var(--ease); }
.pt-st .pip svg { width: 14px; height: 14px; stroke: var(--ink); stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.pt-st.done .pip { background: var(--ink); border-color: var(--ink); }
.pt-st.done .pip svg { opacity: 1; stroke: var(--paper); }
.pt-st.now .pip { background: var(--orange); border-color: var(--ink); box-shadow: 0 0 0 5px rgba(255, 74, 28, 0.2); }
.pt-st b { display: block; font-size: 13px; font-weight: 500; color: rgba(15, 15, 13, 0.45); }
.pt-st.done b, .pt-st.now b { color: var(--ink); }
.pt-st.now b { font-weight: 600; }
.pt-cancelled-note { margin: 0 20px 20px; padding: 12px 14px; border: 1px dashed var(--ink); font-size: 14px; }

.pt-timeline { border-top: 1px solid var(--ink); position: relative; }
.pt-timeline li { display: grid; grid-template-columns: 22px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid rgba(15, 15, 13, 0.25); }
.pt-timeline .tdot { width: 10px; height: 10px; margin-top: 6px; background: var(--ink); border-radius: 50%; }
.pt-timeline li:first-child .tdot { background: var(--orange); box-shadow: 0 0 0 4px rgba(255, 74, 28, 0.2); }
.pt-timeline b { font-weight: 600; }
.pt-timeline p { margin-top: 2px; color: #3A3935; font-size: 14.5px; }
.pt-timeline small { display: block; margin-top: 4px; font-family: var(--f-mono); font-size: 10.5px; color: var(--mute); letter-spacing: 0.03em; }
.pt-dl div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(15, 15, 13, 0.25); font-size: 14.5px; }
.pt-dl div:first-child { border-top: 1px solid var(--ink); }
.pt-dl dt { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--mute); padding-top: 3px; }
.pt-dl dd { word-break: break-word; }
.pt-demo-box { margin-top: 18px; padding: 14px 16px; border: 1px dashed var(--ink); background: rgba(255, 74, 28, 0.07); }
.pt-demo-box p { font-size: 13px; color: var(--mute); margin-bottom: 10px; }
.pt-danger { color: #C4300E; border-color: #C4300E; }
.pt-danger:hover { background: #C4300E; color: var(--paper); border-color: #C4300E; }

/* history table + filters */
.pt-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 18px; }
.pt-search { flex: 1 1 220px; max-width: 360px; font: 400 0.95rem var(--f-sans); padding: 11px 14px; border: 1px solid var(--ink); background: var(--paper); border-radius: 999px; outline: 0; }
.pt-search:focus { box-shadow: 0 0 0 2px var(--orange); }
.pt-table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--ink); }
.pt-table th { text-align: left; padding: 12px 12px 12px 0; font-family: var(--f-mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mute); border-bottom: 1px solid var(--ink); }
.pt-table td { padding: 16px 12px 16px 0; border-bottom: 1px solid rgba(15, 15, 13, 0.25); font-size: 14.5px; vertical-align: middle; }
.pt-table tr.row { cursor: pointer; transition: background 0.25s; }
.pt-table tr.row:hover { background: rgba(15, 15, 13, 0.04); }
.pt-table td b { font-weight: 500; letter-spacing: -0.02em; font-size: 15.5px; display: block; }
.pt-table td small { color: var(--mute); font-size: 12.5px; }
.pt-table .ref { font-family: var(--f-mono); font-size: 11.5px; color: var(--mute); }

.pt-toast { position: fixed; z-index: 120; left: 50%; bottom: 28px; translate: -50% 20px; max-width: min(92vw, 460px); padding: 13px 20px; background: var(--ink); color: var(--paper); font-size: 14px; font-weight: 500; opacity: 0; pointer-events: none; transition: opacity 0.4s, translate 0.5s var(--ease); box-shadow: 6px 6px 0 var(--orange); }
.pt-toast.show { opacity: 1; translate: -50% 0; }
.pt-toast.err { background: #C4300E; box-shadow: 6px 6px 0 var(--ink); }

/* ============================================================ responsive */
@media (max-width: 1000px) {
  .au { grid-template-columns: 1fr; }
  .au-side { padding: 24px 22px 28px; gap: 18px; }
  .au-art, .au-points, .au-lead { display: none; }
  .au-pitch { margin-top: 6px; }
  .au-title { font-size: 2.2rem; }
  .au-back { display: none; }
  .au-main { align-items: start; }
  .pt-cols, .pt-detail, .pt-form { grid-template-columns: 1fr; }
  .pt-side { position: static; }
  .pt-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .pt-bar-in { height: auto; flex-wrap: wrap; padding: 10px 0 0; gap: 8px 14px; }
  .pt-user { margin-left: auto; }
  .pt-who { display: none; }
  .pt-nav { order: 3; width: 100%; margin: 0; overflow-x: auto; gap: 22px; padding-bottom: 0; scrollbar-width: none; }
  .pt-nav::-webkit-scrollbar { display: none; }
  .pt-grid, .pt-two { grid-template-columns: 1fr; }
  .pt-stats { grid-template-columns: 1fr; }
  .pt-stat { border-left: 0; border-top: 1px solid rgba(15, 15, 13, 0.35); padding: 16px 20px; flex-direction: row; align-items: baseline; justify-content: space-between; }
  .pt-stat:first-child { border-top: 0; }
  .pt-stat b { font-size: 2rem; }
  .pt-table thead { display: none; }
  .pt-table, .pt-table tbody, .pt-table tr, .pt-table td { display: block; width: 100%; }
  .pt-table tr { padding: 14px 0; border-bottom: 1px solid rgba(15, 15, 13, 0.25); }
  .pt-table td { padding: 3px 0; border: 0; }
  .pt-sum-row, .pt-dl div { grid-template-columns: 1fr; gap: 2px; }
  .pt-st b { font-size: 11px; }
  .pt-track { padding-inline: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .pt-view { animation: none; }
  .pt-badge.in_progress::before { animation: none; }
}
