
/* ==========================================================================
   Pay Per Patent - report page styles

   Class prefix `ppr-` (distinct from `ppp-` on the landing page) so the two
   stylesheets can co-exist when both are loaded together.
   ========================================================================== */

.ppr-body {
    background: #f4f7fb;
}

/* Header - re-uses .ppp-header but on the report page we want it solid navy

   instead of transparent, so override the background here. */
.ppr-header {
    background: var(--ppp-color-bg-dark);
}

/* ---------- Hero strip (title + meta line on dark blue) ---------- */
.ppr-hero {
    background: var(--ppp-color-bg-dark);
    color: #ffffff;
    padding: 120px 0 85px;
    position: relative;
}

.ppr-hero__badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 18px;
    letter-spacing: 0.3px;
}
/* 165864 - Status-driven badge tints. The default white-on-translucent base
   above is used for "Pending" and unknown statuses. */
.ppr-hero__badge--patented { background: rgba(46, 204, 113, 0.22); color: #d4f7e0; }
.ppr-hero__badge--abandoned { background: rgba(231, 76, 60, 0.24); color: #ffd6cf; }
.ppr-hero__badge--expired { background: rgba(149, 165, 166, 0.30); color: #e6eaec; }
.ppr-hero__badge--pending { background: rgba(241, 196, 15, 0.22); color: #ffe9a8; }

/* 165864 - Per-card "explore in dedicated tool" affordance.
   Magnifier icon sits next to the card heading; a dark-blue gradient
   popover appears on hover/focus with a "Click here" link that opens
   the matching TIP app page in a new tab. Hidden while the report is
   still locked. The popover is hidden by default; revealed when the
   wrapper is hovered or focused. */
.ppr-explore {
    position: relative;
    display: none;
    align-items: center;
    color: #5a7cff;
    cursor: pointer;
    outline: none;
    vertical-align: middle;
}
body.is-paid .ppr-explore { display: inline-flex; }
.ppr-explore.ppr-explore--hidden { display: none !important; }

/* 165864 - Inline row holding a value + its explore magnifier (used in the
   Examiner, Prosecutor and Law firm cards). */
.ppr-kv__row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.ppr-explore__icon {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    stroke-width: 2.2;
    transition: color 0.15s ease;
}
.ppr-explore:hover .ppr-explore__icon,
.ppr-explore:focus-visible .ppr-explore__icon { color: #1a4dff; }
.ppr-explore__popover {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 20;
    min-width: 320px;
    max-width: 380px;
    padding: 12px 16px 12px 40px;
    background: linear-gradient(135deg, #0b2746 0%, #143a6b 100%);
    color: #ffffff;
    font-size: 13px;
    line-height: 1.5;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(11, 39, 70, 0.35);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s linear 0.15s;
    pointer-events: none;
}
.ppr-explore__popover::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 14px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10'/><line x1='12' y1='16' x2='12' y2='12'/><line x1='12' y1='8' x2='12.01' y2='8'/></svg>");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px 14px;
}
.ppr-explore:hover .ppr-explore__popover,
.ppr-explore:focus-within .ppr-explore__popover,
.ppr-explore:focus-visible .ppr-explore__popover {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s linear 0s;
}
.ppr-explore__link {
    color: #6db8ff;
    text-decoration: underline;
    font-weight: 600;
}
.ppr-explore__link:hover { color: #ffffff; }
/* Disabled state: when the underlying value isn't in the data, JS adds
   `is-disabled` so the link doesn't navigate to a broken URL. */
.ppr-explore__link.is-disabled {
    color: rgba(255, 255, 255, 0.45);
    pointer-events: none;
    text-decoration: none;
}

.ppr-hero__title {
    font-size: clamp(24px, 3vw, 36px);
    line-height: 1.2;
    font-weight: 800;
    margin: 0 0 14px;
}

.ppr-hero__meta {
    margin: 0;
    font-size: 15px;
    opacity: 0.9;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ppr-hero__meta strong {
    font-weight: 700;
    color: #ffffff;
    margin-left: 4px;
}

.ppr-hero__sep {
    opacity: 0.5;
}

/* ---------- Body sits beneath the hero with the ID card overlapping ---- */
.ppr-main {
    min-height: 60vh;
	background: var(--ppp-color-light-bg);
}

.ppr-body-section {
    padding: 0 0 60px;
    margin-top: -70px;
    position: relative;
}

/* ---------- ID card (Application/Publication/Patent/Inventors) ---------- */
.ppr-id-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 22px 28px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    box-shadow: 0 10px 28px rgba(8, 35, 65, 0.10);
    margin-bottom: 22px;
}

.ppr-id-card__col {
    min-width: 0;
}

.ppr-id-card__label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--ppp-color-text-muted);
    margin-bottom: 8px;
}

.ppr-id-card__value {
    font-size: 16px;
    font-weight: 700;
    color: var(--ppp-color-text-dark);
    word-break: break-word;
}

/* ---------- Unlock banner ---------- */
.ppr-unlock {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--ppp-color-icon-bg);
    border: 1px solid #cfe9fa;
    border-radius: 12px;
    padding: 16px 22px;
    margin-bottom: 26px;
}

.ppr-unlock__icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--ppp-color-primary);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ppr-unlock__icon svg {
    width: 18px;
    height: 18px;
}

.ppr-unlock__copy {
    flex: 1;
    min-width: 0;
}

.ppr-unlock__title {
    font-size: 15px;
    font-weight: 800;
    color: var(--ppp-color-text-dark);
}

.ppr-unlock__sub {
    font-size: 13px;
    color: var(--ppp-color-text-muted);
    margin-top: 2px;
}

.ppr-unlock__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
}

.ppr-unlock__cta {
    background: var(--ppp-color-primary);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 13px;
    padding: 10px 20px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
	border:none;
}

.ppr-unlock__cta:hover {
    background: var(--ppp-color-bg-dark);
}

.ppr-unlock__sample {
    font-size: 12px;
    color: var(--ppp-color-text-muted);
    text-decoration: underline;
}

.ppr-unlock__sample:hover {
    color: var(--ppp-color-primary);
}

/* ---------- Locked cards grid ---------- */
.ppr-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.ppr-card {
    background: #ffffff;
    border-radius: 14px;
    /* 165864 - compact mode: tighter padding so the stat cards aren't tall */
    padding: 20px 24px 22px;
    box-shadow: 0 2px 10px rgba(8, 35, 65, 0.04);
    border: 1px solid #e8edf3;
}

.ppr-card--wide {
    grid-column: 1 / -1;
}

.ppr-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* 165864 - compact mode */
    margin-bottom: 16px;
}

.ppr-card__head h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: #0B2545;
    letter-spacing: -0.1px;
}

.ppr-card__lock {
    width: 18px;
    height: 18px;
    color: #0B2545;
    stroke-width: 1.8;
}

.ppr-card__body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ppr-card__body--cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 24px;
}

.ppr-card__body--stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.ppr-stat {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ---------- Skeleton bars (blurred placeholder content) ---------- */
.ppr-card__locked {
    display: flex;
    flex-direction: column;
    gap: 20px;
    filter: blur(6px);
    -webkit-filter: blur(6px);
    user-select: none;
    pointer-events: none;
}

.ppr-card__locked.ppr-card__body--cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 28px;
}

/* 166240 - #10 locked teaser for Examiner/Prosecutor: keep the field headings
   sharp and blur only the (dummy) values. Overrides the whole-card blur the
   base .ppr-card__locked applies; user-select/pointer-events stay off so the
   placeholder text can't be selected or inspected as real data. */
.ppr-card__locked--headings {
    display: block;
    filter: none;
    -webkit-filter: none;
    gap: 0;
}
.ppr-card__locked--headings .ppr-blur-value {
    filter: blur(5px);
    -webkit-filter: blur(5px);
    user-select: none;
}
.ppr-card__locked.ppr-card__body--stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px 24px;
}

.ppr-skel {
    height: 16px;
    border-radius: 10px;
    background: #d6dde7;
}

.ppr-skel--w40 { width: 40%; }
.ppr-skel--w45 { width: 45%; }
.ppr-skel--w50 { width: 50%; }
.ppr-skel--w55 { width: 55%; }
.ppr-skel--w60 { width: 60%; }
.ppr-skel--w65 { width: 65%; }
.ppr-skel--w70 { width: 70%; }
.ppr-skel--w75 { width: 75%; }
.ppr-skel--w80 { width: 80%; }
.ppr-skel--w85 { width: 85%; }
.ppr-skel--w90 { width: 90%; }

/* ---------- Locked-state shape-aware placeholders ---------- */
/* Timeline: axis + staggered event boxes (mirrors .ppr-default-timeline) */
.ppr-card__locked.ppr-locked-timeline {
    display: block;
    position: relative;
    height: 220px;
    padding: 8px 8px 24px;
}

.ppr-locked-timeline__track {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 55%;
    height: 4px;
    background: #d6dde7;
    border-radius: 2px;
}

.ppr-locked-timeline__event {
    position: absolute;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.ppr-locked-timeline__box {
    width: 110px;
    height: 40px;
    border-radius: 8px;
    background: #d6dde7;
}

.ppr-locked-timeline__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d6dde7;
}

.ppr-locked-timeline__ticks {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 6px;
    display: flex;
    justify-content: space-between;
}

.ppr-locked-timeline__tick {
    width: 32px;
    height: 12px;
    border-radius: 4px;
    background: #d6dde7;
}

/* Family tree: per-row number + type + badge (mirrors .ppr-family__row) */
.ppr-card__locked.ppr-locked-family-tree {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ppr-locked-family-tree__node {
    position: relative;
    width: 150px;
    height: 46px;
    border-radius: 8px;
    background: #d6dde7;
}

.ppr-locked-family-tree__node--root { width: 190px; }

.ppr-locked-family-tree__row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    align-items: center;
    gap: 16px;
}

.ppr-locked-family-tree__trunk {
    width: 3px;
    height: 22px;
    background: #d6dde7;
}

.ppr-locked-family-tree__branch {
    width: 66%;
    height: 3px;
    background: #d6dde7;
}

.ppr-locked-family-tree__children {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-top: 22px;
}

/* vertical drop connecting the branch down to each child node */
.ppr-locked-family-tree__children .ppr-locked-family-tree__node::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -22px;
    width: 3px;
    height: 22px;
    background: #d6dde7;
    transform: translateX(-50%);
}

.ppr-locked-family-tree__badge {
    width: 72px;
    height: 22px;
    border-radius: 999px;
    background: #d6dde7;
}

/* Continuity: per-row label + horizontal gantt bar (mirrors .ppr-timeline) */
.ppr-card__locked.ppr-locked-continuity {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ppr-locked-continuity__row {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 16px;
    align-items: center;
}

.ppr-locked-continuity__label {
    height: 14px;
    border-radius: 6px;
    background: #d6dde7;
}

.ppr-locked-continuity__track {
    position: relative;
    height: 14px;
    border-radius: 7px;
    background: #eef1f5;
}

.ppr-locked-continuity__bar {
    position: absolute;
    top: 0;
    bottom: 0;
    background: #d6dde7;
    border-radius: 7px;
}

/* ---------- Loading & error states ---------- */
.ppr-loading {
    background: var(--ppp-color-bg-dark);
    color: #ffffff;
    padding: 150px 0;
}

.ppr-loading__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    font-size: 14px;
    opacity: 0.85;
}

.ppr-spinner {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.18);
    border-top-color: var(--ppp-color-primary);
    animation: ppr-spin 0.9s linear infinite;
}

@keyframes ppr-spin {
    to { transform: rotate(360deg); }
}

/* 165864 - Post-payment overlay loader. Shown while /full-report/ is being
   polled after the Stripe popup closes so the user sees a clear "working"
   state instead of an empty unlocked report card. */
.ppr-report-fetching {
    position: fixed;
    inset: 0;
    background: rgba(10, 34, 64, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}
/* `display: flex` above wins over the UA stylesheet's `[hidden] { display: none }`,
   so without this override the overlay leaks onto the locked preview on every
   page load. Restore the hidden behavior at higher specificity. */
.ppr-report-fetching[hidden] {
    display: none;
}

.ppr-report-fetching__card {
    background: #ffffff;
    color: #0a2240;
    padding: 28px 36px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    min-width: 260px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
}

.ppr-report-fetching .ppr-spinner {
    border-color: rgba(10, 34, 64, 0.15);
    border-top-color: var(--ppp-color-primary);
}

.ppr-report-fetching__msg {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
}

.ppr-report-fetching__sub {
    margin: 0;
    font-size: 12px;
    color: #6b7c8c;
}

/* 165864 - Background-processing takeover. Reuses the .ppr-report-fetching
   overlay base (full-screen dim + centering + [hidden] override) and only
   restyles the inner card into the "come back later" panel. */
.ppr-bg-processing__card {
    position: relative;
    max-width: 460px;
    text-align: center;
    padding: 32px 36px;
    gap: 14px;
}

.ppr-bg-processing__close {
    position: absolute;
    top: 10px;
    right: 10px;
}

.ppr-bg-processing__icon {
    font-size: 40px;
    line-height: 1;
}

.ppr-bg-processing__title {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: #0a2240;
}

.ppr-bg-processing__msg {
    margin: 0;
    font-size: 13px;
    line-height: 20px;
    color: #5f676b;
}

.ppr-bg-processing__label {
    margin: 6px 0 0;
    font-size: 12px;
    font-weight: 700;
    color: #0a2240;
}

.ppr-bg-processing__url-row {
    display: flex;
    width: 100%;
    gap: 8px;
}

.ppr-bg-processing__url-row[hidden] {
    display: none;
}

.ppr-bg-processing__url {
    flex: 1 1 auto;
    min-width: 0;
    padding: 9px 10px;
    font-size: 12px;
    color: #0a2240;
    border: 1px solid #d9e0e7;
    border-radius: 6px;
    background: #f6f8fa;
}

.ppr-bg-processing__copy {
    flex: 0 0 auto;
    white-space: nowrap;
}

.ppr-bg-processing__note {
    margin: 0;
    font-size: 12px;
    line-height: 18px;
    color: #6b7c8c;
}

.ppr-bg-processing__reload {
    margin-top: 4px;
    background: none;
    border: none;
    padding: 4px 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--ppp-color-primary);
    cursor: pointer;
}

.ppr-bg-processing__reload:hover {
    text-decoration: underline;
}

.ppr-error {
    background: var(--ppp-color-bg-dark);
    color: #ffffff;
    padding: 150px 0 60px;
}

.ppr-error__card {
    background: #ffffff;
    color: var(--ppp-color-text-dark);
    border-radius: 12px;
    padding: 40px 32px;
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
    box-shadow: 0 10px 28px rgba(8, 35, 65, 0.16);
}

.ppr-error__card h2 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 800;
}

.ppr-error__card p {
    margin: 0 0 22px;
    color: var(--ppp-color-text-muted);
    font-size: 14px;
}

.ppr-error__cta {
    display: inline-flex;
}

/* ==========================================================================
   Toast notifications (bottom-right, slide in, auto-dismiss)
   ========================================================================== */
.ppr-toasts {
    position: fixed;
    right: 24px;
    top: 24px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.ppr-toast {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 280px;
    max-width: 380px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid var(--ppp-color-border);
    box-shadow: 0 16px 40px rgba(8, 35, 65, 0.18);
    transform: translateY(-20px);
    opacity: 0;
    animation: ppr-toast-in 0.28s cubic-bezier(0.2, 0.8, 0.25, 1) forwards;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.ppr-toast.is-leaving {
    opacity: 0;
    transform: translateY(-20px);
}

.ppr-toast__icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ppr-toast__icon svg { width: 18px; height: 18px; }

.ppr-toast__body { flex: 1; min-width: 0; }

.ppr-toast__title {
    font-size: 14px;
    font-weight: 800;
    color: var(--ppp-color-text-dark);
    line-height: 1.3;
}

.ppr-toast__sub {
    font-size: 12px;
    color: var(--ppp-color-text-muted);
    margin-top: 2px;
    line-height: 1.4;
}

.ppr-toast__close {
    flex-shrink: 0;
    background: transparent;
    border: 0;
    color: #9aa6b6;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.ppr-toast__close:hover {
    background: #f4f7fb;
    color: var(--ppp-color-text-dark);
}

.ppr-toast__close svg { width: 14px; height: 14px; }

.ppr-toast--success .ppr-toast__icon { background: #e3fbed; color: #1f9d54; }
.ppr-toast--error   .ppr-toast__icon { background: #ffe9ec; color: #d33646; }
.ppr-toast--info    .ppr-toast__icon { background: rgba(1, 168, 244, 0.12); color: var(--ppp-color-primary); }

.ppr-toast::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 3px;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    background: currentColor;
    opacity: 0.25;
    transform-origin: left;
    animation: ppr-toast-progress var(--ppr-toast-duration, 4000ms) linear forwards;
}

.ppr-toast { position: relative; overflow: hidden; }

.ppr-toast--success::after { color: #1f9d54; }
.ppr-toast--error::after   { color: #d33646; }
.ppr-toast--info::after    { color: var(--ppp-color-primary); }

@keyframes ppr-toast-in {
    to { transform: translateY(0); opacity: 1; }
}

@keyframes ppr-toast-progress {
    from { transform: scaleX(1); }
    to   { transform: scaleX(0); }
}

@keyframes ppr-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 480px) {
    .ppr-toasts { left: 16px; right: 16px; top: 16px; }
    .ppr-toast  { min-width: 0; max-width: none; }
}

/* ==========================================================================
   Post-Stripe-redirect payment banner
   ========================================================================== */
.ppr-payment-banner {
    margin: 18px auto;
    max-width: 1100px;
    padding: 14px 22px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 6px 18px rgba(8, 35, 65, 0.08);
}

.ppr-payment-banner strong { font-weight: 800; }
.ppr-payment-banner em { font-style: normal; font-weight: 700; }

.ppr-payment-banner--paid {
    background: #e3fbed;
    border: 1px solid #b6efce;
    color: #1f6b3f;
}

.ppr-payment-banner--cancelled {
    background: #fef3e7;
    border: 1px solid #f6d5a8;
    color: #8a5114;
}

/* 165864 - "Access expired" notice shown right below the locked-insights box,
   styled as a clean contained alert that matches the surrounding cards. */
.ppr-access-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 26px;
    padding: 14px 20px;
    background: #fef3e7;
    border: 1px solid #f6d5a8;
    border-radius: 12px;
    color: #8a5114;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
}
.ppr-access-alert__icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    color: #c97a16;
}
.ppr-access-alert strong { font-weight: 800; }
.ppr-access-alert em { font-style: normal; font-weight: 700; }

/* ==========================================================================
   Bibliographic Details grid (10 fields, 4 columns wide)
   ========================================================================== */
.ppr-biblio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 165864 - compact mode */
    gap: 14px 24px;
}

.ppr-biblio-grid .ppr-kv__label {
    text-transform: none;
    letter-spacing: 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--ppp-color-text-muted);
}

.ppr-biblio-grid .ppr-kv__value {
    font-size: 15px;
    font-weight: 700;
}

@media (max-width: 900px) {
    .ppr-biblio-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
    .ppr-biblio-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Summary block
   ========================================================================== */
.ppr-summary {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: var(--ppp-color-text-dark);
    white-space: pre-wrap;
}

/* 166240 - AI summary stacked beneath the abstract in the Summary card. */
.ppr-summary-ai {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--ppp-color-border, #e3e9f0);
}
.ppr-summary-ai__label {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--ppp-color-primary, #01A8F4);
}

/* 166240 - Cold-path status row inside the AI Summary block: "generating in the
   background" (spinner) or the terminal "not available" note. Reuses the family
   loading/retry/processing styles for a consistent look. */
.ppr-summary-ai__status {
    color: var(--ppp-color-text-muted);
    font-weight: 600;
    line-height: 1.4;
}

/* ==========================================================================
   Default Application Timeline - horizontal axis with dated event markers
   ========================================================================== */
.ppr-default-timeline {
    position: relative;
    overflow: hidden;
    padding: 8px 0 4px;
}

.ppr-default-timeline__inner {
    position: relative;
    min-height: 200px;
}

.ppr-default-timeline__track {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: #d6dde7;
}

.ppr-default-timeline__event {
    position: absolute;
    width: 150px;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ppr-default-timeline__box {
    background: #eef2f8;
    border: 1px solid #d4dde9;
    border-radius: 6px;
    padding: 6px 10px;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

.ppr-default-timeline__label {
    font-size: 11px;
    line-height: 1.35;
    color: var(--ppp-color-text-dark);
}

.ppr-default-timeline__date {
    font-size: 10px;
    font-weight: 700;
    color: var(--ppp-color-text-muted);
    margin-top: 2px;
}

.ppr-default-timeline__connector {
    width: 1px;
    flex: 1;
    background: #c2cfdd;
}

.ppr-default-timeline__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--ppp-color-primary);
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 1px #c2cfdd;
    margin-top: -5px;
    flex-shrink: 0;
}

.ppr-default-timeline__axis {
    position: absolute;
    left: 0;
    right: 0;
    height: 40px;
    pointer-events: none;
}

.ppr-default-timeline__month {
    position: absolute;
    top: 0;
    border-left: 1px solid #e8edf3;
    box-sizing: border-box;
    height: 100%;
    text-align: center;
    padding-top: 4px;
}

.ppr-default-timeline__month-label {
    font-size: 10px;
    color: var(--ppp-color-text-muted);
}

.ppr-default-timeline__year-label {
    margin-top: 4px;
    font-size: 11px;
    font-weight: 700;
    color: var(--ppp-color-text-dark);
}

.ppr-default-timeline__empty {
    text-align: center;
    color: var(--ppp-color-text-muted);
    font-size: 13px;
    padding: 20px 0;
}

/* ==========================================================================
   Locked  ←→  Unlocked toggle
   Default state: locked skeleton visible, unlocked content hidden.
   Once the payment webhook lands (or the frontend posts `is-paid`) the page
   gets `body.is-paid` and the flip happens with a soft fade so it doesn't
   feel jarring.
   ========================================================================== */
.ppr-card__locked   { display: block; }
.ppr-card__unlocked { display: none; }

body.is-paid .ppr-card__locked   { display: none; }
body.is-paid .ppr-card__unlocked { display: block; animation: ppr-fade-in 0.3s ease-out; }
body.is-paid .ppr-card__lock     { display: none; }

/* 166240 - "Free" cards (e.g. Bibliographic Details): publicly-available data
   shows in the preview too, so always reveal the unlocked body and hide the
   skeleton + lock icon, regardless of is-paid. */
.ppr-card--free .ppr-card__locked   { display: none; }
.ppr-card--free .ppr-card__unlocked { display: block; }
.ppr-card--free .ppr-card__lock     { display: none; }
.ppr-unlock--unlocked { display: none; }
body.is-paid .ppr-unlock--locked   { display: none; }
body.is-paid .ppr-unlock--unlocked { display: flex; animation: ppr-fade-in 0.3s ease-out; }

@keyframes ppr-fade-in {
    from { opacity: 0; transform: translateY(2px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---------- "Full report unlocked" banner ---------- */
.ppr-unlock--unlocked {
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--ppp-color-border);
    box-shadow: 0 4px 14px rgba(8, 35, 65, 0.05);
}

.ppr-unlock--unlocked .ppr-unlock__title {
    color: var(--ppp-color-text-dark);
    font-size: 16px;
}

.ppr-unlock__download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--ppp-color-primary);
    color: #ffffff;
    border: 0;
    padding: 10px 18px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.1s ease;
}
.ppr-unlock__download svg { width: 16px; height: 16px; }
.ppr-unlock__download:hover { background: #008ed6; }
.ppr-unlock__download:active { transform: translateY(1px); }

/* ---------- Key-value rows (Priority / Filing / Prosecutor / Law firm) ---- */
.ppr-kv {
    display: flex;
    flex-direction: column;
    gap: 3px;
    /* 165864 - compact mode */
    margin-bottom: 10px;
}
.ppr-kv:last-child { margin-bottom: 0; }
.ppr-kv--full { width: 100%; }

/* 165864 - compact mode: lay supplementary key/value pairs (examiner
   email+phone, patent-counsel case health + firm averages) out in two
   columns instead of stacking them full-width, so the cards stay short. */
.ppr-kv-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 24px;
    margin-top: 10px;
}
.ppr-kv-grid .ppr-kv { margin-bottom: 0; }
/* 165864 - 3-column variant for the full-width Patent Counsel card so its
   secondary fields line up under the 3-stat row (3 per row, not 3 then 2). */
.ppr-kv-grid--3 { grid-template-columns: repeat(3, 1fr); }

/* 166240 - inline copy button (examiner email) */
.ppr-copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin-left: 8px;
    padding: 0;
    border: 1px solid var(--ppp-color-icon-bg, #e8edf3);
    border-radius: 6px;
    background: #fff;
    color: var(--ppp-color-text-muted, #5a6b7b);
    cursor: pointer;
    flex: 0 0 auto;
    transition: color .15s, border-color .15s, background .15s;
}
.ppr-copy-btn:hover,
.ppr-copy-btn:focus-visible { color: #1a4dff; border-color: #1a4dff; }
.ppr-copy-btn svg { width: 13px; height: 13px; }
.ppr-copy-btn--done { color: #1a7f37; border-color: #1a7f37; }

/* 166240 - inline link (e.g. prosecutor LinkedIn "View Profile") */
.ppr-link {
    font-size: 14px;
    font-weight: 700;
    color: #1a4dff;
    text-decoration: none;
}
.ppr-link:hover { text-decoration: underline; }

/* 166240 - #19 Associated Prosecutor Details table (law-firm panel) */
.ppr-assoc {
    margin-top: 18px;
    border-top: 1px solid var(--ppp-color-icon-bg, #e8edf3);
    padding-top: 14px;
}
.ppr-assoc__title {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 700;
    color: var(--ppp-color-text-dark, #16222e);
}
/* 166240 - title + search share one row; search sits in the right corner. */
.ppr-assoc__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.ppr-assoc__head .ppr-assoc__title { margin: 0; }
.ppr-assoc__scroll { overflow-x: auto; }
.ppr-assoc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.ppr-assoc-table th,
.ppr-assoc-table td {
    text-align: left;
    padding: 8px 10px;
    border-bottom: 1px solid var(--ppp-color-icon-bg, #e8edf3);
    vertical-align: top;
}
/* Keep numeric columns on one line; let the wide text columns wrap so the
   whole table fits the card width without horizontal scrolling. */
.ppr-assoc-table td:nth-child(3),
.ppr-assoc-table td:nth-child(5),
.ppr-assoc-table td:nth-child(6) { white-space: nowrap; }
.ppr-assoc-table td:nth-child(4) { min-width: 170px; }
.ppr-assoc-table th {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    color: var(--ppp-color-text-muted, #5a6b7b);
    background: var(--ppp-color-icon-bg, #f4f7fa);
}
.ppr-assoc-table td {
    color: var(--ppp-color-text-dark, #16222e);
    font-weight: 600;
}
.ppr-assoc-table tbody tr:last-child td { border-bottom: none; }
.ppr-assoc-table__email { color: #1ca7b3; }

/* 166240 - client-side pager below the associated prosecutor table */
.ppr-assoc-pager {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 12px;
}
.ppr-assoc-pager__info {
    font-size: 12px;
    color: var(--ppp-color-text-muted, #5b6b80);
}
.ppr-assoc-pager__btn {
    min-width: 64px;
    padding: 6px 14px;
    border-radius: 8px;
    border: 1px solid var(--ppp-color-primary, #01A8F4);
    background: var(--ppp-color-primary, #01A8F4);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.ppr-assoc-pager__btn:hover { background: #008ed6; border-color: #008ed6; }
.ppr-assoc-pager__btn:disabled {
    background: #f1f4f8;
    border-color: #d6dee8;
    color: #9aa6b6;
    cursor: not-allowed;
}

/* 166240 - compact search box that sits in the heading row's right corner */
.ppr-assoc-search { margin: 0; flex: 0 0 auto; }
.ppr-assoc-search__input {
    width: 240px;
    max-width: 100%;
    padding: 8px 12px;
    border: 1px solid #c2ccd9;
    border-radius: 8px;
    font-size: 13px;
    color: var(--ppp-color-text-dark, #16222e);
    background: #ffffff;
}
.ppr-assoc-search__input::placeholder { color: #97a4b4; }
.ppr-assoc-search__input:focus {
    outline: none;
    border-color: var(--ppp-color-primary, #01A8F4);
    box-shadow: 0 0 0 3px rgba(1, 168, 244, 0.12);
}
.ppr-assoc-table td.ppr-assoc-empty {
    text-align: center;
    color: var(--ppp-color-text-muted, #5b6b80);
    font-weight: 500;
    padding: 18px 10px;
}

.ppr-kv__label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--ppp-color-text-muted);
}

.ppr-kv__value {
    font-size: 14px;
    font-weight: 700;
    color: var(--ppp-color-text-dark);
    word-break: break-word;
}

/* ---------- Stats trio (Examiner stats / Cost estimation) ---------- */
.ppr-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 165864 - compact mode */
    gap: 14px;
    margin-top: 4px;
}

.ppr-stats__item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ppr-stats__label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--ppp-color-text-muted);
}

.ppr-stats__value {
    font-size: 18px;
    font-weight: 800;
    color: var(--ppp-color-text-dark);
}

/* ---------- Cost breakdown table (166240 #10) ---------- */
.ppr-cost-breakdown {
    margin-top: 16px;
    overflow-x: auto;
}
.ppr-cost-breakdown__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.ppr-cost-breakdown__table th,
.ppr-cost-breakdown__table td {
    text-align: left;
    padding: 8px 10px;
    border-bottom: 1px solid var(--ppp-color-icon-bg, #e8edf3);
    vertical-align: top;
}
/* Cost + Total columns are numeric - right-align and keep on one line. */
.ppr-cost-breakdown__table th:nth-child(2),
.ppr-cost-breakdown__table th:nth-child(3),
.ppr-cost-breakdown__table td:nth-child(2),
.ppr-cost-breakdown__table td:nth-child(3) {
    text-align: right;
    white-space: nowrap;
}
.ppr-cost-breakdown__table thead th {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    color: var(--ppp-color-text-muted, #5a6b7b);
    background: var(--ppp-color-icon-bg, #f4f7fa);
}
.ppr-cost-breakdown__table td {
    color: var(--ppp-color-text-dark, #16222e);
    font-weight: 600;
}
/* Subtotal + Grand Total rows: bold, faint background. */
.ppr-cost-breakdown__subtotal th,
.ppr-cost-breakdown__grand th {
    font-weight: 800;
    color: var(--ppp-color-text-dark, #16222e);
    background: var(--ppp-color-icon-bg, #f4f7fa);
    text-transform: none;
    letter-spacing: 0;
    font-size: 13px;
}
.ppr-cost-breakdown__grand th {
    border-top: 2px solid var(--ppp-color-primary, #01A8F4);
}
.ppr-cost-breakdown__table tbody tr:last-child th,
.ppr-cost-breakdown__table tbody tr:last-child td { border-bottom: none; }
/* (i) tooltip marker next to each fee label. */
.ppr-cost-breakdown__info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    margin-left: 6px;
    border-radius: 50%;
    border: 1px solid var(--ppp-color-text-muted, #5a6b7b);
    color: var(--ppp-color-text-muted, #5a6b7b);
    font-size: 9px;
    font-style: italic;
    font-weight: 700;
    line-height: 1;
    cursor: help;
    vertical-align: middle;
}
/* ---------- Family tree continuity rows ---------- */
.ppr-family {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ppr-family__row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    align-items: center;
    gap: 16px;
    font-size: 13px;
}

/* 165864 - Loading state while the family tree is fetched on its own request. */
.ppr-family__row--loading {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--ppp-color-text-muted);
    font-weight: 600;
}

.ppr-family__row--loading::before {
    content: "";
    width: 14px;
    height: 14px;
    border: 2px solid var(--ppp-color-text-muted);
    border-top-color: transparent;
    border-radius: 50%;
    animation: ppr-family-spin 0.7s linear infinite;
}

@keyframes ppr-family-spin {
    to { transform: rotate(360deg); }
}

/* 165864 - Reload affordance shown in the Continuity block when the family
   fetch times out / errors, instead of a stuck loader or false empty state. */
.ppr-retry {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--ppp-color-text-muted);
    font-weight: 600;
}

.ppr-retry__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 1px solid var(--ppp-color-text-muted);
    border-radius: 999px;
    background: transparent;
    color: var(--ppp-color-text-dark);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.ppr-retry__btn:hover {
    background: var(--ppp-color-text-dark);
    color: #fff;
    border-color: var(--ppp-color-text-dark);
}

.ppr-retry__icon {
    font-size: 15px;
    line-height: 1;
}

/* 165864 - "Processing in the background" variant of the continuity reload state,
   shown while the ~25-30 min server-side crawl runs. Longer copy, so allow wrap. */
.ppr-processing {
    flex-wrap: wrap;
}

.ppr-processing .ppr-retry__msg {
    flex: 1 1 240px;
    line-height: 1.4;
    color: var(--ppp-color-text-muted);
    font-weight: 600;
}

.ppr-family__num {
    color: var(--ppp-color-text-dark);
    font-weight: 700;
}

.ppr-family__type {
    color: var(--ppp-color-text-muted);
    font-weight: 600;
}

.ppr-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    text-transform: capitalize;
}
.ppr-badge--patented { background: #e3fbed; color: #1f6b3f; }
.ppr-badge--pending  { background: #fef3e7; color: #8a5114; }

/* ---------- Application timeline ---------- */
.ppr-timeline {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ppr-timeline__axis {
    display: grid;
    grid-template-columns: 220px 1fr;
    align-items: center;
    font-size: 11px;
    color: var(--ppp-color-text-muted);
    padding-left: 220px;
}
.ppr-timeline__axis span {
    flex: 1;
    text-align: left;
}
.ppr-timeline__axis {
    display: flex;
    gap: 0;
    padding-left: 232px;
    padding-right: 4px;
}

.ppr-timeline__row {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 12px;
    align-items: center;
}

.ppr-timeline__num {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    /* 165864 - keep the flag + formatted number on a single line so long
       entries (PCT / publication numbers) don't make the row tall. */
    white-space: nowrap;
    font-size: 13px;
    font-weight: 700;
    color: var(--ppp-color-primary);
    text-decoration: none;
}

/* 165864 - country flag in the continuity/family label (View Application parity) */
.ppr-flag {
    width: 18px;
    height: 13px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
    box-shadow: 0 0 0 1px rgba(8, 35, 65, 0.08);
}
.ppr-flag--wo {
    width: auto;
    height: auto;
    font-size: 9px;
    font-weight: 700;
    background: #e8edf3;
    color: #0B2545;
    padding: 1px 4px;
    border-radius: 3px;
    box-shadow: none;
}
.ppr-timeline__num:hover { text-decoration: underline; }

.ppr-timeline__track {
    position: relative;
    height: 14px;
    background: #f1f4f8;
    border-radius: 7px;
    overflow: hidden;
}

.ppr-timeline__bar {
    position: absolute;
    top: 0; bottom: 0;
    background: #4878a8;
    border-radius: 7px;
}
.ppr-timeline__bar--soft { background: #c2cfdd; }

/* 165864 - Continuity gantt phases, matching the View Application chart:
   grey = pre-filing/priority, blue = filing -> issue (pendency), green = issue -> 20yr expiry. */
.ppr-timeline__seg {
    position: absolute;
    top: 0; bottom: 0;
}
.ppr-timeline__seg--grey { background: #a2a2a2; }
.ppr-timeline__seg--blue { background: #4572A7; }
.ppr-timeline__seg--green { background: #2ace2a; }

@media (max-width: 720px) {
    .ppr-timeline__row,
    .ppr-timeline__axis { grid-template-columns: 1fr; padding-left: 0; }
    .ppr-stats { grid-template-columns: 1fr 1fr; }
    .ppr-family__row { grid-template-columns: 1fr; gap: 6px; }
}

/* ==========================================================================
   166240 - Graphical family tree (top-down org chart) in the unlocked report,
   mirroring the main app's Classic family tree. Cards are absolutely placed on
   a sized canvas; an SVG underlay draws the connectors (styled by con type).
   ========================================================================== */
.ppr-family-tree { width: 100%; }
.ppr-fam-scroll { width: 100%; overflow-x: auto; overflow-y: hidden; padding: 4px 2px 10px; }
.ppr-fam-canvas { position: relative; margin: 0 auto; }
.ppr-fam-svg { position: absolute; top: 0; left: 0; pointer-events: none; z-index: 1; }

.ppr-fam-node {
    position: absolute;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid #c9d4e2;
    border-radius: 6px;
    padding: 7px 9px;
    box-shadow: 0 1px 8px rgba(10, 34, 64, 0.08);
    overflow: hidden;
    z-index: 2;
}
.ppr-fam-node__flag { flex: 0 0 30px; width: 30px; text-align: center; }
.ppr-fam-node__flagimg { display: block; width: 24px; height: 24px; object-fit: contain; margin: 0 auto; }
.ppr-fam-node__wo {
    display: inline-block; font-size: 9px; font-weight: 800; color: #0a2240;
    border: 1px solid #c9d4e2; border-radius: 3px; padding: 2px 3px; line-height: 1;
}
.ppr-fam-node__cc { display: block; font-size: 9px; font-weight: 700; color: #0a2240; margin-top: 2px; }
.ppr-fam-node__divider { flex: 0 0 1px; align-self: stretch; background: #d3dbe6; margin: 2px 0; }
.ppr-fam-node__body { flex: 1 1 auto; min-width: 0; padding: 0 2px; }
.ppr-fam-node__line {
    font-size: 10.5px; line-height: 1.45; color: #102a43;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ppr-fam-node__lbl { color: #6b7c8c; }
.ppr-fam-node__val { font-weight: 700; color: #0a2240; }
.ppr-fam-node__date { color: #2c6fc1; font-weight: 500; }
.ppr-fam-node__stat { flex: 0 0 22px; width: 22px; text-align: center; }
.ppr-fam-ico { width: 20px; height: 20px; display: inline-block; vertical-align: middle; }

.ppr-fam-legend {
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px;
    margin-top: 12px; padding-top: 10px; border-top: 1px solid #e3e9f0;
    font-size: 11px; color: #334155;
}
.ppr-fam-legend__title {
    display: inline-block; background: #2c6fc1; color: #fff; font-weight: 700;
    padding: 2px 8px; border-radius: 4px;
}
.ppr-fam-legend__item { display: inline-flex; align-items: center; gap: 6px; }
.ppr-fam-legend__item .ppr-fam-ico { width: 16px; height: 16px; }
.ppr-fam-legend__ln { display: inline-block; width: 26px; height: 0; vertical-align: middle; }
.ppr-fam-legend__ln--con { border-top: 2px solid #334155; }
.ppr-fam-legend__ln--cip { border-top: 2px dashed #334155; }
.ppr-fam-legend__ln--div { border-top: 3px dotted #334155; }

/* ==========================================================================
   Unlock Full Report modal
   ========================================================================== */
.ppr-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.ppr-modal[hidden] {
    display: none;
}

.ppr-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(11, 37, 69, 0.55);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.ppr-modal__dialog {
    position: relative;
    width: 100%;
    max-width: 520px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(8, 35, 65, 0.30);
    padding: 28px 28px 22px;
    animation: ppr-modal-in 0.2s ease-out;
}

@keyframes ppr-modal-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.ppr-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.ppr-modal__title {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    color: var(--ppp-color-text-dark);
    line-height: 1.2;
}

.ppr-modal__close {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: transparent;
    color: var(--ppp-color-text-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease;
    border: none;
    padding: 0px;
}

.ppr-modal__close:hover {
    background: #f4f7fb;
}

.ppr-modal__close svg {
    width: 22px;
    height: 22px;
}

.ppr-modal__form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* 165864 - `display: flex` above overrides the `hidden` attribute's default
   `display: none`, so the form (and the repurchase-confirm view that shares
   this class) would otherwise both be visible at the same time. */
.ppr-modal__form[hidden] {
    display: none;
}

/* ---- Form fields ---- */
.ppr-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ppr-field__label {
    font-size: 14px;
    font-weight: 700;
    color: var(--ppp-color-text-dark);
}

.ppr-field__input {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    font-size: 14px;
    color: var(--ppp-color-text-dark);
    background: #f7f9fc;
    border: 1px solid var(--ppp-color-border);
    border-radius: 10px;
    font-family: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.ppr-field__input::placeholder {
    color: #9aa6b6;
}

.ppr-field__input:focus {
    outline: none;
    background: #ffffff;
    border-color: var(--ppp-color-primary);
    box-shadow: 0 0 0 3px rgba(1, 168, 244, 0.15);
}

.ppr-field__input[aria-invalid="true"] {
    border-color: #d33646;
    background: #fff5f6;
}

.ppr-field__error {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    color: #d33646;
}

/* 165864 - Repurchase confirmation copy inside the unlock modal. */
.ppr-confirm__message {
    margin: 0 0 8px 0;
    font-size: 15px;
    line-height: 1.5;
    color: #1c2630;
}

/* ---- Checkbox ---- */
.ppr-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.ppr-checkbox input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.ppr-checkbox__box {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border-radius: 5px;
    border: 1.5px solid #c4cdd9;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease, border-color 0.15s ease;
    color: transparent;
    margin-top: 1px;
}

.ppr-checkbox__box svg {
    width: 14px;
    height: 14px;
}

.ppr-checkbox input:checked + .ppr-checkbox__box {
    background: #2ec06f;
    border-color: #2ec06f;
    color: #ffffff;
}

.ppr-checkbox input:focus-visible + .ppr-checkbox__box {
    box-shadow: 0 0 0 3px rgba(1, 168, 244, 0.25);
}

.ppr-checkbox__text {
    font-size: 14px;
    color: var(--ppp-color-text-dark);
    line-height: 1.4;
}

/* ---- Footer buttons ---- */
.ppr-modal__footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 10px;
}

.ppr-modal__btn {
    min-width: 110px;
    height: 44px;
    padding: 0 22px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
    cursor: pointer;
    border: none;
}

.ppr-modal__btn--secondary {
    background: #f1f4f8;
    color: var(--ppp-color-text-dark);
}

.ppr-modal__btn--secondary:hover {
    background: #e6ebf1;
}

.ppr-modal__btn--primary {
    background: var(--ppp-color-primary);
    color: #ffffff;
}

.ppr-modal__btn--primary:hover {
    background: #008ed6;
}

.ppr-modal__btn--primary:disabled {
    background: #9aa6b6;
    cursor: not-allowed;
}

/* When the modal is open, prevent the page underneath from scrolling. */
body.ppr-modal-open {
    overflow: hidden;
}

@media (max-width: 520px) {
    .ppr-modal__dialog { padding: 22px 20px 18px; }
    .ppr-modal__title { font-size: 20px; }
    .ppr-modal__footer { flex-direction: column-reverse; }
    .ppr-modal__btn { width: 100%; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .ppr-id-card,
    .ppr-cards { grid-template-columns: 1fr 1fr; }
    .ppr-card__body--stats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .ppr-hero { padding: 120px 0 90px; }
    .ppr-id-card,
    .ppr-cards { grid-template-columns: 1fr; }
    .ppr-unlock { flex-wrap: wrap; }
    .ppr-unlock__actions { width: 100%; align-items: stretch; }
    .ppr-unlock__cta { text-align: center; }
    .ppr-card__body--cols,
    .ppr-card__body--stats { grid-template-columns: 1fr; }
}

/* 166240 - Report disclaimer + 30-day validity note + CC licence badge. */
.ppr-disclaimer {
    margin: 32px auto 8px;
    padding-top: 16px;
    border-top: 1px solid #e3e9f0;
    color: #8da0b3;
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}
.ppr-disclaimer__text { margin: 0 0 12px; }
.ppr-disclaimer__cc { display: inline-block; opacity: 0.85; }
.ppr-disclaimer__cc:hover { opacity: 1; }
.ppr-disclaimer__cc img { display: block; }

/* 166240 - External patent link (e.g. Google Patents) shown in the report hero. */
.ppr-hero__links { margin: 10px 0 0; }
.ppr-extlink {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ppp-color-primary);
    text-decoration: none;
}
.ppr-extlink:hover { text-decoration: underline; }
.ppr-extlink__icon { width: 15px; height: 15px; flex: none; }

/* 166240 - Access tenure shown inside the unlocked banner, next to the download
   action (not in the disclaimer). Surfaces how long the purchased link stays usable. */
.ppr-unlock__expiry {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    font-size: 13px;
    color: var(--ppp-color-text-muted);
}
.ppr-unlock__expiry[hidden] { display: none; }
.ppr-unlock__expiry-icon {
    width: 14px;
    height: 14px;
    flex: none;
    color: var(--ppp-color-primary);
}
.ppr-unlock__expiry strong {
    font-weight: 600;
    color: var(--ppp-color-text-dark);
    font-variant-numeric: tabular-nums;
}
