/* My AMPLIFY — customer portal. Standalone page styles. */

.pt {
  --bg: #050505;
  --surface: #0e0e10;
  --surface-2: #141417;
  --surface-3: #1b1b1f;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.15);
  --text: #ffffff;
  --text-2: rgba(255, 255, 255, 0.74);
  --muted: rgba(255, 255, 255, 0.5);
  --accent: #e8622c;
  --accent-2: #ff7a3d;
  --accent-rgb: 232, 98, 44;
  --ok: #48c77e;
  --ok-rgb: 72, 199, 126;
  --danger: #ff6b6b;
  --radius: 20px;
  --radius-sm: 12px;
  --head: 'Bebas Neue', Impact, 'Arial Narrow', sans-serif;
  --body: 'Inter', Helvetica, Arial, sans-serif;
  --top: 68px;

  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

.pt *,
.pt *::before,
.pt *::after {
  box-sizing: border-box;
}

.pt [hidden] {
  display: none !important;
}

/* Photos and gallery are off for now (<body data-photos="off">); remove the attribute to bring them back. */
.pt[data-photos="off"] [data-photos],
.pt:not([data-photos="off"]) [data-photos-off] {
  display: none !important;
}

.pt svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.pt a {
  color: inherit;
}

.pt button {
  font: inherit;
  color: inherit;
}

.pt :focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
}

.pt img {
  max-width: 100%;
}

.pt-glow {
  position: fixed;
  inset: 0 0 auto;
  height: 760px;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.pt-glow::before,
.pt-glow::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
}

.pt-glow::before {
  top: -220px;
  left: -160px;
  width: 620px;
  height: 560px;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.32), transparent 68%);
}

.pt-glow::after {
  top: 120px;
  right: -220px;
  width: 560px;
  height: 520px;
  background: radial-gradient(circle, rgba(110, 140, 255, 0.12), transparent 70%);
}

/* ---------- Shared bits ---------- */

.pt-logo {
  display: inline-flex;
  align-items: center;
}

.pt-logo img {
  width: 150px;
  height: auto;
  display: block;
}

.pt-logo-sm img {
  width: 118px;
}

.pt-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 7px 14px 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pt-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.2), 0 0 16px rgba(var(--accent-rgb), 0.85);
}

.pt-display {
  margin: 18px 0 0;
  font-family: var(--head);
  font-size: clamp(64px, 11vw, 132px);
  font-weight: 400;
  line-height: 0.86;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.pt-display em,
.pt-page-title em {
  font-style: normal;
  background: linear-gradient(100deg, #ffb070 0%, #ff7a3d 38%, #e8622c 72%, #ff9d5c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 120ms ease, background 150ms ease, border-color 150ms ease, opacity 150ms ease;
  white-space: nowrap;
}

.pt-btn:active {
  transform: scale(0.98);
}

.pt-btn:disabled {
  opacity: 0.55;
  cursor: default;
}

.pt-btn-primary {
  background: linear-gradient(135deg, var(--accent-2) 0%, var(--accent) 100%);
  color: #fff;
  box-shadow: 0 10px 28px rgba(var(--accent-rgb), 0.28);
}

.pt-btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #ff8a52 0%, #f06d36 100%);
}

.pt-btn-ghost {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.pt-btn-ghost:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

.pt-btn-sm {
  min-height: 38px;
  padding: 8px 14px;
  font-size: 13.5px;
}

.pt-btn-block {
  width: 100%;
}

.pt-btn.is-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.pt-btn.is-loading::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: pt-spin 0.7s linear infinite;
}

.pt-icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.pt-link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent-2) !important;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.pt-link:disabled {
  color: var(--muted) !important;
  text-decoration: none;
  cursor: default;
}

.pt-spinner {
  display: inline-block;
  width: 28px;
  height: 28px;
  border: 2.5px solid rgba(255, 255, 255, 0.14);
  border-top-color: var(--accent-2);
  border-radius: 50%;
  animation: pt-spin 0.8s linear infinite;
}

@keyframes pt-spin {
  to { transform: rotate(360deg); }
}

.pt-boot {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 5;
}

.pt-alert {
  margin: 0 0 16px;
  padding: 11px 14px;
  border: 1px solid rgba(255, 107, 107, 0.35);
  border-radius: var(--radius-sm);
  background: rgba(255, 107, 107, 0.1);
  color: #ffc2c2;
  font-size: 14px;
}

.pt-alert.is-ok {
  border-color: rgba(var(--ok-rgb), 0.35);
  background: rgba(var(--ok-rgb), 0.1);
  color: #bff0d3;
}

.pt-field {
  display: grid;
  gap: 7px;
  margin-bottom: 16px;
}

.pt-field > span {
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
}

.pt-field input,
.pt-field select,
.pt-field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 15px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.pt-field textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.5;
}

.pt-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
  padding-right: 42px;
}

.pt-field select option {
  background: #16161a;
}

.pt-field input::placeholder,
.pt-field textarea::placeholder {
  color: rgba(255, 255, 255, 0.32);
}

.pt-field input:focus,
.pt-field select:focus,
.pt-field textarea:focus {
  outline: none;
  border-color: rgba(var(--accent-rgb), 0.8);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.16);
}

.pt-toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 80;
  max-width: min(420px, calc(100% - 32px));
  padding: 12px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(24, 24, 28, 0.96);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  transform: translateX(-50%);
  backdrop-filter: blur(12px);
}

.pt-toast.is-error {
  border-color: rgba(255, 107, 107, 0.45);
  color: #ffd0d0;
}

/* ---------- Sign in ---------- */

.pt-auth {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 64px;
  width: min(1120px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 48px 0;
}

.pt-auth-brand .pt-logo {
  margin-bottom: 40px;
}

.pt-lead {
  max-width: 44ch;
  margin: 18px 0 0;
  color: var(--text-2);
  font-size: 17px;
}

.pt-perks {
  display: grid;
  gap: 14px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.pt-perks li {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pt-perks strong {
  display: block;
  font-size: 15px;
}

.pt-perks span:not(.pt-perk-icon) {
  display: block;
  color: var(--muted);
  font-size: 13.5px;
}

.pt-perk-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  border-radius: 14px;
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent-2);
}

.pt-auth-card {
  width: 100%;
  max-width: 460px;
  justify-self: end;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(22, 22, 26, 0.92), rgba(12, 12, 14, 0.92));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
}

.pt-auth-title {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.pt-auth-sub {
  margin: 8px 0 24px;
  color: var(--text-2);
  font-size: 14.5px;
}

.pt-auth-sub strong {
  color: var(--text);
  word-break: break-all;
}

.pt-auth-foot {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  text-align: center;
}

.pt-auth-foot a {
  color: var(--accent-2);
  font-weight: 600;
}

.pt-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: -6px 0 14px -6px;
  padding: 6px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}

.pt-back svg {
  width: 18px;
  height: 18px;
}

.pt-back:hover {
  color: var(--text);
}

.pt-otp {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 20px;
}

.pt-otp input {
  width: 100%;
  min-width: 0;
  height: 60px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-family: var(--body);
  font-size: 26px;
  font-weight: 800;
  text-align: center;
  caret-color: var(--accent-2);
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.pt-otp input:focus {
  outline: none;
  border-color: rgba(var(--accent-rgb), 0.85);
  background: rgba(var(--accent-rgb), 0.06);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.16);
}

.pt-otp.is-error input {
  border-color: rgba(255, 107, 107, 0.6);
  animation: pt-shake 0.35s ease;
}

@keyframes pt-shake {
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.pt-dev {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 22px;
  padding: 12px 14px;
  border: 1px dashed rgba(245, 197, 66, 0.55);
  border-radius: var(--radius-sm);
  background: rgba(245, 197, 66, 0.08);
  color: #f7dd92;
  font-size: 13px;
}

.pt-dev strong {
  color: #fff;
  font-size: 15px;
  letter-spacing: 0.18em;
}

.pt-dev button {
  padding: 6px 12px;
  border: 1px solid rgba(245, 197, 66, 0.5);
  border-radius: 9px;
  background: rgba(245, 197, 66, 0.14);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}

/* ---------- App shell ---------- */

.pt-app {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

.pt-top {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 5, 5, 0.78);
  backdrop-filter: saturate(160%) blur(18px);
}

.pt-top-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  width: min(1120px, calc(100% - 32px));
  height: var(--top);
  margin: 0 auto;
}

.pt-nav {
  display: flex;
  gap: 4px;
}

.pt-nav a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 150ms ease, color 150ms ease;
}

.pt-nav a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.pt-nav a.is-active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.pt-account {
  position: relative;
  margin-left: auto;
}

.pt-avatar-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 10px 5px 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

.pt-avatar-btn svg {
  width: 16px;
  height: 16px;
  color: var(--muted);
}

.pt-avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.pt-avatar-name {
  max-width: 160px;
  overflow: hidden;
  font-size: 13.5px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pt-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 240px;
  padding: 6px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(20, 20, 24, 0.98);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
}

.pt-menu-head {
  display: grid;
  gap: 2px;
  padding: 10px 12px 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 6px;
}

.pt-menu-head span {
  color: var(--muted);
  font-size: 12.5px;
  word-break: break-all;
}

.pt-menu a,
.pt-menu button {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: none;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.pt-menu a:hover,
.pt-menu button:hover {
  background: rgba(255, 255, 255, 0.07);
}

.pt-main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0 80px;
  outline: none;
}

.pt-tabbar {
  display: none;
}

.pt-page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}

.pt-page-title {
  margin: 0;
  font-family: var(--head);
  font-size: clamp(44px, 7vw, 64px);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.pt-page-sub {
  margin: 8px 0 0;
  color: var(--text-2);
  font-size: 15px;
}

.pt-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pt-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
}

.pt-card-pad {
  padding: 24px;
}

.pt-section-label {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pt-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.pt-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.8;
}

.pt-pill.is-ok {
  border-color: rgba(var(--ok-rgb), 0.4);
  background: rgba(var(--ok-rgb), 0.1);
  color: #8fe3b3;
}

.pt-pill.is-accent {
  border-color: rgba(var(--accent-rgb), 0.45);
  background: rgba(var(--accent-rgb), 0.1);
  color: #ffb28a;
}

.pt-pill.is-muted {
  color: var(--muted);
}

/* ---------- Home ---------- */

.pt-home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 20px;
  align-items: start;
}

.pt-stack {
  display: grid;
  gap: 20px;
}

.pt-ticket {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(var(--accent-rgb), 0.28);
  border-radius: 24px;
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(var(--accent-rgb), 0.22), transparent 55%),
    linear-gradient(180deg, #17171b, #0e0e10);
}

.pt-ticket-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  padding: 26px;
}

.pt-ticket-type {
  margin: 0 0 6px;
  color: #ffb28a;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pt-ticket-name {
  margin: 0;
  font-family: var(--head);
  font-size: 42px;
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.pt-ticket-org {
  margin: 6px 0 0;
  color: var(--text-2);
  font-size: 14px;
}

.pt-ticket-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
  margin-top: 22px;
}

.pt-ticket-meta dt {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pt-ticket-meta dd {
  margin: 3px 0 0;
  font-size: 14.5px;
  font-weight: 600;
}

.pt-mono {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  letter-spacing: 0.08em;
}

.pt-qr {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 10px;
}

.pt-qr-box {
  padding: 10px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.pt-qr-box img {
  display: block;
  width: 148px;
  height: 148px;
  image-rendering: pixelated;
}

.pt-qr span {
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.pt-ticket-foot {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  border-top: 1px dashed rgba(255, 255, 255, 0.14);
}

.pt-ticket-foot::before,
.pt-ticket-foot::after {
  content: "";
  position: absolute;
  top: -11px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid rgba(var(--accent-rgb), 0.28);
}

.pt-ticket-foot::before {
  left: -12px;
}

.pt-ticket-foot::after {
  right: -12px;
}

.pt-tour {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 13.5px;
}

.pt-tour svg {
  flex: none;
  color: var(--accent-2);
}

.pt-tour strong {
  display: block;
  font-size: 14px;
}

.pt-tour span {
  color: var(--muted);
}

.pt-tile {
  display: block;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  text-decoration: none;
  transition: border-color 150ms ease, transform 150ms ease;
}

.pt-tile:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.pt-tile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pt-tile-head h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.pt-tile-head p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 13.5px;
}

.pt-tile-head > svg {
  color: var(--muted);
}

.pt-mosaic {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.pt-mosaic span {
  aspect-ratio: 1;
  border-radius: 12px;
  background: var(--surface-3) center / cover no-repeat;
}

.pt-mosaic span.is-empty {
  border: 1px dashed var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
}

/* ---------- Photos ---------- */

.pt-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.pt-chips {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.pt-chip {
  padding: 7px 14px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}

.pt-chip[aria-pressed="true"] {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
}

.pt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
}

.pt-grid-wide {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.pt-photo {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: var(--surface-3);
  aspect-ratio: 4 / 5;
  isolation: isolate;
}

.pt-grid-wide .pt-photo {
  aspect-ratio: 4 / 3;
}

.pt-photo-open {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.pt-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 300ms ease, transform 500ms ease;
}

.pt-photo img.is-loaded {
  opacity: 1;
}

.pt-photo:hover img {
  transform: scale(1.03);
}

.pt-photo-bar {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  padding: 40px 10px 10px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
  opacity: 0;
  transition: opacity 180ms ease;
  pointer-events: none;
}

.pt-photo:hover .pt-photo-bar,
.pt-photo:focus-within .pt-photo-bar {
  opacity: 1;
}

.pt-photo-bar span {
  overflow: hidden;
  font-size: 12.5px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pt-photo-dl {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #111;
  pointer-events: auto;
}

.pt-photo-dl svg {
  width: 17px;
  height: 17px;
}

.pt-fav {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(10, 10, 12, 0.55);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: transform 150ms ease, background 150ms ease;
}

.pt-fav svg {
  width: 18px;
  height: 18px;
}

.pt-fav:hover {
  transform: scale(1.08);
}

.pt-fav[aria-pressed="true"] {
  background: #ff4d5e;
}

.pt-fav[aria-pressed="true"] svg,
.pt-lb-btn[aria-pressed="true"] svg {
  fill: currentColor;
}

.pt-person-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 28px 0 14px;
}

.pt-person-head:first-child {
  margin-top: 0;
}

.pt-person-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.pt-person-head span {
  color: var(--muted);
  font-size: 13.5px;
}

.pt-day {
  margin-top: 34px;
}

.pt-day:first-child {
  margin-top: 0;
}

.pt-day-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.pt-day-head h2 {
  margin: 0;
  font-family: var(--head);
  font-size: 30px;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.pt-day-head span {
  color: var(--muted);
  font-size: 13.5px;
}

.pt-empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 56px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.015);
  text-align: center;
}

.pt-empty-icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin-bottom: 6px;
  border-radius: 18px;
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent-2);
}

.pt-empty-icon svg {
  width: 26px;
  height: 26px;
}

.pt-empty h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
}

.pt-empty p {
  max-width: 44ch;
  margin: 0;
  color: var(--text-2);
  font-size: 14.5px;
}

/* Conference recordings: library + theater */
/* Posters and speaker photos are our own files. Provider players load only inside the theater. */

.pt-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;
}

.pt-recordings-page {
  min-width: 0;
}

.pt-recordings-page:not([data-accent="orange"]) .pt-page-title em {
  background: linear-gradient(100deg, #fff 0%, var(--accent-2) 34%, var(--accent) 74%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.pt-recordings-page:not([data-accent="orange"]) .pt-btn-primary:hover:not(:disabled),
.pt-theater:not([data-accent="orange"]) .pt-btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--accent-2) 0%, var(--accent) 100%);
  filter: brightness(1.08);
}

.pt-recordings-conference {
  display: grid;
  gap: 7px;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 600;
}

.pt-recordings-conference select {
  min-width: 180px;
  min-height: 44px;
  padding: 10px 36px 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  color-scheme: dark;
}

.pt-recordings-loading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 18px;
  color: var(--text-2);
  font-size: 14px;
}

.pt-recordings-loading .pt-spinner {
  width: 22px;
  height: 22px;
}

.pt-recordings-skel {
  aspect-ratio: 16 / 9;
  border-radius: 14px;
}

.pt-recordings-summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  font-weight: 600;
}

.pt-recordings-summary span {
  color: var(--muted);
  font-weight: 400;
}

/* Test previews keep their explicit labels everywhere. */
.pt-test-preview-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin: 0 0 24px;
  padding: 18px 20px;
  border: 1px solid rgba(237, 99, 42, 0.35);
  border-radius: 12px;
  background: rgba(237, 99, 42, 0.07);
  overflow-wrap: anywhere;
}

.pt-test-preview-note > div {
  flex: 1 1 260px;
  min-width: 0;
}

.pt-test-preview-note strong {
  color: var(--text);
  font-size: 14px;
}

.pt-test-preview-note p {
  margin: 6px 0 0;
  color: var(--text-2);
  font-size: 13px;
  line-height: 1.6;
}

.pt-test-preview-note .pt-btn {
  white-space: normal;
}

.pt-test-preview-label {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(237, 99, 42, 0.1);
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.pt-test-preview-label strong {
  color: var(--text);
}

.pt-test-preview-label span {
  color: var(--text-2);
}

/* Featured hero */

.pt-recordings-hero {
  position: relative;
  display: grid;
  margin: 0 0 36px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  isolation: isolate;
}

.pt-recordings-hero-art,
.pt-recordings-hero-copy {
  grid-area: 1 / 1;
}

.pt-recordings-hero-art {
  position: relative;
  align-self: stretch;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: min(64vh, 560px);
  overflow: hidden;
  container-type: inline-size;
}

.pt-recordings-hero-art > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pt-recordings-hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 5, 7, 0.94) 0%, rgba(5, 5, 7, 0.74) 36%, rgba(5, 5, 7, 0.12) 72%, rgba(5, 5, 7, 0) 100%),
    linear-gradient(0deg, rgba(5, 5, 7, 0.9) 0%, rgba(5, 5, 7, 0) 48%);
}

.pt-recordings-hero-copy {
  position: relative;
  z-index: 1;
  align-self: end;
  display: grid;
  justify-items: start;
  gap: 14px;
  max-width: 640px;
  padding: 44px 48px;
  overflow-wrap: anywhere;
}

.pt-recordings-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: var(--text-2);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.pt-recordings-hero h2 {
  margin: 0;
  font-family: var(--head);
  font-size: clamp(40px, 5.4vw, 70px);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-wrap: balance;
}

.pt-recordings-hero-speakers {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.pt-recordings-hero-speakers .pt-recording-avatar {
  width: 34px;
  height: 34px;
  border-color: rgba(5, 5, 7, 0.9);
}

.pt-recordings-hero-description {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.6;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.pt-recordings-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin-top: 6px;
}

.pt-recordings-hero-actions .pt-btn svg {
  width: 18px;
  height: 18px;
}

.pt-recordings-hero-meta {
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 600;
}

.pt-recordings-hero-progress {
  display: block;
  width: min(320px, 100%);
  height: 4px;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.2);
}

.pt-recordings-hero-progress > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

/* Rows: Continue watching and collection shelves are native scroll-snap rows. */

.pt-recordings-continue,
.pt-recordings-shelf {
  min-width: 0;
  margin: 0 0 34px;
}

.pt-recordings-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
}

.pt-recordings-row-head h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.pt-recordings-row-head h2 span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
}

.pt-recordings-row-nav {
  display: flex;
  flex-shrink: 0;
  gap: 8px;
}

.pt-recordings-row-nav .pt-icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}

.pt-recordings-row-nav .pt-icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.pt-recordings-row {
  display: flex;
  gap: 18px;
  margin: -4px;
  padding: 4px 4px 14px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
  -webkit-overflow-scrolling: touch;
}

.pt-recordings-row > * {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.pt-recordings-row.is-shelf > .pt-recording {
  width: 300px;
}

/* Library grid: 1 column on phones, 2 on tablets, 3 on laptops, 4 on wide screens. */

.pt-recordings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 20px;
  align-items: start;
}

@media (min-width: 1280px) {
  .pt-recordings-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Cards */

.pt-recording {
  position: relative;
  display: grid;
  align-content: start;
  gap: 14px;
  min-width: 0;
}

.pt-recording.is-test-preview {
  gap: 12px;
  padding: 10px 10px 14px;
  border: 1px solid rgba(237, 99, 42, 0.4);
  border-radius: 18px;
  background: rgba(237, 99, 42, 0.04);
}

.pt-recording-open,
.pt-continue-open,
.pt-theater-next-art {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
  color: #fff;
  text-align: left;
  container-type: inline-size;
}

button.pt-recording-open,
button.pt-continue-open {
  cursor: pointer;
  transition: transform 160ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

button.pt-recording-open:active,
button.pt-continue-open:active {
  transform: scale(0.985);
}

button.pt-recording-open:focus-visible,
button.pt-continue-open:focus-visible {
  outline: none;
}

/* Focus rings sit inside the poster so scroll rows never clip them. */
button.pt-recording-open:focus-visible::after,
button.pt-continue-open:focus-visible::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  box-shadow: inset 0 0 0 3px var(--accent-2);
}

.pt-recording-img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease, filter 200ms ease;
}

.pt-recording.is-watched .pt-recording-img {
  filter: saturate(0.8) brightness(0.86);
}

.pt-recording-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.78) 100%);
  pointer-events: none;
}

.pt-recording-play {
  position: absolute;
  left: 12px;
  bottom: 14px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.94);
  color: #fff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
  transition: transform 160ms ease, background 160ms ease;
}

.pt-recording-play svg {
  width: 18px;
  height: 18px;
  margin-left: 2px;
}

.pt-recording-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  z-index: 1;
  display: flex;
  gap: 6px;
  pointer-events: none;
}

.pt-recording-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.pt-recording-badge.is-new {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(var(--accent-rgb), 0.45);
}

.pt-recording-badge.is-watched {
  margin-left: auto;
  border: 1px solid rgba(var(--ok-rgb), 0.55);
  background: rgba(10, 10, 12, 0.8);
  color: #a6f0c6;
}

.pt-recording-badge svg {
  width: 12px;
  height: 12px;
  stroke-width: 3;
}

.pt-recording-duration {
  position: absolute;
  right: 10px;
  bottom: 14px;
  z-index: 1;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.74);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.pt-recording-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  height: 4px;
  background: rgba(255, 255, 255, 0.24);
}

.pt-recording-progress > span {
  display: block;
  min-width: 4px;
  height: 100%;
  border-radius: 0 2px 2px 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.pt-recording-open.is-unavailable .pt-recording-titlecard > span {
  visibility: hidden;
}

.pt-recording-open .pt-recording-unavailable {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 20px;
  background: rgba(5, 5, 7, 0.8);
  color: var(--text-2);
  font-size: 14px;
  text-align: center;
}

/* Designed title card when a session has no poster image. */
.pt-recording-titlecard {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  padding: 7% 7% 20%;
  overflow: hidden;
  background:
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.035) 0 2px, rgba(255, 255, 255, 0) 2px 16px),
    radial-gradient(120% 95% at 100% 0%, rgba(var(--accent-rgb), 0.5) 0%, rgba(var(--accent-rgb), 0) 62%),
    linear-gradient(140deg, rgba(var(--accent-rgb), 0.85) 0%, rgba(var(--accent-rgb), 0.24) 48%, #0c0c0f 100%);
  transition: transform 420ms ease;
}

.pt-recording-titlecard-photo {
  position: absolute;
  top: 0;
  right: 0;
  width: 52%;
  height: 100%;
  object-fit: cover;
  opacity: 0.94;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 48%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 48%);
}

.pt-recording-titlecard-eyebrow {
  position: relative;
  color: rgba(255, 255, 255, 0.84);
  font-size: 10px;
  font-size: clamp(9px, 3.6cqi, 12px);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.pt-recording-titlecard-title {
  position: relative;
  display: -webkit-box;
  max-width: 90%;
  overflow: hidden;
  color: #fff;
  font-family: var(--head);
  font-size: 26px;
  font-size: clamp(18px, 9.5cqi, 46px);
  line-height: 0.92;
  text-transform: uppercase;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.pt-recording-titlecard-photo ~ .pt-recording-titlecard-title {
  max-width: 58%;
}

.pt-recording-copy {
  min-width: 0;
  padding: 0 2px;
  overflow-wrap: anywhere;
}

.pt-recording-meta {
  margin: 0 0 6px;
  color: var(--accent-2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pt-recording-copy h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.32;
}

.pt-recording-speaker {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 9px 0 0;
  color: var(--text-2);
  font-size: 13.5px;
}

.pt-recording-avatars {
  display: inline-flex;
  flex-shrink: 0;
}

.pt-recording-avatar {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  overflow: hidden;
  border: 2px solid var(--bg);
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.28);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
}

.pt-recording-avatar + .pt-recording-avatar {
  margin-left: -9px;
}

.pt-recording-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pt-recording-description {
  display: -webkit-box;
  margin: 9px 0 0;
  overflow: hidden;
  color: var(--text-2);
  font-size: 13.5px;
  line-height: 1.55;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

@media (hover: hover) {
  button.pt-recording-open:hover,
  button.pt-continue-open:hover {
    border-color: rgba(var(--accent-rgb), 0.55);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(var(--accent-rgb), 0.25);
  }

  button.pt-recording-open:hover .pt-recording-img,
  button.pt-recording-open:hover .pt-recording-titlecard,
  button.pt-continue-open:hover .pt-recording-img,
  button.pt-continue-open:hover .pt-recording-titlecard {
    transform: scale(1.04);
  }

  button.pt-recording-open:hover .pt-recording-play,
  button.pt-continue-open:hover .pt-recording-play {
    background: var(--accent);
    transform: scale(1.08);
  }
}

/* Continue watching */

.pt-continue {
  display: grid;
  gap: 10px;
  width: 300px;
  min-width: 0;
}

.pt-continue-open {
  border-radius: 12px;
}

.pt-continue-open .pt-recording-play {
  left: 10px;
  bottom: 12px;
}

.pt-continue-open .pt-recording-titlecard-eyebrow {
  display: none;
}

.pt-continue-copy {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}

.pt-continue-copy > div {
  display: grid;
  flex: 1;
  gap: 2px;
  min-width: 0;
}

.pt-continue-copy strong {
  overflow: hidden;
  font-size: 14.5px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pt-continue-copy span {
  color: var(--muted);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}

.pt-continue-remove {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: -9px -8px 0 0;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--muted);
  cursor: pointer;
}

.pt-continue-remove:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.pt-continue-remove svg {
  width: 18px;
  height: 18px;
}

/* Search, filters and sort */

.pt-recordings-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr) auto;
  grid-template-areas:
    "search . sort"
    "chips chips chips";
  align-items: center;
  gap: 14px 16px;
  margin: 6px 0 18px;
}

.pt-recordings-search {
  position: relative;
  display: block;
  grid-area: search;
  min-width: 0;
}

.pt-recordings-search svg {
  position: absolute;
  top: 50%;
  left: 15px;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  color: var(--muted);
  pointer-events: none;
}

.pt-recordings-search input {
  width: 100%;
  min-height: 46px;
  padding: 10px 16px 10px 42px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  color-scheme: dark;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.pt-recordings-search input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.pt-recordings-search input:focus {
  outline: none;
  border-color: rgba(var(--accent-rgb), 0.8);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.16);
}

.pt-recordings-chips {
  display: flex;
  flex-wrap: wrap;
  grid-area: chips;
  gap: 8px;
  min-width: 0;
  padding: 2px;
}

.pt-recordings-chips::-webkit-scrollbar {
  display: none;
}

.pt-recordings-chips .pt-chip {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
  white-space: nowrap;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease;
}

.pt-recordings-chips .pt-chip:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--text);
}

.pt-recordings-chips .pt-chip[aria-pressed="true"] {
  border-color: transparent;
  background: var(--text);
  color: #0b0b0d;
}

.pt-recordings-sort {
  display: flex;
  grid-area: sort;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.pt-recordings-sort select {
  min-height: 44px;
  padding: 8px 38px 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  appearance: none;
  color-scheme: dark;
}

.pt-recordings-none {
  padding: 44px 20px;
}

.pt-recordings-privacy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  margin: 44px 0 0;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-2);
  font-size: 13.5px;
}

.pt-recordings-privacy > svg {
  color: var(--accent-2);
}

.pt-recordings-privacy p {
  flex: 1 1 220px;
  margin: 0;
}

.pt-recordings-privacy .pt-link {
  min-height: 44px;
  font-size: 13.5px;
}

/* Theater: a native modal <dialog>; centred 16:9 player above 620px, a full-screen sheet below. */

body.pt-theater-locked {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden;
}

.pt-theater {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: max(24px, env(safe-area-inset-top, 0px)) max(24px, env(safe-area-inset-right, 0px)) max(24px, env(safe-area-inset-bottom, 0px)) max(24px, env(safe-area-inset-left, 0px));
  overflow: hidden;
  border: 0;
  background: transparent;
  color: var(--text);
}

.pt-theater:not([open]) {
  display: none;
}

.pt-theater[open] {
  display: grid;
  place-items: center;
}

.pt-theater::backdrop {
  background: rgba(3, 3, 5, 0.86);
  backdrop-filter: blur(10px);
}

.pt-theater.is-fallback {
  z-index: 90;
  background: rgba(3, 3, 5, 0.94);
}

.pt-theater-sheet {
  display: flex;
  flex-direction: column;
  width: min(1100px, 100%, max(560px, calc((100vh - 150px) * 16 / 9)));
  width: min(1100px, 100%, max(560px, calc((100dvh - 150px) * 16 / 9)));
  max-height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface) 70%);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7);
  animation: pt-theater-in 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes pt-theater-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
}

.pt-theater-top {
  flex-shrink: 0;
  background: var(--surface-2);
}

.pt-theater-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 8px 8px 10px;
}

.pt-theater-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 14px 0 8px;
  border: 0;
  border-radius: 12px;
  background: none;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.pt-theater-back:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.pt-theater-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.pt-theater-close:hover {
  background: rgba(255, 255, 255, 0.14);
}

.pt-theater-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}

.pt-theater-stage iframe,
.pt-theater-stage video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}

.pt-recording-loading,
.pt-recording-playback-error,
.pt-theater-note {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 0;
  padding: 24px;
  color: var(--text-2);
  font-size: 14px;
  text-align: center;
  overflow-wrap: anywhere;
}

.pt-recording-playback-error,
.pt-theater-note {
  background: rgba(5, 5, 7, 0.9);
  color: var(--text);
}

.pt-recording-playback-error p,
.pt-theater-note span {
  max-width: 46ch;
  margin: 0;
}

.pt-theater-body {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, 1fr);
  gap: 28px;
  padding: 24px 28px 30px;
}

.pt-theater-info,
.pt-theater-side {
  min-width: 0;
  overflow-wrap: anywhere;
}

.pt-theater-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 0 0 16px;
  padding: 10px 14px;
  border: 1px solid rgba(237, 99, 42, 0.35);
  border-radius: 12px;
  background: rgba(237, 99, 42, 0.1);
  color: var(--text-2);
  font-size: 12.5px;
}

.pt-theater-preview strong {
  color: var(--text);
}

.pt-theater-eyebrow {
  margin: 0 0 8px;
  color: var(--accent-2);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pt-theater-info h2 {
  margin: 0;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.pt-theater-speakers {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 0;
  font-size: 14.5px;
  font-weight: 600;
}

.pt-theater-speakers .pt-recording-avatar {
  width: 34px;
  height: 34px;
  border-color: var(--surface-2);
}

.pt-theater-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 14px 0 0;
  color: var(--text-2);
  font-size: 13px;
}

.pt-theater-meta > span:not(.pt-recording-badge) + span:not(.pt-recording-badge)::before {
  content: "·";
  margin-right: 8px;
  color: var(--muted);
}

.pt-theater-resume {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin: 16px 0 0;
  padding: 4px 14px;
  border: 1px solid rgba(var(--accent-rgb), 0.3);
  border-radius: 12px;
  background: rgba(var(--accent-rgb), 0.1);
  font-size: 13.5px;
}

.pt-theater-resume > svg {
  width: 16px;
  height: 16px;
  color: var(--accent-2);
}

.pt-theater-resume .pt-link {
  min-height: 44px;
}

.pt-theater-description {
  margin: 18px 0 0;
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.7;
  white-space: pre-line;
}

.pt-recording-help {
  margin: 0;
  padding: 14px 0 0;
  color: var(--text-2);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.pt-recording-help a {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-height: 44px;
  text-underline-offset: 3px;
}

.pt-recording-help svg {
  width: 14px;
  height: 14px;
}

.pt-theater-side {
  display: grid;
  align-content: start;
  gap: 24px;
}

.pt-theater-section h3 {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pt-theater-chapters {
  display: grid;
  gap: 2px;
  max-height: 320px;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  list-style: none;
}

.pt-theater-chapters button {
  display: flex;
  align-items: baseline;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--text-2);
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.pt-theater-chapters button:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.pt-theater-chapters button[aria-current="true"] {
  background: rgba(var(--accent-rgb), 0.15);
  color: var(--text);
  box-shadow: inset 3px 0 0 var(--accent-2);
}

.pt-theater-chapter-time {
  flex: 0 0 auto;
  min-width: 48px;
  color: var(--accent-2);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.pt-theater-handouts {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pt-theater-handouts a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.pt-theater-handouts a:hover {
  border-color: rgba(var(--accent-rgb), 0.55);
  background: rgba(var(--accent-rgb), 0.08);
}

.pt-theater-handouts a > svg:first-child {
  color: var(--accent-2);
}

.pt-theater-handouts a span {
  flex: 1;
  min-width: 0;
}

.pt-theater-handouts a > svg:last-child {
  width: 16px;
  height: 16px;
  color: var(--muted);
}

.pt-theater-next {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.pt-theater-next.is-highlighted {
  border-color: rgba(var(--accent-rgb), 0.7);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.16), 0 18px 40px rgba(var(--accent-rgb), 0.12);
}

.pt-theater-next-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.pt-theater-next-art {
  border-radius: 10px;
}

.pt-theater-next-art .pt-recording-titlecard {
  padding: 8% 8% 10%;
}

.pt-theater-next-art .pt-recording-titlecard-eyebrow {
  display: none;
}

.pt-theater-next-card strong {
  display: block;
  font-size: 14px;
  line-height: 1.3;
}

.pt-theater-next-card span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12.5px;
}

.pt-theater-next-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.pt-theater-next-actions .pt-btn {
  min-height: 44px;
}

.pt-theater-next-actions .pt-btn svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 960px) {
  .pt-recordings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 16px;
  }

  .pt-recordings-hero-copy {
    max-width: 78%;
    padding: 32px;
  }

  .pt-theater-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
}

@media (max-width: 620px) {
  .pt-recordings-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .pt-recordings-hero {
    margin: 0 0 28px;
    border-radius: 18px;
  }

  .pt-recordings-hero-art,
  .pt-recordings-hero-copy {
    grid-area: auto;
  }

  .pt-recordings-hero-art {
    min-height: 0;
    max-height: none;
  }

  .pt-recordings-hero-art::after {
    background: linear-gradient(0deg, var(--surface) 0%, rgba(14, 14, 16, 0) 60%);
  }

  .pt-recordings-hero-copy {
    max-width: none;
    margin-top: -44px;
    padding: 0 18px 20px;
    gap: 12px;
  }

  .pt-recordings-hero h2 {
    font-size: clamp(34px, 10.5vw, 46px);
  }

  .pt-recordings-hero-actions .pt-btn {
    flex: 1 1 auto;
  }

  .pt-recordings-row {
    margin: -4px -16px 0;
    padding: 4px 16px 12px;
    scroll-padding-inline: 16px;
    gap: 12px;
  }

  .pt-recordings-row-nav {
    display: none;
  }

  .pt-continue {
    width: min(76vw, 300px);
  }

  .pt-recordings-row.is-shelf > .pt-recording {
    width: min(82vw, 320px);
  }

  .pt-recordings-toolbar {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "search"
      "chips"
      "sort";
  }

  /* Phones: one swipeable chip row that bleeds to the screen edges. */
  .pt-recordings-chips {
    flex-wrap: nowrap;
    margin: 0 -16px;
    padding: 2px 16px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .pt-recordings-sort {
    justify-content: space-between;
  }

  .pt-recordings-sort select,
  .pt-recordings-conference select {
    font-size: 16px;
  }

  .pt-recording-copy h2 {
    font-size: 18px;
  }

  .pt-theater {
    padding: 0;
  }

  .pt-theater-sheet {
    width: 100%;
    height: 100%;
    max-height: none;
    border: 0;
    border-radius: 0;
    background: var(--surface);
    animation-name: pt-theater-up;
  }

  .pt-theater-top {
    position: sticky;
    top: 0;
    z-index: 2;
    padding-top: env(safe-area-inset-top, 0px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  }

  .pt-theater-body {
    padding: 20px max(16px, env(safe-area-inset-right, 0px)) calc(28px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  }
}

@keyframes pt-theater-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pt-recordings-row,
  .pt-recordings-chips {
    scroll-behavior: auto;
  }

  button.pt-recording-open:hover .pt-recording-img,
  button.pt-recording-open:hover .pt-recording-titlecard,
  button.pt-continue-open:hover .pt-recording-img,
  button.pt-continue-open:hover .pt-recording-titlecard {
    transform: none;
  }
}

.pt-skel {
  border-radius: 16px;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.04) 30%, rgba(255, 255, 255, 0.09) 50%, rgba(255, 255, 255, 0.04) 70%);
  background-size: 300% 100%;
  animation: pt-shimmer 1.3s ease-in-out infinite;
}

@keyframes pt-shimmer {
  from { background-position: 100% 0; }
  to { background-position: 0 0; }
}

/* ---------- Orders ---------- */

.pt-orders {
  display: grid;
  gap: 12px;
}

.pt-order {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
}

.pt-order-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-2);
}

.pt-order strong {
  display: block;
  font-size: 15.5px;
}

.pt-order span.pt-order-sub {
  color: var(--muted);
  font-size: 13.5px;
}

.pt-order-total {
  font-size: 17px;
  font-weight: 800;
  text-align: right;
}

.pt-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 13.5px;
}

/* ---------- Profile ---------- */

.pt-profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.pt-dl {
  display: grid;
  gap: 0;
  margin: 0;
}

.pt-dl div {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.pt-dl div:last-child {
  border-bottom: 0;
}

.pt-dl dt {
  color: var(--muted);
  font-size: 13.5px;
}

.pt-dl dd {
  margin: 0;
  font-size: 14.5px;
  font-weight: 600;
  word-break: break-word;
}

.pt-card h2 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.pt-card-sub {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.pt-requests {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.pt-request {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}

.pt-request-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 12.5px;
}

.pt-request p {
  margin: 0;
  font-size: 14px;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ---------- Lightbox ---------- */

.pt-lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background: rgba(4, 4, 6, 0.96);
  backdrop-filter: blur(10px);
  animation: pt-fade 160ms ease;
}

@keyframes pt-fade {
  from { opacity: 0; }
}

.pt-lb-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 18px 12px;
}

.pt-lb-info {
  min-width: 0;
}

.pt-lb-info strong {
  display: block;
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pt-lb-info span {
  color: var(--muted);
  font-size: 13px;
}

.pt-lb-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pt-lb-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.pt-lb-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.pt-lb-btn[aria-pressed="true"] {
  border-color: rgba(255, 77, 94, 0.6);
  background: rgba(255, 77, 94, 0.18);
  color: #ff8a96;
}

.pt-lb-close {
  width: 42px;
  padding: 0;
  justify-content: center;
}

.pt-lb-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 0 72px calc(24px + env(safe-area-inset-bottom, 0px));
  touch-action: pan-y;
}

.pt-lb-stage img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  transition: opacity 200ms ease;
}

.pt-lb-stage img.is-loading {
  opacity: 0.35;
  filter: blur(6px);
}

.pt-lb-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -14px 0 0 -14px;
}

.pt-lb-nav {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-top: -24px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.pt-lb-nav:hover {
  background: rgba(255, 255, 255, 0.14);
}

.pt-lb-nav:disabled {
  opacity: 0.25;
  cursor: default;
}

.pt-lb-prev {
  left: 14px;
}

.pt-lb-next {
  right: 14px;
}

/* ---------- Receipt ---------- */

.pt-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
  animation: pt-fade 160ms ease;
  overflow-y: auto;
}

.pt-modal-card {
  width: min(680px, 100%);
  margin: auto;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background: var(--surface-2);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.pt-modal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px 12px 20px;
  border-bottom: 1px solid var(--line);
}

.pt-modal-bar > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pt-receipt {
  padding: 36px;
  background: #fff;
  color: #111827;
  font-size: 14px;
}

.pt-receipt-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 22px;
  border-bottom: 2px solid #111827;
}

.pt-receipt-head img {
  width: 120px;
  height: auto;
  filter: brightness(0);
}

.pt-receipt-head h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  text-align: right;
}

.pt-receipt-head p {
  margin: 2px 0 0;
  color: #6b7280;
  text-align: right;
}

.pt-receipt-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 20px 0;
}

.pt-receipt-cols h4 {
  margin: 0 0 6px;
  color: #6b7280;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pt-receipt-cols p {
  margin: 0;
  line-height: 1.55;
}

.pt-receipt table {
  width: 100%;
  border-collapse: collapse;
}

.pt-receipt th {
  padding: 10px 0;
  border-bottom: 1px solid #e5e7eb;
  color: #6b7280;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: left;
  text-transform: uppercase;
}

.pt-receipt td {
  padding: 12px 0;
  border-bottom: 1px solid #f1f2f4;
}

.pt-receipt .num {
  text-align: right;
  white-space: nowrap;
}

.pt-receipt-totals {
  display: grid;
  justify-content: end;
  gap: 6px;
  margin-top: 16px;
}

.pt-receipt-totals div {
  display: grid;
  grid-template-columns: 160px 110px;
  gap: 12px;
}

.pt-receipt-totals span:last-child {
  text-align: right;
}

.pt-receipt-totals .is-total {
  padding-top: 10px;
  border-top: 2px solid #111827;
  font-size: 17px;
  font-weight: 800;
}

.pt-receipt-foot {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.6;
}

/* ---------- Ticket transfer ---------- */

.pt-xfer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 14px 26px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.pt-xfer.is-pending {
  border-top-color: rgba(var(--accent-rgb), 0.3);
  background: rgba(var(--accent-rgb), 0.08);
}

.pt-xfer-text {
  display: grid;
  flex: 1 1 260px;
  gap: 2px;
  min-width: 0;
}

.pt-xfer-text strong {
  font-size: 14px;
}

.pt-xfer-text span {
  color: var(--muted);
  font-size: 13.5px;
}

.pt-xfer-text .pt-xfer-dev {
  margin-top: 6px;
  color: #f7dd92;
}

.pt-xfer-dev a {
  color: #fff;
  font-weight: 700;
}

.pt-xfer .pt-btn svg {
  width: 16px;
  height: 16px;
}

.pt-modal-sm {
  width: min(480px, 100%);
}

.pt-modal-body {
  padding: 22px 22px 24px;
}

.pt-field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}

.pt-field input[readonly] {
  opacity: 0.7;
  cursor: default;
}

.pt-steps {
  display: grid;
  gap: 6px;
  margin: 2px 0 20px;
  padding: 0 0 0 18px;
  color: var(--text-2);
  font-size: 13.5px;
}

.pt-claim-wait {
  display: grid;
  place-items: center;
  min-height: 240px;
}

.pt-claim-icon {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: rgba(255, 107, 107, 0.12);
  color: var(--danger);
}

.pt-claim-icon.is-ok {
  background: rgba(var(--ok-rgb), 0.14);
  color: var(--ok);
}

.pt-claim-icon svg {
  width: 24px;
  height: 24px;
}

.pt-auth-card .pt-auth-sub + .pt-btn {
  margin-top: 8px;
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .pt-auth {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
    align-content: start;
    padding: 28px 0 40px;
  }

  .pt-auth-brand .pt-logo {
    margin-bottom: 24px;
  }

  .pt-display {
    font-size: clamp(56px, 16vw, 96px);
  }

  .pt-perks {
    display: none;
  }

  .pt-auth-card {
    justify-self: stretch;
    max-width: none;
  }

  .pt-home-grid,
  .pt-profile-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 820px) {
  .pt {
    --top: 60px;
  }

  .pt-nav,
  .pt-avatar-name,
  .pt-avatar-btn > svg {
    display: none;
  }

  .pt-avatar-btn {
    padding: 4px;
  }

  .pt-main {
    padding: 24px 0 calc(110px + env(safe-area-inset-bottom, 0px));
  }

  .pt-tabbar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 45;
    display: grid;
    grid-auto-columns: minmax(0, 1fr);
    grid-auto-flow: column;
    padding: 6px;
    border: 1px solid var(--line-strong);
    border-radius: 22px;
    background: rgba(16, 16, 19, 0.92);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
    backdrop-filter: saturate(160%) blur(18px);
  }

  .pt-tabbar a {
    display: grid;
    justify-items: center;
    gap: 3px;
    padding: 7px 2px 6px;
    border-radius: 16px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
  }

  .pt-tabbar a.is-active {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
  }

  .pt-tabbar a.is-active svg {
    color: var(--accent-2);
  }

  .pt-ticket-main {
    grid-template-columns: minmax(0, 1fr);
  }

  .pt-qr {
    order: -1;
  }

  .pt-qr-box img {
    width: 180px;
    height: 180px;
  }

  .pt-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .pt-grid-wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pt-photo-bar {
    opacity: 1;
    padding: 28px 8px 8px;
  }

  .pt-photo-bar span {
    display: none;
  }

  .pt-photo-dl {
    width: 32px;
    height: 32px;
    margin-left: auto;
  }

  .pt-order {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .pt-order .pt-btn {
    grid-column: 1 / -1;
  }

  .pt-lb-btn span {
    display: none;
  }

  .pt-lb-btn {
    width: 42px;
    padding: 0;
    justify-content: center;
  }

  .pt-lb-stage {
    padding: 0 0 calc(16px + env(safe-area-inset-bottom, 0px));
  }

  .pt-lb-nav {
    display: none;
  }

  .pt-lb-stage img {
    border-radius: 0;
  }

  .pt-receipt {
    padding: 22px;
  }

  .pt-receipt-cols {
    grid-template-columns: 1fr;
  }

  .pt-dl div {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
}

@media (max-width: 420px) {
  .pt-auth-card {
    padding: 26px 20px;
  }

  .pt-otp {
    gap: 6px;
  }

  .pt-otp input {
    height: 54px;
    font-size: 22px;
  }

  .pt-ticket-name {
    font-size: 36px;
  }

  .pt-field-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .pt-xfer {
    padding: 14px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pt *,
  .pt *::before,
  .pt *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  body.pt-printing > *:not(#ptReceipt) {
    display: none !important;
  }

  body.pt-printing {
    background: #fff !important;
  }

  body.pt-printing #ptReceipt {
    position: static;
    display: block;
    padding: 0;
    background: none;
    backdrop-filter: none;
  }

  body.pt-printing .pt-modal-card {
    width: 100%;
    border: 0;
    box-shadow: none;
  }

  body.pt-printing .pt-modal-bar {
    display: none;
  }

  body.pt-printing .pt-receipt {
    padding: 0;
  }
}
